/* ==========================================================================
   HEDI TRAINING — assets/styles/app.css
   --------------------------------------------------------------------------
   Feuille unique, importée par assets/app.js (AssetMapper).

   0.  Reset commun
   1.  Espace coach (application connectée) — règles d'origine, inchangées
   2.  Site vitrine — jetons (couleurs, typographie, mise en page)
   3.  Site vitrine — base, utilitaires, titres, boutons
   4.  En-tête et menu mobile
   5.  Accueil — héros
   6.  Maquettes de téléphone
   7.  Bandeaux défilants
   8.  Accueil — fonctionnalités
   9.  Accueil — vidéos
   10. Accueil — séances sur mesure
   11. Accueil — tarifs
   12. Accueil — appel à l'action final
   13. Pied de page
   14. Pages légales
   15. Bandeau cookies (partiel _cookie_banner, classes conservées)
   16. Lenis (défilement fluide)
   17. États d'animation et mouvement réduit
   18. Anciennes classes .legal-* (compatibilité)

   Toutes les classes du site vitrine sont préfixées « ht- » : aucune collision possible
   avec l'espace coach (.btn-primary, .panel, .badge…) ni avec Bootstrap (.btn, .nav, .container).
   ========================================================================== */


/* ==========================================================================
   0. RESET COMMUN
   ========================================================================== */

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


/* ==========================================================================
   1. ESPACE COACH (application connectée)
   Règles d'origine conservées telles quelles — seule l'indentation a été reprise.
   ========================================================================== */

:root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f5f5f3;
    --color-bg-tertiary: #eeede9;
    --color-text-primary: #1a1a18;
    --color-text-secondary: #6b6b66;
    --color-text-tertiary: #a8a8a2;
    --color-border: #e4e3dd;
    --color-border-strong: #c8c7c0;
    --color-accent: #1D9E75;
    --color-accent-dark: #0F6E56;
    --color-accent-light: #E1F5EE;
    --radius-md: 8px;
    --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #1c1c1a;
        --color-bg-secondary: #252523;
        --color-bg-tertiary: #2e2e2b;
        --color-text-primary: #f0efe9;
        --color-text-secondary: #9a9993;
        --color-text-tertiary: #6b6b64;
        --color-border: #383835;
        --color-border-strong: #4a4a46;
        --color-accent-light: #0d3328;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}
a{
    text-decoration: none;
}
.app {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
}
/* SIDEBAR */
.sidebar {
    width: 230px;
    background: var(--color-bg-primary);
    border-right: 0.5px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 10;
}

.sidebar-logo {
    padding: 22px 18px 18px;
    border-bottom: 0.5px solid var(--color-border);
}
.sidebar-logo .brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-logo .brand i { color: var(--color-accent); font-size: 20px; }
.sidebar-logo .sub {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 3px;
}

.nav-section { padding: 14px 10px 4px; }
.nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px;
    margin-bottom: 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: all 0.15s;
    user-select: none;
}
.nav-item:hover { background: var(--color-bg-secondary); color: var(--color-text-primary); }
.nav-item.active { background: #1D9E7520; color: var(--color-accent-dark); font-weight: 500; }
.nav-item i { font-size: 17px; }

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-top: 0.5px solid var(--color-border);
}
.coach-card { display: flex; align-items: center; gap: 10px; }
.coach-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    color: var(--color-accent-dark);
    flex-shrink: 0;
}
.coach-name { font-size: 13px; font-weight: 500; color: var(--color-text-primary); }
.coach-role { font-size: 11px; color: var(--color-text-secondary); }

