/* ============================================
   SÉBASTIEN BELDENT — Coach Professionnel
   Design v2 — Dark Warm Charcoal + Cuivre/Ambre
   Awwwards-level · Codex Technique v2.0
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

/* ============================================
   @LAYER
   ============================================ */
@layer reset, base, layout, components, sections, utilities;

/* ============================================
   LAYER: RESET
   ============================================ */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
    body { min-height: 100dvh; }
    img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
    input, button, textarea, select { font: inherit; }
    a { color: inherit; text-decoration: none; }
    ul, ol { list-style: none; }
    h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; text-wrap: balance; }
    p { text-wrap: pretty; }
}

/* ============================================
   LAYER: BASE
   ============================================ */
@layer base {

    /* --- Animated gradient via @property --- */
    @property --glow-opacity {
        syntax: "<number>";
        inherits: false;
        initial-value: 0.08;
    }

    :root {
        /* Palette — Dark Warm Charcoal + Cuivre */
        --surface-0: #0f0e0c;
        --surface-1: #171613;
        --surface-2: #1e1d19;
        --surface-3: #282620;
        --surface-4: #33302a;

        --cuivre: #c8956c;
        --cuivre-light: #dab08a;
        --cuivre-dark: #a07350;
        --cuivre-glow: rgba(200, 149, 108, 0.15);
        --ambre: #e8a857;
        --ambre-muted: rgba(232, 168, 87, 0.12);

        --text-primary: #f2efe9;
        --text-secondary: #a09a8e;
        --text-muted: #6b6560;
        --text-on-accent: #0f0e0c;

        --border: rgba(255, 255, 255, 0.06);
        --border-hover: rgba(200, 149, 108, 0.25);

        /* Typographies */
        --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
        --font-sans: "Inter", system-ui, -apple-system, sans-serif;

        /* Fluid type scale (Utopia-inspired) */
        --text-xs: clamp(0.694rem, 0.65rem + 0.2vw, 0.8rem);
        --text-sm: clamp(0.833rem, 0.77rem + 0.3vw, 1rem);
        --text-base: clamp(1rem, 0.91rem + 0.45vw, 1.15rem);
        --text-lg: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);
        --text-xl: clamp(1.44rem, 1.2rem + 1.2vw, 2rem);
        --text-2xl: clamp(1.728rem, 1.3rem + 2.1vw, 2.8rem);
        --text-3xl: clamp(2.074rem, 1.4rem + 3.4vw, 4rem);
        --text-4xl: clamp(2.488rem, 1.2rem + 6.4vw, 6rem);
        --text-hero: clamp(3.5rem, 1.5rem + 10vw, 9rem);

        /* Spacing */
        --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
        --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
        --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
        --space-lg: clamp(3rem, 2.5rem + 2.5vw, 5rem);
        --space-xl: clamp(5rem, 4rem + 5vw, 9rem);
        --space-2xl: clamp(7rem, 5rem + 8vw, 14rem);

        /* Transitions */
        --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        --duration: 0.4s;
        --duration-slow: 0.7s;

        /* Layout */
        --max-w: 1200px;
        --max-w-narrow: 720px;
        --max-w-wide: 1400px;
        --nav-h: 72px;
        --radius: 12px;
        --radius-lg: 20px;
    }

    body {
        font-family: var(--font-sans);
        font-size: var(--text-base);
        line-height: 1.7;
        color: var(--text-primary);
        background: var(--surface-0);
        position: relative;
        overflow-x: hidden;
    }

    /* Grain texture overlay */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 9999;
        opacity: 0.5;
        mix-blend-mode: overlay;
    }

    h1, h2, h3, h4 {
        font-family: var(--font-serif);
        color: var(--text-primary);
        line-height: 1.05;
        font-weight: 400;
        letter-spacing: -0.02em;
    }

    h1 { font-size: var(--text-hero); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }

    strong { color: var(--cuivre); font-weight: 500; }

    ::selection {
        background: var(--cuivre);
        color: var(--surface-0);
    }

    :focus-visible {
        outline: 2px solid var(--cuivre);
        outline-offset: 3px;
    }
}

/* ============================================
   LAYER: LAYOUT
   ============================================ */
