/* ================================================================
   HEAR THE LIGHT — Accueil (index.html)
   Chargé après css/htl.css et css/htl-components.css.
   Un seul moment fort : le hero (le plateau de lumière + titre qui s'accorde).
   Tout le reste est calme, éditorial, aligné à gauche.
   Couleurs : uniquement les jetons de palette (6 palettes, 2 claires).
   Règle projet : animations toujours actives, aucun repli « mouvement réduit ».
   Mobile : uniquement dans le bloc @media (max-width: 768px) en fin de fichier.
   ================================================================ */

/* ── Lenis (défilement doux) ──────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.hh-modal-on { overflow: hidden; }

/* Garde locale : dans htl.css, « body.htl a » et « body.htl button » (color/font: inherit)
   passent devant .htl-btn. On remet la couleur et la police des boutons ici. */
body.htl .htl-btn { color: var(--b-fg); }
body.htl button.htl-btn { font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: .005em; }
body.htl button.htl-btn.htl-btn--sm { font-size: 14px; }

/* Les ancres arrivent sous la nav fixe */
#main [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.hh-head-aside { display: grid; gap: 18px; justify-items: start; }
.hh-head-aside .htl-body, .htl-section__head .htl-body { margin: 0; }
.hh-head-aside .htl-small { margin: 0; max-width: 46ch; }

/* ================================================================
   HERO
   ================================================================ */
.hh-hero {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-bottom: clamp(32px, 5vh, 64px);
  overflow: hidden; isolation: isolate;
}
.hh-hero__beam {
  position: relative; z-index: 0;
  flex: 1 1 auto;
  min-height: clamp(200px, 34vh, 560px);
  margin-top: var(--nav-h);
}
/* La scène tirée au hasard (js/htl-hero.js) */
.hh-hero__beam { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hh-hero__beam canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
}
.hh-hero__hintwrap { position: absolute; left: 0; right: 0; bottom: 14px; pointer-events: none; }
.hh-hero__hint {
  margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted);
  opacity: 0; transform: translateY(6px);
  transition: opacity .8s var(--ease-out) .9s, transform .8s var(--ease-out) .9s;
}
.hh-hero__beam.is-lit .hh-hero__hint { opacity: 1; transform: none; }
.hh-hero__beam.is-used .hh-hero__hint { opacity: 0; transition-delay: 0s; transition-duration: .4s; }
.hh-hint-touch { display: none; }
/* Flash du déclencheur : la lumière éclabousse un instant le haut du titre (--hl-flash posé par le JS) */
.hh-hero__beam::before {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -70%; height: 130%;
  background: radial-gradient(50% 50% at var(--hl-fx, 50%) 50%, color-mix(in srgb, var(--light) 30%, transparent), transparent 70%);
  opacity: var(--hl-flash, 0);
  pointer-events: none;
}
/* La lumière déborde sur le titre, comme une source posée juste au-dessus */
.hh-hero__beam::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -46%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--light) 14%, transparent), transparent 72%);
  pointer-events: none;
}

.hh-hero__type { position: relative; z-index: 1; --hero-fs: clamp(72px, 14vw, 240px); }
.hh-hero__title {
  font-size: var(--hero-fs);
  line-height: .8;
  padding-top: .08em;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  margin: 0;
  text-wrap: nowrap;
}
.hh-hero__title.htl-tune { transition: opacity .9s var(--ease-out); }
.hh-js .hh-hero__title:not(.is-ready) { opacity: 0; }
.hh-hero__title > .hh-line { display: block; transition: none; }
.hh-ch {
  display: inline-block;
  font-variation-settings: 'wdth' 50;
  transition: font-variation-settings 1.5s var(--ease-out) var(--d, 0s);
}
.hh-hero__title.is-in.is-ready .hh-ch { font-variation-settings: 'wdth' var(--tune-to, 92); }
.hh-hero__title.is-live .hh-ch { transition: font-variation-settings .5s var(--ease-out) 0s; }

.hh-hero__aside { display: grid; gap: 22px; justify-items: start; max-width: 34rem; margin-top: clamp(24px, 3vw, 40px); }
/* À côté de « light » quand la place le permet (calculé par js/htl-home.js) */
.hh-hero__type.is-beside .hh-hero__aside { margin: calc(var(--hero-fs) * -.78) 0 0 auto; max-width: none; }
.hh-hero__lead { max-width: 26em; }
.hh-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

body.htl .hh-sound {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 500;
  transition: color .25s;
}
body.htl .hh-sound:hover { color: var(--fg); }
.hh-sound .htl-sound-bars { color: var(--light); }
.hh-sound .htl-sound-bars i:nth-child(1) { height: 40%; }
.hh-sound .htl-sound-bars i:nth-child(2) { height: 85%; }
.hh-sound .htl-sound-bars i:nth-child(3) { height: 60%; }
.hh-sound .htl-sound-bars i:nth-child(4) { height: 30%; }
.hh-sound__on { display: none; }
html.htl-sound-on .hh-sound__on { display: inline; }
html.htl-sound-on .hh-sound__off { display: none; }

