/* =========================================================
   VollUp — design system
   Sombre, contrasté, couleurs vives façon Apple Fitness
   ========================================================= */

:root {
  --bg: #07070B;
  --bg2: #121219;
  --card: #14141C;
  --card2: #1B1B25;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #F5F5F7;
  --muted: #A1A1AE;
  --dim: #6B6B78;

  --pink: #FF2D78;
  --orange: #FF7A2C;
  --lime: #C6FF3D;
  --cyan: #22D3FF;
  --violet: #8B6CFF;
  --yellow: #FFD23F;
  --green: #2EE59D;

  --hot: linear-gradient(135deg, #FF7A2C 0%, #FF2D78 55%, #C42DFF 100%);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.45;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 60vmax at 0% -10%, rgba(255, 45, 120, .13), transparent 60%),
    radial-gradient(50vmax 50vmax at 110% 10%, rgba(139, 108, 255, .12), transparent 60%),
    radial-gradient(60vmax 60vmax at 50% 120%, rgba(34, 211, 255, .08), transparent 60%);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2.2; flex: none; }
h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.05; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.lg { padding: 17px 28px; font-size: 17px; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--hot); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 45, 120, .55); }
.btn.primary:hover { box-shadow: 0 14px 40px -6px rgba(255, 45, 120, .75); }
.btn.primary:disabled { background: var(--card2); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .07); transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .13); }

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.logo b { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--muted);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ring { background: none; border: 2px dashed; }
.ic-badge {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  color: var(--c, var(--pink));
  background: color-mix(in srgb, var(--c, var(--pink)) 16%, transparent);
}
.ic-badge.lg { width: 56px; height: 56px; border-radius: 16px; }
.ic-badge.lg svg { width: 26px; height: 26px; }

/* ---------- Welcome ---------- */
.welcome { position: relative; overflow: hidden; min-height: 100dvh; display: flex; flex-direction: column; padding: 20px 20px 48px; }
.w-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.hero { flex: 1; display: grid; gap: 40px; align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; padding-top: 40px; position: relative; z-index: 1; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); font-weight: 900; line-height: .92; letter-spacing: -.055em; margin: 14px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.feat { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.feat span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.feat svg { color: var(--lime); }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.b1 { width: 460px; height: 460px; top: -180px; right: -140px; background: #FF2D78; opacity: .28; }
.b2 { width: 380px; height: 380px; bottom: -160px; left: -140px; background: #8B6CFF; opacity: .25; }

.hero-visual { position: relative; display: grid; place-items: center; padding: 30px 0; }
.phone {
  position: relative; z-index: 1;
  width: min(340px, 100%); padding: 26px 22px;
  border-radius: 40px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, #17171F, #0E0E14);
  box-shadow: 0 40px 100px -30px rgba(255, 45, 120, .4), 0 0 0 8px rgba(255, 255, 255, .03);
}
.ph-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ph-rings { position: relative; width: 180px; aspect-ratio: 1; margin: 0 auto 20px; }
.ph-rings .rings-center b { font-size: 38px; }
.ph-rings .rings-center span { font-size: 9.5px; }
.ph-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.ph-row .ic-badge { width: 34px; height: 34px; border-radius: 10px; }
.ph-row b { flex: 1; font-weight: 650; }
.ph-row em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--c); }
.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(28, 28, 38, .75); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  font-size: 14px; font-weight: 800;
  animation: float 6s ease-in-out infinite;
}
.float small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.float .ic-badge { width: 34px; height: 34px; border-radius: 10px; }
.float.f1 { top: 4%; left: -4%; }
.float.f2 { bottom: 8%; right: -6%; animation-delay: -3s; }
@media (max-width: 600px) { .float.f1 { left: 0; } .float.f2 { right: 0; } }

