/* ══════════════════════════════════════════════════════════════════
 * L'ONGLET SUIVI — 27/09/2026 — coloris or · bleu · pierre (28/09 : thèmes Spartiate · Glace · Pierre ; braise retiré)
 * ══════════════════════════════════════════════════════════════════
 * Les jetons --sv-* portent tout l'écran. <html data-coloris="…"> les
 * change ; « or » est celui du logo et le défaut. Les deux autres
 * repeignent aussi l'or de l'app entière (--tr-or…), pour qu'on ne
 * passe pas d'un onglet bleu à une barre dorée.
 * ══════════════════════════════════════════════════════════════════ */

:root, [data-coloris="or"] {
  --sv-a: #F5A62B;
  --sv-a-vif: #FFC766;
  --sv-a-bas: #E08A17;
  --sv-a-rgb: 245, 166, 43;
  --sv-b: #7C5CFF;
  --sv-b-rgb: 124, 92, 255;
  --sv-delta: #45D483;
  --sv-sur-a: #1A1105;
  --sv-fond: #0B0B0C;
  --sv-carte: rgba(24, 22, 19, .92);
  --sv-carte-2: rgba(34, 30, 25, .9);
  --sv-bord: rgba(var(--sv-a-rgb), .16);
  --sv-texte: #F6F2EC;
  --sv-texte-2: #B4ADA3;
  --sv-texte-3: #9A9389;   /* 29/09 : #7F786E faisait 4,1:1 sur la carte, sous le seuil de 4,5 */
  --sv-lueur: 0 0 22px rgba(var(--sv-a-rgb), .28);
  --sv-decor: radial-gradient(120% 50% at 100% 0%, rgba(var(--sv-a-rgb), .10), transparent 60%);
}
[data-coloris="braise"] {
  --sv-a: #FF8A1C;
  --sv-a-vif: #FFB54D;
  --sv-a-bas: #F0520E;
  --sv-a-rgb: 255, 138, 28;
  --sv-b: #8B5CF6;
  --sv-b-rgb: 139, 92, 246;
  --sv-delta: #FF9A3D;
  --sv-sur-a: #1F0800;
  --sv-fond: #0A0503;
  --sv-carte: rgba(30, 14, 6, .84);
  --sv-carte-2: rgba(46, 20, 8, .84);
  --sv-bord: rgba(var(--sv-a-rgb), .34);
  --sv-texte: #FFF4EA;
  --sv-texte-2: #D2B6A0;
  --sv-texte-3: #95735B;
  --sv-lueur: 0 0 26px rgba(var(--sv-a-rgb), .45);
  --sv-decor:
    radial-gradient(60% 28% at 0% 8%, rgba(255, 110, 20, .30), transparent 70%),
    radial-gradient(50% 30% at 100% 40%, rgba(255, 90, 10, .22), transparent 70%),
    radial-gradient(70% 30% at 0% 80%, rgba(255, 120, 30, .20), transparent 70%),
    radial-gradient(60% 20% at 100% 100%, rgba(255, 80, 0, .25), transparent 70%);
}
[data-coloris="bleu"] {
  --sv-a: #1FC8F2;
  --sv-a-vif: #6FE3FF;
  --sv-a-bas: #2A7BFF;
  --sv-a-rgb: 31, 200, 242;
  --sv-b: #8B5CF6;
  --sv-b-rgb: 139, 92, 246;
  --sv-delta: #3FE0B0;
  --sv-sur-a: #03121D;
  --sv-fond: #050A15;
  --sv-carte: rgba(11, 20, 38, .9);
  --sv-carte-2: rgba(16, 28, 52, .9);
  --sv-bord: rgba(var(--sv-a-rgb), .20);
  --sv-texte: #EEF5FF;
  --sv-texte-2: #9DB0CC;
  --sv-texte-3: #8595AE;   /* 29/09 : #62728D faisait 3,7:1 */
  --sv-lueur: 0 0 24px rgba(var(--sv-a-rgb), .35);
  --sv-decor: radial-gradient(120% 50% at 50% 0%, rgba(42, 123, 255, .16), transparent 60%);
}