/* ================================================================
   POUR QUI
   ================================================================ */
.hh-aud__jump { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-aud__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 110px); }
.aud-card { position: relative; padding-top: 28px; border-top: 1px solid var(--fg); }
.aud-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--light), var(--light-2));
  box-shadow: 0 0 28px rgba(var(--a1), .55);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.aud-card.aud-flash::before { transform: scaleX(1); }
.hh-aud__title {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(28px, 3vw, 46px); font-variation-settings: 'wdth' 94;
}
.hh-aud__lead { margin: 0 0 28px; color: var(--muted); max-width: 32em; }

.hh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hh-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "t go" "d go";
  column-gap: 20px; row-gap: 4px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.hh-row::before {
  content: ''; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 14px;
  background: radial-gradient(320px 120px at var(--rx, 50%) 50%, rgba(var(--a1), .14), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.hh-row:hover::before, .hh-row:focus-visible::before { opacity: 1; }
.hh-row__t { grid-area: t; font-size: 18px; font-weight: 600; }
.hh-row__d { grid-area: d; font-size: 14px; color: var(--muted); }
.hh-arrow { grid-area: go; width: 22px; height: 22px; color: var(--muted); transition: transform .45s var(--ease-out), color .3s; }
.hh-row:hover .hh-arrow { transform: translateX(6px); color: var(--light); }

/* ================================================================
   CHIFFRES
   ================================================================ */
.hh-stats { border-block: 1px solid var(--line); }
.hh-stats__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.hh-stats__title {
  margin: 0; max-width: 12em;
  font-family: var(--font-display); font-weight: 800; line-height: 1.05;
  font-size: clamp(24px, 2.4vw, 36px); font-variation-settings: 'wdth' 96;
}
.hh-stats__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* Chaque chiffre est un conteneur : sa taille est bornée par la largeur de SA colonne (cqw),
   donc « +270 M » ne peut plus déborder sur « +750 », quelle que soit la largeur d'écran.
   36cqw : « +270 M » en Anybody wdth 70 ≈ 2,5 em → ≈ 90 % de la colonne.
   Si la police de secours s'affiche (Anybody pas encore chargée, plus large ≈ 3,2 em),
   js/htl-home.js (compteurs, fit) réduit la taille tant que ça déborde. */
.kstat { min-width: 0; container-type: inline-size; }
.kstat-num {
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: min(clamp(64px, 9vw, 150px), 36cqw); font-variation-settings: 'wdth' 70;
  letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* Pendant le comptage, la valeur finale (invisible) réserve la place :
   la largeur ne bouge pas, le « M » ne glisse pas, rien ne pousse le voisin. */
.kstat-val { display: inline-grid; }
.kstat-val > span { grid-area: 1 / 1; text-align: right; }
.kstat-ghost { visibility: hidden; }
.kstat-label { margin-top: 10px; color: var(--muted); }
/* Le « + » : plus petit, couleur de la lumière, calé en haut des chiffres */
.kstat-num { display: flex; align-items: flex-start; }
.kstat-pre {
  font-family: var(--font-body); font-weight: 500; font-size: .42em; line-height: 1;
  margin: .1em .08em 0 0; color: var(--light); font-variation-settings: normal;
}
.kstat-suf { margin-left: .14em; }
.hh-stats__note { grid-column: 1 / -1; max-width: 62ch; margin: 0; }

/* ================================================================
   TALENTS + STARS (cartes produites par talentCard() / starCard())
   ================================================================ */
.talents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.talent-card { position: relative; min-width: 0; }
.talent-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; background: var(--bg-2); }
.talent-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.talent-card:hover .talent-img img { transform: scale(1.04); }
.talent-placeholder {
  position: absolute; inset: 0; align-items: flex-end; padding: 22px;
  background: radial-gradient(120% 80% at 50% 115%, rgba(var(--a1), .5), transparent 62%), linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
.talent-placeholder-text {
  font-family: var(--font-display); font-weight: 800; line-height: .9; color: var(--fg);
  font-size: clamp(26px, 2.8vw, 42px); font-variation-settings: 'wdth' 78; overflow-wrap: anywhere;
}
.talent-info { display: block; padding-top: 16px; } /* réseaux toujours sous le nom, comme les stars et le mobile : même alignement d'une carte à l'autre */
.talent-name {
  margin: 0; max-width: 100%;
  font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: .01em;
  font-size: clamp(18px, 1.6vw, 24px); font-variation-settings: 'wdth' 88;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: font-variation-settings .6s var(--ease-out);
}
.talent-card:hover .talent-name { font-variation-settings: 'wdth' 104; }
.talent-socials { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; }
body.htl .social-link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
  font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.social-link-btn svg { width: 14px; height: 14px; flex: none; }
body.htl .social-link-btn:hover { color: var(--fg); }
.voir-plus-wrap { margin-top: clamp(36px, 4vw, 56px); }

.stars-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
/* Les stars sont alignées, toutes au même niveau */
.stars-grid .talent-img { aspect-ratio: 3 / 4; }
.stars-grid .talent-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--a1), .38), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.star-card { cursor: pointer; border-radius: var(--r-media); }
.star-card:hover .talent-img::after, .star-card:focus-visible .talent-img::after { opacity: 1; }
.star-card .talent-info { display: block; }
.star-card .talent-name { font-size: clamp(22px, 2vw, 30px); }
.talent-role { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.star-socials { margin-top: 10px; }

/* ================================================================
   FORMULES (aucun prix affiché)
   ================================================================ */
.hh-plans {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; background: var(--line); border-block: 1px solid var(--line);
}
.formule-card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px clamp(16px, 1.6vw, 26px);
  background: var(--bg);
}
.formule-card.featured { background: linear-gradient(to bottom, rgba(var(--a1), .14), rgba(var(--a1), 0) 70%), var(--bg); }
.formule-card.featured::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--light), var(--light-2));
  box-shadow: 0 0 24px rgba(var(--a1), .5);
}
.hh-plan__top { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.hh-plan__tier { font-size: 13px; font-weight: 500; color: var(--muted); }
.hh-level { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.hh-level i { width: 3px; border-radius: 1px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
.hh-level i:nth-child(1) { height: 35%; }
.hh-level i:nth-child(2) { height: 58%; }
.hh-level i:nth-child(3) { height: 80%; }
.hh-level i:nth-child(4) { height: 100%; }
.hh-level[data-level="1"] i:nth-child(-n+1),
.hh-level[data-level="2"] i:nth-child(-n+2),
.hh-level[data-level="3"] i:nth-child(-n+3),
.hh-level[data-level="4"] i { background: var(--light); }
.hh-level[data-level="0"] i { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.formule-ribbon {
  margin-left: auto; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--light); color: var(--on-light); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.formule-name {
  margin: 6px 0 0;
  font-family: var(--font-display); font-weight: 800; line-height: .95;
  font-size: clamp(24px, 2vw, 32px); font-variation-settings: 'wdth' 78;
  hyphens: auto; overflow-wrap: anywhere;
}
.formule-duration { margin: 0; font-size: 14px; color: var(--muted); }
.formule-features { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.formule-feat { position: relative; padding-left: 14px; }
.formule-feat::before { content: ''; position: absolute; left: 0; top: .66em; width: 6px; height: 1px; background: var(--light); }
.formule-guarantee { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.formule-guarantee p { margin: 0; }
.hh-reach { margin: 8px 0 0; display: grid; gap: 4px; }
.hh-reach div { display: flex; justify-content: space-between; gap: 8px; }
.hh-reach dt { color: var(--muted); }
.hh-reach dd { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; }
.hh-reach .is-total { margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line); font-weight: 600; }
.hh-plan__cta { margin-top: auto; width: 100%; }

@media (min-width: 769px) and (max-width: 1100px) {
  .hh-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formule-perso { grid-column: span 2; }
}

/* ================================================================
   PRESTATIONS (liste typographique, la ligne s'éclaire au survol)
   ================================================================ */
.presta-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
body.htl .presta-tab {
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: color .25s, box-shadow .25s, background-color .25s;
}
body.htl .presta-tab:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
body.htl .presta-tab.active { background: var(--fg); color: var(--bg); box-shadow: none; }
.presta-panel { display: none; }
.presta-panel.active { display: block; animation: hh-panel .6s var(--ease-out) both; }
@keyframes hh-panel { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.presta-grid { border-top: 1px solid var(--line); }
.presta-item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: 12px 32px; align-items: center;
  padding: clamp(22px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.presta-item.is-link { cursor: default; }
.presta-item::before {
  content: ''; position: absolute; inset: 0 calc(-1 * clamp(12px, 1.5vw, 24px)); z-index: -1; border-radius: 16px;
  background: radial-gradient(420px 150px at var(--rx, 50%) 50%, rgba(var(--a1), .16), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.presta-item:hover::before { opacity: 1; }
.presta-item-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; line-height: .95;
  font-size: clamp(26px, 3.2vw, 52px); font-variation-settings: 'wdth' 80;
  transition: font-variation-settings .7s var(--ease-out);
}
.presta-item:hover .presta-item-title { font-variation-settings: 'wdth' 94; }
.presta-desc { margin: 0; color: var(--muted); max-width: 42ch; }
.presta-item .presta-price, .presta-item .presta-price-note { display: none !important; }
.presta-item > .htl-btn { justify-self: end; }
.mois-offert-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.mois-offert-banner::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px rgba(var(--a1), .7); flex: none; }
.mois-offert-banner strong { color: var(--fg); font-weight: 600; }

/* ================================================================
   FORMATIONS
   ================================================================ */
.hh-course {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 110px);
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.hh-course__level {
  display: inline-flex; margin: 0 0 18px; padding: 6px 12px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted);
}
.hh-course__name {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; line-height: .86; letter-spacing: -.015em;
  font-size: clamp(56px, 8vw, 132px); font-variation-settings: 'wdth' 74;
  transition: font-variation-settings 1s var(--ease-out);
}
.hh-course:hover .hh-course__name { font-variation-settings: 'wdth' 88; }
.hh-course__hook {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  font-size: clamp(22px, 2vw, 30px); font-variation-settings: 'wdth' 100;
}
.hh-course__lead { margin: 20px 0 0; }
.hh-course__points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 38rem; }
.hh-course__points li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hh-course__points li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--light); box-shadow: 0 0 12px rgba(var(--a1), .55);
}
.hh-course__proof { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 28px 0 0; }
.hh-course__proof div { display: grid; gap: 4px; }
.hh-course__proof dt { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: 44px; font-variation-settings: 'wdth' 80; }
.hh-course__proof dd { margin: 0; max-width: 16ch; font-size: 13px; color: var(--muted); }
.hh-course__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hh-course__price { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(36px, 3.4vw, 52px); font-variation-settings: 'wdth' 90; }
.hh-course__side { align-self: start; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-media); background: var(--bg-2); }
.hh-course__sidetitle { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hh-mods { list-style: none; margin: 0; padding: 0; display: grid; }
.hh-mods li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hh-mods li:last-child { border-bottom: 0; }
.hh-mods__n { font-weight: 600; }
.hh-mods__d { color: var(--muted); text-align: right; }
.hh-mods--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.hh-mods--2 li { flex-direction: column; gap: 2px; }
.hh-mods--2 li:nth-last-child(2) { border-bottom: 0; }
.hh-mods--2 .hh-mods__d { text-align: left; }
.hh-mods .is-quiz .hh-mods__n::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%;
  vertical-align: middle; background: var(--light);
}

/* ================================================================
   FONDATEURS + RECRUTEMENT
   ================================================================ */
.hh-team__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.hh-team__text .htl-lead { margin-top: 24px; }
.hh-recruit { display: grid; gap: 10px; justify-items: start; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.hh-recruit .htl-body { margin: 0; }
.hh-recruit__title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variation-settings: 'wdth' 96;
}
.hh-recruit__title::before, .recrute-dot {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--light); animation: hh-pulse 2.2s var(--ease-out) infinite;
}
@keyframes hh-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--a1), .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--a1), 0); } }
.hh-team__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.team-card { margin: 0; min-width: 0; }
/* Les deux fondateurs sont alignés, au même niveau */
.team-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; background: var(--bg-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo-placeholder {
  position: absolute; inset: 0; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 64px; color: var(--fg);
  background: radial-gradient(120% 80% at 50% 115%, rgba(var(--a1), .5), transparent 62%), linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
.team-card figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding-top: 16px; }
.team-name { font-family: var(--font-display); font-weight: 800; line-height: 1.05; font-size: clamp(22px, 2vw, 30px); font-variation-settings: 'wdth' 90; }
.team-role { grid-row: 2; font-size: 14px; color: var(--muted); }
body.htl .team-ig-btn { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 14px; color: var(--muted); }
body.htl .team-ig-btn:hover { color: var(--fg); }

/* ================================================================
   DERNIER APPEL (moment centré, isolé)
   ================================================================ */
.hh-cta { text-align: center; overflow: hidden; }
.hh-cta::before {
  content: ''; position: absolute; left: 50%; bottom: -30%; width: min(1100px, 120%); height: 80%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--a1), .14), transparent 70%); pointer-events: none;
}
.hh-cta .htl-wrap { position: relative; }
.hh-cta__title { max-width: 14ch; margin: 0 auto; font-size: clamp(48px, 8vw, 132px); font-variation-settings: 'wdth' 76; transition: font-variation-settings 1.2s var(--ease-out), opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.hh-cta__title:hover { font-variation-settings: 'wdth' 98; }
.hh-cta__lead { margin: 24px auto 0; color: var(--muted); }
.hh-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ================================================================
   MODALES (prestation, star, recrutement)
   ================================================================ */
/* Le flou de l'arrière-plan arrive en fondu (on anime le flou lui-même,
   pas l'opacité du parent : sinon le navigateur l'affiche d'un coup à la fin) */
.hh-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  visibility: hidden;
  transition: visibility 0s linear .7s;
}
.hh-modal.open { visibility: visible; transition: none; }
.hh-modal__overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 0%, transparent);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: background-color .7s var(--ease-out), -webkit-backdrop-filter .7s var(--ease-out), backdrop-filter .7s var(--ease-out);
}
.hh-modal.open .hh-modal__overlay {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hh-modal__card {
  position: relative; width: min(640px, 100%);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 24px; background: var(--bg-2); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px rgba(var(--a1), .35);
  opacity: 0; transform: translateY(22px) scale(.97);
  transition: transform .6s var(--ease-out), opacity .45s var(--ease-out);
}
.hh-modal.open .hh-modal__card { opacity: 1; transform: none; transition: transform .7s var(--ease-out) .08s, opacity .5s var(--ease-out) .08s; }
.hh-modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--bg-2); }
.hh-modal__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-right: 48px; font-size: 13px; color: var(--muted); }
.hh-modal__title {
  margin: 0; padding-right: 40px;
  font-family: var(--font-display); font-weight: 800; line-height: .95;
  font-size: clamp(32px, 4vw, 56px); font-variation-settings: 'wdth' 84;
}
.hh-modal__desc { margin: 18px 0 0; color: var(--muted); line-height: 1.6; }

