/* ========================================
   VARIABLES CSS - DIRECTION ARTISTIQUE LUXE
   ======================================== */

/* Mode Clair - Premium Luxe */
:root {
    /* Couleurs principales - Premium Bleu */
    --primary-color: #2438B9;        /* Bleu principal */
    --primary-light: #3D52D4;        /* Bleu éclairci - hover */
    --primary-hover: #1A2A8F;        /* Bleu foncé - active */
    --primary-dark: #141F75;         /* Bleu très foncé */

    /* Couleurs accent - Doré Premium */
    --accent-gold: #C0A27B;          /* Doré principal */
    --accent-gold-light: #D4B68F;    /* Doré clair - hover CTAs */
    --accent-gold-dark: #A68B63;     /* Doré foncé - active */
    --accent-gold-subtle: #E8DCC8;   /* Doré subtil - borders */

    /* Texte - Élégant */
    --text-primary: #1A1A1A;         /* Quasi noir (contraste 14.8:1 sur blanc poudré) */
    --text-secondary: #4A4A4A;       /* Gris foncé (contraste 7.6:1) */
    --text-tertiary: #5A5A5A;        /* Gris moyen (contraste 5.8:1 - WCAG AA) */
    --text-inverted: #FFFFFF;        /* Blanc */
    --text-white: #FFFFFF;
    --text-gold: #C0A27B;            /* Doré */
    --text-blue: #2438B9;            /* Bleu */

    /* Arrière-plans - Crème chaud Premium (emprunt Yolo) */
    --bg-primary: #F8F1E8;           /* Crème chaud - fond principal (Y6) */
    --bg-secondary: #FCF7F0;         /* Crème plus clair - alternance */
    --bg-white: #FFFFFF;             /* Blanc pur - cartes */
    --bg-accent: #F0E4D2;            /* Beige doré subtle - zones emphasis (icônes) */
    --bg-dark: #2438B9;              /* Bleu - footer/testimonials */
    --bg-dark-alt: #1A2A8F;          /* Bleu foncé - variations */

    /* Bordures et dividers - Raffinés */
    --border-color: #E8D8D8;         /* Rose poudré - bordures standard */
    --border-gold: #C0A27B;          /* Doré - bordures premium */
    --border-blue: #2438B9;          /* Bleu - bordures structurelles */
    --divider-color: #F0E0E0;        /* Rose très subtil - séparateurs */

    /* Ombres - Bleu et Or */
    --shadow-sm: 0 2px 8px rgba(36, 56, 185, 0.08);
    --shadow-md: 0 4px 20px rgba(36, 56, 185, 0.12);
    --shadow-lg: 0 8px 40px rgba(36, 56, 185, 0.16);
    --shadow-gold: 0 4px 20px rgba(192, 162, 123, 0.25);
    --shadow-gold-hover: 0 6px 30px rgba(192, 162, 123, 0.35);

    /* Spacing Scale (8px base) */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    --space-4xl: 8rem;       /* 128px */

    /* Semantic Spacing */
    --section-padding-y: var(--space-4xl);     /* 128px desktop */
    --section-padding-x: var(--space-lg);      /* 32px */
    --card-padding: var(--space-lg);           /* 32px */
    --container-max-width: 1200px;

    /* Border Radius */
    --radius-sm: 8px;      /* Inputs, small buttons */
    --radius-md: 12px;     /* Cards, main buttons */
    --radius-lg: 16px;     /* Featured cards, hero elements */
    --radius-xl: 24px;     /* Special containers */
    --radius-round: 50%;   /* Avatars, icons */

    /* Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);

    /* Transitions */
    --transition-speed: 0.4s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Type families — emprunt Yolo : mix Fraunces (serif éditoriale) + Inter (sans) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Mode Sombre */
[data-theme="dark"] {
    /* Couleurs principales - Bleus lumineux pour contraste */
    --primary-color: #5B72E6;        /* Bleu lumineux */
    --primary-light: #7A8FEF;        /* Bleu clair */
    --primary-hover: #8FA2F3;        /* Bleu hover */
    --primary-dark: #4A61D9;         /* Bleu foncé */

    /* Couleurs accent - Dorés chauds */
    --accent-gold: #D4B68F;          /* Doré lumineux */
    --accent-gold-light: #E8D4A0;    /* Doré très clair */
    --accent-gold-dark: #C0A27B;     /* Doré moyen */
    --accent-gold-subtle: #A68B63;   /* Doré subtil */

    /* Texte */
    --text-primary: #F5F5F5;         /* Blanc cassé */
    --text-secondary: #D0D0D0;       /* Gris clair (bon contraste) */
    --text-tertiary: #B5B5B5;        /* Gris moyen éclairci (WCAG AA sur fond sombre) */
    --text-inverted: #0F1419;        /* Noir bleuté */
    --text-white: #FFFFFF;
    --text-gold: #D4B68F;            /* Doré */
    --text-blue: #5B72E6;            /* Bleu */

    /* Arrière-plans - Sophistiqués */
    --bg-primary: #0F1419;           /* Noir bleuté profond */
    --bg-secondary: #1A1F26;         /* Gris ardoise foncé */
    --bg-white: #242933;             /* Gris ardoise */
    --bg-accent: #2A3140;            /* Bleu-gris foncé */
    --bg-dark: #0A0E14;              /* Noir absolu */
    --bg-dark-alt: #151922;          /* Noir bleuté alternatif */

    /* Bordures et dividers */
    --border-color: #2A3140;
    --border-gold: #C0A27B;
    --border-blue: #5B72E6;
    --divider-color: #1A1F26;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 20px rgba(212, 182, 143, 0.3);
    --shadow-gold-hover: 0 6px 30px rgba(212, 182, 143, 0.4);
}

/* Détection automatique des préférences système */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Couleurs principales - Bleus lumineux pour contraste */
        --primary-color: #5B72E6;
        --primary-light: #7A8FEF;
        --primary-hover: #8FA2F3;
        --primary-dark: #4A61D9;

        /* Couleurs accent - Dorés chauds */
        --accent-gold: #D4B68F;
        --accent-gold-light: #E8D4A0;
        --accent-gold-dark: #C0A27B;
        --accent-gold-subtle: #A68B63;

        /* Texte */
        --text-primary: #F5F5F5;
        --text-secondary: #D0D0D0;       /* Gris clair (bon contraste) */
        --text-tertiary: #B5B5B5;        /* Gris moyen éclairci (WCAG AA sur fond sombre) */
        --text-inverted: #0F1419;
        --text-white: #FFFFFF;
        --text-gold: #D4B68F;
        --text-blue: #5B72E6;

        /* Arrière-plans */
        --bg-primary: #0F1419;
        --bg-secondary: #1A1F26;
        --bg-white: #242933;            /* Cards plus visibles */
        --bg-accent: #2A3140;           /* Différenciation claire */
        --bg-dark: #0A0E14;
        --bg-dark-alt: #151922;

        /* Bordures */
        --border-color: #2A3140;        /* Plus clair pour visibilité */
        --border-gold: #C0A27B;         /* Doré visible */
        --border-blue: #5B72E6;         /* Bleu lumineux */
        --divider-color: #3A4150;       /* Plus contrasté */

        /* Ombres */
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
        --shadow-gold: 0 4px 20px rgba(212, 182, 143, 0.25);
        --shadow-gold-hover: 0 6px 30px rgba(212, 182, 143, 0.35);
    }
}

