/* ==========================================================================
   Flex Timer · landing — pages de mode (amrap.html, basic.html, emom.html,
   tabata.html, mix.html). Toute la page est posée sur la scène du mode
   (<body data-page-stage="…">) : on n'utilise QUE les tokens de site.css,
   pour que TABATA passe tout seul en texte noir.
   Préfixe mp- (mode page). Mobile d'abord (≈ 380 px), rien ne déborde.
   ========================================================================== */

.mp-main { position: relative; display: block; }

/* ---------- En-tête de section ---------- */
.mp-head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; margin-bottom: clamp(28px, 5vw, 56px); }
.mp-head .ft-h2 { overflow-wrap: anywhere; }

/* ==========================================================================
   1. HÉRO
   ========================================================================== */
.mp-hero {
  position: relative;
  padding-block: clamp(12px, 3vw, 32px) clamp(56px, 9vw, 120px);
  overflow: hidden;       /* l'anneau géant ne crée jamais de défilement horizontal */
  overflow: clip;
}
.mp-hero__deco {
  position: absolute;
  z-index: -1;
  top: 64%;
  left: 50%;
  width: min(150vw, 1100px);
  aspect-ratio: 1;
  translate: -50% -50%;   /* `translate` et non `transform` : la parallaxe de fx.js garde son transform */
  pointer-events: none;
  opacity: .42;
}
@media (min-width: 900px) { .mp-hero__deco { top: 50%; left: 74%; width: min(92vw, 1000px); } }
.mp-hero__spin { position: absolute; inset: 0; animation: mp-spin 120s linear infinite; }
.mp-hero__spin--inner { inset: 21%; opacity: .55; animation-duration: 80s; animation-direction: reverse; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .mp-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.mp-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }

.mp-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s, transform .35s var(--ease-forward);
}
.mp-back .ft-icon { width: 16px; height: 16px; }
.mp-back:hover { color: var(--ink); transform: translateX(-3px); }

.mp-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.mp-hero__icon { display: inline-grid; place-items: center; color: var(--ink); }
.mp-hero__icon .ft-icon { width: 22px; height: 22px; }

.mp-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(4.8rem, 24vw, 12rem);
  line-height: 1;          /* Anton déborde de sa boîte : jamais sous 1 sur un mot seul */
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 100%;
}
@media (min-width: 900px) { .mp-hero__title { font-size: clamp(7rem, 11.5vw, 12.5rem); } }
.mp-hero__pitch {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.mp-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-hero__chips .ft-chip { white-space: normal; }
.mp-chip-free { color: var(--ink); }

.mp-hero__phone { display: grid; place-items: center; min-width: 0; }
.mp-tilt { width: min(100%, 300px); }
@media (min-width: 900px) { .mp-tilt { width: min(100%, 340px); } }
.mp-tilt .ft-phone { width: 100%; }

@media (max-width: 380px) {
  .mp-hero__cta .ft-btn { flex: 1 1 100%; }
}

/* ---------- Bandeau défilant ---------- */
.mp-band-wrap { overflow: hidden; overflow: clip; padding-block: 22px; }
.mp-band {
  width: 106%;
  margin-left: -3%;
  transform: rotate(-2deg);
  border-block: 1px solid var(--line);
  background: var(--glass);
  padding-block: 14px;
}
.mp-band__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: mp-marquee 38s linear infinite; }
.mp-band__word {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}
.mp-band__word.is-outline { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.mp-band__icon { width: 28px; height: 28px; color: var(--ink); opacity: .8; }
@keyframes mp-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   2. DÉMO
   ========================================================================== */
.mp-demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .mp-demo__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.mp-demo__phone { display: grid; place-items: center; min-width: 0; }
.mp-demo__device { width: min(100%, 320px); }
.mp-demo__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.mp-demo__status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; }
.mp-demo__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-demo__clock { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mp-demo__clock b { font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1.18; color: var(--ink); }
.mp-demo__clock small { font-family: var(--font-mono); font-size: .9rem; color: var(--ink-3); }
.mp-demo__speed { align-self: start; }
.mp-demo__now { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); min-height: 1.55em; }
.mp-demo__ctrl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

