/* ==========================================================================
   Flex Timer · landing — page d'accueil (index.html)
   Préfixe hm- : tout ce qui est propre à l'accueil. Couleurs = tokens du
   socle (site.css) : --ink, --glass... basculent seuls en encre NOIRE sur la
   scène TABATA. Les couleurs de mode passent par --m / --on (FT.modeVars).
   Découpage = un bloc par futur composant React.
   ========================================================================== */

/* Couleur du mode affiché par le téléphone du héro (animable en fondu). */
@property --hh-c { syntax: '<color>'; inherits: true; initial-value: #FF5454; }

/* ---------- Commun ---------- */
:where(main[data-page="home"]) [data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 0; }

.hm-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 880px;
  margin-bottom: clamp(36px, 6vw, 72px);
}
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hm-eyebrow .ft-icon { width: 16px; height: 16px; color: var(--gold); }

/* Petites animations réutilisées par home.js (classe retirée puis remise) */
.is-pop { animation: hm-pop .5s var(--ease-forward); }
.ft-ring.is-flash { animation: hm-pop .55s var(--ease-forward); }
@keyframes hm-pop { 0% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hm-blink { 50% { opacity: .3; } }

/* Hors écran, les animations CSS d'un bloc vivant se mettent en pause. */
.is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }

.hm-spin { width: 100%; height: 100%; animation: hm-spin 90s linear infinite; }
.hm-spin--slow { animation-duration: 160s; }

/* ==========================================================================
   1. HÉRO
   ========================================================================== */
