/* ============================================================
   CalForm — style.css
   Fond noir bleuté · accent cyan · titres ultra bold majuscules
   ============================================================ */

:root {
  --bg:        #0a0f1a;
  --bg-soft:   #0d1320;
  --card:      #0e1422;
  --border:    #ffffff15;
  --border-2:  #ffffff22;
  --cyan:      #00d4ff;
  --cyan-dim:  #00d4ff33;
  --cyan-glow: #00d4ff66;
  --gold:      #ffc83d;
  --gold-dim:  #ffc83d2e;
  --gold-glow: #ffc83d66;
  --flame:     #ff7a18;
  --txt:       #eef4ff;
  --txt-dim:   #8a97ac;
  --txt-mute:  #56627a;
  --danger:    #ff4d5e;
  --radius:    20px;
  --radius-sm: 14px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  /* léger halo cyan en haut pour la teinte bleutée */
  background:
    radial-gradient(120% 60% at 50% -10%, #0e1830 0%, var(--bg) 55%) fixed;
}

.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
  color: var(--txt);
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--block { display: block; width: 100%; }
.btn--primary {
  background: var(--cyan);
  color: #022;
  box-shadow: 0 6px 24px var(--cyan-dim);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--txt);
}
.btn--danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ============================================================
   ONBOARDING
   ============================================================ */
/* ============================================================
   ONBOARDING — 10 écrans, fond blanc, slides horizontales
   ============================================================ */
