/* Kerpace — pages autonomes : accueil, connexion, inscription, mot de passe, vérification, pages légales.
   Tokens : /assets/tokens.css (docs/DESIGN.md). Ici, aucune couleur en dur : le sombre passe par les tokens. */

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
html, body { margin: 0; }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body) / var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-s); }
button, .btn, .navbar, .cell, .check, .field-label, .hero { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre de navigation ---------- */
.navbar { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); background: var(--bg); }
.navbar-inner { height: var(--navbar-h); max-width: 480px; margin: 0 auto; padding: 0 var(--s-1); display: flex; align-items: center; }
.navbar-back { position: relative; display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); padding-right: var(--s-2); color: var(--brand); font-size: var(--fs-body); font-weight: 500; border-radius: var(--r-m); }
.navbar-back .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.navbar-back:active { opacity: .5; }

/* ---------- structure ---------- */
.auth-main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s-2) var(--gutter) var(--s-6); display: flex; flex-direction: column; }
.largetitle { font: 700 var(--fs-large) / var(--lh-large) var(--display); font-stretch: 80%; letter-spacing: -.005em; overflow-wrap: anywhere; }
.auth-lede { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); overflow-wrap: anywhere; }
.auth-lede strong { color: var(--ink); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.section-title { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 500; color: var(--ink-3); margin: 0 0 var(--s-2) var(--s-4); }
.auth-actions { display: grid; gap: var(--s-2); }
.auth-foot { width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-3); font-size: var(--fs-sub); line-height: var(--lh-sub); }
.auth-foot a { color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.auth-foot p + p { margin-top: var(--s-1); }
@media (min-width: 720px) and (min-height: 700px) {
  .auth-main { justify-content: center; padding-bottom: 8vh; }
  body.page-form .navbar { background: transparent; }
}

/* ---------- liste groupée et cellules ---------- */
.group { background: var(--surface); border-radius: var(--r-l); overflow: hidden; }
.cell { position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 60px; padding: 10px var(--s-4); text-align: left; color: inherit; background: none; }
.group > .cell + .cell::before, .group > .cell + .cell-wrap::before, .group > .cell-wrap + .cell-wrap::before, .group > .cell-wrap + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; border-top: var(--hairline) solid var(--line); }
.cell-wrap { position: relative; display: flex; align-items: center; }
.cell-wrap > .cell { flex: 1; min-width: 0; }
button.cell:active, a.cell:active { background: var(--press); }
.cell-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cell-title { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 18px; height: 18px; color: var(--ink-3); stroke-width: 2.2; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); font: 700 1.125rem/1 var(--display); font-stretch: 80%; }
.avatar.ghost { background: var(--surface-2); color: var(--ink-2); }
.avatar .icon { width: 20px; height: 20px; stroke-width: 2; }
.cell-forget { position: relative; width: var(--tap); height: var(--tap); margin-right: var(--s-1); flex: none; display: grid; place-items: center; border-radius: var(--r-full); color: var(--ink-3); }
.cell-forget .icon { width: 18px; height: 18px; }
.cell-forget:active { background: var(--press); }

/* ---------- champs groupés ---------- */
.fields .field-row { position: relative; display: block; padding: 10px var(--s-4) 8px; cursor: text; }
.fields .field-row + .field-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--s-4); border-top: var(--hairline) solid var(--line); }
.field-label { display: block; font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 500; color: var(--ink-2); transition: color var(--dur-fast); }
.field-row:focus-within .field-label { color: var(--brand); }
.field-row.is-invalid .field-label { color: var(--bad); }
.input-wrap { display: flex; align-items: center; gap: var(--s-1); }
.input {
  display: block; width: 100%; min-width: 0; height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--ink); font-size: 1.0625rem; line-height: 30px; caret-color: var(--brand); -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-3); opacity: .6; }