.hm-hero {
  --hh-c: #FF5454;
  position: relative;
  padding-block: clamp(24px, 5vw, 64px) clamp(64px, 9vw, 120px);
  overflow-x: clip; /* l'anneau décoratif déborde volontairement */
  transition: --hh-c var(--fade) var(--ease-impact);
}
.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .hm-hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hm-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hm-hero__title { font-size: clamp(3.1rem, 8.4vw, 6.9rem); line-height: .96; }
.hm-line { display: block; animation: hm-rise 1s var(--ease-impact) both; }
.hm-line:nth-child(2) { animation-delay: .08s; }
.hm-line:nth-child(3) { animation-delay: .16s; }
@keyframes hm-rise {
  from { opacity: .45; transform: translateY(.35em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
/* Le mot « couleur » prend la couleur du mode affiché par le téléphone */
.hm-hero__word { display: inline-block; color: var(--hh-c); }
.hm-hero__word.is-pop { animation: hm-word .6s var(--ease-forward); }
@keyframes hm-word { 0% { transform: translateY(.08em) scale(.94); } 100% { transform: none; } }
.hm-line--outline { color: var(--ink-3); }
@supports (-webkit-text-stroke: 1px black) {
  .hm-line--outline { color: transparent; -webkit-text-stroke: clamp(1.5px, .02em, 3px) var(--ink); }
}

.hm-hero__lead { max-width: 44ch; }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }

.hm-facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 18px 0 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  border-top: 1px solid var(--line);
}
.hm-facts li { display: flex; align-items: baseline; gap: 8px; }
.hm-facts b { font-size: 2.3rem; line-height: 1; font-weight: 400; color: var(--ink); }
.hm-facts span { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* Visuel : halo + grand anneau + téléphone + pastilles flottantes */
.hm-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(16px, 4vw, 40px);
  min-width: 0;
  isolation: isolate;
}
.hm-hero__halo {
  position: absolute;
  left: 50%; top: 50%;
  width: min(90%, 440px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--hh-c);
  filter: blur(64px);
  opacity: .42;
  z-index: -1;
  animation: hm-breathe 5s ease-in-out infinite;
}
@keyframes hm-breathe { 0%, 100% { scale: 1; opacity: .34; } 50% { scale: 1.08; opacity: .5; } }
.hm-hero__bigring {
  position: absolute;
  left: 50%; top: 50%;
  width: min(128%, 640px);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: .55;
  z-index: -1;
  pointer-events: none;
  --ring-on: var(--hh-c);
}
.hm-hero__device { position: relative; width: min(78%, 330px); }
@media (max-width: 900px) { .hm-hero__device { width: min(70vw, 300px); } }
.hm-hero__slot { width: 100%; aspect-ratio: 360 / 760; }
.hm-hero__slot > .ft-phone { width: 100%; }

/* Carrousel dans l'écran du téléphone (comme la FlatList de l'app) */
.hm-carousel { position: absolute; inset: 0; overflow: hidden; }
.hm-track { display: flex; height: 100%; transition: transform .75s var(--ease-impact); will-change: transform; }
.hm-track.is-snap { transition: none; }
.hm-slide { position: relative; flex: 0 0 100%; height: 100%; }
.hm-slide .ft-app__dots { visibility: hidden; } /* les points restent fixes, par-dessus */
/* Points de pagination fixes : mêmes valeurs que .ft-app (claires / sombres) */
.hm-cdots {
  position: absolute;
  left: 0; right: 0; bottom: 6cqw;
  margin: 0;
  justify-content: center;
  z-index: 3;
  --t1: #FFFFFF; --roff: rgba(255,255,255,.22);
}
.hm-cdots[data-ink="dark"] { --t1: #0A0A0A; --roff: rgba(10,10,10,.22); }

.hm-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 16px 34px -18px rgba(0,0,0,.75);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
  animation: hm-float 6s ease-in-out infinite;
}
.hm-pill .ft-icon { width: 16px; height: 16px; color: var(--hh-c); }
.hm-pill b { font-size: .92rem; }
.hm-pill--a { top: 13%; left: 0; }
.hm-pill--b { top: 49%; right: 0; animation-delay: -2s; }
.hm-pill--c { bottom: 11%; left: 3%; animation-delay: -4s; }
.hm-pill__medal .ft-icon { color: #E8A863; }
@media (max-width: 480px) {
  .hm-pill { font-size: .68rem; padding: 7px 11px 7px 8px; gap: 6px; }
  .hm-pill b { font-size: .8rem; }
}

/* ==========================================================================
   2. BANDEAU DES SPORTS
   ========================================================================== */
.hm-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding-block: clamp(16px, 2.4vw, 26px);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hm-marquee__item { display: inline-flex; align-items: center; gap: .45em; margin-right: .45em; }
.hm-marquee__sep { width: .6em; height: .6em; }
.hm-marquee__sep .ft-icon { width: 100%; height: 100%; }

/* ==========================================================================
   3. TUILES DES MODES
   ========================================================================== */
.hm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hm-tiles { grid-template-columns: minmax(0, 1fr); } }

.hm-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 24px 60px -34px rgba(0,0,0,.7);
  color: var(--ink);
  transition: color .35s ease, translate .45s var(--ease-forward), box-shadow .45s var(--ease-impact);
}
/* Liseré de la couleur du mode, au repos */
.hm-tile::before {
  content: '';
  position: absolute;
  left: 20px; right: 20px; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--m);
}
/* Au survol, la tuile se remplit de la couleur du mode (texte = --on, règle 3:1) */
.hm-tile__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(170deg, color-mix(in srgb, var(--m) 86%, #fff) 0%, var(--m) 45%, color-mix(in srgb, var(--m) 84%, #000) 100%);
  transform: translateY(101%);
  transition: transform .6s var(--ease-impact);
}
.hm-tile:hover, .hm-tile:focus-within {
  color: var(--on);
  translate: 0 -4px;
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--m) 70%, transparent);
}
.hm-tile:hover .hm-tile__fill, .hm-tile:focus-within .hm-tile__fill { transform: none; }
.hm-tile__top { display: flex; justify-content: space-between; align-items: center; }
.hm-tile__icon { width: 44px; height: 44px; color: var(--m); transition: color .35s; }
.hm-tile__icon .ft-icon { width: 100%; height: 100%; }
.hm-tile:hover .hm-tile__icon, .hm-tile:focus-within .hm-tile__icon { color: inherit; }
.hm-tile__idx { font-size: .78rem; opacity: .6; }
.hm-tile__name {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hm-tile__tag { font-weight: 700; font-size: .7rem; letter-spacing: .26em; opacity: .72; }
.hm-tile__pitch { margin: 6px 0 0; font-weight: 600; font-size: .98rem; line-height: 1.4; opacity: .9; }
.hm-tile__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-tile__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; color: inherit; }
/* Toute la tuile est cliquable (lien étiré), le bouton ↓ reste au-dessus */
.hm-tile__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.hm-tile__link .ft-icon { width: 16px; height: 16px; transition: transform .35s var(--ease-forward); }
.hm-tile:hover .hm-tile__link .ft-icon { transform: translateX(4px); }
.hm-tile__jump {
  position: relative;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: inherit;
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
  transition: translate .3s var(--ease-forward), background-color .3s;
}
.hm-tile__jump .ft-icon { width: 18px; height: 18px; transform: rotate(90deg); }
.hm-tile__jump:hover { translate: 0 2px; background: color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 520px) {
  .hm-tile { min-height: 0; padding: 18px; }
  .hm-tile__name { margin-top: 6px; }
}