.onb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0a0a0f;
  overflow: hidden;
  transition: background .35s var(--ease);
}
.onb__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.onb__back {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 2px solid #e8e8ec; border-radius: 50%;
  background: none; color: #0a0a0f;
  font-size: 18px; font-weight: 900; cursor: pointer;
  display: grid; place-items: center;
  font-family: inherit;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.onb__bar {
  flex: 1; height: 4px; border-radius: 999px; background: #ececf0;
  overflow: hidden;
  transition: background .35s var(--ease);
}
.onb__bar-fill {
  height: 100%; width: 0; border-radius: 999px; background: #0a0a0f;
  transition: width .35s var(--ease), background .35s var(--ease);
}
.onb__slides {
  flex: 1;
  display: flex;
  width: 100%;
  transition: transform .38s var(--ease);
}
.onb-slide {
  flex: 0 0 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px 30px;
  max-width: 480px;
  margin: 0 auto;
}
.onb-slide--center { text-align: center; align-items: center; }
.onb__title {
  font-size: 29px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.onb__title--big { font-size: 36px; margin-bottom: 14px; }
.onb__sub { font-size: 15px; font-weight: 600; color: #8b8b95; line-height: 1.45; }
.onb__input {
  width: 100%;
  border: none;
  border-bottom: 3px solid #0a0a0f;
  background: none;
  padding: 10px 4px 14px;
  text-align: center;
  font-family: inherit;
  font-size: 27px;
  font-weight: 900;
  color: #0a0a0f;
  outline: none;
}
.onb__input::placeholder { color: #c9c9d1; }
.onb__opts { display: flex; flex-direction: column; gap: 12px; }
.onb__opts--row { flex-direction: row; gap: 8px; }
.onb__q { font-size: 13px; font-weight: 800; color: #0a0a0f; margin: 20px 0 10px; }
.onb-slide .onb__q:first-of-type { margin-top: 0; }
.onb-pill {
  flex: 1; text-align: center;
  background: #fff; border: 2px solid #e8e8ec; border-radius: 12px;
  padding: 14px 4px; font-family: inherit; font-size: 15px; font-weight: 900; color: #0a0a0f;
  cursor: pointer;
}
.onb-pill.selected { border: 3px solid #0a0a0f; padding: 13px 3px; }
.onb-bodywrap { display: flex; justify-content: center; margin: 8px 0 14px; }

/* Scan de corps (onboarding, fond blanc) */
.onb-scan {
  width: 150px; height: 200px; margin: 0 auto 18px;
  border-radius: 20px; border: 2px dashed #d9d9df;
  display: grid; place-items: center; overflow: hidden; position: relative;
  background: #f5f5f8;
}
.onb-scan--has { border-style: solid; border-color: #0a0a0f; }
.onb-scan img { width: 100%; height: 100%; object-fit: cover; }
.onb-scan__ph { font-size: 68px; opacity: .5; }
.onb-scan__ok {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: #0a0a0f; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.onb-scan__clear {
  display: block; margin: 12px auto 0; background: none; border: none;
  color: #8b8b95; font-family: inherit; font-size: 13px; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.onb-privacy {
  margin-top: 22px; padding: 14px 16px;
  background: #f0f7f2; border: 1px solid #cfe8d6; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #2c5c3c; text-align: left;
}
.onb-privacy b { font-weight: 900; }
.onb-privacy--sm { margin-top: 14px; padding: 10px 14px; font-size: 11.5px; text-align: center; }

/* ---------- Overlay d'analyse du scan (thème CalForm sombre/cyan) ---------- */
.onb-analyze {
  position: absolute; inset: 0; z-index: 40;
  background:
    radial-gradient(120% 80% at 50% 12%, #0e1c2e 0%, var(--bg) 60%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
  text-align: center; overflow: hidden;
  animation: onbAnzIn .35s ease both;
}
.onb-analyze.hidden { display: none; }
@keyframes onbAnzIn { from { opacity: 0; } to { opacity: 1; } }

.onb-analyze__scanner {
  position: relative; width: 172px; height: 230px; border-radius: 22px;
  overflow: hidden; background: #060a12;
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 0 0 1px #00d4ff22, 0 22px 60px #00d4ff33, inset 0 0 40px #00121e;
}
.onb-analyze__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05) brightness(.82);
}
/* Grille cyan qui « scanne » la silhouette */
.onb-analyze__grid {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen;
  background-image:
    linear-gradient(#00d4ff44 1px, transparent 1px),
    linear-gradient(90deg, #00d4ff44 1px, transparent 1px);
  background-size: 22px 22px;
  animation: onbGrid 3.4s linear infinite;
}
@keyframes onbGrid { to { background-position: 0 22px, 22px 0; } }
/* Faisceau lumineux horizontal balayant de haut en bas */
.onb-analyze__beam {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, #00d4ff2e 55%, #00d4ffcc 88%, #dffaff 100%);
  box-shadow: 0 0 22px 6px var(--cyan-glow);
  border-bottom: 2px solid #eafcff;
  animation: onbBeam 1.9s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes onbBeam {
  0%   { transform: translateY(-45%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}
/* Anneau tournant (rappel du logo « anneau ») */
.onb-analyze__ring {
  position: absolute; top: 50%; left: 50%; width: 96px; height: 96px;
  margin: -48px 0 0 -48px; border-radius: 50%;
  border: 2px solid #00d4ff22; border-top-color: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan-glow));
  animation: onbSpin 1.1s linear infinite;
}
@keyframes onbSpin { to { transform: rotate(360deg); } }

.onb-analyze__pct {
  margin-top: 26px; font-size: 46px; font-weight: 900; letter-spacing: -.02em;
  color: var(--txt);
  text-shadow: 0 0 22px var(--cyan-dim);
  font-variant-numeric: tabular-nums;
}
.onb-analyze__pct span { font-size: 22px; color: var(--cyan); margin-left: 2px; }

.onb-analyze__track {
  margin-top: 14px; width: 200px; max-width: 72vw; height: 6px;
  border-radius: 999px; background: #ffffff12; overflow: hidden;
}
.onb-analyze__bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #7af0ff);
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width .35s ease;
}
.onb-analyze__step {
  margin-top: 18px; min-height: 20px; font-size: 14px; font-weight: 800;
  letter-spacing: .02em; color: var(--txt-dim);
  animation: onbStepPulse 1.4s ease-in-out infinite;
}
@keyframes onbStepPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.onb-analyze__priv {
  position: absolute; bottom: calc(26px + env(safe-area-inset-bottom));
  left: 0; right: 0; font-size: 11.5px; font-weight: 600; color: var(--txt-mute);
}
@media (prefers-reduced-motion: reduce) {
  .onb-analyze__grid, .onb-analyze__beam, .onb-analyze__ring, .onb-analyze__step { animation: none; }
}
/* note de confidentialité sur le bodygraph du profil (fond sombre) */
.body-privacy {
  margin-top: 14px; font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--txt-mute); text-align: center; max-width: 300px;
}
.onb-opt {
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  background: #fff;
  border: 2px solid #e8e8ec;
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  color: #0a0a0f;
  transition: border-color .15s var(--ease), transform .12s var(--ease);
}
.onb-opt:active { transform: scale(.98); }
.onb-opt.selected { border: 3px solid #0a0a0f; padding: 15px 17px; }
.onb-opt__emoji { font-size: 24px; line-height: 1; flex-shrink: 0; }
.onb-opt__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.onb-opt__name { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.onb-opt__desc { font-size: 12.5px; font-weight: 600; color: #8b8b95; }
.onb__days { text-align: center; margin-bottom: 34px; }
.onb__days #onb-days-val {
  display: block;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.onb__days-unit {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: #8b8b95;
}
.onb__slider {
  width: 100%;
  accent-color: #0a0a0f;
  height: 34px;
  cursor: pointer;
}
.onb__grad {
  background: linear-gradient(95deg, #00d4ff, #0066ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.onb__huge {
  font-size: clamp(44px, 13vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.onb__stats { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; width: 100%; }
.onb-stat {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  font-size: 15px; font-weight: 600; color: #3c3c46; line-height: 1.35;
  background: #f5f5f8; border-radius: 14px; padding: 14px 16px;
  animation: onbStatIn .5s var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 160ms + 120ms);
}
.onb-stat b { color: #0a0a0f; }
@keyframes onbStatIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onb__foot {
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.onb__cta {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 18px;
  background: #0a0a0f;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s var(--ease), transform .12s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.onb__cta:active { transform: scale(.985); }
.onb__cta:disabled { background: #d9d9df; color: #fff; cursor: default; }
/* écran 7 — manifeste plein écran noir : le chrome s'inverse */
.onb-slide--dark { background: #000; }
.onb__manifesto {
  color: #fff;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.01em;
}
.onb__manifesto-sub { margin-top: 18px; font-size: 14px; font-weight: 600; color: #77777f; }
.onb--dark { background: #000; }
.onb--dark .onb__back { border-color: #2a2a30; color: #fff; }
.onb--dark .onb__bar { background: #222228; }
.onb--dark .onb__bar-fill { background: #fff; }
.onb--dark .onb__cta { background: #fff; color: #0a0a0f; }

.field { margin-top: 38px; }
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--txt-dim);
  margin-bottom: 10px;
}
.field__input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 17px;
  font-family: inherit;
  color: var(--txt);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: var(--txt-mute); }
.field__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Carrousel horizontal : accueil · arbre · profil ---------- */
#screen-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#screen-track::-webkit-scrollbar { display: none; }

#screen-track > .screen {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom));
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 18px;
}
.topbar--center { justify-content: center; }
.topbar__hello {
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--txt-dim);
}
.topbar__name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.streak {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
}
.streak__flame { font-size: 18px; filter: drop-shadow(0 0 6px var(--flame)); }
.streak__count { font-weight: 900; font-size: 16px; color: var(--flame); }

/* ---------- Cercle de progression ---------- */
.progress-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 10px auto 6px;
  width: 220px;
  height: 220px;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring__bg {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 12;
}
.progress-ring__fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 603;          /* 2πr, r=96 */
  stroke-dashoffset: 603;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
  transition: stroke-dashoffset 1s var(--ease);
}
.progress-ring__label {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.progress-ring__count {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
}
.progress-ring__total {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--txt-dim);
}

/* ---------- Labels de section ---------- */
.section-label {
  margin: 26px 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--txt-dim);
}

/* ---------- Card move en cours (dashboard) ---------- */
.current-card {
  position: relative;
  border-radius: var(--radius);
  padding: 24px 20px;
  background: linear-gradient(160deg, #0f2030, var(--card));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 14px 40px var(--cyan-dim);
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s var(--ease);
}
.current-card:active { transform: scale(.985); }
.current-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.current-card.is-done {
  border-color: var(--border);
  background: var(--card);
  box-shadow: none;
}
.current-card__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--cyan);
}
.current-card__name {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.current-card__muscles {
  margin-top: 8px;
  font-size: 13px;
  color: var(--txt-dim);
}
.current-card__cta {
  margin-top: 16px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--cyan);
}

/* ============================================================
   ACCUEIL (nouveau) — streak géant + MOVE DU JOUR
   ============================================================ */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
  gap: 18px;
}
/* espacement homogène : le gap gère tout, on neutralise les marges héritées */
#screen-home .home > * { margin-top: 0; margin-bottom: 0; }
.home__logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .34em;
  color: var(--txt-mute);
  text-transform: uppercase;
}
.home__logo--sm { letter-spacing: .22em; }

/* ---------- Ligues (Feature 3) ---------- */
.league-card {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; font-family: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.league-card:active { transform: scale(.985); }
.league-card.promo { border-color: #2be3ac55; box-shadow: 0 0 0 1px #2be3ac22; }
.league-card.releg { border-color: #ff4d5e66; box-shadow: 0 0 0 1px #ff4d5e22; }
.league-card__badge { width: 46px; flex-shrink: 0; }
.league-card__badge svg { display: block; width: 100%; }
.league-card__body { flex: 1; min-width: 0; }
.league-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.league-card__name { font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.league-card__pts { font-size: 12px; font-weight: 800; color: var(--txt-dim); }
.league-card__rank { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--txt-dim); }
.league-card.promo .league-card__zone { color: #2be3ac; }
.league-card.releg .league-card__zone { color: var(--danger); }
.league-card__arrow { color: var(--txt-mute); font-size: 22px; font-weight: 700; }

.league-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.league-hero__badge { width: 96px; }
.league-hero__badge svg { display: block; width: 100%; }
.league-hero__sub { font-size: 12px; font-weight: 700; color: var(--txt-dim); }

.lg-list { display: flex; flex-direction: column; gap: 4px; }
.lg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid transparent;
}
.lg-row__pos { width: 22px; text-align: center; font-size: 13px; font-weight: 900; color: var(--txt-mute); }
.lg-row__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row__name b { color: var(--cyan); }
.lg-row__pts { font-size: 14px; font-weight: 900; color: var(--txt-dim); }
.lg-row.me { border-color: var(--cyan); background: var(--cyan-dim); }
.lg-row.promo .lg-row__pos { color: #2be3ac; }
.lg-row.releg .lg-row__pos { color: var(--danger); }
.lg-sep {
  font-size: 10px; font-weight: 900; letter-spacing: .18em; text-align: center;
  padding: 6px 0 4px;
}
.lg-sep.promo { color: #2be3ac; border-top: 1px dashed #2be3ac66; }
.lg-sep.releg { color: var(--danger); border-top: 1px dashed #ff4d5e66; }

.lgres {
  position: fixed; inset: 0; z-index: 68;
  background: rgba(4, 7, 13, .96); display: grid; place-items: center;
  padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
  animation: detailIn .3s var(--ease);
}
.lgres__inner { max-width: 380px; width: 100%; text-align: center; }
.lgres__emoji { font-size: 60px; animation: nodeIn .5s var(--ease); }
.lgres__title { font-size: 34px; font-weight: 900; letter-spacing: .02em; margin-top: 8px; }
.lgres__title.promo { color: #2be3ac; }
.lgres__title.releg { color: var(--danger); }
.lgres__title.stay { color: var(--cyan); }
.lgres__badge { width: 130px; margin: 18px auto 8px; }
.lgres__badge svg { display: block; width: 100%; }
.lgres__sub { font-size: 16px; font-weight: 700; color: var(--txt); }
.lgres__rank { font-size: 13px; color: var(--txt-dim); margin-top: 6px; margin-bottom: 30px; }

/* ---------- Bodygraph (carte musculaire) ---------- */
.bodygraph { display: flex; flex-direction: column; align-items: center; }
.bodyfigs { display: flex; gap: 20px; justify-content: center; }
.bodyfig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bodyfig svg { width: 120px; height: 188px; display: block; }
.bodyfig__lbl { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--txt-mute); }
.body-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  margin-top: 16px;
}
.body-legend__it { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--txt-dim); }
.body-legend__it i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* dans l'onboarding (fond blanc) */
.onb-slide .body-legend__it { color: #3c3c46; }

/* ---------- Rangs : carte profil + échelle ---------- */
.rankcard {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-family: inherit; color: inherit; cursor: pointer; text-align: left;
  margin: 18px 0 6px;
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.rankcard:active { transform: scale(.985); }
.rankcard__badge { width: 64px; flex-shrink: 0; }
.rankcard__badge svg { display: block; width: 100%; }
.rankcard__body { flex: 1; min-width: 0; }
.rankcard__top { display: flex; justify-content: space-between; align-items: baseline; }
.rankcard__name { font-size: 16px; font-weight: 900; letter-spacing: .1em; }
.rankcard__xp { font-size: 12px; font-weight: 800; color: var(--txt-dim); }
.rankcard__bar { height: 6px; border-radius: 999px; background: #ffffff14; margin-top: 9px; overflow: hidden; }
.rankcard__fill { height: 100%; border-radius: 999px; transition: width .5s var(--ease); }
.rankcard__next { margin-top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-mute); }

.ranks-spacer { width: 44px; }
.ranks-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  animation: cardIn .4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.rank-row__badge { width: 62px; flex-shrink: 0; }
.rank-row__badge svg { display: block; width: 100%; }
.rank-row__body { flex: 1; min-width: 0; }
.rank-row__name { font-size: 15px; font-weight: 900; letter-spacing: .1em; }
.rank-row__sub { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--txt-dim); }
.rank-row__tag {
  font-size: 9px; font-weight: 900; letter-spacing: .12em;
  color: #022; background: var(--cyan); border-radius: 999px; padding: 4px 9px;
}
.rank-row.current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-dim), 0 8px 26px var(--cyan-dim); }
.rank-row.locked { opacity: .55; }
.rank-row.locked .rank-row__badge { filter: grayscale(.55); }

/* Logo « anneau » (dégradé cyan→bleu, ouvert à droite) */
.logo-ring { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.home__logo { display: inline-flex; align-items: center; gap: 7px; }
.celebration__logo { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pub__logo { display: flex; align-items: center; justify-content: center; gap: 9px; }

/* Barre du haut : série à gauche, logo à droite */
.home__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.streak-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.streak-chip:active { transform: scale(.94); }
.flame-mini {
  width: 22px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(255, 122, 24, .7));
  animation: flicker 1.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.streak-chip__num { font-size: 18px; font-weight: 900; color: #fff; }

/* Quête du jour — hero de l'accueil */
.quest {
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: linear-gradient(160deg, #0f2030, var(--card));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 16px 44px var(--cyan-dim);
  position: relative;
  overflow: hidden;
  animation: mdjIn .5s var(--ease) backwards;
}
.quest::after {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: .35; pointer-events: none;
}
.quest__label { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--cyan); }
.quest__row { display: flex; align-items: center; gap: 14px; margin: 12px 0 16px; }
.quest__icon { font-size: 40px; line-height: 1; flex-shrink: 0; }
.quest__title { font-size: 22px; font-weight: 900; letter-spacing: .01em; line-height: 1.12; }
.quest__bar { height: 12px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.quest__bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #7af0ff);
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width .6s var(--ease);
}
.quest__meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--txt-dim); }
.quest__reward { color: var(--cyan); }
.quest--done .quest__bar-fill { background: linear-gradient(90deg, #2bd66e, #7af0ff); }
.quest--celebrate { animation: questPop .6s var(--ease); }
@keyframes questPop { 0% { transform: scale(1); } 30% { transform: scale(1.025); } 100% { transform: scale(1); } }

/* Bloc streak dominant */
.home__streak {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flame-icon {
  width: 96px;
  height: 110px;
  filter: drop-shadow(0 0 22px rgba(255, 122, 24, .75));
  transform-origin: 50% 90%;
  animation: flicker 1.8s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1.5deg); }
  35%      { transform: scale(1.06, 1.1) rotate(1.5deg); }
  65%      { transform: scale(.97, 1.04) rotate(-.5deg); }
}
.home__streak-num {
  font-size: clamp(72px, 24vw, 104px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
  margin-top: 4px;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, .12);
}
.home__streak-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--cyan);
}

/* Photo de la dernière validation (preuve visuelle) */
.home-photo {
  position: relative;
  width: 100%;
  min-height: 42vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  margin-bottom: 22px;
  background: var(--card);
}
.home-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-photo__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  text-align: left;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 14, .9));
}
.home-photo--empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--cyan-dim);
}
.home-photo__placeholder {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--txt-dim);
  text-transform: uppercase;
  padding: 24px;
}

/* Card MOVE DU JOUR */
.mdj {
  width: 100%;
  border-radius: var(--radius);
  padding: 26px 22px;
  background: linear-gradient(160deg, #0f2030, var(--card));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 16px 44px var(--cyan-dim);
  position: relative;
  overflow: hidden;
}
.mdj::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.mdj__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--cyan);
}
.mdj__name {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.mdj__btn { margin-top: 22px; }
.mdj__sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--txt-dim);
}
.mdj.is-done {
  border-color: var(--border);
  background: var(--card);
  box-shadow: none;
}
.mdj.is-done::after { display: none; }

/* MOVE DU JOUR version PETITE WIN (dorée) */
.mdj--bonus {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1c1503, var(--card));
  box-shadow: 0 0 0 1px var(--gold-dim), 0 16px 44px var(--gold-dim);
}
.mdj--bonus::after { background: radial-gradient(circle, var(--gold-glow), transparent 70%); }
.mdj--bonus .mdj__tag { color: var(--gold); }
.mdj--bonus .mdj__btn { background: var(--gold); color: #3a2600; box-shadow: 0 6px 24px var(--gold-dim); }

.home__context {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--txt-mute);
}

/* ============================================================
   ARBRE
   ============================================================ */
/* ---------- Parcours en serpentin (style « journey ») ---------- */
#screen-tree {
  background:
    radial-gradient(120% 34% at 22% 4%, #101d33 0%, transparent 62%),
    radial-gradient(110% 30% at 82% 42%, #0d1a2c 0%, transparent 60%),
    radial-gradient(120% 30% at 18% 82%, #0e1626 0%, transparent 62%);
}
.tree { position: relative; }
.path { position: relative; width: 100%; margin: 0 auto; }

.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* faisceaux de l'arbre ramifié */
.tree-edge { stroke-width: 4; stroke-linecap: round; }
.tree-edge.lit { stroke-width: 5; }
.tree-edge-glow { stroke-width: 12; stroke-linecap: round; opacity: .22; filter: blur(3px); }

/* pentagones : START + branches */
.path-cat {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  z-index: 1;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--bc) 35%, transparent));
}
.path-cat svg { width: 100%; height: 100%; display: block; }
.path-cat span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding-top: 4px;
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
  color: var(--bc);
}

.path-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--border-2), 0 6px 16px #0007;
  cursor: pointer; z-index: 1;
  font-family: inherit;
  transition: transform .15s var(--ease);
  animation: nodeIn .4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}
.path-node:active { transform: translate(-50%, -50%) scale(.9); }
.path-node__ic { font-size: 22px; line-height: 1; }
/* nom de la figure dans le cercle */
.path-node__name {
  font-size: 7.5px; font-weight: 800; letter-spacing: .01em;
  text-transform: uppercase; line-height: 1.2; text-align: center;
  color: var(--txt); padding: 0 7px;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
.path-node.current .path-node__name,
.path-node.progress .path-node__name { font-size: 8.5px; }
.path-node.done .path-node__name { color: #071018; }
/* anneau de progression autour d'une figure en cours (0–100%) */
.path-node__ring {
  position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--bc, var(--cyan)) calc(var(--pct, 0) * 1%), #ffffff14 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
/* numéro de l'étape, en bas du nœud */
.path-node__num {
  position: absolute;
  bottom: -8px; left: 50%; transform: translateX(-50%);
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--border-2);
  color: var(--txt-mute);
  font-size: 10px; font-weight: 900;
  display: grid; place-items: center;
  line-height: 1;
}
@keyframes nodeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  to   { opacity: 1; }
}

/* validé — brillant aux couleurs de sa branche */
.path-node.done {
  background: var(--bc, var(--cyan));
  box-shadow: 0 0 18px -2px var(--bc, var(--cyan)), 0 6px 16px #0007;
}
.path-node.done .path-node__num { border-color: var(--bc, var(--cyan)); color: var(--bc, var(--cyan)); }
/* disponible — plus grand + halo (couleur de branche) qui respire */
.path-node.current {
  width: 72px; height: 72px;
  box-shadow: inset 0 0 0 3px var(--bc, var(--cyan));
  animation: nodeIn .4s var(--ease) backwards, nodePulse 1.8s var(--ease) infinite;
}
.path-node.current .path-node__ic { font-size: 30px; }
.path-node.current .path-node__num,
.path-node.progress .path-node__num { border-color: var(--bc, var(--cyan)); color: var(--bc, var(--cyan)); }
@keyframes nodePulse {
  0%, 100% { box-shadow: inset 0 0 0 3px var(--bc, var(--cyan)), 0 0 0 0 var(--bc, var(--cyan)); }
  50%      { box-shadow: inset 0 0 0 3px var(--bc, var(--cyan)), 0 0 0 12px transparent; }
}
/* figure en cours de maîtrise : plus grande, anneau de progression, pas de pulsation */
.path-node.progress {
  width: 72px; height: 72px;
  box-shadow: inset 0 0 0 2px #ffffff1e;
}
.path-node.progress .path-node__ic { font-size: 30px; }
/* verrouillé — gris foncé + cadenas */
.path-node.locked { background: var(--bg-soft); box-shadow: inset 0 0 0 2px var(--border); cursor: default; opacity: .65; }
.path-node.locked .path-node__ic { opacity: .55; font-size: 22px; }

/* petite win — étoile dorée au lieu d'un cercle */
.path-node.bonus {
  width: 50px; height: 50px;
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(160deg, #2a2010, #171207);
  box-shadow: none;
  filter: drop-shadow(0 0 6px var(--gold-dim));
}
.path-node.bonus .path-node__ic { font-size: 15px; color: var(--gold); transform: translateY(1px); }
.path-node.bonus.done .path-node__ic { color: #3a2600; }
.path-node.bonus.done {
  background: linear-gradient(160deg, #ffd968, var(--gold));
  filter: drop-shadow(0 0 10px var(--gold-glow));
}
.path-node.bonus.current {
  background: linear-gradient(160deg, #3a2d12, #211806);
  animation: nodeIn .4s var(--ease) backwards, starPulse 1.8s var(--ease) infinite;
}
.path-node.bonus.locked { background: #14141d; opacity: .6; filter: none; }
@keyframes starPulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--gold-dim)); transform: translate(-50%, -50%) scale(1); }
  50%      { filter: drop-shadow(0 0 14px var(--gold-glow)); transform: translate(-50%, -50%) scale(1.07); }
}

.path-label {
  position: absolute;
  transform: translateX(-50%);
  width: 92px; text-align: center;
  font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  line-height: 1.15; color: var(--txt-dim);
  z-index: 2; cursor: pointer;
  text-shadow: 0 2px 6px #000c;
}
.path-label.done, .path-label.current { color: var(--txt); }
.path-label.bonus { color: var(--gold); }
.path-label.locked { color: var(--txt-mute); cursor: default; }

/* puce « temps estimé » sous une figure disponible (Feature 5) */
.path-eta {
  position: absolute; transform: translateX(-50%);
  z-index: 2; pointer-events: none;
  padding: 3px 9px; border-radius: 999px;
  font-size: 9px; font-weight: 900; letter-spacing: .04em; white-space: nowrap;
  color: var(--bc, var(--cyan));
  background: #0a0f1acc;
  border: 1px solid color-mix(in srgb, var(--bc, var(--cyan)) 45%, transparent);
}

/* ============================================================
   FICHE MOVE (overlay)
   ============================================================ */
.detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: detailIn .3s var(--ease);
}
@keyframes detailIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* En-tête : retour + onglets pill (toujours visibles) */
.detail__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid var(--border);
}
.detail__back {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--txt);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.detail__back:active { transform: scale(.92); }

.detail__tabs {
  flex: 1;
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 11px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-dim);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tab.active {
  background: var(--cyan);
  color: #022;
  box-shadow: 0 4px 16px var(--cyan-dim);
}

/* Corps : zone qui contient les panneaux d'onglet */
.detail__body {
  flex: 1;
  min-height: 0;
  position: relative;
}
.tab-panel { display: none; height: 100%; }
.tab-panel.active { display: block; }

/* Onglet APPRENDRE : scrollable */
.tab-panel--learn {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-panel--learn.active {
  display: block;
  padding: 22px 22px calc(40px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}

/* Onglet VALIDER : caméra plein écran, aucun scroll */
.tab-panel--cam.active {
  display: flex;
  flex-direction: column;
}
.cam-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cam-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam-stage__empty {
  color: var(--txt-mute);
  font-weight: 800;
  letter-spacing: .14em;
}
.cam-fallback {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.cam-fallback__txt { color: var(--txt-dim); font-weight: 700; letter-spacing: .08em; }

.cam-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 22px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.cam-bar--col { flex-direction: column; }
/* bouton obturateur rond */
.cap-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cyan);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 3px var(--cyan), 0 0 26px var(--cyan-glow);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.cap-btn:active { transform: scale(.9); }
.cam-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}
.cam-actions .btn { flex: 1; }

.detail__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--cyan);
}
.detail__name {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.02;
}
.detail__muscles {
  margin-top: 14px;
  font-size: 14px;
  color: var(--txt-dim);
}
.detail__muscles b { color: var(--txt); font-weight: 800; }
.detail__tag.gold { color: var(--gold); }
.detail__block { margin-top: 28px; }

/* Bloc progression de la figure (barre + % + critère de maîtrise) */
.detail__prog {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 15px;
}
.detail__prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.detail__prog-label { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--txt-dim); }
.detail__prog-pct { font-size: 20px; font-weight: 900; color: var(--cyan); }
.prog-bar { height: 8px; border-radius: 999px; background: #ffffff14; overflow: hidden; }
.prog-bar__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #7af0ff);
  transition: width .5s var(--ease);
}
.detail__prog-crit { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--txt); }
.detail__prog-sub { margin-top: 5px; font-size: 12px; color: var(--txt-mute); }

/* Décortiquer le mouvement : stades validables */
.stages { display: flex; flex-direction: column; gap: 8px; }
.stage-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: inherit; color: inherit;
}
.stage-row__dot {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  background: #ffffff12; color: var(--txt-mute);
}
.stage-row__body { flex: 1; min-width: 0; }
.stage-row__name { display: block; font-size: 14px; font-weight: 800; }
.stage-row__crit { display: block; margin-top: 2px; font-size: 12px; color: var(--txt-mute); }
.stage-row__go { flex-shrink: 0; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--cyan); }
.stage-row.done { border-color: var(--cyan-dim); }
.stage-row.done .stage-row__dot { background: var(--cyan); color: #022; }
.stage-row.done .stage-row__name { color: var(--cyan); }
.stage-row.next {
  border-color: var(--cyan); cursor: pointer;
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 8px 24px var(--cyan-dim);
}
.stage-row.next .stage-row__dot { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); }
.stage-row.next:active { transform: scale(.99); }
.stage-row.todo { opacity: .5; }
.stage-row[disabled] { cursor: default; }