.input:focus-visible { outline: none; }
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--brand);
  -webkit-box-shadow: 0 0 0 40px var(--surface) inset; box-shadow: 0 0 0 40px var(--surface) inset; transition: background-color 9999s;
}
.input[readonly] { color: var(--ink-2); }
.reveal { position: relative; flex: none; width: 40px; height: 30px; margin-right: -10px; display: grid; place-items: center; color: var(--ink-3); border-radius: var(--r-s); }
.reveal::after { content: ""; position: absolute; inset: -7px -2px; } /* cible 44 px */
.reveal:active { color: var(--ink); }
.reveal .icon { width: 22px; height: 22px; }
.reveal[aria-pressed="true"] .eye-open, .reveal:not([aria-pressed="true"]) .eye-shut { display: none; }
.field-hint { display: flex; align-items: center; gap: 6px; margin: calc(var(--s-2) * -1) var(--s-4) 0; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--ink-3); }
.field-hint .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.field-hint.is-ok { color: var(--good); }
.field-hint .hint-ok, .field-hint.is-ok .hint-todo { display: none; }
.field-hint.is-ok .hint-ok { display: block; }

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--r-m);
  background: var(--brand); color: var(--brand-ink); font-size: var(--fs-body); font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur-fast), opacity var(--dur-fast), background var(--dur-fast);
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-tinted { background: var(--brand-wash); color: var(--brand); }
.btn-plain { background: transparent; color: var(--brand); }
.btn-plain:active { transform: none; opacity: .5; }
.btn-destructive { background: var(--bad-wash); color: var(--bad); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: var(--fs-head); }
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.2px solid var(--brand-ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-secondary[aria-busy="true"]::after, .btn-plain[aria-busy="true"]::after, .btn-tinted[aria-busy="true"]::after { border-color: var(--brand); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- bandeaux ---------- */
.banner { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-m); font-size: var(--fs-body); line-height: var(--lh-body); }
.banner .icon { margin-top: 1px; }
.banner-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.banner-error { background: var(--bad-wash); color: var(--bad); }
.banner-error .banner-body { color: var(--ink); }
.banner-info { background: var(--brand-wash); color: var(--brand); }
.banner-info .banner-body { color: var(--ink); }
.banner-action { display: inline-block; margin-top: var(--s-1); padding: 4px 0; color: var(--brand); font-weight: 600; }
.banner.shake { animation: shake .32s var(--ease-ios); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

/* ---------- case à cocher ---------- */
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-4); border-radius: var(--r-l); background: var(--surface); cursor: pointer; font-size: var(--fs-sub); line-height: 1.45; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 24px; height: 24px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; color: transparent; transition: background var(--dur-fast), box-shadow var(--dur-fast); }
.check-box .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.check input:checked + .check-box { background: var(--brand); box-shadow: none; color: var(--brand-ink); }
.check input:focus-visible + .check-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.check.is-invalid .check-box { box-shadow: inset 0 0 0 1.5px var(--bad); }
.check a { font-weight: 500; -webkit-user-select: auto; user-select: auto; }
.note { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--ink-3); margin: 0 var(--s-4); }