/* ---------- Onboarding ---------- */
.ob { min-height: 100dvh; }
.ob-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(7, 7, 11, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.progress { flex: 1; display: flex; gap: 6px; }
.progress span { position: relative; flex: 1; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress span.on::after { transform: scaleX(1); }
.ob-count { color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ob-body { display: grid; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 28px 16px 150px; }
.ob-main { width: 100%; max-width: 680px; margin: 0 auto; }
@media (min-width: 1000px) {
  .ob-body { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding: 48px 16px 80px; }
  .ob-main { max-width: none; margin: 0; }
}
.step-head { margin-bottom: 26px; }
.step-head h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; margin: 10px 0; }
.step-head p { color: var(--muted); font-size: 17px; max-width: 540px; }
.step-content { display: grid; gap: 14px; }

.ob-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(7, 7, 11, 0));
}
.ob-cta .btn { max-width: 680px; margin: 0 auto; display: flex; }
@media (min-width: 1000px) {
  .ob-cta { position: static; padding: 28px 0 0; background: none; }
  .ob-cta .btn { width: auto; min-width: 280px; margin: 0; display: inline-flex; }
}

.field { padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.lbl { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.hint { margin-top: 10px; color: var(--dim); font-size: 13px; }
.hint.center { text-align: center; margin: 0; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }

.text {
  width: 100%; padding: 15px 16px; border-radius: 14px; outline: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2);
  font-size: 18px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.text:focus { border-color: var(--pink); background: rgba(255, 45, 120, .06); }
.text::placeholder { color: var(--dim); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.seg button { flex: 1; padding: 11px 8px; border-radius: 11px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 650; transition: all .25s var(--ease); }
.seg button.on { background: #fff; color: #0A0A0F; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, transform .15s; }
.round:hover { background: rgba(255, 255, 255, .14); }
.round:active { transform: scale(.92); }
.big { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.big small { margin-left: 5px; color: var(--muted); font-size: 16px; font-weight: 650; letter-spacing: 0; }

.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.slider-head .lbl { margin: 0 0 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--c1), var(--c2)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .1);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 5px rgba(255, 255, 255, .08);
}
input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; }
.range-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; font-weight: 600; }

.mini-info { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.mini-info b { color: var(--text); }

.opt-list { display: grid; gap: 8px; }
@media (min-width: 600px) { .opt-list { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; transition: all .2s; }
.opt b { display: block; font-size: 16px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--dim); flex: none; transition: all .2s; }
.opt.on { border-color: var(--pink); background: rgba(255, 45, 120, .08); }
.opt.on .radio { border-color: var(--pink); background: var(--pink); box-shadow: inset 0 0 0 4px var(--card); }

.pos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .pos-grid { grid-template-columns: repeat(3, 1fr); } }
.pos { display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; font-size: 14px; line-height: 1.25; transition: all .2s; }
.pos svg { width: 24px; height: 24px; color: var(--muted); }
.pos.on { border-color: var(--cyan); background: rgba(34, 211, 255, .08); }
.pos.on svg { color: var(--cyan); }

.rate-list { display: grid; gap: 8px; }
@media (min-width: 1000px) { .rate-list { grid-template-columns: 1fr 1fr; } }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.rate-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rate-l b { display: block; font-size: 16px; }
.rate-l small { color: var(--c); font-size: 13px; font-weight: 650; }
.dots { display: flex; gap: 6px; }
.dots button { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .07); transition: all .2s var(--ease); }
.dots button:hover { transform: translateY(-2px); }
.dots button.on { background: var(--c); box-shadow: 0 0 16px -4px var(--c); }
@media (max-width: 380px) { .dots button { width: 24px; height: 24px; } }

.goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .goal-grid { grid-template-columns: repeat(3, 1fr); } }
.goal {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 132px; padding: 16px;
  border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line);
  transition: all .25s var(--ease);
}
.goal:hover { transform: translateY(-2px); }
.goal .ic-badge { margin-bottom: 6px; }
.goal b { font-size: 16px; }
.goal small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.goal-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); color: transparent; transition: all .2s; }
.goal-check svg { width: 14px; height: 14px; stroke-width: 3; }
.goal.on { border-color: var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--card)), var(--card) 70%); box-shadow: 0 12px 30px -14px var(--c); }
.goal.on .goal-check { background: var(--c); border-color: var(--c); color: #0A0A0F; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 650; transition: all .2s; }
.chip.on { background: #fff; border-color: #fff; color: #0A0A0F; }

.saut-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .saut-grid { grid-template-columns: minmax(0, 1fr) 250px; } }
.saut-form { display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.kpi span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1.2; }
.kpi b { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.kpi b small { margin-left: 2px; color: var(--muted); font-size: 12px; }
.kpi:nth-child(1) b { color: var(--lime); }
.kpi:nth-child(2) b { color: var(--violet); }
.kpi:nth-child(3) b { color: var(--pink); }
.gauge-card { padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.gauge-card svg { display: block; width: 100%; height: auto; max-height: 420px; }
.howto { padding: 14px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.howto summary { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary svg { color: var(--cyan); }
.howto ol { display: grid; gap: 6px; margin: 12px 0 0 22px; color: var(--muted); font-size: 15px; }

.ob-aside { display: none; }
@media (min-width: 1000px) { .ob-aside { display: block; position: sticky; top: 100px; align-self: start; } }
.player-card {
  padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line2);
  background: linear-gradient(160deg, rgba(255, 45, 120, .18), rgba(139, 108, 255, .1) 45%, var(--card) 80%);
  box-shadow: 0 30px 80px -40px rgba(255, 45, 120, .5);
}
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar { width: 54px; height: 54px; border-radius: 18px; flex: none; display: grid; place-items: center; background: var(--hot); color: #fff; font-size: 24px; font-weight: 900; }
.pc-top b { display: block; font-size: 19px; }
.pc-top span { color: var(--muted); font-size: 13px; }
.pc-grid, .pc-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-jump { margin-top: 8px; }
.pc-stat { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.pc-stat small, .pc-jump span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.pc-stat b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.pc-stat b i { margin-left: 2px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.pc-jump div { padding: 12px; border-radius: 14px; background: rgba(198, 255, 61, .1); }
.pc-jump div + div { background: rgba(255, 45, 120, .12); }
.pc-jump b { color: var(--lime); font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.pc-jump div + div b { color: var(--pink); }
.pc-jump small { color: var(--muted); font-size: 13px; }
.pc-foot { margin-top: 14px; color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- Loading ---------- */
.loading { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.ld-rings { position: relative; width: 200px; margin-bottom: 24px; }
.ld-ball { position: absolute; inset: 0; display: grid; place-items: center; }
.ld-ball svg { animation: spin 2.4s linear infinite; filter: drop-shadow(0 8px 20px rgba(255, 45, 120, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-rings svg { animation: pulse 2.4s ease-in-out infinite; }
.loading .ring-arc { animation-duration: 2.6s; }
.loading h2 { font-size: 30px; font-weight: 900; }
.loading p { min-height: 24px; color: var(--muted); font-size: 16px; }

/* ---------- Dashboard ---------- */
.dash { min-height: 100dvh; }
@media (min-width: 900px) { .dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); } }
.side { display: none; }
@media (min-width: 900px) {
  .side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 26px 16px; border-right: 1px solid var(--line); background: rgba(10, 10, 15, .5); }
}
.side .logo { padding: 0 10px; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-weight: 650; transition: all .2s; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-item.on { background: rgba(255, 255, 255, .08); color: var(--text); }
.nav-item.on svg { color: var(--pink); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.mini-player { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.mini-player:hover { background: var(--card2); border-color: var(--line2); }
.mini-player > div:nth-child(2) { flex: 1; min-width: 0; }
.mini-player .avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
.mini-player b { display: block; font-size: 15px; }
.mini-player small { color: var(--muted); font-size: 12px; }
.mini-player > svg { color: var(--dim); }
.avatar-btn { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.logo .ball { flex: none; filter: drop-shadow(0 4px 10px rgba(255, 45, 120, .35)); }

/* Jours d'entraînement */
.days-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dpick { padding: 12px 0; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .06); border: 1.5px solid transparent; color: var(--muted); font-size: 13px; font-weight: 750; transition: all .2s var(--ease); }
.dpick:hover { background: rgba(255, 255, 255, .1); }
.dpick.on { background: var(--hot); color: #fff; box-shadow: 0 8px 20px -10px rgba(255, 45, 120, .8); }
@media (min-width: 600px) { .dpick { padding: 14px 0; font-size: 14px; } }
.wk-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 20px; }
.wk-foot .day-strip { flex: 1 1 260px; margin-top: 0; }

/* Animations d'exercices */
.anim-stage {
  margin-bottom: 18px; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line2);
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 24%, transparent), transparent 62%), #0B0B11;
}
.anim-view { height: min(270px, 36vh); padding-top: 10px; }
.anim-svg { display: block; width: 100%; height: 100%; }
.anim-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); }
.anim-label { flex: 1; color: var(--c); font-size: 14px; font-weight: 750; }
.anim-btn { min-width: 38px; height: 34px; padding: 0 10px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 800; transition: background .2s; }
.anim-btn:hover { background: rgba(255, 255, 255, .14); }
/* Démos de prise de mesure (questionnaire) */
.measure-demo {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 8px 14px 8px 8px;
  border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(100% 120% at 0% 100%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), #0D0D13;
}
.md-view { flex: none; width: 128px; height: 150px; }
.md-view .anim-svg { display: block; width: 100%; height: 100%; }
.md-cap { min-width: 0; }
.md-cap span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.md-cap b { display: block; color: var(--c); font-size: 15px; line-height: 1.3; min-height: 2.6em; }

.sh-gap { margin-top: 22px; }
.seg button { white-space: nowrap; }
@media (max-width: 420px) { .seg button { padding: 11px 4px; font-size: 13.5px; } }

/* Illustrations (pose clé fixe) */
.exc-thumb {
  position: relative; height: 150px; margin: -18px -18px 4px; overflow: hidden;
  background: radial-gradient(110% 90% at 50% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), #0D0D13;
  border-bottom: 1px solid var(--line);
}
.exc-thumb .anim-svg { display: block; width: 100%; height: 100%; }
.exc-play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; transition: background .2s, transform .2s var(--ease); }
.exc-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.ex-card:hover .exc-play { background: var(--c); color: #0A0A0F; transform: scale(1.08); }
.ex-thumb { flex: none; width: 44px; height: 48px; border-radius: 12px; overflow: hidden; background: radial-gradient(100% 80% at 50% 100%, color-mix(in srgb, var(--c) 25%, transparent), transparent 70%), #0D0D13; }
.ex-thumb .anim-svg { display: block; width: 100%; height: 100%; }
.ex-row.done .ex-thumb { opacity: .45; }

/* Profils */
.sh-title { margin: 8px 44px 18px 0; }
.sh-title h2 { margin: 6px 0 8px; font-size: 30px; font-weight: 900; }
.sh-title p { color: var(--muted); font-size: 15px; }
.account-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px; border-radius: 18px; background: rgba(34, 211, 255, .07); border: 1px dashed rgba(34, 211, 255, .35); }
.account-card b { display: block; font-size: 15px; }
.account-card small { color: var(--muted); font-size: 13px; }
.account-card > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-card .btn { flex-shrink: 0; }
.auth-fields { display: grid; gap: 10px; }
.auth-form .sh-actions { margin-top: 14px; }
.auth-error { margin-top: 10px; color: var(--pink); font-size: 14px; font-weight: 600; }
.prof-list { display: grid; gap: 8px; margin-bottom: 18px; }
.prof { display: flex; align-items: stretch; gap: 6px; }
.prof-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; transition: all .2s; }
.prof-main:hover { background: rgba(255, 255, 255, .07); }
.prof.on .prof-main { border-color: var(--pink); background: rgba(255, 45, 120, .08); }
.prof-main .avatar { width: 46px; height: 46px; border-radius: 15px; font-size: 20px; }
.prof-info { flex: 1; min-width: 0; }
.prof-info b { display: block; overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.prof-info small { color: var(--muted); font-size: 12.5px; }
.prof-pct { text-align: right; font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.prof-pct small { display: block; color: var(--dim); font-size: 10.5px; font-weight: 650; letter-spacing: 0; }
.prof-on { color: var(--pink); }
.prof-del { flex: none; min-width: 48px; padding: 0 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); color: var(--dim); font-size: 13px; font-weight: 800; transition: all .2s; }
.prof-del:hover { color: #FF6FA3; background: rgba(255, 45, 120, .1); }
.prof-del.confirm { background: var(--pink); color: #fff; }
.sh-actions { display: grid; gap: 8px; margin-top: 18px; }
@media (max-width: 420px) { .prof-pct small { display: none; } }

.mob-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(7, 7, 11, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .mob-bar { display: none; } }

.main { display: grid; gap: 16px; align-content: start; width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 16px 130px; }
@media (min-width: 600px) { .main { padding: 28px 28px 130px; } }
@media (min-width: 900px) { .main { gap: 20px; padding: 44px 44px 64px; } }
/* Onglet Passeur : le jeu occupe tout l'espace entre la barre du haut et la barre d'onglets flottante */
.main.main-game { display: block; max-width: none; padding: 0; }
.game-frame { display: block; width: 100%; border: 0; background: #0a0e13; height: calc(100dvh - 59px - 96px - env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .game-frame { height: 100dvh; } }
.page-head { margin-bottom: 6px; }
.page-head h1 { margin: 8px 0; font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.page-head p { color: var(--muted); font-size: 17px; }

.tabbar {
  position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; gap: 4px; width: min(420px, calc(100% - 28px)); padding: 6px;
  border-radius: 26px; border: 1px solid var(--line2);
  background: rgba(28, 28, 38, .72);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border-radius: 20px; color: var(--muted); font-size: 11.5px; font-weight: 650; transition: all .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { background: rgba(255, 255, 255, .1); color: var(--text); }
.tabbar button.on svg { color: var(--pink); }
@media (min-width: 900px) { .tabbar { display: none; } }

.card { padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); min-width: 0; }
@media (min-width: 600px) { .card { padding: 24px; } }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h3 { font-size: 21px; font-weight: 800; }
.cols { display: grid; gap: 16px; }
@media (min-width: 1100px) { .cols { grid-template-columns: 1.25fr 1fr; gap: 20px; } }

/* Analyse — héros */
.hero-card {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: center; padding: 24px;
  border-radius: var(--r-xl); border: 1px solid var(--line2);
  background: linear-gradient(140deg, #1A1424 0%, #13131B 50%, #0F1A1F 100%);
}
.hero-card::before { content: ""; position: absolute; top: -200px; left: -100px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 120, .25), transparent 70%); pointer-events: none; }
@media (min-width: 700px) { .hero-card { grid-template-columns: auto minmax(0, 1fr); gap: 40px; padding: 32px; } }
.rings-wrap { position: relative; width: min(240px, 64vw); aspect-ratio: 1; margin: 0 auto; }
.rings { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 45, 120, .22)); }
.rings-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings-center b { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.rings-center span { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.rings-center.sm b { font-size: 22px; }
.rings-center.sm span { margin: 0; font-size: 11px; }
.hero-info { position: relative; }
.hero-info h2 { margin-bottom: 10px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.hero-info p { max-width: 600px; margin-bottom: 20px; color: var(--muted); font-size: 16px; }
.legend { display: grid; gap: 8px; }
@media (min-width: 1280px) { .legend { grid-template-columns: repeat(3, 1fr); } }
.lg-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.lg-item div { flex: 1; min-width: 0; }
.lg-item b { display: block; font-size: 14.5px; }
.lg-item small { color: var(--muted); font-size: 12px; }
.lg-item > span { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }

/* Analyse — métriques */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.metric { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 600px) { .metric { padding: 20px; } }
.m-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.2; }
.m-ic { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.m-ic svg { width: 16px; height: 16px; }
.m-v { font-size: clamp(30px, 4vw, 40px); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.m-v small { margin-left: 3px; color: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: 0; }
.m-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.m-bar span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: var(--c); box-shadow: 0 0 12px -2px var(--c); animation: grow 1.2s var(--ease) both; }
.m-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: #fff; opacity: .75; }
.m-ref { color: var(--muted); font-size: 12px; line-height: 1.35; }
.delta { display: block; margin-bottom: 2px; font-weight: 800; }
.delta.good { color: var(--green); }
.delta.bad { color: #FF6FA3; }

/* Analyse — priorités */
.prio-list { display: grid; gap: 12px; }
.prio {
  display: flex; gap: 14px; padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255, 255, 255, .02) 60%);
}
.prio-n { min-width: 26px; color: var(--c); font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.prio-body { flex: 1; min-width: 0; }
.prio-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.prio-head > b { color: var(--c); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.prio-head .score { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.prio h4 { margin-bottom: 6px; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.prio p { color: var(--muted); font-size: 14.5px; }
.prio-goal { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 650; }
.prio-goal svg { color: var(--c); }
.sev-1 { background: rgba(255, 45, 120, .16); color: #FF6FA3; }
.sev-2 { background: rgba(255, 122, 44, .16); color: #FFA06B; }
.sev-3 { background: rgba(34, 211, 255, .14); color: #6FE3FF; }

.radar { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.radar-cur { transform-origin: 180px 165px; animation: radarIn 1.1s var(--ease) both; }
.radar-legend { display: flex; justify-content: center; gap: 20px; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.radar-legend span { display: inline-flex; align-items: center; gap: 8px; }

.str-list { display: grid; gap: 14px; }
.str { display: flex; align-items: center; gap: 12px; }
.str > div { flex: 1; min-width: 0; }
.str b { display: flex; justify-content: space-between; font-size: 15px; }
.str b span { color: var(--c); }
.bar { height: 6px; margin-top: 7px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.bar span { display: block; height: 100%; border-radius: 6px; background: var(--c); animation: grow 1.2s var(--ease) both; }
.empty { color: var(--muted); font-size: 14.5px; }

.tips { display: grid; gap: 10px; }
.tip { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); }
.tip .ic-badge { width: 36px; height: 36px; border-radius: 11px; }
.tip b { display: block; margin-bottom: 2px; font-size: 15px; }
.tip p { color: var(--muted); font-size: 13.5px; }

.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px; border-radius: var(--r-xl); background: var(--hot); }
.cta-card .eyebrow { background: none; color: rgba(255, 255, 255, .85); }
.cta-card h3 { margin: 6px 0; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.cta-card p { color: rgba(255, 255, 255, .88); }
.cta-card .btn { background: #fff; color: #0A0A0F; box-shadow: none; }
@media (min-width: 800px) { .cta-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; } }

/* Programme */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .phases { gap: 12px; } }
.phase { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line); transition: all .2s; }
.phase .ph-w { color: var(--c); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.phase b { font-size: 15px; }
.phase small { display: none; color: var(--muted); font-size: 13px; }
.phase.on { border-color: var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--card)), var(--card) 75%); }
@media (min-width: 700px) { .phase { padding: 16px; } .phase b { font-size: 18px; } .phase small { display: block; } }

.week-chips { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.week-chips::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .week-chips { margin: 0; padding: 2px 0 6px; } }
.wchip { position: relative; overflow: hidden; flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); text-align: center; transition: all .2s; }
.wchip small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wchip b { font-size: 22px; font-weight: 900; }
.wchip i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--c); }
.wchip.on { background: #fff; border-color: #fff; color: #0A0A0F; }
.wchip.on small { color: #5A5A66; }

.week-card { padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line2); background: linear-gradient(140deg, color-mix(in srgb, var(--c) 20%, #14141C), #14141C 65%); }
@media (min-width: 700px) { .week-card { padding: 28px; } }
.wk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wk-info { min-width: 0; }
.wk-info .eyebrow { background: none; color: var(--c); }
.week-card h2 { margin: 6px 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.week-card p { max-width: 520px; color: var(--muted); font-size: 15px; }
.wk-ring { position: relative; flex: none; width: 92px; }
@media (min-width: 700px) { .wk-ring { width: 116px; } }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; margin-top: 20px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.day small { color: var(--dim); font-size: 11px; font-weight: 700; }
.day span { width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 800; }
.day.has span { background: var(--c); color: #0A0A0F; box-shadow: 0 0 16px -4px var(--c); }

.sessions { display: grid; gap: 14px; }
@media (min-width: 1100px) { .sessions { grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; } }
.session { overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.s-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; }
.s-day { flex: none; width: 54px; height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.s-day span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.s-day b { font-size: 20px; font-weight: 900; line-height: 1.1; }
.s-title { flex: 1; min-width: 0; }
.s-title h3 { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.s-title p { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.s-ring { position: relative; flex: none; width: 46px; }
.s-ring .rings { filter: none; }
.s-ring .rings-center b { font-size: 11px; letter-spacing: -.02em; }
.s-warm { display: flex; align-items: center; gap: 10px; width: calc(100% - 36px); margin: 0 18px 6px; text-align: left; transition: background .2s; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.s-warm:hover { background: rgba(255, 122, 44, .1); }
.s-warm em { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 122, 44, .16); color: var(--orange); font-style: normal; font-size: 12px; font-weight: 800; }
.s-warm em svg { width: 11px; height: 11px; fill: currentColor; }
.wk-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Échauffement guidé */
.warm-now { flex: 1; min-width: 0; }
.warm-now small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.warm-now b { display: block; color: var(--c); font-size: 17px; }
.warm-clock { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.warm-cue { margin: -4px 0 14px; color: #D6D6DE; font-size: 15px; }
.warm-progress { height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.warm-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FF7A2C, #FF2D78); transition: width 1s linear; }
.warm-rest { margin: 8px 0 16px; }
.warm-ctrls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 18px; }
.warm-ctrls .btn:disabled { opacity: .4; cursor: not-allowed; }
.warm-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; list-style: none; }
.warm-list li { min-width: 0; }
.warm-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; transition: all .2s; }
.warm-step:hover { background: rgba(255, 255, 255, .07); }
.warm-step.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.warm-step.done { opacity: .5; }
.ws-thumb { flex: none; width: 44px; height: 48px; border-radius: 12px; overflow: hidden; background: radial-gradient(100% 80% at 50% 100%, color-mix(in srgb, var(--c) 25%, transparent), transparent 70%), #0D0D13; }
.ws-thumb .anim-svg { display: block; width: 100%; height: 100%; }
.ws-info { flex: 1; min-width: 0; }
.ws-info b { display: block; font-size: 15px; }
.ws-info small { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.ws-time { color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-warm svg { color: var(--orange); }
.s-warm span { margin-left: auto; }
.ex-list { list-style: none; padding: 4px 10px 12px; }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.ex-row:hover { background: rgba(255, 255, 255, .04); }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); color: transparent; transition: all .25s var(--ease); }
.check svg { width: 15px; height: 15px; stroke-width: 3.2; }
.ex-row.done .check { background: var(--c); border-color: var(--c); color: #0A0A0F; }
.ex-row.done .ex-info b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.ex-info { flex: 1; min-width: 0; }
.ex-info b { display: block; overflow: hidden; font-size: 15px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.ex-info span { color: var(--dim); font-size: 12.5px; }
.ex-dose { padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-row.test { background: linear-gradient(90deg, rgba(198, 255, 61, .1), transparent); }
.chev { color: var(--dim); }
@media (max-width: 420px) { .chev { display: none; } .ex-dose { padding: 4px 8px; font-size: 12px; } }

/* Exercices */
.filter-row { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .chip { flex: none; white-space: nowrap; }
.filter-row .chip.on { background: var(--c); border-color: var(--c); color: #0A0A0F; }
@media (min-width: 600px) { .filter-row { flex-wrap: wrap; margin: 0; padding: 0; } }
.ex-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ex-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.ex-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.ex-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c); }
.ex-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.exc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.exc-top .pill:first-of-type { margin-left: auto; }
.pill.tier { background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); }
.sh-head .pill.tier { margin-top: 8px; }
.ex-card b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ex-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; }
.exc-foot { display: flex; gap: 14px; margin-top: auto; color: var(--muted); font-size: 13px; font-weight: 650; }
.exc-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.panel {
  position: relative; width: 100%; max-height: 90dvh; overflow-y: auto;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0; border: 1px solid var(--line2); border-bottom: 0;
  background: var(--bg2);
  transform: translateY(105%); transition: transform .45s var(--ease);
}
.sheet.open { pointer-events: auto; }
.sheet.open .scrim { opacity: 1; }
.sheet.open .panel { transform: none; }
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .panel { width: min(580px, 92vw); padding: 28px; border-radius: 30px; border-bottom: 1px solid var(--line2); opacity: 0; transform: translateY(24px) scale(.97); transition: transform .35s var(--ease), opacity .25s; }
  .sheet.open .panel { opacity: 1; }
}
.grab { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 5px; background: rgba(255, 255, 255, .2); }
@media (min-width: 700px) { .grab { display: none; } }
.panel .close { position: absolute; top: 14px; right: 14px; }
.sh-head { display: flex; align-items: center; gap: 16px; margin: 8px 44px 20px 0; }
.sh-head .eyebrow { background: none; color: var(--c); }
.sh-head h2 { margin-top: 4px; font-size: 28px; font-weight: 900; }
.sh-doses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.sh-doses div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; }
.sh-doses small { display: block; margin-bottom: 4px; color: var(--c); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sh-doses b { font-size: 15px; }
.sh-doses .on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.sh-desc { margin-bottom: 20px; color: #D6D6DE; font-size: 16px; }
.panel h4 { margin-bottom: 10px; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cues { display: grid; gap: 8px; margin-bottom: 20px; list-style: none; }
.cues li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.cues svg { margin-top: 3px; color: var(--lime); }
.cues.mistakes svg { color: var(--pink, #FF2D78); }
.steps { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: st; }
.steps li { position: relative; padding-left: 36px; font-size: 15px; line-height: 1.45; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--lime, #C6FF3D) 16%, transparent); color: var(--lime, #C6FF3D); font-size: 12px; font-weight: 850; }
.sh-load, .sh-progress { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); color: #C9C9D3; font-size: 13.5px; line-height: 1.45; }
.sh-load svg, .sh-progress svg { margin-top: 2px; color: var(--lime, #C6FF3D); }
.sh-progress { margin: -6px 0 20px; }
.sh-doses em { display: block; margin-top: 4px; color: var(--c); font-size: 12.5px; font-style: normal; font-weight: 700; }
.ex-dose small { display: block; margin-top: 2px; color: var(--c); font-size: 11px; font-weight: 700; text-align: right; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sh-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 13px; font-weight: 650; }

.toast {
  position: fixed; top: 18px; left: 50%; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: #fff; color: #0A0A0F; font-size: 14px; font-weight: 700;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, -160%); transition: transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Animations ---------- */
.fade-up { animation: fadeUp .7s var(--ease) both; animation-delay: var(--d, 0s); }
.ring-arc { animation: ringIn 1.6s var(--ease) both; }
.static .fade-up, .static .ring-arc, .static .m-bar span, .static .bar span, .static .radar-cur { animation: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes ringIn { from { stroke-dashoffset: var(--len); } }
@keyframes grow { from { width: 0; } }
@keyframes radarIn { from { opacity: 0; transform: scale(.3); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.ws-tag { flex: none; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 11px; font-style: normal; font-weight: 800; }
.s-warm b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.s-warm span { margin-left: 0; }
@media (max-width: 420px) { .ws-tag { display: none; } }