/* ==========================================================================
   4. SECTIONS DE MODE
   ========================================================================== */
.hm-mode { overflow-x: clip; }
.hm-mode__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.hm-mode__name { font-size: clamp(4.5rem, 12.5vw, 10.5rem); line-height: .9; }
.hm-mode__pitch { margin: 0; font-weight: 800; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); max-width: 26ch; }
.hm-mode__text .hm-demo { width: 100%; max-width: 580px; margin-block: 6px; }
.hm-mode__sports { gap: 8px; }
.hm-mode__more .ft-icon { transition: transform .35s var(--ease-forward); }
.hm-mode__more:hover .ft-icon { transform: translateX(4px); }

.hm-mode__visual { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 12px; }
.hm-mode__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: min(118%, 560px);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: .4;
  pointer-events: none;
}
.hm-mode__device { width: min(100%, 330px); }
@media (max-width: 860px) { .hm-mode__device { width: min(72vw, 300px); } }
.hm-mode__slot { width: 100%; aspect-ratio: 360 / 760; }
.hm-mode__slot > .ft-phone { width: 100%; }
/* Téléphone alterné à gauche / à droite (empilé sur mobile) */
@media (min-width: 861px) { .hm-mode--flip .hm-mode__visual { order: -1; } }

/* Grand numéro en creux derrière la section */
.hm-mode__bgnum {
  position: absolute;
  right: -2vw;
  top: clamp(20px, 6vw, 80px);
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(14rem, 42vw, 34rem);
  line-height: .8;
  color: var(--ink);
  opacity: .05;
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-text-stroke: 1px black) {
  .hm-mode__bgnum { color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .14; }
}
.hm-mode--flip .hm-mode__bgnum { right: auto; left: -2vw; }

/* ---------- Démos (une carte de verre par mode) ---------- */
.hm-demo {
  --rest: var(--glass-border); /* remplacé par FT.restTint(couleur du mode) */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(16px, 2.6vw, 24px);
  background-color: var(--glass);
  transition: background-color var(--fade) var(--ease-impact);
}
/* Teinte de repos : la couleur du mode « en veille », comme l'écran de séance */
.hm-demo.is-rest { background-color: color-mix(in srgb, var(--rest) 80%, transparent); }
.hm-demo__head, .hm-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.hm-demo__label { font-weight: 700; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hm-demo__round {
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
}
.hm-demo__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.hm-demo__tag::before { content: ''; width: 6px; height: 6px; border-radius: 9px; background: var(--ink-3); animation: hm-blink 1.6s ease-in-out infinite; }
.hm-demo__hint { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--ink-3); }
.hm-demo .ft-chip { white-space: normal; letter-spacing: .1em; }

