/* ==========================================================================
   Strāte.fit — page d'accueil (DA claire, maquettes Figma « Landing V5 »)
   Outfit (texte) · Unbounded (grand logo du hero)
   Les écrans de l'application sont stylés dans app-mockup.css.

   Les valeurs (tailles, marges, largeurs) sont celles des maquettes, reprises
   palier par palier dans des variables :
   1920 (défaut) · ≤1440 · ≤1140 · ≤1024 · ≤768 · ≤500 · ≤380 (maquette 320)
   ========================================================================== */

:root {
    /* Couleurs */
    --white: #ffffff;
    --soft: #f3f3f2;
    --softer: #e9e9e7;
    --ink: #0e0e0e;
    --muted: #6c6c69;
    --faint: #a3a39f;
    --line: #ddddda;
    --accent: #36e2e8;
    --accent-ink: #0a858c;      /* accent lisible sur fond clair */
    --danger: #d93025;
    --ok: #1a7f4b;

    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-brand: 'Unbounded', 'Outfit', system-ui, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --page: min(100vw, 1920px);

    /* ---- Maquette 1920 ---- */
    --gutter: 80px;             /* marge latérale des sections */
    --outer: 24px;              /* marge latérale des panneaux gris */
    --sec: 104px;               /* espace vertical entre sections */
    --gap: 48px;                /* espace intro → contenu */
    --intro-gap: 48px;
    --label-w: 480px;           /* colonne du titre de section */
    --panel-y: 72px;
    --panel-x: 56px;
    --panel-r: 40px;

    --fs-body: 18px;
    --fs-title: 56px;
    --fs-statement: 30px;
    --fs-display: 68px;
    --fs-nav: 19px;
    --fs-card: 32px;
    --fs-benefit: 24px;
    --fs-stat: 34px;
    --fs-stat-label: 12px;
    --fs-coach: 60px;
    --fs-quote: 30px;
    --fs-quote-mark: 96px;
    --fs-badge: 16px;
    --fs-chip: 16px;
    --fs-chip-lg: 16px;
    --fs-day-letter: 48px;
    --fs-day-title: 17px;
    --fs-day-text: 20px;
    --fs-plan: 44px;
    --fs-price: 104px;
    --fs-faq: 22px;
    --fs-story: 56px;
    --fs-story-text: 20px;
    --fs-direct: 22px;
    --fs-form-title: 28px;

    --header-h: 64px;
    --header-top: 24px;
    --hero-h: 1100px;
    --hero-wm-gap: 117px;       /* en-tête → grand logo */
    --hero-bottom: 50px;
    --hero-copy-bottom: 50px;
    --copy-w: 828px;
    --hero-text-w: 828px;
    --cluster-w: 400px;

    --benefits-w: 686px;
    --stage-h: 670px;
    --phone-s: 0.79;            /* échelle de l'écran actif (380 × 720 d'origine) */
    --phone-side: 0.68;
    --phone-shift: 181px;
    --phone-drop: 40px;

    --last-bottom: 16px;
    --coach-photo: 420px;
    --coach-quote: 420px;
    --day-h: 245px;
    --plan-head-pad: 28px;
    --plan-head-gap: 0px;
    --story-photo-w: 382px;
    --story-photo-h: 415px;
    --form-w: 600px;
    --form-pad: 32px;
}

/* Le bloc des avantages cède de la largeur au carrousel dès que celui-ci manque de place
   (sinon les téléphones latéraux sont coupés) : même principe à chaque palier ci-dessous */
@media (min-width: 1440.1px) {
    :root {
        --benefits-w: min(686px, calc(var(--page) - 2 * var(--gutter) - 671px));
        /* Coachs : la citation (bloc noir) se rétrécit pour garder ~450px à la colonne centrale */
        --coach-quote: clamp(340px, calc(var(--page) - 1109px), 420px);
    }
}

@media (max-width: 1440px) {
    :root {
        --last-bottom: 21px; --gutter: 64px; --outer: 21px; --panel-x: 43px; --sec: 96px; --gap: 40px; --intro-gap: 32px; --label-w: 400px; --panel-y: 56px;
        --fs-title: 48px; --fs-statement: 26px; --fs-display: 51px; --fs-nav: 19px; --fs-card: 29px; --fs-benefit: 23px;
        --fs-stat: 34px; --fs-coach: 56px; --fs-quote: 20px; --fs-quote-mark: 88px; --fs-day-letter: 41px; --fs-day-text: 19px;
        --fs-plan: 37px; --fs-price: 88px; --fs-faq: 21px; --fs-story: 48px; --fs-story-text: 19px; --fs-direct: 21px; --fs-form-title: 25px;
        --header-top: 20px; --hero-h: 820px; --hero-wm-gap: 76px; --hero-copy-bottom: 64px; --hero-text-w: 828px; --cluster-w: 400px;
        --benefits-w: clamp(290px, calc(var(--page) - 2 * var(--gutter) - 663px), 520px); --coach-photo: 360px; --coach-quote: 340px; --plan-head-gap: 28px;
        --story-photo-w: 400px; --story-photo-h: 460px; --form-w: 480px;
    }
}

@media (max-width: 1140px) {
    :root {
        --last-bottom: 16px; --gutter: 48px; --outer: 16px; --panel-x: 32px; --sec: 80px; --label-w: 320px;
        --fs-body: 17px; --fs-title: 44px; --fs-statement: 23px; --fs-display: 46px; --fs-nav: 17px; --fs-card: 25px; --fs-benefit: 20px;
        --fs-stat: 30px; --fs-coach: 46px; --fs-quote: 18px; --fs-quote-mark: 64px; --fs-badge: 15px;
        --fs-day-letter: 36px; --fs-day-title: 16px; --fs-day-text: 17px;
        --fs-plan: 33px; --fs-price: 64px; --fs-faq: 19px; --fs-story: 42px; --fs-story-text: 17px; --fs-direct: 19px; --fs-form-title: 22px;
        --hero-h: 760px; --hero-bottom: 48px; --hero-copy-bottom: 48px; --copy-w: 669px; --hero-text-w: 669px; --cluster-w: 344px;
        --benefits-w: clamp(290px, calc(var(--page) - 2 * var(--gutter) - 646px), 400px); --stage-h: 653px; --phone-s: 0.77; --phone-side: 0.66; --phone-shift: 176px; --phone-drop: 39px;
        --coach-photo: 320px; --day-h: 220px; --story-photo-w: 340px; --story-photo-h: 440px; --form-w: 400px;
    }
}

@media (max-width: 1024px) {
    :root {
        --last-bottom: 13px; --gutter: 40px; --outer: 13px; --panel-x: 27px; --sec: 72px; --label-w: 280px;
        --fs-title: 40px; --fs-statement: 22px; --fs-display: 44px; --fs-quote-mark: 56px;
        --hero-h: 720px; --hero-bottom: 40px; --hero-copy-bottom: 40px; --copy-w: 640px; --hero-text-w: 640px; --cluster-w: 275px;
        --benefits-w: clamp(290px, calc(var(--page) - 2 * var(--gutter) - 588px), 360px); --stage-h: 588px; --phone-s: 0.693; --phone-side: 0.597; --phone-shift: 159px; --phone-drop: 35px;
        --story-photo-w: 320px; --form-w: 380px;
    }
}

@media (max-width: 768px) {
    :root {
        --last-bottom: 11px; --gutter: 32px; --outer: 11px; --panel-x: 21px; --gap: 32px; --intro-gap: 16px;
        --fs-display: 46px; --fs-nav: 18px; --fs-card: 27px; --fs-benefit: 22px; --fs-quote: 19px; --fs-quote-mark: 88px;
        --fs-day-text: 18px; --fs-price: 88px; --fs-faq: 20px; --fs-story-text: 18px; --fs-direct: 20px; --fs-form-title: 24px;
        --hero-h: 848px; --hero-wm-gap: 81px; --hero-bottom: 32px; --copy-w: 100%; --hero-text-w: 100%;
        --stage-h: 670px; --phone-s: 0.79; --phone-side: 0.68; --phone-shift: 181px; --phone-drop: 40px;
        --coach-photo: 280px; --story-photo-h: 480px;
    }
}

@media (max-width: 500px) {
    :root {
        --last-bottom: 8px; --gutter: 20px; --outer: 8px; --panel-x: 16px; --sec: 56px; --panel-y: 36px; --panel-r: 28px;
        --fs-body: 16px; --fs-title: 34px; --fs-statement: 19px; --fs-display: 36px; --fs-nav: 16px; --fs-card: 23px; --fs-benefit: 16px;
        --fs-stat: 25px; --fs-coach: 36px; --fs-quote: 17px; --fs-quote-mark: 72px; --fs-badge: 14px;
        --fs-day-letter: 30px; --fs-day-title: 15px; --fs-day-text: 16px;
        --fs-plan: 27px; --fs-price: 72px; --fs-faq: 18px; --fs-story: 30px; --fs-story-text: 16px; --fs-direct: 18px; --fs-form-title: 20px;
        --header-h: 56px; --header-top: 12px; --hero-h: 748px; --hero-wm-gap: 43px; --hero-bottom: 20px;
        --stage-h: 694px; --day-h: 230px; --plan-head-pad: 15px; --plan-head-gap: 20px; --story-photo-h: 300px; --form-pad: 20px;
    }
}

