/* MUE Club — DA reprise de Resamue (resamue/design/DA-RESAMUE.md) + références « veri » de Mario
   Noir profond, halos flous, verre dépoli, pilules, Helvetica fine, gros chiffres en points (Doto),
   tuiles de compétences avec un halo de couleur. Toujours sombre. */
:root {
  --bg: #0A0B0A; --solid: #141614;
  --surface: rgba(255, 255, 255, .055); --surface-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --ink: #F4F5F1; --muted: rgba(244, 245, 241, .58); --faint: rgba(244, 245, 241, .36);
  --accent: #D7F57E; --accent-ink: #0B0D06; --accent-soft: rgba(215, 245, 126, .13);
  --mint: #8DE3B9; --pink: #FF4FA3; --warn: #F4C27A; --danger: #FF8C82; --danger-soft: rgba(255, 140, 130, .12);
  --pr: #F4C27A;
  --blur: blur(22px) saturate(140%);
  --radius: 30px; --radius-sm: 20px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --dot: "Doto", "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
/* Halos flous derrière toute l'appli */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 85% 6%, rgba(190, 230, 90, .18), transparent 70%),
    radial-gradient(34vmax 30vmax at 6% 70%, rgba(70, 170, 120, .14), transparent 70%),
    radial-gradient(30vmax 24vmax at 70% 105%, rgba(255, 79, 163, .10), transparent 70%);
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.03em; text-wrap: balance; }
.dot { font-family: var(--dot); font-weight: 900; letter-spacing: .02em; }

.app {
  max-width: 460px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 16px 130px;
  display: none; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.app.is-on { display: grid; animation: enter .35s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 4px; }
.date { color: var(--muted); font-size: 13px; }
.hello { font-size: 34px; font-weight: 300; line-height: 1.05; letter-spacing: -.035em; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; text-align: center;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 14px;
}

/* Jours de la semaine en pastilles (aujourd'hui en blanc) */
.days-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dpill {
  aspect-ratio: 1 / 1.45; border: 1px solid var(--line-strong); border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.dpill small { font-size: 10.5px; color: var(--muted); }
.dpill b { font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- Cartes en verre ---------- */
.card {
  background: rgba(22, 24, 22, .92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; width: 100%; min-width: 0;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3, .board-head h3 { font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.muted-sm { color: var(--muted); font-size: 13px; }
.explain { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }

/* ---------- WOD du jour : carte à halo lime ---------- */
.wod {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 88% 8%, rgba(215, 245, 126, .55), rgba(120, 170, 60, .16) 45%, transparent 75%),
    radial-gradient(60% 50% at 0% 100%, rgba(141, 227, 185, .22), transparent 70%),
    #111310;
}
.wod-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* En-tête du WOD : « WOD DU JOUR » bien visible, nom de la séance en étiquette discrète */
.wod-tag {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.wod-session {
  font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wod-format { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 20px; }
.wod-kind { font-size: 50px; font-weight: 300; letter-spacing: -.045em; line-height: .95; text-transform: uppercase; }
.wod-cap {
  font-family: var(--dot); font-weight: 900; font-size: 22px; letter-spacing: .02em; color: var(--accent);
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(215, 245, 126, .4); white-space: nowrap;
}
.wod-title { font-size: 52px; font-weight: 200; letter-spacing: -.055em; line-height: 1; margin-top: 18px; }
.wod-scheme { color: var(--accent); font-size: 17px; margin-top: 10px; }
.moves { list-style: none; margin: 18px 0 4px; }
.moves li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; }
.mv-detail { color: var(--muted); font-size: 13px; text-align: right; }
/* Charge calculée à partir des max de l'athlète */
.my-load {
  justify-self: start; font-style: normal; font-size: 12.5px; color: var(--accent-ink);
  background: var(--accent); padding: 5px 12px; border-radius: 999px;
}
.my-load b { font-weight: 600; }
.my-load.is-missing { background: var(--surface-2); color: var(--muted); }
.wod-note { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

/* ---------- Boutons : des pilules ---------- */
.cta {
  width: 100%; min-height: 56px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px; font-size: 16px; font-weight: 500;
  transition: transform .15s, box-shadow .15s;
}
@media (hover: hover) { .cta:hover { box-shadow: 0 0 0 4px var(--accent-soft); } .outline-btn:hover { opacity: .85; } }
.cta:active { transform: scale(.98); }
.cta svg {
  width: 44px; height: 44px; padding: 12px; border-radius: 50%; flex: none;
  background: var(--accent-ink); stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
#open-entry { justify-content: space-between; padding: 6px 6px 6px 24px; }
.cta.is-done { background: rgba(10, 11, 10, .5); color: var(--ink); border: 1px solid var(--line-strong); }
.cta.is-done svg { background: var(--ink); stroke: var(--bg); }
.cta:disabled { opacity: .5; }
/* En chargement : le bouton reste lisible et une petite roue tourne (connexion, enregistrement…) */
.cta.is-busy { opacity: .8; pointer-events: none; }
.cta.is-busy::after { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cta-spin .7s linear infinite; }
@keyframes cta-spin { to { transform: rotate(360deg); } }
.ghost-btn {
  width: 100%; min-height: 48px; border-radius: 999px; margin-top: 12px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-weight: 500;
}
.ghost-btn.small { width: auto; min-height: 38px; margin: 0; padding: 0 16px; font-size: 13px; }
.link-btn { color: var(--ink); font-size: 14px; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.link-btn.center { display: block; margin: 12px auto 0; }
.danger { color: var(--danger) !important; }
.ghost-btn.danger { border-color: rgba(255, 140, 130, .35); background: var(--danger-soft); }

/* ---------- Score MUE (accueil) : grand chiffre en points ---------- */
.score {
  display: flex; align-items: center; gap: 18px; text-align: left;
  background:
    radial-gradient(60% 90% at 15% 50%, rgba(255, 79, 163, .45), rgba(160, 60, 140, .14) 50%, transparent 75%),
    #120E12;
}
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 2 6; }
.ring-fill {
  stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 - 326.7 * var(--value, 0) / 100);
  transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1);
}
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-family: var(--dot); font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: .02em; }
.ring-label span { color: var(--muted); font-size: 11px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.score-line { font-size: 17px; line-height: 1.3; margin-top: 6px; }
.score-line strong { font-weight: 500; }
.score-link { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Pastilles de filtre ---------- */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn {
  flex: 1; text-align: center; padding: 9px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line-strong); color: var(--muted); transition: background .15s, color .15s;
}
.seg-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg-big { margin-bottom: 16px; }
.seg-big .seg-btn { padding: 13px; font-size: 15px; }

/* ---------- Whiteboard ---------- */
.board-head { display: grid; gap: 12px; margin-bottom: 8px; }
.rows { list-style: none; }
.row {
  display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row.is-me { margin: 4px -12px; padding: 12px; border: 0; border-radius: 22px; background: var(--accent-soft); }
.rank { font-family: var(--dot); font-weight: 900; color: var(--muted); text-align: center; font-size: 17px; }
.row:nth-child(1) .rank { color: var(--accent); }
.face {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line);
}
.who { display: block; min-width: 0; padding: 0; }
.who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; }
.who small.rx-plus { color: var(--accent, #D7F57E); font-weight: 600; }
.time-res { min-width: 46px; text-align: right; font-size: 19px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bump {
  display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted);
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); transition: all .15s;
}
.bump.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.board-foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.empty { color: var(--muted); font-size: 14px; line-height: 1.5; padding: 6px 0; list-style: none; }

/* ---------- Fit Level (style « Velovis ») ---------- */
.fit {
  position: relative; overflow: hidden; border-radius: 34px; padding: 26px 0 18px; text-align: center;
  background:
    radial-gradient(70% 55% at 0% 95%, var(--fit-bg, rgba(40, 150, 105, .55)), transparent 70%),
    radial-gradient(60% 45% at 100% 100%, rgba(170, 180, 175, .32), transparent 70%),
    #060706;
  border: 1px solid var(--line);
}
.fit > * { position: relative; }
.fit-label { font-size: 17px; color: rgba(244, 245, 241, .85); }
.fit-arrow { color: var(--fit-c, var(--mint)); font-size: 20px; margin-left: 4px; }
.fit-arrow.is-down { color: var(--warn); }
.fit-value { font-size: 124px; font-weight: 200; line-height: .95; letter-spacing: -.06em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fit-delta { color: var(--muted); font-size: 14px; margin-top: 6px; padding: 0 20px; }
.fit-curve { margin-top: 6px; }
.neon { width: 100%; height: auto; display: block; overflow: visible; }
.neon-halo { fill: none; stroke-width: 18; stroke-linecap: round; opacity: .16; }
.neon-line { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.neon-pt { fill: rgba(201, 251, 228, .7); }
.neon-empty { fill: none; stroke: rgba(141, 227, 185, .25); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.bead-glow { opacity: .22; animation: pulse 2.6s ease-in-out infinite; }
.bead { filter: drop-shadow(0 0 8px var(--bead, #C9FBE4)); }
@keyframes pulse { 50% { opacity: .12; } }
.neon-tick { fill: var(--faint); font: 400 10px var(--font); }
.fit-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 20px 0; font-size: 13px; color: var(--muted); }
.outline-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--fit-c, var(--mint)); color: var(--fit-c, var(--mint)); font-size: 13px;
  background: var(--fit-soft, rgba(141, 227, 185, .06)); transition: opacity .15s;
}
/* Échelle des niveaux sous la courbe */
.fit-scale { padding: 4px 20px 2px; }
.fs-bar { position: relative; display: flex; gap: 4px; }
.fs-seg { height: 6px; border-radius: 3px; background: var(--c); opacity: .28; position: relative; }
.fs-seg.is-on { opacity: 1; box-shadow: 0 0 12px var(--c); }
.fs-seg i { position: absolute; top: 10px; left: 0; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.fs-seg.is-on i { color: var(--c); }
.fs-mark { position: absolute; top: -5px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; }
.fs-goal { margin-top: 26px; font-size: 13px; color: var(--muted); }
.fs-goal strong { color: var(--fit-c, var(--ink)); font-weight: 500; }
.story-img { display: block; width: 62%; margin: 16px auto; aspect-ratio: 9 / 16; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); object-fit: cover; }

/* ---------- Carte d'athlète ---------- */
.athlete-card {
  position: relative; overflow: hidden; border-radius: 34px; padding: 24px 22px 20px; text-align: center;
  background:
    radial-gradient(80% 55% at 85% 0%, var(--m-halo, rgba(215, 245, 126, .35)), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(141, 227, 185, .14), transparent 70%),
    #121412;
  border: 1px solid var(--m-edge, var(--line-strong));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 50px var(--m-glow, transparent);
}
.athlete-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 45%, transparent 60%);
  animation: sheen 1.8s ease-in-out .3s 1 both;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ac-top { display: flex; justify-content: space-between; align-items: flex-start; text-align: left; }
.ac-rating { display: flex; align-items: center; gap: 14px; }
.ac-rating strong { font-family: var(--dot); font-weight: 900; font-size: 72px; line-height: .9; letter-spacing: .02em; }
.ac-side { display: grid; justify-items: start; gap: 6px; }
.ac-tier {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.ac-world { display: grid; line-height: 1.15; }
.ac-world b { font-size: 15px; font-weight: 500; }
.ac-world span { white-space: nowrap; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-brand { font-size: 11px; font-weight: 500; letter-spacing: .16em; line-height: 1.25; color: var(--muted); text-align: right; }
.ac-face {
  width: 108px; height: 108px; margin: 14px auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; font-weight: 300; letter-spacing: -.03em;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%);
  border: 1px solid var(--line-strong);
}
.ac-name { font-size: 26px; font-weight: 300; letter-spacing: -.03em; }
.ac-box { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Badges de niveau : métal + reflet */
.athlete-card[data-tier] .ac-tier {
  background: linear-gradient(110deg, var(--m-dark) 0%, var(--m-mid) 30%, var(--m-light) 45%, #fff 50%, var(--m-light) 55%, var(--m-mid) 70%, var(--m-dark) 100%);
  background-size: 250% 100%; color: var(--m-ink);
  box-shadow: 0 0 0 1px var(--m-edge), 0 4px 14px var(--m-glow);
  animation: shine 1.6s ease-in-out .5s 1 both;
}
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.athlete-card[data-tier="bronze"] { --m-dark: #7A4A26; --m-mid: #B87A45; --m-light: #E6B07A; --m-ink: #2A1608; --m-edge: rgba(214, 150, 95, .55); --m-glow: rgba(205, 127, 50, .25); --m-halo: rgba(214, 150, 95, .35); }
.athlete-card[data-tier="argent"] { --m-dark: #7D8894; --m-mid: #B9C3CE; --m-light: #E8EDF2; --m-ink: #17202B; --m-edge: rgba(214, 224, 235, .5); --m-glow: rgba(200, 214, 228, .18); --m-halo: rgba(214, 224, 235, .32); }
.athlete-card[data-tier="or"] { --m-dark: #9A6B12; --m-mid: #D9A52E; --m-light: #FFE08A; --m-ink: #2B1C02; --m-edge: rgba(255, 210, 110, .6); --m-glow: rgba(240, 180, 50, .3); --m-halo: rgba(255, 200, 90, .42); }
.athlete-card[data-tier="elite"] { --m-dark: #5B6CC9; --m-mid: #9C8CF0; --m-light: #D8F3FF; --m-ink: #120E2E; --m-edge: rgba(190, 200, 255, .6); --m-glow: rgba(150, 140, 255, .3); --m-halo: rgba(170, 220, 255, .4); }

/* ---------- Tuiles de compétences (façon « veri ») ---------- */

/* ---------- Hexagone néon ---------- */

/* ---------- Menus déroulants ---------- */
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.fold-ico { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 18px; color: var(--muted); transition: transform .2s; }
details.fold[open] .fold-ico { transform: rotate(45deg); }
details.fold[open] > summary { margin-bottom: 14px; }
details.fold-mini { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
details.fold-mini > summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
details.fold-mini > summary::-webkit-details-marker { display: none; }
details.fold-mini > summary::before { content: "+ "; color: var(--accent); }
details.fold-mini[open] > summary::before { content: "– "; }
details.fold-mini p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
details.fold-mini b { color: var(--ink); font-weight: 500; }

/* ---------- Notes, max, benchmarks, Open ---------- */
.skill-list { list-style: none; display: grid; gap: 16px; }
.sk-head { display: flex; justify-content: space-between; align-items: baseline; }
.sk-head b { font-weight: 500; }
.sk-head strong { font-size: 22px; font-weight: 300; }
.sk-bar { height: 4px; border-radius: 2px; background: var(--surface-2); margin: 8px 0 6px; overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.sk-meta { color: var(--muted); font-size: 12px; }
.sk-prov { color: var(--warn); }

.open-list { list-style: none; }
.open-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.open-row:first-child { border-top: 0; padding-top: 0; }
.open-id { font-size: 15px; color: var(--accent); }
.open-score b { font-weight: 500; }
.open-desc { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.open-ref { color: var(--faint); font-size: 11.5px; margin-top: 4px; line-height: 1.35; }
.open-pct { text-align: right; }
.open-pct b { display: block; font-family: var(--dot); font-weight: 900; font-size: 22px; }
.open-pct span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.open-row.is-out { opacity: .4; }

.settings { display: grid; justify-items: start; gap: 4px; }
.confirm { width: 100%; display: grid; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.confirm .ghost-btn { margin: 0; }

/* ---------- Barre d'onglets flottante en verre ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 420px; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;   /* Whiteboard, Fil, Perfs, Profil */
  background: rgba(30, 32, 30, .74); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: 999px;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 999px; color: var(--faint); font-size: 11px; text-align: center; }
.tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: var(--accent); background: var(--accent-soft); }

/* ---------- Panneaux du bas ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 8; background: rgba(0, 0, 0, .6); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 9; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  background: #161816;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 32px 32px 0 0;
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 24px + var(--kb, 0px));   /* --kb : hauteur du clavier (app.js) */
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
/* Fermés, les panneaux sont vraiment cachés (sinon Safari les laisse dépasser en bas en défilant) */
.sheet.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 18px; }
.sheet { overscroll-behavior: contain; }
.sheet-title { font-size: 24px; font-weight: 300; text-align: center; letter-spacing: -.03em; }
.time { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0; }
.time b { font-family: var(--dot); font-weight: 900; font-size: 44px; color: var(--muted); margin-bottom: 22px; }
.time label { display: grid; justify-items: center; gap: 6px; }
.time input {
  width: 112px; height: 104px; border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(80% 80% at 50% 30%, rgba(215, 245, 126, .12), transparent 70%), var(--surface);
  color: var(--ink); font: 900 50px var(--dot); text-align: center; letter-spacing: .02em; outline: none;
  -webkit-appearance: none; transition: border-color .15s;
}
/* Charges à virgule (102,5) et reps à 4 chiffres (1250) : la case s'élargit pour tout montrer */
.time input[maxlength="4"] { width: 140px; }
.time input[maxlength="5"] { width: 176px; }
.time input::placeholder { color: rgba(244, 245, 241, .2); }
.time input:focus { border-color: var(--accent); }
.time span { color: var(--muted); font-size: 12px; }
/* Score en plusieurs totaux (Box Jump + Pull-up) : une case par mouvement, côte à côte */
.reps-parts { display: flex; justify-content: center; gap: 10px; }
.reps-parts input[maxlength="4"] { width: 128px; }
.reps-parts:has(> :nth-child(3)) input[maxlength="4"] { width: 92px; height: 88px; font-size: 38px; }
.time-res .eq.parts { line-height: 1.25; }
.sheet-hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }

/* Benchmarks */
.bench-search { margin: 14px 0 8px; }
.bench-pick-list { list-style: none; max-height: 56vh; overflow-y: auto; }
.bench-group { color: var(--muted); font-size: 12px; padding: 16px 0 6px; }
.bench-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); }
.bench-item b { font-weight: 500; }
.bench-item small { grid-column: 1; color: var(--muted); font-size: 12px; line-height: 1.35; }
.bench-item em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.bench-desc { color: var(--muted); font-size: 14px; line-height: 1.45; text-align: center; margin-top: 6px; }
.center-text { text-align: center; }

/* ---------- Page de présentation (lien partagé, pas encore connecté) ----------
   Courte : en un scroll, le titre, trois écrans de la vraie appli, quatre tuiles, l'inscription. */
.intro { display: none; max-width: 1120px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 40px); }
.intro.is-on { display: block; animation: enter .35s ease; }
.in-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.in-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.in-brand .brand-mark { --d: 34px; }
.in-word { display: block; height: 15px; width: auto; }
.in-login { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }

.in-hero { display: grid; gap: 30px; padding-top: 4vh; }
.in-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.in-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.in-title { font-size: clamp(54px, 15.5vw, 100px); font-weight: 200; letter-spacing: -.055em; line-height: .94; margin-top: 20px; }
.in-title em { font-style: normal; color: var(--accent); text-shadow: 0 0 38px rgba(215, 245, 126, .35); }
.in-lead { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 30em; margin-top: 18px; }
.in-cta { display: grid; gap: 10px; margin-top: 26px; max-width: 420px; }
.in-arr { font-size: 18px; line-height: 1; }
.in-ghost { min-height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; text-align: center; }
.in-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.in-proof li { display: inline-flex; align-items: center; gap: 7px; }
.in-proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Trois écrans de l'appli en éventail, coupés en bas par un fondu */
.in-phones {
  position: relative; width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / .96;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.in-phones::before { content: ""; position: absolute; inset: 8% 18% 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(215, 245, 126, .28), transparent); filter: blur(30px); }
.in-phone {
  position: absolute; margin: 0; padding: 2.2%; border-radius: 34px; background: #050605;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  transform: rotate(var(--r, 0deg)); animation: in-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.in-phone img { display: block; width: 100%; height: auto; border-radius: 28px; background: var(--solid); }
.in-phone.is-mid { width: 52%; left: 24%; top: 0; z-index: 3; animation-delay: .1s; }
.in-phone.is-left, .in-phone.is-right { width: 42%; top: 13%; z-index: 2; border-radius: 28px; filter: brightness(.82); }
.in-phone.is-left img, .in-phone.is-right img { border-radius: 23px; }
.in-phone.is-left { left: 0; --r: -7deg; animation-delay: .25s; }
.in-phone.is-right { right: 0; --r: 7deg; animation-delay: .35s; }
@keyframes in-rise { from { opacity: 0; transform: translateY(60px) rotate(var(--r, 0deg)); } }

/* Quatre tuiles, chacune avec son halo de couleur */
.in-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.in-tile {
  --halo: rgba(215, 245, 126, .22); --val: var(--ink);
  position: relative; overflow: hidden; padding: 18px 16px 20px; border-radius: 26px;
  background: rgba(22, 24, 22, .92); border: 1px solid var(--line);
}
.in-tile::before { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; top: -60px; border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent); }
.in-tile.is-gold { --halo: rgba(244, 194, 122, .3); --val: var(--pr); }
.in-tile.is-pink { --halo: rgba(255, 79, 163, .22); }
.in-tile.is-mint { --halo: rgba(141, 227, 185, .24); --val: var(--mint); }
.in-tile b { position: relative; display: flex; align-items: flex-end; height: 40px; font-size: 40px; line-height: 1; color: var(--val); margin-bottom: 14px; }
.in-tile b small { font-size: 22px; margin-left: 3px; }
.in-tile b:not(.dot) { font-size: 34px; }
.in-tile h3 { position: relative; font-size: 17px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.in-tile p { position: relative; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.in-final { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 460px; margin: 44px auto 0; }
.in-final h2 { font-size: clamp(38px, 10vw, 58px); font-weight: 200; letter-spacing: -.05em; line-height: 1; }
.in-final h2 em { font-style: normal; color: var(--accent); }
.in-steps { list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.in-steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.in-steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--dot); font-weight: 900; font-size: 13px; }
.in-final .cta { max-width: 420px; }
.in-foot { color: var(--faint); font-size: 12px; margin-top: 8px; }

@media (min-width: 900px) {
  .intro { padding-left: 40px; padding-right: 40px; }
  .in-hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 5vh; }
  .in-cta { grid-auto-flow: column; justify-content: start; max-width: none; }
  .in-cta .cta { width: auto; padding: 15px 28px; }
  .in-ghost { padding: 0 26px; }
  .in-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
  .in-final { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .in-phone, .intro.is-on { animation: none; } }

/* ---------- Succès façon Strava (succes.js) : cartes en verre sombre éclairées de l'intérieur ---------- */
.sx-w { --c: #F4F5F1; --g: rgba(255, 255, 255, .12); position: relative; overflow: hidden; border-radius: 24px; padding: 13px 14px;
  background: radial-gradient(110% 80% at 15% 115%, var(--g), transparent 62%), rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--ink); }
.sx-lbl { font-size: 13px; line-height: 1.2; }
.sx-lbl span { display: block; color: rgba(244, 245, 241, .42); }
.sx-thin { font-size: 38px; font-weight: 200; letter-spacing: -.04em; line-height: 1; margin-top: 10px; }
.sx-thin em { font-style: normal; color: rgba(244, 245, 241, .3); }
.sx-tag { position: absolute; top: 13px; right: 14px; font-size: 11.5px; color: var(--c); }
.sx-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sx-curve { color: var(--c); margin-top: auto; overflow: visible; }
.sx-dots { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.sx-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.sx-dots i.up { background: color-mix(in srgb, var(--c) 55%, transparent); }
.sx-dots i.me { background: var(--accent); box-shadow: 0 0 10px rgba(215, 245, 126, .7); }
.sx-caps { display: flex; gap: 5px; height: 40px; margin-top: 10px; }
.sx-caps i { flex: 1; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.sx-caps i.on { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, transparent), color-mix(in srgb, var(--c) 18%, transparent)); }
.sx-caps i.now { background: linear-gradient(180deg, #fff, var(--c)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.sx-caps i.now.off { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.sx-bars { display: flex; gap: 6px; align-items: flex-end; height: 34px; margin-top: 8px; }
.sx-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, transparent), color-mix(in srgb, var(--c) 15%, transparent)); }
.sx-ring { position: absolute; top: 13px; right: 13px; width: 42px; height: 42px; transform: rotate(-90deg); }
.sx-ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 8; }
.sx-ring circle.on { stroke: var(--c); stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 60%, transparent)); }
.sx-w.off { background: transparent; border: 1px dashed rgba(255, 255, 255, .1); box-shadow: none; }
.sx-w.off .sx-lbl, .sx-w.off .sx-thin { color: rgba(244, 245, 241, .3); }
.sx-w.off .sx-lbl span, .sx-w.off .sx-foot { color: rgba(244, 245, 241, .2); }
.sx-med { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12.5px;
  background: radial-gradient(120% 120% at 0% 100%, var(--g), transparent 70%), rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.sx-med i { min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; font: 900 9.5px var(--dot); font-style: normal; color: #0B0D06; background: var(--c); }

/* L'écran « Bien joué » : plein écran, sans confettis ; les éléments s'allument l'un après l'autre */
.cel { position: fixed; inset: 0; z-index: 30; overflow-y: auto; opacity: 0; transition: opacity .25s;
  background: radial-gradient(60% 30% at 50% 16%, rgba(215, 245, 126, .08), transparent 70%), #030403; }
.cel.is-on { opacity: 1; }
body.cel-open { overflow: hidden; }
.cel-in { min-height: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px); }
.cel-top { display: flex; justify-content: space-between; align-items: center; }
.cel-top span { font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); max-width: 78%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cel-top button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .1); color: var(--muted); font-size: 13px; text-align: center; }
.cel-hero { text-align: center; margin: 14px 0 4px; }
.cel-hero p { font-size: 13.5px; color: var(--muted); }
.cel-hero b { display: block; font: 900 clamp(60px, 21vw, 86px)/1 var(--dot); margin: 10px 0; text-shadow: 0 0 40px rgba(244, 245, 241, .14); }
.cel-hero small { font-size: 13px; color: var(--accent); }
.cel-hero small em { font-style: normal; color: var(--muted); }
.cel-meds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cel-grid .tall { grid-row: span 2; display: flex; flex-direction: column; min-height: 230px; }
.cel-fit { display: flex; align-items: center; gap: 12px; }
.cel-fit b { font: 900 20px var(--dot); }
.cel-fit .sx-scale { flex: 1; height: 16px; position: relative; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 6px); }
.cel-fit .sx-scale::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: repeating-linear-gradient(90deg, rgba(215, 245, 126, .9) 0 1px, transparent 1px 6px); }
.cel-fit small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cel-bar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.cel-round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.cel-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cel-round.is-ghost { background: none; }
.cel-pill { height: 52px; padding: 0 38px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: #0B0D06; background: var(--accent); box-shadow: 0 0 34px rgba(215, 245, 126, .28); text-align: center; }
.cel.is-on .cel-hero, .cel.is-on .sx-med, .cel.is-on .cel-grid > *, .cel.is-on .cel-fit { animation: sx-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.cel.is-on .sx-med:nth-child(1) { animation-delay: .35s; } .cel.is-on .sx-med:nth-child(2) { animation-delay: .7s; } .cel.is-on .sx-med:nth-child(3) { animation-delay: 1.05s; }
.cel.is-on .cel-grid > :nth-child(1) { animation-delay: .25s; } .cel.is-on .cel-grid > :nth-child(2) { animation-delay: .4s; } .cel.is-on .cel-grid > :nth-child(3) { animation-delay: .55s; }
.cel.is-on .cel-fit { animation-delay: .7s; }
@keyframes sx-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cel.is-on * { animation: none !important; } }

/* Mes succès (profil) */
.succ { display: grid; gap: 10px; }
.succ-head h3 { font-size: 22px; font-weight: 300; letter-spacing: -.03em; padding: 4px 4px 0; }
.succ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.succ-grid .sx-w { min-height: 146px; display: flex; flex-direction: column; height: 100%; }
.succ-grid > div:not(.sx-w) { display: flex; }
.succ-grid > div:not(.sx-w) > .sx-w { flex: 1; }
.succ-grid .sx-v { margin-top: auto; }

/* ---------- Photo de profil (photo.js) ---------- */
.fit-face, .avatar { position: relative; padding: 0; overflow: visible; }
.fit-face img, .avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fit-face:disabled { opacity: 1; cursor: default; }
/* Pas encore de photo sur sa carte : petit « + » lime pour inviter à en ajouter une */
.fit-face.no-photo::after {
  content: "+"; position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 2px #0E100E;
}
.crop { width: min(280px, 72vw); aspect-ratio: 1; margin: 18px auto 10px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px rgba(215, 245, 126, .12), 0 20px 50px rgba(0, 0, 0, .5); touch-action: none; }
.crop canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.crop-zoom { display: flex; align-items: center; gap: 12px; max-width: 300px; margin: 6px auto 16px; color: var(--muted); font-size: 20px; }
.crop-zoom input { flex: 1; accent-color: var(--accent); }

/* ---------- Score en team (22/10/2026) ---------- */
.team-mode { margin-top: 12px; }
.team-pick { display: grid; gap: 10px; margin: 12px 0 4px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.team-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .3); font-size: 14px; }
.team-chip i, .team-list i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 500 11px var(--font); font-style: normal; flex: none; }
.team-chip button { width: 24px; height: 24px; border-radius: 50%; color: var(--muted); font-size: 17px; line-height: 1; text-align: center; }
.team-empty { color: var(--muted); font-size: 14px; padding: 4px 2px; }
.team-search { width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); outline: none; font-size: 16px; }
.team-search:focus { border-color: var(--accent); }
.team-list { list-style: none; display: grid; gap: 2px; }
.team-list button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px; }
.team-list button:disabled { opacity: .45; }
.team-list span { font-size: 15px; }
.team-list small { display: block; color: var(--muted); font-size: 12px; }
.team-list b { color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; }
.team-hint { color: var(--muted); font-size: 13px; padding: 6px; }
/* Ligne d'équipe au whiteboard : les prénoms sur deux lignes au besoin, les initiales en grappe dans le rond de 40 px */
.row.is-team .who b { white-space: normal; line-height: 1.25; }
.face.team { position: relative; background: none; border: 0; }
.face.team i {
  position: absolute; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  font: 600 9.5px var(--font); font-style: normal; background: #2A2D2A; color: var(--ink); border: 2px solid #161816;
}
.face.team i:nth-child(1) { left: -2px; top: 0; }
.face.team i:nth-child(2) { right: -2px; top: 4px; background: #343834; }
.face.team i:nth-child(3) { left: 8px; bottom: -3px; background: #3E433E; }
.face.team i:only-child { position: static; width: 40px; height: 40px; font-size: 13px; }
.row.is-me .face.team i { border-color: #232920; }

/* ---------- Mettre l'appli sur l'écran d'accueil (installer.js) ---------- */
.in-install {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px;
}
.in-install svg, .ib-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Bandeau en haut du whiteboard : une ligne, fermable */
.install-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  border: 1px solid rgba(215, 245, 126, .28); border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(215, 245, 126, .12), transparent 60%), rgba(22, 24, 22, .92);
}
.ib-main { display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 10px; min-width: 0; }
.ib-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.ib-main b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.ib-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ib-close { width: 44px; height: 44px; margin-right: 4px; border-radius: 50%; color: var(--muted); font-size: 22px; line-height: 1; text-align: center; }
/* Panneau du guide */
.ins-app { display: grid; justify-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13px; color: var(--muted); }
.ins-app img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.ins-steps { list-style: none; display: grid; gap: 10px; margin: 20px 0 6px; counter-reset: ins; }
.ins-steps li {
  counter-increment: ins; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.ins-ico { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); }
.ins-ico::after {
  content: counter(ins); position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 11px var(--dot);
}
.ins-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ins-ico svg circle { fill: var(--accent); stroke: none; }
.ins-steps b { display: block; font-size: 15px; font-weight: 500; }
.ins-steps small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
/* Barre de Safari dessinée, le bouton à toucher entouré de lime */
.ins-bar {
  display: flex; align-items: center; justify-content: space-around; gap: 10px; margin: 16px auto 0; max-width: 340px;
  padding: 10px 14px; border-radius: 999px; background: #232523; border: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.ins-bar .ib-url { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink); font-size: 13px; }
.ib-hl {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; font-style: normal;
  color: var(--accent); box-shadow: 0 0 0 2px var(--accent); animation: ib-pulse 1.6s ease-in-out infinite;
}
.ib-hl svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ib-pulse { 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px rgba(215, 245, 126, .18); } }
.ins-note { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.45; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .ib-hl { animation: none; } }

/* ---------- Connexion et formulaires ---------- */
.welcome { display: grid; gap: 18px; padding-top: 6vh; }
/* Le sigle mūe club : 3 bandes penchées, blanches (09/11/2026, page « LOGO STOCK » de MUE Communication.ai).
   --d = sa largeur ; l'image fait 480 × 267 */
.brand-mark {
  --d: 64px;
  width: var(--d); height: calc(var(--d) * .556); flex: none;
  background: url("logo-sigle.png") center / contain no-repeat;
}
/* Connexion : le sigle, « mūe club » plus petit dessous, puis les deux phrases de la marque, tout au centre (Mario, 09/11/2026) */
.welcome-brand { display: grid; justify-items: center; text-align: center; margin-bottom: 6px; }
.welcome-brand .brand-mark { --d: 96px; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .35)); }
.welcome-word { display: block; width: 104px; height: auto; margin-top: 16px; }
.welcome-tag { display: grid; gap: 2px; margin-top: 14px; }
.welcome-tag b { font: italic 800 13px "Work Sans", var(--font); letter-spacing: .02em; }
.welcome-tag span { font: 200 12px "Azeret Mono", ui-monospace, monospace; color: var(--muted); }
.welcome-title { font-size: 44px; font-weight: 200; letter-spacing: -.05em; line-height: 1; text-align: center; }
.welcome-sub { color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
/* Haut de l'écran du jour : le sigle seul, au-dessus de « Salut … » */
.top-sigle { --d: 30px; display: block; margin-bottom: 10px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--muted); font-size: 13px; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); outline: none; font-size: 16px; transition: border-color .15s;
}
.field textarea { border-radius: var(--radius-sm); resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--warn); font-size: 14px; }