/* Responsive Spacing Adjustments */
@media (max-width: 768px) {
    :root {
        --section-padding-y: var(--space-3xl);  /* 96px mobile */
        --section-padding-x: var(--space-md);   /* 24px */
    }
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-size: 1.0625rem;
    font-feature-settings: 'liga' 1, 'kern' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === TYPOGRAPHY HIERARCHY ===
 * Emprunt Yolo : H1/H2 en Fraunces (serif éditoriale) pour le caractère premium,
 * H3+ restent en Inter (sans) pour la lisibilité et la fonctionnalité.
 * Le mix crée le rythme éditorial qui distingue Agapèo des concurrents tech-only.
 */
h1, h2 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.15;
    font-feature-settings: 'liga' 1, 'kern' 1, 'ss01' 1;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

h3, h4 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    font-feature-settings: 'liga' 1, 'kern' 1;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.05;
    color: var(--primary-color);
    text-wrap: balance;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-wrap: balance;
}

h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-secondary);
}

p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Animations et micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Classes d'animation — A3 : reveal stagger expressif
 * Note : on démarre VISIBLE par défaut pour garantir l'affichage si JS échoue,
 * si IntersectionObserver ne se déclenche pas, ou si l'utilisateur préfère
 * réduire les animations. Une classe `.js-fade-ready` est ajoutée par script.js
 * AU LOAD pour activer l'état initial caché.
 */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.6s ease-out;
}

.js-fade-ready .animate-on-scroll {
    /* État initial : translateY plus marqué + blur subtle pour effet "focus" */
    opacity: 0;
    transform: translateY(48px);
    filter: blur(6px);
}

