/* BlokTrain — styles (sortis de index.html en v.20 : la page n a plus de script en ligne,
   la CSP peut refuser tout script qui ne vient pas d un fichier du site). */
/* ── BlokTrain reprend l habillage de BlokBoard : la palette de Notes et
   Rappels, les contrastes relevés (voir tools/taches/DESIGN.md), la pilule de
   verre, les feuilles plein écran. L ambre #ffb400 dit « jour de grimpe ». ── */
:root{
  --bg:#f2f2f7; --card:#ffffff; --card2:#ffffff;
  --fill:rgba(118,118,128,.12); --fill2:rgba(118,118,128,.2);
  --sep:rgba(60,60,67,.29); --sep2:rgba(60,60,67,.18);
  --text:#000000; --text2:rgba(60,60,67,.78); --text3:rgba(60,60,67,.57);
  --tint:#ffb400; --tint-text:#8f6500; --on-tint:#000;
  --green:#34c759; --green-text:#22803a; --red:#ff3b30; --red-text:#d70015;
  --shadow:0 12px 40px rgba(0,0,0,.18);
  --seg-on:#ffffff; --seg-shadow:0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
  --toast-act:#ffb400;
  --glass:rgba(255,255,255,.62); --glass-edge:rgba(255,255,255,.75); --glass-on:rgba(0,0,0,.07);
  --train:rgba(60,60,67,.32);
  --spring:cubic-bezier(.34,1.56,.64,1); --ease:cubic-bezier(.22,1,.36,1);
  /* v.53 — l échelle : sept tailles par rôle (rem sur 17 px, la base suit la taille du texte d iOS) et quatre rayons */
  --t-xs:0.6471rem;   /* 11 : légende, capitales miniatures (L M M, axes, étiquettes de champ), onglet de la pilule, bulle */
  --t-s:0.7647rem;    /* 13 : libellé de section, sous-ligne d une ligne, aide, légende sous un chiffre, petite pastille, segment */
  --t-m:0.8824rem;    /* 15 : corps, état vide, date et détail d une carte, pastille, toast, bouton secondaire */
  --t-base:1rem;      /* 17 : ligne de liste, bouton, valeur, titre de barre, cotation ; tout champ = max(16px, 1rem) */
  --t-l:1.2353rem;    /* 21 : chiffre-clé, sous-titre (jour, mois, confirmation), champ du prénom */
  --t-xl:1.5294rem;   /* 26 : titre d une feuille, nom d un exercice en cours, avatar de 64 px */
  --t-xxl:1.8824rem;  /* 32 : titre d un onglet, titre de la connexion, cotation de la fête */
  --r-xs:6px; --r-s:8px; --r-m:12px; --r-l:22px;   /* icône de ligne, mot surligné · petit contrôle ≤ 40 px, champ court, anneau de focus · boîte, carte, bouton ≥ 44, menu · feuille du bas, grande tuile */
  /* v.24 : un fond de couleur porte son texte (contrastes mesurés ≥ 4,5:1) */
  --danger-bg:#d70015; --on-danger:#ffffff; --ok-bg:#34c759; --on-ok:#000000;
  --ico-rouge:#ff3b30; --ico-indigo:#5856d6; --ico-vert:#34c759;
  --noir:#1c1c1e;      /* v.28 : la couleur « noir » d un type de séance — presque blanche en sombre, où le noir ne se verrait pas */
}
:root[data-theme="dark"]{
  --bg:#000000; --card:#1c1c1e; --card2:#1c1c1e;
  --fill:rgba(118,118,128,.24); --fill2:rgba(118,118,128,.36);
  --sep:rgba(84,84,88,.65); --sep2:rgba(84,84,88,.45);
  --text:#ffffff; --text2:rgba(235,235,245,.6); --text3:rgba(235,235,245,.5);
  --tint:#ffb400; --tint-text:#ffb400; --on-tint:#000;
  --green:#30d158; --green-text:#30d158; --red:#ff453a; --red-text:#ff6961;
  --danger-bg:#d70015; --on-danger:#ffffff; --ok-bg:#30d158; --on-ok:#000000;
  --shadow:0 12px 40px rgba(0,0,0,.6);
  --seg-on:#636366; --seg-shadow:none;
  --toast-act:#8f6500;
  --glass:rgba(40,40,44,.6); --glass-edge:rgba(255,255,255,.14); --glass-on:rgba(255,255,255,.14);
  --train:rgba(235,235,245,.34);
  --noir:#f2f2f7;
}
html{ color-scheme:light; } html[data-theme="dark"]{ color-scheme:dark; }

*, *::before, *::after{ box-sizing:border-box; margin:0; padding:0; }
/* v.65 (« sur l appli, le double clic zoome : fais attention à ce que ce ne soit pas le cas ») : le double appui ne zoome plus —
   défiler et pincer restent permis ; un élément qui pose son propre touch-action (calendrier, curseur, balayage) le garde. */
*{ touch-action:manipulation; }
[hidden]{ display:none !important; }
html,body{ height:100%; height:var(--vvh, 100dvh); overflow:hidden; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',system-ui,sans-serif;
  font-size:1rem; line-height:1.35; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent; }
/* v.20 : le texte suit le réglage « Taille du texte » d iOS. Toutes les tailles sont en rem
   sur une base de 17 px — à la taille par défaut, rien ne change ; tete.js pose la base du
   téléphone (bornée entre 14 et 23 px pour que la mise en page tienne). */
html{ font-size:17px; }
body{ display:flex; flex-direction:column; position:relative; }
button{ font-family:inherit; font-size:inherit; line-height:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input, textarea{ font-family:inherit; font-size:max(16px, 1em); color:inherit; }   /* hérité, jamais sous 16 px (zoom iOS, v.26) */
textarea{ resize:none; }
svg.ic{ width:20px; height:20px; display:inline-block; vertical-align:-4px; flex-shrink:0; }
svg.ic.s{ width:15px; height:15px; vertical-align:-3px; }
:where(#view, .dock, .sheet, .auth) svg{ stroke-width:2.2; }
:where(.pill button, .circ, .plus) svg{ stroke-width:1.9; }
:where(.ntback, .chev, .mnav .circ) svg{ stroke-width:2.4; }
:focus{ outline:none; }
button:focus-visible, a:focus-visible{ outline:2px solid var(--tint-text); outline-offset:2px; border-radius:var(--r-s); }

/* ── Verre : seulement ce qui survole le contenu ─────────────────────── */
.pill, .plus, .snav{
  -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); transform:translateZ(0); }
.circ{ width:36px; height:36px; border-radius:50%; background:var(--fill); color:var(--tint-text);
  display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0;
  transition:transform .35s var(--spring), background .15s; }
.circ::before{ content:''; position:absolute; inset:-4px; }
.circ:active{ transform:scale(.88); }
h1.big .circ{ background:var(--card); color:var(--text);
  box-shadow:0 2px 12px rgba(0,0,0,.10), 0 0 0 .5px rgba(0,0,0,.06); }

/* ── Page ─────────────────────────────────────────────────────────────── */
main{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain;
  transform:translateZ(0); width:100%; max-width:760px; margin:0 auto;
  padding:calc(20px + env(safe-area-inset-top)) 16px calc(148px + max(12px, env(safe-area-inset-bottom))); }
html.standalone{ --guard:30px; }
.topguard{ display:none; position:absolute; top:0; left:0; right:0; z-index:35;
  height:calc(var(--guard) + env(safe-area-inset-top)); background:var(--bg); pointer-events:none; }
html.standalone .topguard{ display:block; }
html.standalone main{ padding-top:calc(var(--guard) + 4px + env(safe-area-inset-top));
  padding-bottom:calc(148px + max(34px, env(safe-area-inset-bottom))); }
/* v.115 : clavier ouvert, la page (le Live : nom du bloc, distance) sort du body, qui reste à --vvh, et garde toute sa hauteur comme
   les fiches ; --kbo, la hauteur cachée, s ajoute à son bas. */
html.kb main{ position:fixed; top:0; left:0; right:0; height:100dvh; padding-bottom:calc(24px + var(--kbo, 0px)) !important; scroll-padding-bottom:var(--kbo, 0px); }

h1.big{ font-size:var(--t-xxl); font-weight:700; letter-spacing:-.5px; margin:8px 0 12px;
  display:flex; align-items:baseline; gap:12px; }
h1.big .n{ font-size:var(--t-l); font-weight:400; color:var(--text2); letter-spacing:0; }
h1.big .circ{ margin-left:auto; align-self:center; }
h2.day{ font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; margin:4px 0 12px; display:flex; align-items:baseline; gap:8px; }
h2.day .n{ font-size:var(--t-m); font-weight:400; color:var(--text2); letter-spacing:0; }
.sect{ font-size:var(--t-s); color:var(--text2); text-transform:uppercase; letter-spacing:.02em; margin:24px 4px 8px; }
.hint{ font-size:var(--t-s); color:var(--text2); line-height:1.45; padding:8px 4px 0; }
.hint b{ color:var(--text); font-weight:600; }
.empty{ color:var(--text2); font-size:var(--t-m); padding:12px 4px; line-height:1.45; }

/* Contrôle segmenté, comme iOS */
.seg{ display:flex; background:var(--fill); border-radius:calc(var(--r-s) + 2px); padding:2px; margin:0 0 8px; }
.seg button{ flex:1; font-size:var(--t-s); font-weight:500; min-height:32px; border-radius:var(--r-s); position:relative;
  transition:background .15s, box-shadow .15s; }
.seg button::before{ content:''; position:absolute; inset:-6px 0; }
.seg button.on{ background:var(--seg-on); box-shadow:var(--seg-shadow); font-weight:600; }

/* ── Calendrier du mois ───────────────────────────────────────────────
   Le jour de grimpe se dit par le chiffre posé sur un disque ambre ; chaque
   séance par un point de la couleur de son modèle. Le jour choisi : un fond
   gris sous la case. Aujourd hui : le chiffre en ambre, ou cerclé s il est
   déjà sur son disque. */
.mnav{ display:flex; align-items:center; gap:8px; height:44px; margin:16px 0 6px; }
.mnav .lbl{ flex:1; font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; }
.mnav .lbl::first-letter{ text-transform:uppercase; }
.mnav .auj{ font-size:var(--t-m); font-weight:600; color:var(--tint-text); padding:0 8px; min-height:44px;
  display:inline-flex; align-items:center; }
.cal-hd{ display:grid; grid-template-columns:repeat(7,1fr); margin-bottom:2px; }
.cal-hd span{ text-align:center; font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.03em; }
.mgrid{ display:grid; grid-template-columns:repeat(7,1fr); row-gap:2px; margin-bottom:12px; touch-action:pan-y; }
.dc{ height:54px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:4px;
  padding-top:4px; border-radius:var(--r-m); position:relative; transition:background .15s; }
.dc:active{ background:var(--fill); }
.dc.sel{ background:var(--fill2); }
.dc b{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:var(--t-base); font-weight:400; font-variant-numeric:tabular-nums; }
.dc.climb b{ background:var(--tint); color:var(--on-tint); font-weight:600; }
.dc.auj b{ color:var(--tint-text); font-weight:600; }
.dc.sel.auj:not(.climb) b{ color:color-mix(in srgb, var(--tint-text) 70%, var(--text)); }      /* v.79 (audit) : sur le gris du jour choisi, l ambre du texte passait sous 4,5 pour 1 */
.dc.climb.auj b{ color:var(--on-tint); box-shadow:0 0 0 2px var(--bg), 0 0 0 3.5px var(--tint-text); }
.dc.sel.climb.auj b{ box-shadow:0 0 0 2px var(--fill2), 0 0 0 3.5px var(--tint-text); }
.dc.futur b{ color:var(--text2); }
/* v.24 : une séance PRÉVUE n est pas un jour grimpé — un anneau ambre, pas le disque plein
   (et plus de chiffre gris sur ambre, illisible en sombre : 1,25:1). */
.dc.climb.futur b{ background:transparent; box-shadow:inset 0 0 0 2px var(--tint); color:var(--text); font-weight:600; }
.dc .dots{ display:flex; gap:4px; height:6px; }
.dc .dots i{ width:6px; height:6px; border-radius:50%; background:var(--c); }
:root[data-theme="dark"] :is(.dc .dots i, .dot, .palette button, .av){ box-shadow:0 0 0 1px rgba(255,255,255,.28); }
.dc.vide{ pointer-events:none; }
.cal-leg{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 14px; margin:6px 0 0; font-size:var(--t-xs); color:var(--text2); }      /* v.85 : la légende de la première semaine */
.cal-leg span{ display:inline-flex; align-items:center; gap:6px; }
.cal-leg b{ width:12px; height:12px; border-radius:50%; background:var(--tint); }
.cal-leg b.p{ background:transparent; box-shadow:inset 0 0 0 2px var(--tint); }
.cal-leg i{ width:6px; height:6px; border-radius:50%; background:var(--text2); }
.cal-leg i.t{ width:16px; height:3px; border-radius:3px; background:var(--text); opacity:.82; }

/* v.24 : le bilan tient en une carte (trois tuiles séparées faisaient « tableau de bord ») */
.hstat{ display:flex; margin:0 0 8px; background:var(--card); border-radius:var(--r-m); padding:12px 0; }
.hstat > div{ flex:1; padding:0 8px; text-align:center; min-width:0; }
.hstat > div + div{ box-shadow:-.5px 0 0 var(--sep2); }      /* > : pas entre le chiffre et son libellé (filets parasites, v.24-28) */
.hstat .n{ font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; line-height:1; font-variant-numeric:tabular-nums; }
.hstat .l{ font-size:var(--t-s); color:var(--text2); margin-top:4px; line-height:1.3; }
.hstat .climb .n{ color:var(--tint-text); }
.xline{ font-size:var(--t-m); color:var(--text2); margin:0 4px 6px; }
.xline b{ color:var(--text); font-weight:600; }

/* Vue année : douze petits mois, un carré par jour. */
.ygrid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:12px; }
@media (min-width:600px){ .ygrid{ grid-template-columns:repeat(3,1fr); } }
.ym{ background:var(--card); border-radius:var(--r-m); padding:12px; text-align:left; width:100%;
  display:flex; flex-direction:column; justify-content:flex-start;   /* un bouton centre son contenu : les mois de 5 semaines descendaient */
  transition:transform .35s var(--spring); }