/* Timeline photos (évolution de la figure) */
.ptimeline { margin-top: 14px; padding: 0 16px 6px; }
.ptimeline__title {
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  color: var(--txt-dim); margin-bottom: 10px;
}
.ptimeline__strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ptimeline__strip::-webkit-scrollbar { display: none; }
.ptl-item {
  flex: 0 0 auto; width: 72px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.ptl-item img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border-2); display: block;
}
.ptl-item__meta {
  display: block; margin-top: 5px;
  font-size: 9px; font-weight: 700; color: var(--txt-mute);
  text-align: center; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Lightbox plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4, 7, 13, .94);
  display: grid; place-items: center;
  padding: 40px 20px calc(20px + env(safe-area-inset-bottom));
  animation: detailIn .25s var(--ease);
}
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 14px; }
.lightbox__close {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #ffffff14; border: none; color: #fff;
  font-size: 18px; font-weight: 900; cursor: pointer;
}
/* section « Pourquoi ce move ? » des moves bonus */
.detail__why {
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 14px;
}
.detail__why .detail__block-title { color: var(--gold); }
.detail__block-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--txt-dim);
  margin-bottom: 10px;
}
.detail__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--txt);
}
.tips { display: flex; flex-direction: column; gap: 10px; }
.tip {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.tip__num {
  flex-shrink: 0;
  font-weight: 900;
  color: var(--cyan);
}
.tip__txt { font-size: 14px; line-height: 1.4; color: var(--txt-dim); }

.detail__cta { margin-top: 34px; }
.detail__state {
  margin-top: 34px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--txt-dim);
}
.detail__state.done { color: var(--cyan); border-color: var(--cyan); }
.cam-bar .detail__state { margin-top: 0; width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 480px;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  background: rgba(10, 15, 26, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--txt-mute);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nav-btn__icon { font-size: 20px; line-height: 1; }
.nav-btn__txt { font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.nav-btn.active { color: var(--cyan); }

/* ============================================================
   PROFIL
   ============================================================ */
.profile { text-align: center; padding-top: 10px; }
.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0f2030, var(--card));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 24px var(--cyan-dim);
  font-family: inherit;
  font-size: 38px;
  font-weight: 900;
  color: var(--cyan);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.avatar:active { transform: scale(.95); }
.avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.avatar__edit {
  position: absolute;
  right: 0; bottom: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: #022;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
}
.profile__name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile__level {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cyan);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 8px;
}
.stat__value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--txt-dim);
}