.mp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-legend li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.45;
  opacity: .74;
  transition: opacity .4s ease, transform .5s var(--ease-forward), box-shadow .4s ease, color .4s ease;
}
.mp-legend li.is-active { opacity: 1; color: var(--ink); transform: translateX(6px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 16px 40px -24px rgba(0,0,0,.6); }
.mp-legend__icon { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--ink); }
.mp-legend__icon .ft-icon { width: 20px; height: 20px; }
.mp-legend li.is-active .mp-legend__icon { background: var(--ink); color: var(--cta-ink); box-shadow: none; }
.mp-demo__hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .85rem; line-height: 1.5; color: var(--ink-3); }
.mp-demo__hint .ft-icon { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Écran de séance recréé (unités du téléphone : cqw) ---------- */
.mp-run {
  /* Encre claire (textMode 'light') ; tokens locaux, indépendants de la page */
  --t1: #FFFFFF; --t3: rgba(255,255,255,.70); --tm: rgba(255,255,255,.52);
  --tinv: #0A0A0A;
  --cbg: rgba(255,255,255,.14); --cbd: rgba(255,255,255,.22); --cdone: rgba(255,255,255,.38);
  --ron: #FFFFFF; --roff: rgba(255,255,255,.22);
  --notch: rgba(10,10,10,.55);      /* trackNotch : l'inverse du texte */
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 10.5cqw 5.6cqw 0;
  color: var(--t1);
  font-family: var(--font-sans);
  isolation: isolate;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.mp-run[data-ink="dark"] {
  --t1: #0A0A0A; --t3: rgba(10,10,10,.62); --tm: rgba(10,10,10,.52);
  --tinv: #FFFFFF;
  --cbg: rgba(10,10,10,.08); --cbd: rgba(10,10,10,.14); --cdone: rgba(10,10,10,.35);
  --ron: #0A0A0A; --roff: rgba(10,10,10,.22);
  --notch: rgba(255,255,255,.7);
}
.mp-run__bg, .mp-run__rest, .mp-run__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mp-run__bg { background: radial-gradient(140% 95% at 50% 0%, var(--b1) 0%, var(--b2) 46%, var(--b3) 100%); }
/* Teinte de repos (lib/phase-colors.js) : fondu de 700 ms, comme l'app */
.mp-run__rest { background: radial-gradient(140% 95% at 50% 0%, var(--r1) 0%, var(--r2) 46%, var(--r3) 100%); opacity: 0; transition: opacity 700ms var(--ease-impact); }
.mp-run.is-rest .mp-run__rest { opacity: 1; }
.mp-run__veil { background: rgba(0,0,0,.18); opacity: 0; transition: opacity .3s ease; }
.mp-run.is-paused .mp-run__veil { opacity: 1; }

.mp-run__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2cqw; }
.mp-run__back { width: 12.2cqw; height: 12.2cqw; flex: none; border-radius: 99px; display: grid; place-items: center; background: var(--cbg); box-shadow: inset 0 0 0 1px var(--cbd); color: var(--t1); }
.mp-run__back .ft-icon { width: 5.4cqw; height: 5.4cqw; }
.mp-run__mid { display: flex; flex-direction: column; align-items: center; padding-top: 1cqw; min-width: 0; }
.mp-run__name { font-weight: 600; font-size: 2.8cqw; letter-spacing: .3em; color: var(--t3); margin-bottom: 1cqw; }
.mp-run__status { display: flex; align-items: center; gap: 1.7cqw; font-weight: 800; font-size: 5.4cqw; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.mp-run__dot { width: 1.2cqw; height: 1.2cqw; border-radius: 99px; background: var(--t1); animation: mp-dot 1s ease-in-out infinite; }
.mp-run.is-paused .mp-run__dot { animation: none; opacity: .5; }
@keyframes mp-dot { 50% { transform: scale(1.35); opacity: .45; } }
.mp-run__round { display: flex; flex-direction: column; align-items: flex-end; padding-top: 1cqw; flex: none; min-width: 12.2cqw; }
.mp-run__round b { font-weight: 600; font-size: 2.8cqw; letter-spacing: .25em; color: var(--t3); margin-bottom: 1cqw; }
.mp-run__round span { font-family: var(--font-mono); font-weight: 800; font-size: 5.4cqw; line-height: 1.15; white-space: nowrap; }

.mp-run__track { position: relative; height: .9cqw; min-height: 3px; margin-top: 4.4cqw; border-radius: 99px; background: var(--roff); overflow: hidden; }
.mp-run__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: var(--t1); }
.mp-run__notch { position: absolute; top: 0; bottom: 0; width: .56cqw; min-width: 2px; margin-left: -.28cqw; background: var(--notch); }

.mp-run__center { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4cqw; }
.mp-run__block {
  display: inline-flex; align-items: center; gap: 1.8cqw;
  max-width: 100%;
  padding: 1.4cqw 3.4cqw;
  border-radius: 99px;
  background: var(--cbg); box-shadow: inset 0 0 0 1px var(--cbd);
  font-weight: 700; font-size: 2.6cqw; letter-spacing: .16em; color: var(--t1);
  white-space: nowrap;
}
.mp-run__block span { overflow: hidden; text-overflow: ellipsis; }
.mp-run__block i { width: 2.2cqw; height: 2.2cqw; flex: none; border-radius: 99px; background: var(--bc, var(--tm)); box-shadow: 0 0 0 .6cqw color-mix(in srgb, var(--bc, transparent) 30%, transparent); }
.mp-run__block.is-pop { animation: mp-pop .55s var(--ease-forward); }

.mp-run__ring { position: relative; width: 72cqw; --ring-on: var(--ron); --ring-off: var(--roff); }
.mp-run__ring .ft-tick { transition: stroke .12s linear; }
.mp-run__ringc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 13%; }
.mp-run__phase { max-width: 100%; font-weight: 700; font-size: 3cqw; letter-spacing: .34em; text-transform: uppercase; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-run__phase.is-long { font-size: 2.45cqw; letter-spacing: .2em; }
.mp-run__time {
  display: flex;
  font-family: var(--font-display);
  font-size: 18.5cqw;
  line-height: 1.18;
  color: var(--t1);
  margin: .6cqw 0 .2cqw;
}
/* Une case par chiffre : le temps ne tremble pas quand les chiffres changent. */
.mp-run__time i { font-style: normal; display: inline-block; width: .56em; text-align: center; }
.mp-run__time i.is-colon { width: .3em; }
.mp-run__label { font-weight: 600; font-size: 2.8cqw; letter-spacing: .3em; color: var(--t3); }
.mp-run.is-beep .mp-run__time { animation: mp-punch .42s var(--ease-forward); }
.mp-run.is-beep .mp-run__ring { animation: mp-flash .42s ease-out; }
@keyframes mp-punch { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes mp-flash { 0% { filter: none; } 30% { filter: drop-shadow(0 0 2.4cqw var(--t1)); } 100% { filter: none; } }

.mp-run__voice {
  display: inline-flex; align-items: center; gap: 2cqw;
  max-width: 100%;
  min-height: 9cqw;
  padding: 1.6cqw 3.8cqw 1.6cqw 2.2cqw;
  border-radius: 5cqw;
  background: var(--cbg); box-shadow: inset 0 0 0 1px var(--cbd);
  font-weight: 600; font-size: 3.1cqw; line-height: 1.3; color: var(--t1);
}
.mp-run__vicon { width: 5.6cqw; height: 5.6cqw; flex: none; border-radius: 99px; display: grid; place-items: center; background: var(--t1); color: var(--tinv); }
.mp-run__vicon .ft-icon { width: 3.4cqw; height: 3.4cqw; }
/* Une phrase longue (« Bloc 1 sur 3 : Échauffement… ») passe sur deux lignes, jamais coupée. */
.mp-run__voice [data-r="vtext"] { min-width: 0; overflow-wrap: anywhere; }
.mp-run__voice b { display: inline-block; min-width: 3.2cqw; text-align: center; font-family: var(--font-mono); opacity: .45; transition: opacity .15s, transform .25s var(--ease-forward); }
.mp-run__voice b.on { opacity: 1; transform: scale(1.3); }
.mp-run__voice em { font-style: normal; opacity: .4; margin-inline: .6cqw; }
.mp-run__voice.is-pop { animation: mp-pop .5s var(--ease-forward); }
@keyframes mp-pop { 0% { transform: scale(.92); opacity: .5; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); } }

.mp-run__deroule { display: flex; flex-direction: column; align-items: center; gap: 2.6cqw; width: 100%; }
.mp-run__deroule > b { font-weight: 700; font-size: 2.5cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--tm); }
.mp-run__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.7cqw; max-width: 100%; }
.mp-run__pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2cqw;
  min-width: 10.5cqw;
  padding: 1.5cqw 3.1cqw;
  border-radius: 99px;
  background: var(--cbg); box-shadow: inset 0 0 0 1px var(--cbd);
  font-weight: 700; font-size: 2.6cqw; letter-spacing: .12em; color: var(--t1);
  transition: background .3s ease, color .3s ease;
}
.mp-run__pill i { width: 1.7cqw; height: 1.7cqw; border-radius: 99px; background: var(--bc, var(--tm)); }
.mp-run__pill.is-done { background: transparent; box-shadow: inset 0 0 0 1px var(--cdone); color: var(--cdone); }
.mp-run__pill.is-done i { opacity: .5; }
.mp-run__pill.is-current { background: var(--t1); color: var(--tinv); box-shadow: none; }
.mp-run__pill.is-current::after {
  content: ''; position: absolute; inset: -.6cqw; border-radius: inherit;
  box-shadow: 0 0 0 .5cqw var(--t1);
  animation: mp-ping .75s ease-out infinite;
}
.mp-run.is-paused .mp-run__pill.is-current::after { animation: none; opacity: 0; }
@keyframes mp-ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }

.mp-run__bottom { display: flex; align-items: center; justify-content: center; gap: 7.8cqw; padding: 3cqw 0 12cqw; }
.mp-run__side {
  display: flex; flex-direction: column; align-items: center; gap: 1.6cqw;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--t1);
  font: inherit;
}
.mp-run__side > span {
  width: 17.8cqw; height: 17.8cqw; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--cbg);
  box-shadow: inset 0 0 0 1.5px var(--cbd), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s var(--ease-forward);
}
.mp-run__side .ft-icon { width: 6.6cqw; height: 6.6cqw; }
.mp-run__side small { font-weight: 600; font-size: 2.5cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--tm); }
.mp-run__side:active > span { transform: scale(.9); }
/* Case vide gardée (BASIC en travail, dernier tour EMOM) : même place que dans l'app */
.mp-run__side.is-hidden { visibility: hidden; }
.mp-run__main { position: relative; width: 25.5cqw; height: 25.5cqw; flex: none; padding: 0; border: 0; background: none; cursor: pointer; margin-bottom: 4.1cqw; }
.mp-run__glow {
  position: absolute; inset: 0; border-radius: 99px;
  box-shadow: 0 0 9cqw 2.4cqw var(--m);
  opacity: .7;
  animation: mp-breathe 1.4s ease-in-out infinite alternate;
}
.mp-run.is-paused .mp-run__glow, .mp-run.is-done .mp-run__glow { animation: none; opacity: .15; }
@keyframes mp-breathe { to { opacity: 1; } }
.mp-run__btn {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 99px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #ECECEC 100%);
  color: #0A0A0A;
  transition: transform .3s var(--ease-forward);
}
.mp-run[data-ink="dark"] .mp-run__btn { background: linear-gradient(180deg, #1C1C1C 0%, #050505 100%); color: #FFFFFF; }
.mp-run__btn .ft-icon { width: 8.3cqw; height: 8.3cqw; }
.mp-run__btn em { font-style: normal; font-family: var(--font-display); font-size: 6.6cqw; line-height: 1.2; letter-spacing: .05em; }
.mp-run__main:active .mp-run__btn, .mp-run__main.is-press .mp-run__btn { transform: scale(.88); }
.mp-run button:focus-visible { outline: 2px solid var(--t1); outline-offset: 3px; border-radius: 99px; }

/* ==========================================================================
   3. COMMENT ÇA MARCHE
   ========================================================================== */
.mp-how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.mp-how__card { display: flex; flex-direction: column; gap: 12px; transition: transform .45s var(--ease-forward); }
.mp-how__card:hover { transform: translateY(-4px); }
.mp-how__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mp-how__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--cta-ink); }
.mp-how__icon .ft-icon { width: 26px; height: 26px; }
.mp-how__num { font-weight: 800; font-size: .85rem; letter-spacing: .12em; color: var(--ink-muted); }