/* MAIN */
.main {
    flex: 1;
    margin-left: 230px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.view-panel { display: none; flex-direction: column; min-height: 100vh; }
.view-panel.active { display: flex; }

.topbar {
    padding: 16px 24px;
    background: var(--color-bg-primary);
    border-bottom: 0.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0;
    z-index: 5;
}
.topbar-title { font-size: 17px; font-weight: 600; color: var(--color-text-primary); }
.topbar-desc { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }

.btn-primary {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-primary i { font-size: 16px; }

.content {
    flex: 1;
    padding: 20px 24px;
}

/* STATS */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--color-bg-primary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.stat-label { font-size: 11px; color: var(--color-text-secondary); margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 600; color: var(--color-text-primary); }
.stat-badge {
    font-size: 11px;
    color: var(--color-accent-dark);
    background: var(--color-accent-light);
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* PANELS */
.panels {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
}

.panel {
    background: var(--color-bg-primary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.panel-header {
    padding: 13px 18px;
    border-bottom: 0.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-title i { font-size: 17px; color: var(--color-accent); }
.panel-body { padding: 16px 18px; overflow-y: scroll; }

/* FORM */
.form-row { margin-bottom: 13px; }
.form-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px; display: block; }
.form-input {
    width: 100%;
    background: var(--color-bg-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 11px;
    font-size: 13px;
    color: var(--color-text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--color-accent); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; }

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

.tag-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 0.5px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    transition: all 0.12s;
    user-select: none;
}
.tag:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.tag.selected {
    background: var(--color-accent-light);
    border-color: #5DCAA5;
    color: #085041;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
}
.btn-submit:hover { background: var(--color-accent-dark); }

/* LIST */
/* .exo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
} */
.exo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    transition: border-color 0.12s;
}
.exo-item:hover { border-color: var(--color-border-strong); }
.exo-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.exo-info { flex: 1; min-width: 0; }
.exo-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exo-meta {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 3px;
    display: flex;
    /* gap: 5px; */
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}
.badge-teal   { background: #E1F5EE; color: #085041; }
.badge-amber  { background: #FAEEDA; color: #633806; }
.badge-blue   { background: #E6F1FB; color: #0C447C; }
.badge-coral  { background: #FAECE7; color: #4A1B0C; }
.badge-purple { background: #EEEDFE; color: #26215C; }
.badge-green  { background: #EAF3DE; color: #173404; }
.badge-gray   { background: #F1EFE8; color: #2C2C2A; }

.btn-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-tertiary);
    font-size: 16px;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.12s, background 0.12s;
    display: flex;
    align-items: center;
}
.btn-del:hover { color: #E24B4A; background: #FCEBEB; }

.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.filter-btn {
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 20px;
    border: 0.5px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text-secondary);
    background: transparent;
    transition: all 0.12s;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.filter-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: white; }

.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--color-text-tertiary);
}
.empty-state i { font-size: 32px; display: block; margin-bottom: 10px; }
.empty-state p { font-size: 13px; line-height: 1.6; }

.seance-exo-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    padding: 8px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 0.5px solid var(--color-border);
    align-items: flex-start;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sidebar { width: 200px; }
    .main { margin-left: 200px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .panels { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   2. SITE VITRINE — JETONS
   Couleurs tirées des matières d'une salle de musculation.
   ========================================================================== */

:root {
    --ht-white: #ffffff;
    --ht-chalk: #ecede9;          /* craie : fonds alternés */
    --ht-rubber: #121212;         /* caoutchouc du sol : texte, sections sombres */
    --ht-steel: #5b5b56;          /* texte secondaire sur clair (contraste 6,8:1) */
    --ht-ash: #a3a39d;            /* texte secondaire sur sombre (7,3:1) */
    --ht-body: #2b2b29;           /* texte courant long (pages légales) */
    --ht-signal: #ff3d00;         /* rouge HEDI — couleur de marque */
    --ht-plate-green: #1fa34a;    /* disque 10 kg → niveau débutant */
    --ht-plate-yellow: #f5c400;   /* disque 15 kg → niveau intermédiaire */
    --ht-plate-red: #ff3d00;      /* disque 25 kg → niveau avancé */
    --ht-line: rgba(18, 18, 18, .12);
    --ht-line-strong: rgba(18, 18, 18, .3);
    --ht-line-dark: rgba(255, 255, 255, .14);

    --ht-font-display: 'Big Shoulders', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --ht-font-text: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --ht-max: 90rem;                               /* 1440px */
    --ht-gutter: clamp(1.25rem, 4vw, 3.5rem);
    --ht-section: clamp(5rem, 11vw, 10rem);
    --ht-header-h: 4.5rem;
    --ht-radius-card: 14px;
    --ht-radius-pill: 999px;
    --ht-ease-out: cubic-bezier(.16, 1, .3, 1);
}


/* ==========================================================================
   3. SITE VITRINE — BASE, UTILITAIRES, TITRES, BOUTONS
   ========================================================================== */

:root:has(> body.ht-site) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Annule les règles globales de l'espace coach (body en flex, fond gris, police système). */
.ht-site {
    display: block;
    min-height: 100vh;
    background: var(--ht-white);
    color: var(--ht-rubber);
    font-family: var(--ht-font-text);
    font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

.ht-site img { display: block; max-width: 100%; height: auto; }
.ht-site svg { flex-shrink: 0; }
.ht-site a { color: inherit; }
.ht-site button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ht-site ul[class],
.ht-site ol[class] { list-style: none; }
.ht-site ::selection { background: var(--ht-signal); color: var(--ht-rubber); }
.ht-site :focus-visible { outline: 3px solid var(--ht-signal); outline-offset: 3px; }
.ht-site [tabindex="-1"]:focus { outline: none; }

.ht-container {
    width: 100%;
    max-width: var(--ht-max);
    margin-inline: auto;
    padding-inline: var(--ht-gutter);
}

.ht-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.ht-skip {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1.1rem;
    border-radius: var(--ht-radius-pill);
    background: var(--ht-rubber);
    color: var(--ht-white);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s;
}
.ht-skip:focus { transform: none; }

/* ── Titres et textes d'introduction ── */

.ht-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-size: .9375rem;
    font-weight: 600;
    font-stretch: 87.5%;
    line-height: 1.2;
    color: var(--ht-steel);
}
.ht-kicker::before {
    content: '';
    flex: none;
    width: .62em;
    height: .62em;
    border-radius: 50%;
    background: var(--ht-signal);
}

.ht-h2 {
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(2.75rem, 1.5rem + 5.4vw, 6.5rem);
    line-height: .9;
    letter-spacing: -.005em;
}

.ht-lede {
    max-width: 34em;
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    line-height: 1.55;
    color: var(--ht-steel);
}

/* Lignes de titre masquées : le texte « monte » depuis sa ligne de base (site.js).
   Le rembourrage laisse la place aux accents des capitales (É, Î). */
.ht-line {
    display: block;
    overflow-x: visible;
    overflow-y: clip;
    padding-block: .16em .08em;
    margin-block: -.16em -.08em;
}
.ht-line > span { display: block; }

.ht-section-head {
    display: grid;
    gap: 1.25rem 2rem;
}
@media (min-width: 64em) {
    .ht-section-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
    .ht-section-head > .ht-kicker { grid-row: 1 / span 2; align-self: start; margin-top: .9rem; }
    .ht-section-head > :not(.ht-kicker) { grid-column: 2; }
}

/* ── Boutons ── */

.ht-btn {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 3.25rem;
    padding: 0 1.6rem;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--ht-radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--ht-font-text);
    font-size: 1rem;
    font-weight: 650;
    font-stretch: 87.5%;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ht-ease-out);
}
.ht-btn:active { transform: translateY(1px); }
.ht-btn:disabled { opacity: .45; cursor: not-allowed; }
.ht-btn svg { width: 1.15em; height: 1.15em; }

/* Texte noir sur rouge HEDI : 5,6:1 (le blanc n'atteint que 3,55:1). */
.ht-btn--signal { --btn-bg: var(--ht-signal); --btn-fg: var(--ht-rubber); --btn-border: var(--ht-signal); }
.ht-btn--signal:hover { --btn-bg: var(--ht-rubber); --btn-fg: var(--ht-white); --btn-border: var(--ht-rubber); }
.ht-btn--ink { --btn-bg: var(--ht-rubber); --btn-fg: var(--ht-white); --btn-border: var(--ht-rubber); }
.ht-btn--ink:hover { --btn-bg: var(--ht-signal); --btn-fg: var(--ht-rubber); --btn-border: var(--ht-signal); }
.ht-btn--ghost { --btn-border: currentColor; }
.ht-btn--ghost:hover { --btn-bg: var(--ht-rubber); --btn-fg: var(--ht-white); --btn-border: var(--ht-rubber); }
.ht-btn--lg { min-height: 3.75rem; padding-inline: 2rem; font-size: 1.0625rem; }
.ht-btn--sm { min-height: 2.5rem; padding-inline: 1.15rem; font-size: .9375rem; }
.ht-btn--block { width: 100%; }

/* Sur fond sombre */
.ht-on-dark .ht-btn--signal:hover,
.ht-on-dark .ht-btn--ghost:hover { --btn-bg: var(--ht-white); --btn-fg: var(--ht-rubber); --btn-border: var(--ht-white); }
.ht-on-dark .ht-kicker { color: var(--ht-ash); }


/* ==========================================================================
   4. EN-TÊTE ET MENU MOBILE
   ========================================================================== */

.ht-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: var(--ht-header-h);
    color: var(--ht-rubber);
    transition: transform .5s var(--ht-ease-out), background-color .3s, box-shadow .3s, color .3s;
}
.ht-header.is-solid {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 var(--ht-line);
}
.ht-header.is-hidden { transform: translateY(-100%); }

.ht-header__bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.ht-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: none;
    text-decoration: none;
}
.ht-brand__logo { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.ht-brand__name {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--ht-signal);
}

.ht-header__nav { display: none; }
.ht-header__nav a,
.ht-header__login {
    padding-block: .35rem;
    font-size: .9375rem;
    font-weight: 600;
    font-stretch: 87.5%;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    transition: background-size .35s var(--ht-ease-out);
}
.ht-header__nav a:hover,
.ht-header__login:hover { background-size: 100% 1.5px; }

.ht-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.ht-header__login { display: none; }

.ht-burger {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -.6rem;
}
.ht-burger__lines,
.ht-burger__lines::before,
.ht-burger__lines::after {
    display: block;
    width: 1.375rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s var(--ht-ease-out), background-color .2s;
}
.ht-burger__lines { position: relative; }
.ht-burger__lines::before,
.ht-burger__lines::after { content: ''; position: absolute; left: 0; }
.ht-burger__lines::before { top: -7px; }
.ht-burger__lines::after { top: 7px; }
.ht-burger[aria-expanded="true"] .ht-burger__lines { background-color: transparent; }
.ht-burger[aria-expanded="true"] .ht-burger__lines::before { transform: translateY(7px) rotate(45deg); }
.ht-burger[aria-expanded="true"] .ht-burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 64em) {
    .ht-header__nav { display: flex; gap: 2.25rem; margin-inline: auto; }
    .ht-header__actions { margin-left: 0; }
    .ht-header__login { display: inline-block; }
    .ht-burger { display: none; }
}

/* Petits écrans : tout doit tenir sur une ligne (le bouton reste dans le menu et le héros). */
@media (max-width: 29.99em) {
    .ht-header__bar { gap: 1rem; }
    .ht-header__actions { gap: .6rem; }
    .ht-brand { gap: .5rem; }
    .ht-brand__logo { width: 2.25rem; height: 2.25rem; }
    .ht-brand__name { font-size: 1.5rem; }
}
@media (max-width: 24.99em) {
    .ht-header__actions .ht-btn--signal { display: none; }
}

.ht-menu {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    padding: calc(var(--ht-header-h) + 2rem) var(--ht-gutter) 2rem;
    overflow-y: auto;
    background: var(--ht-rubber);
    color: var(--ht-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.ht-menu[hidden] { display: none; }
.ht-menu.is-open { opacity: 1; visibility: visible; }
.ht-menu__links { display: grid; gap: .35rem; }
.ht-menu__links a {
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(3rem, 15vw, 5rem);
    line-height: .95;
    text-decoration: none;
}
.ht-menu__links a:hover { color: var(--ht-signal); }

/* Menu ouvert : l'en-tête se pose sur le fond noir du menu. */
.ht-menu-open .ht-header,
.ht-menu-open .ht-header.is-solid {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ht-white);
    transform: none;
}
.ht-menu-open .ht-header .ht-btn--signal { visibility: hidden; }


/* ==========================================================================
   5. ACCUEIL — HÉROS
   Le titre est calibré pour remplir la largeur en graisse 900 (unités cqi,
   aucune mesure en JS). « ENTRAÎNEZ-VOUS » part en graisse 200 — il fait alors
   exactement la largeur de « PLUS FORT. » — puis s'épaissit au scroll.
   ========================================================================== */

.ht-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-block: calc(var(--ht-header-h) + clamp(1rem, 3vh, 2.5rem)) clamp(2rem, 5vh, 3.5rem);
    overflow: clip;
}
.ht-hero__inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.6vh, 1.75rem);
}

.ht-hero__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
    font-size: .875rem;
    font-weight: 600;
    font-stretch: 87.5%;
    color: var(--ht-steel);
}
.ht-hero__status > span:last-child { padding-left: .75rem; border-left: 1px solid var(--ht-line-strong); }
.ht-hero__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--ht-plate-green);
    box-shadow: 0 0 0 4px rgba(31, 163, 74, .18);
}

