/* Reset et variables - VRAIES couleurs CPA Experts */
:root {
    /* Couleurs principales de la charte CPA */
    --cpa-dark: #1D4348;     /* Vert foncé - backgrounds sombres */
    --cpa-fluo: #E3FCEE;     /* Vert fluo - backgrounds clairs/CTA */
    --cpa-cream: #FFFFF8;    /* Crème */
    
    /* Couleurs secondaires (usage modéré) */
    --cpa-pastel: #CBE5DB;   /* Vert pastel */
    --cpa-medium: #8BAFAD;   /* Vert moyen */
    --cpa-light: #A5CAC0;    /* Vert clair */
    
    /* Application des couleurs principales */
    --primary-color: var(--cpa-dark);         /* Vert foncé principal */
    --primary-light: var(--cpa-fluo);         /* Vert fluo */
    --primary-cream: var(--cpa-cream);        /* Crème */
    
    /* Textes */
    --text-primary: var(--cpa-dark);          /* Vert foncé pour textes */
    --text-secondary: var(--cpa-dark);        /* Vert foncé pour sous-textes */
    --text-white: #ffffff;
    
    /* Arrière-plans */
    --bg-primary: var(--cpa-cream);           /* Crème pour fond général */
    --bg-secondary: var(--cpa-fluo);          /* Vert fluo pour sections */
    --bg-dark: var(--cpa-dark);               /* Vert foncé pour header/footer */
    --bg-form: var(--cpa-pastel);             /* Vert pastel pour formulaire */
    
    /* Ombres avec vert foncé */
    --shadow-sm: 0 1px 2px 0 rgba(29, 67, 72, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(29, 67, 72, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(29, 67, 72, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(29, 67, 72, 0.1);
    
    /* Autres */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Polices CPA Experts */
@font-face {
    font-family: 'League Spartan';
    src: url('../assets/Fonts/League_Spartan/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Museo Moderno';
    src: url('../assets/Fonts/MuseoModerno/MuseoModerno-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #FFFFF8 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Vert foncé CPA */
.header {
    background: #1D4348 !important;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #CBE5DB !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section - Clean Version avec Vidéo */
.hero-section {
    background: #1D4348;
    color: white;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Vidéo d'arrière-plan */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    /* Optimisations pour les performances */
    will-change: transform;
    transform: translateZ(0);
    /* Assure que la vidéo couvre bien toute la section */
    min-width: 100%;
    min-height: 100%;
}

/* Overlay désactivé sur desktop - activé seulement sur mobile */
.hero-overlay {
    display: none;
}

.hero-container {
    padding-left: 160px;
    padding-right: 20px;
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
    margin: 0;
}

.hero-title {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.feature-check {
    background: #E3FCEE;
    color: #1D4348;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-cta {
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    background: #E3FCEE !important;
    color: #1D4348 !important;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(227, 252, 238, 0.3);
}

.cta-button:hover {
    background: #CBE5DB !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 252, 238, 0.4);
    color: #0F363C !important;
}





/* Animation de pulsation pour les CTA */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(227, 252, 238, 0.4), 0 0 0 0 rgba(227, 252, 238, 0.6);
    }
    50% {
        box-shadow: 0 4px 15px rgba(227, 252, 238, 0.4), 0 0 0 8px rgba(227, 252, 238, 0.2);
    }
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3), 0 0 20px rgba(29, 67, 72, 0.4);
    }
}

/* Sections communes */
.section-title {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1D4348 !important;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #1D4348 !important;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Expertise Section - Style CPA avec 4 colonnes débordantes */
.expertise {
    padding: 80px 0;
    background: #E3FCEE !important;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.expertise-card {
    background: #FFFFF8 !important;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.12);
}

.card-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.expertise-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
}

.expertise-card h3 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1D4348 !important;
}

.expertise-card p {
    color: #1D4348 !important;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

/* Section Formulaire pleine largeur */
.full-width-form-section {
    padding: 6rem 0;
    background: #E3FCEE;
}

.form-section-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 3rem;
}

.form-with-mockup {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: stretch;
    margin-top: 2rem;
}

.form-container-full {
    background: #FFFFF8;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.1);
}

.contact-form-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-main .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form-main .form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(29, 67, 72, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFFFF8;
    color: #1D4348;
}

.contact-form-main .form-group input:focus {
    outline: none;
    border-color: #1D4348;
    box-shadow: 0 0 0 4px rgba(29, 67, 72, 0.1);
    transform: translateY(-2px);
}

.contact-form-main .checkbox-group {
    margin: 1.5rem 0;
    text-align: left;
}

.contact-form-main .checkbox-container {
    justify-content: flex-start;
    text-align: left;
}

.submit-button-main {
    background: linear-gradient(135deg, #1D4348 0%, #486C6A 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    animation: ctaGlow 4s ease-in-out infinite;
}

.submit-button-main:hover {
    background: linear-gradient(135deg, #486C6A 0%, #1D4348 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.5), 0 0 25px rgba(29, 67, 72, 0.3);
    animation: none;
}

.submit-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-button-main:hover::before {
    left: 100%;
}

/* Mockup du livre blanc */
.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 500px;
}

.mockup-image-wrapper {
    position: relative;
    transition: all 0.3s ease;
    height: fit-content;
}

.mockup-image-wrapper:hover {
    transform: translateY(-8px) rotate(2deg);
}

.mockup-image {
    width: 100%;
    height: 500px;
    max-width: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.2);
    transition: all 0.3s ease;
}

.mockup-image:hover {
    box-shadow: 0 25px 60px rgba(29, 67, 72, 0.3);
}

/* Section Expertise + Images */
.expertise-form-section {
    padding: 6rem 0;
    background: #1D4348;
}

.expertise-form-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 4rem;
    align-items: flex-start;
}

/* Accordéon */
.expertise-accordion {
    background: #FFFFF8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-item {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-item:hover {
    transform: translateY(-2px);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: rgba(227, 252, 238, 0.3);
}

.accordion-header:hover {
    background: rgba(227, 252, 238, 0.6);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(29, 67, 72, 0.1);
}

.accordion-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.accordion-header h3 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1D4348;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.accordion-subtitle {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1D4348;
    margin: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 2px solid #E3FCEE;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: #1D4348;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-icon::before {
    width: 12px;
    height: 2px;
    border-radius: 1px;
}

.accordion-icon::after {
    width: 2px;
    height: 12px;
    border-radius: 1px;
}

.accordion-item.active .accordion-header {
    background: #E3FCEE;
    box-shadow: 0 6px 20px rgba(29, 67, 72, 0.15);
}

.accordion-item.active .accordion-header h3 {
    color: #1D4348;
    font-weight: 800;
}

.accordion-item.active .accordion-subtitle {
    opacity: 0.9;
    font-weight: 600;
}

.accordion-item.active .accordion-icon {
    background: #1D4348;
    border-color: #1D4348;
    transform: rotate(45deg);
}

.accordion-item.active .accordion-icon::before {
    background: white;
}

.accordion-item.active .accordion-icon::after {
    background: white;
    transform: rotate(90deg);
}

.accordion-header:hover h3 {
    color: #0F363C;
}

.accordion-header:hover .accordion-subtitle {
    opacity: 0.9;
}

.accordion-header:hover .accordion-icon {
    border-color: #1D4348;
    background: rgba(227, 252, 238, 0.5);
    transform: scale(1.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(-10px);
}

.accordion-item.active .accordion-content {
    max-height: 250px;
    padding: 1rem 1rem 1.5rem 1rem;
    opacity: 1;
    transform: translateY(0);
}

.accordion-content p {
    color: #1D4348;
    line-height: 1.6;
    margin: 0;
}

/* Images dynamiques */
.dynamic-image-container {
    position: sticky;
    top: 2rem;
}

.image-card {
    background: #FFFFF8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.expertise-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: static;
    background: #FFFFF8;
    color: #1D4348;
    padding: 1.5rem;
    border-top: 1px solid #E3FCEE;
}

.image-overlay h4 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1D4348;
}

.image-overlay p {
    font-size: 0.95rem;
    color: #1D4348;
    margin: 0;
    opacity: 0.8;
}

/* Formulaire à côté (legacy) */
.contact-form-container {
    position: sticky;
    top: 2rem;
}

.form-card {
    background: #FFFFF8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-card h3 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D4348;
    margin-bottom: 0.5rem;
}

.form-card p {
    color: #1D4348;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Experts Section - Vert très clair CPA */
.experts {
    padding: 80px 0;
    background: #E3FCEE !important;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expert-card {
    background: #FFFFF8 !important;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.12);
}

.expert-logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 67, 72, 0.05);
    border-radius: 50%;
}

.expert-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.expert-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.expert-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1D4348 !important;
}

.expert-card p {
    color: #1D4348 !important;
    line-height: 1.6;
}

/* CTA Section - Vert très clair CPA */
.cta-section {
    padding: 80px 0;
    background: #E3FCEE !important;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1D4348 !important;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #1D4348 !important;
}

.cta-section .cta-button {
    background: #1D4348 !important;
    color: white !important;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: ctaGlow 3.5s ease-in-out infinite;
}

.cta-section .cta-button:hover {
    background: #0F363C !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.5), 0 0 25px rgba(29, 67, 72, 0.3);
    text-decoration: none !important;
    animation: none;
}

.cta-section .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-section .cta-button:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: var(--primary-lighter);
}


