/* ========================================
   LANDING PAGE TEMPLATES - KIREVA INVEST
   ======================================== */

:root {
    --templates-primary: #447CAC;
    --templates-primary-light: rgba(68, 124, 172, 0.1);
    --templates-primary-dark: #2d5a7e;
    --templates-secondary: #10b981;
    --templates-warning: #f59e0b;
}

/* Hero Section */
.templates-hero {
    min-height: 60vh;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%);
}

.templates-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.templates-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.templates-gradient-1 {
    top: -10%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(68, 124, 172, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.templates-gradient-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.templates-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.templates-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--templates-primary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid var(--templates-primary);
    border-radius: 50px;
    color: var(--templates-primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.templates-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.templates-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.templates-hero-title .accent {
    background: linear-gradient(135deg, var(--templates-primary) 0%, var(--templates-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.templates-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Trust Badges */
.templates-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--templates-primary);
}

/* Templates Grid Section */
.templates-grid-section {
    padding: 4rem 0 6rem;
}

/* Filtres et recherche */
.templates-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--templates-primary);
    box-shadow: 0 0 0 3px rgba(68, 124, 172, 0.1);
}

.search-box input::placeholder {
    color: #9ca3af;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-btn.active {
    background: var(--templates-primary-light);
    border-color: var(--templates-primary);
    color: var(--templates-primary);
}

.filter-btn i {
    font-size: 0.875rem;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.125rem;
}

.templates-category {
    margin-bottom: 4rem;
}

.templates-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.category-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.category-count {
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--templates-primary);
}

.template-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.template-content {
    flex: 1;
}

.template-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.template-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.template-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.template-format {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

.template-format i {
    color: #ef4444;
}

.btn-download-template {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--templates-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-template:hover {
    background: var(--templates-primary-dark);
    transform: translateY(-1px);
}

.btn-download-template i {
    font-size: 0.75rem;
}

/* Empty State */
.templates-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.templates-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.templates-empty p {
    font-size: 1.125rem;
}

/* Why Section */
.templates-why-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(68, 124, 172, 0.1);
    color: var(--templates-primary);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-eyebrow.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* CTA Section */
.templates-cta-section {
    padding: 6rem 0;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, var(--templates-primary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    padding: 4rem 3rem;
    border-radius: 16px;
    border: 2px solid var(--templates-primary);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.cta-card > p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
}

.cta-feature svg {
    color: var(--templates-primary);
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--templates-primary) 0%, var(--templates-primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(68, 124, 172, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(68, 124, 172, 0.4);
    color: white;
    text-decoration: none;
}

.cta-reassurance {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Download Modal */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.download-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.download-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.download-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.download-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-modal-icon i {
    font-size: 2.5rem;
    color: #ef4444;
}

.download-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.download-modal-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.download-modal-text .text-muted {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Download Form */
.download-form {
    text-align: left;
}

.download-form .form-group {
    margin-bottom: 1rem;
}

.download-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.download-form input[type="email"]:focus {
    outline: none;
    border-color: var(--templates-primary);
    box-shadow: 0 0 0 3px rgba(68, 124, 172, 0.1);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--templates-primary);
    flex-shrink: 0;
}

.btn-submit-download {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--templates-secondary) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-submit-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-submit-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-modal-legal {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.download-modal-legal a {
    color: var(--templates-primary);
    text-decoration: underline;
}

.download-modal-or {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-modal-or::before,
.download-modal-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.download-modal-or span {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
}

.btn-create-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--templates-primary);
    color: var(--templates-primary);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-create-account:hover {
    background: var(--templates-primary);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .templates-hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .templates-hero-title {
        font-size: 2rem;
    }

    .templates-hero-subtitle {
        font-size: 1.0625rem;
    }

    .templates-trust-badges {
        gap: 1rem;
    }

    .trust-badge {
        font-size: 0.8125rem;
    }

    .templates-filters {
        padding: 1rem;
    }

    .search-box {
        max-width: 100%;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .filter-btn i {
        display: none;
    }

    .templates-grid-section {
        padding: 3rem 0 4rem;
    }

    .category-header {
        flex-wrap: wrap;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .section-header-centered h2 {
        font-size: 1.75rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}