@media (max-width: 380px) {
    :root {
        --gutter: 16px; --sec: 48px;
        --fs-title: 28px; --fs-statement: 17px; --fs-display: 28px; --fs-nav: 15px; --fs-card: 21px;
        --fs-stat: 22px; --fs-stat-label: 10px; --fs-coach: 30px; --fs-quote: 16px; --fs-quote-mark: 60px;
        --fs-day-letter: 26px; --fs-day-text: 15px; --fs-plan: 24px; --fs-price: 60px; --fs-faq: 17px;
        --fs-story: 22px; --fs-story-text: 15px; --fs-direct: 17px; --fs-form-title: 18px;
        --hero-h: 876px; --hero-wm-gap: 30px; --hero-bottom: 16px;
        --stage-h: 679px; --phone-s: 0.772; --story-photo-h: 260px;
    }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

main,
.footer,
.hero {
    max-width: 1920px;
    margin-inline: auto;
}

section[id],
#top { scroll-margin-top: calc(var(--header-h) + 40px); }

/* Petit texte en capitales (étiquettes, signatures, intitulés de champs) */
.label {
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    /* le texte change de couleur quand la vague l'atteint */
    transition: color 0.25s var(--ease) 0.15s, transform 0.2s var(--ease);
}

.btn__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn__ico svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn--block { display: flex; width: 100%; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark .btn__ico { background: var(--accent); color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light .btn__ico { background: var(--ink); color: var(--white); }

.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn--ghost .btn__ico { background: var(--white); color: var(--ink); }

.btn--plain {
    justify-content: center;
    padding: 6px 24px;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

/* Survol des boutons à flèche : la couleur de la pastille s'étend à tout le
   bouton en partant de la flèche, le texte s'inverse et la flèche pivote vers
   le haut. Réservé aux pointeurs précis (pas d'état collé au toucher). */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--btn-fill, transparent);
    clip-path: circle(0 at calc(100% - 24px) 50%);
    transition: clip-path 0.55s var(--ease);
}

.btn__ico svg { transition: transform 0.45s var(--ease); }

.btn--dark { --btn-fill: var(--accent); }
.btn--light { --btn-fill: var(--accent); }
.btn--ghost { --btn-fill: var(--white); }
.btn--plain { --btn-fill: var(--ink); }

@media (hover: hover) and (pointer: fine) {
    .btn:hover::before,
    .btn:focus-visible::before { clip-path: circle(150% at calc(100% - 24px) 50%); }

    .btn:hover .btn__ico svg,
    .btn:focus-visible .btn__ico svg { transform: rotate(-45deg); }

    .btn--dark:hover,
    .btn--dark:focus-visible { color: var(--ink); }
    .btn--dark:hover .btn__ico,
    .btn--dark:focus-visible .btn__ico { background: var(--ink); color: var(--white); }

    .btn--light:hover,
    .btn--light:focus-visible { color: var(--ink); }
    .btn--light:hover .btn__ico,
    .btn--light:focus-visible .btn__ico { background: var(--ink); color: var(--white); }

    .btn--ghost:hover,
    .btn--ghost:focus-visible { color: var(--ink); }
    .btn--ghost:hover .btn__ico,
    .btn--ghost:focus-visible .btn__ico { background: var(--ink); color: var(--white); }

    .btn--plain:hover,
    .btn--plain:focus-visible { color: var(--white); }
    .cookie-banner .btn--plain { --btn-fill: var(--white); }
    .cookie-banner .btn--plain:hover { color: var(--ink); }
}

.btn[disabled] { cursor: progress; }

/* Indicateur d'envoi : form-handler.js injecte <i class="fa-solid fa-spinner fa-spin"> */
.fa-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: var(--fs-chip);
    line-height: 1.6;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   En-tête (verre dépoli) + menu mobile
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    z-index: 50;
    top: var(--header-top);
    left: 50%;
    width: calc(var(--page) - 2 * var(--gutter));
    transform: translateX(-50%);
    /* la barre est calée à droite : dans le hero elle ne fait que la largeur du menu */
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.header__bar {
    flex: 0 1 auto;
    min-width: var(--header-h);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 8px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    color: var(--white);
    transition:
        flex-grow 0.7s var(--ease),
        padding 0.5s var(--ease),
        background-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

/* Entrée de l'en-tête : un cercle de verre apparaît à droite, s'ouvre vers la gauche,
   puis le menu apparaît en opacité */
.header__bar {
    overflow: hidden;
    animation:
        header-pop 0.35s ease-out both,
        header-open 0.85s var(--ease) 0.2s both;
}

.header__bar > * { animation: hero-fade 0.6s ease-out 0.85s both; }

@keyframes header-pop {
    from { opacity: 0; }
}

@keyframes header-open {
    from { max-width: var(--header-h); }
    to { max-width: 100%; }
}

/* Hors du hero : la barre s'étire sur toute la largeur (le logo apparaît à gauche)
   et le verre devient sombre pour rester lisible sur fond clair */
.header.is-scrolled .header__bar {
    flex-grow: 1;
    background: rgba(14, 14, 14, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo img { width: auto; height: 24px; }
.logo--ink img { filter: brightness(0); }

/* Téléphone : logo réduit dans l'en-tête et le menu (maquette 320 : 20px de haut) */
@media (max-width: 500px) {
    .header .logo img,
    .menu .logo img { height: clamp(17px, 5.2vw, 22px); }
}

/* Dans le hero, le logo de l'en-tête est replié (le grand « STRĀTE.FIT » fait office de nom) ;
   il se déplie et apparaît quand on sort du hero */
.header .logo {
    flex: none;
    max-width: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-width 0.7s var(--ease),
        margin-right 0.7s var(--ease),
        opacity 0.25s var(--ease);
}

.header.is-scrolled .logo {
    max-width: 240px;
    margin-right: 24px;
    opacity: 1;
    transition:
        max-width 0.7s var(--ease),
        margin-right 0.7s var(--ease),
        opacity 0.5s var(--ease) 0.3s;
}

/* Logo de l'en-tête en deux morceaux : dans le hero, seul le pictogramme est affiché
   (le grand « STRĀTE.FIT » fait déjà office de nom). Hors du hero, le texte se révèle
   de gauche à droite, comme le grand logo : dégradé d'opacité + mise au point. */
.logo--split { display: flex; align-items: center; }

.logo__text {
    -webkit-mask: linear-gradient(100deg, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 0 / 300% 100% no-repeat;
    mask: linear-gradient(100deg, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 0 / 300% 100% no-repeat;
    filter: blur(3px);
    transition:
        -webkit-mask-position 0.5s var(--ease),
        mask-position 0.5s var(--ease),
        filter 0.4s var(--ease);
}

.header.is-scrolled .logo__text {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    filter: blur(0);
    transition:
        -webkit-mask-position 1.3s cubic-bezier(0.25, 0.6, 0.3, 1),
        mask-position 1.3s cubic-bezier(0.25, 0.6, 0.3, 1),
        filter 0.8s ease-out;
}

.nav__list { display: flex; align-items: center; gap: 36px; }

.nav__link {
    position: relative;
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.2s var(--ease);
}

.nav__link:hover,
.nav__link.active { opacity: 1; }

/* Filet bleu : visible sur le lien actif, et au survol (il se déploie depuis la gauche) */
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.active::after { transform: scaleX(1); }

/* Filet vertical entre les rubriques et les liens de compte (Inscription / Connexion) */
.nav__sep { width: 1px; height: 28px; background: rgba(231, 229, 224, 0.6); }

.burger {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.burger svg { width: 20px; height: 20px; }

/* 1040 → 1455 : 7 liens dans la barre, taille et espacement suivent la largeur
   (maquettes : 19px / 31px à 1440, 16px / 15px à 1140) ; en dessous, menu burger */
@media (max-width: 1455px) {
    .nav__list { gap: clamp(8px, calc(15px + (100vw - 1155px) * 0.055), 31px); }
    .nav__link { font-size: clamp(16px, calc(16px + (100vw - 1155px) * 0.0105), 19px); }
    .nav__sep { height: 24px; }
}

@media (max-width: 1039px) {
    .nav { display: none; }
    .burger { display: grid; }
    /* dans le hero, la barre se réduit au bouton du menu (un rond de verre à droite) */
    .header:not(.is-scrolled) .header__bar { padding-inline: calc((var(--header-h) - 44px) / 2); }
}

/* 769 → 1039 : barre dépliée avec le bouton du menu plus près du bord droit */
@media (min-width: 768.1px) and (max-width: 1039px) {
    .header__bar { padding: 8px 12px 8px 28px; }
}

.menu {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: var(--gutter);
    overflow-y: auto;
    /* même verre que l'en-tête, flou renforcé ; voile sombre pour la lisibilité */
    background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), rgba(14, 18, 20, 0.55);
    -webkit-backdrop-filter: blur(64px);
    backdrop-filter: blur(64px);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), visibility 0s;
}

.menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.menu__close svg { width: 18px; height: 18px; }

.menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 48px;
    line-height: 1.02;
    text-transform: uppercase;
}

.menu__links li:first-child .menu__link { border-top: 0; }
.menu__link.active { color: var(--accent); }
.menu__link span { font-size: 12px; font-weight: 500; opacity: 0.5; }

/* Inscription / Connexion : deux boutons côte à côte, l'un sous l'autre s'ils ne tiennent pas */
.menu__account { display: flex; flex-wrap: wrap; gap: 10px; }
.menu__account .btn { flex: 1 1 150px; justify-content: space-between; }

.menu__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.menu__card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    font-size: 20px;
    font-weight: 400;
}

.menu__card .label { font-size: 12px; color: var(--accent); }

/* --------------------------------------------------------------------------
   01 — Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--hero-h);
    padding: calc(var(--header-top) + var(--header-h) + var(--hero-wm-gap)) var(--gutter) var(--hero-bottom);
    border-radius: 0 0 40px 40px;
    background: linear-gradient(180deg, #5c7887 0%, #243036 55%, #0d1214 100%);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: 0.4;
    pointer-events: none;
}

.hero__wordmark {
    font-family: var(--font-brand);
    font-size: calc((var(--page) - 2 * var(--gutter)) * 0.1485);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    /* Le masque rogne à la boîte : on l'agrandit pour garder le macron du Ā (sans décaler la mise en page) */
    padding-block: 0.2em;
    margin-block: -0.2em;
}

/* Accueil : le grand logo est un SVG translucide (maquette), sur toute la largeur utile */
img.hero__wordmark {
    display: block;
    width: 100%;
    height: auto;
    padding-block: 0;
    /* centré verticalement entre l'en-tête et le bloc texte, comme sur la maquette */
    margin-block: auto;
}

/* espace minimal sous le grand logo quand le hero est plus haut que l'écran */
img.hero__wordmark + .hero__bottom { margin-top: 56px; }

/* Entrée du hero : tout part du S du grand logo, vers la droite puis vers le bas.
   Opacité seulement, aucun déplacement.
   1. le logo se révèle de gauche à droite (dégradé d'opacité + mise au point) ;
   2. le bloc texte se révèle en diagonale, du coin haut-gauche vers le bas-droite, sans flou ;
   3. les cartes apparaissent en fondu simple, l'une après l'autre : pas de masque ni de flou
      sur elles, ils font scintiller leur effet verre. */
.hero__wordmark {
    -webkit-mask: linear-gradient(100deg, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 0 / 300% 100% no-repeat;
    mask: linear-gradient(100deg, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 0 / 300% 100% no-repeat;
    animation: wordmark-reveal 2.2s cubic-bezier(0.25, 0.6, 0.3, 1) 0.15s both;
}

@keyframes wordmark-reveal {
    from { filter: blur(10px); }
    60% { filter: blur(0); }
    to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); }
}

.hero__copy {
    -webkit-mask: linear-gradient(to bottom right, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 100% / 300% 300% no-repeat;
    mask: linear-gradient(to bottom right, #000 0%, #000 36%, transparent 64%, transparent 100%) 100% 100% / 300% 300% no-repeat;
    animation: copy-reveal 1.8s cubic-bezier(0.25, 0.6, 0.3, 1) 0.4s both;
}

@keyframes copy-reveal {
    to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

.hero__cluster > * { animation: hero-fade 0.9s ease-out 0.7s both; }
.hero__cluster > :nth-child(2) { animation-delay: 0.82s; }
.hero__cluster > :nth-child(3) { animation-delay: 0.94s; }

@keyframes hero-fade {
    from { opacity: 0; }
}

.hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-top: auto;
    padding-top: 40px;
}

.hero__copy {
    display: grid;
    gap: 20px;
    justify-items: start;
    width: var(--copy-w);
    max-width: 100%;
    margin-bottom: calc(var(--hero-copy-bottom) - var(--hero-bottom));
}

.hero__title {
    font-size: var(--fs-display);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.hero__title span { display: block; }

/* Juste au-dessus du palier 1440 : le titre tient sur ses lignes
   (1474px de contenu + 15px de barre de défilement) */
@media (min-width: 1440.1px) {
    .hero__title { font-size: 58px; }
}

@media (min-width: 1140.1px) and (max-width: 1296px) {
    .hero__title { font-size: 46px; }
}

@media (min-width: 1024.1px) and (max-width: 1086px) {
    .hero__title { font-size: 44px; }
}

/* 769 → 998 : le titre suit la largeur disponible à côté des cartes (2 lignes) */
@media (min-width: 768.1px) and (max-width: 998px) {
    .hero__title { font-size: clamp(24px, calc((100vw - 470px) / 12.2), 44px); }
}

/* Avec barre de défilement, il manque 10px tout en bas de chaque plage */
@media (min-width: 1024.1px) and (max-width: 1039px) {
    .hero__title { font-size: 43px; }
}

@media (min-width: 1140.1px) and (max-width: 1155px) {
    .hero__title { font-size: 45px; }
}
.hero__text { max-width: var(--hero-text-w); }

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.glass {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(26px);
    backdrop-filter: blur(26px);
}

.hero__cluster {
    flex: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: var(--cluster-w);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 22px;
}

.hero__stat--wide {
    grid-column: 1 / -1;
    gap: 18px;
}

.hero__stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.hero__stat-names { opacity: 0.85; }

.avatars { display: flex; }

.avatars img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 12%;
    box-shadow: 0 0 0 2px var(--white);
}

.avatars img + img { margin-left: -14px; }

.hero__stat-value {
    font-size: var(--fs-stat);
    font-weight: 400;
    line-height: 1.2;
}

.hero__stat--wide .label { margin-top: 4px; }

.hero__stat .label {
    font-size: var(--fs-stat-label);
    line-height: 1.2;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Sections : structure commune
   -------------------------------------------------------------------------- */
.section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
    padding: 0 var(--gutter) var(--sec);
}

.section--first { padding-top: var(--sec); }

.intro {
    display: grid;
    grid-template-columns: var(--label-w) minmax(0, 1fr);
    gap: var(--intro-gap);
    align-items: start;
    container-type: inline-size;
}

/* Unbounded est large : la taille est plafonnée pour que la ligne la plus longue du titre
   (--fit, sa largeur en em) tienne dans la colonne du titre, sans mot coupé ni 3e ligne */
.intro__title {
    font-family: var(--font-brand);
    font-size: min(var(--fs-title), calc(var(--label-w) / var(--fit, 8.2)));
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.intro__title span,
.statement span { color: var(--muted); }
.intro__title span,
.statement__line { display: block; }   /* nouvelle phrase : à la ligne ; après une virgule, le texte se suit */
.intro__title--long { --fit: 10.2; }

.intro__body {
    display: grid;
    gap: 24px;
    justify-items: start;
    padding-top: 10px;
}

.statement {
    font-size: var(--fs-statement);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.intro__detail { color: var(--muted); }   /* même largeur que l'accroche : le texte se suit */

/* Cartes à visuel (méthode + étapes du bilan) */
.vcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 0 16px;
}

/* 100% en ligne : la carte du milieu est décalée vers le bas (maquette), tant que les 3 sont en ligne */
@media (min-width: 915.1px) {
    #concept .vcards { margin-bottom: 42px; }
    #concept .vcards > :nth-child(2) { transform: translateY(42px); }
}

/* Parallaxe au défilement : --par va de 1 (les cartes entrent par le bas) à -1 (elles sortent
   par le haut), posé par strate.js. Les cartes des côtés et celle du milieu glissent en sens inverse. */
@media (min-width: 915.1px) and (prefers-reduced-motion: no-preference) {
    #concept .vcards > * { transform: translateY(calc(var(--par, 0) * -16px)); will-change: transform; }
    #concept .vcards > :nth-child(2) { transform: translateY(calc(42px + var(--par, 0) * 30px)); }
}

.vcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 2;
    padding: 12px;
    border-radius: 32px;
    background: var(--soft);
}

.vcard--white { background: var(--white); }

.vcard__visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 210px;
    padding: 24px;
    border-radius: 22px;
    background: var(--white);
}

.vcard--white .vcard__visual { gap: 10px; min-height: 230px; padding: 22px; background: var(--soft); }

.vcard__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-content: start;
    padding: 28px 20px 20px;
}

.vcard__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
}

.vcard__title {
    font-size: var(--fs-card);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.vcard__index { color: var(--faint); white-space: nowrap; }
.vcard__step { color: var(--accent-ink); }
.vcard__text { color: var(--muted); }

/* Mini-interfaces des visuels */
.ui-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    color: var(--muted);
}

.ui-head b { font-weight: 500; color: var(--ink); }

.ui-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.ui-pill--dark { align-self: flex-start; margin-top: 4px; padding: 7px 12px; background: var(--ink); color: var(--white); }

.ui-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.ui-week li { display: grid; gap: 8px; }
.ui-week li.is-off { color: var(--faint); }

.ui-week i {
    display: flex;
    align-items: flex-end;
    height: 88px;
    border-radius: 10px;
    background: var(--soft);
    overflow: hidden;
}

.ui-week i::after {
    content: '';
    width: 100%;
    height: var(--h, 0%);
    border-radius: 10px;
    background: var(--accent);
}

.ui-week li.is-off i::after { background: var(--line); }

.ui-slider { display: grid; gap: 8px; color: var(--ink); }

.ui-slider i {
    position: relative;
    display: block;
    height: 4px;
    margin: 4px 0;
    border-radius: 2px;
    background: linear-gradient(var(--ink), var(--ink)) 0 / var(--v) 100% no-repeat, var(--softer);
}

.ui-slider i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--v);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1.5px var(--ink);
    transform: translate(-50%, -50%);
}