/* ---------- état (e-mail envoyé, lien invalide, adresse confirmée) ---------- */
.state { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-4); }
.state-icon { width: 64px; height: 64px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); margin-bottom: var(--s-3); }
.state-icon .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.state-icon.is-bad { background: var(--bad-wash); color: var(--bad); }
.state-icon.is-good { background: var(--good-wash); color: var(--good); }
.state .auth-actions { width: 100%; margin-top: var(--s-5); }
.state-icon.pop { animation: pop .42s var(--ease-ios) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.6px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---------- accueil (/bienvenue) ---------- */
body.page-welcome { background: var(--bg); }
.welcome { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero); color: var(--hero-ink, #fff);
  min-height: min(62dvh, 560px); padding: calc(env(safe-area-inset-top) + var(--s-4)) var(--gutter) var(--s-6);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 0 0 28px 28px;
}
.hero-art { position: absolute; inset: 0; z-index: -1; color: var(--hero-line); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art path { stroke-width: 1.15; }
.hero-art.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-ios) forwards; animation-delay: calc(var(--k) * 45ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(to top, var(--hero) 18%, transparent); pointer-events: none; }
.brandmark { display: flex; align-items: center; gap: 10px; font-size: var(--fs-head); font-weight: 600; letter-spacing: -.01em; max-width: 480px; width: 100%; margin: 0 auto; }
.brandmark img { height: 36px; width: auto; display: block; }
.hero-card { max-width: 480px; width: 100%; margin: 0 auto; }
.hero-eyebrow { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 500; opacity: .78; }
.hero-title { margin-top: var(--s-1); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: -.015em; }
.metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s-3); margin-top: var(--s-4); }
.metric-value { font: 700 var(--fs-hero) / var(--lh-hero) var(--display); font-stretch: 72%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.metric-unit { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 500; opacity: .78; }
.hero-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: var(--s-5); }
.hero-week i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.hero-week i.done { background: rgba(255, 255, 255, .85); }
.hero-week i.today { background: var(--run); }
.welcome-body { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s-6) var(--gutter) 0; display: flex; flex-direction: column; }
.welcome-promise { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: -.015em; }
.welcome-sub { margin-top: var(--s-2); color: var(--ink-2); }
.welcome-actions { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-2); }
.welcome-note { text-align: center; color: var(--ink-3); font-size: var(--fs-sub); line-height: var(--lh-sub); padding: var(--s-1) var(--s-4) 0; }
.reveal-up { animation: up .5s var(--ease-ios) both; animation-delay: var(--d, 0ms); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 720px) {
  .hero { border-radius: 0 0 36px 36px; }
}

/* ---------- pages légales ---------- */
body.page-legal .auth-main { max-width: 720px; }
.legal-meta { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--fs-sub); line-height: var(--lh-sub); }
.legal-body { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.legal-body .card { background: var(--surface); border-radius: var(--r-l); padding: var(--s-4) var(--s-5); min-width: 0; overflow-wrap: anywhere; }
.legal-body h2 { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--s-2); }
.legal-body h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; margin: var(--s-4) 0 var(--s-1); }
.legal-body p, .legal-body li { font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.legal-body p { margin: 0 0 var(--s-3); } .legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 var(--s-3); padding-left: 20px; } .legal-body li { margin: 4px 0; } .legal-body ul:last-child { margin-bottom: 0; }
.legal-body a { font-weight: 500; }
.legal-body b, .legal-body strong { font-weight: 600; }
.legal-body .summary { background: var(--brand-wash); }
.legal-body .warn { background: var(--bad-wash); }
.legal-body .warn h2 { color: var(--bad); }
.page-legal .todo { background: var(--warn-wash); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sub); display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; padding: 6px 8px 6px 0; border-top: var(--hairline) solid var(--line); vertical-align: top; }
body.page-legal footer, .legal-foot { color: var(--ink-3); font-size: var(--fs-sub); text-align: center; padding: var(--s-4) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); }
body.page-legal footer a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .hero-art.draw path { stroke-dashoffset: 0; }
}
.auth-main > .welcome-note { margin-top: var(--s-5); }
.auth-main.no-navbar { padding-top: calc(env(safe-area-inset-top) + var(--s-8)); }