/* Anneau de démo + centre */
.hm-dring { position: relative; flex: none; width: clamp(118px, 30vw, 168px); }
.hm-dring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.hm-dring__unit { font-weight: 700; font-size: .6rem; letter-spacing: .24em; color: var(--ink-3); }
.hm-dring__num { display: block; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; font-weight: 400; color: var(--ink); }
.hm-dring__num--time { font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
.hm-bigclock { display: block; font-size: clamp(3rem, 10vw, 5rem); line-height: 1; font-weight: 400; color: var(--ink); transform-origin: left bottom; }

/* AMRAP + BASIC : anneau à gauche, infos à droite */
.hm-amrap, .hm-basic { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.hm-amrap__side, .hm-basic__side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hm-bar { width: 100%; height: 6px; border-radius: 9px; background: var(--ring-off); overflow: hidden; }
.hm-bar > i { display: block; height: 100%; background: var(--ring-on); transform-origin: left center; transform: scaleX(.63); }

.hm-steps3 { display: flex; gap: 6px; }
.hm-steps3 i { width: 26px; height: 6px; border-radius: 9px; background: var(--ring-off); transition: background-color .35s, width .35s var(--ease-impact); }
.hm-steps3 i.done { background: var(--ink-3); }
.hm-steps3 i.on { background: var(--ink); width: 38px; }
.hm-basic__btn[disabled] { cursor: default; opacity: .62; }
.hm-basic__btn.is-press { animation: hm-press .4s var(--ease-forward); }
@keyframes hm-press { 0% { transform: scale(.92); } 100% { transform: scale(1); } }
/* Barre qui se remplit : le bouton va se cliquer tout seul */
.hm-basic__auto {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: currentColor;
  opacity: .3;
  transform-origin: left;
  transform: scaleX(0);
}
@media (max-width: 400px) { .hm-dring { width: 108px; } }

/* EMOM : frise de 6 minutes */
.hm-emom { display: flex; flex-direction: column; gap: 16px; }
.hm-emom__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-legend { display: flex; gap: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hm-legend i { width: 12px; height: 12px; border-radius: 4px; }
.hm-legend .is-work { background: var(--ink); }
.hm-legend .is-rest { background: var(--rest); }
.hm-emom__frieze { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hm-emom__cell { display: flex; flex-direction: column; gap: 6px; }
.hm-emom__cell em { font-style: normal; font-family: var(--font-mono); font-size: .66rem; text-align: center; color: var(--ink-muted); }
.hm-emom__cell.is-on em { color: var(--ink); font-weight: 700; }
.hm-emom__min {
  position: relative;
  height: 58px;
  border-radius: 10px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  overflow: hidden;
  transition: box-shadow .3s;
}
.hm-emom__cell.is-on .hm-emom__min { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hm-emom__cell.is-top .hm-emom__min { animation: hm-top .5s var(--ease-forward); }
@keyframes hm-top { 0% { transform: scaleY(1.14); } 100% { transform: none; } }
.hm-emom__work, .hm-emom__rest { position: absolute; top: 0; bottom: 0; transform-origin: left center; }
.hm-emom__work { left: 0; width: calc(var(--w) * 100%); background: var(--ink); }
.hm-emom__rest { left: calc(var(--w) * 100%); right: 0; background: var(--rest); }

/* TABATA : barres travail / repos + tête de lecture */
.hm-tabata { display: flex; flex-direction: column; gap: 18px; }
.hm-tabata__big { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.hm-tabata__phase { display: block; font-size: clamp(2.8rem, 10vw, 4.8rem); line-height: .95; font-weight: 400; color: var(--ink); }
.hm-tabata__phase.is-flip { animation: hm-flip .5s var(--ease-forward); }
@keyframes hm-flip { 0% { transform: translateY(.18em) scale(.92); opacity: .5; } 100% { transform: none; opacity: 1; } }
.hm-tabata__time { font-size: clamp(1.4rem, 4.4vw, 2.1rem); font-weight: 800; color: var(--ink); }
.hm-tabata__track { position: relative; display: flex; gap: 4px; height: 46px; }
.hm-tabata__seg {
  position: relative;
  flex: 2 1 0;
  min-width: 0;
  border-radius: 8px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  overflow: hidden;
}
.hm-tabata__seg.is-rest { flex-grow: 1; }
.hm-tabata__seg > i { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(0); }
.hm-tabata__seg.is-rest > i { background: var(--ink-muted); }
.hm-tabata__head {
  position: absolute;
  top: -7px; bottom: -7px; left: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 16%, transparent);
}

/* MIX : blocs empilés + rail vertical */
.hm-mix { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; }
.hm-mix__rail { position: relative; justify-self: center; width: 2px; border-radius: 2px; background: var(--line); }
.hm-mix__head {
  position: absolute;
  left: 50%; top: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 18%, transparent);
}
.hm-mix__blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hm-mix__block {
  --len: 4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: calc(26px + var(--len) * 4.5px); /* hauteur proportionnelle à la durée */
  border-radius: 14px;
  background: var(--m, var(--glass));
  color: var(--on, var(--ink));
  opacity: .74;
  transform-origin: left center;
  transition: transform .45s var(--ease-forward), opacity .45s ease, box-shadow .45s ease;
}
.hm-mix__block > :not(.hm-mix__fill) { position: relative; z-index: 1; }
.hm-mix__block .ft-icon { width: 20px; height: 20px; }
.hm-mix__block b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1; letter-spacing: .01em; }
.hm-mix__block .ft-mono { margin-left: auto; font-weight: 700; font-size: .8rem; }
.hm-mix__fill { position: absolute; inset: 0; background: color-mix(in srgb, var(--on, #000) 20%, transparent); transform-origin: left center; transform: scaleX(0); }
.hm-mix__block.is-on { opacity: 1; transform: scale(1.035); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--m, #000) 85%, transparent); }
.hm-mix__block.is-done { opacity: .5; }
.hm-mix__block--rest { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--glass-border); }
.hm-mix__block--rest .hm-mix__fill { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.hm-mix__block--rest.is-on { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ==========================================================================
   5. ANTI-MONOTONIE
   ========================================================================== */
.hm-weeks { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 32px); }
.hm-weeks__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; align-items: center; gap: 14px; }
.hm-weeks__label { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; text-transform: uppercase; color: var(--ink-3); }
.hm-weeks__row--vary .hm-weeks__label { color: var(--ink); }
.hm-weeks__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hm-weeks__days li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hm-weeks__days b { font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-muted); }
.hm-weeks__days i {
  width: 100%;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .5s var(--ease-impact), transform .5s var(--ease-forward), box-shadow .5s;
}
.hm-weeks__row--vary li.is-off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
/* Quand le bloc est visible, la 2e semaine se colore jour après jour */
.hm-weeks.is-played .hm-weeks__row--vary li:not(.is-off) i {
  background: var(--m);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -12px var(--m);
}
.hm-weeks__row--vary li:nth-child(2) i { transition-delay: .09s; }
.hm-weeks__row--vary li:nth-child(4) i { transition-delay: .27s; }
.hm-weeks__row--vary li:nth-child(5) i { transition-delay: .36s; }
.hm-weeks__row--vary li:nth-child(6) i { transition-delay: .45s; }
.hm-weeks__note { font-size: .74rem; color: var(--ink-3); }
@media (max-width: 620px) {
  .hm-weeks__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.hm-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .hm-pillars { grid-template-columns: minmax(0, 1fr); } }
.hm-pillar { display: flex; flex-direction: column; gap: 12px; }
.hm-pillar__top { display: flex; justify-content: space-between; align-items: center; }
.hm-pillar__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.hm-pillar__icon .ft-icon { width: 24px; height: 24px; }
.hm-pillar:nth-child(1) .hm-pillar__icon { color: var(--amrap); }
.hm-pillar:nth-child(2) .hm-pillar__icon { color: var(--emom); }
.hm-pillar:nth-child(3) .hm-pillar__icon { color: var(--mix); }
.hm-pillar__num { font-size: .8rem; color: var(--ink-muted); }

.hm-goals { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 16px; }
.hm-goals__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hm-goal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  background-color: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: background-color .35s, color .35s, translate .35s var(--ease-forward);
}
.hm-goal .ft-icon { width: 20px; height: 20px; color: var(--m); transition: color .35s; }
.hm-goal:hover { background-color: var(--m); color: var(--on); translate: 0 -2px; }
.hm-goal:hover .ft-icon { color: inherit; }

/* ==========================================================================
   6. BENTO DES FONCTIONNALITÉS
   ========================================================================== */
.hm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.hm-b--w2 { grid-column: span 2; }
@media (max-width: 1000px) { .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hm-bento { grid-template-columns: minmax(0, 1fr); }
  .hm-b--w2 { grid-column: auto; }
}
.hm-b { display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.hm-b__viz {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.hm-b__text { display: flex; flex-direction: column; gap: 8px; }
.hm-b__text .ft-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.hm-b__text .ft-h3 .ft-icon { width: 20px; height: 20px; color: var(--ink-3); }
.hm-b__text .ft-body { font-size: .92rem; }

/* Coach vocal */
.hm-voice { flex-direction: column; gap: 16px; }
.hm-voice__wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.hm-voice__wave i {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
  opacity: .85;
  transform: scaleY(var(--h, .5));
  animation: hm-wave 1.1s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes hm-wave { 0%, 100% { transform: scaleY(calc(var(--h, .5) * .35)); } 50% { transform: scaleY(var(--h, .5)); } }
.hm-voice__bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.6);
  text-align: center;
}
.hm-voice__bubble::after { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.hm-voice__style { font-size: .62rem; letter-spacing: .16em; opacity: .6; }
.hm-voice__text { display: block; font-weight: 800; font-size: 1.05rem; }
.hm-voice__opts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.hm-voice__opts span { padding: 5px 11px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--glass-border); transition: background-color .35s, color .35s; }
.hm-voice__opts span.is-on { background-color: var(--cta-bg); color: var(--cta-ink); box-shadow: none; }
.hm-voice__opts .hm-voice__sep { width: 1px; height: 18px; padding: 0; box-shadow: none; background: var(--line); }

/* Notification Android (chrono en arrière-plan) */
.hm-notifviz { padding: clamp(14px, 3vw, 26px); }
.hm-notif {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px;
  border-radius: 22px;
  background: var(--m);
  color: var(--on);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
  --ring-on: var(--on);
  --ring-off: color-mix(in srgb, var(--on) 25%, transparent);
}
.hm-notif__top { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; }
.hm-notif__app { display: block; width: 18px; height: 18px; flex: none; }
.hm-notif__app-name { flex: 1; min-width: 0; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-notif__chrono { font-weight: 700; }
.hm-notif__title { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.hm-notif__bar { height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--on) 22%, transparent); overflow: hidden; }
.hm-notif__bar i { display: block; height: 100%; background: var(--on); transform-origin: left center; transform: scaleX(.3); transition: transform .3s linear; }
.hm-notif__actions { display: flex; gap: 4px; margin-top: 2px; }
.hm-notif__actions button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--on) 10%, transparent);
  color: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease-forward);
}
.hm-notif__actions button:hover { background: color-mix(in srgb, var(--on) 18%, transparent); }
.hm-notif__actions button:active { transform: scale(.95); }

/* Bips 3-2-1 + musique qui baisse */
.hm-beeps { flex-direction: column; gap: 18px; }
.hm-beeps__dots { display: flex; align-items: center; gap: 10px; }
.hm-beeps__dots span {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--glass-border);
  transition: background-color .18s, color .18s, transform .3s var(--ease-forward), box-shadow .18s;
}
.hm-beeps__dots .hm-beeps__go { width: auto; padding: 0 14px; border-radius: 99px; }
.hm-beeps__dots span.is-on { background-color: var(--cta-bg); color: var(--cta-ink); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 14%, transparent); }
.hm-beeps__dots .hm-beeps__go.is-on { background-color: var(--emom); color: #0A0A0A; box-shadow: 0 0 0 6px color-mix(in srgb, var(--emom) 25%, transparent); }
.hm-beeps__music { display: flex; align-items: center; gap: 10px; width: min(100%, 240px); }
.hm-beeps__label { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hm-beeps__label .ft-icon { width: 14px; height: 14px; }
.hm-beeps__level { flex: 1; height: 6px; border-radius: 9px; background: var(--ring-off); overflow: hidden; }
.hm-beeps__level i { display: block; width: 100%; height: 100%; background: var(--ink-2); transform-origin: left center; transform: scaleX(.85); transition: transform .25s var(--ease-impact); }
.hm-beeps.is-duck .hm-beeps__level i { transform: scaleX(.3); }

/* Trophées Bronze / Argent / Or */
.hm-trophies { gap: clamp(10px, 3vw, 28px); }
.hm-trophy { flex: 1 1 0; min-width: 0; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hm-trophy__ring { position: relative; width: 100%; --ring-on: var(--tier); }
.hm-trophy__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 400; color: var(--tier); }
.hm-trophy > span { font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* Série de jours : la flamme se colore (mêmes paliers que StreakFlame) */
.hm-streak { gap: 18px; }
.hm-streak__flame {
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transform-origin: 50% 90%;
  transition: color .5s, filter .5s;
  animation: hm-flicker 2.4s ease-in-out infinite;
}
.hm-streak__flame .ft-icon { width: 100%; height: 100%; }
.hm-streak__flame[data-lv="2"] { color: var(--tabata); }
.hm-streak__flame[data-lv="3"] { color: color-mix(in srgb, var(--tabata) 45%, var(--amrap)); }
.hm-streak__flame[data-lv="4"] { color: var(--amrap); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--amrap) 70%, transparent)); }
@keyframes hm-flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, .97) rotate(-2deg); } 60% { transform: scale(.97, 1.04) rotate(1.5deg); } }
.hm-streak__count { display: flex; flex-direction: column; }
.hm-streak__count b { display: block; font-size: 3.2rem; line-height: 1; font-weight: 400; }
.hm-streak__count span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* Planning de la semaine */
.hm-planviz { flex-direction: column; align-items: stretch; gap: 14px; }
.hm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hm-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 8px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .35s, color .35s, translate .35s var(--ease-forward);
}
.hm-day b { font-size: .8rem; font-weight: 800; }
.hm-day i { width: 6px; height: 6px; border-radius: 9px; background: transparent; }
.hm-day.is-done i { background: var(--tabata); } /* un chrono lancé ce jour-là */
.hm-day.is-today i { background: var(--amrap); } /* aujourd'hui */
.hm-day.is-sel { background-color: var(--cta-bg); color: var(--cta-ink); translate: 0 -2px; }
.hm-planviz__block { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.hm-planviz__day { font-size: .66rem; letter-spacing: .16em; color: var(--ink-muted); }
.hm-planviz__block strong { font-size: 1.05rem; font-weight: 800; }
.hm-planviz__tags { font-size: .82rem; color: var(--ink-3); }

/* Partage de mix + fil public */
.hm-share__card {
  width: min(100%, 260px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--m);
  color: var(--on);
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--m, #000) 80%, transparent);
}
.hm-share__top { display: flex; align-items: center; gap: 8px; }
.hm-share__top .ft-icon { width: 20px; height: 20px; }
.hm-share__top strong { font-weight: 800; }
.hm-share__top .ft-mono { margin-left: auto; font-size: .72rem; opacity: .8; }
.hm-share__stars { display: flex; gap: 4px; }
.hm-share__stars > span { color: color-mix(in srgb, var(--on) 28%, transparent); transition: color .3s, transform .35s var(--ease-forward); }
.hm-share__stars > span.is-on { color: var(--gold); transform: scale(1.12); }
.hm-share__stars .ft-icon { width: 22px; height: 22px; }
.hm-share__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--on) 14%, transparent);
  font-weight: 700;
  font-size: .78rem;
  transition: background-color .3s, color .3s;
}
.hm-share__link.is-done { background-color: var(--success); color: #0A0A0A; }
.hm-share__link .ft-icon { width: 15px; height: 15px; }

/* Historique */
.hm-hist { list-style: none; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.hm-hist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.hm-hist li.is-new { animation: hm-newrow .6s var(--ease-forward); }
@keyframes hm-newrow { from { transform: translateY(-12px) scale(.96); opacity: .45; } to { transform: none; opacity: 1; } }
.hm-hist i { width: 8px; height: 26px; border-radius: 9px; background: var(--m); flex: none; }
.hm-hist b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; }
.hm-hist .ft-mono { margin-left: auto; font-weight: 700; font-size: .82rem; color: var(--ink-2); }

/* ==========================================================================
   7. L'APP ÉVOLUE
   ========================================================================== */
.hm-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin-bottom: clamp(48px, 7vw, 88px); }
@media (max-width: 860px) { .hm-points { grid-template-columns: minmax(0, 1fr); } }
.hm-point { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.hm-point__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--ink); }
.hm-point__icon .ft-icon { width: 22px; height: 22px; }
.hm-point .ft-h3 { font-size: 1.1rem; margin-bottom: 6px; }
.hm-point .ft-body { font-size: .92rem; }