.ui-status { display: flex; align-items: center; gap: 8px; color: var(--muted); }

.ui-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--ink);
}

.ui-bubble {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    gap: 6px;
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--soft);
}

.ui-bubble i { display: block; width: 150px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--faint); }
.ui-bubble--me { align-self: flex-end; background: var(--ink); }
.ui-bubble--me i { width: 180px; background: var(--white); }
.ui-bubble--me i + i { width: 110px; background: var(--faint); }

/* Mini-interfaces vivantes (section « 100% en ligne ») : mouvements lents, en boucle.
   Chaque élément a sa durée et son décalage pour éviter un effet mécanique. */

/* 1. Emploi du temps : les barres respirent */
.ui-week li[style] i::after { animation: week-breathe 6s ease-in-out infinite; }
.ui-week li:nth-child(2) i::after { animation-duration: 7.5s; animation-delay: -2s; }
.ui-week li:nth-child(4) i::after { animation-duration: 8.5s; animation-delay: -4s; }
.ui-week li:nth-child(5) i::after { animation-duration: 6.8s; animation-delay: -1s; }
.ui-week li:nth-child(7) i::after { animation-duration: 9s; animation-delay: -5s; }

@keyframes week-breathe {
    50% { height: calc(var(--h, 0%) * 0.68 + 8%); }
}