.presta-modal-price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.presta-modal-price-lbl { font-size: 13px; color: var(--muted); }
.presta-modal-price { margin-top: 4px; font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(36px, 4vw, 52px); font-variation-settings: 'wdth' 90; }
.presta-unit { margin-left: 2px; font-family: var(--font-body); font-size: .4em; font-weight: 500; color: var(--muted); }
.presta-modal-note { margin-top: 8px; max-width: 32ch; font-size: 14px; color: var(--muted); }

.star-modal-card { width: min(920px, 100%); padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.star-modal-photo { position: relative; background: var(--bg-3); }
.star-modal-photo img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.star-modal-body { align-self: center; padding: clamp(28px, 3vw, 48px); }
.star-modal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
body.htl .star-modal-links .social-link-btn { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font-size: 14px; }
body.htl .star-modal-links .social-link-btn:hover { box-shadow: inset 0 0 0 1px var(--fg); }

.recrute-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.recrute-list li { position: relative; padding-left: 18px; }
.recrute-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--light); }
.recrute-mailwrap { display: grid; gap: 6px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.recrute-mail-label { font-size: 13px; color: var(--muted); }
.recrute-mail-link {
  justify-self: start; overflow-wrap: anywhere;
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
  font-size: clamp(18px, 2.4vw, 26px); font-variation-settings: 'wdth' 88;
}

/* ── Petit message : retour de paiement annulé ───────────────── */
.hh-toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 1300;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill);
  background: var(--bg-3); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px -24px rgba(var(--a1), .45);
  opacity: 0; transform: translate(-50%, 24px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.hh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hh-toast__msg { margin: 0; font-size: 14px; }

/* ================================================================
   MOBILE (≤ 768px) — règles mobiles uniquement ici
   ================================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hh-hero { padding-bottom: 72px; } /* les boutons du hero s'arrêtent au-dessus du dock fixe (16 px + 40 px) */
  .hh-hero__beam { min-height: 30svh; }
  .hh-hero__hintwrap { bottom: 10px; }
  .hh-hint-pc { display: none; }
  .hh-hint-touch { display: inline; }
  .hh-hero__aside { gap: 18px; margin-top: 22px; max-width: none; width: 100%; }
  .hh-hero__lead { font-size: 18px; }
  .hh-hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hh-hero__actions .htl-btn { width: 100%; }

  /* Pour qui */
  .hh-aud__grid { grid-template-columns: 1fr; gap: 48px; }
  .hh-aud__jump .htl-btn { height: 44px; }
  .hh-row { padding: 18px 0; }
  .hh-row::before { inset: 0 -8px; }
  .hh-row__t { font-size: 17px; }

  /* Chiffres */
  .hh-stats__in { grid-template-columns: 1fr; gap: 24px; }
  .hh-stats__nums { gap: 16px; }
  .kstat-num { font-size: min(12.5vw, 36cqw); }
  .kstat-label { font-size: 14px; }

  /* Talents + stars */
  .talents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .talent-img { border-radius: 16px; }
  .talent-info { display: block; padding-top: 12px; }
  .talent-name { font-size: 17px; }
  .talent-socials { gap: 0 10px; margin-top: 4px; }
  body.htl .social-link-btn { min-height: 40px; font-size: 12px; }
  .talents-grid .social-link-btn.no-count span { display: none; }
  .talents-grid .social-link-btn.no-count svg { width: 18px; height: 18px; }
  .stars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .star-card .talent-name { font-size: 19px; }
  .talent-role { font-size: 13px; }
  .voir-plus-wrap .htl-btn { width: 100%; }

  /* Formules : défilement horizontal */
  .hh-plans {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    background: none; border-block: 0; scrollbar-width: none;
  }
  .hh-plans::-webkit-scrollbar { display: none; }
  .formule-card { flex: 0 0 84%; scroll-snap-align: start; border-radius: var(--r-media); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 20px; }
  .formule-card.featured { box-shadow: inset 0 0 0 1px rgba(var(--a1), .55); }
  .formule-card.featured::before { left: 20px; right: 20px; }
  .formule-name { font-size: 30px; }

  /* Prestations */
  .presta-tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .presta-tabs::-webkit-scrollbar { display: none; }
  body.htl .presta-tab { flex: none; }
  .presta-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .presta-item::before { inset: 0 -8px; }
  .presta-item-title { font-size: 30px; }
  .presta-item > .htl-btn { justify-self: start; height: 40px; }

  /* Formations */
  .hh-course { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .hh-course__name { font-size: 17vw; }
  .hh-course__proof dt { font-size: 38px; }
  .hh-course__buy .htl-btn { flex: 1 1 auto; }
  .hh-course__side { padding: 22px 18px; }
  .hh-mods--2 { column-gap: 16px; }

  /* Fondateurs */
  .hh-team__in { grid-template-columns: 1fr; gap: 40px; }
  .hh-team__people { gap: 12px; }
  .team-photo { border-radius: 16px; }
  .team-card figcaption { grid-template-columns: 1fr; }
  .team-name { font-size: 20px; }
  body.htl .team-ig-btn { grid-row: auto; grid-column: 1; min-height: 40px; display: inline-flex; align-items: center; justify-self: start; }
  .hh-recruit .htl-btn { height: 44px; }

  /* Dernier appel */
  .hh-cta__title { font-size: 13vw; }
  .hh-cta__actions { flex-direction: column; align-items: stretch; }
  .hh-cta__actions .htl-btn { width: 100%; font-size: 14px; }

  /* Modales : feuille qui monte du bas */
  .hh-modal { align-items: flex-end; padding: 10px; }
  .hh-modal__card { max-height: calc(100dvh - 20px); border-radius: 22px; padding: 26px 20px 24px; }
  .hh-modal__close { top: 12px; right: 12px; }
  .hh-modal__title { font-size: 34px; }
  .star-modal-card { grid-template-columns: 1fr; padding: 0; }
  .star-modal-photo img { aspect-ratio: auto; height: 42vh; min-height: 0; }
  .star-modal-body { padding: 24px 20px 26px; }
  .presta-modal-price-row .htl-btn { width: 100%; }

  .hh-toast { flex-wrap: wrap; border-radius: 18px; padding: 14px 14px 14px 18px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hh-toast__msg { flex: 1 1 60%; }
}

/* Mobile : le bouton son du dock suffit, l'indication du hero chevauchait le dock */
@media (max-width: 768px) {
  body.htl .hh-sound { display: none; }
}

/* ================================================================
   CHARGEMENT D'ENTRÉE (≈ 2,9 s) — index.html, #htl-intro (.hil-*)
   Même structure qu'avant (logo 5 faisceaux, nom, fine barre, rideau),
   mais chaque élément entre et sort par un masque :
   · 0 → 1,3 s : le logo monte de son masque ; les lettres de
     HEAR THE LIGHT montent en décalé, s'ouvrent sur l'axe wdth
     (55 → 100) et passent de la couleur de la lumière au blanc ;
     la barre se remplit de gauche à droite.
   · 1,85 s (.is-out) : logo puis lettres repartent vers le haut en
     décalé, la barre s'efface vers la droite.
   · 2,05 s (.is-lift) : le rideau remonte et dévoile l'accueil.
   Affiché à chaque arrivée directe sur le site (pas en naviguant
   d'une page à l'autre). Animations toujours actives.
   ================================================================ */
#htl-intro { display: none; }
html.htl-intro { overflow: hidden; }
html.htl-intro #htl-intro {
  display: block; position: fixed; inset: 0; z-index: 10000;
  pointer-events: none; color: var(--fg);
}
.hil-panel {
  position: absolute; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform .85s cubic-bezier(.76, 0, .24, 1);
}
/* filet de lumière sous le rideau pendant qu'il remonte */
.hil-panel::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--light); box-shadow: 0 0 18px var(--light); opacity: 0;
  transition: opacity .3s;
}
.hil-box { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* Masques : ce qui entre monte depuis le bas, ce qui sort part par le haut */
.hil-mask { display: block; overflow: hidden; }
.hil-mark {
  display: block; width: 54px; height: 54px; color: var(--light);
  transform: translateY(105%);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1) .05s;
}
.hil-mark rect { transform-box: fill-box; transform-origin: 50% 50%; animation: hil-beat .9s ease-in-out infinite; }
.hil-mark rect:nth-child(1), .hil-mark rect:nth-child(5) { animation-delay: -.45s; }
.hil-mark rect:nth-child(2), .hil-mark rect:nth-child(4) { animation-delay: -.2s; }
@keyframes hil-beat { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

.hil-name {
  display: flex; gap: .26em; margin: 0;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(26px, 3.4vw, 52px); letter-spacing: .02em; white-space: nowrap;
}
/* un masque par mot ; un peu d'air pour ne pas rogner les lettres */
.hil-w { display: inline-flex; overflow: hidden; padding: .1em .04em .08em; margin: -.1em -.04em -.08em; }
.hil-l {
  display: inline-block; color: var(--light);
  font-variation-settings: 'wdth' 55; transform: translateY(112%);
  transition:
    transform .9s cubic-bezier(.2, .8, .2, 1) calc(.14s + var(--i) * .035s),
    font-variation-settings 1.15s var(--ease-out) calc(.14s + var(--i) * .035s),
    color .9s ease calc(.6s + var(--i) * .035s);
}
.hil-bar { position: relative; width: clamp(160px, 16vw, 240px); height: 2px; background: color-mix(in srgb, var(--fg) 14%, transparent); overflow: hidden; opacity: 0; transition: opacity .4s var(--ease-out) .3s; }
.hil-bar span { position: absolute; inset: 0; background: var(--light); transform: scaleX(0); transform-origin: left; }

/* Entrée */
#htl-intro.is-on .hil-mark { transform: none; }
#htl-intro.is-on .hil-l { transform: none; font-variation-settings: 'wdth' 100; color: var(--fg); }
#htl-intro.is-on .hil-bar { opacity: 1; }
#htl-intro.is-on .hil-bar span { transform: scaleX(1); transition: transform 1.4s cubic-bezier(.45, .05, .25, 1) .3s; }

/* Sortie du contenu (juste avant le rideau, et pendant qu'il remonte) */
#htl-intro.is-out .hil-mark { transform: translateY(-105%); transition: transform .5s cubic-bezier(.32, 0, .67, 0); }
#htl-intro.is-out .hil-l {
  transform: translateY(-112%); font-variation-settings: 'wdth' 80;
  transition:
    transform .55s cubic-bezier(.32, 0, .67, 0) calc(.06s + var(--i) * .02s),
    font-variation-settings .55s cubic-bezier(.32, 0, .67, 0) calc(.06s + var(--i) * .02s);
}
#htl-intro.is-out .hil-bar { opacity: 0; transition: opacity .35s ease .2s; }
#htl-intro.is-out .hil-bar span { transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.32, 0, .67, 0) .05s; }