/* ==========================================================================
   4. LE GUIDE
   ========================================================================== */
.mp-guide__list { display: flex; flex-direction: column; }
.mp-guide__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 32px;
  padding-block: clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.mp-guide__item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .mp-guide__item { grid-template-columns: 170px minmax(0, 1fr); } }
.mp-guide__num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 12vw, 7rem);
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  letter-spacing: -0.02em;
  transition: color .6s var(--ease-impact);
}
/* Le numéro se remplit quand son paragraphe passe au centre de l'écran (ScrollTrigger). */
.mp-guide__num.is-lit { color: var(--ink); }
.mp-guide__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mp-guide__title { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 4.2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); }
.mp-guide__text { margin: 0; font-size: clamp(1.08rem, 1.9vw, 1.35rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

.mp-sports { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.mp-sport {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.mp-sport__icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--ink); }
.mp-sport__icon .ft-icon { width: 21px; height: 21px; }
.mp-sport b { display: block; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.mp-sport span { display: block; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }

/* ==========================================================================
   5. POUR QUEL OBJECTIF
   ========================================================================== */
.mp-goals__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 720px) { .mp-goals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mp-goals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-goal { display: flex; flex-direction: column; gap: 14px; }
.mp-goal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mp-goal__head .ft-chip { white-space: normal; color: var(--ink); }
.mp-level { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mp-level__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.mp-level__bars i { width: 5px; border-radius: 2px; background: var(--ring-off); }
.mp-level__bars i:nth-child(1) { height: 6px; }
.mp-level__bars i:nth-child(2) { height: 10px; }
.mp-level__bars i:nth-child(3) { height: 14px; }
.mp-level__bars i.on { background: var(--ink); }
.mp-goal__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.12; text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink); }
.mp-goal__kicker { margin: 0; font-weight: 600; font-size: var(--fs-label); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }

/* Pastilles de réglage : même dessin que les stats de la carte d'accueil de l'app */
.mp-goal__tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-tile {
  flex: 1 1 0;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  text-align: center;
}
.mp-tile b { display: block; font-weight: 600; font-size: .6rem; letter-spacing: .18em; color: var(--ink-muted); margin-bottom: 2px; white-space: nowrap; }
.mp-tile span { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mp-tile small { font-family: var(--font-mono); font-size: .74rem; margin-left: 3px; color: var(--ink-3); }
.mp-tile--total { background: var(--ink); box-shadow: none; }
.mp-tile--total b { color: var(--cta-ink); opacity: .7; }
.mp-tile--total span { color: var(--cta-ink); }
.mp-goal__formula { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--ink-3); }

.mp-goal__mix { display: flex; flex-direction: column; gap: 12px; }
.mp-mixbar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.mp-mixbar i { min-width: 6px; background: var(--bc); }
.mp-mixbar i.is-rest { background: var(--ring-off); }
.mp-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-blocks li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  grid-template-areas: 'dot name dur' 'dot type dur';
  gap: 0 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.mp-blocks li > i { grid-area: dot; width: 10px; height: 10px; border-radius: 99px; background: var(--bc); }
.mp-blocks li > i.is-rest { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-muted); }
.mp-blocks__name { grid-area: name; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-blocks__type { grid-area: type; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.mp-blocks__dur { grid-area: dur; font-weight: 700; font-size: .95rem; color: var(--ink); }

.mp-goal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-goal__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); line-height: 1.45; }
.mp-goal__list .ft-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ink); }
.mp-goal__note { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.mp-goals__disclaimer { display: flex; gap: 10px; align-items: flex-start; max-width: 70ch; margin: 28px 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-3); }
.mp-goals__disclaimer .ft-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.mp-goals__foot { max-width: 70ch; margin: 10px 0 0 28px; font-size: .85rem; line-height: 1.5; color: var(--ink-muted); }