/* 29/09 · Sparte (la photo) : l'or du logo, comme Spartiate. */
[data-coloris="sparte"] { --sv-a: #F5A62B; --sv-a-vif: #FFC766; --sv-a-bas: #E08A17; --sv-a-rgb: 245, 166, 43; }
/* 28/09 · Pierre (thème des maquettes) : l'argent de la pierre. Glace reprend « bleu » (theme-tr.css l'ajuste). */
[data-coloris="pierre"] {
  --sv-a: #CACCD0; --sv-a-vif: #EDEEF0; --sv-a-bas: #8E9197; --sv-a-rgb: 202, 204, 208;
  --sv-b: #9DB8D6; --sv-b-rgb: 157, 184, 214; --sv-delta: #45D483; --sv-sur-a: #16181B;
  --sv-fond: #1A1B1E; --sv-carte: rgba(64, 66, 70, .7); --sv-carte-2: rgba(78, 80, 85, .68);
  --sv-bord: rgba(255, 255, 255, .2); --sv-texte: #F4F4F5; --sv-texte-2: #CFD1D4; --sv-texte-3: #BEC1C5;   /* 29/09 : #8E9196 faisait 3,2:1 sur la carte grise */
  --sv-lueur: 0 0 20px rgba(255, 255, 255, .16); --sv-decor: none;
}

/* L'app entière suit le coloris choisi (l'or reste celui du skin). */
html[data-coloris="braise"], html[data-coloris="braise"][data-section] {
  --tr-or: #FF8A1C; --tr-or-vif: #FFB54D; --tr-or-cta: #FF8A1C; --tr-or-bas: #F0520E; --tr-bronze: #7A2A06;
  --tr-or-doux: rgba(255, 138, 28, .16); --tr-choisi: #FF9F43; --tr-choisi-vif: #FFBF6E; --tr-choisi-doux: rgba(255, 159, 67, .18);
}
html[data-coloris="bleu"], html[data-coloris="bleu"][data-section] {
  --tr-or: #1FC8F2; --tr-or-vif: #6FE3FF; --tr-or-cta: #1FC8F2; --tr-or-bas: #2A7BFF; --tr-bronze: #0C3A7A;
  --tr-or-doux: rgba(31, 200, 242, .14); --tr-choisi: #4FD6F7; --tr-choisi-vif: #8FE9FF; --tr-choisi-doux: rgba(79, 214, 247, .16);
  --tr-fond: #050A15; --tr-carte: #0B1426; --tr-carte-2: #101C34; --tr-carte-3: #15233F;
}
html[data-coloris="braise"] { --tr-fond: #0A0503; --tr-carte: #1C0E07; --tr-carte-2: #28130A; --tr-carte-3: #33190C; }

/* ── L'écran ───────────────────────────────────────────────────────── */
.sv {
  --sv-rond: 18px;
  color: var(--sv-texte);
  font-family: var(--tr-police, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif);
  padding: 4px 0 24px;
  position: relative;
  isolation: isolate;
}
.sv::before {
  content: ""; position: absolute; inset: -40px -16px -20px; z-index: -1;
  background: var(--sv-decor); pointer-events: none;
}
.sv * { box-sizing: border-box; }
.sv button { font: inherit; color: inherit; }

.sv-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.sv-titre { font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--sv-texte); }
[data-coloris="braise"] .sv-titre { background-image: linear-gradient(var(--sv-a), var(--sv-a)); background-size: 30px 3px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 5px; }
.sv-sous { margin: 4px 0 0; font-size: 16px; color: var(--sv-texte-2); }
.sv-rond-reglages {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--sv-texte); cursor: pointer;
}