@layer layout {
    .container {
        width: 100%;
        max-width: var(--max-w);
        margin-inline: auto;
        padding-inline: var(--space-md);
    }
    .container--narrow { max-width: var(--max-w-narrow); }
    .container--wide { max-width: var(--max-w-wide); }

    .section {
        padding-block: var(--space-xl);
        position: relative;
    }

    .section--surface1 { background: var(--surface-1); }
    .section--surface2 { background: var(--surface-2); }

    .grid {
        display: grid;
        gap: var(--space-md);
    }
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
        @media (width < 768px) { grid-template-columns: 1fr; }
    }
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
        @media (width < 900px) { grid-template-columns: 1fr; }
    }
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
        @media (width < 1100px) { grid-template-columns: repeat(2, 1fr); }
        @media (width < 600px) { grid-template-columns: 1fr; }
    }
}

/* ============================================
   LAYER: COMPONENTS
   ============================================ */
@layer components {

    /* --- NAVIGATION --- */
    .nav {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1000;
        height: var(--nav-h);
        display: flex;
        align-items: center;
        padding-inline: var(--space-md);
        background: rgba(15, 14, 12, 0.6);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid transparent;
        transition: all var(--duration) var(--ease);

        &.nav--scrolled {
            background: rgba(15, 14, 12, 0.92);
            border-bottom-color: var(--border);
        }
    }

    .nav__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: var(--max-w-wide);
        margin-inline: auto;
    }

    .nav__logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav__logo-text {
        font-family: var(--font-serif);
        font-size: 1.25rem;
        font-weight: 500;
        color: var(--text-primary);
        letter-spacing: 0.01em;
    }

    .nav__links {
        display: flex;
        align-items: center;
        gap: 2.25rem;
        @media (width < 900px) { display: none; }
    }

    .nav__link {
        font-size: var(--text-sm);
        font-weight: 400;
        color: var(--text-secondary);
        letter-spacing: 0.02em;
        transition: color var(--duration) var(--ease);
        position: relative;

        &::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--cuivre);
            transition: width var(--duration) var(--ease);
        }

        &:hover {
            color: var(--text-primary);
            &::after { width: 100%; }
        }
    }

    .nav__cta {
        padding: 0.6rem 1.35rem;
        background: var(--cuivre);
        color: var(--text-on-accent);
        font-size: var(--text-sm);
        font-weight: 600;
        border-radius: 6px;
        transition: all var(--duration) var(--ease);

        &:hover {
            background: var(--cuivre-light);
            transform: translateY(-1px);
            box-shadow: 0 8px 30px var(--cuivre-glow);
        }
    }

    .nav__toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        @media (width < 900px) { display: flex; }

        & span {
            display: block;
            width: 22px;
            height: 1.5px;
            background: var(--text-primary);
            transition: all var(--duration) var(--ease);
            border-radius: 1px;
        }
        &.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
        &.active span:nth-child(2) { opacity: 0; }
        &.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
    }

    .nav__mobile {
        display: none;
        position: fixed;
        top: var(--nav-h); left: 0; right: 0; bottom: 0;
        background: var(--surface-0);
        padding: var(--space-lg) var(--space-md);
        z-index: 999;

        &.active {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        & a {
            font-family: var(--font-serif);
            font-size: var(--text-xl);
            color: var(--text-primary);
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border);
        }
    }

    /* --- BUTTONS --- */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 0.9rem 1.8rem;
        font-family: var(--font-sans);
        font-size: var(--text-sm);
        font-weight: 500;
        letter-spacing: 0.04em;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        transition: all var(--duration) var(--ease);
        text-decoration: none;
        white-space: nowrap;
        position: relative;
    }

    .btn--primary {
        background: var(--cuivre);
        color: var(--text-on-accent);

        &:hover {
            background: var(--cuivre-light);
            transform: translateY(-2px);
            box-shadow: 0 12px 35px var(--cuivre-glow);
        }
    }

    .btn--outline {
        background: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-hover);

        &:hover {
            border-color: var(--cuivre);
            color: var(--cuivre);
            background: rgba(200, 149, 108, 0.05);
        }
    }

    .btn--ghost {
        background: transparent;
        color: var(--cuivre);
        padding: 0;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: var(--text-xs);

        &::after {
            content: "→";
            transition: transform var(--duration) var(--ease);
        }
        &:hover::after { transform: translateX(4px); }
    }

    .btn--large {
        padding: 1.1rem 2.2rem;
        font-size: var(--text-base);
    }

    /* --- GLASS CARDS --- */
    .card {
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        transition: all var(--duration-slow) var(--ease);
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--cuivre-glow), transparent);
            opacity: 0;
            transition: opacity var(--duration) var(--ease);
        }

        &:hover {
            border-color: var(--border-hover);
            background: rgba(255, 255, 255, 0.04);
            transform: translateY(-6px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-hover);
            &::before { opacity: 1; }
        }
    }

    .card__icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--ambre-muted);
        border-radius: 10px;
        margin-bottom: var(--space-sm);
        color: var(--cuivre);
    }

    .card__title {
        font-family: var(--font-serif);
        font-size: var(--text-xl);
        margin-bottom: 0.6rem;
    }

    .card__text {
        color: var(--text-secondary);
        font-size: var(--text-sm);
        line-height: 1.75;
    }

    .card__link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: var(--space-sm);
        font-weight: 500;
        color: var(--cuivre);
        font-size: var(--text-sm);
        letter-spacing: 0.04em;
        transition: gap var(--duration) var(--ease);

        &::after { content: "→"; }
        &:hover { gap: 0.75rem; }
    }

    /* --- SECTION HEADERS --- */
    .section__header {
        text-align: center;
        max-width: var(--max-w-narrow);
        margin-inline: auto;
        margin-bottom: var(--space-lg);
    }

    .section__eyebrow {
        font-family: var(--font-sans);
        font-size: var(--text-xs);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.25em;
        color: var(--cuivre);
        margin-bottom: var(--space-xs);
    }

    .section__subtitle {
        font-family: var(--font-serif);
        font-size: var(--text-lg);
        font-style: italic;
        color: var(--text-secondary);
        font-weight: 300;
        margin-top: var(--space-xs);
    }

    /* --- STATS --- */
    .stats {
        display: flex;
        justify-content: center;
        gap: var(--space-lg);
        flex-wrap: wrap;
    }

    .stat__number {
        font-family: var(--font-serif);
        font-size: var(--text-3xl);
        font-weight: 300;
        color: var(--cuivre);
        line-height: 1;
    }

    .stat__label {
        font-size: var(--text-xs);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
        margin-top: 0.35rem;
    }

    /* --- TESTIMONIALS --- */
    .testimonial {
        position: relative;
        padding: var(--space-md);
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        border-left: 3px solid var(--cuivre);
    }

    .testimonial__quote {
        font-family: var(--font-serif);
        font-size: var(--text-lg);
        font-style: italic;
        color: var(--text-primary);
        line-height: 1.8;
        margin-bottom: var(--space-sm);
        font-weight: 300;

        &::before {
            content: "\201C";
            font-size: 3.5rem;
            color: var(--cuivre);
            line-height: 0;
            vertical-align: -0.5em;
            margin-right: 0.1em;
            opacity: 0.6;
        }
    }

    .testimonial__author {
        font-weight: 600;
        font-size: var(--text-sm);
        color: var(--cuivre);
    }

    .testimonial__role {
        font-size: var(--text-xs);
        color: var(--text-muted);
    }

    /* --- FORMS --- */
    .form { display: grid; gap: var(--space-sm); }
    .form__group { display: flex; flex-direction: column; gap: 0.3rem; }
    .form__label { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }

    .form__input,
    .form__textarea {
        padding: 0.85rem 1rem;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface-2);
        font-size: var(--text-base);
        color: var(--text-primary);
        transition: border-color var(--duration) var(--ease);

        &:focus {
            outline: none;
            border-color: var(--cuivre);
            box-shadow: 0 0 0 3px var(--cuivre-glow);
        }
        &::placeholder { color: var(--text-muted); }
    }

    .form__textarea { min-height: 140px; resize: vertical; }
    .form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

    /* --- BADGE --- */
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.3rem 0.75rem;
        background: var(--ambre-muted);
        color: var(--cuivre);
        font-size: var(--text-xs);
        font-weight: 600;
        letter-spacing: 0.06em;
        border-radius: 4px;
        text-transform: uppercase;
    }

    /* --- TAGS --- */
    .tag {
        display: inline-block;
        padding: 0.3rem 0.7rem;
        background: var(--surface-3);
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: var(--text-xs);
        font-weight: 500;
        color: var(--text-secondary);
        transition: all var(--duration) var(--ease);

        &:hover {
            border-color: var(--border-hover);
            color: var(--cuivre);
        }
    }

    .tag--sector {
        background: transparent;
        border-color: var(--border);
        color: var(--text-muted);
        font-size: 0.7rem;
    }

    /* --- DIVIDER --- */
    .divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, var(--cuivre), transparent);
        margin-block: var(--space-sm);
    }

    .divider--center {
        margin-inline: auto;
    }

    /* --- ICON LIST (check marks) --- */
    .icon-list {
        color: var(--text-secondary);
        line-height: 2;
        padding-left: 0;
    }

    .icon-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .icon-list li::before {
        content: "";
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 0.35em;
        background: var(--cuivre);
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        mask-size: contain;
        -webkit-mask-size: contain;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
    }

    /* --- FOOTER --- */
    .footer {
        background: var(--surface-1);
        border-top: 1px solid var(--border);
        padding-block: var(--space-xl) var(--space-md);
    }

    .footer__grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
        @media (width < 900px) { grid-template-columns: 1fr 1fr; }
        @media (width < 600px) { grid-template-columns: 1fr; }
    }

    .footer__brand {
        font-family: var(--font-serif);
        font-size: var(--text-xl);
        margin-bottom: 0.5rem;
    }

    .footer__tagline {
        font-family: var(--font-serif);
        font-style: italic;
        color: var(--text-muted);
        font-size: var(--text-sm);
        margin-bottom: 1rem;
    }

    .footer__col h4 {
        font-family: var(--font-sans);
        font-size: var(--text-xs);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--cuivre);
        margin-bottom: 1rem;
    }

    .footer__col a {
        display: block;
        color: var(--text-muted);
        font-size: var(--text-sm);
        padding-block: 0.3rem;
        transition: color var(--duration) var(--ease);
        &:hover { color: var(--text-primary); }
    }

    .footer__bottom {
        border-top: 1px solid var(--border);
        padding-top: var(--space-md);
        text-align: center;
        font-size: var(--text-xs);
        color: var(--text-muted);
        & a { color: var(--text-secondary); &:hover { color: var(--cuivre); } }
    }

    .footer__social {
        display: flex;
        gap: 0.75rem;
        margin-top: 1rem;

        & a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px; height: 38px;
            border-radius: 50%;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            transition: all var(--duration) var(--ease);
            &:hover { border-color: var(--cuivre); color: var(--cuivre); background: var(--ambre-muted); }
        }
        & svg { width: 16px; height: 16px; }
    }
}