.hm-tl-wrap { display: flex; flex-direction: column; gap: 22px; }
.hm-timeline { --p: 1; position: relative; }
/* Ligne du premier au dernier point : right = une colonne moins le demi-point */
.hm-timeline__line {
  position: absolute;
  left: 20px;
  right: calc((100% - 60px) / 6 - 20px);
  top: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.hm-timeline__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amrap), var(--tabata), var(--emom), var(--mix));
  transform-origin: left center;
  transform: scaleX(var(--p));
}
.hm-timeline__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hm-tl { position: relative; display: flex; flex-direction: column; gap: 6px; }
.hm-tl__dot {
  width: 40px; height: 40px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--bg2);
  box-shadow: inset 0 0 0 1.5px var(--glass-border);
  color: var(--ink);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease-forward);
}
.hm-tl__dot .ft-icon { width: 18px; height: 18px; }
.hm-tl h3 { margin: 0; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; line-height: 1.25; }
.hm-tl p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ink-3); }
.hm-tl.is-lit .hm-tl__dot { background-color: var(--cta-bg); color: var(--cta-ink); transform: scale(1.06); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 10%, transparent); }
.hm-tl--next .hm-tl__dot { background-color: var(--bg2); color: var(--ink-2); box-shadow: none; outline: 1.5px dashed var(--ink-3); outline-offset: -1.5px; }
.hm-tl--next.is-lit .hm-tl__dot { background-color: var(--bg2); color: var(--ink); transform: none; box-shadow: none; }
@media (max-width: 760px) {
  .hm-timeline__line { display: none; }
  .hm-timeline__list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hm-tl { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .hm-tl__dot { grid-row: span 2; margin: 0; }
  /* Sur mobile, chaque étape se relie à la suivante */
  .hm-tl:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px; top: 44px; bottom: -20px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
    transition: background-color .4s;
  }
  .hm-tl.is-lit:not(:last-child)::before { background: var(--ink-3); }
}