.ht-hero__title-wrap { container-type: inline-size; }
.ht-hero__title {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: min(calc(100cqi / 6.3), 26svh);
    line-height: .84;
    text-transform: uppercase;
    white-space: nowrap;
}
.ht-hero__line {
    display: block;
    overflow-x: visible;
    overflow-y: clip;
    padding-block: .16em .06em;
    margin-block: -.16em -.06em;
}
.ht-hero__line > span { display: block; }
.ht-hero__word { display: inline-block; font-weight: 200; }

.ht-hero__body {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: start;
    gap: 1.25rem;
    max-width: 34rem;
    margin-top: clamp(.25rem, 1.5vh, 1rem);
}
.ht-hero__lede {
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    line-height: 1.5;
    color: #3b3b38;
}
.ht-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ht-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    font-size: .875rem;
    color: var(--ht-steel);
}

@media (max-width: 39.99em) {
    .ht-hero__title { font-size: calc(100cqi / 4.45); }
    .ht-hero__word { display: block; }
    .ht-hero__actions { width: 100%; }
    .ht-hero__actions .ht-btn { flex: 1 1 100%; }
}

/* ── Groupe de trois téléphones ── */

.ht-phones {
    position: relative;
    width: min(100%, 27rem);
    aspect-ratio: 27 / 30;
    margin: 1rem auto 0;
    container-type: inline-size;
}
.ht-phones__item { position: absolute; bottom: 0; }
.ht-phones__item .ht-phone { --phone-w: 44cqi; }
.ht-phones__item--left { left: 0; bottom: 5%; rotate: -6deg; z-index: 1; }
.ht-phones__item--right { right: 0; bottom: 5%; rotate: 6deg; z-index: 1; }
.ht-phones__item--center { left: 24cqi; z-index: 2; }
.ht-phones__item--center .ht-phone { --phone-w: 52cqi; }

@media (min-width: 64em) {
    .ht-phones {
        position: absolute;
        z-index: 2;
        right: 0;
        bottom: 0;
        width: min(34%, 30rem);
        margin: 0;
    }
}


/* ==========================================================================
   6. MAQUETTES DE TÉLÉPHONE
   Tout est en em : modifier --phone-w redimensionne l'ensemble (1em = largeur / 20).
   ========================================================================== */