/* ============================================
   LAYER: SECTIONS
   ============================================ */
@layer sections {

    /* --- HERO — Cinematic full-screen photo --- */
    .hero {
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: calc(var(--nav-h) + 2rem);
        position: relative;
        overflow: hidden;
    }

    /* Background photo — right side, text left */
    .hero__bg {
        position: absolute;
        inset: 0;
        background: url('../img/photo-sbeldent-nobg.webp') right bottom / auto 92% no-repeat;
        filter: brightness(1.15) contrast(1.05) saturate(0.75);
        transform: scale(1.04);
        transition: transform 14s ease-out;

        /* Fade on lower edge + left fade toward text */
        mask-image:
            linear-gradient(to bottom, black 60%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 30%, black 100%);
        mask-composite: intersect;
        -webkit-mask-image:
            linear-gradient(to bottom, black 60%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 30%, black 100%);
        -webkit-mask-composite: source-in;

        @media (width < 900px) {
            background: url('../img/photo-sbeldent-nobg.webp') center bottom / auto 65% no-repeat;
            filter: brightness(0.55) contrast(1.1) saturate(0.6);
            mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        }
    }

    .hero:hover .hero__bg {
        transform: scale(1.0);
    }

    /* Overlay: cuivre spotlight top + gradient fade bottom */
    .hero__overlay {
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(200, 149, 108, 0.1) 0%, transparent 50%),
            linear-gradient(180deg,
                rgba(15, 14, 12, 0.1) 0%,
                rgba(15, 14, 12, 0.02) 25%,
                rgba(15, 14, 12, 0.2) 50%,
                rgba(15, 14, 12, 0.8) 75%,
                var(--surface-0) 100%
            );
        pointer-events: none;
    }

    /* Content over photo — left aligned */
    .hero__content--centered {
        position: relative;
        z-index: 2;
        text-align: left;
        padding: 2rem;
        max-width: 1200px;
        width: 100%;
        margin-inline: auto;

        @media (width < 900px) {
            text-align: center;
        }
    }

    /* Grid layout for other pages (a-propos, dirigeants, entreprises) */
    .hero__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }

    .hero__image {
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .hero__image picture,
    .hero__image img {
        max-height: 80vh;
        width: auto;
        object-fit: contain;
    }

    .hero__eyebrow {
        font-family: var(--font-sans);
        font-size: var(--text-xs);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.35em;
        color: var(--cuivre);
        margin-bottom: var(--space-md);
        display: flex;
        align-items: center;
        gap: 1rem;
        opacity: 0;
        animation: hero-fadeUp 0.8s var(--ease-out) 0.3s forwards;

        &::before {
            content: "";
            width: 36px;
            height: 1px;
            background: var(--cuivre);
        }

        @media (width < 900px) {
            justify-content: center;
            &::after { content: ""; width: 36px; height: 1px; background: var(--cuivre); }
        }
    }

    .hero__title {
        margin-bottom: var(--space-md);
        font-weight: 300;
        opacity: 0;
        animation: hero-fadeUp 0.9s var(--ease-out) 0.5s forwards;

        & .highlight {
            font-style: italic;
            background: linear-gradient(135deg, var(--cuivre), var(--ambre));
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }
    }

    .hero__subtitle {
        font-size: var(--text-lg);
        font-weight: 300;
        color: var(--text-secondary);
        line-height: 1.85;
        margin-bottom: var(--space-md);
        opacity: 0;
        animation: hero-fadeUp 0.9s var(--ease-out) 0.7s forwards;

        & em { color: var(--cuivre); font-style: italic; }
    }

    .hero__ctas {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        opacity: 0;
        animation: hero-fadeUp 0.8s var(--ease-out) 0.9s forwards;

        @media (width < 900px) {
            justify-content: center;
        }
    }

    /* Stats bar inside hero */
    .hero__stats {
        display: flex;
        justify-content: flex-start;
        gap: clamp(1.5rem, 4vw, 3.5rem);
        margin-top: var(--space-lg);
        padding-top: var(--space-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        animation: hero-fadeUp 0.8s var(--ease-out) 1.2s forwards;

        @media (width < 900px) {
            justify-content: center;
        }

        @media (width < 600px) {
            flex-wrap: wrap;
            gap: 1.25rem;
        }
    }

    .hero__stat { text-align: center; }

    .hero__stat-number {
        font-family: var(--font-serif);
        font-size: var(--text-2xl);
        font-weight: 300;
        color: var(--cuivre);
        line-height: 1;
    }

    .hero__stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
        margin-top: 0.3rem;
    }

    /* Hero entry animations */
    @keyframes hero-fadeUp {
        from {
            opacity: 0;
            transform: translateY(25px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Keep .hero__grid for other pages that still use it */
    .hero__grid {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: var(--space-lg);
        align-items: center;
        position: relative;
        z-index: 2;

        @media (width < 900px) {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }

    /* Keep .hero__image for other pages */
    .hero__image {
        position: relative;
        @media (width < 900px) {
            max-width: 360px;
            margin-inline: auto;
            order: -1;
        }

        & img {
            border-radius: var(--radius-lg);
            width: 100%;
            object-fit: cover;
            filter: grayscale(20%) contrast(1.05);
            transition: filter var(--duration-slow) var(--ease);
        }

        &:hover img {
            filter: grayscale(0%) contrast(1);
        }

        /* Glow behind image */
        &::before {
            content: "";
            position: absolute;
            inset: -20px;
            background: radial-gradient(ellipse at center, var(--cuivre-glow), transparent 70%);
            z-index: -1;
            border-radius: var(--radius-lg);
        }
    }

    /* --- STATS BAR --- */
    .stats-bar {
        padding-block: var(--space-lg);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    /* --- PAIN POINTS --- */
    .pain-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        text-align: center;
        transition: all var(--duration-slow) var(--ease);

        &:hover {
            border-color: var(--border-hover);
            transform: translateY(-4px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }
    }

    .pain-card__stat {
        font-family: var(--font-serif);
        font-size: var(--text-3xl);
        font-weight: 300;
        color: var(--cuivre);
        line-height: 1;
    }

    .pain-card__title {
        font-family: var(--font-sans);
        font-size: var(--text-sm);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-primary);
        margin-block: 0.75rem;
    }

    .pain-card__text {
        color: var(--text-secondary);
        font-size: var(--text-sm);
        line-height: 1.75;
    }

    .pain-card__source {
        font-size: var(--text-xs);
        color: var(--text-muted);
        margin-top: 0.75rem;
    }

    /* --- CTA SECTION --- */
    .cta-section {
        text-align: center;
        padding-block: var(--space-2xl);
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 120%;
            height: 120%;
            background: radial-gradient(ellipse at center, var(--cuivre-glow), transparent 60%);
            pointer-events: none;
            opacity: 0.5;
        }
    }

    .cta-section__title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-sm);
        position: relative;

        & .highlight {
            font-style: italic;
            color: var(--cuivre);
        }
    }

    .cta-section__subtitle {
        font-family: var(--font-serif);
        font-size: var(--text-lg);
        font-style: italic;
        color: var(--text-secondary);
        margin-bottom: var(--space-md);
        position: relative;
        font-weight: 300;
    }

    /* --- QUOTE BLOCK --- */
    .quote-block {
        font-family: var(--font-serif);
        font-size: var(--text-2xl);
        font-style: italic;
        font-weight: 300;
        color: var(--text-primary);
        text-align: center;
        max-width: 700px;
        margin-inline: auto;
        padding-block: var(--space-lg);
        position: relative;

        &::before, &::after {
            content: "";
            display: block;
            width: 40px;
            height: 1px;
            background: var(--cuivre);
            margin-inline: auto;
        }
        &::before { margin-bottom: var(--space-md); }
        &::after { margin-top: var(--space-md); }
    }

    /* --- PRICING --- */
    .format-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        text-align: center;
        transition: all var(--duration-slow) var(--ease);
        position: relative;

        &:hover {
            border-color: var(--border-hover);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        }
    }

    .format-card--featured {
        border-color: var(--cuivre);
        background: linear-gradient(180deg, rgba(200, 149, 108, 0.06) 0%, transparent 100%);

        &::before {
            content: "Recommandé";
            position: absolute;
            top: -11px; left: 50%;
            transform: translateX(-50%);
            background: var(--cuivre);
            color: var(--text-on-accent);
            padding: 0.2rem 0.9rem;
            border-radius: 50px;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
    }

    .format-card__duration {
        font-family: var(--font-serif);
        font-size: var(--text-2xl);
        font-weight: 300;
        color: var(--cuivre);
    }

    .format-card__name {
        font-family: var(--font-sans);
        font-size: var(--text-sm);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-block: 0.5rem;
    }

    .format-card__desc {
        font-size: var(--text-sm);
        color: var(--text-secondary);
        margin-bottom: 1.25rem;
    }

    .format-card__price {
        font-family: var(--font-serif);
        font-size: var(--text-lg);
        font-weight: 500;
        color: var(--text-primary);
    }
}

/* ============================================
   LAYER: UTILITIES
   ============================================ */
@layer utilities {
    .text-center { text-align: center; }
    .text-cuivre { color: var(--cuivre); }
    .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; }

    /* Scroll reveal */
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }

    /* Gradient text */
    .gradient-text {
        background: linear-gradient(135deg, var(--cuivre), var(--ambre));
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-1);
    transition: border-color var(--duration) var(--ease);
}