.js-fade-ready .animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Respecter prefers-reduced-motion : pas d'animation, visible direct */
@media (prefers-reduced-motion: reduce) {
    .js-fade-ready .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.count-animation {
    animation: countUp 1s ease forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Amélioration des transitions */
.counter {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-gold);
    /* 1.2em : un peu plus gros que le texte alentour pour souligner, sans casser le flow.
     * Avant : var(--text-4xl) ~ 3.5rem (trop massif, effet "dataviz" hors contexte) */
    font-size: 1.2em;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.counter:hover {
    transform: scale(1.1);
}

/* Stagger reveal — A3 : délais étendus jusqu'à 6 enfants pour cascade marquée
 * Les cards (pillars, services, testimonials) apparaissent en séquence
 * créant un effet "rythme éditorial" plus pro qu'un fade simple. */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.36s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.48s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Stagger spécifique pour les grids (pillars, services, testimonials) :
 * les cards filles animent en cascade même sans .animate-on-scroll direct */
.pillars-grid > .pillar-card:nth-child(2) { transition-delay: 0.12s; }
.pillars-grid > .pillar-card:nth-child(3) { transition-delay: 0.24s; }
.services-grid > .service-card:nth-child(2) { transition-delay: 0.12s; }
.services-grid > .service-card:nth-child(3) { transition-delay: 0.24s; }
.testimonials-grid > .testimonial:nth-child(2) { transition-delay: 0.12s; }
.testimonials-grid > .testimonial:nth-child(3) { transition-delay: 0.24s; }

/* Amélioration des effets hover sur les cartes */
.pillar-card, .service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credential {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour l'accessibilité */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

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

/* Navigation — Y7 : Crème blur + bordure dorée subtle (emprunt Yolo direct).
 * Cohérent avec le bg crème du site, signal "premium feutré".
 * A1 : transition translateY pour auto-hide au scroll down. */
.navbar {
    background: rgba(248, 241, 232, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(192, 162, 123, 0.25);
    box-shadow: 0 2px 12px rgba(36, 56, 185, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-speed),
                box-shadow var(--transition-speed);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
}

/* A1 : header se cache au scroll down, réapparaît au scroll up */
.navbar.navbar--hidden {
    transform: translateY(-100%);
}

/* prefers-reduced-motion : pas d'auto-hide (toujours visible) */
@media (prefers-reduced-motion: reduce) {
    .navbar.navbar--hidden {
        transform: translateY(0);
    }
}

[data-theme="dark"] .navbar {
    background: rgba(15, 20, 25, 0.85);
    border-bottom-color: rgba(192, 162, 123, 0.18);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agapeo-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.agapeo-logo:hover {
    transform: scale(1.05);
}

.coach-name h2 {
    /* Y7 : navbar passe sur fond crème → texte bleu primary.
     * Override Fraunces : reste en Inter pour la lisibilité fonctionnelle navbar. */
    font-family: var(--font-sans);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.coach-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    font-style: italic;
}

/* Fallback si le logo ne charge pas */
.agapeo-logo::before {
    content: "AGAPÈO";
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    /* Y7 : nav links en bleu primary sur fond crème */
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: var(--accent-gold-dark);
}

/* CTA permanent dans la navbar (Y7) */
.nav-cta {
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--accent-gold);
    color: var(--text-inverted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(192, 162, 123, 0.2);
}

.nav-cta:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(192, 162, 123, 0.35);
}

/* Contrôles de navigation (thème + menu mobile) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Bouton de toggle du thème (Y7 : adapté fond crème) */
.theme-toggle {
    background: rgba(36, 56, 185, 0.06);
    border: 1.5px solid rgba(36, 56, 185, 0.18);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 1.05rem;
    padding: 0;
    color: var(--primary-color);
}

.theme-toggle:hover {
    background: rgba(192, 162, 123, 0.15);
    border-color: var(--accent-gold);
    transform: scale(1.1) rotate(180deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold-light);
}
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(192, 162, 123, 0.18);
    border-color: var(--accent-gold-light);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: transform var(--transition-speed);
    display: inline-block;
}

/* Animation de rotation quand on change de thème */
[data-theme="dark"] .theme-icon {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 8px;
}

.hamburger span {
    /* Y7 : couleur primary pour visibilité sur fond crème */
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform-origin: center;
    display: block;
}

[data-theme="dark"] .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile/Tablet Menu — breakpoint élargi à 1024px car la nav desktop
 * (logo + 5 liens + CTA + theme) ne tient pas sous ~1024px sans casser. */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        /* Override : sur mobile le fond du menu est bleu primary, donc les
         * liens (bleu en desktop) deviendraient invisibles. On force blanc. */
        color: #FFFFFF;
    }
    .nav-menu a:hover {
        color: var(--accent-gold-light, #D4B68F);
    }

    .hamburger {
        display: flex;
    }

    /* Cache le CTA nav en tablet/mobile pour ne pas casser le header.
     * Les CTAs sont déjà présents en abondance dans le contenu de la page. */
    .nav-cta {
        display: none;
    }
}

/* Section Hero - Approche Minimaliste */
.hero {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: calc(var(--section-padding-y) * 1.5) var(--section-padding-x);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    /* Emprunt Yolo : pill shape (radius 999px) au lieu de rectangle arrondi.
     * Hauteur conservée pour ne pas casser l'équilibre des sections existantes. */
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.02em;
}

/* Ripple effect au clic */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s, opacity 0.3s;
    pointer-events: none;
}

.btn-primary:active::after,
.btn-secondary:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-inverted);
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.btn-primary:active {
    background: var(--accent-gold-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-inverted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: none;
    transform: translateY(0);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.hero-image {
    /* A5 : wrapper relative pour positionner anneau doré décalé + symbole ✦ */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 480px;
    /* A2 : parallax léger via variable JS (--parallax-y) */
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
    transition: transform 0.05s linear;
}

/* A5 : anneau doré décalé (effet "épaule" signature) */
.hero-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2.5px solid var(--accent-gold);
    transform: translate(-50%, -50%) translate(32px, 32px);
    opacity: 0.55;
    pointer-events: none;
}

/* A5 : accent étoile ✦ — cohérent avec card Premium signature */
.hero-image::after {
    content: "✦";
    position: absolute;
    top: -8px;
    right: 28px;
    font-family: var(--font-serif);
    font-size: 3.25rem;
    line-height: 1;
    color: var(--accent-gold);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(192, 162, 123, 0.3);
    z-index: 3;
    pointer-events: none;
    font-variation-settings: "opsz" 144;
}

.about-image {
    /* Aligné sur le traitement signature de la Hero (A5) :
     * wrapper relatif + parallax + anneau doré décalé + ✦.
     * Anneau décalé en miroir (top-left) pour varier le rythme vs Hero (bottom-right). */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 480px;
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
    transition: transform 0.05s linear;
}

/* Anneau doré décalé en miroir de la Hero (haut-gauche au lieu de bas-droite) */
.about-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2.5px solid var(--accent-gold);
    transform: translate(-50%, -50%) translate(-32px, -32px);
    opacity: 0.55;
    pointer-events: none;
}