/* ============================================================
   MODALE
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 14, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__box {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 26px 22px;
  animation: pop .25s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.modal__text {
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}
.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

/* ---- Compte (profil) ---- */
.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 22px;
}
.account:empty { display: none; }
.account__label { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--txt-dim); }
.account__email { font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--txt); word-break: break-all; }
.account__act { padding: 11px 14px; font-size: 12px; flex-shrink: 0; }

/* ---- Visibilité profil (toggle public/privé) ---- */
.visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 22px 0 12px;
}
.visibility__label { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.visibility__hint { margin-top: 4px; font-size: 12px; color: var(--txt-dim); line-height: 1.3; }
.switch {
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  position: relative;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.switch.on { background: var(--cyan); border-color: var(--cyan); }
.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}
.switch.on .switch__knob { transform: translateX(22px); }

/* ---- Modale compte (auth) ---- */
.auth__box { position: relative; text-align: left; }
.auth__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--txt-dim);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.auth__title {
  font-size: 18px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px;
}
.auth__hint { font-size: 13px; color: var(--txt-dim); line-height: 1.45; margin-bottom: 14px; }
.auth__btn { margin-top: 12px; }
.auth__code {
  text-align: center;
  letter-spacing: .5em;
  font-size: 24px;
  font-weight: 800;
  padding-left: .5em; /* compense le letter-spacing pour centrer */
}
.auth__msg { margin-top: 12px; font-size: 13px; color: var(--danger); min-height: 1.1em; }
.auth__msg--ok { color: var(--cyan); }