/* ==========================================================================
   6. RÉGLAGES
   ========================================================================== */
.mp-settings__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 860px) { .mp-settings__grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); } }

/* Roue façon sélecteur de l'app (WheelPicker) */
.mp-wheel { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mp-wheel__win {
  --row: 46px;
  position: relative;
  width: 100%;
  height: calc(var(--row) * 5);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.mp-wheel__rail {
  position: absolute; left: 8%; right: 8%; top: calc(var(--row) * 2); height: var(--row);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 0 30px -6px color-mix(in srgb, var(--mode) 60%, transparent);
  animation: mp-rail 2.4s ease-in-out infinite alternate;
}
@keyframes mp-rail { to { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 36px -4px color-mix(in srgb, var(--mode) 80%, transparent); } }
.mp-wheel__list {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  transform: translateY(calc((2 - var(--i, 0)) * var(--row)));
  transition: transform .6s var(--ease-forward);
}
.mp-wheel__list li {
  height: var(--row);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem;
  color: var(--ink);
  opacity: .42;
  transform: scale(.78);
  transition: opacity .4s ease, transform .5s var(--ease-forward), font-size .4s;
}
.mp-wheel__list li.near { opacity: .62; transform: scale(.9); }
.mp-wheel__list li.on { opacity: 1; transform: scale(1.35); }
.mp-wheel__unit { margin: 0; font-family: var(--font-mono); font-size: .9rem; color: var(--ink-3); }
.mp-wheel__hint { margin: 0; font-size: .82rem; color: var(--ink-muted); max-width: 26ch; }

.mp-settings__tiles { display: grid; gap: 12px; }
.mp-set {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
@media (min-width: 560px) { .mp-set { grid-template-columns: 150px minmax(0, 1fr); align-items: center; } }
.mp-set__pill {
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cta-ink);
  text-align: center;
}
.mp-set__pill b { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .2em; opacity: .7; margin-bottom: 2px; }
.mp-set__pill span { font-family: var(--font-mono); font-weight: 800; font-size: 1.5rem; }
.mp-set__pill small { font-family: var(--font-mono); font-size: .82rem; margin-left: 4px; opacity: .75; }
.mp-set__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-set__span { margin: 0; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

.mp-types { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-types li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--ink);
}
.mp-types li > span { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--bc); color: var(--black); }
.mp-types li.is-rest > span { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--ink); }
.mp-types .ft-icon { width: 20px; height: 20px; }