/* ✦ étoile signature — en bas à gauche pour varier vs Hero (haut à droite) */
.about-image::after {
    content: "✦";
    position: absolute;
    bottom: 24px;
    left: 28px;
    font-family: var(--font-serif);
    font-size: 3.25rem;
    line-height: 1;
    color: var(--accent-gold);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(192, 162, 123, 0.3);
    z-index: 3;
    pointer-events: none;
    font-variation-settings: "opsz" 144;
}

.hero-photo {
    /* A5 : agrandi 320 → 420 pour plus de présence face au H1.
     * Le cercle reste cohérent avec les autres éléments circulaires du site
     * (pillar-icon, service-icon, footer avatars). */
    width: 420px;
    height: 420px;
    border-radius: var(--radius-round);
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(192, 162, 123, 0.4);
    box-shadow: 0 20px 60px rgba(36, 56, 185, 0.18), 0 0 0 8px rgba(255, 242, 242, 0.6);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
    background: var(--bg-accent);
    position: relative;
    z-index: 2;
}

.hero-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 72px rgba(36, 56, 185, 0.25), 0 0 0 8px rgba(255, 242, 242, 0.6);
}

.placeholder-image {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    border: 3px solid rgba(255,255,255,0.3);
}

/* Section Piliers - Style Minimaliste */
.pillars {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--bg-secondary);
    transition: background-color var(--transition-speed);
}

.pillars h2 {
    text-align: center;
    margin-bottom: 80px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.pillar-card {
    /* Emprunt Yolo : radius 50px pour les cards (vs 16px) — pattern capsules. */
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 50px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
}

/* Hover fill doré (variante B Yolo direct) : la card devient pleinement
 * dorée, texte/icône inversés. Effet "récompense au survol". */
.pillar-card:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-hover);
}
.pillar-card:hover h3,
.pillar-card:hover p {
    color: #FFFFFF;
}
.pillar-card:hover .pillar-icon {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--accent-gold-dark);
}

.pillar-icon {
    /* Caractère typographique × (U+00D7, multiplication sign) stylé en cohérence
     * palette doré. Avant : emoji ❌ rouge système qui clashait avec la palette
     * bleu/doré. ✕ U+2715 rendait en emoji rouge sur certains navigateurs. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 30px;
    border-radius: var(--radius-round);
    background: var(--bg-accent);
    border: 1.5px solid var(--accent-gold-subtle);
    color: var(--accent-gold-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
}

.pillar-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Section Services - Style Minimaliste */
.services {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--bg-primary);
    transition: background-color var(--transition-speed);
}