/* Segments : la pastille pleine sur le choisi */
.sv-segments {
  display: flex; gap: 2px; padding: 4px; margin: 0 0 12px;
  background: var(--sv-carte); border: 1px solid var(--sv-bord); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.sv-seg {
  flex: 1; min-height: 40px; padding: 0 6px; border: 0; background: transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--sv-texte); cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.sv-seg + .sv-seg { position: relative; }
.sv-seg[aria-selected="true"] {
  background: linear-gradient(180deg, var(--sv-a-vif), var(--sv-a) 45%, var(--sv-a-bas));
  color: var(--sv-sur-a); font-weight: 600;
  box-shadow: 0 0 18px rgba(var(--sv-a-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sv-segments-1 .sv-seg { min-height: 46px; font-size: 16px; }
.sv-segments-2 .sv-seg[aria-selected="true"], .sv-segments-petits .sv-seg[aria-selected="true"] { box-shadow: 0 0 12px rgba(var(--sv-a-rgb), .35); }
.sv-segments-petits { background: rgba(0, 0, 0, .25); }
.sv-segments-petits .sv-seg { min-height: 34px; font-size: 13.5px; }
.sv-filtres { overflow-x: auto; scrollbar-width: none; }
.sv-filtres::-webkit-scrollbar { display: none; }
.sv-filtres .sv-seg { flex: 1 0 auto; padding: 0 11px; }

/* Cartes en verre, arête éclairée */
.sv-carte {
  display: block; width: 100%; text-align: left; position: relative;
  background: linear-gradient(160deg, rgba(var(--sv-a-rgb), .07), transparent 38%), var(--sv-carte);
  border: 1px solid var(--sv-bord); border-radius: var(--sv-rond);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px -18px rgba(0, 0, 0, .9);
  padding: 14px 14px 10px; margin: 0 0 12px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
[data-coloris="braise"] .sv-carte { box-shadow: inset 0 1px 0 rgba(255, 190, 120, .12), 0 0 0 1px rgba(255, 120, 30, .06), 0 14px 30px -16px rgba(255, 90, 10, .35); }
button.sv-carte { cursor: pointer; }
.sv-carte-tete { display: flex; align-items: flex-start; gap: 12px; }
.sv-ico, .sv-rappel-ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--sv-sur-a);
  background: radial-gradient(circle at 35% 30%, var(--sv-a-vif), var(--sv-a) 55%, var(--sv-a-bas));
  box-shadow: 0 0 16px rgba(var(--sv-a-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.sv-carte-mots { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sv-carte-titre { font-size: 16px; color: var(--sv-texte); }
.sv-carte-mots small { color: var(--sv-texte-2); font-size: 13px; }
.sv-valeur { font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.sv-ecart { text-align: right; display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; }
.sv-ecart small { color: var(--sv-texte-2); font-size: 12.5px; }
.sv-delta { color: var(--sv-delta); font-weight: 500; font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.sv-accent { color: var(--sv-a); }

/* Courbes */
.sv-graphe { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.sv-grille { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.sv-grille-v { stroke-dasharray: 2 4; }
.sv-axe { fill: var(--sv-texte-2); font-size: 11px; font-family: inherit; }
.sv-trait { filter: drop-shadow(0 0 4px rgba(var(--sv-a-rgb), .55)); }
.sv-bulle { fill: rgba(20, 18, 16, .9); stroke: rgba(var(--sv-a-rgb), .45); }
.sv-bulle-mot { fill: var(--sv-texte); font-size: 12px; font-weight: 600; font-family: inherit; }
.sv-vide {
  display: block; width: 100%; margin: 12px 0 4px; padding: 16px 12px; border-radius: 12px;
  border: 1px dashed rgba(var(--sv-a-rgb), .45); background: rgba(var(--sv-a-rgb), .05);
  color: var(--sv-a); font-size: 15px; font-weight: 500; cursor: pointer;
}

/* Objectif : poids actuel · rond · objectif */
.sv-objectif {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 16px 14px;
  background: radial-gradient(90% 120% at 50% 50%, rgba(var(--sv-a-rgb), .12), transparent 70%), var(--sv-carte);
}
.sv-obj-cote { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-obj-droite { text-align: right; align-items: flex-end; }
.sv-obj-mot { font-size: 14px; color: var(--sv-texte); }
.sv-obj-grand { font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sv-obj-cible { color: var(--sv-texte); display: inline-grid; }
.sv-obj-petit { font-size: 15px; }
.sv-obj-cote small { color: var(--sv-texte-2); font-size: 12.5px; }
.sv-anneau { position: relative; width: 112px; height: 112px; }
.sv-anneau svg { width: 100%; height: 100%; overflow: visible; }
.sv-anneau-fond { fill: rgba(0, 0, 0, .35); stroke: rgba(255, 255, 255, .08); stroke-width: 9; }
.sv-anneau-plein { fill: none; stroke: var(--sv-a); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--sv-a-rgb), .8)); transition: stroke-dasharray .6s ease; }
.sv-anneau-mot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sv-anneau-mot b { font-size: 26px; font-weight: 700; }
.sv-anneau-mot small { font-size: 12.5px; color: var(--sv-texte-2); }

/* Le rappel (trophée) et les lignes « geste » */
.sv-rappel { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.sv-rappel-ico { background: rgba(var(--sv-a-rgb), .12); color: var(--sv-a); box-shadow: inset 0 0 0 1px rgba(var(--sv-a-rgb), .35); }
.sv-rappel[data-rappel="voie"] .sv-rappel-ico { background: transparent; box-shadow: none; }
.sv-rappel[data-rappel="voie"] .sv-rappel-ico svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(var(--sv-a-rgb), .7)); }
.sv-rappel-mots { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-rappel-mots b { font-size: 15.5px; font-weight: 600; }
.sv-rappel[data-rappel="voie"] .sv-rappel-mots b, .sv-rappel[data-rappel="atteint"] .sv-rappel-mots b { color: var(--sv-a); }
.sv-rappel[data-rappel="atteint"] .sv-rappel-ico { background: transparent; box-shadow: none; }
.sv-rappel-mots small { font-size: 13px; color: var(--sv-texte-2); line-height: 1.35; }
.sv-fleche { flex: none; color: var(--sv-texte); display: inline-grid; }

/* ── Mensurations ─────────────────────────────────────────────────── */
.sv-corps { display: grid; grid-template-columns: minmax(0, 1fr) 146px minmax(0, 1fr); gap: 4px; align-items: stretch; margin: 2px -4px 6px; }
.sv-colonne { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 2px 0; }
.sv-zone {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; text-align: left; cursor: pointer;
  padding: 8px 8px 9px; border-radius: 14px; min-height: 70px;
  background: var(--sv-carte); border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
  transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .12s ease;
  opacity: .6;
}
.sv-zone.allumee { opacity: 1; border-color: rgba(var(--sv-a-rgb), .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 14px -4px rgba(var(--sv-a-rgb), .6); }
.sv-zone.soulevee { position: relative; z-index: 5; opacity: 1; transition: none; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .9), 0 0 0 1.5px var(--sv-a), 0 0 22px rgba(var(--sv-a-rgb), .5); }
.sv-corps.en-glisse .sv-zone:not(.soulevee) { transition: transform .15s ease; }
.sv-zone-haut { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sv-zone-haut small { font-size: 11.5px; line-height: 1.15; color: var(--sv-texte-2); min-width: 0; }
.sv-zone-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--sv-a); background: rgba(var(--sv-a-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--sv-a-rgb), .3); }
.sv-zone-ico svg { width: 18px; height: 18px; }
.sv-zone.allumee .sv-zone-ico { color: var(--sv-sur-a); background: radial-gradient(circle at 35% 30%, var(--sv-a-vif), var(--sv-a) 60%, var(--sv-a-bas)); box-shadow: 0 0 10px rgba(var(--sv-a-rgb), .5); }
.sv-zone-ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 4px; }
.sv-zone-ligne b { font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.sv-zone-ligne .sv-delta { font-size: 12.5px; white-space: nowrap; }
.sv-astuce { margin: 2px 0 12px; text-align: center; font-size: 12.5px; color: var(--sv-texte-3); }

.sv-perso { position: relative; align-self: center; width: 146px; aspect-ratio: 340 / 693; }
.sv-perso-corps {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sv-a-vif), var(--sv-a) 45%, var(--sv-a-bas));
  -webkit-mask: url("./photos/corps-tr.webp") center / contain no-repeat;
  mask: url("./photos/corps-tr.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(var(--sv-a-rgb), .75)) drop-shadow(0 0 16px rgba(var(--sv-a-rgb), .35));
}
.sv-perso[data-sexe="f"] .sv-perso-corps { -webkit-mask-image: url("./photos/corps-tr-f.webp"); mask-image: url("./photos/corps-tr-f.webp"); }
.sv-silhouette { width: 200px; margin: -4px auto 14px; }
.sv-perso-traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sv-anneau-halo { fill: none; stroke: var(--sv-a-vif); stroke-width: 3.2; opacity: .45; filter: blur(1.6px); }
.sv-anneau-trait { fill: none; stroke: #fff; stroke-width: .9; filter: drop-shadow(0 0 1.5px var(--sv-a-vif)) drop-shadow(0 0 3px var(--sv-a)); animation: sv-allume .45s ease both; }
[data-coloris="bleu"] .sv-anneau-trait { stroke: #D9F7FF; }
@keyframes sv-allume { from { opacity: 0; } to { opacity: 1; } }

.sv-grille-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.sv-grille-zones .sv-zone { opacity: 1; }

.sv-h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; color: var(--sv-texte); }
.sv-histo .sv-segments { margin-bottom: 6px; }
.sv-histo-liste { list-style: none; margin: 0; padding: 0; }
.sv-histo-liste > li { border-top: 1px solid rgba(255, 255, 255, .05); }
.sv-histo-liste > li:first-child { border-top: 0; }
button.sv-histo-ligne { width: 100%; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; min-height: 44px; font: inherit; }
.sv-histo-ligne { display: grid; grid-template-columns: 28px minmax(0, 1fr) 72px auto 64px; align-items: center; gap: 8px; padding: 8px 0; }
.sv-histo-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--sv-sur-a); background: radial-gradient(circle at 35% 30%, var(--sv-a-vif), var(--sv-a) 60%, var(--sv-a-bas)); }
.sv-histo-ico svg { width: 18px; height: 18px; }
.sv-histo-mot { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-trace { width: 72px; height: 20px; color: var(--sv-a); display: block; }
.sv-trace-vide { border-bottom: 1px dashed rgba(255, 255, 255, .12); height: 10px; }
.sv-histo-liste > li:nth-child(2) .sv-trace { color: #4ADE80; }
.sv-histo-liste > li:nth-child(3) .sv-trace { color: #FACC15; }
.sv-histo-liste > li:nth-child(4) .sv-trace { color: var(--sv-b); }
.sv-histo-liste > li:nth-child(5) .sv-trace { color: #F87171; }
[data-coloris="or"] .sv-histo-ligne .sv-trace, [data-coloris="braise"] .sv-histo-ligne .sv-trace { color: var(--sv-a); }
.sv-histo-val { font-size: 14.5px; font-weight: 500; text-align: right; white-space: nowrap; }
.sv-histo-ecart { font-size: 13px; color: var(--sv-delta); text-align: right; white-space: nowrap; display: inline-flex; align-items: center; justify-content: flex-end; gap: 1px; }
.sv-rien { color: var(--sv-texte-2); font-size: 14px; line-height: 1.45; margin: 6px 0 8px; }

/* ── Photos ───────────────────────────────────────────────────────── */
.sv-transfo-tete { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 12px; background: none; border: 0; text-align: left; cursor: pointer; }
.sv-transfo-tete b { font-size: 17px; font-weight: 600; }
.sv-compte { font-size: 14px; color: var(--sv-texte-2); white-space: nowrap; }
.sv-bande { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sv-vignette { margin: 0; min-width: 0; }
.sv-vignette-img { display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.sv-vignette-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-vignette.choisie .sv-vignette-img { border: 2px solid var(--sv-a); box-shadow: 0 0 14px rgba(var(--sv-a-rgb), .55); }
.sv-vignette figcaption { display: flex; flex-direction: column; margin-top: 6px; }
.sv-vignette figcaption b { font-size: 13px; font-weight: 500; }
.sv-vignette figcaption small { font-size: 11.5px; color: var(--sv-texte-2); }
.sv-ajouter-photo {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px; text-align: center;
  border: 1px dashed rgba(var(--sv-a-rgb), .5);
  background: radial-gradient(80% 120% at 50% 0%, rgba(var(--sv-a-rgb), .14), transparent 70%), var(--sv-carte);
}
.sv-ajouter-ico { color: var(--sv-a); filter: drop-shadow(0 0 6px rgba(var(--sv-a-rgb), .7)); display: inline-grid; }
.sv-ajouter-photo b { font-size: 15.5px; font-weight: 600; }
.sv-ajouter-photo small { font-size: 13px; color: var(--sv-texte-2); }
.sv-galerie { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 5); gap: 7px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sv-galerie::-webkit-scrollbar { display: none; }
.sv-galerie > * { scroll-snap-align: start; }
.sv-galerie .sv-vignette-img { border-radius: 10px; }
.sv-galerie-ajout { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--sv-texte); cursor: pointer; }
.sv-galerie-ajout small { font-size: 11.5px; color: var(--sv-texte-2); }
.sv-conseil { padding: 12px 14px; }
.sv-conseil > summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.sv-conseil > summary::-webkit-details-marker { display: none; }
.sv-conseil[open] .sv-fleche { transform: rotate(90deg); }
.sv-conseil .sv-rappel-ico { color: var(--sv-sur-a); background: radial-gradient(circle at 35% 30%, var(--sv-a-vif), var(--sv-a) 55%, var(--sv-a-bas)); box-shadow: 0 0 14px rgba(var(--sv-a-rgb), .45); }
.sv-conseil-liste { margin: 12px 0 2px; padding-left: 1.2em; color: var(--sv-texte-2); font-size: 14px; line-height: 1.55; }
.sv-conseil-liste b { color: var(--sv-texte); font-weight: 600; }

/* Avant / après : la coupe glisse */
.sv-comparer { position: relative; margin-top: 8px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.sv-comparer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-comp-apres { position: absolute; inset: 0; }
.sv-comp-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--coupe)) 0 0); }
.sv-comp-ligne { position: absolute; top: 0; bottom: 0; left: var(--coupe); width: 2px; margin-left: -1px; background: var(--sv-a); box-shadow: 0 0 10px var(--sv-a); pointer-events: none; }
.sv-comp-poignee { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sv-a); color: var(--sv-sur-a); box-shadow: 0 0 14px rgba(var(--sv-a-rgb), .8); }
.sv-comp-date { position: absolute; bottom: 10px; display: flex; flex-direction: column; font-size: 13px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); pointer-events: none; }
.sv-comp-date small { font-size: 11.5px; opacity: .85; }
.sv-comp-g { left: 12px; }
.sv-comp-d { right: 12px; text-align: right; }
.sv-comp-curseur { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ── Les feuilles ─────────────────────────────────────────────────── */
.sv-feuille { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sv-feuille-voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sv-feuille-boite {
  position: relative; width: min(100%, 520px); max-height: 88vh; overflow-y: auto;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  background: var(--sv-fond); color: var(--sv-texte); border-radius: 22px 22px 0 0;
  border: 1px solid var(--sv-bord); border-bottom: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6);
  animation: sv-monte .24s ease both;
}
@keyframes sv-monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sv-feuille-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--sv-texte-2); font-size: 28px; cursor: pointer; }
.sv-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.sv-champ { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 6px; padding: 8px 10px; border-radius: 12px; background: var(--sv-carte); border: 1px solid rgba(255, 255, 255, .07); }
.sv-champ span { grid-column: 1 / -1; font-size: 12.5px; color: var(--sv-texte-2); }
.sv-champ input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--sv-texte); font: 600 19px/1.2 inherit; padding: 2px 0; outline: none; }
.sv-champ small { font-size: 13px; color: var(--sv-texte-2); }
.sv-champ:focus-within { border-color: var(--sv-a); box-shadow: 0 0 0 3px rgba(var(--sv-a-rgb), .2); }
.sv-feuille [data-feuille="objectif"] .sv-champ { margin: 12px 0 16px; }
.sv-cta {
  display: block; width: 100%; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer; margin-top: 8px;
  font: 600 16px/1 inherit; color: var(--sv-sur-a);
  background: linear-gradient(180deg, var(--sv-a-vif), var(--sv-a) 45%, var(--sv-a-bas));
  box-shadow: 0 0 18px rgba(var(--sv-a-rgb), .4);
}
.sv-cta-sobre { background: var(--sv-carte-2); color: var(--sv-texte); box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
.sv-erreur { color: #FF8A80; font-size: 13.5px; margin: 0 0 6px; }
.sv-angles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.sv-angle { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; background: var(--sv-carte); border: 1px solid var(--sv-bord); color: var(--sv-a); }
.sv-angle-ico { display: inline-grid; }
.sv-angle-geste { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--sv-sur-a); background: linear-gradient(180deg, var(--sv-a-vif), var(--sv-a) 45%, var(--sv-a-bas)); }
.sv-angle-geste-sobre { color: var(--sv-texte); background: var(--sv-carte-2); border: 1px solid rgba(255, 255, 255, .1); }
.sv-angle b { color: var(--sv-texte); font-weight: 600; }

/* Le choix du coloris (Réglages) */
.sv-coloris { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }   /* 4 thèmes : 2 × 2, pas 3 + 1 seul */
.sv-coloris-choix { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; cursor: pointer; background: var(--tr-carte, #1B1C1F); border: 1.5px solid rgba(255, 255, 255, .08); color: var(--tr-texte, #F5F5F7); font: inherit; }
.sv-coloris-choix[aria-checked="true"] { border-color: currentColor; }
.sv-coloris-pastille { width: 42px; height: 42px; border-radius: 50%; }
.sv-coloris-choix small { font-size: 12px; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .sv *, .sv-feuille * { animation: none !important; transition: none !important; }
}
@media (max-width: 370px) {
  .sv-corps { grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); }
  .sv-perso { width: 118px; }
  .sv-obj-grand { font-size: 23px; }
  .sv-anneau { width: 96px; height: 96px; }
}

/* ── Progression, disposition de la maquette bleue (27/09) ─────────── */
.sv-objectif { overflow: hidden; min-height: 150px; }
.sv-objectif > :not(.sv-montagnes) { position: relative; z-index: 1; }
.sv-montagnes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sv-objectif .sv-anneau-fond { fill: rgba(0, 0, 0, .55); }
.sv-titre-seul { font-size: 19px; font-weight: 600; }
.sv-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px; }
.sv-tuile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  padding: 12px 4px 10px; margin: 0; border-radius: 14px;
}
.sv-tuile-ico { color: var(--sv-a); display: inline-grid; filter: drop-shadow(0 0 6px rgba(var(--sv-a-rgb), .6)); margin-bottom: 2px; }
.sv-tuile:nth-child(3) .sv-tuile-ico { color: var(--sv-a-vif); }
.sv-tuile-mot { font-size: 11.5px; line-height: 1.2; color: var(--sv-texte); min-height: 2.4em; display: flex; align-items: center; }
.sv-tuile-val { font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.sv-tuile-ecart { font-size: 12.5px; white-space: nowrap; }
.sv-tuile-ecart small { color: var(--sv-texte-3); font-weight: 400; }
@media (max-width: 370px) { .sv-tuile-val { font-size: 15px; } .sv-tuile-mot { font-size: 10.5px; } }

/* L'onglet latéral « Exercices » recouvrait les cartes du Suivi : il reste sur les autres écrans. */
/* 29/09 : plus caché dans le Suivi — le catalogue partout (petite icône, skin-tr.css). */

.sv-photo-grande { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #000; margin: 6px 0 10px; }

/* Le Suivi est sombre dans tous les thèmes (les maquettes le sont) : en thème clair, le titre
   devenait sombre sur fond sombre — illisible (trouvé le 27/09). */
html[data-page="suivi"] body, html[data-page="progres"] body { background: var(--sv-fond) !important; }
html .tr-suivi .sv, html .tr-suivi .sv .sv-titre, html .tr-suivi .sv .sv-h2, html .tr-suivi .sv b { color: var(--sv-texte); }
html[data-theme] .tr-suivi .sv .sv-titre, html[data-theme] .tr-suivi .sv .sv-h2 { color: var(--sv-texte) !important; }
html[data-page="suivi"] .tr-suivi { color: var(--sv-texte); }

/* ── Étape 18 : la carte Séances, l'agenda de la pesée, les tests repliés ── */
.sv-unite { font-size: 14px; font-weight: 400; color: var(--sv-texte-2); }
.sv-seances-actifs { font-size: 20px; font-weight: 600; color: var(--sv-texte); }
.sv-seances-barres { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin: 12px 2px 8px; }
.sv-seances-barres span { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.sv-seances-barres i { display: block; width: 100%; height: max(3px, var(--h)); border-radius: 6px; background: linear-gradient(180deg, rgba(var(--sv-a-rgb), .75), rgba(var(--sv-a-rgb), .35)); }
.sv-seances-barres .maintenant i { background: linear-gradient(180deg, var(--sv-a-vif), var(--sv-a)); box-shadow: 0 0 10px rgba(var(--sv-a-rgb), .6); }
.sv-seances-pied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sv-seances-pied small { color: var(--sv-texte-2); font-size: 12.5px; }
.sv-seances-pied .sv-fleche { margin-left: auto; }
.sv-seances-record b { color: var(--sv-texte); font-weight: 600; }
.sv-rappel-bloc { padding: 0; }
.sv-rappel-bloc > .sv-rappel { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.sv-agenda {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 14px; cursor: pointer;
  background: rgba(var(--sv-a-rgb), .07); border: 0; border-top: 1px solid rgba(255, 255, 255, .06);
  border-radius: 0 0 var(--sv-rond) var(--sv-rond); color: var(--sv-a); font-size: 14px; font-weight: 500; text-align: left;
}
.sv-plus { margin: 4px 0 12px; }
.sv-plus > summary { cursor: pointer; color: var(--sv-texte); font-weight: 600; font-size: 14.5px; padding: 6px 0; }
.sv-plus > summary small { color: var(--sv-texte-2); font-weight: 400; }

/* ── Étape 19 : tendance, projection, période ── */
.sv-pied { margin: 4px 2px 2px; font-size: 13px; color: var(--sv-texte-2); }
.sv-pied b { color: var(--sv-texte); font-weight: 600; }
.sv-obj-projection { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--sv-texte); text-align: center; position: relative; z-index: 1; }
.sv-periode-prog { width: min(100%, 300px); margin: 0 auto 12px; }
.sv-histo .sv-segments-petits .sv-seg { font-size: 12.5px; padding: 0 4px; }
.sv-sante-ligne {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: -2px 0 12px; padding: 8px 12px; cursor: pointer;
  background: rgba(var(--sv-a-rgb), .06); border: 1px solid var(--sv-bord); border-radius: 12px; color: var(--sv-texte-2); font-size: 13px; text-align: left;
}
.sv-sante-point { width: 8px; height: 8px; border-radius: 50%; background: #45D483; box-shadow: 0 0 8px #45D483; flex: none; }
.sv-sante-lire { margin-left: auto; color: var(--sv-a); font-weight: 600; white-space: nowrap; }

/* ── Étape 23 : courbes à explorer, mesures à moi ── */
.sv-graphe { touch-action: pan-y; cursor: crosshair; outline: none; -webkit-user-select: none; user-select: none; }
.sv-graphe:focus-visible { outline: 2px solid var(--sv-a); outline-offset: 4px; border-radius: 8px; }
.sv-curseur-ligne { stroke: var(--sv-texte); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.sv-curseur-point { fill: var(--sv-a-vif); stroke: var(--sv-fond); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(var(--sv-a-rgb), .9)); }
.sv-curseur-bulle rect { fill: rgba(12, 12, 12, .92); stroke: rgba(var(--sv-a-rgb), .6); }
.sv-curseur-val { fill: var(--sv-texte); font-size: 12px; font-weight: 700; font-family: inherit; }
.sv-curseur-date { fill: var(--sv-texte-2); font-size: 10.5px; font-family: inherit; }
.sv-curseur-dit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sv-nouvelle-corps { display: grid; grid-template-columns: 1fr 120px; gap: 8px; margin-top: 8px; }
.sv-nouvelle-corps .sv-champ-large { grid-column: 1; }
.sv-nouvelle-corps .sv-cta, .sv-nouvelle-corps .sv-erreur, .sv-nouvelle-corps .sv-perso-liste, .sv-nouvelle-corps .sv-rien { grid-column: 1 / -1; }
.sv-champ select { width: 100%; border: 0; background: transparent; color: var(--sv-texte); font: 600 16px/1.2 inherit; padding: 2px 0; }
.sv-champ input[name="__nom"] { font-size: 16px; }
.sv-perso-liste { list-style: none; margin: 4px 0 0; padding: 0; }
.sv-perso-liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-top: 1px solid rgba(255, 255, 255, .06); }
.sv-perso-liste small { color: var(--sv-texte-2); }
.sv-perso-retirer { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: var(--sv-texte); cursor: pointer; }
.sv-cmp-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
/* 01/10 (étape 52) — Enregistrer juste sous le poids, et collé en bas de la feuille quand on déplie le reste. */
.sv-feuille-corps .sv-cta-colle { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 2; margin: 12px 0; }
.sv-toutes { margin-top: 6px; }

/* 02/10 nuit (Alexandre : « autant de pesées qu'on veut, date ET heure, intuitif, cohérent avec le graphique ») */
.sv-champ-quand { margin: 10px 0 12px; grid-template-columns: auto 1fr; }
.sv-champ-quand input, .sv-pesee-ligne input[type="datetime-local"] { min-height: 44px; font: inherit; color: inherit; background: transparent; border: 0; color-scheme: dark; }
.sv-pesees-lignes { display: grid; gap: 8px; margin: 12px 0 8px; }
.sv-pesee-ligne { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--sv-carte); border: 1px solid rgba(255, 255, 255, .07); }
.sv-pesee-ligne .sv-champ-kg { padding: 4px 8px; }
.sv-pesee-ligne .sv-champ-kg input { width: 100%; min-height: 40px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-h3 { margin: 20px 0 6px; font-size: 16px; }
.sv-pesees-liste { list-style: none; margin: 0; padding: 0; }
.sv-pesees-liste li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid rgba(255, 255, 255, .06); }
.sv-pesees-liste li b { font-variant-numeric: tabular-nums; }
.sv-pesees-liste small { display: block; opacity: .7; font-size: 12px; }
.sv-pesee-courbe { opacity: .55; }
.sv-sur-courbe .sv-pesee-courbe { opacity: 1; color: var(--tr-or, #E0AE55); }
.sv-pesees-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 14px; }
@media (max-width: 360px) { .sv-pesees-actions { grid-template-columns: 1fr; } .sv-pesees-liste li { grid-template-columns: 1fr auto auto; } .sv-pesees-liste .sv-pesee-courbe { display: none; } }