.faq-item[open] {
    border-color: var(--border-hover);
}

.faq-question {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: "+";
    font-size: var(--text-lg);
    color: var(--cuivre);
    flex-shrink: 0;
    transition: transform var(--duration) var(--ease);
}

.faq-item[open] .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   VIEW TRANSITIONS
   ============================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 200ms ease-out both vt-fade-out; }
::view-transition-new(root) { animation: 200ms ease-in both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--cuivre), var(--ambre));
    transform-origin: left;
    z-index: 1001;
    animation: scroll-grow linear;
    animation-timeline: scroll(root block);
}
@keyframes scroll-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================
   RESPONSIVE — Global overrides
   ============================================ */

/* Tablet landscape */
@media (width < 1100px) {
    .hero__content--centered { max-width: 55%; }
    .hero__grid { gap: var(--space-lg); }
}

/* Tablet portrait */
@media (width < 900px) {
    .nav { padding-inline: var(--space-sm); }

    .hero {
        padding-top: calc(var(--nav-h) + 1rem);
        min-height: 100dvh;
    }

    .hero__content--centered {
        text-align: center;
        max-width: 100%;
        padding: 1.5rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .hero__image {
        order: -1;
    }

    .hero__image img {
        max-height: 50vh;
    }

    .hero__stats {
        justify-content: center;
    }

    .section { padding-block: var(--space-lg); }

    .section__header { margin-bottom: var(--space-md); }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .quote-block { font-size: var(--text-xl); }

    .testimonial { padding: var(--space-sm); }
    .testimonial__quote { font-size: var(--text-base); }
}

/* Mobile */
@media (width < 600px) {
    :root {
        --nav-h: 60px;
    }

    .nav { padding-inline: 1rem; }
    .nav__logo-text { font-size: 1rem; }

    .hero {
        padding-top: calc(var(--nav-h) + 0.5rem);
        padding-bottom: var(--space-md);
    }

    .hero__title { font-size: clamp(2.5rem, 12vw, 4.5rem); }

    .hero__subtitle {
        font-size: var(--text-base);
        max-width: 100% !important;
    }

    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__ctas .btn { justify-content: center; }

    .hero__stats {
        gap: 1rem;
    }

    .hero__stat-number { font-size: var(--text-xl); }
    .hero__stat-label { font-size: 0.6rem; }

    .section { padding-block: var(--space-md); }

    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .card { padding: var(--space-sm); }

    .pain-card { padding: var(--space-sm); }
    .pain-card__stat { font-size: var(--text-2xl); }

    .stats { gap: var(--space-sm); }
    .stat__number { font-size: var(--text-2xl); }

    .btn--large {
        padding: 1rem 1.5rem;
        font-size: var(--text-sm);
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .cta-section { padding-block: var(--space-xl); }
    .cta-section__title { font-size: var(--text-2xl); }

    .format-card { padding: var(--space-sm); }

    .quote-block {
        font-size: var(--text-lg);
        padding-block: var(--space-md);
    }
}

/* Small mobile */
@media (width < 380px) {
    .hero__title { font-size: 2.2rem; }
    .nav__logo-text { display: none; }
    .hero__stats { flex-direction: column; gap: 0.75rem; }
}

/* Large screens */
@media (width >= 1800px) {
    .hero__content--centered { max-width: 50%; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================
   CONTAINER QUERIES — Component-level responsive
   ============================================ */
.grid--3,
.grid--4,
.footer__grid {
    container-type: inline-size;
}

@container (width < 500px) {
    .card { padding: var(--space-sm); }
    .card__title { font-size: var(--text-lg); }
    .pain-card { padding: var(--space-sm); }
    .pain-card__stat { font-size: var(--text-2xl); }
    .format-card { padding: var(--space-sm); }
}

@container (width < 350px) {
    .card__icon { width: 40px; height: 40px; }
    .card__text { font-size: var(--text-xs); }
}

/* ============================================
   TOUCH DEVICES — Larger tap targets
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 0.95rem 1.8rem;
    }

    .nav__cta {
        min-height: 44px;
        padding: 0.7rem 1.5rem;
    }

    .nav__mobile a {
        min-height: 48px;
        padding: 0.75rem 0;
    }

    .faq-question {
        min-height: 48px;
        padding: var(--space-sm) var(--space-md);
    }

    .footer__col a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer__social a {
        width: 44px;
        height: 44px;
    }

    /* Disable hover effects on touch — no ghost states */
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    .pain-card:hover { transform: none; }
}

/* ============================================
   LANDSCAPE PHONES — Prevent hero overflow
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding-block: calc(var(--nav-h) + 1rem) var(--space-md);
    }

    .hero__bg {
        background-size: auto 100%;
    }

    .hero__stats {
        margin-top: var(--space-sm);
    }

    .hero__title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .hero__subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--space-xs);
    }

    .hero__ctas {
        flex-direction: row;
    }
}

/* ============================================
   PRINT — Clean output
   ============================================ */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
    }

    body::after { display: none; } /* Remove grain overlay */

    .nav,
    .nav__mobile,
    .scroll-progress,
    .footer__social,
    .btn--primary,
    .btn--outline,
    .hero__bg,
    .hero__overlay {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    .hero__content--centered {
        max-width: 100%;
        text-align: left;
    }

    .section {
        padding-block: 1.5rem;
        break-inside: avoid;
    }

    .card, .testimonial, .pain-card, .format-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666 !important;
    }

    .footer {
        border-top: 1px solid #ccc;
        padding-block: 1rem;
    }

    .reveal { opacity: 1; transform: none; }
}