.services h2 {
    text-align: center;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    /* Emprunt Yolo : radius 50px capsules. */
    background: var(--bg-primary);
    padding: 45px 35px;
    border-radius: 50px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
}

/* Hover fill doré complet (variante B Yolo) */
.service-card:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-hover);
}
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-tagline,
.service-card:hover .service-details strong,
.service-card:hover .service-details em {
    color: #FFFFFF;
}
.service-card:hover .service-icon {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--accent-gold-dark);
}
.service-card:hover .service-details {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #FFFFFF;
}
/* CTA dans card hover : inverse pour rester lisible sur fond doré */
.service-card:hover .btn-primary {
    background: #FFFFFF;
    color: var(--accent-gold-dark);
    border-color: #FFFFFF;
    text-shadow: none;
}
.service-card:hover .btn-primary:hover {
    background: var(--bg-secondary);
}
.service-card:hover .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.service-card:hover .btn-secondary:hover {
    background: #FFFFFF;
    color: var(--accent-gold-dark);
}
/* Badge "OFFRE SIGNATURE" reste doré sur doré → passe en blanc/doré inversé */
.service-card:hover .service-badge {
    background: #FFFFFF;
    color: var(--accent-gold-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.service-icon {
    /* Cohérence avec .pillar-icon : cercle doré 56px avec symbole typographique
     * au lieu d'emojis (🔍 ✨ 🏢) qui se rendaient en couleurs hors palette. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 0 25px;
    border-radius: var(--radius-round);
    background: var(--bg-accent);
    border: 1.5px solid var(--accent-gold-subtle);
    color: var(--accent-gold-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Offre signature featured */
.service-card-featured {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--primary-color);
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.service-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.15);
}

.service-badge {
    /* Passage du bleu plein (trop SaaS, criard en light, mou en dark) au doré
     * cohérent avec la DA premium Agapèo. Texte sombre fixe pour contraste
     * WCAG AAA dans les deux modes (#1A1A1A sur doré clair = ~9:1). */
    display: inline-block;
    background: var(--accent-gold);
    color: #1A1A1A;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(192, 162, 123, 0.25);
}

.service-details {
    background: var(--bg-accent);
    border-left: 3px solid var(--accent-gold);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: var(--radius-sm);
}

.service-details p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.service-card .btn-primary,
.service-card .btn-secondary {
    margin-top: 20px;
    display: inline-block;
}

/* Hero offer line */
.hero-offer {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 20px 0;
    padding: 15px 25px;
    background: var(--bg-accent);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-sm);
}

/* Section À propos - Style Minimaliste */
.about {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--bg-secondary);
    transition: background-color var(--transition-speed);
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* V4 : photo + citation groupées dans la colonne droite — "voix + visage". */
.about-aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* === Citation signature Fraunces (placée dans .about-aside sous la photo) === */
.about-quote {
    padding: 30px 36px 28px 40px;
    position: relative;
    background: var(--bg-primary);
    border-radius: 28px;
    border-left: 3px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.04);
    width: 100%;
    max-width: 460px;
}
.about-quote::before {
    content: "\201C";
    position: absolute;
    top: -8px;
    left: 22px;
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 1;
    font-variation-settings: "opsz" 144;
}
.about-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text-primary);
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 14px;
}
.about-quote cite {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-style: normal;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-gold-dark);
}
.about-quote cite::before {
    content: "";
    width: 24px; height: 1.5px;
    background: var(--accent-gold);
}

.about-text h2 {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.credential {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.credential:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-hover);
}

.credential strong {
    color: var(--accent-gold);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.credential span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.about-photo {
    /* Aligné Hero : rond 420, border doré, halo blanc + ombre bleue. */
    width: 420px;
    height: 420px;
    border-radius: var(--radius-round);
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(192, 162, 123, 0.4);
    box-shadow: 0 20px 60px rgba(36, 56, 185, 0.18), 0 0 0 8px rgba(255, 242, 242, 0.6);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
    background: var(--bg-accent);
    position: relative;
    z-index: 2;
}

.about-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 72px rgba(36, 56, 185, 0.25), 0 0 0 8px rgba(255, 242, 242, 0.6);
}

.about-image .placeholder-image {
    width: 400px;
    height: 400px;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

/* Section FAQ - Style Minimaliste */
.faq {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--bg-primary);
    transition: background-color var(--transition-speed);
}