/* 2. Sur-mesure : les curseurs glissent autour de leur valeur */
.ui-slider { --d: 14%; }
.ui-slider:nth-child(2) { --d: -18%; }
.ui-slider:nth-child(3) { --d: 11%; }

.ui-slider i { animation: slider-fill 7s ease-in-out infinite; }
.ui-slider i::after { animation: slider-knob 7s ease-in-out infinite; }
.ui-slider:nth-child(2) i,
.ui-slider:nth-child(2) i::after { animation-duration: 9s; animation-delay: -3s; }
.ui-slider:nth-child(3) i,
.ui-slider:nth-child(3) i::after { animation-duration: 8s; animation-delay: -5s; }

@keyframes slider-fill {
    50% { background-size: calc(var(--v) + var(--d)) 100%, auto; }
}

@keyframes slider-knob {
    50% { left: calc(var(--v) + var(--d)); }
}

/* 3. Accessibilité : le point « en ligne » pulse, les lignes des messages s'écrivent */
.ui-dot { animation: dot-pulse 2.6s ease-out infinite; }

@keyframes dot-pulse {
    from { box-shadow: 0 0 0 1px var(--ink), 0 0 0 0 rgba(54, 226, 232, 0.55); }
    70%, to { box-shadow: 0 0 0 1px var(--ink), 0 0 0 9px rgba(54, 226, 232, 0); }
}

.ui-bubble i { transform-origin: left center; animation: bubble-type 5.5s ease-in-out infinite; }
.ui-bubble--me i { animation-duration: 6.5s; animation-delay: -2s; }
.ui-bubble i + i { animation-duration: 4.8s; animation-delay: -3.5s; }

/* La conversation se déroule : les messages arrivent l'un après l'autre (opacité seule),
   restent affichés, puis la boucle recommence */
.ui-chat { display: flex; flex-direction: column; gap: 16px; }
.ui-chat .ui-bubble { animation: chat-1 11s ease-out infinite; }
.ui-chat .ui-bubble:nth-child(2) { animation-name: chat-2; }

@keyframes chat-1 { 0% { opacity: 0; } 4%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes chat-2 { 0%, 13% { opacity: 0; } 17%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }

@keyframes bubble-type {
    50% { transform: scaleX(0.62); }
}

.ui-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ui-tags li {
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

.ui-progress {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(var(--ink), var(--ink)) 0 / 20% 100% no-repeat, var(--softer);
}

.ui-checks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

.ui-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--white);
    font-size: var(--fs-day-text);
    line-height: 1.5;
}

.ui-check::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--line);
}

.ui-check.is-done::before {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
    box-shadow: none;
}

.ui-check small {
    margin-left: auto;
    padding-left: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.ui-check--row { width: 100%; gap: 10px; padding-block: 10px; line-height: 1.25; overflow: hidden; }
.ui-check--row small { flex: none; padding-left: 0; }
.ui-ex { display: grid; }
.ui-ex .ui-checks { grid-area: 1 / 1; gap: 10px; padding-top: 0; }

.ui-coach { display: flex; align-items: center; gap: 12px; }

.ui-coach img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 12%;
    box-shadow: 0 0 0 2px var(--white);
}

.ui-coach div { display: grid; gap: 2px; color: var(--muted); }
.ui-coach b { font-size: 14px; font-weight: 500; color: var(--ink); }

.ui-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 8px;
    height: 96px;
    margin-top: 4px;
}

.ui-chart i { height: var(--h); border-radius: 8px; background: var(--softer); }
.ui-chart i.is-on { background: var(--accent); }

.ui-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.ui-days li { padding: 8px 0; border-radius: 8px; background: var(--white); color: var(--faint); }
.ui-days li.is-on { background: var(--ink); color: var(--white); }

/* Mini-interfaces vivantes (section « Bilan initial ») : même principe que « 100% en ligne »,
   mouvements lents et en boucle */

/* 1. Questionnaire : une question à la fois ; une réponse se sélectionne, puis la question
      suivante arrive (5 × 2 s). Le compteur et la barre suivent (1 → 5 / 5). */
@property --q {
    syntax: '<integer>';
    inherits: true;
    initial-value: 1;
}

.ui-count { counter-reset: q var(--q); animation: quiz-count 10s linear infinite; }
.ui-count::before { content: counter(q) " / 5"; }

.ui-progress { animation: quiz-bar 10s ease-in-out infinite; }

.ui-quiz { display: grid; }

.ui-q {
    grid-area: 1 / 1;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 6px;
    opacity: 0;
    animation: quiz-set 10s ease-in-out infinite;
}

.ui-q:first-child { opacity: 1; }
.ui-q:nth-child(2) { animation-delay: -8s; }
.ui-q:nth-child(3) { animation-delay: -6s; }
.ui-q:nth-child(4) { animation-delay: -4s; }
.ui-q:nth-child(5) { animation-delay: -2s; }

.ui-q__title { font-size: 15px; font-weight: 500; line-height: 1.3; }

.ui-q__opts { display: flex; flex-wrap: wrap; gap: 6px; }

.ui-q__opts li {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 12px;
    font-weight: 500;
}

.ui-q__opts .is-pick { animation: quiz-pick 10s ease-in-out infinite; animation-delay: inherit; }
.ui-q:nth-child(2) .is-pick { animation-delay: -8s; }
.ui-q:nth-child(3) .is-pick { animation-delay: -6s; }
.ui-q:nth-child(4) .is-pick { animation-delay: -4s; }
.ui-q:nth-child(5) .is-pick { animation-delay: -2s; }

/* Fondu de sortie puis d'entrée, sans chevauchement */
@keyframes quiz-set {
    0% { opacity: 0; }
    3%, 17% { opacity: 1; }
    20%, 100% { opacity: 0; }
}