/* ---------- Message ---------- */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); z-index: 20;
  transform: translate(-50%, calc(-100% - env(safe-area-inset-top) - 40px)); visibility: hidden;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Carnet de records ---------- */
.pill-add { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.weight-line { font-size: 13px; color: var(--muted); margin: -6px 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.weight-line b { color: var(--ink); font-weight: 500; }
.weight-line .link-btn { font-size: 13px; padding: 0; }
.rec-list { list-style: none; }
.rec-list > li + li { border-top: 1px solid var(--line); }
.rec-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(60px, auto); gap: 10px; align-items: center; padding: 12px 0; text-align: left; }
.rec-name { min-width: 0; font-weight: 500; }
.rec-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.rec-val { font-size: 19px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-note { text-align: right; display: grid; justify-items: end; line-height: 1.1; }
.rec-note b { font-family: var(--dot); font-weight: 900; font-size: 22px; }
.rec-note b.ratio { font-size: 17px; }
.rec-note i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.date-field { margin: 4px 0 16px; }
.date-field input { color-scheme: dark; }
.hist-curve { margin: 8px -6px 4px; }
.hist-list { list-style: none; margin: 8px 0 16px; max-height: 40vh; overflow-y: auto; }
.hist-row { display: grid; grid-template-columns: 1fr auto 48px 32px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hist-row span { color: var(--muted); }
.hist-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hist-row small { color: var(--muted); font-size: 12px; text-align: right; }
.hist-del { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); text-align: center; line-height: 1; }
#bench-new { margin: 4px 0 6px; }

/* ---------- Accueil : la box ---------- */
.box-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.box-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--club, var(--accent)); box-shadow: 0 0 10px var(--club, var(--accent)); }
.top .date { margin-top: 4px; }
.moves li.rest { padding: 6px 0; border-top: 0; }
.moves li.rest .mv { justify-content: center; }
.moves li.rest .mv-name { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Compteur de séances ---------- */
.counter { background: radial-gradient(70% 70% at 100% 0%, rgba(215, 245, 126, .16), transparent 70%), var(--surface); }
.ct-main { display: flex; align-items: center; gap: 18px; }
.ct-big { font-size: 76px; line-height: .9; }
.ct-side { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.ct-side b { color: var(--ink); font-weight: 500; }
.ct-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; margin-top: 18px; }
.ctm { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ctm .pile { display: flex; flex-direction: column-reverse; gap: 3px; }
.ctm .pile i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ctm .pile i.on { background: var(--accent); box-shadow: 0 0 6px rgba(215, 245, 126, .55); }
.ctm.future .pile i { opacity: .4; }
.ctm span { font-size: 10px; color: var(--faint); }
.ctm.now span { color: var(--accent); }
.ct-goal { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ct-goal strong { color: var(--accent); font-weight: 500; }

/* ---------- Ton profil : forces, faiblesses, fils néon ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.duo > div { border-radius: 22px; padding: 14px; border: 1px solid var(--line); }
.duo .up { background: radial-gradient(90% 90% at 80% 10%, rgba(215, 245, 126, .32), transparent 70%), #121410; }
.duo .down { background: radial-gradient(90% 90% at 80% 10%, rgba(244, 194, 122, .26), transparent 70%), #141210; }
.duo small { font-size: 11px; color: var(--muted); display: block; }
.duo strong { display: block; font-size: 16px; font-weight: 500; margin-top: 6px; }
.duo b { display: block; font-size: 44px; line-height: 1; margin-top: 4px; }
.duo p { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.rings { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.rings svg { width: 150px; height: 150px; transform: rotate(-90deg); overflow: visible; }
/* Le Fit Level au centre des anneaux (14/11/2026) */
.rg-ring { position: relative; display: grid; place-items: center; }
.rg-mid { position: absolute; font-size: 24px; line-height: 1; }
.rg-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 7; }
.rg-arc { fill: none; stroke-width: 7; stroke-linecap: round; }
.rg-list { display: grid; gap: 7px; font-size: 13px; }
.rg-list div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rg-list span { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rg-list i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rg-list b { font-size: 17px; }
.rg-list .best span { color: var(--ink); }
.rg-list .best b { color: var(--accent); }

/* ---------- Navigation dans les jours ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: -4px; }
.week-nav span { font-size: 13px; color: var(--muted); }
.wk-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); font-size: 18px; line-height: 1; text-align: center; }
.wk-arrow:disabled { opacity: .25; }
button.dpill { color: var(--ink); }
.dpill.is-future { opacity: .25; }
.dpill.is-past { opacity: .7; }
.dpill.is-today { border-color: var(--accent); }
.dpill.is-today small { color: var(--accent); }
.dpill.is-sel { background: var(--ink); border-color: var(--ink); color: var(--bg); opacity: 1; }
.dpill.is-sel small { color: rgba(10, 11, 10, .6); }

/* Listes déroulantes (choix de la box) */
.select {
  width: 100%; padding: 14px 44px 14px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 400 16px var(--font); appearance: none; -webkit-appearance: none; color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23F4F5F1' stroke-opacity='.6' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px;
}
.select option { background: var(--solid); }
.box-field { width: 100%; margin-bottom: 8px; }
#link-open { margin-top: 14px; }

/* Ligne de l'athlète qui vient d'enregistrer son score : un éclat lime */
.row.just-saved { animation: saved 2.4s ease-out; }
@keyframes saved { 0%, 30% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(215, 245, 126, .5); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Tirer vers le bas pour actualiser */
.ptr {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 50%; z-index: 20;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #16181b; border: 1px solid var(--line); color: var(--muted);
  transform: translate(-50%, -56px); opacity: 0; pointer-events: none;
}
.ptr i { font-style: normal; font-size: 20px; line-height: 1; }
.ptr.is-ready, .ptr.is-loading { color: var(--accent); border-color: var(--accent); }
.ptr.is-loading i { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

.share-score { margin-top: 12px; width: 100%; justify-content: center; min-height: 46px; font-size: 15px; border-color: rgba(215, 245, 126, .5); color: var(--accent); background: var(--accent-soft); }

/* Jour en cours de chargement */
.wod.is-loading #wod-body, .wod.is-loading #wod-empty { opacity: .35; transition: opacity .2s; }

/* Parties de la séance : 1 · Technique, 2 · WOD (la partie notée a le format en gros) */
.wod-part { margin-top: 22px; }
.wod-part + .wod-part { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.part-head {
  display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.part-head b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--dot); font-weight: 900; font-size: 15px; letter-spacing: 0;
  border: 1px solid var(--line-strong); color: var(--ink);
}
.wod-part.is-scored .part-head { color: var(--accent); }
.wod-part.is-scored .part-head b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wod-part .wod-format { margin-top: 12px; }
.wod-part .moves { margin-top: 12px; }
.wod-part:not(.is-scored) .moves li { padding: 9px 0; }

/* Partage du score : choix photo / fond / sticker ; le sticker s'affiche sur un damier */
.story-tools { justify-content: center; margin: 4px 0 10px; }
.story-tools .seg-btn { flex: 1; }
.story-img.is-sticker {
  background: repeating-conic-gradient(#2a2c2a 0 25%, #1c1e1c 0 50%) 0 0 / 22px 22px; border-radius: 18px;
  aspect-ratio: auto; object-fit: contain; width: 86%;
}
#story-copy + #story-share { margin-top: 10px; }

/* ---------- Social : potes et mini commentaires ---------- */
.acts { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.acts .bump, .talk { min-width: 54px; }
.talk {
  height: 30px; padding: 0 10px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent;
}
.talk.is-on { background: var(--accent-soft); border-color: rgba(215, 245, 126, .5); }
/* Commentaires toujours visibles sous le score, dans le style discret du « RX » */
.row-talk { list-style: none; margin: -6px 0 10px 76px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.row.is-me + .row-talk { margin-top: 2px; }
.talk-line { font-size: 13px; line-height: 1.35; color: var(--muted); position: relative; padding-right: 22px; overflow-wrap: anywhere; }
.talk-line b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.talk-more { justify-self: start; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 2px; }
.comment-del { position: absolute; right: 0; top: -3px; width: 22px; height: 22px; color: var(--faint, var(--muted)); font-size: 15px; }
.quick-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.comment-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; width: 100%; }
.comment-form input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(10, 11, 10, .55); color: var(--ink); font: 400 16px var(--font);
}
.comment-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 700; }

.follow-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.follow-btn.is-on { background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 500; }
.follow-btn.small { padding: 7px 14px; font-size: 13px; }
.friends .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.friend-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 14px;
}
.friend-chip .face { width: 30px; height: 30px; font-size: 11px; }
.people { list-style: none; max-height: 58vh; overflow-y: auto; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.person-who { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; color: var(--ink); }
.person-who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-who small { color: var(--muted); font-size: 12px; }
.acts .bump { height: 30px; padding: 0 10px; justify-content: center; }

/* ---------- Notifications : cloche, pastille, panneau ---------- */
.top-actions { display: flex; align-items: center; gap: 10px; }
.bell {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(10, 11, 10, .4); color: var(--ink);
}
.bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bell.has-new { border-color: rgba(215, 245, 126, .6); }
.bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font: 700 11px var(--font); box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(215, 245, 126, .6);
}
/* Les cartes débordent de 8 px de chaque côté (margin: 0 -8px) : la liste leur fait la place, sans glisser de côté */
.notif-list { list-style: none; max-height: 66vh; overflow-y: auto; overflow-x: hidden; margin: 0 -8px; padding: 0 8px; }
.notif { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 18px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.is-new { background: var(--accent-soft); }
.notif-main { flex: 1; display: flex; align-items: flex-start; gap: 12px; min-width: 0; text-align: left; color: var(--ink); }
.notif-main .face { flex: none; }
.notif-text { font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.notif-text b { font-weight: 600; }
.notif-text q { display: block; color: var(--ink); opacity: .85; margin-top: 2px; }
.notif-text q::before { content: "« "; } .notif-text q::after { content: " »"; }
.notif-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.rg-need { color: var(--accent); font-size: 11px; white-space: nowrap; }

/* Bandeau du profil : ce qui manque pour un niveau fiable */
.nudge {
  margin: 4px 0 14px; padding: 18px 18px 10px; border-radius: 28px;
  background: radial-gradient(80% 90% at 100% 0%, rgba(215, 245, 126, .22), transparent 70%), #121411;
  border: 1px solid rgba(215, 245, 126, .35);
}
.nudge-title { font-size: 17px; font-weight: 500; }
.nudge-title b { font-family: var(--dot); font-weight: 900; color: var(--accent); font-size: 20px; }
.nudge-text { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.nudge-step {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.nudge-step b { display: block; font-weight: 600; font-size: 15px; }
.nudge-step small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nudge-step i { font-style: normal; color: var(--accent); font-size: 24px; line-height: 1; }

/* Fiabilité du Fit Level */
.fit-trust { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.fit-trust b { color: var(--ink); font-weight: 600; }
.trust-dots { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.trust-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.trust-dots i.on { background: var(--accent); box-shadow: 0 0 8px rgba(215, 245, 126, .6); }
.fit-trust small { display: block; font-size: 12px; margin-top: 3px; }
.fit-trust .fit-new { max-width: 290px; margin: 8px auto 0; font-size: 11px; line-height: 1.35; color: var(--faint); }

/* WOD lié au profil (benchmark, jour de max, Open rejoué) */
.wod-link {
  display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px; font-size: 13px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .35);
}

/* Écran d'attente au démarrage */
.boot { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--bg); }
.boot .brand-mark { --d: 110px; filter: drop-shadow(0 0 20px rgba(255, 255, 255, .4)); animation: boot-pulse 1.4s ease-in-out infinite; }
.boot-msg { display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--muted); padding: 0 32px; }
.boot-msg .brand-mark { animation: none; }
@keyframes boot-pulse { 50% { opacity: .45; } }

/* ---------- Corrections de la revue (22/10/2026) ---------- */
/* Bande sous l'heure et la batterie : le contenu ne passe plus dessous en défilant */
body::after {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); z-index: 6;
  pointer-events: none; background: linear-gradient(var(--bg) 70%, transparent);
}
.wod-tag { white-space: nowrap; }
.time-res .eq { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1; }
.score-equiv { margin: -8px 0 18px; text-align: center; font-size: 14px; color: var(--muted); }
.score-equiv b { color: var(--ink); font-weight: 500; }
.time-res small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1; }
/* Cibles tactiles plus confortables */
.acts .bump, .talk { height: 34px; min-width: 58px; }
.wk-arrow { min-width: 40px; min-height: 40px; }
.comment-del { width: 32px; height: 32px; top: -8px; right: -6px; }
.bead-glow { animation-iteration-count: 3; }

/* iPhone : pas de zoom au double toucher, pas de rebond natif en plus du « tirer pour actualiser »,
   et le fond assombri d'un panneau ne fait pas défiler la page derrière */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html, body { overscroll-behavior-y: none; }
.sheet-bg { touch-action: none; }
/* Champ de commentaire sur toute la largeur de la carte */
.comment-form { margin-left: -76px; width: calc(100% + 76px); }
/* « Trouver mes potes » : avatar bien rond, noms longs coupés proprement */
.person-who .face { flex: none; }
.person-who > span { min-width: 0; }

/* ---------- Mes WOD : derniers scores et recherche ---------- */
.my-wods .card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.mw-count { color: var(--muted); font-size: 13px; }
.mw-search-field { margin-bottom: 4px; }
.mw-search-field input { font-size: 16px; }
.mw-list { list-style: none; }
.mw-row {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink);
}
.mw-list li:first-child .mw-row { border-top: 0; }
.mw-date { display: grid; justify-items: center; line-height: 1; }
.mw-date b { font-family: var(--dot); font-weight: 900; font-size: 22px; }
.mw-date small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.mw-what { min-width: 0; }
.mw-what b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-what small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-score { text-align: right; font-size: 17px; font-weight: 300; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mw-score small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.mw-score small.rx-plus { color: var(--accent); font-weight: 600; }

/* ---------- Titres et en-tête du WOD (22/10/2026) ---------- */
/* Titres des cartes dans la police à points, comme les gros chiffres */
.card-head h3, .board-head h3, details.fold > summary h3 {
  font-family: var(--dot); font-weight: 900; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
}
/* « WOD DU JOUR » sans bulle : simple étiquette lime à points */
.wod-tag {
  background: none; padding: 0; border-radius: 0; color: var(--accent);
  font-family: var(--dot); font-weight: 900; font-size: 16px; letter-spacing: .1em;
}
/* Format du WOD un peu plus discret */
.wod-kind { font-size: 38px; }
.wod-cap { font-size: 18px; padding: 3px 10px; }
/* « Voir plus » sous une liste */
.more-btn {
  display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 999px; font-size: 14px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
}

/* Message d'adhésion à une salle */
.box-consent { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: -4px 2px 14px; }

/* Salle pas encore sur mue club (box-ouverte.js) */
.newbox { display: grid; gap: 10px; margin: -2px 0 14px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.newbox-sugg { display: grid; gap: 6px; }
.newbox-sugg:empty { display: none; }
.newbox-pick { text-align: left; padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--ink); background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .3); }
.newbox-hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.newbox .cta { min-height: 48px; }
.wod-by { color: var(--muted); font-size: 12.5px; margin: 14px 2px 0; }

/* Inviter un pote */
.invite-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px;
  padding: 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .4);
}
.invite-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.people .empty .invite-btn { margin-top: 12px; }

/* ---------- Profil : CrossFit ou HYROX ---------- */
.sport-switch { margin: -2px 0 2px; }
.sport-switch .seg-btn { padding: 11px 14px; font-size: 14px; letter-spacing: .02em; }
.view[data-sport="hyrox"] .cf-only, .view:not([data-sport="hyrox"]) .hx-only { display: none !important; }
.hx-hero.is-loading .fit-value { opacity: .35; }
.s-note-sm { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 12px; }

/* Dernière course */
.hx-race { position: relative; overflow: hidden;
  background: radial-gradient(70% 60% at 100% 0%, rgba(169, 155, 255, .2), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(255, 143, 177, .12), transparent 70%), rgba(22, 24, 22, .92); }
.hx-race-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hx-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hx-event { font-size: 22px; font-weight: 400; letter-spacing: -.02em; margin-top: 4px; }
.hx-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
.hx-total { font-size: 58px; line-height: 1; margin: 16px 0 12px; letter-spacing: .02em; }
.hx-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hx-ranks div { padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.hx-ranks b { display: block; font-size: 17px; font-weight: 500; white-space: nowrap; }
.hx-ranks sup { font-size: 10px; }
.hx-ranks small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.3; }
.hx-split { display: flex; gap: 3px; height: 10px; margin-top: 16px; }
.hx-split i { border-radius: 999px; }
.hx-split .run, .hx-split-legend .run { --hc: #FF8FB1; }
.hx-split .work, .hx-split-legend .work { --hc: #A99BFF; }
.hx-split .rox, .hx-split-legend .rox { --hc: #7FE0EA; }
.hx-split i { background: var(--hc); box-shadow: 0 0 12px color-mix(in srgb, var(--hc) 50%, transparent); }
.hx-split-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.hx-split-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hc); margin-right: 6px; }
.hx-split-legend b { color: var(--ink); font-weight: 500; }
/* Badge métal (mêmes métaux que la carte d'athlète) */
.hx-tier { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(110deg, var(--m-dark) 0%, var(--m-mid) 30%, var(--m-light) 45%, #fff 50%, var(--m-light) 55%, var(--m-mid) 70%, var(--m-dark) 100%);
  background-size: 250% 100%; color: var(--m-ink); box-shadow: 0 0 0 1px var(--m-edge), 0 4px 14px var(--m-glow); animation: shine 1.6s ease-in-out .4s 1 both; }
.hx-tier[data-tier="bronze"] { --m-dark: #7A4A26; --m-mid: #B87A45; --m-light: #E6B07A; --m-ink: #2A1608; --m-edge: rgba(214, 150, 95, .55); --m-glow: rgba(205, 127, 50, .25); }
.hx-tier[data-tier="argent"] { --m-dark: #7D8894; --m-mid: #B9C3CE; --m-light: #E8EDF2; --m-ink: #17202B; --m-edge: rgba(214, 224, 235, .5); --m-glow: rgba(200, 214, 228, .18); }
.hx-tier[data-tier="or"] { --m-dark: #9A6B12; --m-mid: #D9A52E; --m-light: #FFE08A; --m-ink: #2B1C02; --m-edge: rgba(255, 210, 110, .6); --m-glow: rgba(240, 180, 50, .3); }
.hx-tier[data-tier="elite"] { --m-dark: #5B6CC9; --m-mid: #9C8CF0; --m-light: #D8F3FF; --m-ink: #120E2E; --m-edge: rgba(190, 200, 255, .6); --m-glow: rgba(150, 140, 255, .3); }

/* Tuiles des parties de la course : halo de la couleur du niveau */
.hx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-tile { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 14px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 90% at 85% 0%, var(--soft), transparent 70%), #121412; }
.hx-tile.is-best { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.hx-tile.is-weak { border-color: rgba(244, 194, 122, .45); }
.hx-tile-name { font-size: 13.5px; font-weight: 500; }
.hx-tile-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.hx-tile b { font-size: 38px; line-height: 1; color: var(--c); margin-top: 4px; }
.hx-tile-time { font-size: 11.5px; color: var(--muted); }
.hx-tile-bar { display: block; height: 3px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.hx-tile-bar em { display: block; height: 100%; border-radius: 999px; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* Où gagner du temps */
.hx-gain-head { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
.hx-gain-head b { color: var(--accent); font-weight: 500; }
.hx-gain-list { list-style: none; }
.hx-gain-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hx-gain-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.hx-gain-list i { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hx-gain-list em { display: block; height: 100%; border-radius: 999px; }
.hx-gain-list b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.hx-gain-list .slow em { background: var(--danger); } .hx-gain-list .slow b { color: var(--danger); }
.hx-gain-list .fast em { background: var(--accent); } .hx-gain-list .fast b { color: var(--accent); }

/* Les 8 km */
.hx-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.hx-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.hx-bar b { font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hx-bar i { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 25%, transparent)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); }
.hx-bar small { font-size: 10px; color: var(--muted); }
.hx-run-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.hx-run-stats div { padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.hx-run-stats b { display: block; font-size: 22px; }
.hx-run-stats small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* Séances */
.hx-session { padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(80% 90% at 100% 0%, rgba(215, 245, 126, .1), transparent 70%), var(--surface); }
.hx-session + .hx-session { margin-top: 10px; }
.hx-session-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hx-session-head b { font-weight: 500; font-size: 15.5px; }
.hx-session-head span { font-size: 11.5px; color: var(--warn); }
.hx-session ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.hx-session li { font-size: 13.5px; color: rgba(244, 245, 241, .82); padding-left: 16px; position: relative; line-height: 1.4; }
.hx-session li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Mes courses : course analysée, catégorie de référence */
.hx-pick { border-radius: 14px; }
.hx-pick.is-on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; padding-right: 8px; }
.hx-cat { font-style: normal; }
.hx-cat.is-ref { color: var(--accent); }
.hx-gain-head .hx-plain { color: var(--ink); }
.hx-gain-head .hx-worse { color: var(--danger); }
/* La mif en HYROX */
.hx-mif { list-style: none; display: grid; gap: 6px; }
.hx-mif-row { width: 100%; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px 9px 8px; border-radius: 18px; text-align: left;
  background: radial-gradient(90% 120% at 100% 50%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.hx-mif-row.is-me { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hx-mif-rank { font-family: var(--dot); font-weight: 900; font-size: 15px; color: var(--muted); text-align: center; }
.hx-mif-row .face { width: 34px; height: 34px; font-size: 12px; }
.hx-mif-who b { display: block; font-weight: 500; font-size: 15px; }
.hx-mif-who small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.hx-mif-lvl { font-size: 30px; color: var(--c); }
.hx-mif-more { font-size: 13px; color: var(--muted); padding: 6px 4px 0; }
.hx-mif-more .link-btn { font-size: 13px; padding: 0; }

/* ---------- Outils autour du Fit Level (perf.js, méthode BTWB, 21/10/2026) ---------- */
/* Objectif avant un benchmark */
.goal { margin: 14px 0 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(215, 245, 126, .07); border: 1px solid rgba(215, 245, 126, .28); }
.goal-head { font-size: 14px; font-weight: 500; }
.goal-row { display: grid; gap: 8px; margin-top: 10px; }
.goal input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.goal-out { font-size: 15px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.goal-out b { font-family: var(--dot); font-weight: 900; font-size: 20px; }
.goal-out strong { font-family: var(--dot); font-weight: 900; font-size: 26px; color: var(--accent); margin-left: auto; }
.goal-tier { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.goal-eq { flex-basis: 100%; margin-top: -4px; text-align: right; font-size: 13px; color: var(--muted); }
.goal-note { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
/* Fit Level privé */
.is-private .private-hide { display: none !important; }
.fit-private { margin: 12px auto 0; max-width: 280px; text-align: center; font-size: 13px; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; font-size: 15px; }
.switch-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* Apparence : Sombre · Clair · Auto (apparence.js, 14/11/2026) */
.theme-row { align-self: stretch; width: 100%; padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 14px; font-size: 15px; }
.theme-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.theme-seg .seg-btn { padding: 10px 6px; font-size: 14px; text-align: center; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
/* Déséquilibres */
.imb { padding: 12px 0; border-bottom: 1px solid var(--line); }
.imb:last-child { border-bottom: 0; }
.imb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.imb-head em { font-style: normal; font-family: var(--dot); font-weight: 900; font-size: 16px; color: #FFC266; white-space: nowrap; }
.imb.major .imb-head em { color: #FF8F80; }
.imb-bars { display: grid; gap: 6px; margin: 10px 0 8px; }
.imb-bars > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.imb-bars i { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.imb-bars em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5FD3A0, var(--accent)); }
.imb-bars .weak em { background: linear-gradient(90deg, #E8955A, #FFC266); }
.imb-bars b { text-align: right; color: var(--ink); }
.imb-tip { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.imb-ok { color: var(--accent); font-size: 14.5px; }
.imb-ok small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
/* WOD par charge */
.mc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mc { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mc span { font-size: 11.5px; color: var(--muted); line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; }
.mc b { font-size: 26px; }
.mc small { font-size: 11px; color: var(--muted); }
.mc.is-best { border-color: rgba(215, 245, 126, .45); background: rgba(215, 245, 126, .07); }
.mc.is-best b { color: var(--accent); }
.mc-sum { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
/* Tes compétences : un dossier par compétence (perf.js) */
.skill-folders { display: grid; gap: 8px; margin-top: 14px; }
.skf { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.skf[open] { border-color: var(--line-strong); }
.skf summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 70px 34px 22px; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; cursor: pointer; }
.skf summary::-webkit-details-marker { display: none; }
.skf-name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skf-tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.skf-tag.best { background: rgba(215, 245, 126, .16); color: var(--accent); }
.skf-tag.low { background: rgba(255, 194, 102, .14); color: #FFC266; }
.skf-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.skf-bar em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5FD3A0, var(--accent)); }
.skf-val { font-size: 20px; text-align: right; }
.skf .fold-ico { font-size: 18px; color: var(--muted); transition: transform .2s; text-align: center; }
.skf[open] .fold-ico { transform: rotate(45deg); }
.skf-body { padding: 0 16px 16px; }
.skf-body h5 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.skf-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.skf-hint em { color: #FFC266; font-style: normal; }
.skf-empty { font-size: 13px; color: var(--muted); margin-top: 10px; }
.skf-src { list-style: none; display: grid; gap: 7px; }
.skf-src li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 30px; align-items: center; gap: 10px; font-size: 13px; }
.skf-src li span em { font-style: normal; font-size: 11px; color: #FFC266; margin-left: 4px; }
.skf-src li i { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.skf-src li i em { display: block; height: 100%; background: rgba(244, 245, 241, .45); border-radius: 999px; }
.skf-src li b { text-align: right; }
.skf-src li.low b { color: #FFC266; }
.skc { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; line-height: 1.45; }
.skc.minor { border-color: rgba(255, 194, 102, .25); }
.skc.major { border-color: rgba(215, 245, 126, .35); background: rgba(215, 245, 126, .05); }
.skc .dot { font-size: 14px; }
.skc-tip { color: var(--accent); margin-top: 4px; }
.skc.ok { color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.skc.ok b { color: var(--ink); font-weight: 500; }
.skf-tests { list-style: none; display: grid; gap: 6px; }
.skf-tests li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; background: rgba(215, 245, 126, .06); border: 1px solid rgba(215, 245, 126, .22); }
.skf-tests li small { color: var(--muted); font-size: 11.5px; }
.skf-tests li span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.skf-tests li span b { color: var(--accent); font-size: 16px; margin-left: 4px; }
.skf-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.skf .fold-ico { width: 22px; height: 22px; border: 0; }
/* Marches de niveau (3 par palier) : petit écart entre les marches, plus grand entre les paliers */
.fs-bar { gap: 2px; }
.fs-seg.is-first:not(:first-child) { margin-left: 4px; }
.fs-seg.is-tier { opacity: .5; }
.fs-seg.is-tier.is-on { opacity: 1; }
.fs-seg.is-tier i { color: var(--c); }
/* Top % à côté des notes (perf.js) */
.skf-top { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.skf-top b { font-size: 15px; color: var(--accent); }
.skf-src li { grid-template-columns: minmax(0, 1fr) 50px 26px 62px; }
.skf-src li small { color: var(--muted); font-size: 10.5px; text-align: right; white-space: nowrap; }
/* Carte d'athlète et Fit Level réunis : identité en haut, badge métallique de la marche sous le chiffre */
.fit-id { display: flex; align-items: center; gap: 12px; padding: 0 20px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.fit-face { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 400; letter-spacing: -.02em;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); border: 1px solid var(--m-edge, var(--line-strong)); }
.fit-who { flex: 1; min-width: 0; }
.fit-name { font-size: 19px; font-weight: 400; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit-box { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit .ac-brand { flex: none; }
.fit-badge { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.fit[data-tier] .fit-badge {
  background: linear-gradient(110deg, var(--m-dark) 0%, var(--m-mid) 30%, var(--m-light) 45%, #fff 50%, var(--m-light) 55%, var(--m-mid) 70%, var(--m-dark) 100%);
  background-size: 250% 100%; color: var(--m-ink); box-shadow: 0 0 0 1px var(--m-edge), 0 4px 14px var(--m-glow); animation: shine 1.6s ease-in-out .5s 1 both;
}
.fit[data-tier="bronze"] { --m-dark: #7A4A26; --m-mid: #B87A45; --m-light: #E6B07A; --m-ink: #2A1608; --m-edge: rgba(214, 150, 95, .55); --m-glow: rgba(205, 127, 50, .25); }
.fit[data-tier="argent"] { --m-dark: #7D8894; --m-mid: #B9C3CE; --m-light: #E8EDF2; --m-ink: #17202B; --m-edge: rgba(214, 224, 235, .5); --m-glow: rgba(200, 214, 228, .18); }
.fit[data-tier="or"] { --m-dark: #9A6B12; --m-mid: #D9A52E; --m-light: #FFE08A; --m-ink: #2B1C02; --m-edge: rgba(255, 210, 110, .6); --m-glow: rgba(240, 180, 50, .3); }
.fit[data-tier="elite"] { --m-dark: #5B6CC9; --m-mid: #9C8CF0; --m-light: #D8F3FF; --m-ink: #120E2E; --m-edge: rgba(190, 200, 255, .6); --m-glow: rgba(150, 140, 255, .3); }

/* ---------- Corrections des tests sur téléphones (22/10/2026) ---------- */
/* Whiteboard : prénoms de l'équipe touchables, boutons 👊 / 💬 plus étroits pour laisser la place aux noms */
.row.is-team .tm[data-user] { cursor: pointer; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.acts .bump, .talk { min-width: 46px; padding: 0 8px; }
/* Filtres du whiteboard : les 4 pilules tiennent sur une ligne, même sur iPhone SE */
#filters { flex-wrap: nowrap; gap: 4px; }
#filters .seg-btn { padding: 8px 9px; font-size: 12.5px; flex: 1 1 auto; }
/* Jour passé : l'en-tête du WOD passe à la ligne au lieu de déborder */
.wod-head { flex-wrap: wrap; row-gap: 8px; }
.wod-session { max-width: 100%; }
/* Feuille de score : de l'air entre « Seul / En team » et « Valider » */
#save { margin-top: 14px; }
/* Dossiers de compétences : « À TRAVAILLER » sur une ligne */
.skf-tag { white-space: nowrap; flex: none; }
/* Correspondances : la phrase à gauche, les notes à droite */
.skc.ok .skc-txt { flex: 1; min-width: 0; }
.skc.ok > span:last-child { white-space: nowrap; }
/* Noms des paliers sous la barre du Fit Level : plus lisibles */
.fs-seg i { font-size: 11px; color: rgba(244, 245, 241, .62); }
/* Lien « Mettre mue club sur mon écran d'accueil » : zone de toucher de 44 px */
.in-install { min-height: 44px; padding: 10px 4px; margin-top: 6px; }
/* « Bien joué » : « Cap 150 » sur une ligne, « reps » en petit */
.cel-hero b small { display: block; font: 500 13px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Programmes des coachs (programmes.js, 22/10/2026) : même verre sombre que les succès ---------- */
/* Sous le WOD du jour : « Ton programme » */
.pg-today { display: grid; gap: 9px; margin-top: 12px; }
.pgt { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; color: var(--ink); padding: 12px 14px; }
.pgt-txt { min-width: 0; display: grid; gap: 1px; }
.pgt-txt small { font-size: 12px; color: rgba(244, 245, 241, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgt-txt b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgt-txt em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgt > i { font-style: normal; font-size: 22px; color: var(--c); }
.pg-ring { width: 40px; height: 40px; transform: rotate(-90deg); flex: none; }
.pg-ring circle { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 5; }
.pg-ring circle.on { stroke: var(--c); stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c) 60%, transparent)); }
.pg-ring.big { width: 56px; height: 56px; }

/* Profil : section « Programmes » */
.pg-list { display: grid; gap: 9px; }
.pg-list > button { width: 100%; text-align: left; color: var(--ink); }
.pg-title { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; margin-top: 8px; }
.pg-line { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.pg-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 10px; }
.pg-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); }
.pg-bar-mark u { position: absolute; top: -4px; width: 2px; height: 14px; background: rgba(255, 255, 255, .55); }
.pg-weak .sx-thin em { font-size: 15px; }
.pg-foryou { display: grid; gap: 8px; justify-items: start; }
.pg-foryou .pg-title { margin-top: 0; }
.pg-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; color: #0B0D06; background: var(--c); font-weight: 600; }
.pg-coach { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(244, 245, 241, .72); }
.pg-coach i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-style: normal; font-weight: 600; background: var(--ink); color: var(--bg); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips span { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: rgba(244, 245, 241, .82); }
.pg-see { justify-self: stretch; height: 42px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); margin-top: 2px; }
.pg-sec { font-size: 13px; color: var(--muted); margin: 6px 4px 0; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pg-mini { min-height: 112px; display: flex; flex-direction: column; text-align: left; color: var(--ink); }
.pg-mini b { font-size: 14.5px; font-weight: 500; line-height: 1.25; margin-top: 6px; }
.pg-mini .pg-line { margin-top: auto; padding-top: 8px; }
.pg-cat { font-size: 11.5px; color: var(--c); }
.pg-draft-chip { position: absolute; top: 12px; right: 12px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .3); color: var(--muted); }
/* « Tes compétences » : le programme qui travaille cette compétence */
.skf-prog { width: 100%; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; color: var(--ink);
  padding: 12px 14px; border-radius: 18px; background: radial-gradient(110% 90% at 10% 120%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); }
.skf-prog span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.skf-prog b { font-weight: 500; font-size: 14.5px; }
.skf-prog small { font-size: 12px; color: var(--muted); }
.skf-prog i { grid-row: 1 / span 3; grid-column: 2; align-self: center; font-style: normal; font-size: 20px; color: var(--c); }

/* Plein écran : fiche, séance, journée nutrition */
.pg .cel-in { gap: 12px; padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
.pg-back { font-size: 20px !important; }
.pg-sp { width: 36px; }
.pg-hero { border-radius: 28px; padding: 16px; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; overflow: hidden;
  background: radial-gradient(90% 80% at 20% 100%, color-mix(in srgb, var(--c) 42%, transparent), transparent 65%), radial-gradient(70% 70% at 90% 10%, var(--g), transparent 70%), rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08); }
.pg-hero h2 { font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1.02; }
.pg-hero .pg-coach { align-self: flex-start; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-stats .sx-w { text-align: center; padding: 11px 6px; }
.pg-stats b { display: block; font: 900 22px var(--dot); }
.pg-stats small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.pg-sum { font-size: 14px; line-height: 1.5; color: rgba(244, 245, 241, .78); }
.pg-muted { font-size: 13px; color: var(--muted); }
.pg-draft { font-size: 13px; line-height: 1.45; color: var(--muted); padding: 10px 14px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .18); }
.pg-draft .link-btn { display: inline; padding: 0; margin-left: 4px; }
.pg-prog small { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.pg-weeks { display: grid; gap: 7px; }
.pg-wk { border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.pg-wk summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.pg-wk summary::-webkit-details-marker { display: none; }
.pg-wk summary b { font: 900 14px var(--dot); color: var(--c); }
.pg-wk summary small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-wk summary em { font-style: normal; font-size: 13px; color: var(--muted); }
.pg-wk[open] summary { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pg-ses { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; text-align: left; color: var(--ink); font-size: 14px; }
.pg-ses + .pg-ses { border-top: 1px solid rgba(255, 255, 255, .04); }
.pg-ses i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-style: normal; border: 1px solid rgba(255, 255, 255, .2); color: var(--muted); }
.pg-ses.done i { background: var(--c); color: #0B0D06; border: 0; }
.pg-ses small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.pg-ses em { font-style: normal; color: var(--muted); font-size: 13px; }
.pg-tip { font-size: 13px; color: rgba(244, 245, 241, .75); padding: 10px 14px 4px; line-height: 1.45; }
.pg-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 2px;
  padding: 18px 18px calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(transparent, #030403 38%); }
.pg-cta { width: min(100%, 420px); }
.pg-run-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-h { font-size: 26px; font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.pg-items { display: grid; gap: 8px; }
.pgx { display: grid; gap: 10px; }
.pgx-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.pgx-head i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-style: normal; border: 1px solid rgba(255, 255, 255, .2); color: var(--muted); }
.pgx.done .pgx-head i { background: var(--c); color: #04201C; border: 0; }
.pgx-head b { display: block; font-size: 15px; font-weight: 500; }
.pgx-head small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pgx-note { font-size: 12.5px; color: rgba(244, 245, 241, .62); line-height: 1.4; }
.pgx-vid { justify-self: start; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink); text-decoration: none; }
.pgx-sets { display: flex; gap: 6px; }
.pgx-set { flex: 1; min-height: 42px; border-radius: 13px; display: grid; place-items: center; font: 900 14px var(--dot); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: var(--muted); }
.pgx-set.ok { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); color: var(--c); }
.pgx-set:disabled { opacity: .45; }
.pgx-test { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pgx-test-in { display: flex; align-items: center; gap: 8px; }
.pgx-test input { width: 110px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--ink); font: 900 22px var(--dot); text-align: center; }
.pgx-test em { font-style: normal; color: var(--muted); }
.pg-finish { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.pg-finish-q { font-size: 15px; }
.pg-finish textarea { font-size: 16px; }
.pg-done-note { text-align: center; font-size: 13.5px; color: var(--muted); padding: 8px; }
.pg-done-note small { display: block; margin-top: 4px; font-style: italic; }
.pg #pg-end { align-self: center; margin-top: 4px; }
.pg-rest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 18px); z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(20, 24, 22, .92); border: 1px solid rgba(157, 235, 221, .35); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pg-rest span { font-size: 13px; color: var(--muted); }
.pg-rest b { font: 900 28px var(--dot); color: #9DEBDD; min-width: 80px; }
.pg-rest button { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0B0D06; font-weight: 600; font-size: 14px; }
/* Journée nutrition */
.pg-macro { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.pg-donut { width: 96px; height: 96px; transform: rotate(-90deg); }
.pg-donut circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.pg-mrow { display: grid; gap: 6px; font-size: 12.5px; }
.pg-mrow .sx-thin { font-size: 30px; margin-top: 0; }
.pg-mrow .sx-thin em { font-size: 14px; }
.pg-mrow div { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.pg-mrow div span { color: var(--muted); }
.pg-mrow div b { font-weight: 400; }
.pg-mrow div b em { font-style: normal; color: rgba(244, 245, 241, .35); }
.pg-meals { display: grid; gap: 7px; }
.pg-meal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; text-align: left; color: var(--ink);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.pg-meal small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pg-meal .ck { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }
.pg-meal.on .ck { background: #FFC489; color: #2B1600; border: 0; }
.pg-meal em { font-style: normal; font-size: 12px; color: var(--muted); }
.pg-tip-big { font-size: 15px; line-height: 1.45; margin-top: 10px; }
/* Mes succès (onglet Perfs) : médailles des jalons de WOD (10, 25, 50, 100) */
.sx-jal { display: flex; gap: 5px; margin-top: 10px; }
.sx-jal i { min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 900 10px var(--dot); font-style: normal;
  color: rgba(244, 245, 241, .35); border: 1px solid rgba(255, 255, 255, .12); }
.sx-jal i.on { color: #04201C; background: var(--c); border-color: transparent; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.succ-grid .sx-foot { line-height: 1.35; }
/* Carte du WOD : la prog de quelle salle, sous « WOD du jour » et le thème */
.wod-box { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
/* Records et benchmarks : la progression depuis le premier score (tout l'historique est gardé) */
.rec-gain { display: block; font-style: normal; font-size: 11.5px; color: var(--accent); margin-top: 2px; }
.rec-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
/* « Contacte ton coach » (Perfs → Programmes) */
.pg-contact { display: grid; gap: 10px; }
.pg-contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-ask { min-height: 46px; padding: 8px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .06); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pg-ask.is-sent { color: var(--c); border-style: dashed; background: transparent; }

/* ---------- Onglet « Salle » des coachs (ma-salle.js, 22/10/2026) ---------- */
.tabbar .tab { font-size: 10.5px; }
/* Coachs : 5e onglet « Salle » */
.tabbar.has-5 { grid-template-columns: repeat(5, 1fr); width: calc(100% - 24px); max-width: 470px; }
.tabbar.has-5 .tab { font-size: 10px; padding: 8px 2px; }
.ms-body { display: grid; gap: 14px; }
.ms-wait { color: var(--muted); font-size: 14px; text-align: center; padding: 40px 0; }
.ms-card .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ms-card .muted-sm { text-align: right; }
.ms-wod { font-size: 17px; }
.ms-wod b { font-weight: 500; }
.ms-wod.is-empty { color: var(--muted); font-size: 14px; }
.ms-card .ghost-btn.small { margin-top: 10px; }
.ms-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ms-kpis > div { padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ms-kpis b { display: block; font-size: 30px; line-height: 1; }
.ms-kpis b i { font-style: normal; font-size: 15px; color: var(--muted); }
.ms-kpis small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.ms-sub { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.ms-leads { display: grid; gap: 2px; }
.ms-lead { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ms-lead b { font: 900 12px var(--dot); color: var(--accent); }
.ms-lead em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.ms-lead-h span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ms-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font: 900 12px var(--dot); background: var(--accent); color: var(--accent-ink); }
.ms-req { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ms-req span { color: var(--accent); font-size: 12.5px; }
.ms-req small { display: block; color: var(--muted); font-size: 12px; }
.ms-req p { font-size: 13px; font-style: italic; color: rgba(244, 245, 241, .78); margin-top: 4px; }
.ms-req .ghost-btn.small { margin: 0; white-space: nowrap; }
.ms-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.ms-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.ms-bars > div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: end; gap: 3px; }
.ms-bars i { width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: linear-gradient(#D7F57E, rgba(215, 245, 126, .25)); align-self: end; }
.ms-bars b { font: 900 12px var(--dot); }
.ms-bars small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.ms-list { list-style: none; display: grid; }
.ms-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ms-list li:last-child { border-bottom: 0; }
.ms-list button { color: var(--ink); text-align: left; font-weight: 500; }
.ms-list small, .ms-list span { color: var(--muted); font-size: 12.5px; text-align: right; }
.ms-list span b { color: var(--ink); font-weight: 500; }
/* Box par box (tableau de bord mue club) : le nom, puis ses infos dessous (sinon le nom se coupe sur iPhone) */
.ms-members li { display: block; }
.ms-members li span { display: block; text-align: left; margin-top: 2px; }
#ms-club-box { margin: 4px 0 2px; }
.ms-foot { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; padding: 4px 10px 10px; }
.ms-foot a { color: var(--ink); }
/* « Un programme rien que pour toi » en grand bandeau (22/10/2026, retour de Mario : plus visible, plus beau) */
.pg-ask-hero { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 20px 16px 16px; border-radius: 28px;
  background: radial-gradient(85% 60% at 105% -5%, rgba(168, 140, 255, .38), transparent 62%), radial-gradient(70% 55% at -5% 105%, rgba(215, 245, 126, .15), transparent 65%), rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .35); }
.pg-ask-hero::before { content: ""; position: absolute; top: -40px; right: -30px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(203, 187, 255, .45), transparent 70%); filter: blur(10px); animation: pg-orb 7s ease-in-out infinite alternate; }
@keyframes pg-orb { to { transform: translate(-18px, 14px) scale(1.1); } }
.pg-ask-hero > * { position: relative; }
.pg-ask-kicker { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(215, 245, 126, .1); border: 1px solid rgba(215, 245, 126, .25); }
.pg-ask-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pg-ask-title { font-size: 31px; font-weight: 200; letter-spacing: -.045em; line-height: 1.02; margin-top: 4px; }
.pg-ask-lead { font-size: 14px; line-height: 1.45; color: rgba(244, 245, 241, .7); }
.pg-ask-team { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(244, 245, 241, .62); margin-bottom: 4px; }
.pg-ask-faces { display: flex; }
.pg-ask-faces i { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 10px; font-weight: 600; font-style: normal;
  background: var(--ink); color: var(--bg); border: 2px solid #15171a; margin-left: -8px; }
.pg-ask-faces i:first-child { margin-left: 0; }
.pg-ask-faces img { width: 100%; height: 100%; object-fit: cover; }
.pg-ask-tile { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 20px;
  text-align: left; color: var(--ink); background: rgba(10, 11, 10, .45); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); transition: transform .15s, background .15s; }
.pg-ask-tile:active { transform: scale(.98); }
.pg-ask-tile.training { --c: #A9C1FF; }
.pg-ask-tile.nutrition { --c: #FFC489; }
.pg-ask-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 18%, transparent); }
.pg-ask-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pg-ask-txt b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.pg-ask-txt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.pg-ask-tile > i { font-style: normal; font-size: 22px; color: var(--c); }
.pg-ask-tile.is-sent { background: transparent; border-style: dashed; }
.pg-ask-tile.is-sent .pg-ask-txt small { color: var(--c); }
/* Administrateur : tout mue club (ma-salle.js) */
.ms-scope { margin: -4px 0 14px; }
.ms-kpis4 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.ms-bars30 { grid-template-columns: repeat(30, 1fr); gap: 3px; height: 90px; }
.ms-bars30 i { max-width: none; border-radius: 4px 4px 2px 2px; }
.ms-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.ms-curve { width: 100%; height: 90px; display: block; }
.ms-curve polyline { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(215, 245, 126, .5)); }
.ms-boxes li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 34px; gap: 10px; align-items: center; }
.ms-bname { color: var(--ink); font-weight: 500; font-size: 14px; min-width: 0; text-align: left !important; }
.ms-bname small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; text-align: left; }
.ms-bbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.ms-bbar em { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.ms-boxes b { font: 900 16px var(--dot); text-align: right; }
.ms-kpis4 + .ms-kpis4 { margin-top: -4px; }
.ms-warn { color: #FFC266; }

/* ---------- Retours et conditions (23/10/2026, retours.js) ---------- */
.terms-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.45; }
.terms-row input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }
.terms-row a, .in-foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a.ib-main { color: inherit; text-decoration: none; }
.terms-bar .terms-ok { margin-right: 10px; }
.settings a.link-btn { display: inline-block; }
.fb-kind { margin: 18px 0 14px; justify-content: center; }
.fb-kind .seg-btn { padding: 10px 14px; font-size: 14px; }
#sheet-feedback .cta { margin-top: 14px; }
/* Retours reçus (onglet Salle → mue club) */
.ms-fb { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.ms-fb:first-of-type { border-top: 0; }
.ms-fb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ms-fb-head small { color: var(--muted); font-size: 12px; }
.ms-fb-kind { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ms-fb-kind.is-bug { background: var(--danger-soft); color: var(--danger); }
.ms-fb-kind.is-idea { background: var(--accent-soft); color: var(--accent); }
.ms-fb p { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ms-fb .ms-fb-ctx { color: var(--faint); font-size: 11.5px; }
.ms-fb .ghost-btn { justify-self: start; margin-top: 4px; }

/* ---------- Corrections des tests (23/10/2026) ---------- */
/* Profil d'un autre athlète : prénom long raccourci avec « … », « Suivre » et « Ma carte » restent entiers sur une ligne
   (4 px de marge dedans, repris dehors : les accents et le bas du « g » ne sont pas coupés) */
[data-view="profile"] .top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0; margin: -4px 0; }
#follow-btn, #back-me { flex: none; white-space: nowrap; }
/* « Bien joué » et séance de programme : la bande sombre reste au-dessus, sous l'heure et la batterie ;
   les messages (toast) restent visibles par-dessus ces écrans plein écran */
body.cel-open::after { z-index: 31; background: linear-gradient(#030403 70%, transparent); }
body.cel-open .toast { z-index: 32; }
/* Zones à toucher d'au moins 44 px, sans changer le dessin : la zone dépasse du bouton (::after, marges négatives) */
.settings .link-btn, .settings a.link-btn { padding: 12px 0; margin: -2px 0; }
#edit-weight { padding: 10px 4px 15px; margin: -10px -4px -15px; }   /* plus de place dessous : « + Ajouter » est juste au-dessus */
.wk-arrow, .cel-top button, .comment-send, .acts .bump, .talk { position: relative; }
.wk-arrow::after, .cel-top button::after, .comment-send::after { content: ""; position: absolute; inset: -4px; }
.wk-arrow::after { inset: -2px; }
/* 👊 au-dessus, 💬 en dessous : chacun prend sa moitié de l'écart et le vide de la ligne (44 px de haut) */
.acts .bump::after, .talk::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -2px; }
.talk::after { top: -3px; bottom: -10px; }
/* Petits écrans (320 px : iPhone SE, ou zoom d'affichage) : des colonnes plus étroites pour lire les prénoms
   au whiteboard, et les notes de « Ton profil » et les pastilles des succès restent dans leur carte */
@media (max-width: 359px) {
  .board { padding: 18px 14px; }
  .row { grid-template-columns: 18px 32px minmax(0, 1fr) auto auto; gap: 6px; }
  .rank { font-size: 15px; }
  .row.is-me { margin: 4px -8px; padding: 12px 8px; }
  .row .face { width: 32px; height: 32px; font-size: 11px; }
  .row .face.team i { width: 21px; height: 21px; font-size: 8.5px; }
  .row .face.team i:nth-child(2) { top: 3px; }
  .row .face.team i:nth-child(3) { left: 6px; }
  .row-talk { margin-left: 56px; }
  .comment-form { margin-left: -56px; width: calc(100% + 56px); }
  .time-res { font-size: 17px; min-width: 0; }
  .rings { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .rings svg { width: 112px; height: 112px; }
  .sx-jal { gap: 3px; }
  .sx-jal i { min-width: 0; padding: 0 4px; }
  /* Profil d'un autre athlète : boutons un peu plus serrés, le prénom garde sa place (« Philippe » entier) */
  [data-view="profile"] .top { gap: 8px; }
  #follow-btn { padding: 9px 14px; }
  #back-me { padding: 0 12px; }
}

/* ---------- Guide « Comment marche mue club » (guide.js, 24/10/2026) : une seule page à faire défiler ---------- */
.guide { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .25s;
  background: radial-gradient(80% 34% at 50% 6%, rgba(215, 245, 126, .13), transparent 70%),
    radial-gradient(60% 30% at 90% 58%, rgba(185, 162, 255, .08), transparent 70%), #030403; }
.guide.is-on { opacity: 1; }
body.guide-open { overflow: hidden; }
.guide-in { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px;
  padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 26px); }
.guide-in > * { animation: enter .5s both; }
.guide-in > :nth-child(2) { animation-delay: .05s; } .guide-in > :nth-child(3) { animation-delay: .12s; }
.guide-in > :nth-child(4) { animation-delay: .19s; } .guide-in > :nth-child(5) { animation-delay: .26s; }
.guide-top { display: flex; justify-content: space-between; align-items: center; }
.guide-top span { font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.guide-top button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.guide-hero { text-align: center; padding-top: 6px; }
.guide-mark { display: block; font: 900 clamp(84px, 30vw, 124px)/.9 var(--dot); color: var(--accent); text-shadow: 0 0 60px rgba(215, 245, 126, .45); }
.guide-hero h2 { font-size: clamp(34px, 10vw, 44px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 12px; }
.guide-hero h2 em { font-style: normal; color: var(--accent); }
.guide-hero p { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 300px; margin: 0 auto; }
.guide-block h3 { display: flex; align-items: baseline; gap: 10px; font-size: 21px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; }
.guide-block h3 em { font: 900 13px var(--dot); font-style: normal; color: var(--accent); }
.guide-lead { color: var(--muted); font-size: 14.5px; margin: -4px 0 14px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.guide-steps div { padding: 16px 10px 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-align: center; }
.guide-steps b { display: block; font: 900 21px/1.1 var(--dot); color: var(--ink); margin-bottom: 8px; }
.guide-steps small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.guide-scale { padding: 34px 2px 0; }
.guide-bar { position: relative; display: flex; gap: 3px; height: 12px; }
.guide-bar span { border-radius: 6px; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); opacity: .9; }
.guide-bar i { position: absolute; left: 72.7%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: #FFD36B; border: 3px solid #030403; box-shadow: 0 0 0 2px #FFD36B, 0 0 24px rgba(255, 211, 107, .7); }
.guide-bar i b { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font: 900 20px var(--dot); color: #FFD36B; }
.guide-ticks { display: flex; gap: 3px; margin-top: 10px; }
.guide-ticks span { font-size: 11.5px; color: var(--muted); min-width: 0; }
.guide-ticks small { display: block; font: 900 11px var(--dot); color: var(--faint); margin-top: 2px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.guide-chips span { padding: 8px 13px; border-radius: 999px; font-size: 13px; background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .28); color: var(--ink); }
.guide-chips.is-soon { margin-top: 0; }
.guide-chips.is-soon span { background: var(--surface); border-color: var(--line); color: var(--muted); }
.guide-todo { list-style: none; counter-reset: g; display: grid; gap: 8px; }
.guide-todo li { counter-increment: g; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 4px 12px;
  padding: 12px 14px 12px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.guide-todo li::before { content: counter(g); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 900 20px var(--dot); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 22px rgba(215, 245, 126, .35); }
.guide-todo b { font-size: 15.5px; font-weight: 500; }
.guide-todo small { font-size: 12.5px; color: var(--muted); }
.guide-cards { display: grid; gap: 8px; }
.guide-cards p { padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.guide-cards b { color: var(--ink); font-weight: 500; }
.guide-foot { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: -12px; }
/* Écran du jour : le petit bouton sous « Salut … » (un mois) : pilule en verre, étiquette « Info » violette (Élite) */
.guide-pill { display: inline-flex; width: fit-content; align-items: center; gap: 10px; margin: 2px 0 14px; white-space: nowrap; min-height: 36px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 13px; color: var(--ink); }
.guide-new { padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: #170F2E; background: linear-gradient(135deg, #D6C9FF, #9E86FF); box-shadow: 0 0 14px rgba(185, 162, 255, .45); }
.guide-pill b { font-size: 18px; font-weight: 300; line-height: 1; color: var(--muted); }
/* Les deux pilules l'une sous l'autre ; rien du tout si les deux sont cachées */
.top-pills { display: grid; justify-items: start; gap: 8px; margin: 2px 0 14px; }
.top-pills .guide-pill { margin: 0; }
.top-pills:not(:has(> :not([hidden]))) { display: none; }
/* « Ajoute mue club sur ton téléphone » : étiquette « App » au lime de l'appli */
.install-pill .guide-new { color: var(--accent-ink); background: linear-gradient(135deg, #EAFBB8, var(--accent)); box-shadow: 0 0 14px rgba(215, 245, 126, .4); }
/* Page de présentation : le bouton « Comment ça marche ? », bien visible sous « Rejoindre mue club » */
.in-how { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; margin-top: 14px; padding: 12px 18px 12px 12px;
  border-radius: 999px; border: 1px solid rgba(215, 245, 126, .35); background: var(--accent-soft); text-align: left; }
.in-how b { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.in-how span { font-size: 15.5px; font-weight: 500; }
.in-how small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
/* Guide : les menus déroulants (« + » pour ouvrir) */
.guide-more { margin-top: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.guide-more + .guide-more { margin-top: 6px; }
.guide-more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px;
  padding: 10px 12px 10px 16px; font-size: 14.5px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary::after { content: "+"; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 300; transition: transform .25s; }
.guide-more[open] summary::after { transform: rotate(45deg); }
.guide-more[open] { border-color: rgba(215, 245, 126, .25); }
.guide-more > div { display: grid; gap: 8px; padding: 0 16px 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); animation: enter .3s both; }
.guide-more ol { padding-left: 18px; display: grid; gap: 6px; }
.guide-more b { color: var(--ink); font-weight: 500; }

/* ---------- Mes compètes (competes.js, 24/10/2026) ---------- */
.comp-list { list-style: none; }
.comp-list > li + li { border-top: 1px solid var(--line); }
.comp-line { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; text-align: left; }
.comp-rank { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; align-content: center; font: 900 18px/1 var(--dot);
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.comp-rank small { font: 500 9px var(--font); color: var(--muted); margin-top: 1px; }
.comp-rank.is-m1 { --m: #FFD36B; } .comp-rank.is-m2 { --m: #DCEAF7; } .comp-rank.is-m3 { --m: #FF9A5A; }
.comp-rank[class*="is-m"] { color: #0B0D06; background: var(--m); border-color: transparent; box-shadow: 0 0 18px color-mix(in srgb, var(--m) 45%, transparent); }
.comp-rank[class*="is-m"] small { color: rgba(11, 13, 6, .65); }
.comp-main { min-width: 0; display: grid; gap: 2px; }
.comp-main b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-main em { font-style: normal; color: var(--accent); }
.comp-of { font-size: 12px; color: var(--faint); white-space: nowrap; }
.comp-more { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 12px 58px; }
.comp-found { margin-bottom: 12px; padding: 12px 14px; border-radius: 20px; background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .3); }
.comp-found-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.comp-found-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.comp-found-row + .comp-found-row { border-top: 1px solid rgba(215, 245, 126, .15); }
.comp-found-row > span:first-child { min-width: 0; display: grid; gap: 2px; }
.comp-found-row b { font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.comp-found-row small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.comp-found-act { display: flex; align-items: center; gap: 6px; flex: none; }
.comp-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); font-size: 12px; }
.comp-empty { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.comp-empty b { color: var(--ink); font-weight: 500; }
.comp-search { margin: 4px 0 10px; }
.comp-pick i { font: 900 11px var(--dot) !important; }
.comp-back { color: var(--muted); font-size: 13.5px; padding: 6px 2px !important; display: block !important; }
/* Mes compètes : palmarès et badges (gamification) */
.comp-palm { margin-bottom: 14px; }
.comp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.comp-stats > div { position: relative; padding: 14px 10px 12px; border-radius: 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.comp-stats b { display: block; font: 900 30px/1 var(--dot); color: var(--ink); }
.comp-stats sup { font: 500 11px var(--font); vertical-align: top; margin-left: 1px; }
.comp-stats small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-dots { display: flex; justify-content: center; gap: 3px; margin-top: 6px; min-height: 7px; }
.comp-dots i { width: 7px; height: 7px; border-radius: 50%; }
.comp-dots .m1 { background: #FFD36B; box-shadow: 0 0 8px rgba(255, 211, 107, .7); }
.comp-dots .m2 { background: #DCEAF7; } .comp-dots .m3 { background: #FF9A5A; }
.comp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.comp-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; font-size: 12px;
  color: var(--faint); border: 1px dashed var(--line-strong); }
.comp-badge i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 11px var(--dot); font-style: normal;
  background: var(--surface-2); color: var(--faint); }
.comp-badge.is-on { color: var(--ink); border: 1px solid rgba(215, 245, 126, .35); background: var(--accent-soft); }
.comp-badge.is-on i { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px rgba(215, 245, 126, .45); }
.comp-all { width: 100%; margin-top: 8px; min-height: 40px; border-radius: 999px; border: 1px solid rgba(215, 245, 126, .35); color: var(--accent); font-size: 13.5px; }
/* Perfs : le raccourci vers « Mes compètes », en haut de la page */
.perf-jump { display: inline-flex; width: fit-content; align-items: center; gap: 10px; margin: 2px 0 14px; min-height: 36px; padding: 5px 12px 5px 5px;
  border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 13px; color: var(--ink); }
.perf-jump i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: radial-gradient(circle at 35% 30%, #FFE7A3, #FFD36B 55%, #C99A2E); box-shadow: 0 0 14px rgba(255, 211, 107, .45); }
.perf-jump b { font-size: 18px; font-weight: 300; line-height: 1; color: var(--muted); }
#comp-card { scroll-margin-top: calc(env(safe-area-inset-top) + 14px); }

/* ---------- Clubs privés (27/10/2026, clubs.js) : entrer avec un code, demandes, code de la salle ---------- */
.field > span small { color: var(--faint); font-size: 12px; margin-left: 4px; }
.code-input { text-transform: uppercase; letter-spacing: .08em; font-family: var(--font); }
.code-input::placeholder { text-transform: none; letter-spacing: 0; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.code-row input { width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: none; font-size: 16px; }
.code-row input:focus { border-color: var(--accent); }
.code-row .cta { width: auto; min-height: 48px; margin: 0; padding: 0 22px; }
.club-gate { display: grid; gap: 6px; margin-top: 14px; justify-items: start; }
.club-gate .code-row { width: 100%; margin-bottom: 4px; }
.set-code { margin: -4px 0 12px; }
.set-code .ghost-btn.small { min-height: 46px; }
.box-pending { color: var(--muted); font-size: 13px; line-height: 1.45; margin: -4px 2px 14px; }
.box-pending .link-btn { font-size: 13px; padding: 0; }
.ms-code { font-size: 30px; letter-spacing: .06em; color: var(--accent); text-shadow: 0 0 22px rgba(215, 245, 126, .3); margin: 2px 0 10px; word-break: break-all; }
.ms-code-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-code-btns .ghost-btn.small { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.ms-access .link-btn { margin-top: 8px; font-size: 13px; }
.ms-req-btns { display: flex; gap: 6px; flex: none; }
.ms-req .ghost-btn.is-yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ms-roster { margin-top: 4px; }
.ms-roster li { align-items: center; }
.ms-roster .ms-out { color: var(--danger); font-size: 12.5px; font-weight: 400; }
.tab.has-dot { position: relative; }
.tab.has-dot::after { content: ""; position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(215, 245, 126, .7); }
/* Étape 1b : pilules des clubs (écran du jour), mes programmes (réglages) */
.club-pills { display: flex; gap: 6px; overflow-x: auto; margin: 2px -2px 10px; padding: 2px; scrollbar-width: none; }
.club-pills::-webkit-scrollbar { display: none; }
.club-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.club-pill i, .my-club i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); display: inline-block; flex: none; }
.club-pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.my-clubs { margin: 0 0 10px; }
.my-clubs-h { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.my-club { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.my-club span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.my-club small { color: var(--muted); font-size: 12px; }
.my-club .link-btn { font-size: 13px; padding: 0; }
#newclub-open { display: block; margin: 2px 0 10px; font-size: 14px; }
/* Étape 2 : écrire une séance (seance.js) */
.paste-box { border-radius: 20px; background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .25); padding: 12px 14px; }
.paste-box summary { cursor: pointer; font-size: 14.5px; font-weight: 500; list-style: none; }
.paste-box summary::-webkit-details-marker { display: none; }
.paste-box[open] summary { margin-bottom: 10px; }
.paste-box textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .25); outline: none; font: 14px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); resize: vertical; }
.paste-box textarea:focus { border-color: var(--accent); }
.paste-hint { color: var(--muted); font-size: 12px; margin: 6px 2px 10px; line-height: 1.4; }
.paste-box .cta { min-height: 46px; }
.paste-read { font-size: 13px; color: var(--accent); line-height: 1.45; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 0; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.chip-btn:active { background: var(--accent-soft); }
.test-box summary small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.test-box .bench-search { margin: 0 0 4px; }
.test-list { max-height: 44vh; }
.test-list .bench-item { padding-right: 2px; }
.test-list .bench-item em { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.test-list .bench-item em.is-fit { color: var(--accent); border-color: rgba(215, 245, 126, .35); background: var(--accent-soft); }
.c-alert { padding: 12px 14px; border-radius: 18px; background: rgba(244, 194, 122, .09); border: 1px solid rgba(244, 194, 122, .28); font-size: 13px; line-height: 1.45; }
.c-alert b { display: block; font-weight: 500; margin-bottom: 4px; color: var(--warn); }
.c-alert p + p { margin-top: 3px; }
/* Étape 3 : « Ta prog » (ta-prog.js) */
.tp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 4px 0 12px; }
.tp-day { display: grid; justify-items: center; gap: 4px; padding: 7px 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.tp-day b { font: 900 13px var(--dot); color: var(--ink); }
.tp-day.is-on { background: var(--ink); border-color: var(--ink); color: rgba(11, 13, 6, .6); } .tp-day.is-on b { color: var(--bg); }
.tp-day.is-empty { border-style: dashed; }
.tp-day p { display: flex; gap: 2px; height: 6px; } .tp-day p i { width: 6px; height: 6px; border-radius: 50%; }
.tp-G { background: #A9C1FF; } .tp-H { background: #FFC489; } .tp-M { background: #9DEBDD; }
.tp-gauge { padding: 11px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; display: grid; gap: 8px; }
.tp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.tp-top b { font-weight: 500; } .tp-top span { font-size: 12px; text-align: right; }
.tp-ok { color: var(--mint); } .tp-ko { color: var(--warn); }
.tp-tri { display: flex; gap: 2px; height: 9px; border-radius: 5px; overflow: hidden; } .tp-tri i { display: block; }
.tp-leg { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); } .tp-leg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.tp-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 64px; }
.tp-bars div { display: grid; grid-template-rows: 1fr auto; gap: 3px; align-items: end; justify-items: stretch; }
.tp-bars i { display: block; border-radius: 7px 7px 3px 3px; background: rgba(255, 255, 255, .14); }
.tp-bars i.is-hi { background: linear-gradient(180deg, var(--warn), rgba(244, 194, 122, .25)); }
.tp-bars small { font-size: 10px; color: var(--muted); text-align: center; }
.tp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tp-two .tp-gauge .tp-top { flex-direction: column; align-items: flex-start; } .tp-two .tp-top span { text-align: left; }
.tp-mus { display: grid; grid-template-columns: 58px 1fr 24px; gap: 6px 8px; align-items: center; font-size: 12.5px; }
.tp-mus div { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; } .tp-mus div i { display: block; height: 100%; border-radius: 5px; background: #CBBBFF; }
.tp-mus b { font-size: 12px; text-align: right; }
.tp-pp { font-size: 13px; color: var(--muted); } .tp-pp b { color: var(--ink); font-size: 15px; }
.ms-sport { display: flex; flex-wrap: wrap; gap: 6px; } .ms-sport .chip-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Étapes 5 et 6 : Découvrir, page d'un club, fil (club-page.js) */
.sheet-tall { min-height: 70vh; }
.club-find { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .25); white-space: nowrap; }
.feed-open { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; margin: 12px 0 0; padding: 14px 16px; border-radius: 24px;
  background: radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--c, #D7F57E) 18%, transparent), transparent 65%), var(--surface); border: 1px solid var(--line); color: var(--ink); }
.feed-open i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.feed-open span { font-size: 14.5px; } .feed-open b { font-weight: 500; } .feed-open small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.feed-open em { font-style: normal; color: var(--muted); font-size: 20px; }
#sheet-discover .field { margin: 14px 0 10px; }
.dc-list { display: grid; gap: 8px; margin-top: 12px; }
.dc-club { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 20px; color: var(--ink);
  background: radial-gradient(80% 140% at 0% 100%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); }
.dc-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #0B0D06; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
.dc-txt b { display: block; font-weight: 500; font-size: 15px; } .dc-txt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.dc-lock { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dc-note { text-align: center; margin-top: 14px; }
.cp-cover { min-height: 128px; border-radius: 26px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 90% at 10% 100%, color-mix(in srgb, var(--c, #D7F57E) 50%, transparent), transparent 65%), radial-gradient(70% 80% at 100% 0%, color-mix(in srgb, var(--c, #D7F57E) 22%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); }
.cp-cover small { color: rgba(244, 245, 241, .75); font-size: 12px; } .cp-cover h3 { font-size: 28px; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; margin-top: 2px; }
.cp-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 12px 2px 0; }
.cp-join { display: grid; gap: 10px; margin-top: 16px; }
.cp-in { margin-top: 14px; display: grid; gap: 12px; } #cp-today { justify-self: start; }
.cp-compose { padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.cp-compose textarea { width: 100%; border: 0; background: none; outline: none; resize: none; font-size: 15px; line-height: 1.45; color: var(--ink); }
.cp-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .cp-tools .ghost-btn.small { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.cp-tools #cp-post { margin-left: auto; } .ghost-btn.is-yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.cp-pic { cursor: pointer; display: inline-grid; place-items: center; }
.cp-feed { display: grid; gap: 10px; }
.fp { padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.fp .face.s { width: 30px; height: 30px; font-size: 11px; flex: none; }
.fp-who { display: flex; align-items: center; gap: 9px; } .fp-who span { flex: 1; min-width: 0; font-size: 13.5px; } .fp-who small, .fp-done small { display: block; color: var(--muted); font-size: 11.5px; }
.fp-more { color: var(--muted); font-size: 18px; padding: 0 4px; }
.fp-photo { width: 100%; border-radius: 16px; display: block; max-height: 420px; object-fit: cover; }
.fp-react { display: flex; gap: 8px; } .fp-react button { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.fp-react button.is-on { color: var(--accent); border-color: rgba(215, 245, 126, .4); background: var(--accent-soft); }
.fp-talk { display: grid; gap: 6px; font-size: 13.5px; } .fp-talk b { font-weight: 500; } .fp-del { color: var(--muted); font-size: 11px; margin-left: 4px; }
.fp-say { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .fp-say input { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 14px; color: var(--ink); }
.fp-say button { font-size: 13px; color: var(--accent); padding: 0 8px; }
.fp-done { display: flex; align-items: center; gap: 10px; background: none; border-style: dashed; font-size: 13.5px; } .fp-done b { font-weight: 500; }
.ms-desc { width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 14.5px; line-height: 1.45; color: var(--ink); resize: vertical; margin-bottom: 8px; }
/* Étape 7 : la séance muscu (muscu.js) */
.mu-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mu-title { text-align: left; }
.mu-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, #161816 78%, transparent 80%), conic-gradient(#CBBBFF calc(var(--p) * 360deg), rgba(255, 255, 255, .08) 0); }
.mu-ring b { font-size: 12px; }
.mu-list { display: grid; gap: 10px; margin: 14px 0; }
.mu-ex { padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.mu-ex.is-done { border-color: rgba(203, 187, 255, .35); }
.mu-name { font-size: 15px; font-weight: 500; } .mu-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.mu-sets { display: grid; grid-template-columns: 22px 1fr 1fr 40px; gap: 6px; align-items: center; margin-top: 8px; }
.mu-h { font-size: 10.5px; color: var(--faint); text-align: center; }
.mu-sets b { font-size: 12px; color: var(--muted); text-align: center; }
.mu-sets input { width: 100%; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); text-align: center; font: 900 15px var(--dot); color: var(--ink); outline: none; }
.mu-sets input:focus { border-color: #CBBBFF; }
.mu-ok { height: 38px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.mu-ok.is-on { background: #CBBBFF; color: #1A1036; border-color: #CBBBFF; }
.mu-best { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mu-best b { color: #CBBBFF; font-size: 16px; margin-left: 6px; } .mu-best em { font-style: normal; font-size: 12px; color: #0B0D06; background: var(--pr); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.mu-rest { position: sticky; bottom: 70px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 10px; border-radius: 999px; background: #232622; border: 1px solid var(--line-strong); }
.mu-rest span { color: var(--muted); font-size: 13px; } .mu-rest b { font-size: 24px; flex: 1; }
#open-muscu { display: block; margin: 10px auto 0; font-size: 13.5px; }
.ck-mine { display: grid; gap: 4px; } .ck-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }

/* Max du jour : 2e partie notée de la séance (max-jour.js) */
.wod-part.is-max .part-head { color: var(--accent); }
.wod-part.is-max .part-head b { border-color: var(--accent); color: var(--accent); }
.max-cta { margin-top: 12px; width: 100%; justify-content: center; min-height: 46px; font-size: 15px; border-color: rgba(215, 245, 126, .5); color: var(--accent); background: var(--accent-soft); }
.max-cta.is-done { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.max-board { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.max-board h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.max-board .row { grid-template-columns: 26px 40px minmax(0, 1fr) auto; }
/* 👊 sur un max du jour (17/11/2026) : le petit compte du whiteboard, en bouton */
.mx-bump { background: none; border: 0; padding: 4px 0 0 10px; margin: -4px 0 0; font: inherit; font-size: 12px; cursor: pointer; }
.mx-bump.pop { animation: wb-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.mx-sub { text-align: center; margin-top: -4px; }
#mx-rm { margin: 0 auto 6px; }
.mx-best { text-align: center; min-height: 18px; margin: 8px 0 14px; }

/* Parties de la séance en cartes, feuille du coach (blocs.js) */
.blk-ico { font-weight: 400; color: var(--ink); }
.blk-list { list-style: none; display: grid; gap: 8px; }
.blk { padding: 10px 12px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.blk.is-scored { border-color: rgba(215, 245, 126, .45); }
.blk.is-max { border-color: rgba(215, 245, 126, .3); }
.blk.is-drag { transform: scale(1.02); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); position: relative; z-index: 2; }
.blk.is-moved { animation: blk-flash .6s ease-out; }
@keyframes blk-flash { from { border-color: var(--accent); } }
.blk-head { display: flex; align-items: center; gap: 8px; }
.blk-grip { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); touch-action: none; cursor: grab; }
.blk.is-drag .blk-grip { cursor: grabbing; color: var(--accent); border-color: var(--accent); }
.blk-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--line-strong); }
.blk.is-scored .blk-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.blk.is-max .blk-n { border-color: var(--accent); color: var(--accent); }
.field .blk-name { flex: 1; min-width: 0; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; font-size: 15px; font-weight: 500; text-transform: none; }
.field .blk-name:focus { background: rgba(255, 255, 255, .05); }
.blk-btns { flex: none; display: flex; gap: 4px; }
.blk-btns button { display: grid; place-items: center; line-height: 1; padding: 0; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 14px; border: 1px solid var(--line); }
.blk-btns button:disabled { opacity: .3; }
.blk-tag { font-size: 12px; color: var(--accent); margin: 4px 0 0 42px; }
.blk-tag:empty { display: none; }
.field .blk-text { margin-top: 8px; padding: 10px 14px; border-radius: 14px; font-size: 15px; min-height: 48px; background: rgba(0, 0, 0, .2); resize: none; }

/* ---------- L'onglet Fil (fil.js, 27/10/2026) ---------- */
.fil-seg { margin: 4px 0 12px; }
.fil-stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 12px; }
.fil-stories::-webkit-scrollbar { display: none; }
.st { flex: none; display: grid; justify-items: center; gap: 5px; width: 58px; font-size: 11px; color: var(--muted); }
.st i { width: 58px; height: 58px; border-radius: 50%; padding: 2.5px; display: grid; background: conic-gradient(var(--accent), #9DEBDD, #CBBBFF, var(--accent)); }
.st i b { border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--bg); background: var(--ink); border: 2.5px solid var(--bg); }
.st i b img { width: 100%; height: 100%; object-fit: cover; }
.st.me i { background: var(--line-strong); } .st.me i b { background: var(--solid); color: var(--accent); font-size: 24px; font-weight: 300; }
.fil-list { display: grid; gap: 12px; padding-bottom: 120px; }
.fil-list .fp { padding: 14px; border-radius: 26px; gap: 10px; }
.fil-wait { text-align: center; padding: 30px 0; }
.fil-empty { text-align: center; padding: 34px 20px; border-radius: 26px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; line-height: 1.5; }
.fil-empty b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.fil-fab { position: fixed; right: max(20px, calc(50% - 210px)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 6; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; font-weight: 300; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 34px rgba(215, 245, 126, .35); }
.fil-fab[hidden] { display: none; }
.fp-wod { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), rgba(255, 255, 255, .035); }
.fp-wod-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fp-wod-top small { display: block; color: var(--muted); font-size: 11.5px; } .fp-wod-top b { font-size: 21px; font-weight: 300; letter-spacing: -.025em; }
.fp-wod-list { display: grid; gap: 2px; }
.fp-wod-row { display: grid; grid-template-columns: auto 1fr auto 44px; gap: 10px; align-items: center; padding: 6px 0; text-align: left; color: var(--ink); font-size: 14px; }
.fp-wod-row .face.s { width: 30px; height: 30px; font-size: 11px; } .fp-wod-row b { font-size: 15px; } .fp-wod-row small { color: var(--muted); font-size: 11px; text-align: right; }
.fp .face.s { width: 34px; height: 34px; font-size: 12px; flex: none; }
.fp-name { color: var(--ink); font-weight: 500; font-size: 14px; text-align: left; }
.clubtag { flex: none; font-size: 11px; padding: 4px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-title { font-size: 21px; font-weight: 300; letter-spacing: -.025em; line-height: 1.15; }
.fp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fp-stats div { padding: 9px 10px; border-radius: 16px; background: var(--surface); }
.fp-stats b { display: block; font-size: 19px; } .fp-stats small { color: var(--muted); font-size: 11px; }
.fp-pr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 16px; font-size: 13px;
  background: rgba(244, 194, 122, .1); border: 1px solid rgba(244, 194, 122, .3); } .fp-pr b { color: var(--pr); font-weight: 500; white-space: nowrap; }
.fp-see { font-size: 12.5px; color: var(--muted); } .fp-react .sp { flex: 1; }
.fp-last { font-size: 13px; color: rgba(244, 245, 241, .8); } .fp-last b { font-weight: 500; }
.fp-sets { display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .2); }
.fp-sets p { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 13px; } .fp-sets p b { font-weight: 500; width: 100%; }
.fp-sets span { padding: 3px 8px; border-radius: 9px; font: 900 12px var(--dot); background: rgba(203, 187, 255, .14); color: #CBBBFF; }
.fp-sets span.is-pr { background: rgba(244, 194, 122, .2); color: var(--pr); }
.fil-list .fp-done { padding: 10px 14px; border-radius: 20px; } .fp-done .face.s { width: 30px; height: 30px; }
/* Séances sur le profil */
.prof-sess { display: grid; gap: 12px; } .prof-sess:empty { display: none; }
.ps-cnt { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; } .ps-cnt b { display: block; font-size: 20px; } .ps-cnt small { color: var(--muted); font-size: 11.5px; }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 18px; overflow: hidden; }
.ps-tile { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 6px; font-size: 11px; line-height: 1.25; color: rgba(244, 245, 241, .85); }
.ps-tile b { display: block; font-size: 15px; margin-bottom: 2px; color: var(--ink); }
.ps-tile.g0 { background: radial-gradient(80% 80% at 30% 30%, rgba(203, 187, 255, .4), transparent), #15131c; } .ps-tile.g1 { background: radial-gradient(80% 80% at 70% 30%, rgba(215, 245, 126, .3), transparent), #141611; }
.ps-tile.g2 { background: radial-gradient(80% 80% at 40% 70%, rgba(255, 196, 137, .4), transparent), #1a1510; } .ps-tile.g3 { background: radial-gradient(80% 80% at 60% 60%, rgba(157, 235, 221, .3), transparent), #101615; }
.ps-lock { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; text-align: center; border-radius: 20px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13.5px; line-height: 1.45; } .ps-lock b { font-size: 26px; }
/* Partager ma séance */
#sheet-sess .form, #sheet-sess > .field, #sheet-sess > .seg, #sheet-sess > div { margin-top: 12px; }
.sc-list { display: grid; gap: 8px; margin-bottom: 8px; }
.sc-ex { padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.sc-ex p { display: flex; justify-content: space-between; font-size: 14px; } .sc-ex p b { font-weight: 500; }
.sc-sets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.sc-set { padding: 6px 10px; border-radius: 11px; font: 900 13px var(--dot); background: rgba(203, 187, 255, .16); color: #CBBBFF; }
.sc-add { display: inline-flex; gap: 4px; align-items: center; }
.sc-add input { width: 58px; height: 34px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); text-align: center; font: 900 14px var(--dot); color: var(--ink); outline: none; }
.sc-add input:focus { border-color: #CBBBFF; }
.sc-add button { width: 34px; height: 34px; border-radius: 11px; background: #CBBBFF; color: #1A1036; font-size: 18px; }
.sc-tools { display: flex; align-items: center; gap: 10px; }
.notif-ask { display: flex; gap: 5px; flex: none; }

/* Barre « Tu es dans … » et panneau « Mes clubs » (clubs.js, 27/10/2026 : remplace les pilules et « ＋ Découvrir ») */
.fp-who .clubtag { flex: none; }
.club-pills { display: block; overflow: visible; margin: 2px 0 12px; padding: 0; }
.club-bar { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-radius: 999px; text-align: left; color: var(--ink);
  background: color-mix(in srgb, var(--c, #D7F57E) 9%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--c, #D7F57E) 30%, transparent); }
.club-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.club-bar small { display: block; color: var(--muted); font-size: 11px; } .club-bar b { font-size: 15px; font-weight: 500; }
.club-bar em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.clubs-list { display: grid; gap: 8px; margin: 16px 0 10px; }
.clubs-list .club-pill { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 20px; text-align: left; font-size: 14.5px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); white-space: normal; }
.clubs-list .club-pill.is-on { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--ink); font-weight: 400; }
.cl-txt b { display: block; font-weight: 500; } .cl-txt small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.clubs-list em, .club-find em { font-style: normal; color: var(--muted); }
#sheet-clubs .club-find { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; text-align: left; color: var(--ink); font-size: 14px; white-space: normal; }
#sheet-clubs .club-find i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-style: normal; font-size: 15px; }
#sheet-clubs .club-find b { display: block; font-weight: 500; } #sheet-clubs .club-find small { display: block; color: var(--muted); font-size: 12px; }
.cs-code { margin-top: 12px; }
/* Page d'un club : logo, visages, chiffres de la semaine (club-page.js) */
.cp-cover { position: relative; min-height: 150px; }
.cp-logo { position: absolute; top: 14px; left: 14px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: #0B0D06; background: var(--c, var(--accent)); box-shadow: 0 0 22px color-mix(in srgb, var(--c, #D7F57E) 45%, transparent); }
.cp-people { display: flex; align-items: center; gap: 10px; } .cp-people #cp-count { flex: 1; } #cp-today { justify-self: auto; }
.cp-faces { display: flex; } .cp-faces .face { width: 28px; height: 28px; font-size: 10px; margin-left: -8px; border: 2px solid #161816; } .cp-faces .face:first-child { margin-left: 0; }
.cp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cp-kpis:empty { display: none; }
.cp-kpis div { padding: 9px 8px; border-radius: 16px; background: var(--surface); text-align: center; }
.cp-kpis b { display: block; font-size: 19px; color: var(--accent); } .cp-kpis small { font-size: 11px; color: var(--muted); }
.my-sess-list { display: grid; } .my-sess-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.my-sess-row:last-child { border-bottom: 0; } .my-sess-row b { display: block; font-weight: 500; } .my-sess-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.my-sess-row em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
/* Onglet Salle : la séance du jour en détail, les prochains jours ; « Comment on note » (notation.js) */
.ms-fmt { font-size: 11px; letter-spacing: .08em; color: var(--accent); margin: 2px 0 2px; }
.ms-parts { display: grid; gap: 2px; font-size: 12.5px; color: rgba(244, 245, 241, .78); line-height: 1.45; margin: 4px 0 10px; }
.ms-parts b { font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ms-today-btns { display: flex; gap: 6px; margin-bottom: 4px; } .ms-today-btns .ghost-btn.small { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.ms-next { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ms-next:last-child { border-bottom: 0; }
.ms-next-d { text-align: center; } .ms-next-d small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; } .ms-next-d b { font-size: 15px; }
.ms-next-t small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.ms-next.is-empty .ms-next-t { color: var(--faint); }
.ms-next-b { display: flex; gap: 10px; } .ms-next-b button { font-size: 12.5px; color: var(--accent); }
.ms-next-b button[data-ms-note] { color: var(--muted); }
.nt-day { text-align: center; margin: 4px 0 14px; text-transform: none; }
#sheet-notation .field { margin-top: 12px; } #sheet-notation .cta { margin-top: 18px; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; } .nt-chips .chip-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
/* Une photo de profil reste dans son rond, partout (27/10/2026 : en taille réelle, elle élargissait le Fil).
   Sauf les visages d'équipe (.face.team), faits de ronds qui se chevauchent. */
.face:not(.team) { overflow: hidden; flex: none; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fil-list, .fil-list .fp, .fp-wod-row span { min-width: 0; }
.fp-photo { max-width: 100%; }

/* ---------- Carte du WOD, finition « graphite + couleur du jour » (29/10/2026, choix de Mario : E de
   docs/maquettes/wod-carte-2.html) : carte graphite au reflet métallique, halo de la couleur du thème du jour,
   une case par partie avec un trait de lumière à gauche (lime pour la partie notée) ---------- */
.wod { --tc: #A8EBCB; --tv: #3FD9A6; }
.wod.th-long { --tc: #9DEBDD; --tv: #3FE0C5; }
.wod.th-lourd { --tc: #FFC489; --tv: #FF9440; }
.wod.th-skill { --tc: #CBBBFF; --tv: #8F6BFF; }
.wod.th-test { --tc: #FFB3D9; --tv: #FF4FA3; }
.wod {
  padding: 22px 16px 18px;
  border-color: color-mix(in srgb, var(--tv) 26%, rgba(255, 255, 255, .1));
  background:
    radial-gradient(90% 300px at 100% 0%, color-mix(in srgb, var(--tv) 70%, white 8%), color-mix(in srgb, var(--tv) 22%, transparent) 42%, transparent 72%),
    linear-gradient(180deg, #1A1C1A, #0E0F0E 360px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--tv) 10%, transparent);
}
.wod::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75) 50%, transparent); }
.wod::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%); }
.wod > * { position: relative; z-index: 1; }
.wod .wod-head { padding: 0 2px; }
.wod-day { font: 900 28px var(--dot); line-height: 1; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--tv) 70%, transparent); }
.wod-day small { font: 400 13px var(--font); color: var(--muted); margin-right: 8px; vertical-align: 4px; }
.wod-day small { display: inline-block; }
.wod-day small::first-letter { text-transform: uppercase; }
.wod .wod-session { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: rgba(0, 0, 0, .5); }
.wod .wod-session::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 12px var(--tv); }
.wod-h { font-size: 32px; font-weight: 300; letter-spacing: -.045em; line-height: 1.05; margin: 16px 2px 4px; }
.wod .wod-box { margin: 0 2px; }

/* Une case par partie */
.wod .wod-part { position: relative; overflow: hidden; margin-top: 14px; padding: 15px 15px 9px 19px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .4); }
.wod .wod-part + .wod-part { padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .07); }
.wod .wod-part::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--tv); box-shadow: 0 0 14px var(--tv); }
.wod .wod-part.is-scored { border-color: rgba(215, 245, 126, .32); background: radial-gradient(90% 80% at 0% 50%, rgba(215, 245, 126, .11), transparent 70%), rgba(0, 0, 0, .4); }
.wod .wod-part.is-scored::before { background: var(--accent); box-shadow: 0 0 16px var(--accent), 0 0 4px var(--accent); }
.wod .part-head { justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; color: var(--tc); }
.wod .part-head em { font-style: normal; font-weight: 500; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.wod .part-head em::before { content: "● "; }
.wod .wod-part.is-scored .part-head, .wod .wod-part.is-max .part-head { color: var(--accent); }
.wod .part-head em.is-max { color: var(--pr); }
.wod .wod-part .wod-format { gap: 4px 10px; margin-top: 8px; }
.wod .wod-part .wod-kind { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-transform: none; }
.wod .wod-part .wod-cap { font: 900 17px var(--dot); color: var(--accent); padding: 0; border: 0; text-shadow: 0 0 12px rgba(215, 245, 126, .45); }
.wod .wod-part .wod-scheme { color: var(--muted); font-size: 13.5px; margin: 0; }
.wod .wod-link { font-size: 12.5px; padding: 5px 11px; margin-top: 8px; }
.wod .wod-part .moves { margin: 6px 0 0; }
.wod .wod-part .moves li, .wod .wod-part:not(.is-scored) .moves li { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.wod .wod-part .moves li:first-child { border-top: 0; }
.wod .wod-part .mv { display: grid; grid-template-columns: 46px minmax(45%, 1fr) auto; align-items: baseline; gap: 6px; font-size: 15.5px; }
.wod .wod-part li.rest .mv { display: flex; }
.wod .wod-part .mv:not(:has(.mv-n)) { grid-template-columns: minmax(50%, 1fr) auto; }
.mv-n { font: 900 17px var(--dot); letter-spacing: .02em; color: var(--tc); }
.mv-n.is-word { font: 700 11px var(--font); letter-spacing: .1em; text-transform: uppercase; }
.mv-n.is-long { font-size: 12px; letter-spacing: 0; }
.wod .wod-part.is-scored .mv-n { color: var(--accent); }
.mv-g { font-style: normal; font-size: 10.5px; font-weight: 800; margin-right: 7px; padding: 1px 6px; border-radius: 6px; vertical-align: 1px;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.wod .wod-note { margin: 12px 2px 0; }
.wod-mods { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 2px 0; }
.wod-mods:empty { display: none; }
.wod-mods .mod { font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.wod-mods .mod.G { background: rgba(169, 193, 255, .16); color: #A9C1FF; }
.wod-mods .mod.H { background: rgba(255, 196, 137, .16); color: #FFC489; }
.wod-mods .mod.M { background: rgba(215, 245, 126, .14); color: var(--accent); }
.wod #open-entry { margin-top: 16px; }
.wod #open-entry:not(.is-done) { background: linear-gradient(180deg, #E6FF8F, #C8EA62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 26px rgba(215, 245, 126, .25); }

/* Inviter, tout en bas du whiteboard (30/10/2026, clubs.js) : le code du club pour ses coachs, « Invite un pote » sinon */
.wb-invite { margin: 16px 0 0; padding: 14px 16px; border-radius: 22px; border: 1px solid rgba(215, 245, 126, .3);
  background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--c, #D7F57E) 16%, transparent), transparent 62%), var(--surface); }
.wbi-row { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; text-align: left; color: var(--ink); }
button.wbi-row { grid-template-columns: auto 1fr auto; }
.wbi-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.wbi-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wbi-row span { min-width: 0; font-size: 14.5px; } .wbi-row span b { font-weight: 500; }
.wbi-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.wbi-code { display: block; font-size: 24px; margin-top: 2px; letter-spacing: .05em; color: var(--accent); text-shadow: 0 0 18px rgba(215, 245, 126, .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbi-row em, .wbi-go { font-style: normal; padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent); }
.wbi-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wbi-btns button { min-height: 42px; display: grid; place-items: center; text-align: center; }
.wbi-copy { padding: 9px 12px; border-radius: 999px; font-size: 13px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.wbi-note { color: var(--muted); font-size: 12px; margin: 10px 2px 0; }
/* Chrono & ma séance, tout en bas du whiteboard (14/11/2026) : met en avant « S'entraîner » (entrainer.js) */
.wb-train { margin: 12px 0 0; padding: 14px 14px 12px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgba(111, 195, 255, .14), transparent 62%), var(--surface); }
.wbt-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--ink); }
.wbt-head small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wbt-head b { display: block; font-size: 17px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.wbt-clock { flex: none; font-style: normal; font-size: 28px; line-height: 1; color: var(--accent); text-shadow: 0 0 18px rgba(215, 245, 126, .3); }
.wbt-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.wbt-fmts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 9px 2px 8px; border-radius: 16px;
  font-size: 12.5px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); white-space: nowrap; }
.wbt-fmts i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 8px var(--c); }
.wbt-more { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.wbt-more button { min-height: 42px; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; }
.wbt-write { font-weight: 600; color: var(--accent-ink); background: var(--accent); }
.wbt-all { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
@media (max-width: 340px) { .wbt-fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sous-menu de Perfs (30/10/2026, perfs-menu.js) : pilules collées en haut, une touche = on saute à la partie */
.perf-menu { position: sticky; top: env(safe-area-inset-top); z-index: 7; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -4px -16px 0; padding: 8px 16px 12px;
  background: linear-gradient(var(--bg) 76%, rgba(10, 11, 10, 0)); }
.perf-menu::-webkit-scrollbar { display: none; }
.perf-menu::after { content: ""; flex: none; width: 8px; }   /* un peu d'air après la dernière pilule */
.pm-pill { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink); background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line); transition: background .2s, color .2s; }
.pm-pill.is-on { background: var(--ink); color: var(--bg); font-weight: 600; border-color: var(--ink); }
.view[data-view="perfs"] > section { scroll-margin-top: 70px; }

/* ---------- Trouve ta prog et la fiche du club (09/11/2026, club-page.js, maquette docs/maquettes/telephone-prog.html) :
   le logo du club (Studio) dans une tuile sombre, ses badges, séances par semaine et athlètes ; jamais gym / haltéro / cardio ---------- */
.dc-av.has-logo, .cp-logo.has-logo, .tp-logo.has-logo, .cb-logo.has-logo { background: #141514 center / 84% no-repeat; border: 1px solid var(--line-strong); box-shadow: 0 0 18px color-mix(in srgb, var(--c, #D7F57E) 22%, transparent); color: transparent; }
.dc-av.has-logo { border-radius: 13px; }
.cb-logo { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.cp-logo.has-logo { position: static; width: 72px; height: 72px; border-radius: 22px; margin-bottom: 12px; flex: none; }
.tp-sub { margin: -4px 2px 12px; }
.tp-seg { margin-bottom: 10px; }
.tp-card { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; border-radius: 24px; padding: 14px; margin-top: 10px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 45%, rgba(0,0,0,.2)); color: var(--ink); }
.tp-card.is-member { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tp-row { display: flex; gap: 12px; align-items: center; }
.tp-logo { width: 54px; height: 54px; border-radius: 17px; flex: none; display: grid; place-items: center; font: 900 15px var(--dot); color: #0B0D06; background: var(--c); }
.tp-txt b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; } .tp-txt small { color: var(--muted); font-size: 12.5px; }
.tp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--ink); }
.tp-badge.cf::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.tp-badge.hx { background: rgba(255,214,0,.13); color: #FFE066; } .tp-badge.hx::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FFE066; }
.tp-badge.online { background: rgba(141,227,185,.12); color: #8DE3B9; }
.tp-badge.city { background: rgba(255,255,255,.05); color: var(--muted); font-weight: 400; } .tp-badge.city::before { content: "⌖"; }
.tp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tp-facts > span { padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.tp-facts b { display: block; font: 900 20px var(--dot); } .tp-facts small { color: var(--muted); font-size: 11.5px; }
.tp-empty { margin-top: 12px; padding: 16px; border-radius: 22px; border: 1px dashed var(--line-strong); } .tp-empty b { font-weight: 500; }
.cp-badges { margin-top: 10px; }
.cp-fiche { display: grid; gap: 10px; margin-top: 12px; }
.cp-box { padding: 14px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.cp-bt { display: block; font-weight: 500; margin-bottom: 8px; }
.cp-box q { display: block; color: var(--ink); line-height: 1.5; quotes: "« " " »"; }
.cp-coach { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.cp-coach i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); }
.cp-coach b { display: block; font-weight: 500; } .cp-coach small { color: var(--muted); font-size: 12.5px; }
.cp-plan { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; font-size: 13px; } .cp-plan > span:nth-child(odd) { color: var(--muted); }
.cp-plan em { font-style: normal; display: inline-block; margin: 0 6px 4px 0; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); }
.cp-equip { display: flex; flex-wrap: wrap; gap: 6px; } .cp-equip span { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 13px; } .cp-equip b { font: 900 14px var(--dot); margin-right: 5px; }
.cp-life { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; } .cp-life b { display: block; font: 900 22px var(--dot); } .cp-life small { color: var(--muted); font-size: 11.5px; }
.cp-lock { text-align: center; margin: 4px 0 0; }
.ms-studio { margin: 2px 0 10px; padding: 10px 12px; border-radius: 16px; background: rgba(215,245,126,.07); border: 1px solid rgba(215,245,126,.18); font-size: 12.5px; color: var(--muted); }
.ms-studio b { color: var(--ink); font-weight: 500; } .ms-draft { color: #FFC266 !important; }

/* ---------- Page de présentation en deux parcours (10/11/2026) : l'athlète, et la page de vente des coachs ---------- */
.in-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 460px; margin: 14px 0 0; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.in-switch button { min-height: 42px; border-radius: 999px; font-size: 14px; color: var(--muted); text-align: center; }
.in-switch button.is-on { background: var(--ink); color: var(--bg); font-weight: 500; }
.in-path[hidden] { display: none; }
.in-h2 { font-size: clamp(30px, 8vw, 46px); font-weight: 200; letter-spacing: -.045em; line-height: 1.05; margin: 34px 2px 16px; }
.in-h2 em { font-style: normal; color: var(--accent); }
.in-tile b.dot { white-space: nowrap; }
.in-final .link-btn { font-size: 14px; color: var(--muted); }
.in-foot { text-align: center; }
.in-note { color: var(--faint); font-size: 12px; margin: 12px 4px 0; }
/* Le Studio en vraie capture (page des coachs, 17/11/2026) */
.in-studio { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #0E0F0E;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(215,245,126,.08); animation: in-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.in-studio img { display: block; width: 100%; height: auto; }
.isd-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161816; border-bottom: 1px solid var(--line); }
.isd-bar i { flex: none; width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.18); }
.isd-bar span { margin-left: auto; font-size: 11px; color: var(--faint); }
@media (min-width: 900px) {
  .in-tiles-coach, .in-path[data-path="athlete"] .in-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .in-hero-coach { align-items: center; }
}

/* ---------- Présentation détaillée (17/11/2026, demande de Mario) : 3e parcours « L'écosystème », chiffres,
   chapitres avec une capture de la démo, liste des fonctions, produits de la famille mūe club ---------- */
.in-switch { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.in-switch button { font-size: 13px; padding: 0 6px; }
.in-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 30px 0 6px; }
.in-stats li { display: grid; gap: 4px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.in-stats b { font-family: var(--dot); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: .02em; }
.in-stats b small { font-size: 20px; margin-left: 2px; }
.in-stats span { font-size: 13px; color: var(--muted); }
.in-chap { display: grid; gap: 22px; margin-top: 54px; }
.in-kicker { display: block; font-family: var(--dot); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.in-chap .in-h2 { margin-top: 10px; margin-bottom: 10px; }
.in-chap-lead { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 34em; }
.in-shot { width: 62%; max-width: 280px; margin: 0 auto; padding: 2.2%; border-radius: 32px; background: #050605;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 26px 60px rgba(0, 0, 0, .55); }
.in-shot img { display: block; width: 100%; height: auto; border-radius: 26px; }
.in-feats { list-style: none; display: grid; gap: 0; margin-top: 18px; }
.in-feats li { display: grid; gap: 3px; align-content: start; padding: 13px 2px; border-top: 1px solid var(--line); }
.in-feats li:last-child { border-bottom: 1px solid var(--line); }
.in-feats b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.in-feats span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.in-feats.is-grid { gap: 10px; }
.in-feats.is-grid li, .in-feats.is-grid li:last-child { padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.in-small { font-size: 13px; color: var(--muted); }
.in-center { text-align: center; }
.in-cta-center { justify-content: center; justify-items: stretch; width: 100%; }
/* L'écosystème */
.in-eco-hero { padding-top: 4vh; max-width: 760px; }
.in-eco { display: grid; gap: 12px; margin-top: 30px; }
.in-prod { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 26px; border: 1px solid var(--line-strong); background: var(--surface); }
.in-prod header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.in-prod-name { font-size: 26px; font-weight: 300; letter-spacing: -.04em; }
.in-prod-name em { font-style: normal; font-weight: 600; }
.in-status { flex: none; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.in-status.is-live { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.in-prod-for { font-family: var(--dot); font-weight: 900; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.in-prod > p { font-size: 15px; line-height: 1.45; }
.in-prod ul { list-style: none; display: grid; gap: 6px; }
.in-prod li { display: flex; gap: 9px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.in-prod li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--ink); }
.in-prod.is-soon { border-style: dashed; }
.in-prod-note { font-size: 13px !important; color: var(--faint); }
.in-prod-go { justify-self: start; margin-top: 4px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.in-flow { list-style: none; counter-reset: fl; display: grid; gap: 10px; }
.in-flow li { counter-increment: fl; position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 62px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.in-flow li::before { content: counter(fl); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-family: var(--dot); font-weight: 900; font-size: 14px; }
.in-flow b { font-size: 16px; font-weight: 500; }
.in-flow span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.in-flow em { font-style: normal; color: var(--ink); font-weight: 500; }
@media (min-width: 700px) {
  .in-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .in-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .in-switch button { font-size: 14px; }
  .in-chap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; margin-top: 90px; }
  .in-chap.is-flip .in-shot { order: 2; }
  .in-chap-wide { grid-template-columns: 1fr; }
  .in-shot { width: 100%; max-width: 320px; }
  .in-feats.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .in-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Whiteboard compact (10/11/2026, choix de Mario : docs/maquettes/whiteboard-v2.html) ----------
   Niveaux Tous · RX+ · RX · Scaled, filtres en petites pilules, une ligne par score, couronne par niveau, pastilles de
   niveau, liseré du palier autour des initiales, barre 👊 / commentaires qui glisse sous la ligne touchée */
.wb-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: nowrap; }
.wb-levels[hidden] { display: none; }
.wb-levels .seg-btn { border: 0; padding: 8px 4px; font-size: 13px; white-space: nowrap; }
.wb-levels .seg-btn em { font-style: normal; opacity: .55; margin-left: 4px; font-size: 11.5px; }
.wb-filters .seg-btn { padding: 0 11px; height: 30px; font-size: 12px; min-height: 0; }
.wb-filters .seg-btn.is-on { background: rgba(215, 245, 126, .08); color: var(--accent); border-color: rgba(215, 245, 126, .5); }
.wb-rows .row { grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wb-rows .row.is-me { margin: 2px -10px; padding: 8px 10px; border-radius: 18px; }
.wb-rows .rank { font-size: 15px; } .wb-rows .rank.is-crown { font: 16px var(--font); }
.wb-rows .row:nth-child(1) .rank { color: var(--muted); }
.wb-rows .face { width: 34px; height: 34px; font-size: 11.5px; overflow: visible; }
.wb-rows .face.tier { --m: #E8EDF2; border: 0; box-shadow: 0 0 0 2px var(--m), 0 0 10px color-mix(in srgb, var(--m) 35%, transparent); }
.wb-rows .face.tier.bronze { --m: #E6B07A; } .wb-rows .face.tier.or { --m: #FFE08A; } .wb-rows .face.tier.elite { --m: #D8F3FF; }
.wb-rows .face.tier img { border-radius: 50%; }
.wb-rows .who { min-width: 0; }
.wb-rows .who b { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; }
.wb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-weight: 500; color: inherit; padding: 0; }
.wb-rows .row.is-team .who b { flex-wrap: wrap; }
.wb-rows .lv { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; line-height: 1.3; }
.wb-rows .lv.plus { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px rgba(215, 245, 126, .55); }
.wb-rows .lv.rx { background: rgba(244, 245, 241, .12); color: var(--ink); border: 1px solid rgba(244, 245, 241, .35); }
.wb-rows .lv.sc { background: rgba(169, 193, 255, .14); color: #A9C1FF; }
.wb-last { display: block; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.wb-last i { font-style: normal; color: var(--muted); }
.wb-rt { display: grid; justify-items: end; gap: 1px; }
.wb-rt .time-res { font-size: 17px; min-width: 0; }
.wb-count { font-size: 11px; color: var(--faint); white-space: nowrap; } .wb-count.is-on { color: var(--accent); font-weight: 600; }
.wb-rows .row.is-open .rank, .wb-rows .row.is-open .wb-name { color: var(--accent); }
/* Séparation de couleur entre les niveaux, dans « Tous » */
.wb-sep { --k: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: 11.5px; font-weight: 700; color: var(--k); letter-spacing: .08em; text-transform: uppercase; }
.wb-sep:first-child { margin-top: 4px; }
.wb-sep::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--k), transparent); opacity: .7; }
.wb-sep em { font-style: normal; font-weight: 400; color: var(--faint); }
.wb-sep.plus { --k: var(--accent); } .wb-sep.sc { --k: #A9C1FF; }
.wb-sep + .row { border-top: 0; }
/* La barre qui glisse sous la ligne touchée */
.wb-drawer { margin: 0 0 8px; animation: wb-open .28s ease both; }
.wb-drawer .talk-line, .wb-drawer .talk-more { margin-left: 66px; }
@keyframes wb-open { from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
.wb-drawer .comment-form { margin-left: 0; width: 100%; margin-top: 4px; }
.wb-bump { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.wb-bump.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wb-bump.pop { animation: wb-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wb-pop { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.wb-drawer .comment-form input { min-width: 0; flex: 1; }
.wb-hint { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--faint); margin-top: 10px; }
.wb-hint[hidden] { display: none; }
.wb-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: wb-blink 1.6s infinite; }
@keyframes wb-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .wb-drawer, .wb-bump.pop, .wb-hint i { animation: none; } }
/* Réactions rapides (🔥 💪 🙌) bien centrées dans leur rond (10/11/2026, retour de Mario) */
.quick-btn { display: grid; place-items: center; padding: 0; line-height: 1; text-align: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }
.wb-drawer .quick-btn { width: 38px; height: 38px; font-size: 17px; }

/* ---------- Mes succès en grandes bandes (10/11/2026, choix de Mario : docs/maquettes/succes-bandes.html) ---------- */
.succ-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.succ-grid > div:not(.sx-w) { display: block; }
.sxb { --c: #FFC489; position: relative; overflow: hidden; border-radius: 26px; padding: 16px 16px 14px;
  background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 62%), linear-gradient(180deg, #1A1C1A, #111211);
  border: 1px solid color-mix(in srgb, var(--c) 24%, rgba(255, 255, 255, .08)); }
.sxb::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.sxb-top { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.sxb-big { height: 74px; border-radius: 22px; display: grid; place-items: center; font: 900 30px var(--dot); color: var(--c); white-space: nowrap;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), rgba(0, 0, 0, .3);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.sxb-big small { font-size: 14px; opacity: .6; }
.sxb-ttl { min-width: 0; } .sxb-ttl b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.sxb-ttl span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sxb-tier { --t: #E8EDF2; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #1A1206; white-space: nowrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 70%, white), var(--t) 55%, color-mix(in srgb, var(--t) 60%, black)); box-shadow: 0 0 16px color-mix(in srgb, var(--t) 45%, transparent); }
.sxb-tier.bronze { --t: #C8874A; } .sxb-tier.argent { --t: #B9C2CC; } .sxb-tier.or { --t: #F2D27A; } .sxb-tier.elite { --t: #CDEBFF; }
.sxb-tier.none { background: rgba(255, 255, 255, .08); color: var(--muted); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 500; }
.sxb-prog { margin-top: 14px; } .sxb-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sxb-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, transparent), var(--c)); box-shadow: 0 0 10px var(--c); }
.sxb-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; } .sxb-lab b { color: var(--ink); font-weight: 500; }
.sxb-det { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sxb-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 13.5px; }
.sxb-lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxb-l > span:last-child { color: var(--muted); white-space: nowrap; } .sxb-l em { font-style: normal; color: var(--c); font-weight: 600; font-size: 12.5px; }
.sxb-sub { margin-top: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sxb-sub + .sxb-det { margin-top: 6px; padding-top: 8px; }
.sxb-redo .sxb-l em { color: var(--muted); font-weight: 500; }
.sxb-how { margin-top: 10px; font-size: 12px; color: var(--faint); line-height: 1.4; } .sxb-how b { color: var(--muted); font-weight: 500; }
.sxb-weeks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 12px; }
.sxb-weeks i { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .07); display: grid; place-items: end center; font-style: normal; font-size: 9.5px; color: var(--faint); padding-bottom: 3px; }
.sxb-weeks i.on { background: color-mix(in srgb, var(--c) 70%, transparent); color: #1A0A12; } .sxb-weeks i.now { outline: 2px solid var(--c); outline-offset: 1px; }
.sxb-lvls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.sxb-lvls span { padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
.sxb-lvls b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.sxb-race { display: grid; gap: 6px; margin-top: 12px; }
.sxb-race div { display: grid; grid-template-columns: 70px 1fr 26px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.sxb-race div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxb-race i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.sxb-race i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 4px; }
.sxb-race div.me { color: var(--ink); } .sxb-race b { font: 900 13px var(--dot); text-align: right; color: var(--ink); }
.sxb.off { --c: rgba(244, 245, 241, .45); } .sxb.off .sxb-big { color: var(--faint); text-shadow: none; }

/* ---------- Onglet Salle refait (10/11/2026) : la séance comme une carte du Studio, plan de cours, relancer, bravo ---------- */
.ms-seance { --lourd: #FFC489; --skill: #CBBBFF; --long: #9DEBDD; --test: #FFB0D2; }
.ms-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 0 0 12px; }
.ms-days button { --c: var(--accent); position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 0 10px; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid transparent; }
.ms-days button small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ms-days button b { font-size: 15px; }
.ms-days button i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.ms-days button i.is-draft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.ms-days button.is-empty b { color: var(--faint); }
.ms-days button.is-on { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.ms-days button.is-on small { color: var(--c); }
.ms-seance .th-lourd { --c: var(--lourd); --g: rgba(255,168,92,.26); } .ms-seance .th-skill { --c: var(--skill); --g: rgba(168,140,255,.28); }
.ms-seance .th-long { --c: var(--long); --g: rgba(96,214,198,.24); } .ms-seance .th-test { --c: var(--test); --g: rgba(255,140,190,.24); }
.ms-seance .th-none { --c: var(--accent); --g: rgba(215,245,126,.12); }
.ms-tile { border-radius: 22px; padding: 16px; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0;
  background: radial-gradient(120% 60% at 0% 110%, var(--g), transparent 62%), rgba(255,255,255,.03); }
.ms-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ms-sh-d { display: flex; align-items: baseline; gap: 8px; } .ms-sh-d small { font-size: 12px; color: var(--muted); text-transform: capitalize; } .ms-sh-d b { font-size: 22px; }
.ms-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.ms-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ms-st { font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; } .ms-st.is-empty { font-size: 16px; color: var(--muted); }
.ms-draft-l { font-size: 12.5px; color: #FFC266; margin-top: -6px; }
.ms-sec { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.ms-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 2px; }
.ms-sec-h b { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.ms-sec-h span { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.ms-sec-h em { margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ms-ln { color: rgba(244,245,241,.88); overflow-wrap: anywhere; }
.ms-tip { margin-top: 6px; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--ink);
  background: color-mix(in srgb, var(--c) 8%, transparent); border-left: 2px solid var(--c); }
.ms-tip b { display: block; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.ms-lv { display: grid; gap: 4px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.ms-lv b { display: inline-block; min-width: 54px; color: var(--ink); font-weight: 600; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ms-chips .mod { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.ms-chips .mod.G { background: rgba(169,193,255,.16); color: #A9C1FF; } .ms-chips .mod.H { background: rgba(255,196,137,.16); color: #FFC489; }
.ms-chips .mod.M { background: rgba(215,245,126,.14); color: #D7F57E; } .ms-chips .mod.pvc { border: 1px solid var(--line-strong); }
.ms-tile .ms-today-btns { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-tile .ms-today-btns .ghost-btn { flex: 1 1 auto; margin-top: 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; } .ms-tile .ms-today-btns:empty { display: none; }
.ms-plan { min-width: 0; margin-top: 12px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.025); display: grid; gap: 12px; }
.ms-plan-h { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); font-weight: 600; } .ms-plan-h span { color: var(--faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
.ms-tlbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.ms-tlbar i, .ms-tl li::before { background: var(--k); }
.ms-tl { list-style: none; display: grid; gap: 6px; }
.ms-tl li { display: grid; grid-template-columns: 10px 64px 1fr; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.ms-tl li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.ms-tl li span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-tl li.k-wod, .ms-tl li.k-a, .ms-tl li.k-renfo, .ms-tl li.k-pvc { color: var(--ink); } .ms-tl li.k-wod { font-weight: 600; color: var(--accent); }
.ms-plan .k-wod { --k: #D7F57E; } .ms-plan .k-a { --k: #A9C1FF; } .ms-plan .k-renfo { --k: #9DEBDD; } .ms-plan .k-pvc { --k: #CBBBFF; } .ms-plan .k-ex { --k: rgba(255,255,255,.28); }
.ms-pb { padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.ms-pb > b { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.ms-pvc { padding-left: 20px; display: grid; gap: 4px; } .ms-pvc li b { font-weight: 600; } .ms-pvc li span { color: var(--muted); } .ms-pvc li span::before { content: " — "; }
.ms-noplan { margin-top: 10px; font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.ms-studio a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-studio .link-btn { display: inline; margin-left: 6px; font-size: 12.5px; }
.ms-seance .ms-studio { margin-top: 12px; }
.ms-acts li { align-items: center; }
.ms-who { display: grid; gap: 1px; min-width: 0; text-align: left; }
.ms-list .ms-who small { text-align: left; }
.ms-list .ms-act, .ms-act { flex: none; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent); }
.ms-list .ms-act.is-done, .ms-act.is-done { color: var(--muted); background: rgba(255,255,255,.07); font-weight: 500; }
.ms-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ms-more summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.ms-more summary::-webkit-details-marker { display: none; }
.ms-more summary::after { content: " ▾"; } .ms-more[open] summary::after { content: " ▴"; }
.ms-team .ms-team-q { width: 100%; box-sizing: border-box; margin: 10px 0 4px; text-transform: none; letter-spacing: 0; }
.ms-team > .link-btn { margin-top: 10px; }
.ms-src { font-size: 12px; color: var(--muted); margin-top: -6px; }

/* Parties notées en plus (11/11/2026, parties-notees.js) */
.part-ctas { display: grid; gap: 0; }
.part-boards .max-board .row { grid-template-columns: 26px 40px minmax(0, 1fr) auto; }

/* ---------- Le chrono (chrono.js, 12/11/2026 ; maquette docs/maquettes/entrainer.html) ---------- */
.chrono { --h: var(--accent); position: fixed; inset: 0; z-index: 32; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .25s; background: #050605; isolation: isolate; }
.chrono.is-on { opacity: 1; }
.chrono::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; filter: blur(12px); transition: background .6s;
  background: radial-gradient(45% 30% at 88% 4%, color-mix(in srgb, var(--h) 30%, transparent), transparent 72%), radial-gradient(50% 32% at 0% 96%, color-mix(in srgb, var(--h) 15%, transparent), transparent 72%); }
.chrono.chr-flash { animation: chr-flash .8s; }
@keyframes chr-flash { 30% { box-shadow: inset 0 0 140px 14px color-mix(in srgb, var(--h) 45%, transparent); } }
body.chrono-open { overflow: hidden; }
body.chrono-open .toast { z-index: 33; }
.chr-in { min-height: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 22px); }
.chr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; }
.chr-ttl { min-width: 0; } .chr-ttl span { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chr-ttl h2 { font: 900 24px var(--dot); letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.chr-acts { display: flex; gap: 8px; flex: none; }
.chr-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); font-size: 15px; background: rgba(255, 255, 255, .04); }
.chr-ic.on { border-color: rgba(215, 245, 126, .45); }
.chr-fmts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px -18px 0; padding: 0 18px 2px; }
.chr-fmts::-webkit-scrollbar { display: none; }
.chr-fmts button { --c: var(--accent); flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.chr-fmts button.on { color: var(--accent-ink); background: var(--c); border-color: var(--c); font-weight: 500; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.chr-from { margin: 14px 4px 0; font-size: 12.5px; color: var(--faint); }
.chr-glass { margin-top: 12px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.chr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 14.5px; }
.chr-glass > .chr-row + .chr-row { border-top: 1px solid var(--line); }
.chr-step { display: flex; align-items: center; gap: 4px; }
.chr-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; line-height: 1; color: var(--muted); }
.chr-step b, .chr-step input { min-width: 74px; width: 74px; text-align: center; font-size: 17px; font-weight: 400; font-variant-numeric: tabular-nums; }
.chr-step input { height: 38px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); color: var(--ink); font-family: var(--font); }
.chr-sw { width: 48px; height: 29px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; transition: .2s; flex: none; }
.chr-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: .2s; }
.chr-sw.on { background: var(--accent); } .chr-sw.on::after { left: 22px; background: var(--accent-ink); }
.chr-big { font: 900 92px/1 var(--dot); letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 30px color-mix(in srgb, var(--h) 40%, transparent); }
.chr-prev { margin: 34px 0 6px; }
.chr-sum { text-align: center; font-size: 13px; color: var(--faint); margin-top: 4px; }
.chr-go { margin-top: auto; min-height: 64px; font-size: 19px; }
.chr-in > .chr-sum + .chr-go { margin-top: 26px; }
.chr-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h);
  padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--h) 13%, transparent); border: 1px solid color-mix(in srgb, var(--h) 35%, transparent); }
.chr-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--h); box-shadow: 0 0 8px var(--h); }
.chr-tot { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chr-lab { text-align: center; margin-top: 6vh; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--h); }
.chr-run { margin-top: 8px; font-size: min(28vw, 128px); }
.chr-run.is-prep { font-size: min(40vw, 170px); color: var(--accent); }
.chr-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin: 20px 4px 0; overflow: hidden; }
.chr-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--h); box-shadow: 0 0 12px var(--h); }
.chr-round { width: 100%; margin-top: 14px; min-height: 96px; border-radius: 30px; display: grid; place-content: center; gap: 2px; text-align: center; color: var(--ink);
  background: color-mix(in srgb, var(--h) 16%, rgba(255, 255, 255, .04)); border: 1px solid color-mix(in srgb, var(--h) 50%, transparent); transition: transform .12s; touch-action: manipulation; }
.chr-round:active { transform: scale(.97); }
.chr-round b { font-size: 22px; font-weight: 500; } .chr-round small { font-size: 12.5px; color: var(--muted); }
.chr-round.flash { animation: chr-tap .35s; }
@keyframes chr-tap { 40% { background: var(--h); } }
.chr-splits { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; min-height: 28px; }
.chr-splits::-webkit-scrollbar { display: none; }
.chr-splits span { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chr-splits span b { color: var(--ink); font-weight: 500; margin-right: 5px; }
.chr-ctrl { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.chr-ctrl button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 50px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); font-size: 14.5px; color: var(--ink); }
.chr-ctrl button.on { color: var(--accent); border-color: rgba(215, 245, 126, .5); }
.chr-k { text-align: center; margin-top: 6vh; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--h); }
.chr-done { margin-top: 10px; font-size: min(22vw, 92px); }
.chr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.chr-facts div { padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.chr-facts small { display: block; font-size: 11px; color: var(--faint); } .chr-facts b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chr-end { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; }
.chr-again { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .04); }

/* ---------- S'entraîner : menu, ma séance, outils (entrainer.js, 12/11/2026) ---------- */
.train { z-index: 31; }
body.train-open { overflow: hidden; }
body.train-open .toast { z-index: 33; }
.tr-ttl { flex: 1; }
.chr-top > .chr-back { font-size: 24px; line-height: 1; flex: none; padding-bottom: 2px; }
.chr-top > .chr-ttl { flex: 1; }
.tr-h { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 22px 4px 8px; }
.tr-resume { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 12px 12px 16px; border-radius: 22px; background: var(--accent-soft); border: 1px solid rgba(215, 245, 126, .35); }
.tr-resume div { flex: 1; min-width: 0; } .tr-resume small { display: block; font-size: 11.5px; color: var(--accent); }
.tr-resume b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-x { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); flex: none; }
.cta.tr-sm, .outline-btn.tr-sm { min-height: 42px; padding: 0 16px; font-size: 14px; width: auto; flex: 1; justify-content: center; }
.outline-btn.tr-sm { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .04); }
.tr-fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-fmts button { --c: var(--accent); position: relative; overflow: hidden; padding: 12px 10px 11px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--ink); }
.tr-fmts button::after { content: ""; position: absolute; right: -24px; top: -24px; width: 64px; height: 64px; border-radius: 50%; background: var(--c); opacity: .2; filter: blur(16px); }
.tr-fmts i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); margin-bottom: 9px; }
.tr-fmts b { display: block; font-size: 14px; font-weight: 500; } .tr-fmts small { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; line-height: 1.25; }
.tr-tile { padding: 16px; margin-top: 0; } .tr-tile p { font-size: 13.5px; color: var(--muted); }
.tr-btns { display: flex; gap: 8px; margin-top: 12px; }
.tr-redo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--faint); }
.tr-chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .04); white-space: nowrap; }
.tr-chip.on { border-color: rgba(215, 245, 126, .55); color: var(--accent); background: var(--accent-soft); }
.tr-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tr-tools .tr-chip { justify-content: center; padding: 12px 6px; }
.tr-write { padding: 14px; margin-top: 16px; }
.tr-write textarea { width: 100%; min-height: 160px; resize: vertical; background: transparent; border: 0; outline: 0; color: var(--ink); font: 15px/1.5 var(--font); }
.tr-hint { font-size: 12px; color: var(--faint); margin-top: 8px; }
.cta.tr-go { margin-top: 14px; }
.tr-part { --k: var(--accent); position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 14px; margin-top: 8px; border-radius: 22px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.tr-part::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--k); box-shadow: 0 0 10px var(--k); }
.tr-lt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--dot); background: rgba(255, 255, 255, .07); }
.tr-part b { font-weight: 500; font-size: 15px; } .tr-part em { display: block; font-style: normal; font-size: 12px; color: var(--k); margin-top: 1px; }
.tr-part p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tr-name { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; font-size: 14px; color: var(--faint); }
.tr-name input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 16px var(--font); }
.tr-seg { margin-top: 0; }
.tr-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.tr-dots button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 900 14px var(--dot); background: rgba(255, 255, 255, .06); color: var(--faint); border: 1px solid var(--line); }
.tr-dots button.done { background: var(--accent-soft); color: var(--accent); border-color: rgba(215, 245, 126, .35); }
.tr-dots button.cur { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px rgba(215, 245, 126, .45); }
.tr-do { --k: var(--accent); padding: 16px; margin-top: 0; border-left: 3px solid var(--k); }
.tr-kick { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--k); }
.tr-lines { display: grid; gap: 4px; margin-top: 10px; }
.tr-line { font-size: 15px; }
.tr-chk { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 15px; text-align: left; color: var(--ink); }
.tr-chk i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.tr-chk.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .tr-chk.on span { color: var(--faint); }
.tr-ex { margin-top: 12px; } .tr-ex > b { font-size: 16px; font-weight: 500; }
.tr-goal { margin: 8px 0 4px; padding: 9px 12px; border-radius: 14px; background: rgba(215, 245, 126, .07); border: 1px solid rgba(215, 245, 126, .2); font-size: 13px; color: var(--muted); }
.tr-goal b { color: var(--accent); font-weight: 600; }
.tr-set { display: grid; grid-template-columns: 22px auto auto 1fr; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.tr-set > span { font: 900 14px var(--dot); text-align: center; }
.tr-set label { display: flex; align-items: center; gap: 6px; }
.tr-set input { width: 66px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); color: var(--ink); text-align: center; font: 16px var(--font); }
.tr-set input.r { width: 50px; }
.tr-ok { justify-self: end; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 16px; color: var(--faint); }
.tr-set.on .tr-ok { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tr-set.on input { color: var(--accent); border-color: rgba(215, 245, 126, .3); }
.tr-rest { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 16px; border-radius: 999px; background: rgba(169, 193, 255, .1); border: 1px solid rgba(169, 193, 255, .3); color: #A9C1FF; font-size: 14px; }
.tr-rest b { font: 900 20px var(--dot); } .tr-rest button { font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.tr-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--muted); }
.tr-score input { width: 62px; height: 42px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); color: var(--ink); text-align: center; font: 17px var(--font); }
.tr-okline { margin-top: 12px; color: var(--accent); }
.tr-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.tr-nav .cta { flex: 1; margin: 0; }
.outline-btn.tr-back { width: 56px; flex: none; justify-content: center; font-size: 22px; border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .04); }
.tr-mus { font-size: 64px; margin-top: 4vh; }
.tr-sum { padding: 4px 14px; margin-top: 14px; }
.tr-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; } .tr-sum div + div { border-top: 1px solid var(--line); }
.tr-sum span { color: var(--muted); flex: none; } .tr-sum b { font-weight: 500; text-align: right; }
.tr-mvs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px -18px 12px; padding: 0 18px; }
.tr-mvs::-webkit-scrollbar { display: none; }
.tr-mvs.tr-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.tr-range { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tr-range input { flex: 1; accent-color: #D7F57E; } .tr-range b { min-width: 58px; text-align: right; font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tr-kg { margin-top: 18px; color: var(--accent); --h: #D7F57E; } .tr-kg small { font: 400 22px var(--font); color: var(--muted); margin-left: 6px; }
.tr-tab { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.tr-tab button { padding: 8px 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; color: var(--ink); }
.tr-tab small { display: block; font-size: 10.5px; color: var(--faint); } .tr-tab span { font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-tab button.on { border-color: rgba(215, 245, 126, .5); background: var(--accent-soft); } .tr-tab button.on span { color: var(--accent); }
.tr-lb { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 18px; }
.tr-lb label { display: flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 58px; margin: 0; color: var(--faint); font-size: 13px; }
.tr-lb input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 24px var(--font); }
.tr-lb > b { color: var(--muted); font-weight: 400; font-size: 18px; }

/* Notes de séance sur plusieurs lignes (« Ma séance » : une ligne par partie) */
.fp-body { white-space: pre-line; }
/* Repos réglable entre les séries (Ma séance) */
.tr-restpick { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--faint); }
.tr-restpick span { margin-right: 4px; }
.tr-restpick button { flex: 1; display: flex; justify-content: center; text-align: center; padding: 7px 0; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.tr-restpick button.on { color: #A9C1FF; border-color: rgba(169, 193, 255, .5); background: rgba(169, 193, 255, .1); }

/* ---------- Batterie de tests du 12/11/2026 : petits défauts d'affichage ---------- */
/* Noms très longs sans espace (mouvement, titre de séance) : coupés au lieu de sortir de la carte */
.mv-name, .fp-title, .wod-title { overflow-wrap: anywhere; }
/* Sans club : pas de whiteboard, donc pas de filtres ; le titre respire au-dessus du texte */
body.no-club #filters, body.no-club #levels { display: none; }
#wod-empty-title + .explain { margin-top: 12px; }
/* Équipe : le rôle à la place de « Retirer » quand on ne peut pas retirer cette personne */
.ms-role { color: var(--muted); font-size: 12px; }
/* Petits écrans (320 px) */
@media (max-width: 360px) {
  .comment-form { flex-wrap: wrap; }
  .comment-form input { flex: 1 1 calc(100% - 48px); }
  .sxb-l { grid-template-columns: 1fr; gap: 2px; }
  .sxb-l > span:last-child { white-space: normal; }
  .skf summary { grid-template-columns: minmax(0, 1fr) 44px 30px 18px; gap: 8px; padding-left: 14px; }
  .story-tools .seg-btn { font-size: 13px; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
}
/* Chrono en paysage : tout tient dans l'écran (Pause et Arrêter visibles) */
@media (orientation: landscape) and (max-height: 500px) {
  .chr-in { padding-top: calc(env(safe-area-inset-top) + 6px); padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
  .chr-run { font-size: min(18vh, 84px); margin-top: 0; }
  .chr-run.is-prep { font-size: min(28vh, 110px); }
  .chr-bar { margin-top: 8px; }
  .chr-round { min-height: 56px; margin-top: 8px; }
  .chr-ctrl { padding-top: 8px; }
  .chr-ctrl button { min-height: 42px; }
}
/* Onglet Salle, L'équipe à 320 px : la demande de coach lisible, Refuser / Accepter dessous */
@media (max-width: 380px) { .ms-req { flex-wrap: wrap; } .ms-req > div:first-child { flex: 1 1 100%; } .ms-req-btns { margin-left: auto; } }
/* Whiteboard à 320 px : le champ de commentaire passe sous 👊 et les émojis (plus précis que .wb-drawer .comment-form input) */
@media (max-width: 360px) { .wb-drawer .comment-form { flex-wrap: wrap; } .wb-drawer .comment-form input { flex: 1 1 calc(100% - 48px); } }

/* Ligne de record qu'on vient d'ajouter : un contour qui clignote un instant (17/11/2026) */
.rec-row.rec-flash { animation: rec-flash 1.6s ease-out 1; }
@keyframes rec-flash { 0%, 40% { outline: 2px solid currentColor; outline-offset: 2px; } 100% { outline: 2px solid transparent; outline-offset: 2px; } }

/* HYROX (17/11/2026) : courses face à face, sur la même course, carte de Perfs */
.hx-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.hx-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink); }
.hx-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hx-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.hx-sub { font-size: 14px; font-weight: 500; margin: 18px 0 6px; }
.hx-km { width: 100%; height: auto; display: block; }
.hx-km polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hx-km polyline.mine { stroke: var(--ink); }
.hx-km polyline.other { stroke: var(--muted); stroke-dasharray: 5 5; }
.hx-km circle.mine { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.hx-km text { font-size: 9px; fill: var(--muted); text-anchor: middle; }
.hx-km-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 4px 0 2px; }
.hx-km-legend span::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.hx-km-legend .other::before { border-top: 2.5px dashed var(--muted); }
.hx-vs-seg { display: flex; gap: 6px; margin-bottom: 12px; }
.hx-vs-seg .seg-btn { flex: 1; }
.hx-box { list-style: none; display: grid; gap: 6px; }
.hx-box-row { width: 100%; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px 9px 8px;
  border-radius: 18px; text-align: left; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.hx-box-row.is-me { border-color: var(--ink); }
.hx-box-row:disabled { opacity: 1; }
.hx-box-row .face { width: 34px; height: 34px; font-size: 12px; }
.hx-box-t { font-variant-numeric: tabular-nums; font-weight: 500; }
.hx-perf .hx-total { margin-top: 2px; }
.hx-perf-delta { font-size: 14px; color: var(--muted); margin: -2px 0 10px; }
.hx-perf-delta b { color: var(--accent); font-weight: 600; }
.hx-perf-delta b.hx-worse { color: var(--danger); }
.hx-perf-btns { display: grid; gap: 8px; margin-top: 14px; }
.hx-vs-seg .seg-btn { padding: 10px 6px; font-size: 13px; white-space: nowrap; }
.hx-km text.up { text-anchor: start; }
.hx-how { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hx-vs-top { margin: 4px 0 6px; }

/* ---------- Réglages en trois cartes (19/11/2026, choix de Mario, piste B de docs/maquettes/reglages.html) ----------
   Ma salle (la box, le code, trois pilules), Affichage (apparence et deux interrupteurs), puis les liens en petit. */
.settings-wrap { display: grid; gap: 12px; min-width: 0; }
.set-k { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.set-club .box-field, .set-club .set-code { width: 100%; }
.set-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.set-chip { padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 13.5px; font-weight: 500; cursor: pointer; }
.set-chip[hidden] { display: none; }
.set-chip:active { transform: scale(.96); }
.settings.set-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 16px; padding: 4px 12px 8px; text-align: center; }
.settings.set-links .link-btn { padding: 6px 0; margin: 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.settings.set-links .link-btn.danger { color: #C0503F; }
.settings.set-links .confirm { flex-basis: 100%; text-align: left; }
.set-view .theme-row { border-top: 0; margin-top: 4px; padding-top: 4px; }
.set-view .switch-row { margin-top: 10px; padding: 12px 0 2px; width: 100%; }
.set-club .box-field > span { display: none; }   /* « Ma box » : le titre « Ma salle » le dit déjà */