/* ============================================================
   COMPTE À REBOURS CAPTURE
   ============================================================ */
.countdown {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 14, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.countdown__num {
  font-size: clamp(140px, 50vw, 240px);
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
}
.countdown__num.tick { animation: countTick 1s var(--ease); }
@keyframes countTick {
  0%   { opacity: 0; transform: scale(1.6); }
  20%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: .2; transform: scale(.85); }
}

/* ============================================================
   CÉLÉBRATION
   ============================================================ */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 14, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
.celebrate__inner { text-align: center; animation: celebPop .5s var(--ease); }
@keyframes celebPop {
  0%   { opacity: 0; transform: scale(.5); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.celebrate__check {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 900;
  color: #022;
  background: var(--cyan);
  box-shadow: 0 0 0 12px var(--cyan-dim), 0 0 50px var(--cyan-glow);
  animation: ring 1s var(--ease);
}
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 var(--cyan-glow), 0 0 50px var(--cyan-glow); }
  100% { box-shadow: 0 0 0 30px transparent, 0 0 50px var(--cyan-glow); }
}
.celebrate__txt {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---- Célébration PETITE WIN : dorée + confettis ---- */
.celebrate--bonus { overflow: hidden; }
.celebrate--bonus .celebrate__inner { position: relative; z-index: 2; }
.celebrate__check--gold {
  background: linear-gradient(160deg, #ffe07a, #ff9e00);
  color: #3a2600;
  box-shadow: 0 0 0 12px var(--gold-dim), 0 0 50px var(--gold-glow);
  animation: ringGold 1s var(--ease);
}
@keyframes ringGold {
  0%   { box-shadow: 0 0 0 0 var(--gold-glow), 0 0 50px var(--gold-glow); }
  100% { box-shadow: 0 0 0 30px transparent, 0 0 50px var(--gold-glow); }
}
.celebrate__txt--gold { color: var(--gold); }

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.confetti__piece {
  position: absolute;
  top: -12vh;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: .95;
  animation-name: confettiFall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(125vh) rotate(720deg); opacity: .85; }
}

/* ============================================================
   ACTION SHEET (menu photo de profil)
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: flex-end;
  background: rgba(2, 6, 14, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .2s var(--ease);
}
.sheet__box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sheetUp .25s var(--ease);
}
@keyframes sheetUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.sheet__opt {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  cursor: pointer;
}
.sheet__opt--cancel { color: var(--txt-dim); }

/* ============================================================
   ÉCRAN DE CÉLÉBRATION / PARTAGE
   ============================================================ */
.celebration {
  position: fixed;
  inset: 0;
  z-index: 75;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 60% at 50% 0%, #0e1830 0%, var(--bg) 55%);
  animation: fade .3s var(--ease);
}
.celebration__inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.celebration__logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--txt-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.celebration__card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 16px 50px var(--cyan-dim);
}
.celebration__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.celebration__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 50px 18px 16px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 14, .92));
}
.celebration__move {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  padding-right: 70px; /* place pour l'avatar */
}
.celebration__level {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--cyan);
}
.celebration__avatar {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cyan);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
}
.celebration__avatar img { width: 100%; height: 100%; object-fit: cover; }
.celebration__avatar--initials {
  background: #0e1422;
  color: var(--cyan);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
}
.celebration__validated {
  margin: 26px 0 22px;
  font-size: clamp(64px, 22vw, 92px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
}
.celebration__validated.pop { animation: validPop .6s var(--ease); }
@keyframes validPop {
  0%   { opacity: 0; transform: scale(.4); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.celebration__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

/* ============================================================
   PROFIL PUBLIC (/u/[username])
   ============================================================ */
.profile__share { margin-bottom: 12px; }

.pub {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: max(28px, env(safe-area-inset-top)) 22px calc(36px + env(safe-area-inset-bottom));
  text-align: center;
}
.pub__loading {
  display: grid;
  place-items: center;
  min-height: 70vh;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--txt-dim);
}
.pub__logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 26px;
}
.pub__notfound { display: flex; flex-direction: column; align-items: center; padding-top: 18vh; }
.pub__nf { color: var(--txt-dim); font-size: 15px; margin-bottom: 26px; }
.pub__nf b { color: var(--txt); }

.pub__avatar {
  width: 110px;
  height: 110px;
  font-size: 44px;
  cursor: default;
  margin-bottom: 14px;
}
.pub__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pub__name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pub__level {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cyan);
}
.pub-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; align-items: center; }
.pub-badges:empty { display: none; }
.pub-bbadge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 900; letter-spacing: .06em;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid;
}
.pub-bbadge.champion { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 22px var(--gold-dim); }
.pub-bbadge.competitor { color: #c9d3e0; border-color: #c9d3e055; background: #c9d3e012; }
.pub-bbadge__move { font-size: 11px; font-weight: 700; letter-spacing: .03em; opacity: .85; text-transform: none; }
.pub__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 30px;
}
.pub__section {
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--txt-dim);
  margin-bottom: 14px;
}
.pub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pub-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.pub-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-cell__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  line-height: 1.15;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 14, .92));
}
.pub__empty { color: var(--txt-mute); font-size: 14px; padding: 24px 0; }
.pub__join { margin-top: 30px; }

