/* ══════════════════════════════════════════════════════════════════
 * SKIN TR PERFORMANCE — 21/09/2026, posé PAR-DESSUS la base
 * ══════════════════════════════════════════════════════════════════
 * Les 5 maquettes jointes = vérité pixel. Fond #121212, cartes gris
 * foncé, verre léger, rouge pour le chrome et les actions, citron vert
 * pour ce qui est choisi. Police système Apple (SF Pro) quand elle
 * existe. Pas d'or, pas de HUD de jeu, pas de score, pas de plaque
 * blanche. Chargé en DERNIER : il gagne sur motion.css et futur2030.css
 * sans les modifier.
 * ══════════════════════════════════════════════════════════════════ */

:root {
  --tr-or: var(--th-a2, #D4A04A);
  --tr-or-vif: var(--th-a1, #F2C46B);
  --tr-or-cta: var(--th-a2, #E0AE55);
  --tr-or-bas: var(--th-a3, #A8702A);
  --tr-bronze: var(--th-a4, #6B4318);
  --tr-or-doux: rgba(var(--th-a2-rgb, 212, 160, 74), .14);
  --tr-choisi: var(--th-a1, #EBC370);
  --tr-choisi-vif: var(--th-a1, #F7D58A);
  --tr-choisi-doux: rgba(var(--th-a1-rgb, 235, 195, 112), .16);
  --tr-fond: #121212;
  --tr-fond-barre: #111315;
  --tr-carte: #1B1C1F;
  --tr-carte-2: #232428;
  --tr-carte-3: #2A2C31;
  --tr-ligne: rgba(255, 255, 255, .075);
  --tr-ligne-forte: rgba(255, 255, 255, .12);
  --tr-texte: #F5F5F7;
  --tr-texte-2: #A3A6AD;
  --tr-texte-3: #868991;   /* 01/10 (étape 61) : #6F727A faisait 4,13:1 sur noir — sous le seuil de 4,5 */
  --tr-police: 'Barlow', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --tr-rond: 16px;
  --tr-rond-cta: 14px;
}

/* ── Les jetons de la base, repeints (thème sombre — le défaut) ────── */
html:not([data-theme="clair"]):not([data-theme="light"]):not([data-theme="crystal-light"]):not([data-theme="crystal-glass-light"]):not([data-theme="liquid-glass-light"]),
html:not([data-theme="clair"]):not([data-theme="light"]):not([data-theme="crystal-light"]):not([data-theme="crystal-glass-light"]):not([data-theme="liquid-glass-light"])[data-section] {
  color-scheme: dark;
  --fond: var(--tr-fond);
  --fond-1: var(--tr-fond);
  --carte: var(--tr-carte);
  --carte-haute: var(--tr-carte-2);
  --fond-carte: var(--tr-carte);
  --glass-bg: var(--tr-carte);
  --texte: var(--tr-texte);
  --texte-doux: var(--tr-texte-2);
  --texte-muet: var(--tr-texte-3);
  --trait: var(--tr-ligne-forte);
  --trait-fin: var(--tr-ligne);
  --bordure: var(--tr-ligne-forte);
  --voile-heros: linear-gradient(to top, var(--tr-fond) 0%, rgba(18,18,18,.78) 22%, rgba(18,18,18,.25) 55%, rgba(18,18,18,0) 75%);
}
/* Un seul rouge pour le chrome, dans toutes les sections (plus de teintes par onglet, plus d'or). */
html, html[data-section] {
  --accent: var(--tr-or);
  --accent-clair: var(--tr-or-vif);
  --accent-doux: var(--tr-or-doux);
  --sur-accent: #FFFFFF;
  --or: var(--tr-or);
  --or-clair: var(--tr-or-vif);
  --or-doux: var(--tr-or-doux);
  --sur-or: #FFFFFF;
  --marque: var(--tr-or);
  --marque-clair: var(--tr-or-vif);
  --sec: var(--tr-or);
  --sec-clair: var(--tr-or-vif);
  --sec-doux: var(--tr-or-doux);
  --heat: var(--tr-or);
  --heat-clair: var(--tr-or-vif);
  --glow-heat: transparent;
  --ambre: var(--tr-or);
  --titre: var(--tr-police);
  --corps: var(--tr-police);
}
html body {
  font-family: var(--tr-police);
  -webkit-font-smoothing: antialiased;
}
html:not([data-theme="clair"]):not([data-theme="light"]) body { background: var(--tr-fond) !important; color: var(--tr-texte); }

/* Boutons : rouge plat, sans halo. Le secondaire est une carte sombre. */
html[data-section] .bouton, .bouton {
  background: linear-gradient(180deg, var(--tr-or-cta), var(--tr-or-bas));
  border: 0;
  color: #fff;
  box-shadow: none;
  font-family: var(--tr-police);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--tr-rond-cta);
}
html[data-section] .bouton.sobre, .bouton.sobre, html[data-section="nutrition"] .bouton.sobre {
  background: var(--tr-carte-2);
  color: var(--tr-texte);
  border: 1px solid var(--tr-ligne-forte);
}
html[data-registre="angulaire"] .bouton, html[data-registre="angulaire"] h1, html[data-registre="angulaire"] h2 { text-transform: none; letter-spacing: -.01em; }
html[data-section] .barre button[aria-current="page"] { text-shadow: none; box-shadow: none; }

/* L'en-tête des photos (logo doré + nom en or) laisse la place au chrome commun. */
.heros .heros-entete { display: none !important; }

/* ══ LE CHROME COMMUN : « TR PERFORMANCE » en haut de chaque écran ══ */
.tr-chrome {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 11px;
  background: rgba(22, 23, 26, .92);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--tr-ligne);
}
.tr-logo {
  font: italic 900 22px/1 var(--tr-police);
  letter-spacing: -.01em; color: #fff; white-space: nowrap;
  text-decoration: none;
}
.tr-logo b { color: var(--tr-or); font-weight: 900; margin-right: .18em; letter-spacing: -.04em; }
html.tr-sans-chrome .tr-chrome, html.ob-ouvert .tr-chrome { display: none; }
/* Onglet droit : catalogue exercices. Les cinq de la barre ne bougent pas. */
html .btn-livre-bord {
  display: flex !important;
  min-width: 44px;
  min-height: 44px;
  z-index: 40;
  background: rgba(17, 19, 21, .94) !important;
  color: #A0A3A8 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-right: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
html .btn-livre-bord .btn-livre-ico { display: none; }
html .btn-livre-bord[aria-current="page"],
html .btn-livre-bord.is-actif {
  color: var(--tr-or) !important;
  border-color: var(--tr-or) !important;
  background: rgba(17, 19, 21, .96) !important;
}
/* 29/09 (Alexandre) — « le Livre partout, petite icône à droite, au milieu » :
 * une icône seule, collée au bord droit, à mi-hauteur, sur TOUS les écrans
 * (plein écran et Suivi compris). Cible 44 px, dessin 20 px. */
html .btn-livre-bord {
  top: var(--livre-y, 50%) !important; bottom: auto !important; transform: translateY(-50%) !important;
  width: 42px !important; min-width: 42px !important; height: 60px !important; min-height: 60px !important;
  border: 1.5px solid var(--tr-or) !important; border-right: 0 !important; box-shadow: 0 4px 18px rgba(0,0,0,.55), 0 0 12px rgba(212,175,55,.25) !important;
  padding: 0 !important; gap: 0 !important; border-radius: 12px 0 0 12px !important;
  align-items: center !important; justify-content: center !important;
  color: var(--tr-or) !important; opacity: 1;
}
html .btn-livre-bord:active { transform: translateY(-50%) scale(.94) !important; }
html .btn-livre-bord .btn-livre-lab { display: none !important; }
html .btn-livre-bord .btn-livre-svg { display: block; }
#livre-volant { position: fixed; inset: 0; z-index: 1000; /* au-dessus de la barre d onglets (200) */ background: #141210;
  /* 29/09 : dans un iframe, l'iPhone donne env(safe-area-inset-top) = 0 → le Livre passait SOUS l'heure et ses
   * boutons retour étaient cachés. Le cadre commence donc sous la barre d'état. */
  padding-top: env(safe-area-inset-top); box-sizing: border-box; }
#livre-volant[hidden] { display: none; }
/* Premier chargement (données du Livre sur réseau mobile) : jamais un écran noir muet.
 * La page du Livre a son propre fond : elle recouvre ce mot dès qu'elle est prête. */
#livre-volant::before { content: "Ouverture du Livre…"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--tr-or, #D4AF37); font: 600 15px/1 system-ui; letter-spacing: .08em; animation: livre-attente 1.4s ease-in-out infinite alternate; }
@keyframes livre-attente { from { opacity: .35; } to { opacity: 1; } }
#livre-volant iframe { position: relative; background: transparent; }
#livre-volant iframe { width: 100%; height: 100%; border: 0; display: block; }
.livre-volant-fermer { position: absolute; top: calc(env(safe-area-inset-top) + 8px); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(12,11,9,.85); color: #F7F1E6; font: 700 17px system-ui; cursor: pointer; }
html.livre-volant-ouvert .btn-livre-bord { display: none !important; }

/* ══ LA BARRE D'ONGLETS ═════════════════════════════════════════════ */
html #barre.barre {
  background: rgba(17, 19, 21, .96) !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--tr-ligne) !important;
  box-shadow: none !important;
  padding: 0 4px env(safe-area-inset-bottom) !important;
  gap: 0 !important;
}
html #barre.barre button {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 2px 8px !important; min-height: 62px;
  background: none !important; border: 0 !important; border-radius: 0 !important;
  color: #A0A3A8 !important;
  font: 500 12px/1.1 var(--tr-police) !important; letter-spacing: 0 !important; text-transform: none !important;
  box-shadow: none !important; text-shadow: none !important;
}
html #barre.barre button .pictogramme { display: grid; place-items: center; height: 26px; font-size: 0; }
html #barre.barre button .tr-ico { width: 26px; height: 26px; }
html #barre.barre button[aria-current="page"] { color: var(--tr-or) !important; }
html #barre.barre button::after { display: none !important; }
html #barre.barre button[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--tr-or);
}

/* ══ LES PAGES DU SKIN ══════════════════════════════════════════════ */
.tr-page { padding: 14px 0 24px; color: var(--tr-texte); }
.tr-carte {
  background: linear-gradient(180deg, rgba(40, 42, 47, .72), rgba(28, 29, 32, .82));
  border: 1px solid var(--tr-ligne);
  border-radius: var(--tr-rond);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tr-titre-ligne { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; }
.tr-titre-section {
  position: relative; display: inline-block; margin: 0; padding: 0 0 9px;
  font: 700 23px/1.1 var(--tr-police) !important; letter-spacing: .01em !important; text-transform: uppercase !important;
  color: #fff; border: 0 !important; background: none !important;
}
.tr-titre-section::after { content: ""; position: absolute; left: 0; right: -18px; bottom: 0; height: 3px; border-radius: 2px; background: var(--tr-or); }
.tr-grand-titre { margin: 6px 0 18px; font: 700 34px/1.1 var(--tr-police) !important; letter-spacing: -.02em !important; text-transform: none !important; color: #fff; border: 0 !important; }
.tr-pastille-jour {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border: 1.5px solid var(--tr-or); border-radius: 999px;
  color: var(--tr-or); font: 700 13px/1 var(--tr-police); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  background: rgba(var(--th-a2-rgb, 212, 160, 74), .06);
}
.tr-pastille-jour i { width: 8px; height: 8px; border-radius: 50%; background: var(--tr-or); }

.tr-cta {
  display: block; width: 100%; min-height: 54px; margin: 16px 0 0; padding: 0 16px;
  border: 0; border-radius: var(--tr-rond-cta);
  background: linear-gradient(180deg, var(--tr-or-cta), var(--tr-or-bas));
  color: #fff; font: 600 19px/1 var(--tr-police); cursor: pointer;
  box-shadow: 0 8px 22px rgba(var(--th-a3-rgb, 168, 112, 42), .22);
}
.tr-cta:active { transform: scale(.985); }
.tr-cta.tr-cta-sombre { background: linear-gradient(180deg, var(--th-a4, #7A4E1C), var(--th-a5, #4E3112)); box-shadow: none; }
.tr-cta-contour {
  display: block; width: 100%; min-height: 54px; margin: 18px 0 0;
  border: 1.5px solid var(--tr-choisi); border-radius: var(--tr-rond-cta);
  background: rgba(22, 23, 25, .9); color: #fff; font: 600 18px/1 var(--tr-police); cursor: pointer;
}
.tr-cta-contour:active { background: var(--tr-choisi-doux); }
.tr-note-appareil { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--tr-texte-2); font-size: 14px; }
.tr-note { margin: 12px 0 0; text-align: center; color: var(--tr-texte-2); font-size: 15px; }

/* ── Suivi : « Comment tu te sens » ── */
.tr-ressenti { padding: 18px 16px 16px; }
.tr-ressenti h2 { margin: 0 0 14px; padding: 0 !important; border: 0 !important; font: 600 22px/1.2 var(--tr-police) !important; letter-spacing: -.01em !important; text-transform: none !important; color: #fff; }
.tr-choix {
  display: flex; align-items: center; gap: 14px; width: 100%;
  margin: 0 0 10px; padding: 12px 14px; min-height: 60px;
  border: 1px solid var(--tr-ligne); border-radius: 12px;
  background: rgba(38, 40, 44, .75); color: var(--tr-texte-2);
  font: 500 17px/1.2 var(--tr-police); text-align: left; cursor: pointer;
}
.tr-choix:last-child { margin-bottom: 0; }
.tr-choix .tr-visage { width: 36px; height: 36px; flex: 0 0 36px; color: #9B9DA2; }
.tr-choix span.tr-choix-mot { flex: 1; }
.tr-radio { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--tr-choisi); display: grid; place-items: center; }
.tr-choix[aria-checked="true"] { color: #fff; border-color: rgba(var(--th-a1-rgb, 235, 195, 112), .35); }
.tr-choix[aria-checked="true"] .tr-visage { color: var(--tr-choisi); }
.tr-choix[aria-checked="true"] .tr-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tr-choisi); }

/* ── Séance ── */
.tr-seance-carte { padding: 22px 16px 16px; text-align: center; }
.tr-surtitre { margin: 0; color: var(--tr-texte-2); font: 600 13px/1 var(--tr-police); letter-spacing: .16em; text-transform: uppercase; }
.tr-seance-nom { margin: 10px 0 4px; font: 700 44px/1.05 var(--tr-police) !important; letter-spacing: -.02em !important; text-transform: none !important; color: #fff; border: 0 !important; }
.tr-seance-duree { margin: 0 0 14px; color: var(--tr-or); font: 600 20px/1 var(--tr-police); }
.tr-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tr-ligne); text-align: left; }
.tr-liste li + li { border-top: 1px solid var(--tr-ligne); }
.tr-ligne {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 2px;
  background: none; border: 0; color: #fff; font: 600 17px/1.25 var(--tr-police); text-align: left; cursor: pointer; text-decoration: none;
}
.tr-ligne .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-ligne .tr-ligne-mot small { display: block; color: var(--tr-texte-2); font-weight: 400; font-size: 13px; margin-top: 2px; }
.tr-ligne .tr-chevron { color: var(--tr-texte-2); display: grid; }
.tr-rond-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; background: #26282C; border: 1px solid var(--tr-ligne); color: #E8E8EA; }
.tr-rond-ico .tr-ico { width: 24px; height: 24px; }

/* ── Combat ── */
.tr-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #1A1B1E; border: 1px solid var(--tr-ligne); }
.tr-segment { min-height: 46px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--tr-texte-2); font: 500 16px/1 var(--tr-police); white-space: nowrap; cursor: pointer; }
.tr-segment[aria-selected="true"] { background: #2E3034; color: #fff; }
.tr-vide { margin-top: 22px; padding: 56px 20px 60px; text-align: center; }
.tr-vide .tr-ico { color: #8E9096; }
.tr-page h2, .tr-page h3 { border-bottom: 0; }
.tr-vide h3 { margin: 18px 0 10px; font: 600 21px/1.2 var(--tr-police) !important; text-transform: none !important; letter-spacing: 0 !important; color: #fff; }
.tr-vide p { margin: 0; color: var(--tr-texte-2); font-size: 16px; line-height: 1.45; }
.tr-combat-carte { margin-top: 22px; padding: 18px 16px 16px; }

/* ── Nutrition : le visuel maître ── */
.tr-nutri { position: relative; margin: 0 -16px; padding: 0 16px 20px; }
.tr-nutri-fond {
  position: absolute; inset: 0 0 auto 0; height: 300px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,18,18,.55), rgba(18,18,18,.9) 62%, var(--tr-fond)), url('./photos/nutri-fond.jpg') right -30px top -10px / 58% auto no-repeat;
  opacity: .55;
}
.tr-nutri > *:not(.tr-nutri-fond) { position: relative; z-index: 1; }
.tr-nutri-logo { text-align: center; padding: calc(18px + env(safe-area-inset-top)) 0 0; }
.tr-nutri-logo .tr-tr { display: block; font: italic 900 68px/.9 var(--tr-police); letter-spacing: -.06em; color: #fff; }
.tr-nutri-logo .tr-tr em { color: var(--tr-or); font-style: italic; }
.tr-nutri-logo .tr-perf { display: block; margin-top: 4px; font: italic 800 22px/1 var(--tr-police); letter-spacing: .28em; color: #fff; padding-left: .28em; }
.tr-nutri-logo .tr-nut { display: block; margin-top: 4px; font: italic 700 12px/1 var(--tr-police); letter-spacing: .5em; color: var(--tr-or); padding-left: .5em; }
.tr-mois { margin: 14px 0 12px; text-align: center; font: 600 25px/1 var(--tr-police); color: #fff; }
.tr-cal { padding: 12px 10px 10px; }
.tr-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.tr-cal-tete { color: var(--tr-texte-2); font: 400 14px/1 var(--tr-police); padding-bottom: 8px; }
.tr-cal-jour { height: 34px; display: grid; place-items: center; border: 0; background: none; color: #fff; font: 400 18px/1 var(--tr-police); cursor: pointer; position: relative; }
.tr-cal-jour span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.tr-cal-jour.aujourdhui span { background: var(--tr-or); font-weight: 600; }
.tr-cal-jour.note::after { content: ""; position: absolute; bottom: -1px; width: 4px; height: 4px; border-radius: 50%; background: var(--tr-choisi); }
.tr-cal-jour.aujourdhui.note::after { display: none; }
.tr-cal-jour:disabled { visibility: hidden; }
.tr-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.tr-photo {
  position: relative; height: 104px; border-radius: 12px; overflow: hidden; border: 1px solid var(--tr-ligne);
  background: #202124 center / cover no-repeat; cursor: pointer; padding: 0; text-decoration: none;
}
.tr-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78)); }
.tr-photo b { position: absolute; left: 3px; right: 3px; bottom: 8px; z-index: 1; color: #fff; font: 700 9.6px/1.1 var(--tr-police); letter-spacing: -.005em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.tr-modes { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; justify-items: center; margin: 16px 0 12px; }
.tr-mode {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 35%, #25272B, #16171A 70%); border: 1px solid var(--tr-ligne-forte);
  color: #fff; font: 700 15px/1 var(--tr-police); letter-spacing: .02em; text-transform: uppercase; cursor: pointer;
}
.tr-mode .tr-ico { width: 26px; height: 26px; }
.tr-mode small { font: 400 12px/1 var(--tr-police); letter-spacing: 0; text-transform: none; color: var(--tr-texte-2); }
.tr-mode.choisi {
  width: 108px; height: 108px; border: 0; color: var(--tr-choisi-vif); font-size: 23px;
  background: radial-gradient(circle at 50% 40%, #221A0E, #120F0A 70%);
  box-shadow: inset 0 0 0 6px var(--tr-choisi), 0 0 22px rgba(var(--th-a1-rgb, 235, 195, 112), .22);
}
.tr-mode.choisi .tr-ico { display: none; }
.tr-macros { padding: 12px 14px; }
.tr-macro { display: grid; grid-template-columns: 78px 1.35fr 62px 1fr 38px; align-items: center; gap: 8px; min-height: 32px; font: 400 15px/1 var(--tr-police); color: #fff; }
.tr-macro .tr-val { color: var(--tr-texte-2); font-size: 14px; white-space: nowrap; }
.tr-macro .tr-pct { color: var(--tr-texte-2); text-align: right; font-size: 14px; }
.tr-barre { height: 14px; border-radius: 7px; background: #2A2B2E; overflow: hidden; }
.tr-barre i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--th-a3, #C99343), var(--tr-choisi-vif)); }
.tr-barre.grise i { background: #4A4C50; }
/* 04/10 — UNE barre par macro (validé par Alexandre, appel 08h47) : piste = repère de Tonio, remplissage or = noté du jour, valeur « noté / objectif » à droite, plus de colonne entre deux barres. Ajout : les règles .tr-macro / .tr-barre ci-dessus restent (la semaine et l'eau les utilisent). */
.tr-macro.tr-macro-un { grid-template-columns: 78px minmax(0, 1fr) auto; min-height: 40px; }
.tr-macro-un .tr-barre-un { position: relative; height: 16px; border-radius: 8px; min-width: 0; }
.tr-macro-un .tr-barre-un i { border-radius: 8px; }
.tr-macro-un .tr-barre-un.avec-repere::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: var(--tr-or-vif); opacity: .75; }
.tr-macro-un .tr-val-un { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1.05; font-variant-numeric: tabular-nums; text-align: right; }
.tr-macro-un .tr-val-un b { font-weight: 400; font-size: 14px; color: var(--tr-texte); }
.tr-macro-un .tr-val-un small { font-size: 12px; color: var(--tr-texte-2); white-space: nowrap; }
.tr-macros .tr-barres-legende { margin: 6px 0 8px; font-size: 12px; line-height: 1.3; color: var(--tr-texte-2); }
/* 04/10 — OBJECTIF « INTELLIGENT » (eau + macros) : origine visible, eau avec repère, détail des sources. Ajouts seulement. */
.tr-macros .tr-repere-origine { margin: 2px 0 8px; font-size: 12px; line-height: 1.35; color: var(--tr-texte-2); }
.tr-macros .tr-repere-origine.tr-repere-eau { margin: 0 0 8px; }
.tr-macro.tr-macro-eau.tr-eau-obj { grid-template-columns: 78px minmax(0, 1fr) 44px 44px; grid-template-areas: "mot barre moins plus" ". val val val"; row-gap: 0; align-items: center; }
.tr-macro-eau.tr-eau-obj > span:first-child { grid-area: mot; }
.tr-macro-eau.tr-eau-obj .tr-barre { grid-area: barre; position: relative; height: 16px; border-radius: 8px; min-width: 0; overflow: hidden; }
.tr-macro-eau.tr-eau-obj .tr-barre.avec-repere::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: var(--tr-or-vif); opacity: .75; }
.tr-macro-eau.tr-eau-obj .tr-eau-val { grid-area: val; text-align: right; min-width: 0; font-size: 14px; color: var(--tr-texte); margin: -4px 0 4px; }
.tr-macro-eau.tr-eau-obj .tr-eau-moins { grid-area: moins; }
.tr-macro-eau.tr-eau-obj .tr-eau-plus { grid-area: plus; }
.tr-macros .tr-repere-sources { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--tr-texte-2); }
.tr-macros .tr-repere-sources summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--tr-texte-2); text-decoration: underline; }
.tr-macros .tr-repere-sources p { margin: 4px 0; }
.tr-macros .tr-repere-sources ul { margin: 4px 0 0; padding-left: 16px; }
.tr-macros-vide { margin: 8px 0 2px; color: var(--tr-texte-2); font-size: 14px; line-height: 1.4; }
.tr-plan { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 14px; }
.tr-plan .tr-plan-ico { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; display: grid; place-items: center; background: #26282C; color: var(--tr-or); border: 1px solid var(--tr-ligne); }
.tr-plan .tr-plan-mot { flex: 1; min-width: 0; }
.tr-plan .tr-plan-mot b { display: block; font: 600 19px/1.2 var(--tr-police); color: #fff; }
.tr-plan .tr-plan-mot small { display: block; margin-top: 4px; color: var(--tr-texte-2); font-size: 14px; }
.tr-plan .tr-plan-btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--tr-or); color: #fff; font: 600 16px/1 var(--tr-police); cursor: pointer; }
html[data-page="nutrition"] .tr-chrome { display: none; }

/* ── Profil ── */
.tr-metier { display: flex; align-items: center; gap: 18px; padding: 16px 18px; width: 100%; text-align: left; cursor: pointer; color: #fff; }
.tr-metier .tr-metier-ico { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; background: #15161A; color: #F2F2F2; border: 1px solid var(--tr-ligne); }
.tr-metier b { font: 600 26px/1.15 var(--tr-police); }
.tr-profil-liste { margin-top: 14px; padding: 2px 14px; }
.tr-profil-liste .tr-liste { border-top: 0; }
.tr-profil-liste .tr-ligne { font-weight: 500; font-size: 18px; min-height: 58px; }
.tr-profil-liste .tr-ligne .tr-ico { width: 28px; height: 28px; color: #E8E8EA; flex: 0 0 28px; }
.tr-profil-liste .tr-ligne .tr-chevron .tr-ico { width: 20px; height: 20px; color: var(--tr-texte-2); }

/* ── La base, sous le skin : ce qui reste visible prend les mêmes teintes ── */
html:not([data-theme="clair"]) .bloc, html:not([data-theme="clair"]) .carte:not(.tr-photo) {
  background: var(--tr-carte);
  border-color: var(--tr-ligne);
}
html:not([data-theme="clair"]) .pli > summary { color: var(--tr-texte); }

/* ── Thème clair : mêmes rouge et citron vert, fond clair ── */
html[data-theme="clair"], html[data-theme="light"] {
  --tr-carte: #FFFFFF; --tr-carte-2: #F2F2F4; --tr-carte-3: #E9E9EC;
  --tr-texte: #121212; --tr-texte-2: #5B5E66; --tr-texte-3: #8A8D94;
  --tr-ligne: rgba(0,0,0,.08); --tr-ligne-forte: rgba(0,0,0,.14);
}
html[data-theme="clair"] .tr-chrome { background: rgba(250,250,251,.92); }
html[data-theme="clair"] .tr-logo, html[data-theme="clair"] .tr-page, html[data-theme="clair"] .tr-titre-section,
html[data-theme="clair"] .tr-grand-titre, html[data-theme="clair"] .tr-seance-nom, html[data-theme="clair"] .tr-ligne,
html[data-theme="clair"] .tr-ressenti h2, html[data-theme="clair"] .tr-metier { color: #121212; }
html[data-theme="clair"] .tr-carte { background: #fff; }

@media (prefers-reduced-motion: reduce) { .tr-cta:active { transform: none; } }

/* Les plis (dépliants) : cartes grises, comme le reste — plus de teinte rouge de fond. */
html:not([data-theme="clair"]) details.pli {
  background: var(--tr-carte) !important;
  border: 1px solid var(--tr-ligne) !important;
  box-shadow: none !important;
}
.tr-metier .tr-metier-ico .tr-ico { width: 40px; height: 40px; }

/* ══ LE MOUVEMENT — la spécification de la planche (mouvement-tr.js) ══
 * 220–280 ms, ease-out, sans rebond, jamais au-delà de 300 ms, jamais de
 * scale au-delà de 1. Une seule manière d'animer : CSS + Web Animations. */
html #app.route-enter > *:first-child, html #app.tr-enter > *:first-child, html #app.arrive > *:first-child { animation: none !important; }
html #app.tr-anim-droite { animation: tr-in-droite 240ms cubic-bezier(.2,.7,.2,1) both; }
html #app.tr-anim-gauche { animation: tr-in-gauche 240ms cubic-bezier(.2,.7,.2,1) both; }
html #app.tr-anim-pousse { animation: tr-in-pousse 260ms cubic-bezier(.2,.7,.2,1) both; }
html #app.tr-anim-pop    { animation: tr-in-pop 260ms cubic-bezier(.2,.7,.2,1) both; }
html #app.tr-anim-fondu  { animation: tr-in-fondu 220ms ease-out both; }
@keyframes tr-in-droite { from { opacity: 0; transform: translate3d(14px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tr-in-gauche { from { opacity: 0; transform: translate3d(-14px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tr-in-pousse { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tr-in-pop    { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tr-in-fondu  { from { opacity: 0; } to { opacity: 1; } }
/* L'onglet actif : l'icône et le mot passent au rouge en 180 ms. La barre, elle, ne bouge pas. */
html #barre.barre button { transition: color 180ms ease-out !important; }
html.scrolled-down #barre.barre { transform: none !important; }
/* Un bouton qui s'enfonce (80 ms) ; une ligne touchée s'éclaire (60 ms). */
.tr-cta, .tr-cta-contour, .tr-plan-btn { transition: transform 80ms ease-out; }
.tr-cta:active, .tr-cta-contour:active, .tr-plan-btn:active { transform: scale(.98); }
.tr-ligne { transition: background-color 60ms ease-out; border-radius: 10px; }
.tr-ligne:active { background-color: rgba(255, 255, 255, .06); }
/* Rien d'autre ne bouge : ni onde au toucher, ni lueur, ni inclinaison. */
html .tap-ripple, html .celeb, html .celeb-burst { display: none !important; }
html .tr-tilt { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html #app[class*="tr-anim-"] { animation: none !important; }
}

/* ── Suivi, planche : le micro, la séance prête, les lignes qui se referment ── */
.tr-ressenti-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tr-ressenti-tete h2 { margin: 0 !important; }
.tr-micro { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--tr-texte-2); background: #26282C; border: 1px solid var(--tr-ligne); text-decoration: none; }
.tr-micro:active { color: var(--tr-or); }
.tr-seance-prete { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 14px; }
.tr-seance-prete .tr-rond-ico { width: 42px; height: 42px; flex: 0 0 42px; color: var(--tr-or); }
.tr-seance-prete .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-seance-prete .tr-ligne-mot b { display: block; font: 600 16px/1.2 var(--tr-police); color: #fff; }
.tr-seance-prete .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 13px; }
.tr-cta.tr-cta-petit { width: auto; min-height: 42px; margin: 0; padding: 0 14px; font-size: 15px; border-radius: 10px; box-shadow: none; white-space: nowrap; }
.tr-suivi .tr-choix { transition: max-height 200ms ease-out, opacity 200ms ease-out, margin 200ms ease-out, padding 200ms ease-out; max-height: 80px; overflow: hidden; }
.tr-suivi.tr-part .tr-choix { max-height: 0; opacity: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.tr-suivi.tr-part { opacity: 0; transition: opacity 200ms ease-out; }
/* Le glissement entre onglets : pas de ressort */
html #app.couche-spring-in, html #app.couche-spring-out { animation: none !important; }

/* ══ LA SÉANCE EN PLEIN ÉCRAN (planche : minuteur, exercice) ════════ */
html.tr-plein-ecran #barre, html.tr-plein-ecran .tr-chrome { display: none !important; }
html.tr-plein-ecran #app { padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
html.tr-plein-ecran body { background: #0B0B0C !important; }
.tr-run { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; color: #fff; }
.tr-run-tete { position: relative; display: flex; align-items: center; justify-content: center; padding: calc(12px + env(safe-area-inset-top)) 0 10px; }
.tr-run-tete .tr-logo { font-size: 17px; }
.tr-run-quitter { position: absolute; right: 0; top: calc(6px + env(safe-area-inset-top)); width: 40px; height: 40px; border: 0; border-radius: 50%; background: #1F2023; color: var(--tr-texte-2); font-size: 16px; cursor: pointer; }
.tr-vue-minuteur { display: flex; flex-direction: column; align-items: center; padding: 10px 0 0; background: none !important; border: 0 !important; box-shadow: none !important; }
.tr-run-nom { margin: 12px 0 18px; color: var(--tr-texte-2) !important; font: 500 17px/1.2 var(--tr-police) !important; text-align: center; }
.tr-cadran { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto; }
.tr-cadran .anneau { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-cadran .anneau .creux { fill: none; stroke: #2A2112; stroke-width: 9; }
.tr-cadran .anneau .plein { fill: none; stroke: var(--tr-choisi); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 10px rgba(var(--th-a1-rgb, 235, 195, 112), .28)); }
.tr-cadran .dedans-cadran { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tr-chiffre { font: 700 clamp(56px, 18vw, 76px)/1 var(--tr-police) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #fff !important; animation: tr-apparait 240ms cubic-bezier(.2,.7,.2,1) both; }
.tr-etat { margin-top: 8px; color: var(--tr-choisi) !important; font: 500 20px/1 var(--tr-police) !important; text-transform: none !important; letter-spacing: 0 !important; }
.chrono.repos .tr-etat { color: var(--tr-choisi) !important; }
.tr-run-apres { margin: 16px 0 0; color: var(--tr-texte-2); font-size: 15px; text-align: center; min-height: 1.3em; }
@keyframes tr-apparait { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.tr-run-bas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: auto; padding: 22px 0 6px; }
.tr-rond-rouge { width: 74px; height: 74px; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--th-a2, #E0AE55), var(--th-a3, #A8702A)); color: #fff; box-shadow: 0 10px 26px rgba(var(--th-a3-rgb, 168, 112, 42), .32); cursor: pointer; }
.tr-rond-rouge .tr-ico { width: 30px; height: 30px; }
.tr-run-petit { margin: 0; color: var(--tr-texte-3); font-size: 13px; text-align: center; }
.tr-run-liens { display: flex; gap: 24px; justify-content: center; }
.tr-lien { background: none; border: 0; padding: 8px 4px; color: var(--tr-texte-2); font: 500 15px/1 var(--tr-police); cursor: pointer; text-decoration: none; }
.tr-lien:active { color: #fff; }
.tr-oeil-go { align-self: center; margin-top: 10px; }
/* La vue exercice n'existe que pour ce qui se fait « à son rythme ». */
.tr-vue-exercice { display: none; padding: 6px 0 0; }
.tr-run[data-vue="exercice"] .tr-vue-exercice { display: block; }
.tr-run[data-vue="exercice"] .tr-vue-minuteur { display: none; }
.tr-exo-nom { margin: 4px 0 6px; font: 700 34px/1.1 var(--tr-police) !important; letter-spacing: -.02em !important; text-transform: none !important; color: #fff; border: 0 !important; animation: tr-du-haut 240ms cubic-bezier(.2,.7,.2,1) both; }
.tr-exo-consigne { margin: 0 0 14px; color: var(--tr-texte-2); font-size: 16px; line-height: 1.4; }
.tr-exo-media { position: relative; border-radius: 14px; overflow: hidden; background: #17181B; border: 1px solid var(--tr-ligne); aspect-ratio: 16 / 10; display: grid; place-items: center; animation: tr-in-fondu 200ms ease-out both; }
.tr-exo-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-exo-sans-video { color: #5E6066; }
.tr-exo-temps { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font: 600 13px/1 var(--tr-police); font-variant-numeric: tabular-nums; }
.tr-points { display: flex; justify-content: center; gap: 7px; margin: 14px 0 6px; }
.tr-points i { width: 7px; height: 7px; border-radius: 50%; background: #3A3C41; }
.tr-points i.ici { background: var(--tr-or); }
.tr-exo-ligne { margin: 4px 0 0; text-align: center; color: var(--tr-texte-2); font-size: 15px; animation: tr-in-fondu 150ms ease-out both; }
.tr-vue-exercice.tr-arrive { animation: tr-in-pousse 240ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes tr-du-haut { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }
.tr-jai-fini { position: relative; overflow: hidden; width: 100%; margin: 0; }
.tr-jai-fini::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease-out; }
.tr-jai-fini.tr-rempli::before { transform: scaleX(1); }
.tr-run .carnet { margin-top: 14px; }
/* Le voile noir de « Commencer » */
.tr-voile { position: fixed; inset: 0; z-index: 9500; background: #0B0B0C; transform: scaleY(0); transform-origin: bottom; transition: transform 240ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease-out; }
.tr-voile.monte { transform: scaleY(1); }
.tr-voile.part { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tr-voile { transition: none; } .tr-chiffre, .tr-exo-nom, .tr-exo-media, .tr-exo-ligne { animation: none; } }

/* ── Fin de séance (planche) : fond noir, trois temps, pas de confetti ── */
.tr-fin { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; text-align: center; }
.tr-fin .tr-surtitre { margin-top: 4px; }
.tr-fin-centre { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 6px; }
.tr-fin-titre { margin: 0; font: 600 30px/1.2 var(--tr-police) !important; letter-spacing: -.01em !important; text-transform: none !important; color: #fff; border: 0 !important; animation: tr-in-fondu 300ms ease-out both; }
.tr-fin-sous { margin: 10px 0 0; color: var(--tr-texte-2); font-size: 18px; animation: tr-fin-sous 240ms ease-out 200ms both; }
.tr-fin-constat { margin: 26px 0 0; color: var(--tr-texte-3); font-size: 14px; line-height: 1.5; animation: tr-in-fondu 240ms ease-out 400ms both; }
.tr-fin-accord { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; animation: tr-in-fondu 240ms ease-out 500ms both; }
.tr-fin-noter { max-width: 260px; margin: 0; border-color: rgba(255,255,255,.35); border-radius: 999px; min-height: 50px; font-size: 17px; }
.tr-fin-dit { margin-top: 14px; color: var(--tr-texte-2); }
@keyframes tr-fin-sous { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr-fin-titre, .tr-fin-sous, .tr-fin-constat, .tr-fin-accord { animation: none; } }

/* ══ LA PLANCHE, SUITE : check-in vocal, « J'ai mangé », métier, réglages ══ */
.tr-voix { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100dvh - 190px); }
.tr-voix .retour { align-self: flex-start; }
.tr-voix-titre { margin: 6px 0 26px; font: 600 26px/1.2 var(--tr-police) !important; letter-spacing: -.01em !important; text-transform: none !important; color: #fff; border: 0 !important; }
.tr-voix-micro {
  width: 132px; height: 132px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: radial-gradient(circle at 35% 28%, var(--th-a1, #F7D58A) 0%, var(--th-a2, #D4A04A) 38%, var(--th-a4, #6B4318) 100%);
}
.tr-voix-micro[hidden] { display: none; }
.tr-voix-micro:disabled { opacity: .35; cursor: default; }
.tr-voix-micro .tr-ico { width: 60px; height: 60px; }
.tr-onde { display: flex; align-items: center; justify-content: center; gap: 4px; height: 64px; width: 100%; max-width: 330px; margin: 26px 0 8px; }
.tr-onde i { flex: 1 1 0; max-width: 5px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--tr-or-vif), var(--tr-bronze)); opacity: .35; transition: height 200ms ease-out, opacity 200ms ease-out; }
.tr-onde.ecoute i { opacity: 1; animation: tr-onde 900ms ease-in-out infinite alternate; animation-delay: calc(var(--k) * -61ms); }
@keyframes tr-onde { 0% { height: 8px; } 35% { height: 46px; } 60% { height: 18px; } 100% { height: 58px; } }
.tr-voix-entendu { min-height: 2.8em; margin: 6px 0 0; color: var(--tr-texte-2); font-size: 17px; line-height: 1.4; max-width: 330px; }
.tr-voix-bas { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.tr-voix-stop-mot { color: var(--tr-texte-2); font-size: 14px; }
.tr-voix-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 16px; padding: 4px; border-radius: 14px; background: #1A1B1E; border: 1px solid var(--tr-ligne); }
.tr-voix-choix[hidden] { display: none; }
.tr-voix .tr-note-appareil { margin-top: auto; padding-top: 22px; }
.tr-voix .tr-note-appareil .tr-ico { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .tr-onde.ecoute i { animation: none; height: 30px; } }

.tr-mange-champ { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; }
.tr-mange-champ input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: #fff; font: 500 19px/1.2 var(--tr-police); outline: none; }
.tr-mange-champ input::placeholder { color: var(--tr-texte-3); }
.tr-mange-champ:focus-within { border-color: rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-mange-total { padding: 6px 14px; }
.tr-mange-macro { display: grid; grid-template-columns: 26px 1fr auto 46px; align-items: center; gap: 10px; min-height: 46px; color: #fff; font: 500 17px/1 var(--tr-police); }
.tr-mange-macro + .tr-mange-macro { border-top: 1px solid var(--tr-ligne); }
.tr-mange-macro b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-mange-macro .tr-pct { text-align: right; color: var(--tr-texte-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.tr-mange-ico { width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.tr-mange-ico.p { background: var(--tr-or); box-shadow: 0 0 10px rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-mange-ico.g { background: var(--tr-choisi); box-shadow: 0 0 10px rgba(var(--th-a1-rgb, 235, 195, 112), .5); }
.tr-mange-ico.l { background: #F2F2F4; box-shadow: 0 0 10px rgba(255, 255, 255, .35); }
.tr-mange-ico.k { background: none; border: 2px solid var(--tr-texte-2); }
.tr-mange-ligne { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: #fff; font-size: 16px; }
.tr-mange-ligne + .tr-mange-ligne { border-top: 1px solid var(--tr-ligne); }
.tr-mange-ligne > span { flex: 1; min-width: 0; }
.tr-mange-ligne small { display: block; margin-top: 2px; color: var(--tr-texte-2); font-size: 13px; }
.tr-mange-ligne input { width: 68px; height: 38px; padding: 0 8px; border: 1px solid var(--tr-ligne-forte); border-radius: 9px; background: rgba(0, 0, 0, .25); color: #fff; font: 600 16px/1 var(--tr-police); text-align: right; font-variant-numeric: tabular-nums; }
.tr-mange-ligne em { color: var(--tr-texte-2); font-style: normal; }
.tr-mange-ligne.manque { color: var(--tr-texte-2); font-size: 14px; margin: 0; }
.tr-mange .tr-cta:disabled { opacity: .4; box-shadow: none; cursor: default; }

/* Une coche rouge (métier) — un rond vide, puis plein avec la coche. */
.tr-coche { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid #4A4C52; display: grid; place-items: center; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.tr-coche::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform 180ms ease-out; }
[aria-checked="true"] > .tr-coche, .tr-coche.pleine { background: var(--tr-or); border-color: var(--tr-or); }
[aria-checked="true"] > .tr-coche::after, .tr-coche.pleine::after { transform: rotate(-45deg) scale(1); }
.tr-metier-page .tr-profil-liste { margin-top: 0; }

/* Les interrupteurs des réglages rapides. */
.tr-inter { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 2px; cursor: pointer; color: #fff; font: 500 17px/1.25 var(--tr-police); }
.tr-inter .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-inter .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 13px; font-weight: 400; }
.tr-inter input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tr-inter-rail { position: relative; width: 51px; height: 31px; flex: 0 0 51px; border-radius: 999px; background: #3A3B40; transition: background-color 200ms ease-out; }
.tr-inter-rail::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform 200ms cubic-bezier(.2,.7,.2,1); }
.tr-inter input:checked + .tr-inter-rail { background: var(--tr-or); }
.tr-inter input:checked + .tr-inter-rail::after { transform: translateX(20px); }
.tr-inter input:focus-visible + .tr-inter-rail { outline: 2px solid var(--tr-or-vif); outline-offset: 2px; }

/* La reprise d'une séance interrompue. */
.tr-reprise { padding: 4px 14px 2px; }
.tr-reprise .tr-ligne { min-height: 64px; }
.tr-reprise .tr-rond-ico .tr-ico { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════════
 * LE VERRE LIQUIDE, EN RELIEF — 22/09
 * « des effets et liquid glass, couleur, effet relief comme avant »
 * ══════════════════════════════════════════════════════════════════
 * Une matière, pas un décor : un verre sombre qui laisse passer la
 * couleur du fond, un reflet sur l'arête du haut, une ombre dessous.
 * Rouge et citron vert restent les seules couleurs ; pas d'or.
 * Rien ne bouge tout seul : la lumière suit le doigt quand on touche
 * (liquid-glass.js, 60 ms pour s'allumer, 220 ms pour s'éteindre).
 * Les interdits de la planche tiennent : ni parallaxe, ni particules,
 * ni secousse (epreuve-mouvement.mjs). */
@property --tr-lueur { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --tr-verre-haut: rgba(64, 66, 74, .52);
  --tr-verre-bas: rgba(23, 24, 28, .70);
  --tr-verre-flou: blur(22px) saturate(1.7);
  --tr-brillance: linear-gradient(158deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .03) 26%, rgba(255, 255, 255, 0) 50%);
  --tr-reflet: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 0 0 1px rgba(255, 255, 255, .035), inset 0 -1px 0 rgba(0, 0, 0, .45);
  --tr-relief: 0 1px 0 rgba(0, 0, 0, .55), 0 14px 30px -12px rgba(0, 0, 0, .75), 0 34px 64px -34px rgba(0, 0, 0, .7);
  --tr-bosse: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 8px rgba(0, 0, 0, .45), 0 6px 14px -4px rgba(0, 0, 0, .6);
  --tr-creux: inset 0 2px 4px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .05);
  --tr-lueur-rouge: 0 12px 28px -8px rgba(var(--th-a2-rgb, 212, 160, 74), .62), 0 2px 8px rgba(var(--th-a2-rgb, 212, 160, 74), .28);
  --tr-lueur-lime: 0 0 22px rgba(var(--th-a1-rgb, 235, 195, 112), .30);
}

/* ── La couleur du fond : #121212, éclairé de rouge en haut, de lie-de-vin sur le côté ── */
html:not([data-theme="clair"]):not([data-theme="light"]) body {
  background-image:
    radial-gradient(95% 420px at 8% -60px, rgba(var(--th-a2-rgb, 212, 160, 74), .19), rgba(var(--th-a2-rgb, 212, 160, 74), 0) 70%),
    radial-gradient(70% 520px at 108% 140px, rgba(var(--th-a4-rgb, 110, 70, 22), .20), rgba(var(--th-a4-rgb, 110, 70, 22), 0) 70%),
    radial-gradient(90% 360px at 30% 105%, rgba(var(--th-a2-rgb, 212, 160, 74), .07), rgba(var(--th-a2-rgb, 212, 160, 74), 0) 70%) !important;
  background-repeat: no-repeat !important;
}

/* ── Le chrome : une plaque de verre, le logo en relief ── */
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-chrome {
  background: linear-gradient(180deg, rgba(28, 29, 33, .74), rgba(18, 18, 20, .58));
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5), 0 10px 26px -16px rgba(0, 0, 0, .8);
}
.tr-logo { text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 18px rgba(255, 255, 255, .06); }
.tr-logo b {
  background: linear-gradient(180deg, var(--th-a1, #F7D58A) 0%, var(--th-a2, #D4A04A) 55%, var(--th-a4, #8A5A20) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 8px rgba(var(--th-a2-rgb, 212, 160, 74), .5));
}

/* ── La barre d'onglets : verre dépoli, l'onglet actif s'allume ── */
html:not([data-theme="clair"]):not([data-theme="light"]) #barre.barre {
  background: linear-gradient(180deg, rgba(30, 31, 35, .70), rgba(12, 13, 15, .88)) !important;
  backdrop-filter: blur(26px) saturate(1.8) !important; -webkit-backdrop-filter: blur(26px) saturate(1.8) !important;
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 -14px 34px -10px rgba(0, 0, 0, .7) !important;
}
html #barre.barre button[aria-current="page"] .tr-ico { filter: drop-shadow(0 0 7px rgba(var(--th-a2-rgb, 212, 160, 74), .6)); }
html #barre.barre button[aria-current="page"]::before { box-shadow: 0 0 12px 1px rgba(var(--th-a2-rgb, 212, 160, 74), .75); }
html #barre.barre button .tr-ico { transition: filter 180ms ease-out; }
html #barre.barre button.lg-morph { transform: none !important; }

/* ── Les cartes : le verre liquide ── */
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-carte {
  background:
    radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, calc(var(--tr-lueur) * .11)), rgba(255, 255, 255, 0) 72%),
    var(--tr-brillance),
    linear-gradient(180deg, var(--tr-verre-haut), var(--tr-verre-bas));
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: var(--tr-reflet), var(--tr-relief);
  backdrop-filter: var(--tr-verre-flou); -webkit-backdrop-filter: var(--tr-verre-flou);
  transition: --tr-lueur 220ms ease-out;
}
/* Les cartes de la base, sous le skin : même matière, sans flou (légèreté sur les vieux téléphones). */
html:not([data-theme="clair"]) .bloc, html:not([data-theme="clair"]) .carte:not(.tr-photo), html:not([data-theme="clair"]) details.pli {
  background: var(--tr-brillance), linear-gradient(180deg, rgba(46, 48, 54, .78), rgba(25, 26, 30, .9)) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  box-shadow: var(--tr-reflet), 0 12px 26px -14px rgba(0, 0, 0, .75) !important;
}

/* La lumière au toucher : elle naît sous le doigt (liquid-glass.js pose --mx / --my). */
.tr-lueur-on { --tr-lueur: 1; transition-duration: 60ms !important; }
.tr-choix, .tr-ligne, .tr-segment, .tr-mode {
  background-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, calc(var(--tr-lueur) * .10)), rgba(255, 255, 255, 0) 72%);
  transition: --tr-lueur 220ms ease-out, background-color 60ms ease-out, color 180ms ease-out;
}

/* ── Les choix du ressenti : des galets de verre ; choisi = citron vert, allumé ── */
html:not([data-theme="clair"]) .tr-choix {
  background-color: rgba(44, 46, 52, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 6px 14px -8px rgba(0, 0, 0, .7);
}
html:not([data-theme="clair"]) .tr-choix[aria-checked="true"] {
  background-color: rgba(var(--th-a1-rgb, 235, 195, 112), .07);
  border-color: rgba(var(--th-a1-rgb, 235, 195, 112), .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 18px rgba(var(--th-a1-rgb, 235, 195, 112), .10), 0 0 0 1px rgba(var(--th-a1-rgb, 235, 195, 112), .12), 0 8px 22px -10px rgba(var(--th-a1-rgb, 235, 195, 112), .45);
}
.tr-choix[aria-checked="true"] .tr-visage { filter: drop-shadow(0 0 8px rgba(var(--th-a1-rgb, 235, 195, 112), .45)); }
.tr-radio { box-shadow: var(--tr-creux); }
.tr-choix[aria-checked="true"] .tr-radio { box-shadow: 0 0 10px rgba(var(--th-a1-rgb, 235, 195, 112), .45); }
.tr-choix[aria-checked="true"] .tr-radio::after { background: radial-gradient(circle at 35% 30%, var(--th-a0, #FFF0C2), var(--tr-choisi) 60%); }

/* ── Les boutons rouges : en relief, une lueur dessous ── */
.tr-cta, html[data-section] .bouton:not(.sobre), .bouton:not(.sobre), .tr-plan-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, var(--th-a1, #E8B85F), var(--th-a3, #A8702A));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -2px 0 rgba(0, 0, 0, .22), var(--tr-lueur-rouge);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}
.tr-cta.tr-cta-sombre { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, var(--th-a4, #7A4E1C), var(--th-a5, #4E3112)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(var(--th-a4-rgb, 120, 78, 28), .7); }
.tr-cta.tr-cta-petit { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px -6px rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-cta:active, .tr-plan-btn:active, .bouton:not(.sobre):active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 2px 6px rgba(0, 0, 0, .25), 0 4px 12px -6px rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
html[data-section] .bouton.sobre, .bouton.sobre {
  background: var(--tr-brillance), linear-gradient(180deg, #2E3035, #202125) !important;
  box-shadow: var(--tr-bosse);
}
.tr-cta-contour {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%), rgba(20, 21, 24, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(var(--th-a1-rgb, 235, 195, 112), .08), 0 8px 22px -12px rgba(var(--th-a1-rgb, 235, 195, 112), .5);
}

/* ── Les ronds : des boutons de métal sombre, en bosse ── */
.tr-rond-ico, .tr-micro, .tr-metier .tr-metier-ico, .tr-plan .tr-plan-ico {
  background: radial-gradient(circle at 36% 24%, #3A3C43 0%, #25272C 45%, #18191D 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: var(--tr-bosse);
}
.tr-seance-prete .tr-rond-ico, .tr-reprise .tr-rond-ico, .tr-plan .tr-plan-ico { color: var(--tr-or-vif); }
.tr-seance-prete .tr-rond-ico .tr-ico, .tr-reprise .tr-rond-ico .tr-ico, .tr-plan .tr-plan-ico .tr-ico { filter: drop-shadow(0 0 6px rgba(var(--th-a2-rgb, 212, 160, 74), .55)); }

/* Les grands ronds rouges (minuteur, voix) : une sphère, éclairée d'en haut. */
.tr-rond-rouge, .tr-voix-micro {
  background: radial-gradient(circle at 34% 24%, var(--th-a0, #FBE3A6) 0%, var(--th-a1, #E8B85F) 36%, var(--th-a3, #A8702A) 72%, var(--th-a4, #6B4318) 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .32), inset 0 -8px 14px rgba(0, 0, 0, .28), 0 16px 34px -8px rgba(var(--th-a2-rgb, 212, 160, 74), .62), 0 3px 8px rgba(0, 0, 0, .45);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.tr-rond-rouge:active, .tr-voix-micro:active { transform: scale(.96); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .22), inset 0 -4px 10px rgba(0, 0, 0, .35), 0 8px 18px -8px rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
.tr-voix-micro { box-shadow: inset 0 2px 1px rgba(255, 255, 255, .32), inset 0 -10px 18px rgba(0, 0, 0, .28), 0 0 0 12px rgba(var(--th-a2-rgb, 212, 160, 74), .08), 0 0 0 26px rgba(var(--th-a2-rgb, 212, 160, 74), .04), 0 22px 44px -10px rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
.tr-voix-micro .tr-ico, .tr-rond-rouge .tr-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.tr-onde i { box-shadow: 0 0 8px rgba(var(--th-a2-rgb, 212, 160, 74), .35); }

/* ── Le cadran du minuteur : un disque creusé, l'anneau citron vert allumé ── */
.tr-cadran { isolation: isolate; }
.tr-cadran::before {
  content: ""; position: absolute; inset: 7%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%), radial-gradient(circle, #18191C 0%, #0F1012 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .06), inset 0 -14px 34px rgba(0, 0, 0, .65), 0 26px 60px -24px rgba(0, 0, 0, .9);
}
.tr-cadran .anneau .creux { stroke: #2A2112; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .04)); }
.tr-cadran .anneau .plein { filter: drop-shadow(0 0 12px rgba(var(--th-a1-rgb, 235, 195, 112), .42)) drop-shadow(0 0 2px rgba(var(--th-a0-rgb, 255, 240, 194), .55)); }
.tr-chiffre { text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 1px rgba(255, 255, 255, .3); }
.tr-etat { text-shadow: 0 0 14px rgba(var(--th-a1-rgb, 235, 195, 112), .35); }

/* ── Combat : la piste creusée, l'onglet choisi en bosse ── */
html:not([data-theme="clair"]) .tr-segments, html:not([data-theme="clair"]) .tr-voix-choix { background: rgba(0, 0, 0, .30); border: 1px solid rgba(255, 255, 255, .05); box-shadow: var(--tr-creux); }
html:not([data-theme="clair"]) .tr-segment[aria-selected="true"] { background-color: #34363C; background-image: var(--tr-brillance); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px -3px rgba(0, 0, 0, .7); }
.tr-segment { transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out, --tr-lueur 220ms ease-out; }
.tr-vide .tr-ico { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }

/* ── Nutrition : ronds en relief, barres creusées qui s'allument, photos posées ── */
html:not([data-theme="clair"]) .tr-mode {
  background-color: #1A1B1E;
  background-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, calc(var(--tr-lueur) * .10)), rgba(255, 255, 255, 0) 72%), radial-gradient(circle at 50% 24%, #36383E 0%, #1E1F23 55%, #121315 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -10px 18px rgba(0, 0, 0, .5), 0 12px 26px -10px rgba(0, 0, 0, .8);
}
html:not([data-theme="clair"]) .tr-mode.choisi {
  background-image: radial-gradient(circle at 50% 30%, rgba(var(--th-a1-rgb, 235, 195, 112), .16), rgba(var(--th-a1-rgb, 235, 195, 112), 0) 62%), radial-gradient(circle at 50% 40%, #221A0E, #120F0A 72%);
  border: 0;
  box-shadow: inset 0 0 0 6px var(--tr-choisi), inset 0 0 22px rgba(var(--th-a1-rgb, 235, 195, 112), .28), 0 0 34px rgba(var(--th-a1-rgb, 235, 195, 112), .30), 0 14px 28px -10px rgba(0, 0, 0, .85);
  text-shadow: 0 0 14px rgba(var(--th-a1-rgb, 247, 213, 138), .5);
}
.tr-mode { transition: box-shadow 200ms ease-out, color 200ms ease-out, width 200ms ease-out, height 200ms ease-out, font-size 200ms ease-out, --tr-lueur 220ms ease-out; }
.tr-barre { box-shadow: var(--tr-creux); background: #1E1F22; }
.tr-barre i { background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, var(--th-a3, #C99343), var(--tr-choisi-vif)); box-shadow: 0 0 10px rgba(var(--th-a1-rgb, 235, 195, 112), .42); }
.tr-barre.grise i { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%), #4A4C50; box-shadow: none; }
.tr-photo { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 26px -12px rgba(0, 0, 0, .9); border-color: rgba(255, 255, 255, .09); transition: transform 80ms ease-out; }
.tr-photo:active { transform: scale(.98); }
.tr-cal-jour.aujourdhui span { background: radial-gradient(circle at 36% 26%, var(--th-a1, #F7D58A), var(--th-a2, #D4A04A) 55%, var(--th-a4, #8A5A20)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 14px -2px rgba(var(--th-a2-rgb, 212, 160, 74), .7); }
.tr-cal-jour.note::after { box-shadow: 0 0 6px rgba(var(--th-a1-rgb, 235, 195, 112), .8); }
.tr-nutri-logo .tr-tr { text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 10px 30px rgba(0, 0, 0, .6); }
.tr-nutri-logo .tr-tr em { text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 26px rgba(var(--th-a2-rgb, 212, 160, 74), .5); }

/* ── Titres : le trait rouge luit, les grands titres ont du poids ── */
.tr-titre-section::after { box-shadow: 0 0 12px rgba(var(--th-a2-rgb, 212, 160, 74), .65); }
.tr-titre-section, .tr-grand-titre, .tr-seance-nom, .tr-exo-nom, .tr-fin-titre, .tr-voix-titre { text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .45); }
.tr-seance-duree { text-shadow: 0 0 16px rgba(var(--th-a2-rgb, 212, 160, 74), .45); }
.tr-pastille-jour { background: linear-gradient(180deg, rgba(var(--th-a2-rgb, 212, 160, 74), .16), rgba(var(--th-a2-rgb, 212, 160, 74), .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 16px -2px rgba(var(--th-a2-rgb, 212, 160, 74), .45); }
.tr-pastille-jour i { box-shadow: 0 0 8px rgba(var(--th-a2-rgb, 212, 160, 74), .9); }

/* ── Interrupteurs, coche, points : même lumière ── */
.tr-inter-rail { box-shadow: var(--tr-creux); }
.tr-inter input:checked + .tr-inter-rail { background: linear-gradient(180deg, var(--th-a1, #E8B85F), var(--th-a3, #A8702A)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 14px -2px rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
.tr-inter-rail::after { background: radial-gradient(circle at 40% 30%, #FFFFFF, #E4E4E8); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 3px 8px rgba(0, 0, 0, .45); }
[aria-checked="true"] > .tr-coche, .tr-coche.pleine { box-shadow: 0 0 12px rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-points i.ici { box-shadow: 0 0 8px rgba(var(--th-a2-rgb, 212, 160, 74), .8); }
.tr-exo-media { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px -16px rgba(0, 0, 0, .9); }
.tr-jai-fini::before { background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .26)); }

/* ── Sobriété : transparence réduite ou contraste fort → verre plein, sans flou ── */
@media (prefers-reduced-transparency: reduce) {
  html .tr-carte, html .tr-chrome, html #barre.barre { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html:not([data-theme="clair"]):not([data-theme="light"]) .tr-carte { background: linear-gradient(180deg, #2A2B30, #1C1D21); }
}
html[data-contrast="fort"] .tr-carte { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: rgba(255, 255, 255, .3) !important; }

/* Combat : la pastille glisse d'un onglet à l'autre (200 ms), le contenu se fond (200 ms). */
.tr-segments { position: relative; }
.tr-segment { position: relative; z-index: 1; }
html:not([data-theme="clair"]) .tr-segments .tr-segment[aria-selected="true"] { background-color: transparent; background-image: none; box-shadow: none; }
.tr-seg-pastille {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); z-index: 0; border-radius: 10px;
  background: var(--tr-brillance), linear-gradient(180deg, #3A3C42, #2A2C31);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 4px 10px -3px rgba(0, 0, 0, .75);
  transform: translateX(calc(var(--i, 0) * (100% + 4px)));
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="clair"] .tr-seg-pastille { background: #fff; }
.tr-fondu-entre { animation: tr-in-fondu 200ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .tr-seg-pastille { transition: none; } .tr-fondu-entre { animation: none; } }
html[data-theme="clair"] .tr-segments .tr-segment[aria-selected="true"] { background: transparent; }
.tr-mois::first-letter { text-transform: uppercase; }
.tr-exo-sans-video { display: grid; justify-items: center; gap: 10px; color: #6A6D74; }
.tr-exo-sans-video[hidden] { display: none; }
.tr-exo-sans-video .tr-ico { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.tr-exo-sans-video small { color: var(--tr-texte-3); font-size: 12px; letter-spacing: .04em; }

/* ══ 22/09 · LE LIEN AVEC TONIO — bandeau, messages, code, visio ══ */
.tr-bandeau { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; color: #fff; text-decoration: none; }
.tr-bandeau .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-bandeau .tr-ligne-mot b { display: block; font: 600 16px/1.2 var(--tr-police); }
.tr-bandeau .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 13px; }
.tr-bandeau .tr-rond-ico { width: 42px; height: 42px; flex: 0 0 42px; color: var(--tr-or-vif); }
.tr-bandeau .tr-chevron { color: var(--tr-texte-2); display: grid; }
html:not([data-theme="clair"]) .tr-bandeau-appel { border-color: rgba(var(--th-a2-rgb, 212, 160, 74), .45); box-shadow: var(--tr-reflet), 0 0 0 1px rgba(var(--th-a2-rgb, 212, 160, 74), .18), 0 14px 30px -12px rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-pastille-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--tr-or); color: #fff; font: 700 12px/1 var(--tr-police); box-shadow: 0 0 10px rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
.tr-coach-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.tr-coach-actions .bouton { min-height: 40px; padding: 0 4px; font-size: 14px; }
.tr-invite { margin-top: 12px; padding: 16px; }
.tr-code-grand { margin: 6px 0 4px; font: 700 40px/1.1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: #fff; text-align: center; text-shadow: 0 0 22px rgba(var(--th-a2-rgb, 212, 160, 74), .35); }
.tr-code-recup { font-size: 21px; letter-spacing: .06em; word-break: break-all; }
.tr-lier-points { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.45; }
.tr-lier-code { display: grid; gap: 8px; margin-top: 14px; padding: 14px 16px; }
.tr-lier-code label { color: var(--tr-texte-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tr-lier-code input { height: 56px; border: 0; background: none; color: #fff; font: 700 30px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; outline: none; }
.tr-lier-code:focus-within { border-color: rgba(var(--th-a2-rgb, 212, 160, 74), .55); }
.tr-coche-ligne { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; font-size: 16px; cursor: pointer; }
.tr-coche-ligne input { width: 22px; height: 22px; accent-color: var(--tr-or); flex: 0 0 22px; }

.tr-fil-page { display: flex; flex-direction: column; min-height: calc(100dvh - 200px); }
.tr-fil { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 6px 0 12px; }
.tr-bulle { max-width: 82%; padding: 10px 13px 8px; border-radius: 18px; line-height: 1.4; font-size: 16px; color: #fff; animation: tr-in-fondu 200ms ease-out both; }
.tr-bulle small { display: block; margin-top: 4px; font-size: 11px; opacity: .6; }
.tr-bulle.lui { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--tr-brillance), linear-gradient(180deg, rgba(64, 66, 74, .7), rgba(34, 35, 40, .85)); box-shadow: var(--tr-reflet), 0 6px 14px -8px rgba(0, 0, 0, .7); }
.tr-bulle.moi { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, var(--th-a2, #E0AE55), var(--th-a4, #8A5A20)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px rgba(var(--th-a2-rgb, 212, 160, 74), .7); }
.tr-fil-ecrire { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(40, 42, 47, .82), rgba(22, 23, 26, .9)); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); box-shadow: var(--tr-reflet), 0 12px 28px -12px rgba(0, 0, 0, .8); }
.tr-fil-ecrire textarea { flex: 1; min-height: 40px; max-height: 140px; resize: none; border: 0; background: none; color: #fff; font: 400 17px/1.35 var(--tr-police); padding: 9px 0; outline: none; }
.tr-fil-envoyer { width: 44px; height: 44px; flex: 0 0 44px; }
.tr-fil-envoyer .tr-ico { width: 20px; height: 20px; }

.tr-visio { position: relative; min-height: calc(100dvh - 30px); margin: 0 -16px; overflow: hidden; background: #0B0B0C; display: flex; flex-direction: column; justify-content: space-between; }
.tr-visio-lui { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: radial-gradient(circle at 50% 30%, #1C1D21, #0B0B0C 70%); }
.tr-visio-moi { position: absolute; right: 14px; bottom: 150px; width: 104px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 12px 26px rgba(0, 0, 0, .6); background: #16171A; z-index: 2; transform: scaleX(-1); }
.tr-visio-haut { position: relative; z-index: 2; padding: calc(14px + env(safe-area-inset-top)) 16px 20px; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.tr-visio-haut .tr-run-quitter { top: calc(10px + env(safe-area-inset-top)); right: 14px; }
.tr-visio-nom { margin: 6px 0 4px; font: 700 30px/1.1 var(--tr-police) !important; color: #fff; border: 0 !important; text-transform: none !important; letter-spacing: -.01em !important; }
.tr-visio-etat { margin: 0; color: var(--tr-texte-2); font-size: 15px; }
.tr-visio-bas { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.tr-visio-bas .tr-note-appareil { max-width: 320px; text-align: center; font-size: 12px; }
.tr-visio-go { background: radial-gradient(circle at 34% 24%, var(--th-a0, #FFF0C2) 0%, var(--th-a1, #F7D58A) 38%, var(--th-a3, #A8702A) 100%) !important; color: #0B0B0C !important; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), inset 0 -8px 14px rgba(0, 0, 0, .2), 0 16px 34px -8px rgba(var(--th-a1-rgb, 235, 195, 112), .6) !important; }

/* Les champs de saisie (plan, séances, code) : du verre creusé. Ils n'avaient aucun style jusqu'ici. */
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.champ { display: grid; gap: 6px; min-width: 0; color: var(--tr-texte-2); font: 500 13px/1.2 var(--tr-police); }
.champ > span { letter-spacing: .02em; }
.champ input, .champ select, .champ textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .09); background: rgba(0, 0, 0, .3); color: #fff;
  font: 500 17px/1.2 var(--tr-police); box-shadow: var(--tr-creux); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease-out;
}
.champ select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--tr-texte-2) 50%), linear-gradient(135deg, var(--tr-texte-2) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: rgba(var(--th-a2-rgb, 212, 160, 74), .6); }
.champ input::placeholder { color: var(--tr-texte-3); }
html[data-theme="clair"] .champ input, html[data-theme="clair"] .champ select { background-color: #fff; color: #121212; box-shadow: none; border-color: rgba(0, 0, 0, .14); }
fieldset { min-width: 0; }
.tr-visio-moi:not([data-on]) { display: none; }
.tr-fil-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tr-fil-nom-champ { width: 100%; min-width: 0; border: 0; border-bottom: 2px solid var(--tr-or); background: none; color: #fff; font: inherit; outline: none; }

/* ══════════════════════════════════════════════════════════════════
 * 22/09 · LES COULEURS DU LOGO — demande de Tonio : « remettre
 * l'application aux couleurs initiales du logo ». Or et bronze sur noir,
 * comme le blason T.R. ; le « choisi » est un or plus clair. Sur l'or,
 * le texte est sombre : du blanc sur de l'or ne se lit pas (contraste).
 * ══════════════════════════════════════════════════════════════════ */
:root { --tr-sur-or: #1A1206; --tr-champagne: var(--th-a0, #F6E3B4); }
html, html[data-section] { --sur-accent: var(--tr-sur-or); --sur-or: var(--tr-sur-or); }
html[data-section] .bouton:not(.sobre), .bouton:not(.sobre), .tr-cta:not(.tr-cta-sombre), .tr-plan-btn, .tr-rond-rouge, .tr-voix-micro,
.tr-bulle.moi, .tr-pastille-n, .tr-cal-jour.aujourdhui span { color: var(--tr-sur-or) !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .3); }
.tr-cta.tr-cta-sombre { color: var(--tr-champagne); }
[aria-checked="true"] > .tr-coche::after, .tr-coche.pleine::after { border-color: var(--tr-sur-or); }
.tr-jai-fini::before { background: linear-gradient(90deg, rgba(26, 18, 6, .10), rgba(26, 18, 6, .22)); }
.tr-bulle.moi small { opacity: .7; }
.tr-logo { color: var(--tr-champagne); }
html[data-theme="clair"] .tr-logo { color: #121212; }

/* ══ 22/09 · LE FOND DE CHAQUE CHAPITRE (photos de Tonio) ══
 * Derrière le contenu (z-index -1 dans une page isolée) : les cartes de
 * verre la floutent et la laissent passer. Elle s'efface vers le noir. */
.tr-page { position: relative; isolation: isolate; }
.tr-fond-chapitre {
  position: absolute; left: -16px; right: -16px; top: -14px; height: 400px; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: cover; background-position: center 20%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 45%, transparent 100%);
  animation: tr-in-fondu 300ms ease-out both;
}
.tr-fond-chapitre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .30), rgba(18, 18, 18, .50) 60%, rgba(18, 18, 18, .2)); }
.tr-fond-suivi { background-size: 94% auto; background-position: center 54px; opacity: .55; height: 330px; }
.tr-fond-suivi::after { display: none; }
.tr-fond-seances { opacity: .7; background-position: center 12%; height: 440px; }
.tr-fond-ops { opacity: .8; background-position: 38% 30%; height: 420px; }
.tr-fond-ops::after { background: linear-gradient(180deg, rgba(18, 18, 18, .45), rgba(18, 18, 18, .62) 60%, rgba(18, 18, 18, .3)); }
.tr-chapitre-sous { margin: 0 0 18px; color: var(--tr-champagne); opacity: .85; font-size: 15px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.tr-seance .tr-seance-carte { margin-top: 84px; }
.tr-vers-combat { margin-top: 12px; padding: 6px 14px; min-height: 64px; }
.tr-vers-combat .tr-rond-ico { color: var(--tr-or); }

/* Ops : ton métier, ou les quatre familles pour le choisir. */
.tr-ops .tr-metier { margin-top: 110px; }
.tr-ops .tr-metier .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-ops .tr-metier .tr-ligne-mot b { display: block; font-size: 22px; }
.tr-ops .tr-metier .tr-ligne-mot small { display: block; margin-top: 4px; color: var(--tr-texte-2); font-size: 14px; line-height: 1.35; }
.tr-ops > .tr-carte:first-of-type:not(.tr-metier) { margin-top: 110px; }
.tr-ops-familles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-ops-famille { display: grid; gap: 4px; min-height: 72px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); text-align: left; cursor: pointer; color: #fff;
  background: var(--tr-brillance), linear-gradient(180deg, rgba(58, 60, 68, .55), rgba(26, 27, 31, .75)); box-shadow: var(--tr-reflet), 0 8px 18px -10px rgba(0, 0, 0, .8); }
.tr-ops-famille b { font: 600 16px/1.2 var(--tr-police); }
.tr-ops-famille small { color: var(--tr-texte-2); font-size: 12.5px; }
.tr-ops-famille:active { transform: scale(.98); }

/* Nutrition : l'assiette de Tonio, détourée, derrière le logo. */
.tr-nutri-fond {
  height: 360px; opacity: .62;
  background: linear-gradient(180deg, rgba(18, 18, 18, .20), rgba(18, 18, 18, .38) 55%, var(--tr-fond) 96%), url('./photos/fond-nutrition.webp') center 6px / min(82%, 360px) auto no-repeat;
}
.tr-nutri-logo .tr-tr, .tr-nutri-logo .tr-perf, .tr-nutri-logo .tr-nut, .tr-mois { text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 6px 24px rgba(0, 0, 0, .85); }
@media (prefers-reduced-motion: reduce) { .tr-fond-chapitre { animation: none; } }

/* ══ 22/09 · L'OUVERTURE DE TONIO — trois photos, trois textes, deux liens fixes ══ */
.tr-bienvenue { position: fixed; inset: 0; z-index: 60; background: #0B0B0C; color: #fff; }
.tr-bv-piste { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.tr-bv-piste::-webkit-scrollbar { display: none; }
.tr-bv-diapo { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.tr-bv-diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: tr-in-fondu 300ms ease-out both; }
.tr-bv-diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 20%, rgba(10, 7, 3, .15) 40%, rgba(10, 7, 3, .82) 66%, #0B0B0C 92%); }
.tr-bv-diapo figcaption {
  position: absolute; left: 22px; right: 22px; bottom: calc(168px + env(safe-area-inset-bottom)); z-index: 1;
  font: 500 18.5px/1.5 var(--tr-police); color: var(--tr-champagne); text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}
.tr-bienvenue:has(.tr-bv-bas .tr-cta-sombre) .tr-bv-diapo figcaption { bottom: calc(232px + env(safe-area-inset-bottom)); }
.tr-bv-diapo.devise figcaption { display: grid; gap: 6px; }
.tr-bv-diapo.devise figcaption span {
  font: 800 29px/1.12 var(--tr-police); letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--th-a0, #FBE3A6), var(--th-a2, #E0AE55) 55%, var(--th-a3, #A8702A)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .9));
}
.tr-bv-haut { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 18px 0; }
.tr-bv-haut .tr-logo { font-size: 19px; }
.tr-bv-entrer { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: var(--tr-champagne); font: 600 15px/1 var(--tr-police); cursor: pointer;
  background: rgba(20, 16, 10, .45); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.tr-bv-bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 10px; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); }
.tr-bv-bas .tr-cta { margin: 0; }
.tr-bv-bas .tr-points { margin: 0 0 8px; }
.tr-points i { transition: background-color 200ms ease-out, width 200ms ease-out; }
.tr-bv-bas .tr-points i.ici { width: 18px; border-radius: 4px; }

/* Les formules (quand Tonio les aura écrites). */
.tr-formule { padding: 16px; margin-top: 12px; }
.tr-formule-prix { margin: 6px 0 0; }
.tr-formule-prix b { font: 800 34px/1 var(--tr-police); color: var(--tr-or-vif); }
.tr-formule-prix span { color: var(--tr-texte-2); font-size: 15px; }
/* L'animation d'arrivée laisse une transformation sur #app : un élément « fixed » s'y accrocherait au lieu de l'écran. */
html[data-page="bienvenue"] #app { transform: none !important; animation: none !important; filter: none !important; will-change: auto !important; }
.tr-bienvenue { height: 100vh; height: 100dvh; }
/* Suivi : la courbe de Tonio se voit en entier, sous la séance (pas derrière les choix). */
.tr-fond-chapitre.tr-fond-suivi {
  position: relative; left: auto; right: auto; top: auto; z-index: 0; height: 200px; margin: 22px 0 0;
  background-size: contain; background-position: center; opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
}
.tr-page > .tr-grand-titre { display: block; }
.tr-bv-haut-liens { display: flex; gap: 8px; }
.tr-bv-methode { color: var(--tr-texte-2); }
.tr-bv-haut { gap: 8px; }
.tr-bv-haut .tr-logo { font-size: 16px; }
.tr-bv-entrer { white-space: nowrap; padding: 0 12px; font-size: 14px; min-height: 34px; }

/* 22/09 · Le brouillon proposé à Tonio (il valide, il envoie). */
.tr-brouillon { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--th-a2-rgb, 212, 160, 74), .45); background: rgba(var(--th-a2-rgb, 212, 160, 74), .06); }
.tr-brouillon p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--tr-texte); }
.tr-brouillon p span { display: block; margin-bottom: 4px; color: var(--tr-or); font: 700 11px/1 var(--tr-police); letter-spacing: .12em; text-transform: uppercase; }
.tr-brouillon .bouton { min-height: 38px; width: 100%; }
.tr-brouillon-aide { text-align: left; font-size: 13px; color: var(--tr-or); margin: 0 0 8px; }
.tr-notifs { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 12px 12px 14px; }
.tr-notifs .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-notifs .tr-ligne-mot b { display: block; font: 600 15px/1.25 var(--tr-police); color: #fff; }
.tr-notifs .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 12.5px; line-height: 1.35; }
.tr-notifs .tr-rond-ico { width: 40px; height: 40px; flex: 0 0 40px; color: var(--tr-or); }
.tr-invite + .tr-notifs, .tr-invite[hidden] + .tr-notifs { margin-top: 12px; }

/* ══ 22/09 · L'ACCUEIL — la journée, le mois, toutes les séances ══ */
.tr-accueil-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tr-accueil-profil { width: 44px; height: 44px; flex: 0 0 44px; margin-top: 8px; cursor: pointer; color: var(--tr-champagne); }
.tr-accueil-jour { padding: 16px; }
.tr-accueil-jour:not(:has(.tr-accueil-titre)) { display: flex; align-items: center; gap: 12px; }
.tr-accueil-jour .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-accueil-jour .tr-ligne-mot b { display: block; font: 600 17px/1.25 var(--tr-police); color: #fff; }
.tr-accueil-jour .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 13.5px; }
.tr-accueil-jour.fait .tr-rond-ico { color: var(--tr-choisi); }
.tr-accueil-titre { margin: 8px 0 2px; font: 700 30px/1.1 var(--tr-police); letter-spacing: -.02em; color: #fff; }
.tr-accueil-sous { margin: 0; color: var(--tr-or); font: 600 16px/1.2 var(--tr-police); }
.tr-accueil-jour .tr-cta { margin-top: 14px; }
.tr-cal-smart { margin-top: 14px; }
.tr-cal-mois { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 10px; }
.tr-cal-mois b { font: 600 19px/1 var(--tr-police); color: #fff; }
.tr-cal-mois b::first-letter { text-transform: uppercase; }
.tr-cal-fleche { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); color: var(--tr-champagne); font: 400 22px/1 var(--tr-police); cursor: pointer; }
.tr-cal-fleche:disabled { opacity: .3; cursor: default; }
.tr-cal-smart .tr-cal-grille { position: relative; row-gap: 6px; }
.tr-cal-smart .tr-cal-jour { height: 44px; flex-direction: column; display: flex; align-items: center; justify-content: flex-start; padding-top: 2px; z-index: 1; }
.tr-cal-smart .tr-cal-jour span { width: 34px; height: 34px; }
.tr-cal-smart .tr-cal-jour.aujourdhui span { background: none; box-shadow: inset 0 0 0 1.5px var(--tr-or); color: var(--tr-or-vif); }
.tr-cal-smart .tr-cal-jour.choisi span { color: var(--tr-sur-or); font-weight: 700; }
.tr-cal-smart .tr-cal-jour.prevu span { box-shadow: inset 0 0 0 1.5px rgba(var(--th-a1-rgb, 235, 195, 112), .45); border-radius: 50%; }
.tr-cal-smart .tr-cal-jour.aujourdhui.prevu span { box-shadow: inset 0 0 0 1.5px var(--tr-or); }
.tr-cal-smart .tr-cal-jour::after { display: none !important; }
.tr-cal-pastille { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 36% 26%, var(--th-a0, #FBE3A6), var(--th-a2, #E0AE55) 55%, var(--th-a3, #A8702A)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px -2px rgba(var(--th-a2-rgb, 212, 160, 74), .7); }
.tr-cal-points { display: flex; gap: 3px; height: 5px; margin-top: 2px; font-style: normal; }
.tr-cal-points i, .tr-cal-legende i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.s-seance { background: var(--tr-or); }
.s-combat { background: #C0643C; }
.s-ops { background: #9FB0A0; }
.s-repas { background: var(--tr-champagne); opacity: .7; }
.tr-cal-legende .s-prevu { background: none; box-shadow: inset 0 0 0 1.2px rgba(var(--th-a1-rgb, 235, 195, 112), .8); width: 8px; height: 8px; }
.tr-cal-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin: 10px 0 2px; color: var(--tr-texte-2); font-size: 12px; }
.tr-cal-legende span { display: inline-flex; align-items: center; gap: 5px; }
.tr-rond-ico.s-seance, .tr-rond-ico.s-combat, .tr-rond-ico.s-ops, .tr-rond-ico.s-prevu { background: radial-gradient(circle at 36% 24%, #3A3C43 0%, #25272C 45%, #18191D 100%); }
.tr-rond-ico.s-seance { color: var(--tr-or); }
.tr-rond-ico.s-combat { color: #D9825C; }
.tr-rond-ico.s-ops { color: #B7C7B8; }
.tr-rond-ico.s-prevu { color: var(--tr-texte-2); }
.tr-accueil-detail { margin-top: 18px; }
.tr-accueil-jour-titre { margin: 0 0 10px; font: 600 20px/1.2 var(--tr-police) !important; color: #fff; text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; }
.tr-accueil-jour-titre::first-letter { text-transform: uppercase; }
.tr-accueil-visage .tr-visage { width: 30px; height: 30px; color: var(--tr-choisi); }
.tr-accueil-detail .tr-coche { margin-left: auto; }
.tr-premiers { padding: 16px; margin-bottom: 14px; border-color: rgba(var(--th-a2-rgb, 212, 160, 74), .45) !important; }
.tr-premiers .tr-cta { margin-top: 12px; }
.tr-nutri-jour { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: 16px 0 0; }
.tr-nutri-jour .tr-ligne-mot { flex: 1; min-width: 0; }
.tr-nutri-jour .tr-ligne-mot b { display: block; font: 600 17px/1.2 var(--tr-police); color: #fff; }
.tr-nutri-jour .tr-ligne-mot small { display: block; margin-top: 3px; color: var(--tr-texte-2); font-size: 13px; }
.tr-nutri-jour .tr-rond-ico { color: var(--tr-or); }

/* ══ 22/09 (soir) · L'ACCUEIL, AU STYLE DE LA MAQUETTE NUTRITION — « accueil ce style »,
 * « avec effet liquid glass comme c'était ». Le grand logo sur Tonio, le mois, le calendrier
 * smart, trois photos (tous les sports), trois ronds (hier · aujourd'hui · demain), la semaine,
 * Tonio. Le verre liquide et le relief restent ceux de toute l'app. ══ */
html[data-page="accueil"] .tr-chrome { display: none; }
.tr-nutri-fond.tr-accueil-fond {
  height: 320px; opacity: .6;
  background: linear-gradient(180deg, rgba(18, 18, 18, .45), rgba(18, 18, 18, .85) 62%, var(--tr-fond)), url('./photos/nutri-fond.jpg') right -30px top -10px / 60% auto no-repeat;
}
.tr-accueil { position: relative; }
.tr-accueil-profil {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--tr-champagne); border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 16, 10, .45); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.tr-accueil-profil .tr-ico { width: 22px; height: 22px; }
.tr-mois-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tr-mois-nav h1 { margin: 0; font: 600 25px/1 var(--tr-police) !important; color: #fff; text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; }
.tr-mois-nav h1::first-letter { text-transform: uppercase; }
.tr-mois-nav .tr-cal-fleche { width: 44px; height: 44px; font-size: 20px; }
@media (max-width: 430px) {
  .tr-accueil > .tr-photos { padding-right: 52px; }
}
.tr-accueil .tr-cal-smart { margin-top: 0; }
.tr-accueil .tr-cal-smart .tr-cal-jour { height: 40px; }
.tr-accueil .tr-cal-legende { margin-top: 6px; font-size: 11px; }
.tr-accueil .tr-photo b { font-size: 11px; letter-spacing: .02em; }
.tr-accueil .tr-mode { font-size: 13px; gap: 4px; }
.tr-accueil .tr-mode .tr-ico { width: 24px; height: 24px; display: block; }
.tr-accueil .tr-mode.choisi { font-size: 26px; }
.tr-accueil .tr-mode.choisi small { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-macro.tr-macro-semaine { grid-template-columns: 78px 1fr 42px; }
.tr-macro-semaine .tr-val { text-align: right; font-variant-numeric: tabular-nums; }
.tr-accueil .tr-macros-vide { font-size: 12px; margin-top: 6px; }
.tr-accueil .tr-plan .tr-plan-ico { color: var(--tr-or); }
.tr-accueil .tr-accueil-detail { margin-top: 18px; }
.tr-nutri > .tr-accueil-profil { position: absolute; z-index: 3; }
.tr-cal-smart .tr-cal-jour.aujourdhui:not(.choisi) span { color: var(--tr-or-vif) !important; text-shadow: none; font-weight: 700; }

/* 22/09 · « Pour toi aujourd'hui » (espace de Tonio). */
.tr-file { padding: 14px 14px 6px; margin: 14px 0 0; }
.tr-file .tr-liste { border-top: 0; }
.tr-file .tr-ligne { font-weight: 500; font-size: 15px; min-height: 58px; }
.tr-file .tr-rond-ico { width: 38px; height: 38px; flex: 0 0 38px; }
.tr-file .tr-rond-ico .tr-ico { width: 20px; height: 20px; }
.tr-file-message, .tr-file-nouveau { color: var(--tr-or); }
.tr-file-corps { color: #D9825C; }
.tr-file-pas-faite, .tr-file-silence { color: var(--tr-texte-2); }
.tr-file-faite { color: var(--tr-choisi); }
.tr-file-mot { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; font: 600 13px/1 var(--tr-police); color: var(--tr-sur-or); background: linear-gradient(180deg, var(--th-a1, #F2C46B), var(--th-a3, #C99343)); }

/* ══ 22/09 (nuit) · LA VISIO, COMME LA PLANCHE : durée, caméra, micro, raccrocher ══ */
:root { --tr-alerte: #C4342A; }
.tr-visio-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--tr-champagne); font: 600 12px/1 var(--tr-police); letter-spacing: .08em; text-transform: uppercase; }
.tr-visio-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #5FD37A; box-shadow: 0 0 8px rgba(95, 211, 122, .8); }
.tr-visio-quoi { margin: 2px 0 0; color: var(--tr-texte-2); font-size: 13px; letter-spacing: .02em; }
.tr-visio-duree { margin: 10px 0 0; display: inline-block; padding: 5px 12px; border-radius: 999px; color: var(--tr-champagne); font: 600 14px/1 var(--tr-police); font-variant-numeric: tabular-nums;
  background: rgba(20, 16, 10, .5); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tr-visio-boutons { display: flex; align-items: center; justify-content: center; gap: 22px; }
.tr-visio-btn { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--tr-texte-2); font: 500 12px/1 var(--tr-police); cursor: pointer; }
.tr-visio-btn .tr-rond-ico { width: 54px; height: 54px; flex: 0 0 54px; color: var(--tr-champagne); }
.tr-visio-btn.coupe .tr-rond-ico { color: var(--tr-alerte); box-shadow: inset 0 0 0 1.5px rgba(196, 52, 42, .5), var(--tr-bosse); }
.tr-visio-fin { background: radial-gradient(circle at 34% 24%, #E86A5E 0%, #C4342A 40%, #7E1C15 100%) !important; color: #fff !important; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .3), 0 14px 30px -8px rgba(196, 52, 42, .6) !important; }
.tr-visio-bas .tr-note-appareil { max-width: 330px; text-align: left; justify-content: flex-start; gap: 7px; font-size: 12px; margin: 6px 0 0; }
.tr-visio-bas .tr-note-appareil b { color: var(--tr-champagne); font-weight: 600; }
/* « J'ai mangé » — l'en-tête de la planche. */
.tr-mange-logo { margin: 0 0 2px; color: var(--tr-texte-2); font: 700 12px/1 var(--tr-police); letter-spacing: .16em; text-transform: uppercase; }
.tr-mange-logo b { color: var(--tr-or); font-style: italic; letter-spacing: -.02em; }
.tr-mange-logo span { display: block; margin-top: 4px; color: var(--tr-texte-3); font-size: 10px; letter-spacing: .3em; }
.tr-mange-dit { display: flex; align-items: center; gap: 8px; margin: -8px 0 14px; color: var(--tr-texte-2); font-size: 14px; }
.tr-mange-dit .tr-ico { width: 16px; height: 16px; color: var(--tr-or); }
.tr-mange-ico.k { border: 0; display: grid; place-items: center; width: 18px; height: 18px; color: var(--tr-or); background: none; }
.tr-mange-ico.k .tr-ico { width: 16px; height: 16px; }

/* ══ Crystal Glass — par-dessus l'or et le bronze, sur toutes les surfaces.
   Verre givré, reflet en haut, profondeur. Pas de 3D, pas de mouvement infini. ══ */
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-carte,
html:not([data-theme="clair"]):not([data-theme="light"]) .carte,
html:not([data-theme="clair"]):not([data-theme="light"]) .bloc,
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-chrome,
html:not([data-theme="clair"]):not([data-theme="light"]) #barre.barre,
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-ligne,
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-bandeau,
html:not([data-theme="clair"]):not([data-theme="light"]) .tr-file {
  background-color: rgba(28, 29, 33, .55);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 22%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(48, 50, 56, .45), rgba(18, 18, 18, .62));
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -12px 24px rgba(0, 0, 0, .18),
    0 16px 36px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
html:not([data-theme="clair"]):not([data-theme="light"]) #barre.barre {
  background-color: rgba(17, 19, 21, .72) !important;
}
@media (prefers-reduced-transparency: reduce) {
  html:not([data-theme="clair"]):not([data-theme="light"]) .tr-carte,
  html:not([data-theme="clair"]):not([data-theme="light"]) .carte,
  html:not([data-theme="clair"]):not([data-theme="light"]) .bloc,
  html:not([data-theme="clair"]):not([data-theme="light"]) .tr-chrome,
  html:not([data-theme="clair"]):not([data-theme="light"]) #barre.barre {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: none;
    background-color: #1C1D21;
  }
}

/* iPhone Fold — plié (téléphone) et déplié (largeur d'une tablette étroite).
   La barre des cinq onglets ne change pas d'ordre. Rien ne dépasse. */
html, body { overflow-x: clip; }
html img, html video, html svg.tr-photo, .tr-photo, .tr-nutri-fond { max-width: 100%; }
@media (max-width: 380px) {
  .tr-page, .tr-nutri { padding-left: 12px; padding-right: 12px; }
  html #barre.barre button {
    font-size: 10px !important;
    letter-spacing: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .tr-grand-titre { font-size: 28px !important; }
  .tr-accueil .tr-mode.choisi { font-size: 20px; }
  .tr-accueil .tr-mode.choisi small { max-width: 64px; }
}
@media (min-width: 768px) {
  #app {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  html #barre.barre {
    left: max(0px, calc(50% - 360px));
    right: max(0px, calc(50% - 360px));
  }
  .tr-page, .tr-nutri { padding-left: 8px; padding-right: 8px; }
}

/* ══ COPIE DE TRAVAIL 25/09 — Accueil (offres, fil), questionnaire, bienvenue. Variables et classes de l'app uniquement. ══ */
.ob-puces .puce.actif, .ob-puces .puce[aria-pressed="true"] { background: var(--tr-choisi-doux); border-color: var(--tr-choisi); color: var(--tr-choisi-vif); }
.tr-bv-diapo.paysage img {
  /* photo paysage : ancrée en haut (sous la barre du logo), pleine largeur, aussi haute que possible
     tant que le sac (logo compris) et la tête + les épaules de Tonio restent entiers (100vw ≈ 46 % de l’écran) ;
     fondu long vers le noir de la page sur les 38 % du bas, aucun bord franc. */
  top: calc(50px + env(safe-area-inset-top)); bottom: auto; height: min(58%, 100vw);
  object-fit: cover; background: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 62%, transparent 100%);
}
.tr-accueil-profil.tr-profil-pilule { width: auto; height: 44px; padding: 0 14px 0 10px; border-radius: 22px; display: flex; align-items: center; gap: 6px; background: var(--tr-carte-2); border-color: var(--tr-ligne-forte); color: var(--tr-texte); font: 600 15px/1 var(--tr-police); }
.tr-accueil-profil.tr-profil-pilule .tr-ico { color: var(--tr-champagne); }
.tr-accueil-profil.tr-tonio-rond { left: 0; right: auto; width: 44px; height: 44px; background: url('./photos/tr-menu.jpg') -60px -46px / 169px auto no-repeat, var(--tr-carte-2); border-color: var(--tr-ligne-forte); }
.tr-tonio-rond .tr-tonio-bulle { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--tr-or); color: var(--tr-sur-or); border: 2px solid var(--tr-fond); }
.tr-tonio-rond .tr-tonio-bulle svg { width: 11px; height: 11px; }
.tr-sec-titre { margin: 28px 0 12px !important; text-align: left; }
.tr-sec-sous { margin: -6px 0 12px; color: var(--tr-texte-2); font-size: 13px; line-height: 1.4; text-align: left; }
.tr-offre { display: block; width: 100%; text-align: left; padding: 16px; margin: 0 0 12px; color: var(--tr-texte); cursor: pointer; }
.tr-offre-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.tr-offre-tete .tr-chevron, .tr-offre-pied .tr-chevron { color: var(--tr-texte-2); }
.tr-offre-prix { color: var(--tr-or-vif); font: 700 20px/1.2 var(--tr-police); white-space: nowrap; }
.tr-offre-prix small { color: var(--tr-texte-2); font-size: 13px; font-weight: 400; }
.tr-offre-pour { display: block; margin: 6px 0 8px; color: var(--tr-texte-2); font-size: 14px; line-height: 1.45; }
.tr-offre-points { margin: 0; padding: 0; list-style: none; }
.tr-offre-points li { position: relative; padding: 6px 0 6px 22px; font-size: 14px; line-height: 1.4; color: var(--tr-texte); border-top: 1px solid var(--tr-ligne); }
.tr-offre-points li::before { content: '✓'; position: absolute; left: 0; color: var(--tr-or-vif); }
.tr-offre-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--tr-texte-2); }
.tr-post { display: block; width: 100%; text-align: left; padding: 16px; margin: 0 0 12px; cursor: pointer; color: var(--tr-texte); }
.tr-post-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tr-post-tete .tr-rond-ico { width: 36px; height: 36px; flex: 0 0 36px; }
.tr-post-tete .tr-rond-ico .tr-ico { width: 20px; height: 20px; }
.tr-post-qui { flex: 1; min-width: 0; font-size: 13px; color: var(--tr-texte-2); line-height: 1.3; }
.tr-post-qui b { display: block; color: var(--tr-texte); font-size: 14px; }
.tr-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--rond-puce); font: 600 12px/1 var(--tr-police); white-space: nowrap; }
.tr-pill.bien { color: var(--fait); background: color-mix(in srgb, var(--fait) 14%, transparent); border: 1px solid color-mix(in srgb, var(--fait) 45%, transparent); }
.tr-pill.limiter { color: var(--feu); background: color-mix(in srgb, var(--feu) 14%, transparent); border: 1px solid color-mix(in srgb, var(--feu) 45%, transparent); }
.tr-pill.neutre { color: var(--tr-texte-2); background: var(--tr-carte-3); border: 1px solid var(--tr-ligne); }
.tr-post h3 { margin: 0 0 4px; font: 700 18px/1.25 var(--tr-police); color: var(--tr-texte); }
.tr-post-meta { margin: 0 0 10px; font-size: 13px; color: var(--tr-texte-2); line-height: 1.4; }
.tr-post { cursor: default; }
.tr-post-exo { cursor: pointer; }
.tr-post-ingr { margin: 0; padding: 0; list-style: none; }
.tr-post-ingr li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--tr-texte); border-top: 1px solid var(--tr-ligne); }
.tr-post-ingr li:first-child { border-top: 0; }
.tr-post-ingr li small { display: block; margin-top: 2px; font-size: 12px; color: var(--tr-texte-2); }
.tr-post-indic { margin: 6px 0 0; font-size: 12px; line-height: 1.35; color: var(--tr-texte-2); }
.tr-post-conseil { color: var(--tr-texte-2); }
.tr-post-ingr li b { flex: 0 0 auto; font-weight: 600; color: var(--tr-texte-2); font-variant-numeric: tabular-nums; }
.tr-post-nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 2px; }
.tr-post-nutri div { padding: 8px 4px; border-radius: 12px; background: var(--tr-carte-3); border: 1px solid var(--tr-ligne); text-align: center; min-width: 0; }
.tr-post-nutri dt { font-size: 11px; line-height: 1.2; color: var(--tr-texte-2); }
.tr-post-nutri dd { margin: 3px 0 0; font: 700 15px/1.1 var(--tr-police); color: var(--tr-or-vif); white-space: nowrap; }
.tr-post-resume { margin-bottom: 8px; }
.tr-post-exo.ouvert .tr-post-resume { display: none; } /* ouvert : « Comment faire » donne toutes les étapes */
.tr-post-texte { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tr-texte); }
.tr-post-fiche { margin: 14px 0 0; }
.tr-post-fiche div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--tr-ligne); font-size: 14px; line-height: 1.4; }
.tr-post-fiche dt { color: var(--tr-texte-2); }
.tr-post-fiche dd { margin: 0; color: var(--tr-texte); }
.tr-post-lien { margin: 10px 0 0; font-size: 13px; }
button.tr-post-ouvrir { background: none; border: 0; padding: 4px 0; min-height: 32px; cursor: pointer; }
.tr-fil-sources { margin: 4px 0 8px; padding: 0 16px; font-size: 12px; line-height: 1.45; color: var(--tr-texte-2); }
.tr-fil-sources summary { cursor: pointer; list-style: none; position: relative; padding-left: 14px; }
.tr-fil-sources summary::-webkit-details-marker { display: none; }
.tr-fil-sources summary::before { content: '▸'; position: absolute; left: 0; top: 0; }
.tr-fil-sources[open] summary::before { content: '▾'; }
.tr-fil-sources ul { margin: 6px 0 0; padding-left: 1.2em; }
.tr-fil-sources p { margin: 6px 0 0; }
.tr-post-schema:empty { display: none; }
.tr-post-schema { margin: 6px 0 4px; border-radius: 14px; overflow: hidden; }
.tr-post .schema-exo-bar, .tr-post .schema-exo-hint { display: none; }
.tr-post .schema-exo-planches { max-width: 78%; margin: 0 auto; }
.tr-post-sous { margin: 14px 0 6px; font: 600 13px/1 var(--tr-police); letter-spacing: .12em; text-transform: uppercase; color: var(--tr-texte-2); }
.tr-post-etapes, .tr-post-points { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.5; color: var(--tr-texte); }
.tr-post-etapes li + li, .tr-post-points li + li { margin-top: 4px; }
.tr-post-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--tr-texte-2); }
.tr-post-va { margin-top: 14px; }
.tr-post-ouvrir { display: block; margin-top: 12px; font: 600 14px/1 var(--tr-police); color: var(--tr-or-vif); }
/* offres (offres.js) */
.tr-offre.recommandee { border-color: var(--tr-choisi); box-shadow: 0 0 0 1px var(--tr-choisi-doux), 0 10px 26px -16px var(--tr-choisi); }
.tr-offre-tete { justify-content: flex-start; flex-wrap: wrap; }
.tr-offre-tete b { margin-right: auto; }
.tr-pill.or { color: var(--tr-sur-or); background: var(--tr-or); border: 1px solid var(--tr-or); }
.tr-offre > .tr-offre-prix { display: block; margin-top: 6px; }
.tr-offre-pied { justify-content: flex-end; gap: 4px; color: var(--tr-or-vif); font-weight: 600; }
.tr-offre-pied .tr-chevron { color: var(--tr-or-vif); }
.tr-offre-titre { margin: 0 0 8px; }
.tr-offre-pills { display: flex; gap: 8px; margin: 0 0 12px; }
.tr-offre-prix.grand { font-size: 26px; margin: 4px 0 16px; }
.tr-offre-periodes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.tr-offre-periodes .puce { min-height: 44px; }
.tr-offre-periodes .puce.actif { background: var(--tr-choisi-doux); border-color: var(--tr-choisi); color: var(--tr-choisi-vif); }
.tr-offre-bloc { padding: 14px 16px; margin: 0 0 12px; }
.tr-offre-points.sans-coche li { padding-left: 0; color: var(--tr-texte-2); }
.tr-offre-points.sans-coche li::before { content: none; }
.tr-offre-points li:first-child { border-top: 0; }
.tr-offre-page .tr-cta { margin-top: 6px; }
/* 29/09 — le Livre reste accessible sur les offres aussi (« depuis partout ») : sa place libre se calcule comme ailleurs. */

.tr-offre-equiv { margin: -8px 0 16px; color: var(--tr-texte-2); font-size: 14px; }
/* écrans d'offre courts : le fond du body descend jusqu'en bas (pas de coupure au-dessus de la barre) */
html[data-page^="abonnement"] body { min-height: 100vh; min-height: 100dvh; }

/* ══ Étape 2 (25/09) — zones tactiles ≥ 44 px. Rien d'autre ne bouge. ══ */
/* Minuteur : « Passer » (41 px de haut) et « Finir ici » (31 px) passent à 44 px, alignés sur la même ligne,
   et au-dessus du halo du bouton Pause (qui débordait sur « Passer »). */
.tr-run-liens { position: relative; z-index: 1; align-items: center; margin-top: 4px; }
.tr-run-liens .tr-lien:not([hidden]) { min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.tr-run-liens .finir-ici:not([hidden]) { width: auto; margin-top: 0; }
/* Onglet latéral « Exercices » : 36 px de large → zone de toucher de 46 px (≥ 44 même arrondie au pixel), étendue de façon invisible vers la gauche. */
.btn-livre-bord::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; transform: translateZ(0); }
/* translateZ(0) : la zone invisible passe sur son propre calque. Sans ça, le coin arrondi (flou d'arrière-plan) de l'onglet
   variait d'un niveau sur 9 pixels, invisible à l'œil mais pas octet pour octet identique à la prod. */
/* motion.js pose .tap-host (overflow: hidden) au premier appui : sans ceci, la zone étendue serait coupée dès le 2e toucher. */
html .btn-livre-bord.tap-host { overflow: visible; }
/* Onglet « Exercices » : à l'appui, motion.js pose .tap-press (futur2030.css : transform scale(.96), ou none !important
   en mouvement réduit), ce qui effaçait translateY(50%) : l'onglet sautait de 40 px vers le haut, le relâchement tombait
   à côté et le clic souris ne partait jamais. On garde le décalage vertical. */
html .btn-livre-bord.tap-press, html .btn-livre-bord.is-pressed, html .btn-livre-bord:active { transform: translateY(-50%) scale(.97) !important; }
@media (prefers-reduced-motion: reduce) {
  html .btn-livre-bord.tap-press, html .btn-livre-bord.is-pressed, html .btn-livre-bord:active { transform: translateY(-50%) !important; }
}

/* 29/09 — Mes favoris (onglet Séances) */
.tr-favoris-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tr-favoris-tete b { color: var(--tr-or); font-size: 16px; }
.tr-favoris-tete small { color: #A0A3A8; }
.tr-favoris-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-favoris-puces button { min-height: 44px; padding: 8px 14px; border-radius: 22px; border: 1px solid rgba(212,175,55,.45); background: rgba(212,175,55,.08); color: #F2EDE4; font: 600 14px/1.2 system-ui; text-align: left; }
.tr-favoris-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.tr-favoris-actions .bouton { min-height: 44px; }
.tr-favoris-vide b { color: var(--tr-or); }

/* 02/10 (Tonio : « la lampe de répétition en plus gros, dans une couleur différente, que ça saute aux yeux ») — la dose qui attend, en grand,
   cyan électrique (l'or est celui du thème, le rouge celui de l'effort) : lisible à bout de souffle, d'un coup d'œil, à un mètre du téléphone */
.tr-lampe { display: inline-flex; align-items: baseline; justify-content: center; gap: 8px; padding: 6px 18px; border-radius: 999px;
  color: #04131A; background: #3FE0FF; box-shadow: 0 0 0 2px rgba(63,224,255,.35), 0 0 22px rgba(63,224,255,.55); font-weight: 800; line-height: 1; }
.tr-lampe b { font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.tr-lampe span { font-size: 17px; text-transform: lowercase; }
.tr-lampe-bas { display: block; margin-top: 8px; color: #9BEFFF; font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.tr-run-apres:has(.tr-lampe), .tr-exo-ligne:has(.tr-lampe) { margin-top: 14px; }
@media (prefers-contrast: more) { .tr-lampe { box-shadow: 0 0 0 3px #fff; } }

/* 03/10 (Alexandre : « rends plus joli le badge “10 répétitions” ») — AJOUT, surcharge la lampe de répétition ci-dessus sans la modifier :
   même cyan de la charte, mais en verre éclairé (reflet haut, bord clair, ombre intérieure basse), halo à deux couches, chiffre plus grand,
   mot espacé ; le contraste texte/fond reste ≥ 9:1, AAA (#03141C sur le cyan, du plus clair au plus foncé du dégradé). Tout est dans ce bloc : le retirer rend la lampe d'avant. */
.tr-lampe { gap: 10px; padding: 8px 24px 9px; border: 1px solid rgba(214,251,255,.7); color: #03141C;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 52%), linear-gradient(180deg, #7DF0FF 0, #3FE0FF 48%, #12C4EC 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(6,59,98,.28), 0 0 0 3px rgba(8,191,234,.22), 0 6px 18px rgba(8,191,234,.38), 0 0 34px rgba(63,224,255,.34);
  text-shadow: 0 1px 0 rgba(255,255,255,.35); animation: tr-lampe-souffle 4.3s ease-in-out infinite; }
.tr-lampe b { font-size: 46px; font-weight: 900; letter-spacing: -1px; }
.tr-lampe span { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.tr-lampe-bas { margin-top: 10px; color: #C4F6FF; font-size: 16px; letter-spacing: .4px; text-shadow: 0 0 12px rgba(8,191,234,.55); }
.tr-run-apres:has(.tr-lampe), .tr-exo-ligne:has(.tr-lampe) { margin-top: 16px; }
@keyframes tr-lampe-souffle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.07); } }
@media (prefers-reduced-motion: reduce) { .tr-lampe { animation: none; } }
@media (prefers-contrast: more) { .tr-lampe { background: #3FE0FF; border-color: #fff; box-shadow: 0 0 0 3px #fff; text-shadow: none; color: #000; } .tr-lampe-bas { color: #fff; text-shadow: none; } }
@media (forced-colors: active) { .tr-lampe { border: 2px solid CanvasText; forced-color-adjust: auto; animation: none; } }
@media (max-width: 340px) { .tr-lampe { padding: 7px 18px 8px; } .tr-lampe b { font-size: 42px; } }