@keyframes quiz-pick {
    0%, 8%, 20%, 100% { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
    10%, 18% { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
}

@keyframes quiz-count {
    0%, 19.9% { --q: 1; }
    20%, 39.9% { --q: 2; }
    40%, 59.9% { --q: 3; }
    60%, 79.9% { --q: 4; }
    80%, 100% { --q: 5; }
}

@keyframes quiz-bar {
    0%, 8% { background-size: 0% 100%, auto; }
    11%, 28% { background-size: 20% 100%, auto; }
    31%, 48% { background-size: 40% 100%, auto; }
    51%, 68% { background-size: 60% 100%, auto; }
    71%, 88% { background-size: 80% 100%, auto; }
    91%, 98% { background-size: 100% 100%, auto; }
    100% { background-size: 0% 100%, auto; }
}

/* 2. Analyse : les barres respirent, la barre retenue garde sa hauteur et pulse doucement */
.ui-chart i { animation: week-breathe 6.5s ease-in-out infinite; }
.ui-chart i:nth-child(2) { animation-duration: 8s; animation-delay: -3s; }
.ui-chart i:nth-child(3) { animation-duration: 7s; animation-delay: -1.5s; }
.ui-chart i:nth-child(5) { animation-duration: 9s; animation-delay: -4s; }
.ui-chart i:nth-child(6) { animation-duration: 7.5s; animation-delay: -2.5s; }
.ui-chart i:nth-child(7) { animation-duration: 8.5s; animation-delay: -5s; }
.ui-chart i.is-on { animation: chart-glow 3s ease-in-out infinite; }

@keyframes chart-glow {
    50% { box-shadow: 0 0 0 4px rgba(54, 226, 232, 0.25); }
}

/* 3. Programme : le jour en cours avance de séance en séance,
      et le deuxième exercice se coche avant que la boucle reparte */
.ui-days li.is-on { animation: day-current 8s ease-in-out infinite; }
.ui-days li.is-on:nth-child(2) { animation-delay: -6s; }
.ui-days li.is-on:nth-child(4) { animation-delay: -4s; }
.ui-days li.is-on:nth-child(5) { animation-delay: -2s; }

@keyframes day-current {
    0% { background: var(--ink); color: var(--white); }
    4%, 21% { background: var(--accent); color: var(--ink); }
    25%, 100% { background: var(--ink); color: var(--white); }
}

.ui-ex .ui-checks { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Chaque jour a ses propres exercices : les listes se relaient en fondu, au rythme du jour
   en cours (2 s chacun), et le deuxième exercice se coche pendant la séance */
.ui-ex .ui-checks { opacity: 0; animation: ex-set 8s ease-in-out infinite; }
.ui-ex .ui-checks:first-child { opacity: 1; }
.ui-ex .ui-checks:nth-child(2) { animation-delay: -6s; }
.ui-ex .ui-checks:nth-child(3) { animation-delay: -4s; }
.ui-ex .ui-checks:nth-child(4) { animation-delay: -2s; }

.ui-ex .ui-check:nth-child(2)::before { animation: ex-tick 8s ease-in-out infinite; }
.ui-ex .ui-checks:nth-child(2) .ui-check:nth-child(2)::before { animation-delay: -6s; }
.ui-ex .ui-checks:nth-child(3) .ui-check:nth-child(2)::before { animation-delay: -4s; }
.ui-ex .ui-checks:nth-child(4) .ui-check:nth-child(2)::before { animation-delay: -2s; }

/* Fondu de sortie puis fondu d'entrée, sans chevauchement : les deux listes ne sont jamais
   visibles en même temps (c'est ce qui donnait un effet de clignotement) */
@keyframes ex-set {
    0% { opacity: 0; }
    4%, 21% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

@keyframes ex-tick {
    0%, 11%, 30%, 100% { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
    14%, 26% { background: var(--accent) var(--tick) center / 11px no-repeat; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   03 — Ton application (carrousel des écrans)
   -------------------------------------------------------------------------- */
.app {
    display: grid;
    grid-template-columns: var(--benefits-w) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.benefits {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 120px;
    padding: 20px 28px;
    border-radius: 24px;
    background: var(--soft);
    font-size: var(--fs-benefit);
    font-weight: 400;
    line-height: 1.17;
}

.benefit svg { flex: none; width: 52px; height: 52px; }

/* Bouton aligné à droite du bloc */
.benefits > .btn { align-self: flex-end; }

.app-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: var(--stage-h);
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
}

.app-stage::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 46%;
    left: 50%;
    width: 74%;
    max-width: 780px;
    height: 360px;
    background: radial-gradient(closest-side, rgba(54, 226, 232, 0.55), rgba(54, 226, 232, 0) 100%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.phones {
    position: relative;
    width: min(620px, 100%);
    height: calc(720px * var(--phone-s));
    touch-action: pan-y;
}

/* --bg est une vraie couleur animable : le fond de l'écran et le fondu du bas (::after)
   changent ensemble, sans à-coup, quand un écran passe du côté au centre */
@property --bg {
    syntax: '<color>';
    inherits: true;
    initial-value: #0e1214;
}

.hero-mockup {
    position: absolute;
    top: 0;
    left: 50%;
    width: 380px;
    height: 720px;
    margin-left: -190px;
    padding: 18px 0 84px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 44px;
    background: var(--bg);
    overflow: hidden;
    transform-origin: 50% 0;
    transform: translateY(var(--phone-drop)) scale(var(--phone-side));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), --bg 0.6s var(--ease), box-shadow 0.6s var(--ease);
    will-change: transform, opacity;
}

.hero-mockup.is-prev,
.hero-mockup.is-next {
    --bg: #293033;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 18px 36px -12px rgba(13, 26, 31, 0.18);
}

.hero-mockup.is-prev { transform: translate(calc(var(--phone-shift) * -1), var(--phone-drop)) scale(var(--phone-side)); }
.hero-mockup.is-next { transform: translate(var(--phone-shift), var(--phone-drop)) scale(var(--phone-side)); }

.hero-mockup.is-active {
    z-index: 3;
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(var(--phone-s));
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 17px 34px -8px rgba(13, 26, 31, 0.32);
}

/* Écran qui arrive au centre : il passe devant tout de suite, mais la partie qui était cachée
   derrière l'ancien écran central se révèle par un fondu progressif, au lieu d'apparaître d'un coup */
.hero-mockup.is-entering-right,
.hero-mockup.is-entering-left {
    box-shadow: none;
    -webkit-mask: linear-gradient(90deg, transparent 0%, transparent 19%, #000 27.5%, #000 100%) 0 0 / 200% 100% no-repeat;
    mask: linear-gradient(90deg, transparent 0%, transparent 19%, #000 27.5%, #000 100%) 0 0 / 200% 100% no-repeat;
    animation: phone-enter-right 0.45s ease-out both;
}

.hero-mockup.is-entering-left {
    -webkit-mask: linear-gradient(270deg, transparent 0%, transparent 19%, #000 27.5%, #000 100%) 100% 0 / 200% 100% no-repeat;
    mask: linear-gradient(270deg, transparent 0%, transparent 19%, #000 27.5%, #000 100%) 100% 0 / 200% 100% no-repeat;
    animation-name: phone-enter-left;
}

@keyframes phone-enter-right {
    to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

@keyframes phone-enter-left {
    to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* Écran qui change de côté : il reste visible et glisse d'un bord à l'autre en passant
   derrière les deux autres, un peu plus petit et plus bas à mi-course, comme sur un manège */
.hero-mockup.is-crossing { z-index: 0; animation: phone-cross 0.6s; }

@keyframes phone-cross {
    50% { scale: 0.8; translate: 0 26px; }
}

/* Fondu des derniers éléments derrière la barre du bas */
.hero-mockup::after {
    content: '';
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 74px;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 90%);
    pointer-events: none;
}

.mockup-exercise::after { bottom: 80px; }

.phones__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phones__arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 0.2s var(--ease);
}

.phones__arrow:hover { background: var(--softer); }
.phones__arrow svg { width: 14px; height: 14px; }
.phones__arrow--prev svg,
.week__arrow--prev svg { transform: scaleX(-1); }

.phones__dots { display: flex; gap: 6px; }

.phones__dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--faint);
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.phones__dot.is-active { width: 20px; background: var(--ink); }

/* --------------------------------------------------------------------------
   04 — Coachs
   Blocs : photo · identité · spécialités · citation, réordonnés par palier
   -------------------------------------------------------------------------- */
.coachs { display: grid; gap: 16px; }

.coach {
    display: grid;
    grid-template-columns: var(--coach-photo) minmax(0, 1fr) var(--coach-quote);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
        "photo .    quote"
        "photo id   quote"
        "photo spec quote"
        "photo .    quote";
    gap: 0 16px;
    padding: 16px;
    border-radius: 32px;
    background: var(--soft);
}

.coach--reverse {
    grid-template-columns: var(--coach-quote) minmax(0, 1fr) var(--coach-photo);
    grid-template-areas:
        "quote .    photo"
        "quote id   photo"
        "quote spec photo"
        "quote .    photo";
}

.coach__photo {
    grid-area: photo;
    position: relative;
    min-height: var(--coach-photo);
    border-radius: 24px;
    background: #e9e9e7;
    overflow: hidden;
}

.coach__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 8%;
}

.coach__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    font-size: var(--fs-badge);
    font-weight: 500;
    line-height: 1;
}

.coach__id {
    grid-area: id;
    display: grid;
    gap: 16px;
    padding: 24px 24px 0;
}

.coach__name {
    font-family: var(--font-brand);
    font-size: var(--fs-coach);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.02;
    text-transform: uppercase;
}

.coach__name span { display: block; color: var(--faint); }
.coach__bio { color: var(--muted); font-weight: 400; }

.coach__spec {
    grid-area: spec;
    display: grid;
    gap: 12px;
    padding: 32px 24px 24px;
}

.coach__quote {
    grid-area: quote;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 28px;
    border-radius: 24px;
    background: var(--ink);
    box-shadow: inset 0 0 0 1px #1d1d1b;
    color: var(--white);
    overflow: hidden;
}

/* Grand guillemet en filigrane, en haut à droite, derrière le texte */
.coach__quote::before {
    content: '“';
    position: absolute;
    top: -30px;
    right: 70px;
    font-size: 300px;
    font-weight: 400;
    line-height: 250px;
    color: rgba(54, 226, 232, 0.12);
    pointer-events: none;
}

.coach__quote p {
    position: relative;
    font-size: var(--fs-quote);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.coach__quote footer { position: relative; font-size: 16px; color: var(--accent); }

/* --------------------------------------------------------------------------
   05 — Semaine type
   -------------------------------------------------------------------------- */
.week {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    min-height: var(--day-h);
    padding: 20px;
    border-radius: 22px;
    background: var(--soft);
}

.day--rest {
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
}

.day__letter {
    font-family: var(--font-brand);
    letter-spacing: -0.01em;
    font-size: var(--fs-day-letter);
    font-weight: 400;
    line-height: 1;
}

.day--rest .day__letter { opacity: 0.4; }
.day__body { display: grid; gap: 8px; }
.day__name { color: var(--accent-ink); }
.day--rest .day__name { color: var(--faint); }

.day__title {
    font-size: var(--fs-day-title);
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
}

.day__text {
    color: var(--muted);
    font-size: var(--fs-day-text);
    line-height: 1.5;
}

.week-progress { display: none; }

/* --------------------------------------------------------------------------
   06 — Bilan initial / 10 — Contact : panneaux gris
   -------------------------------------------------------------------------- */
.panel-wrap { padding: 0 var(--outer) var(--sec); }
.panel-wrap--last { padding-bottom: var(--last-bottom); }

.panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
    padding: var(--panel-y) var(--panel-x);
    border-radius: var(--panel-r);
    background: var(--soft);
}

/* --------------------------------------------------------------------------
   07 — Formules
   -------------------------------------------------------------------------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 32px;
    background: var(--soft);
}

/* En-tête compact : nom + pastille à gauche, prix à droite */
.plan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 16px 22px;
    border-radius: 22px;
    background: var(--white);
}

.plan__id { display: grid; gap: 8px; justify-items: start; }

.plan__name {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.03;
    text-transform: uppercase;
}

.plan__pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--soft);
    font-size: 12px;
    white-space: nowrap;
}

.plan__price {
    display: grid;
    justify-items: end;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}

.plan__price b {
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}

.plan__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px 10px;
}

.plan__pre { padding-bottom: 12px; color: var(--accent-ink); }

.feature {
    display: flex;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.plan__features > .feature:first-child { border-top: 0; }
.feature svg { flex: none; width: 18px; height: 18px; margin-top: 0.25em; color: var(--accent-ink); }
.feature--off { color: var(--muted); }
.feature--off svg { color: var(--faint); }

/* Formule mise en avant : carte en bleu très clair, en-tête en bleu d'accent */
.plan--featured .plan__head {
    background: linear-gradient(90deg, #dde2f5 3%, #d4cfef 16%, #c9b1e8 28%, #c394d8 41%, #c181bb 54%, #c47092 66%, #cd6f6d 79%, #df9477 90%, #ebb084 97%);
}
.plan--featured .plan__pill { background: var(--ink); color: var(--white); }
.plan--featured .plan__price { color: var(--ink); }

/* Premium : la liste suit un intitulé, donc filet au-dessus du premier avantage */
.plan--dark-head .plan__features > .feature:first-child { border-top: 1px solid var(--line); }

/* Très petits écrans : le prix reste à côté du nom, les tailles suivent la largeur d'écran */
@media (max-width: 380px) {
    /* préfixe .plans : ces règles doivent l'emporter sur celles du palier 500, placées plus bas */
    .plans .plan__head { flex-wrap: nowrap; gap: 8px; padding-inline: 14px; }
    .plans .plan__name { font-size: clamp(18px, 5.6vw, 22px); }
    .plans .plan__pill { padding: 4px 7px; font-size: clamp(9px, 2.7vw, 10px); }
    .plans .plan__price { font-size: clamp(9.5px, 2.9vw, 11px); }
    .plans .plan__price b { font-size: clamp(26px, 8.4vw, 32px); }
}

/* --------------------------------------------------------------------------
   08 — FAQ
   -------------------------------------------------------------------------- */
.faq { grid-template-columns: var(--label-w) minmax(0, 1fr); gap: var(--intro-gap); }

.faq__list { display: grid; gap: 8px; }

.faq-item {
    border-radius: 22px;
    background: var(--soft);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 24px;
    font-size: var(--fs-faq);
    font-weight: 400;
    line-height: 1.15;
    text-align: left;
    transition: padding-bottom 0.35s var(--ease);
}

/* Question ouverte : on resserre l'espace sous le titre (et non plus une marge négative sur la
   réponse, qui la faisait passer sous le titre et rognait sa première ligne) */
.faq-item.active .faq-question { padding-bottom: 12px; }

.faq-icon {
    flex: none;
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 0.1em;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }

.faq-answer p {
    padding: 0 68px 24px 24px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   09 — Qui sommes-nous
   -------------------------------------------------------------------------- */
.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--story-photo-w);
    gap: 16px;
    border-radius: 36px;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;   /* sans marge intérieure, la photo suit l'arrondi du bloc */
}

.story__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 32px 40px 24px 32px;
}

.story__head { display: grid; gap: 20px; }

.story__label { margin-bottom: 4px; }

.story__title {
    font-family: var(--font-brand);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.story__title span { display: block; color: var(--faint); }

/* Le titre suit la largeur de la colonne de texte pour que « Derrière Strāte.fit, » et
   « une histoire vraie » restent chacun sur une ligne (--fit : largeur en em de la plus longue) */
.story__content { container-type: inline-size; }
.story__title { font-size: min(var(--fs-story), calc(100cqw / var(--fit, 13.5))); }

.story__text {
    max-width: 620px;
    font-size: var(--fs-story-text);
    font-weight: 400;
    line-height: 1.15;
    opacity: 0.82;
}

.story__bottom { display: grid; gap: 28px; justify-items: start; }

.milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.milestones li {
    display: grid;
    gap: 8px;
    align-content: start;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: var(--fs-day-title);
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
}

.milestones span { font-size: var(--fs-body); line-height: 1.3; color: var(--accent); }

.story__photo {
    position: relative;
    /* hauteur minimale de la maquette, mais la photo s'étire jusqu'en bas si le texte est plus haut */
    min-height: var(--story-photo-h);
    border-radius: 24px;
    overflow: hidden;
}

.story__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
}

.story__caption {
    position: absolute;
    left: 25px;
    bottom: 25px;
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    font-size: var(--fs-story-text);
}

.story__caption b { font-size: var(--fs-day-title); font-weight: 500; line-height: 1.25; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   10 — Contact + formulaires
   Blocs : en-tête · formulaire · coordonnées (le formulaire remonte sous
   l'en-tête à partir de 768 px, comme sur la maquette)
   -------------------------------------------------------------------------- */
.contact {
    grid-template-columns: minmax(0, 1fr) var(--form-w);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head form" "extra form";
    gap: 28px var(--gap);
    align-items: start;
}

.contact__head { grid-area: head; display: grid; gap: 28px; justify-items: start; }
.contact__extra { grid-area: extra; display: grid; gap: 28px; }
.contact .form-card { grid-area: form; }

.contact__title {
    font-family: var(--font-brand);
    font-size: calc(var(--fs-display) * 0.88);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.contact__text { max-width: 440px; color: var(--muted); }
.contact__text strong { font-weight: inherit; }
.contact__head .chips { gap: 8px; }
.contact__head .chip { font-size: var(--fs-chip-lg); }

.contact__direct {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 12px;
}

.direct {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 20px;
    background: var(--white);
    font-size: var(--fs-direct);
    font-weight: 400;
    line-height: 1.15;
    transition: box-shadow 0.2s var(--ease);
}

.direct:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.direct .label { color: var(--accent-ink); }

.call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: var(--ink);
    color: var(--white);
    font-size: var(--fs-story-text);
}

.call__text { display: grid; gap: 6px; }
.call__text h3 { font-size: inherit; font-weight: 400; line-height: 1.15; }

.form-card {
    padding: var(--form-pad);
    border-radius: 28px;
    background: var(--white);
}

.form { display: grid; gap: 24px; }

/* Honeypot anti-spam (send-email.php) */
.form-meta-group {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-progress { display: grid; gap: 10px; }

/* La maquette n'affiche pas la progression dans le formulaire de la page */
.contact-form .form-progress { display: none; }

/* Sur deux colonnes : la carte blanche garde la taille du formulaire et se cale en bas,
   alignée avec le bloc « appel » ; l'espace libre reste au-dessus, hors de la carte */
@media (min-width: 915.1px) {
    .contact .form-card { align-self: end; }
}

.form-progress__track {
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}

.form-progress-bar {
    width: 33.33%;
    height: 100%;
    border-radius: 2px;
    background: var(--ink);
    transition: width 0.35s var(--ease);
}

.form-progress__label { font-size: 12px; color: var(--muted); }

.form-section { display: none; gap: 24px; }

.form-section-active { display: grid; animation: step-in 0.35s var(--ease); }

@keyframes step-in {
    from { opacity: 0; transform: translateY(8px); }
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--fs-form-title);
    font-weight: 400;
    line-height: 1.15;
}

.form-step {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 16px;
    font-weight: 500;
}

.form-fields { display: grid; gap: 24px; }
.form-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.form-group { display: grid; gap: 8px; align-content: start; }
.form-group > label { color: var(--muted); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: 0;
    border-radius: 16px;
    background: var(--soft);
    font: inherit;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-group textarea { min-height: 128px; resize: vertical; }

.form-group select {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    cursor: pointer;
}

.form-group ::placeholder { color: var(--faint); opacity: 1; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }

.form-group .is-invalid { box-shadow: inset 0 0 0 1.5px var(--danger); }

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.consent-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-checkmark {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 0.05em;
    border-radius: 6px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--faint);
    transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.consent-label input:checked + .consent-checkmark {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: none;
}

.consent-label input:focus-visible + .consent-checkmark { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.form-consent.consent-invalid .consent-checkmark { box-shadow: inset 0 0 0 1.5px var(--danger); }
.form-consent.consent-invalid .consent-text { color: var(--danger); }
.consent-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form-nav { display: flex; gap: 10px; }
.form-nav .btn--dark { flex: 1; }

/* Messages injectés par form-handler.js */
.form-message {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.form-message-success { background: #e6f4ec; color: var(--ok); }
.form-message-error { background: #fbe9e7; color: var(--danger); }

/* --------------------------------------------------------------------------
   Pied de page
   Éléments à plat (logo · liens · crédit · filet · mentions) placés en grille
   -------------------------------------------------------------------------- */
.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "logo  nav   credit"
        "rule  rule  rule"
        "legal legal legal";
    align-items: center;
    gap: 28px 32px;
    padding: 32px var(--gutter) 36px;
    font-size: var(--fs-nav);
}

/* Logo + icône Instagram, côte à côte à toutes les largeurs */
.footer__brand { grid-area: logo; justify-self: start; display: flex; align-items: center; gap: 18px; }
.footer__nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: clamp(16px, calc(16px + (100vw - 1155px) * 0.0105), 19px); font-weight: 300; letter-spacing: 0.05em; text-transform: uppercase; }
.footer__nav a:hover,
.footer__links a:hover { color: var(--accent-ink); }

.footer__social { display: inline-flex; align-items: center; justify-content: center; padding-top: 4px; color: #3a3a38; transition: color 0.2s var(--ease); }
.footer__social:hover { color: var(--accent-ink); }
.footer__social svg { width: 22px; height: 22px; }

.footer__credit {
    grid-area: credit;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.footer__credit img { height: 16px; width: auto; }

/* 916 → 1185 (1170 de contenu + barre de défilement) : logo, icône, menu et « Réalisé par » ne
   tiennent plus sur une ligne ; le menu passe sur sa propre ligne, sous le logo */
@media (min-width: 915.1px) and (max-width: 1185px) {
    .footer {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo  credit"
            "nav   nav"
            "rule  rule"
            "legal legal";
    }

    .footer__nav { margin-top: -8px; }
}

.footer hr { grid-area: rule; width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }

.footer__legal {
    grid-area: legal;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    color: var(--muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Bouton flottant, bandeau cookies
   -------------------------------------------------------------------------- */
.floating-cta {
    position: fixed;
    z-index: 40;
    right: max(12px, calc(var(--gutter) / 2.5));
    bottom: max(12px, calc(var(--gutter) / 2.5));
    box-shadow: 0 12px 32px -8px rgba(13, 26, 31, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.3s var(--ease);
}

.floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s, background-color 0.3s var(--ease);
}

.cookie-banner {
    position: fixed;
    z-index: 45;
    left: max(12px, calc(var(--gutter) / 2.5));
    bottom: max(12px, calc(var(--gutter) / 2.5));
    display: none;
    gap: 16px;
    width: min(440px, calc(100vw - 24px));
    padding: 20px;
    border-radius: 24px;
    background: var(--ink);
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
}

.cookie-banner-visible { display: grid; }
.cookie-banner-text { display: grid; gap: 6px; }
.cookie-banner-text strong { font-size: 16px; }
.cookie-banner-text p { opacity: 0.8; }
.cookie-banner-text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-actions .btn { flex: 1; justify-content: center; padding: 6px 20px; }
.cookie-banner .btn--plain { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   Dispositions par palier (les tailles sont dans les variables en tête)
   ========================================================================== */

/* > 1140 (PC) */
@media (min-width: 1140.1px) {
    /* Hero à la hauteur de l'écran : 93vh, entre 690 et 1100px.
       En min-height et non en height : sur un écran peu haut, le contenu ne tient pas
       dans 93vh et serait rogné (le titre remonterait sur le grand logo) ; là, le hero s'allonge. */
    .hero { min-height: clamp(690px, 93vh, 1100px); }
}

/* ≤ 1653 (1638 de contenu + barre de défilement) : la semaine type défile latéralement,
   avec une barre de progression et, à la souris, deux flèches */
@media (max-width: 1653px) {
    .week {
        display: flex;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .week::-webkit-scrollbar { display: none; }
    .day { flex: none; width: 280px; scroll-snap-align: start; }

    .week-progress {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: -9px;
        color: var(--faint);
    }

    .week-progress__track {
        flex: 1;
        height: 2px;
        background: var(--line);
    }

    .week-progress__bar {
        width: var(--w, 25%);
        height: 100%;
        background: var(--ink);
        transform: translateX(var(--x, 0%));
    }
}

/* Flèches de la semaine : seulement avec une souris (au doigt, on fait glisser) */
.week__arrows { display: none; gap: 8px; }

@media (max-width: 1653px) and (hover: hover) and (pointer: fine) {
    .week__arrows { display: flex; }
}

.week__arrow[disabled] { opacity: 0.35; cursor: default; }
.week__arrow[disabled]:hover { background: var(--white); }

/* 769 → 905 (890 de contenu + barre de défilement) : jalons sur 2 colonnes, le dernier passe
   à la ligne sur toute la largeur. Sous 768 la photo passe au-dessus : les 3 retiennent en ligne. */
@media (min-width: 768.1px) and (max-width: 905px) {
    .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .milestones li:last-child { grid-column: 1 / -1; }
}

/* ≤ 365 (350 de contenu + barre de défilement) : « Découvrir notre histoire » devient « Découvrir » */
@media (max-width: 365px) {
    .btn__more { display: none; }
}

/* ≤ 1697 (1682 de contenu + barre de défilement) : « Réserver un créneau » passe sous le texte */
@media (max-width: 1697px) {
    .call { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ≤ 915 (900 de contenu + barre de défilement) : contact en une colonne
   (en-tête, formulaire, puis coordonnées), disposition reprise du palier 768 */
@media (max-width: 915px) {
    .contact {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "head" "form" "extra";
    }

    .contact__text { max-width: none; }
}

/* ≤ 387 (372 de contenu + barre de défilement) : formulaires sur une colonne, champs à la largeur
   de la carte, boutons « Suivant » / « Précédent » l'un sous l'autre */
@media (max-width: 387px) {
    .form-fields--2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .form-section > *,
    .form-group > * { min-width: 0; }
    .form-group input:not([type="checkbox"]):not([type="radio"]),
    .form-group select,
    .form-group textarea { width: 100%; min-width: 0; }
    .form-nav { flex-direction: column-reverse; }
    .form-nav .btn { width: 100%; }
    .form-nav .btn--plain { justify-content: center; }
}

/* ≤ 445 (430 de contenu + barre de défilement) : un jalon par ligne */
@media (max-width: 445px) {
    .milestones { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ≤ 1315 : citation en pleine largeur ; le guillemet passe à gauche du texte
   au lieu d'occuper sa propre ligne, pour qu'elle reste basse */
@media (max-width: 1315px) {
    .coach__quote { padding: 24px 28px; }
    .coach__quote::before { top: -20px; right: 24px; font-size: 200px; line-height: 170px; }
}

@media (max-width: 500px) {
    .coach__quote { padding: 20px; }
    .coach__quote::before { font-size: 150px; line-height: 130px; }
}

/* ≤ 1315 (1300 de contenu + barre de défilement) : en 3 colonnes la fiche coach étouffe
   la colonne centrale ; disposition « photo + identité, puis citation, puis spécialités » */
@media (max-width: 1315px) {
    /* Coachs : photo + identité, puis citation, puis spécialités */
    .coach,
    .coach--reverse {
        grid-template-columns: var(--coach-photo) minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "photo id" "quote quote" "spec spec";
        gap: 16px;
    }

    .coach--reverse {
        grid-template-columns: minmax(0, 1fr) var(--coach-photo);
        grid-template-areas: "id photo" "quote quote" "spec spec";
    }

    .coach__id { align-content: center; padding: 24px; }
    .coach__spec { padding: 16px 0 0; }   /* de l'air entre la citation et les spécialités */
    .coach__quote p { margin-top: 0; }
}

/* ≤ 1140 */
@media (max-width: 1140px) {
    /* Hero : les trois cartes verre empilées (maquette 1140) */
    .hero__cluster { grid-template-columns: minmax(0, 1fr); }

    /* Semaine type : 3 × 2 */
    .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Formules : One shot + Monthly côte à côte, Premium sur toute la largeur */
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
    .plan--dark-head { grid-column: 1 / -1; }

    /* Pied de page : mentions au-dessus du copyright */
    .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* < 1140 : dans « Bilan initial », les cartes en 3 colonnes sont déjà trop étroites
   (titres et exercices sur 2 lignes) : une par ligne, visuel à gauche */
@media (max-width: 1139px) {
    .panel-wrap .vcards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }

    .panel-wrap .vcard {
        grid-template-columns: 300px minmax(0, 1fr);
        grid-template-rows: none;
        grid-row: auto;
        align-items: center;
    }

    .panel-wrap .vcard__visual { align-self: stretch; }
}

/* 961 → 1225 : un seul téléphone visible (les latéraux sont masqués), ce qui rend de la
   largeur au bloc des avantages pour que son texte respire */
@media (min-width: 960.1px) and (max-width: 1225px) {
    .app { grid-template-columns: minmax(0, 1fr) 400px; }

    .hero-mockup.is-prev,
    .hero-mockup.is-next { opacity: 0; pointer-events: none; }
}

/* ≤ 960 : plus assez de place pour les avantages à côté du carrousel sans couper
   les téléphones latéraux : les avantages passent au-dessus */
@media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); }
}

/* ≤ 915 : en 3 colonnes les cartes à visuel deviennent trop étroites */
@media (max-width: 915px) {
    /* Cartes à visuel : une par ligne, visuel à gauche */
    .vcards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }

    .vcard {
        grid-template-columns: 300px minmax(0, 1fr);
        grid-template-rows: none;
        grid-row: auto;
        align-items: center;
    }

    .vcard__visual { align-self: stretch; }

    /* Pied de page (repris du palier 768) : logo, liens, filet, mentions,
       puis « Réalisé par » et son logo en bas */
    .footer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "logo" "nav" "rule" "legal" "credit";
    }

    .footer__nav { margin-top: -10px; }
}

/* ≤ 1024 : carte coachs étroite, les noms passent sous les photos */
@media (max-width: 1024px) {
    .hero__stat-top { flex-direction: column; align-items: flex-start; }
}

/* ≤ 768 : une colonne */
@media (max-width: 768px) {
    .nav { display: none; }
    .burger { display: grid; }
    .header__bar { padding-right: 8px; }

    .hero__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin-top: 64px;
        padding-top: 0;
    }

    /* Le titre suit la largeur du bloc pour rester sur 2 lignes (plafonné à la taille du palier) */
    .hero__copy { margin-bottom: 0; container-type: inline-size; }
    .hero__title { font-size: min(var(--fs-display), calc(100cqw / 12.3)); }

    /* Chiffres : carte coachs sur toute la largeur, les deux chiffres côte à côte dessous */
    .hero__cluster { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__stat-top { flex-direction: row; align-items: center; }

    .intro,
    .faq,
    .app,
    .story { grid-template-columns: minmax(0, 1fr); }

    /* titre au-dessus du texte : il dispose de toute la largeur du bloc */
    .intro__title { font-size: min(var(--fs-title), calc(100cqw / var(--fit, 8.2))); }
    .intro__body { padding-top: 0; }
    .faq { gap: 24px; }

    .ui-check { font-size: 16px; }
    .benefit { min-height: 92px; }

    /* Carrousel bord à bord : les trois écrans restent affichés et les latéraux
       sortent de l'écran, comme s'ils continuaient au-delà */
    .app-stage { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }

    /* Carrousel allégé sur mobile : seuls le déplacement et l'opacité sont animés (pris en charge
       par la carte graphique). Le changement de teinte, l'ombre animée et le fondu de l'écran
       entrant forçaient le navigateur à redessiner trois écrans complets à chaque image. */
    .hero-mockup { transition: transform 0.45s var(--ease), opacity 0.45s var(--ease); }

    .hero-mockup.is-prev,
    .hero-mockup.is-next { --bg: #0e1214; box-shadow: none; }

    .hero-mockup.is-active,
    .hero-mockup.is-entering-right,
    .hero-mockup.is-entering-left {
        -webkit-mask: none;
        mask: none;
        animation: none;
        box-shadow: 0 17px 34px -8px rgba(13, 26, 31, 0.32);
    }

    .hero-mockup.is-crossing { animation-duration: 0.45s; }

    /* Formules : une par ligne, en-tête à gauche */
    .plans { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    /* une carte par ligne, en-tête compact au-dessus des avantages */

    .story__photo { order: -1; }
    .story__content { padding: 32px 24px 24px; }

}

/* ≤ 655 (640 de contenu + barre de défilement) : visuel au-dessus, texte en dessous */
@media (max-width: 655px) {
    .vcard,
    .panel-wrap .vcard { grid-template-columns: minmax(0, 1fr); align-items: stretch; }

    /* Coachs et formules : empilés dès ici (entre 501 et ~620px ils débordaient de la page) */
    .coach,
    .coach--reverse {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "photo" "id" "quote" "spec";
        gap: 12px;
    }

    .coach__photo { min-height: 0; aspect-ratio: 1; }
    .coach__id { padding: 24px 8px; }

}

/* ≤ 500 : mobile */
@media (max-width: 500px) {
    .header__bar { padding-left: 18px; padding-right: 6px; }
    .hero__bottom { margin-top: 36px; }

    .vcards { gap: 12px; }
    .vcard { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
    .vcard__visual { min-height: 197px; }

    /* Coachs : tout empilé */
    .coach,
    .coach--reverse {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "photo" "id" "quote" "spec";
        gap: 12px;
    }

    .coach__photo { min-height: 0; aspect-ratio: 1; }
    .coach__id { padding: 24px 8px; }

    /* Semaine type : cartes plus étroites */
    .day { width: 230px; }

    .plan__head { padding: 14px 18px; }
    .plan__name { font-size: 22px; }
    .plan__price b { font-size: 40px; }

    .faq-question { padding: 18px 16px; gap: 12px; }
    .faq-item.active .faq-question { padding-bottom: 10px; }
    .faq-answer p { padding: 0 16px 18px; }

    .story__content { padding: 32px 12px 24px; }

    .contact__direct { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .call { flex-direction: column; align-items: flex-start; gap: 16px; }

    .footer__nav { gap: 8px 20px; }
    .footer__links { gap: 10px 16px; }

    .menu__link { padding: 14px 0; font-size: 30px; }
    .menu__contact { grid-template-columns: minmax(0, 1fr); }
    .menu__card { padding: 14px; font-size: 17px; }

}

/* ≤ 380 : maquette 320 */
@media (max-width: 380px) {
    .hero__bottom { margin-top: 20px; }

    .day { width: 200px; }
    .chip { white-space: normal; }

    .milestones { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .story__bottom .btn { display: flex; width: 100%; }

    /* Pied de page centré */
    .footer__brand { justify-self: center; }
    .footer__nav,
    .footer__links { justify-content: center; }
    .footer__copy { align-self: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header,
    .menu,
    .floating-cta,
    .cookie-banner { display: none !important; }

    .hero__wordmark,
    .hero__copy,
    .hero__cluster > * { -webkit-mask: none; mask: none; animation: none; }
    .header__bar,
    .header__bar > * { animation: none; }
}