/* ============================================================
   ÉDITION PRÉNOM / BANNIÈRE MAJ / ANIMATIONS
   ============================================================ */
.profile__edit {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--txt-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.profile__edit:active { color: var(--cyan); }

.update-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--cyan);
  color: #022;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  box-shadow: 0 6px 24px var(--cyan-dim);
  animation: bannerDown .35s var(--ease);
}
@keyframes bannerDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.update-banner__btn {
  background: #022;
  color: var(--cyan);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
}

/* Apparition échelonnée des cellules du profil public */
.pub-cell {
  animation: cardIn .45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Entrée de la card MOVE DU JOUR */
.mdj { animation: mdjIn .5s var(--ease) backwards; }
@keyframes mdjIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Petit pop de l'icône de nav active */
.nav-btn.active .nav-btn__icon { animation: navPop .3s var(--ease); }
@keyframes navPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ============================================================
   GAMIFICATION — XP, badges, heatmap, chrono
   ============================================================ */
.xp {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; padding: 0;
  font-family: inherit; color: inherit; cursor: pointer; text-align: left;
  transition: transform .15s var(--ease);
}
.xp:active { transform: scale(.985); }
.xp__badge { width: 52px; flex-shrink: 0; }
.xp__badge svg { display: block; width: 100%; }
.xp__body { flex: 1; min-width: 0; }
.xp__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.xp__rank { font-size: 13px; font-weight: 900; letter-spacing: .14em; color: var(--cyan); }
.xp__value { font-size: 12px; font-weight: 700; color: var(--txt-dim); }
.xp__bar { height: 10px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.xp__bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #7af0ff);
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width .8s var(--ease);
}

.prof-section { text-align: left; margin-top: 26px; }
.prof-section__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--txt-dim); margin-bottom: 12px;
}
.prof-section__count { color: var(--cyan); }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 6px; opacity: .5;
  animation: cardIn .4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 30ms);
}
.badge--on { opacity: 1; border-color: var(--cyan); background: linear-gradient(160deg, #0f2030, var(--card)); }
.badge__icon { font-size: 26px; line-height: 1; }
.badge__name { font-size: 9px; font-weight: 800; letter-spacing: .03em; text-align: center; color: var(--txt-dim); }
.badge--on .badge__name { color: var(--txt); }

.heatmap { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.hm-col { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--border); flex-shrink: 0; }
.hm-cell.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan-dim); }
.hm-cell.future { opacity: .15; }
.freeze-caption { margin-top: 10px; font-size: 12px; color: var(--txt-dim); }

.celebration__xp {
  margin: -8px 0 20px;
  font-size: 20px; font-weight: 900; letter-spacing: .1em; color: var(--cyan);
  animation: validPop .6s var(--ease) .15s backwards;
}