/* Footer Moderne - Vert foncé CPA */
.footer {
    background: #1D4348 !important;
    color: white;
    padding: 4rem 0 2rem;
}

/* Section principale du footer */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Section marque */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #CBE5DB;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section navigation */
.footer-nav-title,
.footer-contact-title {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links li {
    margin-bottom: 0.75rem;
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-nav-links a:hover {
    color: #CBE5DB;
    transform: translateX(5px);
}

/* Section contact */
.footer-contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ligne de séparation */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 2rem 0;
}

/* Bas de page */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    gap: 2rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: #CBE5DB;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #FFFFF8 !important;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(29, 67, 72, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(72, 108, 106, 0.2);
}

.modal-header h3 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D4348 !important;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1D4348 !important;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(72, 108, 106, 0.1);
    color: #1D4340 !important;
}

.modal-content {
    padding: 1.5rem;
}

/* Formulaire */
.download-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1D4348 !important;
}

.form-group input {
    padding: 1rem;
    border: 2px solid rgba(29, 67, 72, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFFFF8 !important;
    color: #1D4348 !important;
}

.form-group input:focus {
    outline: none;
    border-color: #1D4348 !important;
    box-shadow: 0 0 0 4px rgba(72, 108, 106, 0.1);
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1D4348;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #1D4348;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1D4348;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #1D4348;
    flex-shrink: 0;
}

.submit-button {
    background: linear-gradient(135deg, #486C6A 0%, #1D4340 100%) !important;
    color: white !important;
    border: none;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(72, 108, 106, 0.3);
    position: relative;
    overflow: hidden;
    animation: ctaGlow 4.5s ease-in-out infinite;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1D4340 0%, #486C6A 100%) !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(72, 108, 106, 0.5), 0 0 25px rgba(72, 108, 106, 0.3);
    animation: none;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Bouton principal du formulaire */
.submit-button-main {
    background: linear-gradient(135deg, #1D4348 0%, #486C6A 100%) !important;
    color: white !important;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: ctaGlow 4s ease-in-out infinite;
}

.submit-button-main:hover {
    background: linear-gradient(135deg, #0F363C 0%, #1D4348 100%) !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.5), 0 0 25px rgba(29, 67, 72, 0.3);
    animation: none;
}

.submit-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-button-main:hover::before {
    left: 100%;
}

.submit-button-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Page légale */
.legal-page {
    background: #FFFFF8;
    min-height: 80vh;
    padding: 6rem 0 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.08);
}

.legal-title {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1D4348;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E3FCEE;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: 'Museo Moderno', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1D4348;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #E3FCEE;
}

.legal-info {
    padding-left: 1.5rem;
}

.legal-info p {
    color: #1D4348;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.legal-info a {
    color: #1D4348;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-info a:hover {
    color: #0F363C;
    text-decoration: none;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E3FCEE;
    text-align: center;
}

.back-link {
    display: inline-block;
    background: #1D4348;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #0F363C;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 67, 72, 0.2);
}

/* Confirmation Modal - Couleurs CPA Experts */
.confirmation-content {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    margin-bottom: 1.5rem;
    background: #1D4348;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    animation: successPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.success-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1D4348 0%, #486C6A 100%);
    border-radius: 50%;
    z-index: 1;
}

.check-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
    filter: brightness(0) invert(1);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.confirmation-content p {
    margin-bottom: 1.5rem;
    color: #1D4348 !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

.confirmation-content p:first-of-type {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1D4348 !important;
}

.download-link {
    display: inline-block;
    background: linear-gradient(135deg, #1D4348 0%, #486C6A 100%) !important;
    color: white !important;
    padding: 1.2rem 2.5rem;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(29, 67, 72, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.download-link:hover {
    background: linear-gradient(135deg, #0F363C 0%, #1D4348 100%) !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(29, 67, 72, 0.5), 0 0 25px rgba(29, 67, 72, 0.3);
    text-decoration: none !important;
}

.download-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.download-link:hover::before {
    left: 100%;
}