/* Rideau */
#htl-intro.is-lift .hil-panel { transform: translateY(-100%); }
#htl-intro.is-lift .hil-panel::after { opacity: 1; }

@media (max-width: 768px) {
  .hil-mark { width: 44px; height: 44px; }
  .hil-name { font-size: 8.4vw; }
  .hil-box { gap: 18px; }
}

/* ================================================================
   CHANTIER MOBILE (30/11) — accueil, téléphones uniquement
   ================================================================ */
/* Éléments réservés au téléphone (masqués sur PC) */
.hh-modal__done, .recrute-mail-btn, .hh-aud__tabs { display: none; }
/* Indication du hero : dépend du tactile, pas de la largeur (htl-touch n'est jamais posé sur un PC à souris) */
html.htl-touch .hh-hint-pc { display: none; }
html.htl-touch .hh-hint-touch { display: inline; }

@media (max-width: 768px) {
  /* Hero : plus de dock à éviter en bas, la zone sûre suffit */
  .hh-hero { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .hh-hero__hint { font-size: 14px; }

  /* Ordre des blocs : la preuve chiffrée juste sous le hero
     (l'ordre du DOM ne change pas : PC et lecteurs d'écran identiques) */
  #main { display: flex; flex-direction: column; }
  #main > * { order: 2; }
  #main > .hh-hero { order: 0; }
  #main > .hh-stats { order: 1; }

  /* « Voir tout » passe sous le contenu de sa section, en pleine largeur */
  :is(.hh-works, .hh-prestas, .hh-courses) > .htl-wrap { display: flex; flex-direction: column; }
  :is(.hh-works, .hh-prestas, .hh-courses) .htl-section__head,
  :is(.hh-works, .hh-prestas, .hh-courses) .hh-head-aside { display: contents; }
  :is(.hh-works, .hh-prestas, .hh-courses) .htl-section__head > .htl-h2 { margin-bottom: 14px; }
  :is(.hh-works, .hh-prestas, .hh-courses) .hh-head-aside > .htl-body { margin-bottom: 28px; }
  :is(.hh-works, .hh-prestas, .hh-courses) .hh-head-aside > .htl-btn { order: 9; align-self: stretch; height: 48px; margin-top: 24px; font-size: 15px; }

  /* Carrousels horizontaux (glisser au doigt, arrêt sur chaque carte) */
  #home-works.htl-works-grid, .talents-grid, .stars-grid, .hh-courses .cv {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  :is(#home-works.htl-works-grid, .talents-grid, .stars-grid, .hh-courses .cv)::-webkit-scrollbar { display: none; }

  /* Travaux à la une : cartes 4:5 de même taille */
  #home-works.htl-works-grid { align-items: flex-start; }
  #home-works .htl-work { flex: 0 0 70%; scroll-snap-align: start; }
  #home-works .htl-work .htl-work__media, #home-works .htl-work__frame { aspect-ratio: 4 / 5; }
  #home-works .htl-work__frame.is-opening { aspect-ratio: auto; }
  /* Miniature YouTube 4:3 (bandes noires intégrées) : on la recadre sur l'image */
  #home-works .htl-work[data-type="youtube"] .htl-work__thumb { transform: scale(1.34); }

  /* Talents : tous visibles dans le carrousel (plus de « Voir plus ») */
  .talents-grid > .talent-card { flex: 0 0 44%; scroll-snap-align: start; }
  .talents-grid > .talent-card.talent-extra { display: block !important; opacity: 1 !important; transform: none !important; }
  .voir-plus-wrap { display: none !important; }
  .talent-socials { gap: 0 4px; }
  body.htl .talents-grid .social-link-btn { min-height: 44px; min-width: 44px; justify-content: center; }
  body.htl .talents-grid .social-link-btn:not(.no-count) { justify-content: flex-start; padding-right: 6px; }
  /* Vérification finale : liens réseaux de la fiche star à 44 px, 15 px */
  body.htl .star-modal-links .social-link-btn { min-height: 44px; font-size: 15px; }
  .talents-grid .social-link-btn > span { font-size: 14px; }
  /* Stars : la carte entière ouvre la fiche (les réseaux y sont) */
  .stars-grid > .star-card { flex: 0 0 44%; scroll-snap-align: start; }
  .stars-grid .talent-socials { display: none; }
  .talent-role { font-size: 14px; }

  /* Avec qui : deux onglets (js/htl-home.js) */
  .hh-aud__tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 24px;
    border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line);
  }
  .hh-aud__tabs button {
    height: 48px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer;
    color: var(--muted); font-weight: 600; font-size: 15px;
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
  }
  .hh-aud__tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
  .hh-aud__grid[data-tab="creator"] .aud-entreprise,
  .hh-aud__grid[data-tab="brand"] .aud-createur { display: none; }
  .hh-aud__grid[data-tab] .aud-card { animation: hh-panel .5s var(--ease-out) both; }

  /* Formations : deux affiches côte à côte, on glisse de l'une à l'autre */
  .hh-courses .cv { align-items: stretch; }
  .hh-courses .cv > * { flex: 0 0 88%; min-width: 0; scroll-snap-align: start; }

  /* Fondateurs */
  body.htl .team-ig-btn { min-height: 44px; }

  /* Dernier appel : bouton e-mail court (htl.css, .htl-mail-short) */
  .hh-cta__actions .htl-btn { font-size: 15px; height: 52px; }

  /* Fiches (star, recrutement) : feuille du bas, fermeture au pouce */
  .hh-modal { padding: 10px 10px 0; }
  .hh-modal__card { max-height: calc(100dvh - 10px); border-radius: 22px 22px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .star-modal-card { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .hh-modal__close { width: 44px; height: 44px; }
  .hh-modal__done {
    display: inline-flex; position: sticky; bottom: 0; z-index: 3; width: 100%; height: 52px; margin-top: 24px;
    --b-bg: var(--bg-3); --b-fg: var(--fg);
    box-shadow: inset 0 0 0 1px var(--line), 0 -18px 24px 4px var(--bg-2);
  }
  .star-modal-card .hh-modal__done { width: calc(100% - 40px); margin: 0 20px; }
  .star-modal-body { padding-bottom: 8px; }
  .recrute-mail-btn { display: inline-flex; width: 100%; height: 52px; margin-top: 18px; white-space: normal; text-align: center; }
  .recrute-mail-label { font-size: 14px; }
  .recrute-mail-link { font-size: 17px; }

  .hh-toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Palettes claires : les faisceaux restent lisibles (léger voile sous le canvas) */
@media (max-width: 768px) {
  [data-palette="plein-jour"] .hh-hero__beam, [data-palette="polaroid"] .hh-hero__beam {
    background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--fg) 9%, transparent), transparent 72%);
  }
}

/* Téléphone couché : le titre et ses boutons tiennent dans l'écran */
@media (pointer: coarse) and (max-height: 520px) {
  .hh-hero { min-height: auto; padding-bottom: 24px; }
  .hh-hero__beam { flex: none; min-height: 34svh; }
  .hh-hero__aside { gap: 14px; }
  .hh-hero__actions .htl-btn { height: 44px; }
}