/* Déblocage de badge */
.badgepop {
  position: fixed; inset: 0; z-index: 78; display: grid; place-items: center; padding: 24px;
  background: rgba(2, 6, 14, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
.badgepop__box {
  width: 100%; max-width: 360px; text-align: center;
  background: var(--card); border: 1px solid var(--cyan); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 0 0 1px var(--cyan-dim), 0 16px 50px var(--cyan-dim);
  animation: pop .3s var(--ease);
}
.badgepop__title { font-size: 13px; font-weight: 900; letter-spacing: .2em; color: var(--cyan); margin-bottom: 18px; }
.badgepop__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.badgepop__item { animation: celebPop .5s var(--ease) backwards; }
.badgepop__icon { font-size: 46px; line-height: 1; filter: drop-shadow(0 0 16px var(--cyan-glow)); }
.badgepop__name { margin-top: 8px; font-size: 18px; font-weight: 900; letter-spacing: .06em; }
.badgepop__desc { margin-top: 2px; font-size: 13px; color: var(--txt-dim); }

/* ============================================================
   MONTÉE DE RANG — célébration plein écran, thémée au rang gagné
   Variables injectées en JS : --rk1 --rk2 (dégradé) · --rkg (halo)
   ============================================================ */
.rankup {
  position: fixed; inset: 0; z-index: 82; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 26px calc(40px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 50% 42%, #0b1424 0%, #060a12 62%, #04060c 100%);
  animation: fade .3s var(--ease);
}
.rankup.hidden { display: none; }

/* Halo pulsant de la couleur du rang */
.rankup__aura {
  position: absolute; top: 42%; left: 50%; width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--rkg, #ffc83d55) 0%, transparent 42%);
  opacity: 0; animation: rkAura 2.6s ease-out forwards, rkAuraPulse 3.4s 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rkAura { from { opacity: 0; transform: translate(-50%,-50%) scale(.4); } to { opacity: .9; transform: translate(-50%,-50%) scale(1); } }
@keyframes rkAuraPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

/* Rayons de lumière tournants derrière le badge */
.rankup__rays {
  position: absolute; top: 42%; left: 50%; width: 200vmax; height: 200vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    var(--rkg, #ffc83d55) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%);
          mask: radial-gradient(circle, #000 0 30%, transparent 62%);
  opacity: 0; mix-blend-mode: screen;
  animation: rkRaysIn 1.4s ease-out .2s forwards, rkSpin 26s linear infinite;
  pointer-events: none;
}
@keyframes rkRaysIn { to { opacity: .5; } }
@keyframes rkSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.rankup__particles { position: absolute; inset: 0; pointer-events: none; }
.rk-part {
  position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 2px;
  opacity: 0; will-change: transform, opacity;
  animation: rkPart var(--dur, 1.5s) cubic-bezier(.15,.7,.3,1) var(--delay, 0s) forwards;
}
@keyframes rkPart {
  0%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--rot)) scale(.2); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--rot)) translateX(var(--dist)) scale(1); }
}

.rankup__inner {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.rankup__label {
  font-size: 13px; font-weight: 900; letter-spacing: .34em; color: var(--txt-dim);
  opacity: 0; animation: rkUp .6s var(--ease) .35s forwards;
}
.rankup__stage { position: relative; width: 220px; height: 210px; margin: 20px 0 6px; display: grid; place-items: center; }
.rankup__shock {
  position: absolute; top: 50%; left: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px;
  border-radius: 50%; border: 3px solid var(--rk1, #ffc83d); opacity: 0;
  animation: rkShock 1.1s ease-out .3s forwards;
}
.rankup__shock--2 { animation-delay: .5s; border-width: 2px; }
@keyframes rkShock {
  0%   { opacity: .8; transform: scale(.3); }
  100% { opacity: 0; transform: scale(2.4); }
}
.rankup__badge {
  width: 190px; height: 176px; position: relative;
  filter: drop-shadow(0 0 26px var(--rkg, #ffc83d66));
  animation: rkBadgeIn 1s cubic-bezier(.2,1.2,.3,1) .3s backwards, rkBadgeFloat 3.6s ease-in-out 1.3s infinite;
}
.rankup__badge svg { width: 100%; height: 100%; }
@keyframes rkBadgeIn {
  0%   { opacity: 0; transform: scale(.2) rotate(-45deg); }
  60%  { opacity: 1; transform: scale(1.14) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rkBadgeFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.rankup__name {
  font-size: clamp(40px, 15vw, 62px); font-weight: 900; letter-spacing: .02em; line-height: 1;
  background: linear-gradient(180deg, var(--rk1, #ffe289), var(--rk2, #d9a010));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px var(--rkg, #ffc83d66));
  opacity: 0; animation: rkName .7s cubic-bezier(.2,1,.3,1) .6s forwards;
}
@keyframes rkName { 0% { opacity: 0; transform: translateY(14px) scale(.85); } 100% { opacity: 1; transform: none; } }
.rankup__from {
  margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--txt-dim);
  opacity: 0; animation: rkUp .6s var(--ease) .95s forwards;
}
.rankup__from b { color: var(--rk1, #ffe289); }
.rankup__sub {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--txt-dim); max-width: 300px;
  opacity: 0; animation: rkUp .6s var(--ease) 1.1s forwards;
}
.rankup__cta {
  margin-top: 30px; min-width: 220px; padding: 16px 28px; border: none; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 900; letter-spacing: .1em; cursor: pointer;
  color: #05070d; background: linear-gradient(90deg, var(--rk1, #ffe289), var(--rk2, #d9a010));
  box-shadow: 0 10px 34px var(--rkg, #ffc83d66);
  opacity: 0; animation: rkUp .6s var(--ease) 1.35s forwards;
}
.rankup__cta:active { transform: scale(.97); }
@keyframes rkUp { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rankup__aura, .rankup__rays, .rankup__badge, .rankup__shock, .rk-part { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
  .rankup__label, .rankup__name, .rankup__from, .rankup__sub, .rankup__cta { animation-delay: 0s !important; }
}

/* Séance guidée (chrono) */
.detail__timer { margin-top: 22px; }
.timer {
  position: fixed; inset: 0; z-index: 76;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px; background: radial-gradient(120% 60% at 50% 0%, #0e1830, var(--bg) 60%);
  animation: fade .25s var(--ease);
}
.timer__close {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: 20px;
  background: none; border: none; color: var(--txt-dim); font-size: 20px; cursor: pointer;
}
.timer__move { font-size: 16px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--txt); }
.timer__set { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--txt-dim); min-height: 1em; margin-top: 6px; }
.timer__phase { font-size: 22px; font-weight: 900; letter-spacing: .2em; margin-top: 12px; color: var(--txt-dim); }
.timer__phase--work { color: var(--cyan); }
.timer__phase--rest { color: var(--flame); }
.timer__phase--done { color: var(--cyan); }
.timer__count {
  font-size: clamp(90px, 32vw, 150px); font-weight: 900; line-height: 1; color: #fff;
  margin: 8px 0 24px; font-variant-numeric: tabular-nums;
}
.timer__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }

/* ============================================================
   OBJECTIF SKILL — card dashboard + roadmap
   ============================================================ */
.skill-card {
  width: 100%; margin-top: 16px; padding: 16px 18px;
  border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.skill-card:active { transform: scale(.985); }
.skill-card--empty { border-style: dashed; border-color: var(--cyan-dim); text-align: center; }
.skill-card__tag { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--txt-dim); }
.skill-card__cta { margin-top: 6px; font-size: 14px; font-weight: 900; letter-spacing: .04em; color: var(--cyan); }
.skill-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.skill-card__icon { font-size: 22px; }
.skill-card__name { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.skill-card__count { font-size: 13px; font-weight: 800; color: var(--cyan); }

.skill-ov {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; animation: detailIn .3s var(--ease);
}
.skill-ov__title { font-size: 16px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.skill-ov__body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  max-width: 480px; width: 100%; margin: 0 auto;
  padding: 20px 22px calc(40px + env(safe-area-inset-bottom));
}
.skill-picker__intro { font-size: 14px; color: var(--txt-dim); line-height: 1.4; margin-bottom: 18px; }
.skill-picker__list { display: flex; flex-direction: column; gap: 12px; }
.skill-opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; font-family: inherit; color: var(--txt);
  animation: cardIn .4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.skill-opt:active { transform: scale(.985); }
.skill-opt.selected { border-color: var(--cyan); }
.skill-opt__icon { font-size: 28px; flex-shrink: 0; }
.skill-opt__body { flex: 1; min-width: 0; }
.skill-opt__name { display: block; font-size: 16px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.skill-opt__sub { display: block; margin-top: 3px; font-size: 12px; color: var(--txt-dim); }
.skill-opt__arrow { color: var(--cyan); font-weight: 900; }

.skill-roadmap__head { text-align: center; margin-bottom: 26px; }
.skill-roadmap__icon { font-size: 48px; line-height: 1; }
.skill-roadmap__name { margin-top: 6px; font-size: 26px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.skill-roadmap__bar { margin-top: 16px; }
.skill-roadmap__count { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--cyan); }
.roadmap-steps { display: flex; flex-direction: column; margin-bottom: 26px; }
.roadmap-step {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: none; font-family: inherit; color: var(--txt); padding: 10px 0; cursor: pointer;
  animation: cardIn .4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms);
}
.roadmap-step:not(:last-child)::before {
  content: ''; position: absolute; left: 18px; top: 48px; bottom: -10px; width: 2px; background: var(--border-2);
}
.roadmap-step.done:not(:last-child)::before { background: var(--cyan); }
.roadmap-step__dot {
  position: relative; z-index: 1; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 900;
  background: var(--bg-soft); border: 2px solid var(--border-2); color: var(--txt-mute);
}
.roadmap-step.done .roadmap-step__dot { background: var(--cyan); border-color: var(--cyan); color: #022; }
.roadmap-step.next .roadmap-step__dot { border-color: var(--cyan); color: var(--cyan); animation: pulse 1.8s var(--ease) infinite; }
.roadmap-step__body { flex: 1; min-width: 0; }
.roadmap-step__name { display: block; font-size: 15px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.roadmap-step.upcoming .roadmap-step__name { color: var(--txt-dim); }
.roadmap-step__muscles { display: block; margin-top: 2px; font-size: 12px; color: var(--txt-mute); }
.roadmap-step.target .roadmap-step__name { color: var(--cyan); }

/* ============================================================
   SÉRIE EN GRAND (modale)
   ============================================================ */
.streakov {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 28px;
  background: rgba(2, 6, 14, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .25s var(--ease);
  overflow-y: auto;
}
.streakov__close {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: 22px;
  background: none; border: none; color: var(--txt-dim); font-size: 22px; cursor: pointer;
}
.streakov__inner { text-align: center; max-width: 360px; width: 100%; animation: celebPop .5s var(--ease); }
.streakov__flame { width: 140px; height: 156px; animation: flicker 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.streakov__num { font-size: clamp(80px, 28vw, 120px); font-weight: 900; line-height: .9; color: #fff; margin-top: 6px; }
.streakov__tier { margin-top: 10px; font-size: 18px; font-weight: 900; letter-spacing: .16em; }
.streakov__sub { margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .26em; color: var(--txt-dim); }
.streakov__stats { display: flex; justify-content: center; gap: 36px; margin: 24px 0; }
.streakov__stat { display: flex; flex-direction: column; gap: 4px; }
.streakov__stat-val { font-size: 26px; font-weight: 900; color: var(--cyan); }
.streakov__stat-lbl { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--txt-dim); }
.streakov__next { font-size: 13px; color: var(--txt-dim); margin-bottom: 22px; }
.streakov__ladder { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ladder-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); opacity: .4;
}
.ladder-item.reached { opacity: 1; }
.ladder-item.current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-dim); }
.ladder-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.ladder-name { flex: 1; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.ladder-min { font-size: 11px; font-weight: 800; color: var(--txt-dim); }

/* ============================================================
   BATTLE
   ============================================================ */
.battle-cta {
  width: 100%; margin-top: 16px; padding: 16px;
  border: none; border-radius: var(--radius); cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  color: #022; background: linear-gradient(90deg, var(--cyan), #7af0ff);
  box-shadow: 0 6px 24px var(--cyan-dim);
  transition: transform .15s var(--ease);
}
.battle-cta:active { transform: scale(.98); }

.battle-ov {
  position: fixed; inset: 0; z-index: 46; background: var(--bg);
  display: flex; flex-direction: column; animation: detailIn .3s var(--ease);
}
.battle-headbtn {
  flex-shrink: 0; background: var(--cyan); color: #022; border: none;
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-weight: 900;
  font-size: 12px; letter-spacing: .06em; cursor: pointer;
}
.battle-loading, .battle-empty { color: var(--txt-dim); text-align: center; padding: 30px 10px; line-height: 1.5; }
.battle-list { display: flex; flex-direction: column; gap: 12px; }
.battle-group-title { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--txt-dim); margin: 18px 0 4px; }
.battle-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; animation: cardIn .4s var(--ease) backwards;
}
.battle-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.battle-card__move { font-size: 17px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.battle-card__live { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: #022; background: var(--cyan); padding: 3px 8px; border-radius: 999px; }
.battle-card__meta { display: flex; gap: 16px; margin: 8px 0 14px; font-size: 13px; color: var(--txt-dim); }
.battle-card__result { font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.battle-card__result.champion { color: var(--gold); }
.battle-card__result.competitor { color: #c9d3e0; }

.battle-move-list { display: flex; flex-direction: column; gap: 8px; }
.battle-move-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--txt);
  animation: cardIn .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 25ms);
}
.battle-move-opt--loading { opacity: .5; }
.battle-move-opt__name { font-size: 14px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; text-align: left; }
.battle-move-opt__lvl { font-size: 12px; font-weight: 800; color: var(--cyan); flex-shrink: 0; }

/* Caméra battle (réutilise cam-stage / cam-bar) */
.battle-cam {
  position: fixed; inset: 0; z-index: 47; background: var(--bg);
  display: flex; flex-direction: column; animation: fade .25s var(--ease);
}
.battle-cam__move {
  flex-shrink: 0; text-align: center; padding: max(18px, env(safe-area-inset-top)) 22px 10px;
  font-size: 16px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}

/* Vote style Tinder */
.battle-vote {
  position: fixed; inset: 0; z-index: 48;
  display: flex; flex-direction: column; align-items: center;
  padding: max(22px, env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 0%, #0e1830, var(--bg) 60%);
  animation: fade .25s var(--ease);
}
.battle-vote__head { font-size: 16px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.vote-card {
  position: relative; flex: 1; width: 100%; max-width: 380px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 16px 50px var(--cyan-dim);
  background: #000; touch-action: pan-y; cursor: grab; user-select: none;
}
.vote-card__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vote-stamp {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: 64px; font-weight: 900; opacity: .9;
}
.vote-stamp--yes { color: #2bd66e; }
.vote-stamp--no { color: var(--danger); }
.vote-done { flex: 1; display: grid; place-items: center; color: var(--txt-dim); font-size: 16px; }
.vote-actions { display: flex; gap: 28px; margin-top: 20px; }
.vote-btn {
  width: 68px; height: 68px; border-radius: 50%; border: 2px solid;
  background: var(--card); font-size: 26px; cursor: pointer;
  transition: transform .15s var(--ease);
}
.vote-btn:active { transform: scale(.9); }
.vote-btn--no { color: var(--danger); border-color: var(--danger); }
.vote-btn--yes { color: #2bd66e; border-color: #2bd66e; }

/* Résultats */
.results-head { text-align: center; margin-bottom: 18px; }
.results-move { font-size: 22px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.results-week { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--cyan); margin-top: 4px; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.result-row.me { background: var(--cyan-dim); border-radius: var(--radius-sm); padding-left: 8px; padding-right: 8px; }
.result-rank { width: 34px; text-align: center; font-size: 18px; font-weight: 900; color: var(--txt-dim); }
.result-row.champion .result-rank { font-size: 24px; }
.result-photo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.result-votes { margin-left: auto; font-weight: 900; color: var(--cyan); }

/* Badges battle (profil) */
.bbadge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid;
}
.bbadge.champion { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.bbadge.competitor { color: #c9d3e0; border-color: #c9d3e055; background: #c9d3e012; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  z-index: 95; background: var(--card); border: 1px solid var(--cyan); color: var(--txt);
  font-weight: 800; font-size: 14px; padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Réduction des animations si demandé */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