/* ==========================================================================
   7. DANS L'APP AUSSI
   ========================================================================== */
.mp-extras__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.mp-extra { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .mp-extra--wide { grid-column: span 2; } }
.mp-extra__icon { width: 48px; height: 48px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--ink); margin-bottom: 4px; }
.mp-extra__icon .ft-icon { width: 23px; height: 23px; }

.mp-medals { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mp-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.mp-medal__ring { position: relative; width: min(100%, 110px); aspect-ratio: 1; display: grid; place-items: center; }
.mp-medal__ring .ft-ring { position: absolute; inset: 0; }
.mp-medal__ring b { position: relative; font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.18; color: var(--ink); }
.mp-medal__name { font-weight: 800; color: var(--ink); }
.mp-medal__sub { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.mp-quota { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; }
.mp-quota p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.mp-quota .mp-extra__icon { margin: 0; }

/* ==========================================================================
   8. LES AUTRES MODES
   ========================================================================== */
.mp-others__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 620px) { .mp-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mp-others__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-other {
  /* Carte peinte à la couleur d'un AUTRE mode : ses propres tokens, comme .ft-app */
  --t1: #FFFFFF; --t2: rgba(255,255,255,.86); --t3: rgba(255,255,255,.66); --cbg: rgba(255,255,255,.16); --cbd: rgba(255,255,255,.24);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 250px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--t1);
  background: radial-gradient(140% 110% at 30% 0%, var(--b1) 0%, var(--b2) 55%, var(--c3) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 24px 60px -30px rgba(0,0,0,.7);
  transition: transform .45s var(--ease-forward), box-shadow .45s var(--ease-impact);
}
.mp-other[data-ink="dark"] { --t1: #0A0A0A; --t2: rgba(10,10,10,.82); --t3: rgba(10,10,10,.62); --cbg: rgba(10,10,10,.08); --cbd: rgba(10,10,10,.16); }
.mp-other::after {
  content: ''; position: absolute; z-index: -1; right: -30%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--cbd), inset 0 0 0 18px var(--cbg);
  opacity: .8;
  transition: transform .8s var(--ease-impact);
}
.mp-other:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 30px 70px -28px color-mix(in srgb, var(--m) 70%, transparent); }
.mp-other:hover::after { transform: scale(1.12) rotate(20deg); }
.mp-other:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.mp-other__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-other__icon { width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center; background: var(--cbg); box-shadow: inset 0 0 0 1px var(--cbd); color: var(--t1); }
.mp-other__icon .ft-icon { width: 26px; height: 26px; }
.mp-other__idx { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--t3); }
.mp-other__name { margin-top: auto; font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.02em; }
.mp-other__pitch { font-weight: 600; line-height: 1.4; color: var(--t2); }
.mp-other__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t1); }
.mp-other__go .ft-icon { width: 16px; height: 16px; transition: transform .35s var(--ease-forward); }
.mp-other:hover .mp-other__go .ft-icon { transform: translateX(4px); }