.ym:active{ transform:scale(.97); }
.ym .h{ display:flex; justify-content:space-between; align-items:baseline; font-size:var(--t-m); font-weight:600; margin-bottom:8px; }
.ym .h span{ font-size:var(--t-s); font-weight:400; color:var(--tint-text); }
.ym .g{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.ym .g i{ aspect-ratio:1; border-radius:3px; background:var(--fill); }
.ym .g i.v{ background:none; }
.ym .g i.t{ background:var(--train); }
.ym .g i.c{ background:var(--tint); }
.ym .g i.a{ box-shadow:0 0 0 1.5px var(--text); }
.ym .g i.c.f, .ym .g i.t.f{ background:none; box-shadow:inset 0 0 0 1.5px var(--tint); }   /* prévu : un contour, comme dans le mois */
.ym .g i.t.f{ box-shadow:inset 0 0 0 1.5px var(--train); }
.legend{ display:flex; gap:16px; font-size:var(--t-s); color:var(--text2); margin:8px 4px 0; }
.legend span{ display:flex; align-items:center; gap:6px; }
.legend i{ width:12px; height:12px; border-radius:3px; background:var(--c); }

/* ── Lignes de séance ─────────────────────────────────────────────────── */
.list{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.srow{ display:flex; align-items:stretch; gap:12px; background:var(--card); border-radius:var(--r-m); padding:10px 12px 10px 0;
  text-align:left; width:100%; overflow:hidden; transition:transform .35s var(--spring), background .15s; }
.srow:active{ transform:scale(.985); background:var(--fill); }
.srow .bar{ width:5px; border-radius:0 3px 3px 0; background:var(--c); flex-shrink:0; }
.srow .body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.srow .t{ font-size:var(--t-base); font-weight:600; display:flex; align-items:baseline; gap:8px; }
.srow .t .d{ font-weight:400; color:var(--text2); font-size:var(--t-m); margin-left:auto; font-variant-numeric:tabular-nums; white-space:nowrap; }
.srow .m{ font-size:var(--t-s); color:var(--text2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.srow .x{ font-size:var(--t-m); color:var(--text); margin-top:2px; }
.srow .x .g{ font-weight:600; }
.srow .chev{ align-self:center; color:var(--text3); display:flex; }
.av{ width:36px; height:36px; border-radius:50%; background:var(--c); color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:var(--t-m); font-weight:700; align-self:flex-start; }
.av.sm{ width:24px; height:24px; font-size:var(--t-s); }
/* v.14 : la photo de profil se pose PAR-DESSUS l initiale ; si elle ne vient pas
   (hors ligne, pas ami), l image est retirée et l initiale reste. */
.av{ position:relative; overflow:hidden; }
.av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.av.xs{ width:20px; height:20px; font-size:var(--t-xs); }
.av.xl{ width:64px; height:64px; font-size:var(--t-xl); align-self:center; }
.crop{ position:relative; width:100%; max-width:340px; aspect-ratio:1; margin:6px auto 0; overflow:hidden; border-radius:var(--r-m); background:#000;
  touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; }
.crop:active{ cursor:grabbing; }
.crop img{ position:absolute; left:0; top:0; max-width:none; transform-origin:0 0; pointer-events:none; -webkit-user-drag:none; }
.crop .rond{ position:absolute; inset:0; border-radius:50%; box-shadow:0 0 0 999px rgba(0,0,0,.55); pointer-events:none; outline:2px solid rgba(255,255,255,.7); outline-offset:-2px; }
.zoom{ display:flex; align-items:center; gap:6px; max-width:340px; margin:12px auto 0; }
.zoom input{ flex:1; accent-color:var(--tint); min-height:44px; }
.zoom button{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--tint-text); }
.avbtn{ position:relative; border-radius:50%; flex-shrink:0; display:flex; min-width:44px; min-height:44px; }
.avbtn .badge{ position:absolute; right:-3px; bottom:-3px; width:26px; height:26px; border-radius:50%; background:var(--tint); color:var(--on-tint);
  display:flex; align-items:center; justify-content:center; border:2px solid var(--card); }
.avbtn .badge svg{ width:14px; height:14px; }
.srow.f{ padding-left:12px; }
.srow.f .who{ font-weight:600; }
.srow.f .avs{ display:flex; flex-shrink:0; }      /* v.88 : une séance commune — les avatars de ceux qui l ont faite, l un sur l autre */
.srow.f .avs .av + .av{ margin-left:-10px; box-shadow:0 0 0 2px var(--card); }
.srow.f .m{ white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }      /* v.82 (audit) : le jour et le lieu passent sur deux lignes plutôt que d être coupés (« Falaise d… ») */
.srow.f .tl{ font-size:var(--t-m); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
@media (max-width:359px){ .srow.f{ flex-wrap:wrap; } .srow.f > .ouinon{ flex-basis:100%; justify-content:flex-end; } }      /* v.120 (audit n° 17) : à 320 px, les boutons sous le texte — le lieu se lit */
.dot{ width:8px; height:8px; border-radius:50%; background:var(--c); display:inline-block; flex-shrink:0; }

/* Ajouter une séance d un geste : les modèles en pastilles sous le jour */
.pick{ display:flex; flex-wrap:wrap; gap:8px; }
.pick button{ background:var(--fill); border-radius:999px; padding:0 12px; min-height:36px; font-size:var(--t-m); font-weight:500;
  color:var(--text); display:flex; align-items:center; gap:6px; position:relative;
  transition:transform .35s var(--spring), background .15s, color .15s; }
.pick button::before{ content:''; position:absolute; inset:-4px 0; }
.pick button:active{ transform:scale(.92); }
.pick button.on{ background:var(--text); color:var(--bg); font-weight:600; }
/* Coché d office (un ami identifié dans un objectif) : on le voit, on ne peut pas l enlever ici */
.pick button.fixe{ opacity:.55; }
.pick button svg{ width:15px; height:15px; color:var(--tint-text); }
.pick.add button{ background:var(--card); box-shadow:0 0 0 .5px var(--sep2); }

/* Classement entre amis */
.grp{ margin:24px 0 0; }
.grp:first-child{ margin-top:0; }
.grp .lab{ font-size:var(--t-s); color:var(--text2); text-transform:uppercase; letter-spacing:.02em; padding:0 4px 8px;
  display:flex; justify-content:space-between; gap:12px; }
.grp .lab span{ text-transform:none; letter-spacing:0; }
.box{ background:var(--card2); border-radius:var(--r-m); overflow:hidden; }
.cell{ padding:10px 16px; display:flex; align-items:center; gap:12px; min-height:44px; width:100%; text-align:left; }
.box > :not([hidden]) ~ :not([hidden]){ box-shadow:0 -.5px 0 var(--sep2); }   /* ~ : un champ masqué entre deux ne fait pas sauter le trait */
.cell.tap{ cursor:pointer; transition:background .15s; }
.cell.tap:active{ background:var(--fill); }
.cell .lbl{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.cell .lbl small{ font-size:var(--t-s); color:var(--text2); }
.cell .lbl small.ell{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cell .val{ color:var(--text2); font-size:var(--t-base); white-space:nowrap; font-variant-numeric:tabular-nums; }
.cell .big{ font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; color:var(--text); font-variant-numeric:tabular-nums; }
.cell .big small{ font-size:var(--t-s); font-weight:600; color:var(--text2); letter-spacing:0; }
.lien{ color:var(--tint-text); font-weight:600; font-size:inherit; padding:2px 0; position:relative; }
.lien::before{ content:''; position:absolute; inset:-13px -4px; }      /* v.50 (audit) : 45 px de haut au doigt */
.cell.moi .lbl > span{ font-weight:600; }
/* v.40 — le classement du mois : les points à droite du nom, le détail (jours, séances, croix, max) dessous, sur toute la largeur */
.cell.clt .l1{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.cell.clt .nom{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cell.clt .big{ flex:none; white-space:nowrap; }
.rank{ width:18px; text-align:center; font-size:var(--t-m); font-weight:600; color:var(--text2); font-variant-numeric:tabular-nums; }
.rowbtn{ width:100%; text-align:left; padding:10px 16px; display:flex; align-items:center; gap:12px; color:var(--tint-text);
  min-height:44px; font-size:var(--t-base); transition:background .15s; }
.rowbtn:active{ background:var(--fill); }
.rowbtn.red{ color:var(--red-text); }
.rowbtn.center{ justify-content:center; }
.ico{ width:28px; height:28px; border-radius:var(--r-xs); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; background:var(--c, var(--text3)); }
.ico svg{ width:17px; height:17px; }

/* v.26 : jamais sous 16 px — Safari iOS zoome sur un champ plus petit (« petit bug de zoom » sur le Lieu) : avec
   un petit réglage « Taille du texte », la base tombe à 14-15 px (tete.js) et 1rem avec elle. */
.cell input[type=text], .cell input[type=password], .cell input[type=email], .cell input[type=url], .cell input[type=date], .cell input:not([type]){
  flex:1; min-width:0; background:none; border:none; outline:none; min-height:44px; margin:-10px 0; font-size:max(16px, 1rem); color:var(--text); }
.cell input[type=date]{ text-align:right; color:var(--tint-text); flex:0 1 auto; -webkit-appearance:none; appearance:none; }
.cell input::placeholder{ color:var(--text2); }
.cell textarea{ flex:1; background:none; border:none; outline:none; font-size:max(16px, 1rem); line-height:1.35; min-height:88px; padding:2px 0; }
.cell textarea::placeholder{ color:var(--text2); }

/* Pas : − 1 h 30 + */
.step{ display:flex; align-items:center; gap:4px; margin-left:auto; }
.step button, .objp{ width:36px; height:36px; border-radius:50%; background:var(--fill); color:var(--text); display:flex;
  align-items:center; justify-content:center; position:relative; transition:transform .35s var(--spring); }
.step button::before, .objp::before{ content:''; position:absolute; inset:-4px; }
.step button:active, .objp:active{ transform:scale(.86); }
.step output{ min-width:76px; text-align:center; font-size:var(--t-base); font-weight:600; font-variant-numeric:tabular-nums; }

/* RPE 1-10 au curseur (v.26) : piste remplie jusqu au rond, rond blanc à la manière d iOS, les
   chiffres dessous alignés sur les crans (centre du rond : 14 px + (largeur − 28 px) × cran / 9). */
.rpe{ flex:1; min-width:0; --f:.44; touch-action:pan-y; cursor:pointer; -webkit-user-select:none; user-select:none; }
/* Le doigt est géré par l app (app.js, « L effort au curseur ») : le curseur natif ne le reçoit pas. */
.rpe input[type=range]{ -webkit-appearance:none; appearance:none; display:block; width:100%; height:44px; margin:0;
  background:none; pointer-events:none; }
.rpe input[type=range]::-webkit-slider-runnable-track{ height:6px; border-radius:999px;
  background:linear-gradient(to right, var(--tint) 0 calc(14px + (100% - 28px) * var(--f)), var(--fill) 0); }
.rpe input[type=range]::-moz-range-track{ height:6px; border-radius:999px;
  background:linear-gradient(to right, var(--tint) 0 calc(14px + (100% - 28px) * var(--f)), var(--fill) 0); }
.rpe input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:28px; height:28px; margin-top:-11px;
  border-radius:50%; background:#fff; border:none; box-shadow:0 .5px 4px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.16);
  transition:transform .2s var(--ease); }
.rpe input[type=range]::-moz-range-thumb{ width:28px; height:28px; border-radius:50%; background:#fff; border:none;
  box-shadow:0 .5px 4px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.16); }
.rpe.tient input[type=range]::-webkit-slider-thumb{ transform:scale(1.08); }
.rpe input[type=range]:focus-visible{ outline:2px solid var(--tint-text); outline-offset:2px; border-radius:var(--r-s); }
/* Pas encore noté : piste vide, rond estompé au milieu — le premier geste le pose */
.rpe.vide input[type=range]::-webkit-slider-runnable-track{ background:var(--fill); }
.rpe.vide input[type=range]::-moz-range-track{ background:var(--fill); }
.rpe.vide input[type=range]::-webkit-slider-thumb{ opacity:0; }      /* v.86 (relecture : « posé sur 5 mais Pas noté ») : rien n est noté, aucun rond ne le fait croire */
.rpe.vide input[type=range]::-moz-range-thumb{ opacity:0; }
.rpe-n{ position:relative; height:18px; margin-top:-6px; font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; }
.rpe-n span{ position:absolute; top:0; left:calc(14px + (100% - 28px) * var(--i) / 9); transform:translateX(-50%); }
.rpe-n span.on{ color:var(--text); font-weight:600; }
.xbtn.place{ visibility:hidden; }      /* sa place est gardée : la piste ne rétrécit pas sous le doigt au premier réglage */

/* Croix */
.send{ display:flex; gap:12px; align-items:flex-start; padding:10px 8px 10px 16px; }
/* Largeur fixe : 7A et 6C+ alignent leurs noms sur la même colonne. */
.gr{ width:52px; height:36px; padding:0 4px; border-radius:var(--r-s); background:var(--c, var(--fill2)); color:var(--text);
  font-weight:700; font-size:var(--t-base); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.send .sb{ flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.send .row1{ display:flex; align-items:center; gap:4px; }
.send input{ background:none; border:none; outline:none; font-size:max(16px, 1rem); min-height:36px; width:100%; }
.send input::placeholder{ color:var(--text2); }
.mini{ display:flex; gap:6px; flex-wrap:wrap; }
.mini button{ font-size:var(--t-s); font-weight:500; padding:0 12px; min-height:32px; border-radius:999px; background:var(--fill);
  position:relative; transition:background .15s, color .15s; }
.mini button::before{ content:''; position:absolute; inset:-7px -2px; }
.mini button.on{ background:var(--text); color:var(--bg); font-weight:600; }
.xbtn{ width:36px; height:36px; border-radius:50%; color:var(--text3); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; position:relative; }
.xbtn::before{ content:''; position:absolute; inset:-4px; }
.xbtn[data-act="lvMoins"]{ background:var(--fill); color:var(--text); }      /* v.111 (audit) : « retirer un essai » se lit comme un bouton, plus comme un tiret */
.xbtn:active{ background:var(--fill); color:var(--red-text); }
.gpick{ padding:12px 16px; display:flex; flex-direction:column; gap:12px; }
.gpick .gg{ display:grid; grid-template-columns:repeat(6,1fr); gap:6px; }
.gpick .gg button{ height:44px; border-radius:var(--r-m); background:var(--fill); font-size:var(--t-base); font-weight:600;
  transition:transform .3s var(--spring), background .15s; }
.gpick .gg button:active{ transform:scale(.88); background:var(--tint); color:var(--on-tint); }
.gpick .gg button.hi{ background:color-mix(in srgb, var(--tint) 22%, var(--fill)); }
.gpick .gg button{ position:relative; }
.gpick .gg button .nb{ position:absolute; top:3px; right:5px; font-size:var(--t-xs); font-weight:700; line-height:1; color:var(--text); font-variant-numeric:tabular-nums; }      /* v.86 : combien de croix déjà, à cette cotation */
.gpick .ft{ display:flex; justify-content:space-between; align-items:center; }
.gpick .ft button{ color:var(--tint-text); font-weight:600; font-size:var(--t-base); min-height:44px; padding:0 4px; }

/* Exercices */
.exo{ padding:8px 12px 12px 16px; display:flex; flex-direction:column; gap:8px; }
.exo .top{ display:flex; align-items:center; gap:8px; }
.exo .top input{ flex:1; min-width:0; background:none; border:none; outline:none; font-size:max(16px, 1rem); font-weight:600; min-height:44px; }
.exo .top input::placeholder{ color:var(--text2); font-weight:400; }
.exo .f5{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.exo label{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.exo label span{ font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.03em; text-align:center; }
.exo label input{ width:100%; min-width:0; background:var(--fill); border:none; outline:none; border-radius:var(--r-s); height:44px;
  text-align:center; font-size:max(16px, 1rem); font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
.exo label input::placeholder{ color:var(--text3); font-weight:400; }
.sugg{ display:flex; gap:6px; flex-wrap:wrap; }
.sugg button{ font-size:var(--t-s); font-weight:500; padding:0 12px; min-height:32px; border-radius:999px; background:var(--fill); color:var(--text);
  position:relative; }
.sugg button::before{ content:''; position:absolute; inset:-7px -2px; }
.ro-ex{ padding:10px 16px; }
.ro-ex b{ display:block; font-weight:600; }
.ro-ex span{ font-size:var(--t-s); color:var(--text2); }

/* Palette de couleurs */
.palette{ display:grid; grid-template-columns:repeat(6, 28px); justify-content:space-between; gap:16px 0; padding:12px 16px; }      /* v.82 (audit) : six par ligne — onze couleurs tombaient en 7 + 4 */
.palette:has(> :nth-child(10):last-child){ grid-template-columns:repeat(5, 28px); }      /* dix couleurs (Mon profil) : cinq par ligne */
.palette button{ width:28px; height:28px; border-radius:50%; background:var(--c); position:relative; transition:transform .3s var(--spring); }
.palette button::before{ content:''; position:absolute; inset:-8px; }
.palette button:active{ transform:scale(.85); }
.palette button.on::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--text); }

/* ── Pilule de navigation flottante ───────────────────────────────────── */
.dock{ position:absolute; left:0; right:0; bottom:0; z-index:40; width:100%; max-width:760px; margin:0 auto;
  display:flex; justify-content:center; align-items:center; padding:8px 16px max(12px, env(safe-area-inset-bottom));
  pointer-events:none; transition:opacity .2s, transform .25s var(--ease); }
html.standalone .dock{ padding-bottom:max(34px, env(safe-area-inset-bottom)); }
html.kb .dock{ opacity:0; pointer-events:none; transform:translateY(24px); }
html.kb .dock .pill, html.kb .dock .plus{ pointer-events:none; }      /* v.115 (relecture) : la pilule effacée captait encore les appuis juste au-dessus du clavier */
.pill{ pointer-events:auto; background:var(--glass); position:relative; display:flex; border-radius:999px; padding:4px;
  height:60px; max-width:420px; flex:1;
  box-shadow:0 8px 32px rgba(0,0,0,.22), inset 0 1px 0 var(--glass-edge), 0 0 0 .5px rgba(0,0,0,.08); }
.pill .blob{ position:absolute; top:4px; bottom:4px; left:4px; width:0; border-radius:999px; background:var(--glass-on);
  box-shadow:inset 0 1px 0 var(--glass-edge); transition:transform .45s var(--ease); }   /* les 4 onglets ont la même largeur : seul le déplacement s anime */
.pill button{ flex:1; position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; font-size:var(--t-xs); font-weight:600; color:var(--text2); border-radius:999px; white-space:nowrap;
  transition:color .22s, transform .18s var(--ease); }
.pill button svg{ width:20px; height:20px; }
.pill button.on{ color:var(--text); }
/* v.23 : la bulle de l onglet Amis — ce que les amis ont fait depuis le dernier passage */
.tabbadge{ position:absolute; top:3px; left:calc(50% + 4px); min-width:17px; height:17px; padding:0 4px; border-radius:999px;
  background:var(--danger-bg); color:var(--on-danger); font-size:var(--t-xs); font-weight:700; line-height:17px; text-align:center;
  box-shadow:0 0 0 2px var(--glass); pointer-events:none; }
.pill button:active{ transform:scale(.94); }
.plus{ position:absolute; right:16px; bottom:calc(100% - 2px); width:50px; height:50px; border-radius:50%; display:flex;
  align-items:center; justify-content:center; pointer-events:auto; color:var(--text); background:var(--glass);
  box-shadow:0 8px 32px rgba(0,0,0,.22), inset 0 1px 0 var(--glass-edge), 0 0 0 .5px rgba(0,0,0,.08);
  transition:transform .16s var(--ease), opacity .2s; }
.plus svg{ width:24px; height:24px; stroke-width:2.4; }
.plus:active{ transform:scale(.92); }
.plusmenu{ position:absolute; right:16px; bottom:calc(100% + 58px); min-width:210px; pointer-events:auto; background:var(--card);
  border-radius:var(--r-m); overflow:hidden auto; display:flex; flex-direction:column; max-height:calc(var(--vvh,100dvh) - 240px);
  box-shadow:0 8px 32px rgba(0,0,0,.22), 0 0 0 .5px rgba(0,0,0,.08); animation:pop .2s var(--ease); }
@keyframes pop{ from{ opacity:0; transform:scale(.96) translateY(6px) } to{ opacity:1; transform:none } }
.plusmenu .hd{ font-size:var(--t-s); color:var(--text2); padding:12px 16px 4px; }
.plusmenu .hd.autre{ color:var(--tint-text); font-weight:600; }
/* Le voile sous le menu + : le reste s efface, un appui dessus referme */
.voile{ position:fixed; inset:0; z-index:39; background:rgba(0,0,0,.16); animation:voile .18s var(--ease); }
:root[data-theme="dark"] .voile{ background:rgba(0,0,0,.4); }
@keyframes voile{ from{ opacity:0; } }
.plusmenu button{ padding:12px 16px; text-align:left; font-size:var(--t-base); font-weight:400; display:flex; align-items:center;
  gap:12px; min-height:44px; }
.plusmenu button + button{ box-shadow:0 -.5px 0 var(--sep); }
.plusmenu button:active{ background:var(--fill); }
.plusmenu button small{ margin-left:auto; color:var(--text2); font-size:var(--t-m); font-weight:400; }

/* ── Feuilles plein écran ─────────────────────────────────────────────── */
.sheet{ position:fixed; left:0; right:0; top:0; height:100dvh; z-index:60; background:var(--bg); display:flex; }
.sheet .card{ width:100%; height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding-bottom:calc(40px + env(safe-area-inset-bottom)); animation:push .26s var(--ease); }
/* v.115 : clavier ouvert, la fiche garde toute sa hauteur (le contenu passe sous le verre d iOS 26) ; --kbo, la hauteur cachée,
   s ajoute en bas pour que la fin et le champ restent au-dessus de la barre de Safari (app.js, « Clavier »). */
html.kb .sheet .card{ padding-bottom:calc(40px + var(--kbo, 0px)); scroll-padding-bottom:var(--kbo, 0px); }
.sheet.out .card{ transform:translateX(100%); transition:transform .22s var(--ease); }
@keyframes push{ from{ transform:translateX(100%) } to{ transform:none } }
.snav{ position:sticky; top:0; z-index:3; background:var(--glass); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px;
  padding:calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); min-height:calc(52px + env(safe-area-inset-top)); }
.snav > :first-child{ justify-self:start; }
.snav > :last-child{ justify-self:end; }
.snav .t{ font-weight:600; font-size:var(--t-base); min-width:0; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.snav .nvide{ width:36px; }
.snav .ntback{ width:36px; height:36px; border-radius:50%; background:var(--card); color:var(--text); display:flex;
  align-items:center; justify-content:center; position:relative;
  box-shadow:0 2px 12px rgba(0,0,0,.10), 0 0 0 .5px rgba(0,0,0,.06); }
.snav .ntback::before{ content:''; position:absolute; inset:-4px; }
.snav .ok{ color:var(--tint-text); font-size:var(--t-base); font-weight:600; min-height:44px; min-width:44px; text-align:center; padding:0 4px; }      /* v.50 (audit) : 44 px de large */
.snav .no{ color:var(--tint-text); font-size:var(--t-base); min-height:44px; padding:0 4px; }
.sb{ max-width:760px; margin:0 auto; padding:8px 16px 0; }
.sb .grp:first-child{ margin-top:8px; }
.sb h1.big{ margin-top:4px; font-size:var(--t-xl); line-height:1.15; letter-spacing:-.4px; }
.sb h1.big.deux{ min-height:2.3em; }
.sb h1.big.e-titre{ display:flex; align-items:center; gap:8px; }      /* v.88 : le nom d une séance s écrit à sa place, comme un titre */
.e-titre input{ flex:1; min-width:0; font:inherit; letter-spacing:inherit; color:var(--text); background:none; border:0; padding:7px 6px; margin:-7px 0 -7px -6px; border-radius:var(--r-s); -webkit-appearance:none; appearance:none; text-overflow:ellipsis; }      /* le texte reste aligné ; au toucher, le cadre ne le colle pas */
.e-titre input::placeholder{ color:var(--text3); }
.e-titre .crayon{ display:flex; flex-shrink:0; color:var(--text3); pointer-events:none; }
.e-titre .crayon svg{ width:18px; height:18px; }
.e-titre:focus-within .crayon{ visibility:hidden; }      /* v.85 (relecture) : le titre d un objectif neuf s écrit pendant qu on choisit — deux lignes gardées, la grille ne descend plus sous le doigt */

/* Message du bas, avec Annuler */
.toast{ position:fixed; left:0; right:0; margin:0 auto; bottom:calc(96px + env(safe-area-inset-bottom)); width:max-content;
  max-width:min(400px, calc(100% - 32px)); background:var(--text); color:var(--bg); border-radius:var(--r-l); padding:12px 16px;
  display:flex; align-items:center; gap:16px; font-size:var(--t-m); z-index:80; opacity:0; pointer-events:none;
  transform:translateY(16px); transition:opacity .2s, transform .34s var(--spring); box-shadow:var(--shadow); }
.toast.on{ opacity:1; transform:none; }
/* v.101 (« je ne peux pas cliquer sur le lieu dans un live fini ») : « Séance enregistrée » se posait SUR le champ Lieu de la fiche
   qui s ouvre après un live, et chaque appui dessus le gardait trois secondes de plus. Le message du bas laisse passer le doigt ;
   seul son bouton (« Annuler », « Répondre »…) se touche. */
.toast.on #toastAct{ pointer-events:auto; }
/* v.85 (audit iOS du 6 octobre : « il recouvre la ligne qu on vient d ajouter dans le Live, et touche le + du Calendrier ») : au
   Calendrier, à gauche du + (monté au-dessus, il couvrait la ligne d un trip) ; pendant un live, en haut de l écran, sur le chrono
   plutôt que sur les blocs. */
html[data-tab="cal"] .toast{ right:82px; max-width:min(400px, calc(100% - 98px)); }
html[data-tab="live"][data-live] .toast{ top:calc(10px + env(safe-area-inset-top)); bottom:auto; transform:translateY(-16px); }
html[data-tab="live"][data-live] .toast.on{ transform:none; }
/* v.115 (relecture) : un message affiché pendant qu on écrit se pose en haut, comme pendant mon live : en bas, il tombait sous le
   clavier, ou sur le champ collé du live d un ami. Seulement tant qu un champ a le focus : un bouton touché lâche d abord le champ,
   et son message naît à sa place, sans sauter quand le clavier se referme. */
html.kb:has(:is(input:not([type=checkbox], [type=radio], [type=range], [type=date], [type=file], [type=button], [type=submit]), textarea, [contenteditable]):focus) .toast{
  top:calc(10px + env(safe-area-inset-top)); bottom:auto; transform:translateY(-16px); }
html.kb:has(:is(input:not([type=checkbox], [type=radio], [type=range], [type=date], [type=file], [type=button], [type=submit]), textarea, [contenteditable]):focus) .toast.on{ transform:none; }
.toast button{ color:var(--toast-act); font-weight:600; flex-shrink:0; margin-left:auto; min-height:32px; position:relative; }
/* Cibles tactiles de 44 px au moins, sans rien changer à ce qu on voit (v.20, audit 2.6) */
.toast button::before{ content:''; position:absolute; inset:-8px -10px; }
.tog::before{ content:''; position:absolute; inset:-7px -4px; }
/* Lu par VoiceOver, invisible à l écran */
.vh{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }

.banner{ display:flex; align-items:center; gap:8px; font-size:var(--t-s); color:var(--text2); background:var(--fill);
  border-radius:var(--r-m); padding:8px 12px; margin:0 0 8px; }
.banner i{ width:8px; height:8px; border-radius:50%; background:var(--text3); flex-shrink:0; }

/* ── Connexion ────────────────────────────────────────────────────────── */
.auth{ position:fixed; top:0; left:0; right:0; height:100dvh; z-index:90; background:var(--bg); overflow-y:auto; display:flex; justify-content:center;
  padding:calc(40px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
/* v.115 : la hauteur cachée va sur le contenu, pas sur l écran : en flex, Safari ne compte pas le padding du bas dans ce qui
   défile ; et le contenu cesse d être étiré à la hauteur de l écran, sinon ce padding reste dedans. */
html.kb .auth{ scroll-padding-bottom:var(--kbo, 0px); }
html.kb .auth .in{ padding-bottom:var(--kbo, 0px); align-self:flex-start; }
.auth .in{ width:100%; max-width:400px; display:flex; flex-direction:column; }
.auth img{ width:76px; height:76px; border-radius:18px; margin:8px auto 12px; display:block;
  box-shadow:0 6px 24px rgba(0,0,0,.18); }
.auth h1{ font-size:var(--t-xxl); font-weight:700; letter-spacing:-.5px; text-align:center; }
.auth .tag{ text-align:center; color:var(--text2); font-size:var(--t-m); margin:4px 0 24px; }
.auth .grp{ margin-top:16px; }
.auth .err{ color:var(--red-text); font-size:var(--t-m); padding:8px 4px 0; min-height:28px; }
.bigbtn{ width:100%; min-height:50px; border-radius:var(--r-m); background:var(--tint); color:var(--on-tint); font-size:var(--t-base); font-weight:600;
  margin-top:8px; transition:transform .35s var(--spring), opacity .15s; }
.bigbtn:active{ transform:scale(.97); }
.bigbtn[disabled]{ opacity:.55; pointer-events:none; }
.auth .foot{ text-align:center; color:var(--text2); font-size:var(--t-s); margin-top:16px; line-height:1.45; }
.auth .info{ color:var(--text2); font-size:var(--t-m); padding:8px 4px 0; line-height:1.45; text-align:center; }
.alinks{ display:flex; justify-content:center; gap:4px 16px; margin-top:8px; flex-wrap:wrap; }
.alink{ color:var(--tint-text); font-size:var(--t-m); font-weight:600; min-height:44px; padding:0 4px; }
.cell input.otp{ letter-spacing:.2em; font-weight:600; }
.cell input.otp:placeholder-shown{ letter-spacing:normal; font-weight:400; }
.loading{ color:var(--text2); font-size:var(--t-m); padding:32px 4px; text-align:center; }


.bar2{ display:block; height:8px; border-radius:999px; background:var(--fill); overflow:hidden; }
.bar2 i{ display:block; height:100%; border-radius:999px; background:var(--tint); width:calc(var(--p) * 1%); }
/* Balayer un objectif (v.23, repris de BlokBoard ; sens de BlokBoard en v.26) : la carte glisse sur
   ses rails d action. Vers la gauche, le rouge « Supprimer » (à droite) ; vers la droite, le vert « Réussi ». */
.swipe{ position:relative; overflow:hidden; touch-action:pan-y; }
.sw-bg{ position:absolute; inset:0; display:flex; align-items:stretch; opacity:0; visibility:hidden; transition:opacity .1s, visibility .1s; pointer-events:none; }
.sw-bg .act-btn{ width:96px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  font-size:var(--t-s); font-weight:600; color:inherit; }
.sw-bg .act-btn svg{ width:22px; height:22px; }
.sw-bg.l{ justify-content:flex-end; }       /* révélé en balayant vers la gauche : bouton à droite */
.sw-bg.r{ justify-content:flex-start; }
.sw-bg.del{ background:var(--danger-bg); color:var(--on-danger); }
.sw-bg.ok{ background:var(--ok-bg); color:var(--on-ok); }
.swipe.to-l .sw-bg.l, .swipe.to-r .sw-bg.r{ opacity:1; visibility:visible; pointer-events:auto; }
.swipe.open .sw-bg .act-btn{ transform:scale(1.06); transition:transform .25s var(--spring); }
.swipe .obj{ position:relative; background:var(--card); }
/* Pendant un balayage, la ligne ne se teinte pas : seul le rail dégagé porte la couleur (BlokBoard). */
.swipe.to-l .obj, .swipe.to-r .obj, .swipe.open .obj:active{ background:var(--card) !important; }
.swipe .obj.snap{ transition:transform .28s var(--ease); }
.swipe.gone{ max-height:0 !important; opacity:0; transition:max-height .3s var(--ease), opacity .22s; }
.obj{ padding:12px 16px; display:flex; flex-direction:column; gap:8px; width:100%; text-align:left; }
button.obj, .objm{ transition:background .15s; }
button.obj:active, .objm:active{ background:var(--fill); }
/* v.62 — le + d un objectif de croix : la ligne en deux boutons. La fiche (.objm) prend toute la ligne, le + (le rond des
   pas « − 12 + », en ambre) se pose dessus à droite : la ligne se teinte en entier sous le doigt, comme les autres. */
.obj.avp{ padding:0; position:relative; }
.objm{ padding:12px 64px 12px 16px; display:flex; flex-direction:column; gap:8px; width:100%; text-align:left; }
.objp{ position:absolute; right:14px; top:calc(50% - 18px); color:var(--tint-text); }
.objp.mot{ font-size:var(--t-s); font-weight:700; font-variant-numeric:tabular-nums; }      /* v.86 : « +1 », plus un + à deviner */
.swipe.to-l .objm, .swipe.to-r .objm, .swipe.open .objm:active{ background:none !important; }
.obj .h{ display:flex; align-items:baseline; gap:8px; }
.obj .h b{ flex:1; font-weight:600; font-size:var(--t-base); min-width:0; }
.obj .h span{ font-size:var(--t-m); color:var(--text2); font-variant-numeric:tabular-nums; white-space:nowrap; display:flex; }
.obj small{ font-size:var(--t-s); color:var(--text2); }
.obj.done .bar2 i{ background:var(--green); }
.obj.done .h span{ color:var(--green-text); }
.obj.missed .bar2 i{ background:var(--text3); }
details.fold summary{ list-style:none; cursor:pointer; font-size:var(--t-m); font-weight:600; color:var(--tint-text); padding:10px 4px;
  display:flex; align-items:center; gap:6px; min-height:44px; }
details.fold summary::-webkit-details-marker{ display:none; }
details.fold summary svg{ transition:transform .15s; }
details.fold[open] summary svg{ transform:rotate(90deg); }
.tog{ width:51px; height:31px; border-radius:999px; background:var(--fill2); position:relative; flex-shrink:0; transition:background .25s; }
.tog.on{ background:var(--green); }
.tog::after{ content:''; position:absolute; top:2px; left:2px; width:27px; height:27px; border-radius:50%; background:#fff;
  box-shadow:0 3px 8px rgba(0,0,0,.15), 0 0 0 .5px rgba(0,0,0,.04); transition:transform .3s var(--spring); }
.tog.on::after{ transform:translateX(20px); }
.step input{ width:58px; text-align:center; font-size:max(16px, 1rem); font-weight:600; background:none; border:none; outline:none;
  font-variant-numeric:tabular-nums; color:var(--text); }
.gg button.on{ background:var(--tint); color:var(--on-tint); }
/* Le fil : objectifs atteints des amis */
.ev .ic2{ width:36px; height:36px; border-radius:50%; flex-shrink:0; align-self:flex-start; display:flex; align-items:center;
  justify-content:center; color:var(--tint-text); background:color-mix(in srgb, var(--tint) 22%, var(--card)); }
.srow .cp{ align-self:center; font-size:var(--t-s); font-weight:600; color:var(--tint-text); background:var(--fill); border-radius:999px;
  padding:0 12px; min-height:32px; flex-shrink:0; position:relative; }
.srow .cp::before{ content:''; position:absolute; inset:-6px -4px; }
/* v.57 — « j y serai » / « je n y serai pas » : une coche et une croix, deux ronds de 36 px (cible 44) */
.ouinon{ display:flex; align-items:center; gap:8px; flex-shrink:0; align-self:center; }
.ouinon button{ width:36px; height:36px; border-radius:50%; background:var(--fill); color:var(--text2); display:flex; align-items:center; justify-content:center; position:relative; transition:transform .16s var(--ease); }
.ouinon button::before{ content:''; position:absolute; inset:-4px; }
.ouinon button:active{ transform:scale(.88); }
.ouinon button.oui{ background:var(--tint); color:var(--on-tint); }
.ouinon svg{ width:18px; height:18px; }
.cell .pm{ min-width:36px; height:32px; margin-left:6px; border-radius:var(--r-s); background:var(--fill); color:var(--text); font-size:var(--t-base); font-weight:600; position:relative; flex-shrink:0; }
.cell .pm::before{ content:''; position:absolute; inset:-6px -4px; }
.ouinon button.oui.mot{ width:auto; padding:0 14px; border-radius:999px; font-size:var(--t-s); font-weight:600; white-space:nowrap; }      /* v.85 (relecture) : « J’y serai » écrit, plus une coche à deviner */
.srow .ok-la{ align-self:center; display:flex; align-items:center; gap:4px; flex-shrink:0; font-size:var(--t-s); font-weight:600; color:var(--green-text); }
.srow .ok-la svg{ width:15px; height:15px; }
/* Demande des notifications, à la première ouverture */
.ask{ max-width:420px; margin:0 auto; padding:calc(32px + env(safe-area-inset-top)) 4px 0; text-align:center; }   /* pas de barre : on laisse l encoche */
.ask .ib{ width:76px; height:76px; border-radius:var(--r-l); margin:0 auto 16px; display:flex; align-items:center; justify-content:center;
  background:var(--tint); color:var(--on-tint); }
.ask .ib svg{ width:38px; height:38px; stroke-width:2; }
/* L objectif atteint : la fête (v.24) — le drapeau, ou la cotation en grand, arrive d un rebond */
.ask.fete{ padding-top:20px; }
.ask.fete .ib{ width:96px; height:96px; border-radius:28px; animation:fete .6s var(--spring) both; }
.ask.fete .ib .cot{ font-size:var(--t-xxl); font-weight:700; letter-spacing:-.5px; }
.ask.fete h2{ animation:pop .35s .15s var(--ease) both; }
.ask.fete .bigbtn{ margin-top:24px; }
/* v.93 : le bonus d Agathe — la pastille aux couleurs de Serpentard (vert profond, argent) */
.ask.fete.bonus .ib{ width:128px; background:#1a472a; color:#e8ecee; }
.ask.fete.bonus .ib .cot{ font-size:var(--t-xl); }
/* Les confettis (v.93) : par-dessus tout, jamais sous le doigt ; chacun tombe en tournant puis disparaît. */
.confettis{ position:fixed; inset:0; z-index:200; pointer-events:none; overflow:hidden; }
.confettis i{ position:absolute; top:-24px; border-radius:2px; opacity:0; animation:chute 2.6s cubic-bezier(.25,.6,.45,1) both; }
@keyframes chute{ 0%{ opacity:1; transform:translate(0, 0) rotate(0); } 85%{ opacity:1; }
  100%{ opacity:0; transform:translate(var(--dx), 105vh) rotate(var(--rot)); } }
@media (prefers-reduced-motion:reduce){ .confettis{ display:none; } }
@keyframes fete{ 0%{ transform:scale(.4) rotate(-12deg); opacity:0; } 60%{ transform:scale(1.08) rotate(3deg); opacity:1; } 100%{ transform:none; } }
.ask h2{ font-size:var(--t-xl); font-weight:700; letter-spacing:-.4px; line-height:1.15; margin-bottom:8px; }
.ask p{ font-size:var(--t-m); color:var(--text2); line-height:1.45; }
.ask ul{ list-style:none; text-align:left; margin:16px 0 8px; background:var(--card); border-radius:var(--r-m); overflow:hidden; }
.ask li{ padding:10px 16px; min-height:44px; font-size:var(--t-m); display:flex; gap:12px; align-items:center; }
.ask li + li{ box-shadow:0 -.5px 0 var(--sep2); }
.ask li svg{ color:var(--tint-text); flex-shrink:0; }
.ask .steps{ text-align:left; }
.ask .later{ margin-top:6px; color:var(--text2); font-size:var(--t-m); min-height:44px; width:100%; }
.clamp{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; }
.mini.alt button{ background:var(--fill); }
/* Commentaires */
.com-form .cell{ padding-right:8px; }
/* v.113 : le champ d un mot ou d un message de live passe à la ligne et grandit (comHaut), cinq lignes puis il défile. Une ligne
   fait 48 px quelle que soit la taille du texte, la ligne garde ses 56 px d avant, le texte et la flèche au même milieu ; plus
   haute, la flèche reste en bas, en face de la dernière ligne (24 px de son centre au bas du champ, comme la dernière ligne). */
.com-form .cell{ padding-top:4px; padding-bottom:4px; align-items:flex-end; }
.cell textarea.com-in{ min-height:48px; max-height:calc(5.4em + 48px); padding:max(4px, calc(24px - .675em)) 0; overflow-y:auto; color:var(--text); outline:none; }
.cell textarea.com-in:placeholder-shown{ white-space:nowrap; overflow:hidden; }      /* vide : « Réponds à … » sur une ligne, coupé à droite, comme l ancien champ */
.com-form .com-send{ margin-bottom:6px; }
/* v.54 — répondre à UN mot : la réponse se range sous lui, alignée sur son texte ; au-dessus du champ, à qui l on répond */
.com-list .cell.com-rep{ padding-left:52px; }      /* 16 de marge + l avatar de 24 + 12 d écart */
.com-repa{ display:flex; align-items:center; gap:8px; min-height:40px; padding:4px 16px 0; font-size:var(--t-s); color:var(--text2); }      /* v.122 : plus de croix (36 px) — la même hauteur */
.com-repa[hidden]{ display:none; }
.com-repa span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.com-form .com-repa + .cell{ box-shadow:none; }
.com-send{ width:36px; height:36px; border-radius:50%; background:var(--tint); color:var(--on-tint); display:flex;
  align-items:center; justify-content:center; flex-shrink:0; position:relative; }
.com-send::before{ content:''; position:absolute; inset:-4px; }
.com-send svg{ width:18px; height:18px; }
.ncom{ display:inline-flex; align-items:center; gap:2px; color:var(--text2); }
/* Une ligne qui se déplie : le chevron pivote vers le bas une fois ouverte */
.disc .chev svg{ transition:transform .2s var(--ease); }
.disc.on .chev svg{ transform:rotate(90deg); }
a.rowbtn{ text-decoration:none; }
.steps{ counter-reset:s; list-style:none; padding:8px 4px 0; }
.steps li{ counter-increment:s; position:relative; padding-left:28px; margin-bottom:8px; font-size:var(--t-s); color:var(--text2); line-height:1.45; }
.steps li b{ color:var(--text); font-weight:600; }
.steps li::before{ content:counter(s); position:absolute; left:0; top:1px; width:19px; height:19px; border-radius:50%;
  background:var(--tint); color:var(--on-tint); font-size:var(--t-xs); font-weight:700; display:flex; align-items:center; justify-content:center; }

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{ animation-duration:.01ms !important; transition-property:opacity, background, color !important; }
}

/* ── v.24 : corrections de la revue UX/UI ─────────────────────────────────── */
/* Les types d une séance : une seule ligne qui défile (trois lignes sur iPhone SE avant) */
.pick.defile{ flex-wrap:nowrap; overflow-x:auto; margin:0 -16px; padding:4px 16px 6px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.pick.defile::-webkit-scrollbar{ display:none; }
.pick.defile button{ flex-shrink:0; }
.pick button.neuf{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--sep); color:var(--tint-text); }
/* La date écrite en toutes lettres ; le sélecteur natif, invisible, par-dessus */
.cell.date{ position:relative; }
.cell.date .dval{ margin-left:auto; color:var(--tint-text); min-width:0; text-align:right; }      /* v.111 (relecture) : une date longue passe à la ligne plutôt que d être coupée */
.cell.date .lbl{ flex:none; white-space:nowrap; }      /* v.111 (audit, 320 px) : « Avant le » ne se coupe plus sous la date */
.cell.date .dval::first-letter{ text-transform:uppercase; }
.cell.date .dpick{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
/* Les avatars des pastilles, centrés */
.pick .av{ align-self:center; }
.bigbtn.danger{ background:var(--danger-bg); color:var(--on-danger); }
/* Le focus se voit aussi sur les champs, les replis et le curseur (avant : seulement boutons et liens) */
:is(input, textarea, select, summary, [tabindex="-1"]):focus-visible{ outline:2px solid var(--tint-text); outline-offset:2px; border-radius:var(--r-s); }
.cell.date:has(.dpick:focus-visible){ outline:2px solid var(--tint-text); outline-offset:-2px; border-radius:10px; }
.sheet .snav .t:focus-visible{ outline-offset:4px; }
/* Le message du bas caché l est pour de bon (plus de bouton fantôme au clavier ni à VoiceOver) */
.toast{ visibility:hidden; transition:opacity .2s, transform .34s var(--spring), visibility 0s linear .34s; }
.toast.on{ visibility:visible; transition:opacity .2s, transform .34s var(--spring), visibility 0s; }
/* Paysage : les bords arrondis et l encoche */
main{ padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
.dock{ padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
.sb{ padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
/* Gros texte iOS : les libellés de la pilule ne débordent pas */
.pill button{ font-size:min(var(--t-xs), 13px); }
/* La fiche de confirmation (v.24) : une carte en bas, sur un voile — plus de confirm() natif */
.sheet.bas{ background:rgba(0,0,0,.32); align-items:flex-end; animation:voile .18s var(--ease); }
:root[data-theme="dark"] .sheet.bas{ background:rgba(0,0,0,.55); }
.sheet.bas .card{ height:auto; max-height:85%; margin-top:auto; background:var(--bg); border-radius:var(--r-l) var(--r-l) 0 0;
  padding:24px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  animation:monte .26s var(--ease); max-width:560px; margin-left:auto; margin-right:auto; }
html.kb .sheet.bas .card{ padding-bottom:calc(16px + var(--kbo, 0px)); }
.sheet.bas.out .card{ transform:translateY(100%); }
@keyframes monte{ from{ transform:translateY(100%); } to{ transform:none; } }
.dem{ text-align:center; }
.dem .t{ font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; margin-bottom:6px; }
.dem p{ font-size:var(--t-m); color:var(--text2); line-height:1.45; margin-bottom:16px; }
/* v.57 — un choix dans la fiche de confirmation (le type de la séance, en terminant un live) */
.dem .dem-ch{ display:flex; flex-direction:column; align-items:center; gap:8px; margin:0 0 16px; }
.dem .dem-ch > span{ font-size:var(--t-s); color:var(--text2); text-transform:uppercase; letter-spacing:.02em; }
.dem .dem-ch .pick{ justify-content:center; }
.dem .later{ margin-top:6px; color:var(--text2); font-size:var(--t-m); min-height:44px; width:100%; }
.dem.neuf .grp{ text-align:left; }
.nf-v .lbl{ gap:4px; padding:4px 0; }      /* v.99 : « What's New » — le titre d une version, puis ses phrases */
.nf-v .nf-t{ font-weight:600; }
.nf-v .nf-p{ font-size:var(--t-m); color:var(--text2); line-height:1.4; }      /* v.87 : la fiche « What's New » d une mise à jour — les groupes de la fiche des Réglages */
.dem.neuf .nf-pied{ position:sticky; bottom:0; padding-top:8px; background:var(--bg); box-shadow:0 -12px 16px var(--bg), 0 48px 0 var(--bg); }      /* « C est noté » toujours à portée du pouce, même avec quatre versions à lire ; rien ne se lit dessous */
.bigbtn.second{ background:var(--fill); color:var(--text); }
.bienvenue{ background:var(--card); border-radius:var(--r-m); padding:16px; margin:0 0 16px; }
.bienvenue b{ display:block; font-size:var(--t-base); margin-bottom:4px; }
.bienvenue p{ font-size:var(--t-m); color:var(--text2); line-height:1.45; }
.bienvenue p b{ display:inline; font-size:inherit; color:var(--text); }
.bienvenue .ambre{ background:var(--tint); color:var(--on-tint); border-radius:var(--r-xs); padding:0 4px; font-weight:600; }
/* Petits composants de la revue v.24 */
.chev{ color:var(--text3); display:flex; }
h1.big .pastille{ margin-left:auto; align-self:center; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px;
  border-radius:999px; background:var(--card); color:var(--text); font-size:var(--t-m); font-weight:600; letter-spacing:0; position:relative;
  box-shadow:0 2px 12px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.05); }
h1.big .pastille::before{ content:''; position:absolute; inset:-4px; }
h1.big .pastille svg{ width:16px; height:16px; }
.nom{ flex:1; min-width:0; display:flex; align-items:center; gap:6px; }
.nom input{ font-size:max(16px, 1.2353rem); font-weight:600; }
.nom .crayon{ width:16px; height:16px; color:var(--text3); flex-shrink:0; }
.casse{ overflow-wrap:anywhere; }
.choisir{ color:var(--text); user-select:all; -webkit-user-select:all; }
.ym.courant .h{ color:var(--tint-text); }
.ask li svg, .ask li svg.ic{ width:20px; height:20px; }      /* v.86 : la bulle (petite d office) à la taille des autres */
.plusmenu button:focus-visible{ outline-offset:-3px; border-radius:var(--r-m); }   /* au clavier : l anneau dans le menu, pas coupé par ses bords */

/* v.28 — la course : distance et dénivelé, un nombre à droite et son unité */
.cell input.num{ flex:0 1 96px; text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
/* v.67 — un champ de texte à droite de son libellé (prénom, nom, pseudo), et le nom affiché à côté de la photo */
.cell input.idc{ flex:1 1 60%; min-width:0; text-align:right; font-weight:600; }
.cell .lbl:has(+ input.idc){ flex:0 1 auto; }
span.nom{ font-size:var(--t-l); font-weight:600; overflow-wrap:anywhere; }
.cell .unite{ color:var(--text2); width:26px; flex-shrink:0; }

/* v.28 — Progrès : la courbe des 12 dernières semaines (à la manière de Strava, dans la charte de l app).
   Le tracé porte l ambre de la charte ; les chiffres et libellés restent en encre de texte. */
.pg{ padding:12px 16px; margin-top:8px; overflow:visible; }
.box.pg > *{ box-shadow:none !important; }        /* pas de filets entre le titre, les chiffres et la courbe */
.pg-t{ font-size:var(--t-m); font-weight:600; color:var(--text2); }
.pg-h{ display:flex; align-items:center; gap:8px; min-height:38px; }      /* v.82 : le titre du graphique, et sa période en petit à droite */
.pg-h .pg-t{ flex:1; min-width:0; line-height:1.25; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }      /* v.85 (relecture : « Septembre 2… ») : deux lignes, sa place gardée (38 px) — rien ne bouge quand on touche un point */
.pg-h .mini{ flex-wrap:nowrap; flex-shrink:0; }
.pg-h .mini button{ padding:0 10px; }
.pick.py-ch{ margin-bottom:8px; }
/* v.132 (« je préfère les cases dans Progrès de BlokWall ») : des CASES, comme BlokWall — fond gris, chiffre centré, la case tracée en
   jaune. Cinq (escalade) : trois en haut, deux en bas ; quatre (course) : deux par ligne. Le chiffre rapetisse avec sa case (relecture :
   « 312 h 40 » à 320 px, « 18 h 30 » en grande police s écrivaient « … ») ; la coupure ne reste qu en dernier recours. */
.pg-k{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:6px; margin:8px 0 12px; }
.pg-k button{ grid-column:span 2; min-height:58px; min-width:0; padding:6px 4px; border-radius:var(--r-s); background:var(--fill); container-type:inline-size;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; text-align:center; transition:background .15s, color .15s; }
.pg-k.n5 button:nth-child(n+4), .pg-k.n4 button{ grid-column:span 3; }
@media (max-width:359px){ .pg-k button{ grid-column:span 3; } .pg-k.n5 button:last-child{ grid-column:span 6; } }      /* un petit écran (320 px) : deux par ligne, la dernière en long — les chiffres gardent leur taille */
.pg-k b{ font-size:min(var(--t-l), 20cqi); font-weight:800; letter-spacing:-.3px; line-height:1; white-space:nowrap; font-variant-numeric:tabular-nums; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.pg-k span{ font-size:var(--t-xs); color:var(--text2); font-weight:600; white-space:nowrap; }
.pg-k button.on{ background:var(--tint); color:var(--on-tint); }
.pg-k button.on span{ color:var(--on-tint); }
.pg-plot{ position:relative; height:136px; margin-right:36px; touch-action:pan-y; -webkit-user-select:none; user-select:none; }
.pg-plot svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pg-l{ fill:none; stroke:var(--tint); stroke-width:2; vector-effect:non-scaling-stroke; stroke-linejoin:round; stroke-linecap:round; }
.pg-a{ fill:var(--tint); opacity:.14; stroke:none; }
.pg-g{ position:absolute; left:0; right:0; height:0; border-top:.5px solid var(--sep2); }
.pg-y{ position:absolute; left:calc(100% + 7px); transform:translateY(-50%); font-size:var(--t-xs); color:var(--text2);
  font-variant-numeric:tabular-nums; white-space:nowrap; }
.pg-pt{ position:absolute; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--tint);
  box-shadow:0 0 0 2px var(--card2); pointer-events:none; }
.pg-pt.on{ width:12px; height:12px; margin:-6px 0 0 -6px; }
.pg-v{ position:absolute; top:0; bottom:8%; width:0; border-left:1px solid var(--text3); pointer-events:none; }
.pg-c{ position:absolute; top:0; bottom:0; cursor:pointer; }
.pg-c:focus-visible{ outline:2px solid var(--tint-text); outline-offset:-2px; border-radius:var(--r-s); }
.pg-x{ position:relative; height:16px; margin:8px 36px 0 0; font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.03em; }
.pg-x span{ position:absolute; transform:translateX(-50%); white-space:nowrap; }
.pg-x span.g{ left:0; transform:none; }
.pg-vide{ font-size:var(--t-m); color:var(--text2); margin-top:8px; }

/* v.29 — Trips d escalade : une barre sous les jours du trip, d un bout à l autre (les cases se touchent) */
.dc.tp::after{ content:''; position:absolute; left:0; right:0; bottom:2px; height:3px; background:var(--text); opacity:.82; }
.dc.tp-d::after{ left:24%; border-radius:3px 0 0 3px; }
.dc.tp-f::after{ right:24%; border-radius:0 3px 3px 0; }
.dc.tp-d.tp-f::after{ border-radius:3px; }
.tripchip{ display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; margin:-2px 0 12px; border-radius:999px;
  background:var(--fill); font-size:var(--t-m); font-weight:600; position:relative; }
.tripchip svg{ width:16px; height:16px; flex-shrink:0; }
.tripchip small{ font-weight:400; color:var(--text2); font-size:var(--t-s); }
button.tripchip::before{ content:''; position:absolute; inset:-6px -2px; }
button.tripchip:active{ background:var(--fill2); }
.tj{ font-size:var(--t-s); font-weight:400; color:var(--text2); padding:12px 4px 8px; }
.tj:first-of-type{ padding-top:0; }
.plusmenu button.tripn svg{ width:18px; height:18px; margin:0 -1px 0 -5px; color:var(--text2); }

/* v.31 — la roue crantée des Réglages, au bout du titre « Vous » ; et la ligne « Course » sous le bilan */
h1.big .pastille.rond{ width:36px; padding:0; justify-content:center; }
h1.big .pastille.rond svg{ width:19px; height:19px; }
.xline.course{ margin-top:-2px; }
.grp + .seg{ margin-top:24px; }      /* le calendrier d un ami, sous son graphique */

/* v.33 — façon Strava : bravo, série, records, pyramide, charge */
/* Le bravo : au bout de la ligne d une activité (la ligne garde sa place à droite), ou en grand dans une fiche */
.kw{ position:relative; }
.kw > .srow{ width:100%; padding-right:66px; }
/* v.44 — la bulle d une ligne du fil (des mots : un appui ouvre la discussion) ; à gauche du pouce quand il y en a un */
.kw.deux > .srow{ padding-right:118px; }
.kw.deux > .kd.com{ right:60px; }
.kd{ position:absolute; right:8px; top:50%; transform:translateY(-50%); min-width:48px; height:44px; padding:0 8px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; gap:4px; color:var(--text2); font-size:var(--t-m); font-weight:600;
  font-variant-numeric:tabular-nums; transition:color .15s, background .15s; }
.kd svg{ width:21px; height:21px; flex-shrink:0; }
.kd.on{ color:var(--tint-text); }
.kd.on svg{ fill:color-mix(in srgb, var(--tint) 45%, transparent); }
button.kd:active{ background:var(--fill); }
.kd.pop svg{ animation:kpop .35s var(--spring); }
@keyframes kpop{ 40%{ transform:scale(1.35) rotate(-10deg); } }
.kd.lu{ pointer-events:none; color:var(--text2); }
.kud{ display:flex; align-items:center; gap:12px; margin:0 0 8px; flex-wrap:wrap; }
.kud[hidden]{ display:none; }
.kd.gros{ position:static; transform:none; height:44px; padding:0 12px; gap:6px; background:var(--card2); color:var(--text); font-size:var(--t-m); }
.kd.gros.on{ color:var(--tint-text); }
.kud-n{ font-size:var(--t-s); color:var(--text2); }
.kud > .kud-n:first-child{ padding-left:4px; }      /* v.86 : « Bravo de… » au même retrait que le titre du groupe */
/* La série de semaines, au bout du titre « Progrès » */
.lab .serie{ display:inline-flex; align-items:center; gap:4px; color:var(--tint-text); font-weight:600; }
.lab .serie svg{ width:14px; height:14px; fill:color-mix(in srgb, var(--tint) 55%, transparent); }
/* Records : une valeur à droite ; pyramide : une barre par cotation, la plus dure en haut */
.py{ padding:12px 16px; display:flex; flex-direction:column; gap:8px; }
.box.py > *{ box-shadow:none !important; }
.py-r{ display:grid; grid-template-columns:3.1rem 1fr 2.2rem; align-items:center; gap:12px; }
.py-r b{ font-size:var(--t-base); font-weight:700; }
.py-r i{ display:block; height:14px; width:var(--w); min-width:6px; border-radius:0 3px 3px 0; background:var(--tint); }
.py-r span{ font-size:var(--t-s); color:var(--text2); text-align:right; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:reduce){ .kd.pop svg{ animation:none; } }

/* v.34 — les niveaux W1 à W5 : cinq gros boutons, une ligne */
.gpick .gg.w{ grid-template-columns:repeat(5, 1fr); }
.gpick .gg.w button{ height:52px; }

/* ── Live (v.35) : le chrono de la séance, le repos, les essais, les croix, les séries ─────────────────────
   Dans la charte : l ambre (--tint) dit ce qui tourne, le vert (--green) dit « reposé » ; tout le reste est
   de l encre de texte. Les chiffres qui bougent sont en chiffres tabulaires (ils ne dansent pas). */
/* v.103 : la bulle de l onglet Feed porte le NOMBRE de notifications (un point depuis la v.82) — la cloche n est plus que dans le Feed */
.tabbadge.live{ min-width:8px; width:8px; height:8px; padding:0; top:7px; left:calc(50% + 8px); background:var(--tint); animation:lvpt 1.6s ease-in-out infinite; }
@keyframes lvpt{ 50%{ opacity:.25; } }
.lv-top{ display:flex; flex-direction:column; align-items:center; padding:4px 0 12px; }
.lv-qui{ font-size:var(--t-s); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.02em; display:flex; align-items:center; gap:6px;
  max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lv-pt{ width:8px; height:8px; border-radius:50%; background:var(--tint); flex-shrink:0; animation:lvpt 1.6s ease-in-out infinite; }
.lv-top[data-pause="1"] .lv-pt{ animation:none; background:var(--text3); }
.lv-ligne{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.lv-chrono{ flex:1; min-width:0; text-align:center; font-size:clamp(3.2rem, 18vw, 4.5rem); font-weight:700; letter-spacing:-.035em; line-height:1.08; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lv-chrono.h{ font-size:clamp(2.5rem, 13vw, 3.2rem); line-height:1.5; }      /* passé l heure : « 1:04:07 » tient entre les deux boutons */
.lv-chrono.hh{ font-size:clamp(2rem, 10.5vw, 2.7rem); line-height:1.8; }       /* un live oublié (dix heures et plus) : « 10:00:00 » tient aussi, même à 320 px */
@media (max-width:359px){ .gpick.lv-gp .gg.k{ grid-template-columns:repeat(5, 1fr); } }
@media (max-width:359px){ .gpick .gg{ grid-template-columns:repeat(5, 1fr); } }
/* v.111 (audit, 320 px) : le nom d une croix tient sur sa ligne (« … ») ; la période du graphique passe sous son titre ; un nom long du
   classement va à la ligne ; le titre d une fiche ne passe plus sous ses boutons. */
@media (max-width:359px){
  .cx-t .cx-n{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pg-h{ flex-wrap:wrap; }
  .pg-h .pg-t{ flex-basis:100%; }
  .cell.clt .nom{ white-space:normal; }
  .snav{ grid-template-columns:auto minmax(0, 1fr) auto; }
}      /* v.85 : à 320 px, six cases par ligne faisaient 38 px ; cinq en font 48 */      /* petit iPhone : cinq cotations par ligne, des boutons qu on vise sans peine */
.lv-top[data-pause="1"] .lv-chrono{ color:var(--text3); }
.lv-ligne .circ{ width:44px; height:44px; color:var(--text); background:var(--card); }
.lv-ligne .circ svg{ width:19px; height:19px; }
.lv-ligne .circ[aria-pressed="false"]{ color:var(--text3); }
/* Le choix du système de cotation : trois cartes, le nom et son étendue */
/* un sélecteur à plus de quatre choix (les échelles) : trois par ligne */
.seg.rg3{ flex-wrap:wrap; }
.seg.rg3 button{ flex:1 1 30%; }
.seg.rg3 button:nth-child(-n+4){ flex-basis:22%; }      /* v.61 : sept échelles — les quatre noms courts sur la première ligne, les trois longs dessous ; v.100 : dix — quatre, trois, trois */
/* le bouton « lives de mes amis » du Live : le point d un live en cours */
h1.big .pastille .lv-pt, .rowbtn .lv-pt{ margin-right:2px; }
/* v.58 — « mes amis voient mon live » : l interrupteur juste après le titre, sans mot ; rouge quand c est non, vert quand c est oui */
/* v.65 (« pour le toggle vert / rouge … fais quelque chose de plus petit, mieux incrusté ») : un œil dans un rond du titre, comme la
   roue crantée — vert quand mes amis voient mon live, barré et rouge sinon. Deux ronds côte à côte : 8 px entre eux. */
h1.big .pastille.lv-vis{ color:var(--red-text); }
h1.big .pastille.lv-vis.on{ color:var(--green-text); }
h1.big .pastille + .pastille{ margin-left:0; }      /* l écart du titre (gap) suffit entre deux ronds */
.lv-pt.rouge{ animation:none; background:var(--red); }
/* v.66 — la cloche (au bout d un titre, à côté de la roue) et sa bulle : la bulle des onglets, posée au coin du rond ; la liste
   des notifications : une ligne = la notification (on la touche pour l ouvrir) + « Vu » à droite. */
h1.big .pastille.cloche{ position:relative; }
.cloche .bulle{ position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:var(--danger-bg); color:var(--on-danger);
  font-size:var(--t-xs); font-weight:700; font-style:normal; line-height:17px; text-align:center; letter-spacing:0; pointer-events:none; }
.cell.ntf{ padding:0 16px 0 0; gap:8px; }
.ntf-m{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:10px 0 10px 16px; min-height:44px; text-align:left; transition:opacity .15s; }
.ntf-m:active{ opacity:.55; }
.ntf-m .lbl small.h{ color:var(--text2); }      /* v.79 (audit) : l heure d une notification, à 3,2 pour 1 */
/* v.57 — le système de cotation : cinq cases (trois puis deux), le nom et son étendue — « je préférais avant le système de cases » */
.lv-ech{ display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; margin-bottom:8px; }
.lv-ech button{ grid-column:span 2; background:var(--card); border-radius:var(--r-m); padding:8px 4px; min-height:60px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  box-shadow:inset 0 0 0 2px transparent; transition:transform .16s var(--ease), box-shadow .16s, background .16s; }
/* v.74 : le nombre de cases suit les systèmes que chacun garde (Réglages) — `q` + le nombre, d une à neuf, sans trou :
   1 → une ; 2 → deux ; 3, 6, 9 → par trois ; 4 → deux et deux ; 5 → trois et deux ; 7 → trois, deux, deux ; 8 → trois, trois, deux. */
.lv-ech.q1 button{ grid-column:span 6; }
.lv-ech.q2 button, .lv-ech.q4 button{ grid-column:span 3; }
.lv-ech.q5 button:nth-child(n+4), .lv-ech.q7 button:nth-child(n+4), .lv-ech.q8 button:nth-child(n+7), .lv-ech.q10 button:nth-child(n+7), .lv-ech.q11 button:nth-child(n+10){ grid-column:span 3; }      /* v.100 : onze cases — trois, trois, trois, deux */      /* v.77 : dix cases — trois, trois, deux, deux */
.lv-ech button:active{ transform:scale(.96); }
.lv-ech button b{ font-size:var(--t-m); font-weight:600; }
.lv-ech button small{ font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; }
.lv-ech button.on{ box-shadow:inset 0 0 0 2px var(--tint); background:color-mix(in srgb, var(--tint) 13%, var(--card)); }
.lv-play{ color:var(--tint-text); display:flex; flex-shrink:0; }
.lv-play svg{ width:18px; height:18px; }
.lv-prog{ display:flex; align-items:center; }
.lv-prog .cell{ flex:1; min-width:0; }
.lv-prog .xbtn{ margin-right:6px; color:var(--tint-text); flex-shrink:0; }
/* Le repos */
.lv-repos{ padding:12px 16px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; }
.lv-rn{ font-size:2.3529rem; font-weight:700; letter-spacing:-.035em; line-height:1; font-variant-numeric:tabular-nums; color:var(--text3); }
.lv-repos[data-etat="cours"] .lv-rn{ color:var(--text); }
.lv-repos[data-etat="pret"] .lv-rn{ color:var(--green-text); }
.lv-repos .step output{ min-width:54px; }
.lv-bar{ grid-column:1 / -1; height:6px; border-radius:3px; background:var(--fill); overflow:hidden; }
.lv-bar i{ display:block; height:100%; width:calc(var(--f, 0) * 100%); background:var(--tint); border-radius:3px; transition:width .25s linear; }
.lv-repos[data-etat="pret"] .lv-bar i{ background:var(--green); }
.lv-repos .lv-re{ grid-column:1 / -1; justify-self:start; }
/* v.55 — le repos est une ligne de la carte « maintenant » : son libellé au-dessus du chiffre ; reposé, toute la ligne passe au vert (lisible téléphone posé) */
.lv-rg{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.lv-rl{ font-size:var(--t-s); color:var(--text2); text-transform:uppercase; letter-spacing:.02em; }
.lv-repos[data-etat="pret"]{ background:color-mix(in srgb, var(--green) 14%, transparent); }
.lv-repos[data-etat="pret"] .lv-rl{ color:var(--green-text); }
.lv-top + .grp{ margin-top:4px; }      /* la carte où l on agit, tout de suite sous le chrono (12 + 4 = 16) */
/* Le bloc en cours, et les deux gros boutons d un essai */
.lv-bloc{ display:flex; align-items:center; gap:12px; padding:12px 8px 12px 16px; }
.lv-bloc .gr{ width:68px; height:44px; font-size:var(--t-l); border-radius:var(--r-m); }
.lv-cote{ display:flex; padding:0; border-radius:var(--r-m); position:relative; transition:transform .16s var(--ease); }      /* v.120 (audit n° 5) : la cotation du bloc en cours se touche */
.lv-cote:active{ transform:scale(.94); }
.lv-cote[aria-expanded="true"] .gr{ box-shadow:0 0 0 2px var(--tint); }
.lv-bloc .lbl{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.lv-bloc .lbl > span{ font-size:var(--t-base); font-weight:600; font-variant-numeric:tabular-nums; }
.lv-bloc .lbl small{ font-size:var(--t-s); color:var(--text2); }
.lv-btns{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:12px 16px; }
.lv-btns:has(> :only-child){ grid-template-columns:1fr; }
.lv-b{ min-height:64px; border-radius:var(--r-m); background:var(--fill); font-size:var(--t-base); font-weight:600; padding:0 8px; transition:transform .16s var(--ease); }
.lv-b:active{ transform:scale(.96); }
.lv-b.ok{ background:var(--tint); color:var(--on-tint); }
.gpick.lv-gp .gg button{ height:52px; }
.gpick .gg.g{ grid-template-columns:repeat(4, 1fr); }
.gpick .gg.g button{ height:52px; }
.lv-l{ padding-right:8px; }
.lv-l .ok-la{ display:flex; align-items:center; flex-shrink:0; padding:0 6px; color:var(--green-text); }      /* v.85 (relecture) : un état, petit et vert — pas un bouton du poids du × */
.lv-l .ok-la svg{ width:15px; height:15px; }
.lv-re{ font-size:var(--t-s); font-weight:600; color:var(--tint-text); background:var(--fill); border-radius:999px; padding:0 12px; min-height:32px; position:relative; flex-shrink:0; }
.lv-re::before{ content:''; position:absolute; inset:-6px -4px; }
.lv-re:active{ transform:scale(.94); }
/* La muscu : l exercice, ses séries (points), le décompte d une série au temps */
.lv-exo{ padding:12px 16px 4px; }
.lv-exo h2{ font-size:var(--t-xl); font-weight:700; letter-spacing:-.4px; line-height:1.15; overflow-wrap:anywhere; }
.lv-exo p{ font-size:var(--t-m); color:var(--text2); margin-top:4px; }
.lv-exo p.lv-dern{ margin-top:2px; }
.lv-pts{ display:flex; align-items:center; gap:6px; margin-top:12px; flex-wrap:wrap; }
.lv-pts i{ width:12px; height:12px; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--sep); }
.lv-pts i.f{ background:var(--tint); box-shadow:none; }
.lv-pts span{ font-size:var(--t-m); font-weight:600; margin-left:4px; font-variant-numeric:tabular-nums; }
.lv-pts i + span{ margin-left:6px; } .lv-pts span:first-child{ margin-left:0; }
.lv-eff{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 16px 12px; }
.lv-en{ font-size:clamp(3.2rem, 18vw, 4.5rem); font-weight:700; line-height:1; letter-spacing:-.035em; font-variant-numeric:tabular-nums; color:var(--tint-text); }
.lv-eff[data-phase="go"] .lv-en{ color:var(--text); }
.lv-eff span{ font-size:var(--t-m); font-weight:600; color:var(--text2); }
.lv-ok{ padding:12px 16px; display:flex; flex-direction:column; gap:4px; }
.lv-ok b{ font-size:var(--t-l); font-weight:700; letter-spacing:-.3px; }
.lv-ok span{ font-size:var(--t-m); color:var(--text2); line-height:1.45; }
.cell.ici{ background:color-mix(in srgb, var(--tint) 13%, transparent); }
.lv-fin{ display:flex; flex-direction:column; gap:8px; }
/* Dans la fiche d une séance : le résumé du live, les essais d une croix */
.mini .ess{ font-size:var(--t-s); color:var(--text2); align-self:center; margin-left:2px; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:reduce){ .lv-pt, .tabbadge.live{ animation:none; } .lv-bar i{ transition:none; } }

/* ── v.37 ─────────────────────────────────────────────────────────────────────────────────────────────────
   Le menu : QUATRE onglets à l écran, les autres au bout du doigt — la barre se fait défiler, chaque onglet occupe le
   quart de la largeur visible et s aimante pour ne jamais s arrêter à cheval (repris de BlokBoard). Le curseur est dans
   la zone qui défile : il sort et rentre avec son onglet. */
.pill{ overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory; scroll-padding:0 4px; overscroll-behavior-x:contain; touch-action:pan-x; }
.pill::-webkit-scrollbar{ display:none; }
.pill .blob{ transform:none; transition:left .45s var(--ease), width .45s var(--ease); z-index:0; }
.pill button{ flex:0 0 25%; scroll-snap-align:start; }
@media (prefers-reduced-motion:reduce){ .pill .blob{ transition:none; } }
/* v.45 — l indice du menu (« un bounce pour indiquer qu on peut swipe ») : au lancement, les onglets font un rebond vers
   l onglet caché, qui pointe un instant. Voulu par Titouan ; coupé par « Réduire les animations ». */
@keyframes pillIndice{ 0%, 100%{ transform:translateX(0); } 26%{ transform:translateX(-32px); } 50%{ transform:translateX(0); } 68%{ transform:translateX(-13px); } 84%{ transform:translateX(0); } }
@keyframes pillIndiceG{ 0%, 100%{ transform:translateX(0); } 26%{ transform:translateX(32px); } 50%{ transform:translateX(0); } 68%{ transform:translateX(13px); } 84%{ transform:translateX(0); } }
.pill.indice > *{ animation:pillIndice 1.4s cubic-bezier(.3, .7, .3, 1) .15s 1; }
.pill.indice-g > *{ animation:pillIndiceG 1.4s cubic-bezier(.3, .7, .3, 1) .15s 1; }
@media (prefers-reduced-motion:reduce){ .pill.indice > *, .pill.indice-g > *{ animation:none; } }
/* Live : le nom du bloc en cours, une course */
/* Les exercices : six champs (la pause entre deux répétitions, pour la poutre à intervalles) */
.exo .f5.f6{ grid-template-columns:repeat(6, 1fr); gap:4px; }
.exo .f5.f6 label span{ font-size:0.5882rem; letter-spacing:0; }
/* Activités : les amis en direct */
.srow.lv-ami{ align-items:center; }
.srow.lv-ami .tl .lv-pt{ margin:0 2px; }
.lv-pt.off{ animation:none; background:var(--text3); }
.lv-sec{ align-self:center; font-size:var(--t-base); font-weight:700; font-variant-numeric:tabular-nums; flex-shrink:0; }
/* Vous : flash et points ; le barème */
.hstat .n small{ font-size:var(--t-s); font-weight:600; color:var(--text2); letter-spacing:0; }
.box.bar{ display:grid; grid-template-columns:repeat(4, 1fr); padding:6px; gap:2px; }
.box.bar > div{ display:flex; flex-direction:column; align-items:center; padding:8px 2px; box-shadow:none !important; }
.box.bar b{ font-size:var(--t-base); font-weight:700; }
.box.bar span{ font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; }
/* Plan d entraînement : un jour, ses séances (la rangée défile) */
.cell.pl-j{ gap:6px; padding-right:0; flex-direction:column; align-items:stretch; }      /* v.120 (audit n° 24, l option) : le nom du jour au-dessus de ses types, sur toute la largeur */
.pl-n{ font-size:var(--t-m); font-weight:600; }
.pl-j .pick.defile{ min-width:0; margin:0; padding:0 16px 4px 0; flex-wrap:wrap; overflow-x:visible; }      /* v.82 (audit) : les types d un jour passent à la ligne — deux et demi tenaient à l écran, les cochés pouvaient être hors champ */
/* Vu dans le simulateur iOS (v.37) : le titre d une fiche reçoit le focus à son ouverture (pour VoiceOver) — Safari l entourait
   alors d un cadre, tant qu on n avait pas encore touché l écran. Ces cibles ne se prennent jamais au clavier : pas de cadre. */
:is(h1, h2, .t, #lvCur)[tabindex="-1"]:focus-visible{ outline:none; }
/* v.38 : la prise de poutre d un exercice (réglette, un ou deux bras), lue sous ses champs */
.exo-info{ font-size:var(--t-s); color:var(--text2); }
/* v.59 — un bloc à répéter dans un exercice ; chaque répétition notée d une pastille (réussie : pleine, ratée : vide) */
.exo .exo-b{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; min-height:32px; }
.exo .exo-b:empty{ display:none; }
.rps{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.rps button{ width:36px; height:36px; border-radius:50%; background:var(--text); color:var(--card); display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0; transition:transform .16s var(--ease); }      /* v.63 : la coche NOIRE — faite, pas encore réussie */
.rps button::before{ content:''; position:absolute; inset:-4px; }
.rps button:active{ transform:scale(.88); }
.rps button.on{ background:var(--ok-bg); color:var(--on-ok); }      /* v.63 : touchée, la coche passe au VERT — réussie */
.rps button svg{ width:16px; height:16px; }
.exo-res{ display:flex; flex-direction:column; gap:8px; }
.exo-res > div{ display:flex; align-items:center; gap:8px; }
.exo-res > div > span{ flex:0 0 64px; font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; }
.lv-exo .rps{ margin-top:12px; }
.lv-exo .rps button{ width:44px; height:44px; }
.lv-exo .rps button svg{ width:19px; height:19px; }
.lv-eg{ display:flex; align-items:center; gap:12px; }
.lv-eg .gr{ width:68px; height:44px; font-size:var(--t-l); border-radius:var(--r-m); flex-shrink:0; }
.lv-eg h2{ min-width:0; }
.gpick .gg button.on{ background:var(--tint); color:var(--on-tint); }


/* ── v.53 — homogénéisation : règles de voisinage et petites classes qui remplacent les styles en ligne d app.js ── */
b{ font-weight:600; }
h1.big + .grp, h1.big + .sect, :is(h1.big, .bienvenue) + #livesZone > .sect, :is(h1.big, .bienvenue) + #livesZone:empty + :is(.sect, .grp){ margin-top:0; }   /* sous un titre ou la carte de bienvenue : les 12 px du titre (ou les 16 de la carte), pas les 24 d un groupe ; après l aide « Pas encore d ami », le groupe garde ses 24 */
h1.big + .xline{ margin-top:-4px; }   /* le sous-titre remonte sous le titre d une feuille */
h1.big > .dot{ width:14px; height:14px; } h1.big > .dot, h1.big > .av{ align-self:center; }
.sb > .xline:first-child, .sb > .list:first-child{ margin-top:8px; }   /* tête d une feuille : 8 + 8 = 16 sous la barre, quel que soit le premier élément */
.seg + .grp, .seg + .sect{ margin-top:16px; }   /* un segment gouverne le groupe qui le suit */
.seg + .hint{ padding-top:0; }
.cell > .seg{ flex:1; margin:0; } .gpick .seg{ margin:0; }
.cell > .dot{ width:12px; height:12px; }
.cell > .av{ align-self:center; }
.cell.haut{ align-items:flex-start; } .cell.haut > .av{ align-self:flex-start; margin-top:2px; }
.cell.col{ flex-direction:column; align-items:stretch; gap:12px; }
.cell.pre{ white-space:pre-wrap; }
.cell .gpick{ padding:0; } .gpick .ft .hint{ padding:0; }
.cell > .rowbtn{ width:auto; padding:0 4px; flex-shrink:0; } .rowbtn.inl{ display:inline; width:auto; padding:0; }
.cell .val.tint{ color:var(--tint-text); } .cell .val.fort{ color:var(--text); font-weight:600; }
.cell textarea.haut{ min-height:160px; }
.hint.centre{ text-align:center; } .hint.err{ color:var(--red-text); min-height:28px; }
.rouge{ color:var(--red-text); } .vert{ color:var(--green-text); } .clamp.fait{ color:var(--text2); } .clamp.sm{ font-size:var(--t-m); }
.mini.col{ flex-direction:column; align-items:flex-end; } .ico.ambre{ --c:var(--tint); color:var(--on-tint); }
.send.ro{ align-items:center; } .send.ro .lbl{ flex:1; min-width:0; } .send.ro small{ display:block; font-size:var(--t-s); color:var(--text2); }
.com-form, .pg + .box, .bigbtn + .box, .box + .box{ margin-top:8px; }   /* deux boîtes d un même groupe, une boîte sous un gros bouton : 8 px */ .lv-fin .bigbtn + .box{ margin-top:0; }   /* .lv-fin est une colonne flex : son gap de 8 suffit */
h2.day ~ .empty{ padding-top:0; } .bienvenue .bigbtn{ margin-top:12px; } .ask .grp, .sb .ask .grp:first-child{ text-align:left; margin-top:12px; }   /* la fête : 12 sous le bouton, comme avant (le :first-child de .sb donnerait 8) */
.lab + .pg{ margin-top:0; } .pg.fixe .pg-plot{ touch-action:auto; } .pg-x span.d{ left:auto; right:0; transform:none; }
.lv-bloc.seul, .lv-exo.seul{ padding-bottom:12px; }

/* ── v.70 — LES PETITES ANIMATIONS de BlokBoard (« ajoute des minis animations comme pour BlokBoard ») ────────────────────
   Du transform et de l opacité seulement, sous la demi-seconde, sans rebond. Les classes sont posées par la page autour d un
   appui (gesteApres, marque) et retirées après 450 ms : rien de visible ne dépend d une animation. « Réduire les animations »
   les rend instantanées (règle générale, plus haut). */
/* changer d onglet : un simple fondu, sans le moindre déplacement */
#view.vin{ animation:vin .2s linear; }
@keyframes vin{ from{ opacity:0; } to{ opacity:1; } }
/* une ligne qu on vient d ajouter se pose, au lieu de surgir ; le compte de son groupe marque le cran */
.neuf{ animation:pose .3s var(--ease); }
.lab > span.cran{ animation:pose .16s var(--ease); }
@keyframes pose{ from{ opacity:0; transform:translateY(-5px); } to{ opacity:1; transform:none; } }
/* la coche d une répétition se DESSINE quand on la touche (jamais au premier rendu) */
.rps button.just{ animation:chkpop .22s var(--ease); }
@keyframes chkpop{ from{ transform:scale(.9); } to{ transform:scale(1); } }
.rps button.just.on svg path{ animation:trace .26s .03s var(--ease) both; }
@keyframes trace{ from{ stroke-dasharray:22; stroke-dashoffset:22; } to{ stroke-dasharray:22; stroke-dashoffset:0; } }
/* un refus se dit d un geste : la ligne du champ se secoue */
.mal{ animation:secousse .3s ease; }
@keyframes secousse{ 0%, 100%{ transform:translateX(0); } 25%{ transform:translateX(-6px); } 75%{ transform:translateX(6px); } }

/* ── v.71 — les messages d un live : la ligne sous le chrono n existe que s il y en a ; pas de liste vide au-dessus du champ ── */
#lvMsgZone:empty{ display:none; }
.lv-msg .un{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lv-msg .un b{ font-weight:600; margin-right:2px; }
.com-list[hidden] + .com-form{ margin-top:0; }
/* v.82 (audit) : sur le live d un ami, le champ pour lui écrire reste en bas de la fiche, au-dessus du clavier */
.lm-bas{ position:sticky; bottom:0; z-index:3; padding:8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background:var(--bg); max-width:760px; margin:0 auto; }
html.kb .lm-bas{ padding-bottom:calc(8px + var(--kbo, 0px)); }
.lm-bas:empty{ display:none; }
.sheet .card:has(> .lm-bas:not(:empty)){ padding-bottom:0; }      /* la marge du bas de la fiche laisserait voir la liste SOUS le champ collé : c est lui qui la porte */
.lm-bas .com-form{ margin-top:0; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.ntf-m .av{ flex-shrink:0; }

/* ── v.72 — après l audit sur simulateur iOS ────────────────────────────────────────────────────────────────────────────
   Des cibles plus faciles à toucher SANS RIEN DÉPLACER : le champ du nom d une croix faisait 36 px de haut (il en fait 44, des
   marges négatives rendent la place). (« Vu », élargi en v.72, a disparu en v.73 : ouvrir la cloche range tout.) */
.send .row1 input{ min-height:44px; margin:-4px 0; }
/* v.80 — une croix sur UNE ligne : la cotation, le nom, « Flash » ; son détail s ouvre dessous. Toute la ligne se touche (cx-b, posé sous le
   reste) ; seules les bascules reprennent le doigt. */
.send.cx{ display:block; padding:0; }
.cx-l{ position:relative; display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 10px 6px 16px; }
.cx-b{ position:absolute; inset:0; border-radius:0; transition:background .15s; }
.cx-b:active{ background:var(--fill); transform:none; }
.cx-l > :not(.cx-b){ position:relative; pointer-events:none; }
.cx-l > .mini{ pointer-events:auto; flex-wrap:nowrap; flex-shrink:0; }
.cx-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; font-size:var(--t-base); line-height:1.25; overflow-wrap:break-word; }      /* v.111 (audit) : on coupe au mot, plus au milieu d un mot */      /* le nom, et dessous ce qu on sait de la croix (système, style du bloc, essais) */
.cx-t .ess{ font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; }
.cx-l .chev{ transform:rotate(90deg); transition:transform .2s var(--ease); }
.cx.ouv .cx-l .chev{ transform:rotate(-90deg); }
.cx-d{ padding:0 16px 10px; }      /* v.83 : sur toute la largeur — la grille qui corrige la cotation s y ouvre */
.cx-d input{ min-height:44px; padding:0 12px; margin-bottom:6px; background:var(--fill); border-radius:var(--r-s); }      /* un champ court : rempli, comme les autres */
.cx-a{ display:flex; justify-content:space-between; gap:16px; min-height:36px; align-items:center; }
.cx-a > :only-child{ margin-left:auto; }      /* v.114 : « Retirer » seul (un bloc pas enchaîné) reste à droite, comme sous une croix */
.lien.rouge{ color:var(--red-text); }
.send.cx .gr.mot{ width:76px; }
.cx-d .gpick{ padding:6px 0 0; }
/* v.110 — les essais d une croix, ou d un bloc pas enchaîné, dans son détail : « Essais », puis − nombre + (le nombre se tape) */
.cx-e{ display:flex; align-items:center; gap:12px; min-height:44px; margin-bottom:6px; }
.cx-e > span:first-child{ flex:1; font-size:var(--t-base); }
.cx-e .step input{ min-height:44px; margin:0; padding:0; background:none; border-radius:0; }      /* v.111 (audit) : 44 px au doigt, rien ne change à l œil */
.cx-e .step button:disabled{ opacity:.35; }
.cx-gt{ font-size:var(--t-s); color:var(--text2); text-transform:uppercase; letter-spacing:.02em; }
.cx-l > .mini button:not(.on){ background:none; box-shadow:inset 0 0 0 1px var(--sep); color:var(--text2); }      /* v.83 (audit) : éteinte, la bascule est un contour — pleine, elle se lisait comme une étiquette « Flash » */
/* v.116 — un bloc pas enchaîné, dans la même liste que les croix : sa cotation en contour (le langage de la bascule éteinte), et ses
   essais d un appui sur sa ligne (− +) ; ouverte, la ligne les laisse au détail, qui les a aussi (blocsHTML ne les écrit pas). Relecture :
   en haut de la ligne, ils ne descendent pas quand le texte passe à la ligne ; la zone élargie du statut, en tête du détail, ne mord plus
   sur la ligne (un appui pour la refermer changeait le bloc de liste). */
.gr.non{ background:none; box-shadow:inset 0 0 0 1px var(--sep); color:var(--text2); }
.cx-l > .nq{ pointer-events:auto; flex-shrink:0; align-self:flex-start; }
.cx-l > .nq button:disabled{ opacity:.35; }
.cx-d > .seg:first-child button::before{ top:-2px; bottom:-10px; }      /* v.119 (audit n° 15) : 44 px au doigt ; il reste 10 px libres avant le champ du nom */
.zeros .lien:only-child::before{ left:-11px; right:-11px; }      /* v.119 : un prénom court seul (« Léa ») ; à plusieurs, les zones se chevaucheraient */
.lab .lien[data-act="lvEchOuvre"]::before{ left:-6px; right:-6px; }      /* v.119 : « Kilter », 46 px au doigt */
/* v.117 — une séance faite ensemble : un onglet par personne en tête de « Blocs » (un segment ; dès quatre, des pastilles). */
.grp > .pick.qui{ margin:0 0 8px; }
#roBlocs > .grp:first-child, #roCom > .grp:first-child{ margin-top:24px; }      /* relecture : leurs enveloppes ne font pas de leur groupe la tête de la fiche (8 px) */
.lab .liens{ display:flex; gap:16px; }
.box + .lab.sous{ margin-top:16px; }
/* les chiffres marquent le cran comme le compte d un groupe : tuiles d un live, compte d un objectif, bulle de la cloche */
.hstat .n.cran, .obj .h > span.cran, .objm .h > span.cran, .cloche .bulle.cran{ animation:pose .16s var(--ease); }

/* ── v.74 — Panneau, et les échelles au choix ────────────────────────────────────────────────────────────────
   La grille de Panneau : « Sans cotation » sur toute la largeur, une ligne qui dit à quoi servent les cotations, puis la grille
   « Bloc ». Le sélecteur d échelles d une séance, quand il n en reste pas sept : par trois. */
.gpick .gg button.sans, .gpick .gg .cap{ grid-column:1 / -1; }
.gpick .gg .cap{ font-size:var(--t-s); color:var(--text2); text-align:center; }
.seg.rg3.r3 button:nth-child(-n+4){ flex-basis:30%; }

/* ── v.77 — Arkose : six couleurs ─────────────────────────────────────────────────────────────────────────────
   La grille : trois couleurs par ligne, la pastille de la couleur devant son nom. Dans une ligne, le nom de la couleur tient
   dans la pastille de cotation en s écrivant un cran plus petit. */
.gpick .gg.a{ grid-template-columns:repeat(3, 1fr); }
.gpick .gg.a button{ height:52px; display:flex; align-items:center; justify-content:center; gap:6px; }
.gpick .gg.a button .dot{ width:12px; height:12px; }
.gpick .gg.h{ grid-template-columns:repeat(4, 1fr); }      /* v.100 : HopN’Bloc, huit couleurs — quatre par ligne */
.gpick .gg.h button{ gap:4px; font-size:var(--t-m); }
.dot.blanc{ box-shadow:inset 0 0 0 1px var(--sep); }      /* v.100 : le blanc de HopN’Bloc, visible sur une carte blanche */
:root[data-theme="dark"] span.dot.noir{ box-shadow:0 0 0 1.5px rgba(255,255,255,.6); }      /* v.120 (audit n° 20) : le Noir d une cotation reste noir ; en sombre, un liseré clair (après la règle des .dot en sombre) */
.msg-t{ white-space:pre-wrap; overflow-wrap:anywhere; }      /* v.100 (« quand un message est long je ne le vois pas en entier ») : un mot, un message de live, en entier */
.gr.mot{ font-size:var(--t-s); width:76px; gap:5px; } .gr .dot{ flex-shrink:0; }      /* v.80 : la pastille de la couleur d Arkose devant son nom */
.lv-bloc .gr.mot, .lv-eg .gr.mot{ font-size:var(--t-base); width:auto; min-width:68px; padding:0 10px; gap:6px; }

/* ── v.91 — un poids par série, les routines ─────────────────────────────────────────────────────────────────
   Les poids des séries : une case par série sous les champs de l exercice, comme eux (six par ligne). Une routine de la liste :
   la ligne l ajoute à la séance, le crayon l ouvre. */
.cell.rt-l{ padding:0 12px 0 0; }
.rt-a{ flex:1; min-width:0; display:flex; align-items:center; padding:10px 16px; min-height:44px; text-align:left; transition:background .15s; }
.rt-a:active{ background:var(--fill); }
.rt-l .xbtn{ color:var(--text2); }
.rt-l .xbtn:active{ color:var(--text); }
/* v.97 : une alerte dans la sous-ligne d une ligne (Réglages › Administration : erreurs, tâche planifiée) — rouge malgré `.cell .lbl small` */
.cell .lbl small.rouge{ color:var(--red-text); }
/* v.107 (« tant que les croix max sont vides, affiche-les en gris ») : dans la fiche des croix max et des croix du passé, une cotation
   sans croix est grise ; elle reprend sa couleur dès qu elle a un nombre */
#pzBody .cell.vide .gr{ color:var(--text3); }
#pzBody .cell.vide .gr .dot{ opacity:.45; }
/* v.108 : « Mes croix max » — à côté de la cotation, combien l app en a déjà ; − éteint sous ce nombre */
#pzBody .step button:disabled{ opacity:.35; }
/* v.109 : mes croix max — une ligne par système, sa grille dessous ; plus facile que ma plus dure de BlokTrain : éteinte */
.gpick.cm-g .gg button:disabled{ opacity:.35; }
.gpick.cm-g .hint{ padding:0; }
/* v.109 : le classement à niveau égal, flou tant que mes croix max manquent — ni lu, ni touché (inert) */
.cm-flou{ filter:blur(6px); user-select:none; -webkit-user-select:none; }
.cm-flou > :not([hidden]) ~ :not([hidden]){ box-shadow:0 -.5px 0 var(--sep2); }
/* v.111 (audit) : pendant un repos, le chiffre réglable dit ce qu il est */
.lv-repos .step output.vise::after{ content:'visé'; display:block; font-size:var(--t-xs); font-weight:400; color:var(--text2); line-height:1.2; }
/* v.112 : « Bloc déjà fait » dans le détail d une croix — deux bascules, éteintes en contour comme celles d une ligne */
.cx-e .mini{ flex-wrap:nowrap; flex-shrink:0; }
.cx-e .mini button:not(.on){ background:none; box-shadow:inset 0 0 0 1px var(--sep); color:var(--text2); }
/* v.123 — une ligne par série (son choix : « une ligne par série ») : « Série 1 », ses répétitions, son poids, la croix ; au-dessus,
   les deux titres de colonne ; « + Série » dessous. Les champs ont le dessin de ceux de l exercice (fond gris, 44 px, centrés). */
.exo .ser{ display:flex; flex-direction:column; gap:4px; }
.exo .ser-l{ display:flex; align-items:center; gap:8px; }
.exo .ser-n{ flex:0 0 4.4em; font-size:var(--t-s); color:var(--text2); font-variant-numeric:tabular-nums; white-space:nowrap; }
.exo .ser-l > input{ flex:1 1 0; width:0; min-width:0; background:var(--fill); border:none; outline:none; border-radius:var(--r-s); height:44px;
  text-align:center; font-size:max(16px, 1rem); font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
.exo .ser-l > input::placeholder{ color:var(--text3); font-weight:400; }
.exo .ser-h{ min-height:0; }
.exo .ser-h > span:not(.ser-n):not(.xbtn){ flex:1 1 0; min-width:0; font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.03em; text-align:center; }
.exo .ser-h > .xbtn{ height:0; }
.exo .ser-l > .xbtn{ flex:0 0 auto; }
.exo .ser-plus{ align-self:flex-start; display:inline-flex; align-items:center; gap:4px; margin:6px 0 2px; }
.exo .ser-plus svg{ width:16px; height:16px; }
.exo .f5.f3{ grid-template-columns:repeat(3, 1fr); }
@media (max-width:359px){ .exo .ser-n{ flex-basis:2.6em; } .exo .ser-n span{ display:none; } }
/* v.124 — plusieurs types par séance : la rangée « Types » (le type de la séance, puis ceux en plus, qu un appui retire, et « + Type ») ;
   dans les exercices, le nom du type d où viennent les suivants. */
.e-types{ display:flex; flex-wrap:wrap; gap:8px; }
.e-ty{ position:relative; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:999px; background:var(--fill);
  font-size:var(--t-m); font-weight:600; color:var(--text); }
.e-ty .dot{ width:10px; height:10px; border-radius:50%; background:var(--c); flex:0 0 auto; }
.e-ty svg{ width:14px; height:14px; color:var(--text3); }
.e-ty.ajout{ background:none; color:var(--tint-text); padding:0 4px; }
.e-ty.ajout svg{ color:var(--tint-text); width:16px; height:16px; }
button.e-ty::before{ content:''; position:absolute; inset:-4px 0; }
.exo-part{ padding:12px 16px 4px; font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.03em; }

/* v.136 — un lien qui a l air d un bouton (« Relier Strava », « Voir sur Strava ») */
a.bigbtn{ display:flex; align-items:center; justify-content:center; text-decoration:none; }
a.rowbtn{ text-decoration:none; }
.gm-url{ word-break:break-all; }      /* v.137 : l adresse des envois de Garmin */
/* v.139 : tirer vers le bas pour actualiser — le rond de BlokWall (v.165), aux couleurs de BlokTrain */
#ptr{ position:fixed; left:50%; top:calc(10px + env(safe-area-inset-top)); z-index:45; width:36px; height:36px; border-radius:50%;
  background:var(--card); box-shadow:0 2px 10px rgba(0,0,0,.18), 0 0 0 .5px var(--sep); opacity:0; transform:translate(-50%,-80px); pointer-events:none; visibility:hidden;
  display:flex; align-items:center; justify-content:center; }
#ptr i{ width:18px; height:18px; border-radius:50%; border:2.4px solid var(--text3); border-top-color:transparent; }
#ptr.pret i, #ptr.tourne i{ border-color:var(--text); border-top-color:transparent; }
#ptr.tourne i{ animation:ptr .7s linear infinite; }
@keyframes ptr{ to{ transform:rotate(360deg) } }
@media (prefers-reduced-motion: reduce){ #ptr.tourne i{ animation-duration:2s; } }
/* v.143 — le Live d un exercice : deux compteurs, Répétitions et Poids (maquette validée) */
.lv-cpt{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 16px 4px; }
.lv-cpt.un{ grid-template-columns:1fr; }
.lv-cpt > div{ background:var(--fill); border-radius:var(--r-m); padding:10px 8px 10px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.lv-cpt .l{ font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.04em; }
.lv-cpt output{ font-size:var(--t-xxl); font-weight:700; font-variant-numeric:tabular-nums; line-height:1.15; }
.lv-cpt output small{ font-size:var(--t-m); font-weight:600; }
.lv-cpt .b{ display:flex; gap:16px; }
.lv-cpt .b button{ width:44px; height:44px; border-radius:50%; background:var(--card2); color:var(--text); display:flex; align-items:center; justify-content:center; }
.lv-cpt .b button:active{ transform:scale(.88); }
/* v.143 — un exercice : Répétitions / Au temps, puis les réglages en lignes claires (maquette validée) */
.exo .ex-mode{ margin:0; }
.exo .ex-opt{ display:flex; align-items:center; gap:12px; padding-top:8px; border-top:.5px solid var(--sep); }
.exo .ex-opt .lbl{ flex:1; display:flex; flex-direction:column; min-width:0; }
.exo .ex-opt .lbl b{ font-weight:600; }
.exo .ex-opt .lbl small{ font-size:var(--t-xs); color:var(--text2); }
.exo .ex-opt input{ width:84px; flex:none; background:var(--fill); border:none; outline:none; border-radius:var(--r-s); height:44px; text-align:center;
  font-size:max(16px, 1rem); font-weight:600; color:var(--text); font-variant-numeric:tabular-nums; }
.exo .ex-opt input::placeholder{ color:var(--text3); font-weight:400; }
/* v.143 — une séance faite : une ligne par exercice, un seul ouvert */
.ex-ligne + .ex-ligne, .exo + .ex-ligne, .ex-ligne + .exo{ border-top:.5px solid var(--sep); }
.exo.ouvert{ background:var(--card2); }
.exo .ex-replie{ align-self:flex-end; font-size:var(--t-s); min-height:32px; }
.exo .ex-u{ margin-left:-6px; color:var(--text2); font-weight:600; }
.lv-exo[data-act]{ cursor:pointer; }
/* v.144 : l exercice enchaîné — ses étapes dans l éditeur et dans le Live */
.exo .et-tete{ font-size:var(--t-xs); font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.3px; padding-top:12px; }
.exo .et{ display:flex; align-items:center; gap:8px; border-top:.5px solid var(--sep); }
.exo .et-b{ flex:1; display:flex; align-items:center; gap:12px; min-height:52px; padding:6px 0; text-align:left; background:none; border:none; color:inherit; font:inherit; min-width:0; }
.exo .et-b .lbl{ display:flex; flex-direction:column; min-width:0; }
.exo .et-b .lbl b{ font-weight:600; overflow-wrap:anywhere; }
.exo .et-b .lbl small{ font-size:var(--t-xs); color:var(--text2); }
.exo .et-n{ width:24px; height:24px; border-radius:12px; background:var(--fill); display:inline-flex; align-items:center; justify-content:center; font-size:var(--t-xs); font-weight:700; flex:none; }
.exo .et.ouvert{ flex-direction:column; align-items:stretch; gap:8px; padding:8px 0; }
.exo .et-l{ display:flex; align-items:center; gap:12px; }
.exo .et-l input{ flex:1; min-width:0; height:44px; background:var(--fill); border:none; outline:none; border-radius:var(--r-s); padding:0 12px; font:inherit; font-weight:600; color:var(--text); }
.exo .et-ok{ align-self:flex-start; }
.lv-ets{ margin-top:12px; }
.lv-et{ display:flex; align-items:center; gap:12px; min-height:44px; border-top:.5px solid var(--sep); }
.lv-et .n{ flex:1; font-size:var(--t-base); min-width:0; overflow-wrap:anywhere; }
.lv-et .v{ font-size:var(--t-m); color:var(--text2); font-variant-numeric:tabular-nums; }
.lv-etp{ width:24px; height:24px; border-radius:12px; flex:none; display:inline-flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 2px var(--sep); }
.lv-etp svg{ width:14px; height:14px; }
.lv-et.fait{ opacity:.45; } .lv-et.fait .lv-etp{ background:var(--fill); box-shadow:none; }
.lv-et.ici .lv-etp{ background:var(--tint); box-shadow:none; } .lv-et.ici .n{ font-weight:700; }
.ro-ex .ro-et{ display:block; }      /* v.144 : une étape par ligne */

/* v.153 — les réactions : la barre d émojis d un appui long (au-dessus du message), et les émojis posés sous le message */
[data-rc]{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; transition:background-color .15s var(--ease); }
[data-rc] img{ -webkit-user-drag:none; }
[data-rc]:focus:not(:focus-visible){ outline:none; }
[data-rc].rc-on{ background:var(--fill2); }
.reac-bar{ position:fixed; z-index:210; display:flex; gap:2px; padding:4px; background:var(--card); border-radius:999px;
  box-shadow:var(--shadow), 0 0 0 .5px var(--sep2); animation:pop .2s var(--ease);
  scroll-margin:env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }      /* lus par reacOuvre : l encoche, la barre d accueil */
.reac-bar button{ width:min(44px, calc((100vw - 40px) / 7)); height:44px; border-radius:50%; font-size:var(--t-xl); line-height:1; display:grid; place-items:center;
  transition:transform .15s var(--spring); }
.reac-bar button:active{ transform:scale(.88); }
.reac-bar button.on{ background:color-mix(in srgb, var(--tint) 22%, var(--fill)); }
.reacs{ display:flex; flex-wrap:wrap; gap:4px; margin:4px 0 2px; }
.reacs > span{ display:inline-flex; align-items:center; gap:3px; padding:2px 7px; border-radius:999px; background:var(--fill2); font-size:var(--t-m); line-height:1.3; }
.reacs > span.moi{ background:color-mix(in srgb, var(--tint) 22%, var(--fill)); }
.reacs b{ font-size:var(--t-s); font-weight:600; color:var(--text2); }
/* v.154 : le « + » (ou l émoji choisi par lui), et la feuille de tous les émojis */
.reac-bar .rc-plus{ color:var(--text2); }
.reac-bar .rc-plus:not(.on){ background:var(--fill); }
.reac-bar .rc-plus svg{ width:20px; height:20px; }
.rc-grille{ display:grid; grid-template-columns:repeat(auto-fill, minmax(48px, 1fr)); padding:6px; }
.rc-grille button{ height:48px; border-radius:var(--r-m); font-size:var(--t-xl); line-height:1; display:grid; place-items:center; transition:transform .15s var(--spring); }
.rc-grille button:active{ transform:scale(.88); }
.rc-grille button.on{ background:color-mix(in srgb, var(--tint) 22%, var(--fill)); }
@media (prefers-reduced-motion:reduce){ .reac-bar{ animation:none; } .reac-bar button, .rc-grille button{ transition:none; } }

/* v.155 — les photos des blocs : vignettes carrées (dans la carte du bloc en cours, plus grandes dans une fiche), la photo en grand */
.bph-l{ flex-direction:column; align-items:stretch; gap:8px; }
.bph{ display:flex; flex-wrap:wrap; gap:8px; }
.bph-v{ position:relative; }
.bph-img{ display:block; width:64px; height:64px; border-radius:var(--r-s); overflow:hidden; background:var(--fill); }
.bph.grand .bph-img{ width:88px; height:88px; }
.bph-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.bph-x{ position:absolute; top:-10px; right:-10px; background:var(--card); box-shadow:0 0 0 .5px var(--sep2); }
.bph-add{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; min-height:44px; }
.bph-add svg{ width:20px; height:20px; }
.bph-plein img{ display:block; width:100%; height:auto; max-height:calc(var(--vvh, 100dvh) - 200px); object-fit:contain; border-radius:var(--r-m); background:var(--fill); }
/* v.156 — la vignette de sa photo sur la ligne d un bloc (ma fiche, chez un ami) : touchée, la photo en grand */
.cx-l > .cx-ph{ pointer-events:auto; flex-shrink:0; }
.cx-ph{ display:flex; gap:4px; }
.bph-mini{ width:44px; height:44px; border-radius:var(--r-xs); overflow:hidden; background:var(--fill); flex-shrink:0; }
.bph-mini img{ width:100%; height:100%; object-fit:cover; display:block; }