.faq h2 {
    text-align: center;
    margin-bottom: 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.faq-item.active {
    border-color: var(--accent-gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover h3 {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 20px;
}

.faq-question:hover h3 {
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.3s ease, color 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 0 30px 0;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* Section Témoignages */
.testimonials {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--primary-color);
    color: var(--text-inverted);
}

.testimonials h2 {
    /* P3-F1 : la section testimonials a background bleu (--primary-color),
     * et le H2 hérite color: var(--primary-color) → bleu sur bleu, invisible.
     * Override en blanc pour la lisibilité. */
    color: var(--text-white);
    text-align: center;
    margin-bottom: 60px;
}

[data-theme="dark"] .testimonials h2 {
    color: var(--accent-gold-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.12);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.testimonial p {
    /* Emprunt Yolo : Fraunces italic pour les verbatims clients — donne le
     * poids éditorial qui transforme un témoignage en citation lue. */
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    line-height: 1.55;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 5px;
    color: #FFFFFF; /* Blanc pur au lieu de doré pour meilleur contraste */
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author span {
    opacity: 0.95;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95); /* Améliorer contraste WCAG */
}

/* Dark mode testimonials */
[data-theme="dark"] .testimonials {
    background: var(--bg-dark);
}

[data-theme="dark"] .testimonial {
    background: rgba(91, 114, 230, 0.08);      /* Réduire le bleu */
    border: 1px solid rgba(91, 114, 230, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-author strong {
    color: var(--accent-gold-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);  /* Améliorer lisibilité */
}

/* Section Contact */
.contact {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--bg-secondary);
    transition: background-color var(--transition-speed);
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--text-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item span {
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Honeypot anti-bot : invisible aux humains, présent pour les bots. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form input,
.contact-form textarea {
    /* var(--bg-white) = blanc en light, gris ardoise foncé #242933 en dark.
     * Évite l'effet "inputs blancs agressifs" sur fond sombre. */
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

/* Form status messages (success / error) — remplace les alert() */
#form-status.form-status-success,
#form-status.form-status-error {
    /* Override .sr-only quand .form-status-* est appliqué */
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    animation: form-status-in 0.3s ease;
}

#form-status.form-status-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#form-status.form-status-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] #form-status.form-status-success {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] #form-status.form-status-error {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes form-status-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(36, 56, 185, 0.1);
}

/* Valid state */
.contact-form input:valid,
.contact-form textarea:valid {
    border-color: #10b981;
}

/* Invalid state */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Error message styles */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: "⚠";
    font-size: 1rem;
}

/* Disabled state for submit button */
.contact-form button:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.contact-form button,
.btn-primary {
    padding: 14px 32px;
    background: var(--accent-gold);
    color: var(--text-inverted);
    border: 2px solid var(--accent-gold);
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.contact-form button:hover,
.btn-primary:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

/* Footer */
/* Section Manifesto — A4 v2 : respiration éditoriale entre About et Testimonials.
 * Fond crème renforcé (vs bleu) pour vraiment se distinguer de testimonials.
 * Guillemet XXL doré marqué, citation Fraunces XL, signature intégrée. */
.manifesto-section {
    background: var(--bg-secondary);
    padding: 90px var(--section-padding-x);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(192, 162, 123, 0.18);
    border-bottom: 1px solid rgba(192, 162, 123, 0.18);
}

.manifesto-section .container {
    position: relative;
    max-width: 820px;
}

.manifesto-section::before {
    /* Guillemet XXL en background — plus marqué, ancré en haut centré */
    content: "\201C";
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 9rem;
    line-height: 0.85;
    color: var(--accent-gold);
    opacity: 0.35;
    pointer-events: none;
    font-variation-settings: "opsz" 144;
    z-index: 0;
}

.manifesto-quote {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding-top: 80px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2.4rem);
    line-height: 1.35;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}

.manifesto-quote p {
    color: var(--primary-color);
    margin-bottom: 0.4em;
}

.manifesto-quote p:last-child {
    margin-bottom: 0;
}

.manifesto-cite {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-lg);
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-gold-dark);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.manifesto-cite::before {
    content: "";
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent-gold);
}

[data-theme="dark"] .manifesto-section {
    background: var(--bg-secondary);
    border-color: rgba(192, 162, 123, 0.2);
}
[data-theme="dark"] .manifesto-section::before {
    color: var(--accent-gold-light);
    opacity: 0.18;
}
[data-theme="dark"] .manifesto-quote,
[data-theme="dark"] .manifesto-quote p {
    color: var(--text-primary);
}

/* === Variante immersive — photo coaching en arrière-plan désaturée === */
.manifesto-section.manifesto-immersive {
    background: #1A1A1A;
    border-color: rgba(192, 162, 123, 0.35);
    color: #fff;
    isolation: isolate;
}
.manifesto-section.manifesto-immersive::after {
    /* Background photo : Agathe seule visible, posture pédagogique sans
     * ambiguïté, aucun visage tiers. Droit à l'image OK pour usage public. */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/agathe-workshop-puissance.jpg?v=2026-05-17');
    background-size: cover;
    background-position: center 30%;
    filter: grayscale(1) brightness(0.35) contrast(1.05);
    z-index: 0;
    pointer-events: none;
}
.manifesto-section.manifesto-immersive::before {
    color: var(--accent-gold);
    opacity: 0.55;
    z-index: 1;
}
.manifesto-section.manifesto-immersive .container {
    position: relative;
    z-index: 2;
}
.manifesto-section.manifesto-immersive .manifesto-quote,
.manifesto-section.manifesto-immersive .manifesto-quote p {
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.manifesto-section.manifesto-immersive .manifesto-cite {
    color: var(--accent-gold-light, #D4B68F);
}
.manifesto-section.manifesto-immersive .manifesto-cite::before {
    background: var(--accent-gold);
}
[data-theme="dark"] .manifesto-section.manifesto-immersive {
    background: #0F0F0F;
}

/* Footer — Y8 : multi-colonnes éditorial Yolo direct */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 70px 0 28px;
}

.footer .container {
    padding: 0 var(--section-padding-x);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 48px;
    padding-bottom: 36px;
}

/* Brand column (logo + tagline Fraunces + social) */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-agapeo-logo {
    /* Logo officiel Agapèo (carré rouge + symbole infinity blanc + texte
     * "AGAPÈO" blanc) affiché sans filtre. Le rouge contraste bien avec le
     * bleu primary du footer. Le filtre brightness(0) invert(1) précédent
     * transformait le logo en carré blanc plein, faisant disparaître tous
     * les détails. */
    height: 44px;
    width: auto;
    opacity: 1;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.footer-agapeo-logo:hover {
    transform: scale(1.05);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.5rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 340px;
    font-variation-settings: "opsz" 144;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-social-link {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-inverted);
    transform: translateY(-1px);
}

/* Column header + links */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.footer-col a,
.footer-col span {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold-light);
}

/* Bottom row : copyright + privacy */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.privacy-badge {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   v1.4.0 — REFONTE COPY (2026-05-16)
   Nouvelles classes pour copy refondue
   ======================================== */

/* Emprunt Yolo : eyebrow avec title-line décoratif.
 * Petit sur-titre doré encadré de 2 traits horizontaux. Crée une mini
 * typographie éditoriale qui structure visuellement les sections clés. */
.eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--accent-gold);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background: var(--accent-gold);
}

[data-theme="dark"] .eyebrow {
    color: var(--accent-gold-light);
}
[data-theme="dark"] .eyebrow::before,
[data-theme="dark"] .eyebrow::after {
    background: var(--accent-gold-light);
}

/* Section Pillars — intro et bridge */
.pillars-intro {
    text-align: center;
    max-width: 640px;
    margin: -40px auto 60px;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.6;
}

.pillars-bridge {
    text-align: center;
    max-width: 720px;
    margin: 60px auto 0;
    color: var(--text-primary);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.pillars-bridge strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Section Services — intro et CTA final */
.services-intro {
    text-align: center;
    max-width: 720px;
    margin: -40px auto 60px;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.6;
}

.service-tagline {
    font-style: italic;
    color: var(--accent-gold-dark);
    font-size: 1rem !important;
    margin-bottom: var(--space-md) !important;
    line-height: 1.5;
}

.services-cta-final {
    max-width: 720px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border: 1px solid var(--accent-gold-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.services-cta-final h3 {
    color: var(--primary-color);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.services-cta-final p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* Override : avec 3 cards, le featured reste centré mais ne prend plus toute la ligne */
.services-grid .service-card-featured {
    grid-column: auto;
    max-width: none;
    margin: 0;
}

/* Section Testimonials — 3 cards + avatar + source */
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    position: relative;
}

/* Emprunt Yolo : guillemet XXL débordant le coin haut-gauche de la card,
 * remplace symboliquement l'avatar initiales. Effet "sortir du cadre". */
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -28px;
    left: 14px;
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 800;
    font-size: 7rem;
    line-height: 1;
    color: var(--accent-gold-light);
    pointer-events: none;
    font-variation-settings: "opsz" 144;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-round);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-source {
    display: inline-block;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    /* Doré clair pour qualifier la source crédible (recommandation LinkedIn)
     * sans dominer la citation. WCAG AA OK sur fond bleu --primary-color. */
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    text-decoration: underline;
    text-decoration-color: rgba(212, 182, 143, 0.3);
    text-underline-offset: 3px;
}

.testimonial-source:hover {
    color: var(--text-white);
    text-decoration-color: var(--text-white);
}

/* Section FAQ — sections thématiques */
.faq-section-title {
    color: var(--primary-color);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: var(--space-2xl) auto var(--space-md);
    max-width: 800px;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-gold-subtle);
    text-align: left;
}

.faq-section-title:first-of-type {
    margin-top: 0;
}

.faq-answer ul {
    margin: var(--space-sm) 0 var(--space-sm) var(--space-lg);
    list-style: disc;
}

.faq-answer ul li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer p + p {
    margin-top: var(--space-sm);
}

/* Section Contact — intro et CTA Lemcal */
.contact-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl) !important;
    color: var(--text-secondary);
    font-size: var(--text-lg) !important;
    line-height: 1.6;
}

.contact-cta-main {
    text-align: center;
    margin: 0 auto var(--space-2xl);
}

.contact-cta-main .btn-primary {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-2xl);
    box-shadow: var(--shadow-gold);
}

.contact-cta-main .btn-primary:hover {
    box-shadow: var(--shadow-gold-hover);
    transform: translateY(-2px);
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-item em {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Dark mode adjustments */
[data-theme="dark"] .services-cta-final {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border-color: var(--accent-gold-subtle);
}

[data-theme="dark"] .testimonial-source {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .testimonial-source:hover {
    color: var(--accent-gold-light);
}

[data-theme="dark"] .faq-section-title {
    border-bottom-color: var(--accent-gold-subtle);
}

/* ========================================
   CAROUSEL MOBILE — Dots de pagination (style Yolo)
   Base : masqué partout, activé uniquement ≤768px via le bloc responsive
   ======================================== */
.carousel-dots {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-controls {
        gap: 15px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* .hamburger { display: flex } déjà géré ligne 605-607.
     * .nav-menu { display: none } RETIRÉ : il bloquait le slide-in
     * fonctionnel (la 1re media query gère l'affichage via left: -100% /
     * left: 0). Bug: clic hamburger ajoutait .active mais le menu restait
     * caché à cause de cette règle dupliquée plus bas dans le fichier. */

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    .credentials {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .logo-container {
        gap: 10px;
    }

    .agapeo-logo {
        height: 40px;
    }

    .coach-name h2 {
        font-size: 1.1rem;
    }

    .coach-title {
        font-size: 0.7rem;
    }

    /* Photos Hero / About — éviter le débordement horizontal */
    .hero-photo,
    .about-photo {
        width: min(72vw, 320px);
        height: min(72vw, 320px);
        border-width: 3px;
    }

    .hero-image,
    .about-image {
        min-height: min(78vw, 360px);
    }

    .hero-image::before,
    .about-image::before {
        width: min(78vw, 360px);
        height: min(78vw, 360px);
    }

    .hero-image::before {
        transform: translate(-50%, -50%) translate(18px, 18px);
    }

    .about-image::before {
        transform: translate(-50%, -50%) translate(-18px, -18px);
    }

    .hero-image::after,
    .about-image::after {
        font-size: 2.25rem;
    }

    /* ===== Carrousels mobile (Piliers, Services, Témoignages) =====
     * Pattern inspiré de Yolo : 1 card visible, swipe natif scroll-snap,
     * dots de pagination en dessous. Aucune dépendance externe. */
    .pillars-grid,
    .services-grid,
    .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--space-md);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: var(--space-md) var(--space-md) var(--space-lg);
        margin: 0 calc(-1 * var(--space-md));
        scroll-padding: var(--space-md);
    }

    .pillars-grid::-webkit-scrollbar,
    .services-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .pillar-card,
    .service-card,
    .testimonial {
        flex: 0 0 calc(100% - 2 * var(--space-md));
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    /* Dots de pagination — style Yolo (actif allongé doré) */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: var(--space-md);
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--border-color);
        border: 0;
        padding: 0;
        cursor: pointer;
        transition: width 0.3s ease, background 0.3s ease;
    }

    .carousel-dot[aria-current="true"] {
        width: 24px;
        background: var(--accent-gold);
    }

    .carousel-dot:focus-visible {
        outline: 2px solid var(--accent-gold);
        outline-offset: 3px;
    }

    /* Section Témoignages : fond bleu → dots adaptés */
    .testimonials .carousel-dot {
        background: rgba(255, 255, 255, 0.3);
    }

    .testimonials .carousel-dot[aria-current="true"] {
        background: var(--accent-gold);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .services h2,
    .about-text h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-photo,
    .about-photo {
        width: min(68vw, 240px);
        height: min(68vw, 240px);
    }

    .hero-image,
    .about-image {
        min-height: min(74vw, 280px);
    }

    .hero-image::before,
    .about-image::before {
        width: min(74vw, 280px);
        height: min(74vw, 280px);
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