/* ==========================================================================
   8. PREMIUM
   ========================================================================== */
.hm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 24px); align-items: stretch; }
@media (max-width: 860px) { .hm-plans { grid-template-columns: minmax(0, 1fr); } }
.hm-plan { display: flex; flex-direction: column; gap: 20px; }
.hm-plan__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hm-plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hm-plan__badge .ft-icon { width: 14px; height: 14px; }
.hm-plan__badge--gold { color: var(--gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
.hm-plan__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.hm-plan--premium .hm-plan__name { color: var(--gold); }
.hm-plan__sub { margin: 0; color: var(--ink-3); }
.hm-plan--premium {
  background: linear-gradient(165deg, color-mix(in srgb, var(--gold) 20%, transparent) 0%, var(--glass) 55%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 65%, transparent), inset 0 1px 0 rgba(255,255,255,.2), 0 40px 90px -40px rgba(240,201,84,.55);
}
.hm-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hm-plan__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.hm-plan__list .ft-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--success); }
.hm-plan__list li.is-mode .ft-icon { color: var(--m); }
.hm-plan__list--gold .ft-icon { color: var(--gold); }
.hm-plan__cta { margin-top: auto; align-self: stretch; cursor: default; }

/* Quotas de la semaine */
.hm-quota { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.hm-quota__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.hm-quota--free .hm-quota__row { grid-template-columns: 76px minmax(0, 1fr); }
.hm-quota__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; letter-spacing: .02em; color: var(--m); }
.hm-quota__pips { display: flex; gap: 7px; }
.hm-quota__pips i {
  width: 24px; height: 24px;
  border-radius: 8px;
  background-color: var(--m);
  box-shadow: 0 6px 16px -8px var(--m), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .4s var(--ease-forward), background-color .35s, box-shadow .35s;
}
.hm-quota__pips i.is-used { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--ring-off); transform: scale(.8); }
/* Recharge du lundi : les pastilles reviennent une par une */
.hm-quota.is-refill .hm-quota__pips i:nth-child(2) { transition-delay: .08s; }
.hm-quota.is-refill .hm-quota__pips i:nth-child(3) { transition-delay: .16s; }
.hm-quota.is-refill .hm-quota__pips i:nth-child(4) { transition-delay: .24s; }
.hm-quota__left { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.hm-quota__inf { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.hm-quota__inf .ft-icon { width: 22px; height: 22px; color: var(--m); }
.hm-quota__reset { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--ink-3); transition: color .3s; }
.hm-quota__reset .ft-icon { width: 15px; height: 15px; }
.hm-quota__reset.is-flash { color: var(--gold); }

/* ==========================================================================
   9. INSTALLER
   ========================================================================== */
.hm-install { overflow-x: clip; }
.hm-install__ring { position: absolute; right: -14%; top: 4%; width: min(72vw, 640px); aspect-ratio: 1; opacity: .16; pointer-events: none; z-index: -1; }
.hm-steps { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .hm-steps { grid-template-columns: minmax(0, 1fr); } }
.hm-step { display: flex; flex-direction: column; gap: 10px; }
.hm-step__num { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--ink-3); }
@supports (-webkit-text-stroke: 1px black) {
  .hm-step__num { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
}
.hm-step__icon {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.hm-step__icon .ft-icon { width: 22px; height: 22px; }
.hm-step:nth-child(1) .hm-step__icon { color: var(--amrap); }
.hm-step:nth-child(2) .hm-step__icon { color: var(--emom); }
.hm-step:nth-child(3) .hm-step__icon { color: var(--mix); }
.hm-install__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.hm-btn-xl { --h: 64px; padding: 0 34px; font-size: 1.1rem; }
.hm-btn-xl .ft-icon { width: 22px; height: 22px; }
.hm-install__skip { white-space: normal; text-align: left; line-height: 1.3; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.hm-iphone {
  margin-top: clamp(36px, 5vw, 56px);
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: translate .35s var(--ease-forward);
}
.hm-iphone:hover { translate: 0 -3px; }
.hm-iphone__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.hm-iphone__icon .ft-icon { width: 24px; height: 24px; }
.hm-iphone__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-iphone__text strong { font-weight: 800; font-size: 1.05rem; }
.hm-iphone__text span { font-size: .92rem; color: var(--ink-3); }
.hm-iphone__go .ft-icon { width: 20px; height: 20px; transition: transform .35s var(--ease-forward); }
.hm-iphone:hover .hm-iphone__go .ft-icon { transform: translateX(4px); }