.ht-phone {
    --phone-w: 13rem;
    position: relative;
    width: var(--phone-w);
    aspect-ratio: 9 / 19.2;
    padding: .4em;
    font-size: calc(var(--phone-w) / 20);
    border-radius: 2.7em;
    background: #1b1b1a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .07),
        0 2.5em 5em -1.5em rgba(0, 0, 0, .45),
        0 .75em 1.5em rgba(0, 0, 0, .12);
}
.ht-phone__screen { height: 100%; overflow: hidden; border-radius: 2.3em; background: #070707; }
.ht-phone__notch {
    position: absolute;
    z-index: 2;
    top: .4em;
    left: 50%;
    width: 6.4em;
    height: 1.5em;
    border-radius: 0 0 1em 1em;
    background: #1b1b1a;
    translate: -50% 0;
}
.ht-phone__home {
    position: absolute;
    z-index: 2;
    bottom: 1em;
    left: 50%;
    width: 4.4em;
    height: .3em;
    border-radius: 1em;
    background: #3b3b39;
    translate: -50% 0;
}

.ht-app {
    display: flex;
    flex-direction: column;
    gap: .75em;
    padding: 2.5em 1.2em 2em;
    color: #f0f0ec;
    font-family: var(--ht-font-text);
    line-height: 1.25;
}
.ht-app__time { font-size: .62em; color: #6a6a66; font-variant-numeric: tabular-nums; }
.ht-app__overline { font-size: .58em; font-weight: 700; letter-spacing: .1em; color: var(--ht-signal); }
.ht-app__hello { font-family: var(--ht-font-display); font-weight: 900; font-size: 2.4em; line-height: .9; }
.ht-app__overline + .ht-app__hello { margin-top: -.25em; }
.ht-app__card {
    display: grid;
    gap: .4em;
    padding: .8em;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: .5em;
    background: #121211;
}
.ht-app__card--accent { border-color: rgba(255, 61, 0, .45); }
.ht-app__row { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.ht-app__title { font-family: var(--ht-font-display); font-weight: 900; font-size: 1.9em; line-height: .9; }
.ht-app__title--xl { font-size: 3em; line-height: .86; }
.ht-app__play {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--ht-signal);
    color: #fff;
}
.ht-app__play svg { width: .8em; height: .8em; margin-left: .12em; }
.ht-app__play--lg {
    position: relative;
    z-index: 1;
    width: 3.2em;
    height: 3.2em;
    box-shadow: 0 0 2em rgba(255, 61, 0, .5);
    transition: opacity .3s, transform .4s var(--ht-ease-out);
}
.ht-app__play--lg svg { width: 1.1em; height: 1.1em; }
.ht-app__meta { display: flex; flex-wrap: wrap; gap: .35em; font-size: .55em; color: #7a7a75; }
.ht-app__meta span + span::before { content: '·'; margin-right: .35em; }
.ht-app__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.ht-app__tile { padding: .65em; border: 1px solid rgba(255, 255, 255, .07); border-radius: .4em; background: #121211; }
.ht-app__label { margin-bottom: .5em; font-size: .48em; font-weight: 700; letter-spacing: .1em; color: #66665f; }
.ht-app__value {
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: 1.6em;
    line-height: 1;
    color: var(--ht-signal);
    font-variant-numeric: tabular-nums;
}
.ht-app__value--light { color: #f0f0ec; }
.ht-app__week { display: flex; justify-content: space-between; }
.ht-app__day { display: flex; flex-direction: column; align-items: center; gap: .5em; font-size: .46em; color: #555550; }
.ht-app__day::after { content: ''; width: 1.1em; height: 1.1em; border-radius: 50%; background: #262624; }
.ht-app__day--done::after { background: var(--ht-signal); }
.ht-app__day--today { color: var(--ht-plate-green); }
.ht-app__day--today::after { width: 1.35em; height: 1.35em; background: var(--ht-plate-green); box-shadow: 0 0 .8em var(--ht-plate-green); }
.ht-app__day--future::after { opacity: .3; }

/* Fiche exercice */
.ht-app__back { display: flex; align-items: center; gap: .25em; font-size: .6em; font-weight: 600; letter-spacing: .06em; color: #6a6a66; }
.ht-app__back svg { width: 1.15em; height: 1.15em; }
.ht-app__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; font-size: .55em; color: #7a7a75; }
.ht-app__tag { padding: .25em .65em; border-radius: .3em; font-weight: 700; letter-spacing: .06em; }
.ht-app__tag--avance { background: rgba(255, 61, 0, .16); color: #ff7a4d; }
.ht-app__video {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: .5em;
    background: linear-gradient(135deg, #1d1d1c, #0b0b0a);
}
.ht-app__barbell { position: absolute; width: 76%; height: auto; opacity: .5; }
.ht-app__video-time,
.ht-app__video-hd { position: absolute; bottom: .55em; font-size: .52em; color: rgba(255, 255, 255, .65); }
.ht-app__video-time { left: .7em; display: flex; align-items: center; gap: .3em; }
.ht-app__video-time svg { width: .75em; height: .75em; }
.ht-app__video-hd { right: .7em; font-weight: 700; color: var(--ht-signal); }

/* Bibliothèque */
.ht-app__chips { display: flex; gap: .4em; }
.ht-app__chips span {
    padding: .3em .7em;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .25em;
    font-family: var(--ht-font-display);
    font-weight: 700;
    font-size: .85em;
    letter-spacing: .04em;
    color: #77776f;
}
.ht-app__chips .is-active { border-color: var(--ht-signal); background: var(--ht-signal); color: #fff; }
.ht-app__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6em;
    padding-block: .65em;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ht-app__list-name { display: grid; gap: .2em; font-family: var(--ht-font-display); font-weight: 700; font-size: 1.15em; line-height: 1; }
.ht-app__list-name small { font-family: var(--ht-font-text); font-weight: 400; font-size: .45em; color: #66665f; }
.ht-app__sets { font-size: .78em; color: #94948d; font-variant-numeric: tabular-nums; }

/* Lecteur vidéo (section Vidéos) — piloté par le scroll via site.js */
.ht-app__video--tall { aspect-ratio: 9 / 11; }
.ht-app__rep { position: absolute; inset: 0; display: grid; place-items: center; }
.ht-app__rep .ht-app__barbell { position: static; width: 82%; opacity: .75; }
.ht-app__player {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: .55em;
    padding: 1.2em .8em .8em;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.ht-app__progress { display: block; height: .25em; overflow: hidden; border-radius: 1em; background: rgba(255, 255, 255, .2); }
.ht-app__progress > span {
    display: block;
    height: 100%;
    background: var(--ht-signal);
    transform: scaleX(var(--progress, .35));
    transform-origin: left;
}
.ht-app__player-row { display: flex; justify-content: space-between; font-size: .58em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.ht-app__player-row .ht-app__video-hd { position: static; font-size: 1em; }
.ht-app__cues li {
    display: flex;
    gap: .65em;
    padding-block: .6em;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .62em;
    line-height: 1.4;
    color: #8a8a84;
    transition: color .35s;
}
.ht-app__cues li::before {
    content: '';
    flex: none;
    width: .55em;
    height: .55em;
    margin-top: .42em;
    border-radius: 50%;
    background: var(--ht-signal);
    transition: background-color .35s, box-shadow .35s;
}
.is-scrubbing .ht-app__cues li { color: #575752; }
.is-scrubbing .ht-app__cues li::before { background: #3a3a37; }
.is-scrubbing .ht-app__cues li.is-active { color: #f4f4f0; }
.is-scrubbing .ht-app__cues li.is-active::before { background: var(--ht-signal); box-shadow: 0 0 .9em var(--ht-signal); }
.is-playing .ht-app__play--lg { opacity: 0; transform: scale(.6); }


/* ==========================================================================
   7. BANDEAUX DÉFILANTS
   Animation CSS par défaut ; site.js la remplace par un défilement dont la
   vitesse et le sens suivent ceux du scroll.
   ========================================================================== */

.ht-marquee {
    overflow: clip;
    padding-block: clamp(.9rem, 1.6vw, 1.25rem);
    user-select: none;
}
.ht-marquee--ink { background: var(--ht-rubber); color: var(--ht-white); }
.ht-marquee--signal { background: var(--ht-signal); color: var(--ht-rubber); }
.ht-marquee__track {
    display: flex;
    width: max-content;
    animation: ht-marquee 40s linear infinite;
}
.ht-marquee[data-marquee-direction="-1"] .ht-marquee__track { animation-direction: reverse; }
.ht-marquee.is-driven .ht-marquee__track { animation: none; }
.ht-marquee__group { display: flex; flex: none; }
.ht-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.ht-marquee__item::after {
    content: '';
    width: .3em;
    height: .3em;
    margin-inline: .75em;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}
.ht-marquee--ink strong { font-weight: 900; color: var(--ht-signal); }

@keyframes ht-marquee { to { transform: translateX(-25%); } }


/* ==========================================================================
   8. ACCUEIL — FONCTIONNALITÉS
   Grille par défaut (mobile, sans JS, mouvement réduit). Sur grand écran,
   site.js ajoute .is-hscroll : la section s'épingle et les cartes défilent
   à l'horizontale au rythme du scroll.
   ========================================================================== */

.ht-features {
    padding-top: var(--ht-section);
    background: var(--ht-white);
}
.ht-features__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ht-features__viewport { overflow: clip; padding-bottom: var(--ht-section); }
.ht-features__track {
    display: grid;
    gap: 1rem;
    max-width: var(--ht-max);
    margin-inline: auto;
    padding-inline: var(--ht-gutter);
}
@media (min-width: 40em) { .ht-features__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .ht-features__track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ht-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    min-height: 22rem;
    padding: clamp(1.5rem, 2.4vw, 2.25rem);
    border-radius: var(--ht-radius-card);
    background: var(--ht-chalk);
    color: var(--ht-rubber);
}
.ht-feature:nth-child(even) { background: var(--ht-rubber); color: var(--ht-white); }
.ht-feature__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ht-feature__metric {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: clamp(5.5rem, 3.5rem + 6vw, 10rem);
    line-height: .8;
    letter-spacing: -.01em;
}
.ht-feature:nth-child(even) .ht-feature__metric { color: var(--ht-signal); }
.ht-feature__glyph { display: block; width: auto; height: .8em; }
.ht-feature__glyph--wide { height: .6em; margin-block: .1em; }
.ht-feature__unit {
    padding-top: .3rem;
    font-size: .9375rem;
    font-weight: 600;
    font-stretch: 87.5%;
    text-align: right;
    color: var(--ht-steel);
}
.ht-feature:nth-child(even) .ht-feature__unit { color: var(--ht-ash); }
.ht-feature__title {
    margin-bottom: .6rem;
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 1.45rem + .9vw, 2.25rem);
    line-height: 1;
}
.ht-feature__desc { max-width: 32em; font-size: 1rem; line-height: 1.55; opacity: .8; }

.ht-features__progress { display: none; }
.ht-features__progress > span {
    display: block;
    height: 100%;
    background: var(--ht-rubber);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.ht-features.is-hscroll {
    display: flex;
    flex-direction: column;
    height: 100svh;
    padding-block: calc(var(--ht-header-h) + 1.5rem) 2rem;
}
.ht-features.is-hscroll .ht-features__head {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    align-items: end;
    margin-bottom: clamp(1.5rem, 3.5vh, 2.75rem);
}
.ht-features.is-hscroll .ht-section-head > .ht-kicker { grid-row: 1; align-self: start; }
.ht-features.is-hscroll .ht-section-head > .ht-lede { grid-column: 3; grid-row: 1; font-size: 1rem; }
.ht-features.is-hscroll .ht-h2 { font-size: clamp(3rem, 1rem + 4vw, 5.25rem); }
.ht-features.is-hscroll .ht-features__viewport {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 0;
}
.ht-features.is-hscroll .ht-features__track {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 1.25rem;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: max(var(--ht-gutter), calc((100vw - var(--ht-max)) / 2 + var(--ht-gutter)));
}
.ht-features.is-hscroll .ht-feature { flex: none; width: clamp(20rem, 29vw, 27rem); min-height: 0; }
.ht-features.is-hscroll .ht-feature__metric { font-size: clamp(5rem, 16vh, 10rem); }
.ht-features.is-hscroll .ht-features__progress {
    display: block;
    width: calc(min(100vw, var(--ht-max)) - 2 * var(--ht-gutter));
    height: 2px;
    margin-inline: auto;
    background: var(--ht-line);
}


/* ==========================================================================
   9. ACCUEIL — VIDÉOS (aplat rouge HEDI, texte noir : 5,6:1)
   ========================================================================== */

.ht-showcase {
    padding-block: var(--ht-section);
    background: var(--ht-signal);
    color: var(--ht-rubber);
    overflow: clip;
}
.ht-showcase :focus-visible { outline-color: var(--ht-rubber); }
.ht-showcase .ht-kicker { color: var(--ht-rubber); }
.ht-showcase .ht-kicker::before { background: var(--ht-rubber); }
.ht-showcase__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.ht-showcase__text { display: grid; justify-items: start; gap: 1.75rem; }
.ht-showcase__title {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 1.8rem + 7.2vw, 9.5rem);
    line-height: .86;
    letter-spacing: -.01em;
}
.ht-showcase__desc { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.ht-showcase__list {
    display: grid;
    gap: .8rem;
    width: 100%;
    max-width: 36rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid currentColor;
}
.ht-showcase__list li { display: flex; align-items: baseline; gap: .9rem; font-weight: 500; line-height: 1.45; }
.ht-showcase__list li::before {
    content: '';
    flex: none;
    width: .5em;
    height: .5em;
    background: currentColor;
    transform: translateY(-.1em);
}
.ht-showcase__device { justify-self: center; }
.ht-showcase__device .ht-phone { --phone-w: clamp(15rem, 21vw, 18.5rem); }
@media (min-width: 64em) {
    .ht-showcase__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}


/* ==========================================================================
   10. ACCUEIL — SÉANCES SUR MESURE
   ========================================================================== */

.ht-custom { padding-block: var(--ht-section); background: var(--ht-chalk); }
.ht-custom__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.ht-custom__text { display: grid; justify-items: start; gap: 1.75rem; }
.ht-custom__desc { max-width: 32em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: #3b3b38; }
@media (min-width: 64em) {
    .ht-custom__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(4rem, 7vw, 7rem); }
}

.ht-composer {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid var(--ht-line);
    border-radius: 20px;
    background: var(--ht-white);
}
.ht-composer__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ht-composer__title {
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(1.625rem, 1.4rem + .8vw, 2.125rem);
    line-height: 1;
}
.ht-composer__count {
    font-size: .875rem;
    font-weight: 600;
    font-stretch: 87.5%;
    color: var(--ht-steel);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ht-composer__list { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.ht-composer__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--ht-line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.ht-composer__row:hover { border-color: var(--ht-line-strong); }
.ht-composer__row:has(input:checked) { border-color: var(--ht-rubber); background: #f6f6f4; }
.ht-composer__row:has(input:focus-visible) { outline: 3px solid var(--ht-signal); outline-offset: 2px; }
.ht-composer__row input { position: absolute; opacity: 0; pointer-events: none; }
.ht-composer__check {
    display: grid;
    flex: none;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid var(--ht-line-strong);
    border-radius: 6px;
    color: var(--ht-white);
    transition: background-color .2s, border-color .2s;
}
.ht-composer__check svg { width: .9rem; height: .9rem; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .35s var(--ht-ease-out); }
.ht-composer__row:has(input:checked) .ht-composer__check { border-color: var(--ht-rubber); background: var(--ht-rubber); }
.ht-composer__row:has(input:checked) .ht-composer__check svg { opacity: 1; transform: none; }
.ht-composer__name {
    flex: 1;
    min-width: 0;
    font-family: var(--ht-font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
    line-height: 1.1;
}
.ht-composer__submit.is-done { --btn-bg: var(--ht-plate-green); --btn-border: var(--ht-plate-green); --btn-fg: var(--ht-white); }
.ht-composer__submit.is-done svg { display: none; }

/* Niveau = couleur du disque olympique : 10 kg vert, 15 kg jaune, 25 kg rouge. */
.ht-level {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .45em;
    font-size: .8125rem;
    font-weight: 600;
    font-stretch: 87.5%;
    color: var(--ht-steel);
}
.ht-level::before {
    content: '';
    width: .85em;
    height: .85em;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ht-white) 0 24%, var(--level-color) 26%);
}
.ht-level--debutant { --level-color: var(--ht-plate-green); }
.ht-level--inter { --level-color: var(--ht-plate-yellow); }
.ht-level--avance { --level-color: var(--ht-plate-red); }


/* ==========================================================================
   11. ACCUEIL — TARIFS
   ========================================================================== */

.ht-pricing { padding-block: var(--ht-section); background: var(--ht-white); }
.ht-pricing__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.ht-pricing__head { display: grid; align-content: start; justify-items: start; gap: 1.5rem; }
@media (min-width: 64em) {
    .ht-pricing__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: clamp(4rem, 7vw, 7rem); }
    .ht-pricing__head { position: sticky; top: calc(var(--ht-header-h) + 2rem); }
}

.ht-plan {
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border-radius: 24px;
    background: var(--ht-rubber);
    color: var(--ht-white);
}
.ht-plan__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.ht-plan__name { font-family: var(--ht-font-text); font-size: 1rem; font-weight: 600; font-stretch: 87.5%; color: var(--ht-ash); }
.ht-plan__badge {
    padding: .4rem .85rem;
    border-radius: var(--ht-radius-pill);
    background: var(--ht-signal);
    color: var(--ht-rubber);
    font-size: .8125rem;
    font-weight: 700;
    font-stretch: 87.5%;
    line-height: 1;
}
.ht-price {
    display: flex;
    align-items: flex-start;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--ht-font-display);
    line-height: 1;
}
.ht-price__amount {
    display: inline-flex;
    font-weight: 900;
    font-size: clamp(6rem, 3.5rem + 10vw, 12.5rem);
    line-height: 1;
    letter-spacing: -.01em;
}
.ht-price__currency { margin-left: .08em; font-weight: 800; font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4.5rem); line-height: .9; }
.ht-price__period { align-self: flex-end; margin-left: .5rem; font-family: var(--ht-font-text); font-size: 1rem; color: var(--ht-ash); }
.ht-plan__terms { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin-top: 1.25rem; font-size: .9375rem; color: var(--ht-ash); }
.ht-plan__features {
    display: grid;
    gap: .9rem 2rem;
    margin: 2rem 0 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ht-line-dark);
}
.ht-plan__features li { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.4; }
.ht-plan__features svg { width: 1.25rem; height: 1.25rem; margin-top: .05rem; color: var(--ht-signal); }
@media (min-width: 40em) { .ht-plan__features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chiffres « tableau de score » (créés par site.js). Le rouleau prend la largeur
   du chiffre final (.ht-roll__sizer) ; chaque case fait 1em pour qu'aucun chiffre ne déborde. */
.ht-roll { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.ht-roll__sizer { visibility: hidden; }
.ht-roll__col { position: absolute; top: 0; right: 0; left: 0; display: flex; flex-direction: column; align-items: center; }
.ht-roll__col > span { display: block; height: 1em; line-height: 1; }


/* ==========================================================================
   12. ACCUEIL — APPEL À L'ACTION FINAL
   ========================================================================== */

.ht-cta {
    padding-block: var(--ht-section);
    background: var(--ht-rubber);
    color: var(--ht-white);
    overflow: clip;
}
.ht-cta__title-wrap { container-type: inline-size; margin-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem); }
.ht-cta__title {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: calc(100cqi / 5.9);
    line-height: .86;
    text-transform: uppercase;
    white-space: nowrap;
}
.ht-cta__line { display: block; }
.ht-cta__line:last-child { text-align: right; }
.ht-cta__body { display: grid; gap: 1.75rem; }
.ht-cta__sub { max-width: 30em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ht-ash); }
.ht-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ht-cta__note { font-size: .875rem; color: var(--ht-ash); }
@media (min-width: 64em) {
    .ht-cta__body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "sub actions" "sub note";
        align-items: start;
        column-gap: 4rem;
        row-gap: 1rem;
    }
    .ht-cta__sub { grid-area: sub; }
    .ht-cta__actions { grid-area: actions; justify-content: flex-end; }
    .ht-cta__note { grid-area: note; justify-self: end; }
}


/* ==========================================================================
   13. PIED DE PAGE
   ========================================================================== */

.ht-footer {
    padding-top: clamp(4rem, 8vw, 6rem);
    border-top: 1px solid var(--ht-line-dark);
    background: var(--ht-rubber);
    color: var(--ht-white);
    overflow: clip;
}
.ht-footer__top { display: grid; gap: 2.5rem; }
.ht-footer__name { font-family: var(--ht-font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--ht-signal); }
.ht-footer__tagline { margin-top: .5rem; color: var(--ht-ash); }
.ht-footer__tagline span { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--ht-line-dark); }
.ht-footer__nav ul { display: grid; gap: .65rem; list-style: none; }
.ht-footer__nav a { text-decoration: none; opacity: .85; transition: color .2s, opacity .2s; }
.ht-footer__nav a:hover { color: var(--ht-signal); opacity: 1; }
.ht-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-block: 1.5rem;
    border-top: 1px solid var(--ht-line-dark);
    font-size: .875rem;
    color: var(--ht-ash);
}
.ht-footer__wordmark-wrap { container-type: inline-size; padding-inline: clamp(.5rem, 1.5vw, 1.5rem); }
.ht-footer__wordmark {
    margin-bottom: -.12em;
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: calc(100cqi / 5.32);
    line-height: .8;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ht-signal);
}
@media (min-width: 40em) { .ht-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .ht-footer__top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }


/* ==========================================================================
   14. PAGES LÉGALES
   ========================================================================== */

.ht-progress {
    position: fixed;
    z-index: 60;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
}
.ht-progress::before {
    content: '';
    display: block;
    height: 100%;
    background: var(--ht-signal);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.ht-legal__hero {
    padding-block: calc(var(--ht-header-h) + clamp(2rem, 6vw, 4.5rem)) clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--ht-line);
}
.ht-legal__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ht-legal__tabs a {
    padding: .55rem 1.05rem;
    border: 1.5px solid var(--ht-line-strong);
    border-radius: var(--ht-radius-pill);
    font-size: .9375rem;
    font-weight: 600;
    font-stretch: 87.5%;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}
.ht-legal__tabs a:hover { border-color: var(--ht-rubber); }
.ht-legal__tabs a[aria-current="page"] { border-color: var(--ht-rubber); background: var(--ht-rubber); color: var(--ht-white); }
.ht-legal__title {
    font-family: var(--ht-font-display);
    font-weight: 900;
    font-size: clamp(3.25rem, 1.4rem + 8.2vw, 10rem);
    line-height: .86;
    text-transform: uppercase;
    text-wrap: balance;
}
.ht-legal__updated { margin-top: clamp(1.25rem, 2.5vw, 2rem); font-size: .9375rem; color: var(--ht-steel); }

.ht-legal__body {
    display: grid;
    gap: 2rem;
    padding-block: clamp(2.5rem, 6vw, 5rem) var(--ht-section);
}

/* Sommaire : replié sur mobile, ouvert et collant sur grand écran (site.js). */
.ht-legal__toc { padding: 1rem 1.25rem; border: 1px solid var(--ht-line); border-radius: var(--ht-radius-card); }
.ht-legal__toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-stretch: 87.5%;
    list-style: none;
    cursor: pointer;
}
.ht-legal__toc summary::-webkit-details-marker { display: none; }
.ht-legal__toc summary::after { content: '+'; font-size: 1.25rem; line-height: 1; }
.ht-legal__toc[open] summary::after { content: '–'; }
.ht-legal__toc ol { display: grid; gap: .1rem; margin-top: .75rem; }
.ht-legal__toc a {
    display: grid;
    grid-template-columns: 2.25em minmax(0, 1fr);
    padding: .4rem .5rem;
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.35;
    color: var(--ht-steel);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.ht-legal__toc a:hover,
.ht-legal__toc a.is-active { background: var(--ht-chalk); color: var(--ht-rubber); }
.ht-legal__toc a.is-active { font-weight: 600; }
.ht-legal__toc a.is-active span:first-child { color: var(--ht-signal); }

@media (min-width: 64em) {
    .ht-legal__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(3rem, 6vw, 6rem); }
    .ht-legal__toc {
        position: sticky;
        top: calc(var(--ht-header-h) + 1.5rem);
        max-height: calc(100svh - var(--ht-header-h) - 3rem);
        overflow-y: auto;
        padding: 0;
        border: 0;
    }
    .ht-legal__toc summary { font-size: .875rem; color: var(--ht-steel); pointer-events: none; }
    .ht-legal__toc summary::after,
    .ht-legal__toc[open] summary::after { content: none; }
}

/* Texte juridique : HTML simple, mis en forme ici (aucune classe à ajouter en rédigeant). */
.ht-prose { max-width: 42rem; color: var(--ht-body); }
.ht-prose > section {
    padding-block: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--ht-line);
    scroll-margin-top: calc(var(--ht-header-h) + 1rem);
}
.ht-prose > section:first-child { padding-top: 0; border-top: 0; }
.ht-prose > section > * + * { margin-top: 1rem; }
.ht-prose > section > h2 + * { margin-top: 1.25rem; }
.ht-prose > section > h3 { margin-top: 1.75rem; }
.ht-prose h2 {
    display: flex;
    gap: .45em;
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.625rem);
    line-height: 1;
    color: var(--ht-rubber);
}
.ht-prose__num { flex: none; min-width: 1.5em; color: var(--ht-signal); font-variant-numeric: tabular-nums; }
.ht-prose h3 { font-size: 1.125rem; font-weight: 700; color: var(--ht-rubber); }
.ht-prose p,
.ht-prose li { line-height: 1.7; }
.ht-prose ul,
.ht-prose ol { display: grid; gap: .45rem; padding-left: 1.35rem; }
.ht-prose li::marker { color: var(--ht-signal); }
.ht-prose ol > li::marker { font-weight: 700; }
.ht-prose strong { font-weight: 650; color: var(--ht-rubber); }
.ht-prose a {
    color: var(--ht-rubber);
    text-decoration: underline;
    text-decoration-color: var(--ht-signal);
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
    transition: text-decoration-thickness .2s;
}
.ht-prose a:hover { text-decoration-thickness: 3px; }
.ht-legal-id {
    padding: 1.1rem 1.35rem;
    border-left: 3px solid var(--ht-signal);
    border-radius: 0 12px 12px 0;
    background: var(--ht-chalk);
}
.ht-withdrawal {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1.5px dashed var(--ht-line-strong);
    border-radius: var(--ht-radius-card);
    background: #fafaf8;
}
.ht-withdrawal > * + * { margin-top: .9rem; }


/* ==========================================================================
   15. BANDEAU COOKIES — classes de _partials/_cookie_banner.html.twig conservées,
   habillage aligné sur le site. Valable sur toutes les pages.
   ========================================================================== */

.cookie-banner {
    position: fixed;
    z-index: 99999;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 68rem;
    margin-inline: auto;
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--ht-rubber);
    color: var(--ht-white);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
    font-family: var(--ht-font-text);
}
.cookie-banner[hidden],
.cookie-modal[hidden] { display: none; }
.cookie-banner__content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text h2 { margin: 0 0 .5rem; font-family: var(--ht-font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.cookie-banner__text p { margin: .3rem 0; font-size: .9375rem; line-height: 1.5; color: var(--ht-ash); }
.cookie-banner__text a {
    display: inline-block;
    margin-top: .5rem;
    font-size: .9375rem;
    color: var(--ht-white);
    text-decoration: underline;
    text-decoration-color: var(--ht-signal);
    text-underline-offset: .2em;
}
.cookie-banner__actions { display: flex; flex-shrink: 0; align-items: center; gap: .6rem; }

.cookie-btn {
    min-height: 2.75rem;
    padding: .6rem 1.2rem;
    border: 1.5px solid currentColor;
    border-radius: var(--ht-radius-pill);
    background: transparent;
    color: inherit;
    font: 600 .9375rem/1 var(--ht-font-text);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.cookie-btn:hover { border-color: var(--ht-white); background: var(--ht-white); color: var(--ht-rubber); }
.cookie-btn--primary { border-color: var(--ht-signal); background: var(--ht-signal); color: var(--ht-rubber); }
.cookie-btn--primary:hover { border-color: var(--ht-white); background: var(--ht-white); }

.cookie-modal { position: fixed; z-index: 100000; inset: 0; font-family: var(--ht-font-text); }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, .6); }
.cookie-modal__content {
    position: relative;
    z-index: 1;
    width: min(35rem, calc(100% - 2rem));
    max-height: calc(100vh - 2.5rem);
    margin: 1.25rem auto;
    padding: 1.75rem;
    overflow-y: auto;
    border-radius: 18px;
    background: var(--ht-white);
    color: var(--ht-rubber);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3);
}
.cookie-modal__content h2 { margin-top: 0; font-family: var(--ht-font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.cookie-modal__close {
    position: absolute;
    top: .75rem;
    right: 1rem;
    border: 0;
    background: transparent;
    color: var(--ht-steel);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.cookie-modal .cookie-btn:hover { border-color: var(--ht-rubber); background: var(--ht-rubber); color: var(--ht-white); }
.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--ht-line);
}
.cookie-option p { margin: .3rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--ht-steel); }
.cookie-option__status { font-size: .8125rem; font-weight: 600; white-space: nowrap; }

/* Interrupteur : la case reste focalisable au clavier (l'original la masquait avec display:none). */
.cookie-switch { position: relative; display: inline-block; }
.cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch__slider {
    position: relative;
    display: block;
    width: 3rem;
    height: 1.625rem;
    border-radius: var(--ht-radius-pill);
    background: #cfcfca;
    cursor: pointer;
    transition: background-color .2s;
}
.cookie-switch__slider::after {
    content: '';
    position: absolute;
    top: .1875rem;
    left: .1875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--ht-white);
    transition: transform .2s;
}
.cookie-switch input:checked + .cookie-switch__slider { background: var(--ht-plate-green); }
.cookie-switch input:checked + .cookie-switch__slider::after { transform: translateX(1.375rem); }
.cookie-switch input:focus-visible + .cookie-switch__slider { outline: 3px solid var(--ht-signal); outline-offset: 2px; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.cookie-modal__legal { margin-top: 1.25rem; font-size: .75rem; line-height: 1.5; color: var(--ht-steel); }

@media (max-width: 43.75em) {
    .cookie-banner { right: .6rem; bottom: .6rem; left: .6rem; padding: 1.15rem; }
    .cookie-banner__content { flex-direction: column; align-items: stretch; gap: 1rem; }
    .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-btn--primary { grid-column: 1 / -1; }
    .cookie-option { align-items: flex-start; }
}


/* ==========================================================================
   16. LENIS — styles recommandés par la bibliothèque
   ========================================================================== */

html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sans JavaScript : défilement doux natif pour les ancres. */
@media (prefers-reduced-motion: no-preference) {
    :root:has(> body.ht-site):not(.lenis) { scroll-behavior: smooth; }
}


/* ==========================================================================
   17. ÉTATS D'ANIMATION ET MOUVEMENT RÉDUIT
   ========================================================================== */

/* Pré-états de l'intro, seulement si JS actif et animations autorisées.
   Filet de sécurité : si site.js ne démarre pas, tout apparaît après 2,5 s. */
@media (prefers-reduced-motion: no-preference) {
    .ht-js:not(.ht-ready) [data-intro] {
        opacity: 0;
        transform: translateY(1.25rem);
        animation: ht-failsafe .6s var(--ht-ease-out) 2.5s forwards;
    }
    .ht-js:not(.ht-ready) [data-intro-line] {
        transform: translateY(110%);
        animation: ht-failsafe .8s var(--ht-ease-out) 2.5s forwards;
    }
}
@keyframes ht-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ht-site *,
    .ht-site *::before,
    .ht-site *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .ht-marquee__track { animation: none; }
}


/* ==========================================================================
   18. ANCIENNES CLASSES .legal-* (compatibilité)
   Les pages légales n'en ont plus besoin. Conservées au cas où une autre page
   (support…) les utiliserait encore : à supprimer ensuite.
   ========================================================================== */

.legal-page {
    padding: 60px 20px;
}

.legal-page .container {
    width: min(100%, 900px);
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 50px;
}

.legal-header h1 {
    margin-bottom: 10px;
}

.legal-header p {
    color: #777;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 18px;
}

.legal-section h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
    line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
    padding-left: 25px;
}

.legal-section a {
    text-decoration: underline;
}

.withdrawal-form {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