/* ---------- accueil : carrousel d'exemples ---------- */
.demo { max-width: 480px; width: 100%; margin: 0 auto; }
.demo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; border-radius: var(--r-l); overscroll-behavior-x: contain; }
.demo-track::-webkit-scrollbar { display: none; }
.demo-slide { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; height: 292px; padding: var(--s-4); border-radius: var(--r-l); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: var(--s-2); overflow: hidden; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.demo-kind { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 600; opacity: .9; }
.demo-tag { font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); opacity: .9; }
.demo-slide svg { display: block; }
/* parcours */
.demo-map { width: 100%; flex: 1; min-height: 0; border-radius: 12px; background: rgba(0, 0, 0, .16); }
.map-grid path { stroke: rgba(255, 255, 255, .07); stroke-width: 1; fill: none; }
.map-line, .map-shadow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-shadow { stroke: rgba(0, 0, 0, .35); stroke-width: 8; }
.map-line { stroke-width: 4; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.demo-stats div { display: flex; flex-direction: column; gap: 2px; }
.demo-stats b { font: 700 24px / 1.05 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-stats b small { font-size: 13px; font-weight: 600; opacity: .75; }
.demo-stats span { font-size: 12px; opacity: .65; }
/* muscu */
.demo-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 104px 1fr; gap: var(--s-4); align-items: center; }
.demo-body { width: 104px; height: 100%; max-height: 208px; }
.demo-lifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo-lifts li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; line-height: 1.2; }
.demo-lifts li span { grid-column: 1 / -1; opacity: .75; }
.demo-lifts li.now span { opacity: 1; font-weight: 600; }
.demo-lifts b { font: 700 18px / 1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pips { display: flex; gap: 6px; }
.pips i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.pips i.ok { background: #fff; }
.demo-lifts li.now .pips i.ok { background: var(--run); }
.demo-lifts li.rest { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.demo-lifts li.rest span { grid-column: auto; }
.demo-lifts .ring { display: flex; justify-content: flex-end; }
.ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.r0 { stroke: rgba(255, 255, 255, .2); } .r1 { stroke: var(--run); stroke-linecap: round; }
.demo-lifts li.rest { grid-template-columns: auto 1fr auto; }
/* récupération */
.demo-split.rec { grid-template-columns: 124px 1fr; }
.gauge { position: relative; width: 124px; height: 124px; }
.gauge svg { width: 100%; height: 100%; }
.gauge circle { fill: none; stroke-width: 11; }
.g0 { stroke: rgba(255, 255, 255, .16); } .g1 { stroke: var(--run); stroke-linecap: round; }
.gauge b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 36px / 1 var(--display); font-variant-numeric: tabular-nums; }
.gauge b small { font-size: 16px; opacity: .75; margin-left: 2px; }
.rec-side { display: grid; gap: 14px; min-width: 0; }
.sleep { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 74px; align-items: end; }
.sl { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sl i { display: block; width: 100%; border-radius: 4px; background: rgba(255, 255, 255, .75); }
.sl.cur i { background: var(--run); }
.sl span { font-size: 10px; line-height: 1; opacity: .6; }
.hrv { width: 100%; height: 44px; overflow: visible; }
.hrv polyline { fill: none; stroke: #8C80F0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hrv circle { fill: #8C80F0; }
.demo-legend { display: flex; gap: var(--s-4); font-size: 12px; opacity: .7; }
.demo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.demo-legend i { width: 14px; height: 4px; border-radius: 2px; }
.lg1 { background: rgba(255, 255, 255, .75); } .lg2 { background: #8C80F0; }
.demo-legend.plan { justify-content: space-between; }
/* objectif */
.goal-head { display: flex; align-items: center; justify-content: space-between; }
.goal-head b { font: 700 52px / 1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.flag { width: 40px; height: 40px; fill: none; stroke: var(--run); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-bars { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; align-items: end; }
.plan-bars i { display: block; border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, .2); }
.plan-bars i.done { background: rgba(255, 255, 255, .85); }
.plan-bars i.now { background: var(--run); }
.plan-bars i.peak { background: rgba(238, 106, 142, .55); }
.demo-dots { display: flex; justify-content: center; gap: 7px; margin-top: var(--s-3); }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: width .25s var(--ease-ios), background .25s; }
.demo-dots i.on { width: 18px; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.demo-note { margin: var(--s-2) 0 0; text-align: center; font-size: 12px; line-height: 1.4; opacity: .6; }