.mp-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; }
.mp-pager__link {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  text-decoration: none;
  color: var(--ink);
  transition: transform .35s var(--ease-forward);
}
.mp-pager__link:hover { transform: translateY(-2px); }
.mp-pager__link .ft-icon { width: 18px; height: 18px; flex: none; }
.mp-pager__link span { display: flex; flex-direction: column; min-width: 0; }
.mp-pager__link small { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.mp-pager__link b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: .01em; }
.mp-pager__link--next { margin-left: auto; text-align: right; }
.mp-pager__link--next span { align-items: flex-end; }

/* ==========================================================================
   9. BANDEAU FINAL
   ========================================================================== */
.mp-final__box {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(36px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: calc(var(--radius) + 10px);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 40px 90px -50px rgba(0,0,0,.8);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.mp-final__ring { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(130%, 760px); aspect-ratio: 1; translate: -50% -50%; opacity: .22; animation: mp-spin 140s linear infinite; pointer-events: none; }
.mp-final__title { overflow-wrap: anywhere; max-width: 14ch; }
.mp-final__box .ft-lead { max-width: 46ch; }
.mp-final__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.mp-final__box .ft-install-note { text-align: left; }

/* ==========================================================================
   Pauses et accessibilité
   ========================================================================== */
/* Hors écran : toutes les animations CSS du bloc s'arrêtent (data-mp-anim + IntersectionObserver). */
.is-off, .is-off * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .mp-hero__spin, .mp-final__ring, .mp-band__track, .mp-wheel__rail, .mp-run__glow, .mp-run__dot { animation: none !important; }
  .mp-legend li.is-active { transform: none; }
}
