/* Ton coach — interface. Style « Doux » : clair, arrondi, police Manrope (hébergée dans l'appli, licence OFL). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/polices/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/polices/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --fond: #f6f4fb;
  --carte: #ffffff;
  --encre: #1d1b2e;
  --doux: #6e6a85;
  --texte2: #3f3b58;
  --ligne: #e6e2f2;
  --ligne2: #efecf7;
  --accent: #7c3aed;
  --accent-texte: #6d28d9;
  --accent-fond: #f3ecff;
  --accent-bord: #d8c7fb;
  --puce-fond: #ede4fe;
  --puce-texte: #5b21b6;
  --ok: #10a874;
  --ok-fond: #e1f7ee;
  --ok-texte: #0b6e4c;
  --orange: #f59e0b;
  --orange-fond: #fff2d9;
  --orange-texte: #995a00;
  --rouge: #f43f5e;
  --rouge-fond: #ffe5ea;
  --rouge-texte: #be123c;
  --facile: #22c493;
  --recup: #bdeedd;
  --longue: #6366f1;
  --longue-clair: #d9dafd;
  --rythme: #f59e0b;
  --fractionne: #f43f5e;
  --course: #8b5cf6;
  --renfo: #0ea5b7;
  --sombre: #1d1b2e;
  --sombre-texte: #efedff;
  --sombre-doux: rgba(255, 255, 255, .78);
  --degrade: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --ombre: 0 4px 18px rgba(60, 40, 120, .07);
  --rayon: 22px;
  --titre: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
html.sombre {
  --fond: #121124;
  --carte: #1c1a33;
  --encre: #ecebf7;
  --doux: #a19dbd;
  --texte2: #cfcce6;
  --ligne: #2c2948;
  --ligne2: #24223d;
  --accent: #a78bfa;
  --accent-texte: #c4b5fd;
  --accent-fond: #261f45;
  --accent-bord: #4c3a8a;
  --puce-fond: #2e2557;
  --puce-texte: #d8ccff;
  --ok: #34d399;
  --ok-fond: #12302a;
  --ok-texte: #86efc4;
  --orange: #fbbf24;
  --orange-fond: #33280f;
  --orange-texte: #fcd581;
  --rouge: #fb7185;
  --rouge-fond: #3a1a26;
  --rouge-texte: #fda4b4;
  --recup: #1f4a3d;
  --longue-clair: #2b2d5e;
  --renfo: #22c3d6;
  --sombre: #0b0a18;
  --ombre: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--encre); }
body {
  font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body.avec-onglets { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.titre-num { font-family: var(--titre); font-weight: 700; letter-spacing: -0.3px; }

/* ------------------------------------------------ mise en page */
.ecran { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.entete { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 12px; }
.entete h1 { font-family: var(--titre); font-size: 26px; font-weight: 700; }
.entete .surtitre { font-size: 13px; color: var(--doux); }
.entete-droite { display: flex; align-items: center; gap: 10px; }
.etat-synchro { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doux); background: none; border: 0; padding: 8px 0; }
.etat-synchro i { width: 8px; height: 8px; border-radius: 4px; background: var(--ok); }
.etat-synchro.en-cours i { background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.rond { width: 44px; height: 44px; border-radius: 22px; background: var(--sombre); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.retour { width: 44px; height: 44px; border-radius: 12px; background: var(--carte); border: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
h2.section { font-size: 18px; font-weight: 700; margin-top: 6px; }
.ligne-section { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.ligne-section a { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------ cartes */
.carte { background: var(--carte); border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.carte.serree { padding: 6px 16px; gap: 0; }
.carte.sombre { background: var(--sombre); color: #fff; }
.carte.sombre .doux { color: var(--sombre-doux); }
.carte.proposition { background: var(--accent-fond); border: 1.5px solid var(--accent-bord); }
.carte.cliquable { text-decoration: none; color: inherit; cursor: pointer; border: 0; text-align: left; width: 100%; }
.surtitre-carte { font-size: 13px; font-weight: 700; color: var(--puce-texte); text-transform: uppercase; letter-spacing: .5px; display: flex; gap: 8px; align-items: center; }
.doux { color: var(--doux); }
.petit { font-size: 13px; }
.tres-petit { font-size: 12px; }
p { margin: 0; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tuile { background: var(--carte); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tuile .valeur { font-family: var(--titre); font-size: 24px; font-weight: 700; }
.tuile .valeur small { font-size: 13px; font-weight: 600; }
.bon { color: var(--ok); } .moyen { color: var(--orange-texte); } .mauvais { color: var(--rouge-texte); }
.puce { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.puce.ok { background: var(--ok-fond); color: var(--ok-texte); }
.puce.orange { background: var(--orange-fond); color: var(--orange-texte); }
.puce.rouge { background: var(--rouge-fond); color: var(--rouge-texte); }
.puce.neutre { background: var(--ligne2); color: var(--texte2); }
.puces { display: flex; gap: 6px; flex-wrap: wrap; }
.bandeau { border-radius: 16px; padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.bandeau.ok { background: var(--ok-fond); color: var(--ok-texte); }
.bandeau.info { background: var(--carte); }
.bandeau.attention { background: var(--orange-fond); color: var(--orange-texte); }
.bandeau.alerte { background: var(--rouge-fond); color: var(--rouge-texte); }

/* ------------------------------------------------ boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 0;
  background: var(--sombre); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; width: 100%; }
html.sombre .btn { background: #eef0f3; color: #14171f; }
html.sombre .rond { background: #2a2e35; }
.btn.accent { background: var(--accent); color: #14171f; font-weight: 700; }
.btn.contour { background: transparent; color: var(--encre); border: 1.5px solid var(--encre); }
.btn.clair { background: var(--carte); color: var(--encre); border: 1.5px solid var(--ligne); font-weight: 500; }
.btn.petit { min-height: 44px; font-size: 14px; border-radius: 14px; }
.btn.lien { background: none; color: var(--encre); min-height: 44px; font-weight: 500; }
.btn:disabled { opacity: .45; }
.rangee { display: flex; gap: 8px; }
.rangee > * { flex: 1; }
.pied { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }

/* ------------------------------------------------ choix */
.choix-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 16px; border-radius: 18px;
  background: var(--carte); border: 2px solid var(--carte); text-align: left; min-height: 84px; }
.choix.ligne { flex-direction: row; justify-content: space-between; align-items: center; min-height: 64px; width: 100%; }
.choix b { font-family: var(--titre); font-size: 20px; }
.choix span { font-size: 13px; color: var(--doux); }
.choix.choisi { background: var(--sombre); color: #fff; border-color: var(--sombre); }
.choix.choisi span { color: var(--sombre-texte); }
.pilule { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--carte); border: 1.5px solid var(--ligne); font-size: 14px; font-weight: 500; }
.pilule.choisi { background: var(--puce-fond); color: var(--puce-texte); border-color: var(--accent); }
.pilules { display: flex; gap: 8px; flex-wrap: wrap; }
.jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jours button { height: 52px; border-radius: 14px; font-weight: 600; background: var(--carte); border: 1.5px solid var(--ligne); }
.jours button.choisi { background: var(--sombre); color: #fff; border-color: var(--sombre); }
.compteur { display: flex; align-items: center; gap: 12px; }
.compteur button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--carte); font-size: 20px; }
.compteur b { font-family: var(--titre); font-size: 24px; min-width: 24px; text-align: center; }
.echelle { display: grid; gap: 6px; }
.echelle button { height: 46px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--carte); font-weight: 600; font-size: 14px; }
.echelle-bornes { display: flex; justify-content: space-between; font-size: 12px; color: var(--doux); }
.question { display: flex; flex-direction: column; gap: 8px; }
.question .tete { display: flex; justify-content: space-between; align-items: baseline; }
.question .tete b { font-size: 16px; }
.question .tete span { font-size: 14px; font-weight: 600; color: var(--accent-texte); }

/* ------------------------------------------------ formulaires */
label.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--doux); }
.champ input, .champ select, .champ textarea, input.champ, textarea.champ, select.champ {
  min-height: 52px; border-radius: 14px; border: 1.5px solid var(--ligne); background: var(--carte); padding: 12px 16px; font-size: 16px;
  font-weight: 400; color: var(--encre); width: 100%; }
.champ textarea, textarea.champ { min-height: 80px; resize: vertical; }
.bascule { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--carte); border-radius: 16px; padding: 14px 16px; }
.bascule input { width: 22px; height: 22px; accent-color: var(--sombre); }

/* ------------------------------------------------ tunnel */
.etapes-tunnel { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.etapes-tunnel .barres { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.etapes-tunnel .barres i { height: 4px; border-radius: 2px; background: var(--ligne); }
.etapes-tunnel .barres i.fait { background: var(--encre); }
.grand-titre { font-family: var(--titre); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.4px; }
.liste-verif { display: flex; flex-direction: column; gap: 14px; }
.liste-verif .item { display: flex; align-items: center; gap: 12px; }
.coche { width: 28px; height: 28px; border-radius: 14px; background: var(--ok-fond); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.roue { width: 28px; height: 28px; border-radius: 14px; border: 3px solid var(--ligne); border-top-color: var(--accent); animation: tourne 0.9s linear infinite; flex-shrink: 0; }
.roue.petite { width: 18px; height: 18px; border-width: 2px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.jauge { height: 6px; border-radius: 3px; background: var(--ligne2); overflow: hidden; }
.jauge > div { height: 100%; border-radius: 3px; background: var(--encre); }
.carte.sombre .jauge { background: #3a3f4a; }
.carte.sombre .jauge > div { background: #fff; }

/* ------------------------------------------------ feu du jour */
.feu { display: flex; gap: 16px; align-items: center; }
.feu .pastille-feu { width: 72px; height: 72px; border-radius: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feu.vert .pastille-feu { background: var(--ok-fond); color: var(--ok); }
.feu.orange .pastille-feu { background: var(--orange-fond); color: var(--orange); }
.feu.rouge .pastille-feu { background: var(--rouge-fond); color: var(--rouge); }
.feu.inconnu .pastille-feu { background: var(--ligne2); color: var(--doux); }
.feu h3 { font-family: var(--titre); font-size: 20px; line-height: 1.2; }

/* ------------------------------------------------ coach */
.mot { display: flex; gap: 12px; align-items: flex-start; }
.avatar-coach { width: 40px; height: 40px; border-radius: 20px; background: var(--accent); color: #14171f; display: flex; align-items: center;
  justify-content: center; font-family: var(--titre); font-weight: 700; flex-shrink: 0; }
.bulle { background: var(--carte); border-radius: 4px 20px 20px 20px; padding: 14px 16px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.bulle.moi { align-self: flex-end; background: var(--sombre); color: #fff; border-radius: 20px 20px 4px 20px; max-width: 85%; }
.fil { display: flex; flex-direction: column; gap: 10px; }
.fil .bulle:not(.moi) { align-self: flex-start; max-width: 92%; }
.suggestions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.suggestions button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--ligne); background: var(--carte); font-size: 14px; }
.saisie { display: flex; gap: 8px; align-items: flex-end; }
.saisie textarea { flex: 1; min-height: 52px; max-height: 160px; border-radius: 26px; border: 1.5px solid var(--ligne); background: var(--carte); padding: 14px 18px; font-size: 15px; resize: none; }
.saisie button { width: 52px; height: 52px; border-radius: 26px; border: 0; background: var(--sombre); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ------------------------------------------------ séances */
.famille { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.fam-facile { background: var(--ok-fond); color: var(--ok-texte); }
.fam-longue { background: #e1e9fb; color: #23468f; }
.fam-rythme { background: var(--orange-fond); color: var(--orange-texte); }
.fam-fractionne { background: var(--rouge-fond); color: var(--rouge-texte); }
.fam-course { background: #ece4fb; color: #4b2a96; }
.fam-renfo { background: #dff6f9; color: #0b6874; }
html.sombre .fam-renfo { background: #10343a; color: #8ee6f0; }
html.sombre .fam-longue { background: #1b2640; color: #a9c1f5; }
html.sombre .fam-course { background: #251b3d; color: #c9b4f5; }
.profil { display: flex; align-items: flex-end; gap: 2px; height: 56px; }
.profil.grand { height: 80px; }
.profil.mini { height: 22px; }
.profil div { border-radius: 3px; min-width: 2px; }
.seance-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.seance-tete .gros { font-family: var(--titre); font-size: 24px; font-weight: 700; line-height: 1.15; }
.ligne-liste { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne2); text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.carte.serree > .ligne-liste:first-child, .carte.serree > .ligne-liste.premier { border-top: 0; }
.barre-type { width: 8px; height: 32px; border-radius: 4px; flex-shrink: 0; }
.ligne-liste .jour { width: 38px; font-size: 13px; font-weight: 600; color: var(--doux); flex-shrink: 0; }
.ligne-liste .milieu { flex: 1; min-width: 0; }
.ligne-liste .milieu b { font-size: 15px; display: block; }
.ligne-liste .droite { text-align: right; font-size: 14px; font-weight: 600; }
.repetition-titre { font-size: 13px; font-weight: 700; color: var(--rouge-texte); padding-top: 12px; border-top: 1px solid var(--ligne2); }
.semaine-bande { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.semaine-bande .j { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.semaine-bande .num { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.semaine-bande .num.auj { background: var(--sombre); color: #fff; }
.semaine-bande .num.fait { background: var(--ok-fond); color: var(--ok-texte); }
.semaine-bande .num.manque { background: var(--rouge-fond); color: var(--rouge-texte); }
.semaine-bande .trait { width: 22px; height: 4px; border-radius: 2px; }
.semaine-plan { border: 2px solid transparent; }
.semaine-plan.en-cours { border-color: var(--encre); }
.phases { display: grid; gap: 4px; }
.phases i { height: 10px; border-radius: 5px; }
.barres { display: flex; align-items: flex-end; gap: 6px; }
.barres .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.barres .col div { width: 100%; border-radius: 5px 5px 2px 2px; }
.barres .col span { font-size: 11px; color: var(--doux); }
.repartition { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }

/* ------------------------------------------------ navigation */
nav.onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--carte); border-top: 1px solid var(--ligne);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
nav.onglets a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--doux); text-decoration: none; padding: 6px 0; }
nav.onglets a.actif { color: var(--encre); font-weight: 700; }
nav.onglets svg { width: 24px; height: 24px; }

/* ------------------------------------------------ feuilles (modales du bas) et toasts */
.voile { position: fixed; inset: 0; background: rgba(10, 12, 16, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: var(--fond); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.feuille h3 { font-family: var(--titre); font-size: 22px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 30;
  background: var(--sombre); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 40px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.attente { display: flex; align-items: center; gap: 12px; color: var(--doux); font-size: 14px; }
.vide { text-align: center; padding: 28px 18px; }
.connexion { max-width: 380px; margin: 0 auto; padding: 18vh 24px 24px; display: flex; flex-direction: column; gap: 16px; }
details summary { cursor: pointer; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mode sombre : les éléments choisis passent en clair pour bien se voir */
html.sombre .choix.choisi, html.sombre .jours button.choisi { background: #eef0f3; color: #14171f; border-color: #eef0f3; }
html.sombre .choix.choisi span { color: #3d434f; }
html.sombre .semaine-bande .num.auj { background: #eef0f3; color: #14171f; }
html.sombre .bulle.moi { background: #2a2e35; }
html.sombre .saisie button { background: #eef0f3; color: #14171f; }
html.sombre .saisie button svg { stroke: #14171f; }

.etapes-seance { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--doux); line-height: 1.45; }
.etapes-seance li + li { margin-top: 2px; }
.carte.avertissement { background: var(--orange-fond); color: var(--orange-texte); border-left: 3px solid var(--rythme); margin-bottom: 8px; }

/* ------------------------------------------------ explications (boutons i) */
button.info { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid currentColor; background: none; color: var(--doux);
  font: italic 700 12px/1 Georgia, serif; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; opacity: .85; }
button.info:hover { opacity: 1; }
.carte.sombre button.info { color: var(--sombre-doux); }
.bandeau button.info { color: inherit; margin-left: auto; }
.titre-info { display: flex; align-items: center; gap: 8px; }
.explication, .bloc-info { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--texte2); }
.bloc-info { background: var(--carte); border-radius: 16px; padding: 14px 16px; }
.bloc-info b { color: var(--encre); font-size: 14px; }
.bloc-info.chez-toi { border-left: 3px solid var(--accent); }
.bloc-info .source { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }

/* ------------------------------------------------ progrès */
.statut-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.statut-titre { font-family: var(--titre); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.4px; }
.stats-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #2e333d; padding-top: 14px; }
.stats-hero .v { font-family: var(--titre); font-size: 22px; font-weight: 700; }
.stats-hero .l { font-size: 12px; color: var(--sombre-doux); }
.defile { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.defile::-webkit-scrollbar { display: none; }
.medaille { flex-shrink: 0; width: 116px; background: var(--carte); border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.medaille .disque { width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; background: var(--orange-fond); color: var(--orange-texte); font-family: var(--titre); font-weight: 700; font-size: 13px; }
.medaille.recent .disque { background: var(--accent); color: #14171f; }
.medaille .t { font-family: var(--titre); font-weight: 700; font-size: 18px; }
.jauge-fraicheur { position: relative; display: grid; grid-template-columns: 15fr 15fr 15fr 20fr; gap: 3px; height: 12px; margin-top: 4px; }
.jauge-fraicheur i { border-radius: 6px; }
.jauge-fraicheur .repere { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--encre); transform: translateX(-2px); box-shadow: 0 0 0 2px var(--carte); }
.legende-jauge { display: grid; grid-template-columns: 15fr 15fr 15fr 20fr; gap: 3px; font-size: 11px; color: var(--doux); text-align: center; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffres .v { font-family: var(--titre); font-size: 22px; font-weight: 700; }
.allures-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.allures-grille > div { display: flex; gap: 10px; align-items: center; }
.allures-grille .barre-type { height: 36px; }

/* ------------------------------------------------ séance : blocs avec allure cible */
.bloc { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ligne2); }
.carte.serree > .bloc:first-child { border-top: 0; }
.bloc .milieu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bloc .milieu b { font-size: 15px; }
.bloc .droite { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bloc .allure-cible { font-family: var(--titre); font-weight: 700; font-size: 17px; white-space: nowrap; }
.bloc .allure-cible small { font-size: 12px; font-weight: 600; color: var(--doux); }
.repetition { border-top: 1px solid var(--ligne2); padding: 10px 0 2px; }
.repetition > .tete { font-size: 13px; font-weight: 700; color: var(--rouge-texte); display: flex; gap: 6px; align-items: center; }
.repetition .bloc { padding-left: 14px; border-top-style: dashed; }
.benefice { background: var(--ok-fond); color: var(--ok-texte); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.benefice b { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.benefice p { font-size: 15px; line-height: 1.5; }

/* Suggestions du coach : défilement sans barre visible */
.suggestions { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.suggestions::-webkit-scrollbar { display: none; }

/* ================================================= refonte : composants visuels ================================== */
button.info { width: 16px; height: 16px; border-radius: 8px; border-width: 1.2px; font-size: 10px; opacity: .6; }
.titre-info { gap: 6px; }

/* Tuiles d'indicateurs : la couleur dit l'état */
.kpi { background: var(--carte); border-radius: 18px; padding: 16px 16px 14px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; --ton: var(--doux); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ton); }
.kpi.ton-ok { --ton: var(--ok); } .kpi.ton-attention { --ton: var(--orange); } .kpi.ton-alerte { --ton: var(--rouge); }
.kpi.ton-info { --ton: var(--longue); } .kpi.ton-neutre { --ton: var(--ligne); }
.kpi-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--doux); }
.kpi-valeur { font-family: var(--titre); font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.3px; }
.kpi-valeur small { font-size: 13px; font-weight: 600; color: var(--doux); margin-left: 3px; letter-spacing: 0; }
.kpi-etat { font-size: 13px; font-weight: 700; color: var(--ton); }
.kpi.ton-neutre .kpi-etat { color: var(--doux); }
.kpi-sous { font-size: 12px; color: var(--doux); line-height: 1.4; }
.grille-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grille-kpi.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Anneaux */
.anneau { position: relative; flex-shrink: 0; }
.anneau-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.anneau-centre b { font-family: var(--titre); font-size: 22px; }
.anneau-centre span { font-size: 11px; color: var(--doux); }
.carte.sombre .anneau circle:first-child { stroke: #2a2e35; }

/* Jauges segmentées */
.jauge-zones { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.jauge-piste { position: relative; display: flex; gap: 3px; height: 10px; }
.jauge-piste i { height: 100%; border-radius: 5px; opacity: .9; }
.jauge-repere { position: absolute; top: -5px; width: 5px; height: 20px; border-radius: 3px; background: var(--encre); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--carte); }
.carte.sombre .jauge-repere { background: #fff; box-shadow: 0 0 0 2px #000; }
.jauge-legende { display: flex; gap: 3px; font-size: 10.5px; color: var(--doux); }
.jauge-legende span { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-cible { position: relative; display: flex; gap: 2px; height: 12px; }
.barre-cible > div { border-radius: 6px; }
.barre-cible .cible { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--encre); transform: translateX(-50%); }

/* Bloc de section : titre + contenu */
.section-tete { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.section-tete h2 { font-family: var(--titre); font-size: 19px; font-weight: 700; }
.section-tete span { font-size: 13px; color: var(--doux); }
.verdict { display: flex; gap: 14px; align-items: center; }
.verdict .pastille { width: 14px; height: 14px; border-radius: 7px; flex-shrink: 0; }
.ligne-regle { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--ligne2); font-size: 14px; }
.ligne-regle:first-child { border-top: 0; }
.ligne-regle .pastille { width: 18px; height: 18px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stats > div { background: var(--fond); border-radius: 12px; padding: 10px 12px; }
.carte.sombre .mini-stats > div { background: #16181d; }
.mini-stats b { font-family: var(--titre); font-size: 18px; display: block; }
.mini-stats span { font-size: 11.5px; color: var(--doux); }

/* ================================================= mise en page PC : barre latérale et colonnes =================== */
nav .marque, nav.onglets a.lien-profil { display: none; }
.colonnes, .colonnes > div { display: flex; flex-direction: column; gap: 16px; }
body.sans-barre-mobile nav.onglets { display: none; }

@media (min-width: 1000px) {
  body.avec-barre { padding-left: 236px; padding-bottom: 0; }
  body.avec-barre nav.onglets { display: flex; flex-direction: column; top: 0; bottom: 0; right: auto; width: 236px; padding: 26px 14px;
    border-top: 0; border-right: 1px solid var(--ligne); gap: 4px; }
  nav.onglets a { flex-direction: row; gap: 12px; font-size: 15px; padding: 11px 14px; border-radius: 12px; }
  nav.onglets a.actif { background: var(--fond); }
  nav.onglets svg { width: 22px; height: 22px; }
  nav .marque { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 18px; padding: 0 12px 22px; }
  nav.onglets a.lien-profil { display: flex; margin-top: auto; }
  .ecran.l-large { max-width: 1180px; padding: 30px 40px 40px; gap: 18px; }
  .ecran.l-moyen { max-width: 980px; padding: 30px 40px 40px; }
  .ecran.l-etroit { max-width: 640px; padding-top: 40px; }
  .colonnes { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .colonnes.egales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .grille-kpi.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-kpi.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entete .rond { display: none; }
  .entete h1 { font-size: 30px; }
  .suggestions { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .feuille { border-radius: 24px; margin-bottom: 5vh; max-width: 600px; }
  .voile { align-items: center; }
  .defile { margin: 0; padding: 0; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .grille-kpi.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-valeur { font-size: 24px; }
  .mini-stats b { font-size: 16px; }
}

@media (max-width: 520px) {
  .mini-stats > div { padding: 9px 10px; }
  .mini-stats span { font-size: 11px; }
  .statut-titre { font-size: 26px; }
}
@media (max-width: 420px) { .kpi.pleine-largeur-tel { grid-column: 1 / -1; } }
.grille-kpi.compacte { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
.grille-kpi.compacte .kpi { padding: 12px 10px 12px 14px; gap: 3px; }
.grille-kpi.compacte .kpi-valeur { font-size: 21px; }
.grille-kpi.compacte .kpi-tete { font-size: 12px; }
.grille-kpi.compacte .kpi-etat { font-size: 12px; }

/* ------------------------------------------------ fiches d'explication */
.explic { display: flex; flex-direction: column; gap: 14px; }
.explic-tete { display: flex; align-items: center; gap: 12px; }
.explic-tete h3 { flex: 1; font-size: 21px; }
.explic-badge { width: 34px; height: 34px; border-radius: 17px; color: #fff; display: flex; align-items: center; justify-content: center;
  font: italic 700 17px/1 Georgia, serif; flex-shrink: 0; }
.explic-fermer { width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--carte); color: var(--encre); font-size: 22px; line-height: 1; flex-shrink: 0; }
.explic-quoi { font-size: 15.5px; line-height: 1.55; color: var(--texte2); display: flex; flex-direction: column; gap: 6px; }
.explic-zones { display: flex; flex-direction: column; gap: 8px; }
.explic-zone { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--carte); border-left: 4px solid var(--ton); }
.explic-zone .pastille { width: 12px; height: 12px; border-radius: 6px; background: var(--ton); margin-top: 4px; flex-shrink: 0; }
.explic-zone b { display: block; color: var(--ton); font-size: 15px; }
.explic-zone span { font-size: 14px; color: var(--texte2); line-height: 1.45; }
.explic-bloc { border-radius: 14px; padding: 13px 15px; font-size: 14.5px; line-height: 1.5; color: var(--texte2); display: flex; flex-direction: column; gap: 6px; }
.explic-bloc b, .explic-bloc summary { color: var(--encre); font-weight: 700; font-size: 14.5px; }
.explic-bloc summary { cursor: pointer; list-style: none; }
.explic-bloc summary::after { content: " ›"; color: var(--doux); }
.explic-bloc[open] summary { margin-bottom: 6px; }
.explic-bloc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.explic-bloc.lecture { background: color-mix(in srgb, var(--orange) 14%, var(--carte)); }
.explic-bloc.calcul { background: color-mix(in srgb, var(--course) 14%, var(--carte)); }
.explic-bloc.chez-toi { background: color-mix(in srgb, var(--accent) 14%, var(--carte)); }
.explic-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.explic-sources .source { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--doux); background: var(--carte); border-radius: 10px; padding: 6px 10px; }
.explic-sources i { font-style: normal; font-weight: 700; color: var(--texte2); }
.propositions-coach { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--rayon); border: 1.5px dashed var(--accent-bord); }

.propositions-coach { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--rayon); border: 1.5px dashed var(--accent-bord); }


/* ------------------------------------------------ historique : bas des cartes semaine (plan et avant le plan) */
.legende-hist { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; color: var(--doux); }
.legende-hist i, .feux-mini i { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 5px; vertical-align: middle; }
.pied-semaine { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ligne2); }
.pied-infos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.feux-mini { display: flex; gap: 10px; font-size: 12px; color: var(--doux); }
.semaine-chiffres { display: flex; gap: 16px; text-align: right; }
.semaine-chiffres b { display: block; font-family: var(--titre); font-size: 19px; font-weight: 800; line-height: 1.1; }
.semaine-chiffres span { font-size: 11px; color: var(--doux); }
.mot-semaine { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-fond); border-radius: 14px; padding: 11px 13px; }
.mot-semaine .avatar-coach { width: 26px; height: 26px; font-size: 12px; }
.mot-semaine p { font-size: 14px; line-height: 1.45; color: var(--texte2); }
.jours-semaine > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent-texte); list-style: none; }
.jours-semaine > summary::-webkit-details-marker { display: none; }
.jours-semaine > summary::after { content: " ▾"; }
.jours-semaine:not([open]) > summary::after { content: " ▸"; }
.jours-semaine[open] > summary { margin-bottom: 4px; }
.jour-hist { display: grid; grid-template-columns: 42px 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne2); align-items: start; }
.jour-date { width: 42px; display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: 5px 0;
  background: color-mix(in srgb, var(--ton) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--ton) 50%, transparent); }
.jour-date span { font-size: 10.5px; color: var(--doux); }
.jour-date b { font-family: var(--titre); font-size: 17px; font-weight: 800; line-height: 1.1; }
.jour-picto { font-size: 18px; text-align: center; padding-top: 6px; }
.jour-corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.jour-titre { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14.5px; }
.jour-titre .doux { font-size: 12.5px; }
.prevu { display: flex; gap: 6px; align-items: center; font-size: 12.5px; text-decoration: none; color: var(--texte2); }
.jour-recup { font-size: 12px; color: var(--doux); display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.jour-recup .sep { color: var(--ligne); }
/* ------------------------------------------------ sections dépliables */
.section-pliable > summary { list-style: none; cursor: pointer; }
.section-pliable > summary::-webkit-details-marker { display: none; }
.section-pliable > summary h2::after { content: "▾"; font-size: 14px; color: var(--doux); margin-left: 8px; display: inline-block; transition: transform .15s; }
.section-pliable:not([open]) > summary h2::after { transform: rotate(-90deg); }
.section-pliable { display: flex; flex-direction: column; gap: 16px; }
.section-pliable > div { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 999px) { nav.onglets { grid-template-columns: repeat(5, minmax(0, 1fr)); } nav.onglets a { font-size: 11px; } }


/* ================================================= style B « Doux » ================================================= */
h1, h2, h3, .titre-num, .grand-titre, .entete h1, .choix b { letter-spacing: -0.4px; }
.titre-num, .grand-titre, .kpi-valeur, .tuile .valeur, .statut-titre, .anneau-centre b, .mini-stats b { font-weight: 800; }
.carte, .kpi, .tuile, .bascule, .medaille, .bulle:not(.moi) { box-shadow: var(--ombre); }
.carte { border-radius: var(--rayon); }
.carte.sombre { background: var(--degrade); color: #fff; box-shadow: 0 10px 30px rgba(79, 70, 229, .25); }
.carte.sombre .doux, .carte.sombre .tres-petit.doux { color: var(--sombre-doux); }
.carte.sombre .mini-stats > div { background: rgba(255, 255, 255, .14); }
.carte.sombre .mini-stats span { color: rgba(255, 255, 255, .8); }
.carte.sombre .anneau circle:first-child { stroke: rgba(255, 255, 255, .22); }
.carte.sombre button.info { color: #fff; }
/* Tuiles d'indicateurs teintées de la couleur de leur état */
.kpi { border-radius: 18px; background: color-mix(in srgb, var(--ton) 11%, var(--carte)); }
.kpi::before { display: none; }
.kpi.ton-neutre { background: var(--carte); }
html.sombre .kpi { background: color-mix(in srgb, var(--ton) 16%, var(--carte)); }
html.sombre .kpi.ton-neutre { background: var(--carte); }
.mini-stats > div { background: var(--fond); border-radius: 14px; }
/* Boutons */
.btn { border-radius: 16px; font-weight: 700; }
.btn.accent { background: var(--accent); color: #fff; }
html.sombre .btn.accent { color: #14112b; }
.btn.clair { border-color: var(--ligne); box-shadow: var(--ombre); }
.avatar-coach { background: var(--degrade); color: #fff; }
.pilule.choisi { border-color: var(--accent); }
/* Navigation */
nav.onglets { background: var(--carte); box-shadow: 0 -4px 18px rgba(60, 40, 120, .06); border-top-color: var(--ligne2); }
nav.onglets a.actif { color: var(--accent-texte); }
@media (min-width: 1000px) {
  body.avec-barre nav.onglets { box-shadow: 4px 0 24px rgba(60, 40, 120, .05); border-right-color: var(--ligne2); }
  nav.onglets a.actif { background: var(--accent-fond); }
}
/* Feu du jour : la carte prend la couleur du feu */
.carte:has(> .feu.vert) { background: color-mix(in srgb, var(--ok) 9%, var(--carte)); }
.carte:has(> .feu.orange) { background: color-mix(in srgb, var(--orange) 11%, var(--carte)); }
.carte:has(> .feu.rouge) { background: color-mix(in srgb, var(--rouge) 9%, var(--carte)); }
/* Divers */
.bandeau { border-radius: 16px; }
.semaine-bande .num.auj { background: var(--accent); color: #fff; }
.jauge-piste i { opacity: 1; }
.explic-fermer { box-shadow: var(--ombre); }
.feuille { background: var(--fond); }

.explic-sources { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--course) 25%, transparent);
  font-size: 11.5px; color: var(--doux); line-height: 1.4; }
.explic-sources i { font-style: normal; font-weight: 600; color: var(--doux); }

/* ------------------------------------------------ récap de séance */
.carte.recap { background: color-mix(in srgb, var(--ton) 8%, var(--carte)); }
.recap-tete { display: flex; gap: 16px; align-items: center; }
.recap-lignes { display: flex; flex-direction: column; }
.recap-ligne { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ligne2); font-size: 13.5px; }
.recap-ligne.entete { border-top: 0; padding: 0 0 4px; font-size: 11.5px; color: var(--doux); font-weight: 600; }
.recap-ligne small { display: block; color: var(--orange-texte); font-size: 11.5px; font-weight: 600; }
.recap-ligne .pastille { width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }

/* ------------------------------------------------ ajouter une séance */
#ajout { display: flex; flex-direction: column; gap: 18px; }
.etape-ajout { display: flex; flex-direction: column; gap: 10px; }
.etape-ajout > b { font-size: 15px; }
input.pilule { padding: 0 12px; font: inherit; font-size: 14px; color: var(--encre); }
.types-ajout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.type-ajout { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: var(--carte); border: 2px solid transparent; box-shadow: var(--ombre); position: relative; overflow: hidden; }
.type-ajout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fam); }
.type-ajout .nom { font-weight: 800; font-size: 14.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.type-ajout .court { font-size: 12px; color: var(--doux); line-height: 1.35; }
.type-ajout.choisi { border-color: var(--accent); background: var(--accent-fond); }
.type-ajout.interdit { opacity: .5; cursor: not-allowed; }
.type-ajout.deconseille .court { color: var(--orange-texte); }
.badge { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; }
.badge.conseille { background: var(--ok-fond); color: var(--ok-texte); }
.badge.deconseille { background: var(--orange-fond); color: var(--orange-texte); }
.badge.interdit { background: var(--ligne2); color: var(--doux); }
.segmente { display: inline-flex; background: var(--ligne2); border-radius: 12px; padding: 3px; align-self: flex-start; }
.segmente button { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--doux); }
.segmente button.choisi { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }
.pilule:disabled { opacity: .4; }
.apercu-ajout { gap: 10px; }

.lien-ajout { border: 0; background: var(--accent-fond); color: var(--accent-texte); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 10px; }

/* ------------------------------------------------ alignement des écrans */
.section-tete { margin-top: 6px; min-height: 28px; align-items: center; }
.colonnes > div > .section-tete:first-child, .ecran > .section-tete:first-child { margin-top: 0; }
.colonnes.egales { align-items: stretch; }
.colonnes.egales > div > .carte:only-child { flex: 1; }
.colonnes > div { min-width: 0; }
.grille-kpi > .kpi { min-width: 0; }
.ecran > .colonnes + .section-pliable, .ecran > .section-pliable + .section-pliable { margin-top: 4px; }
@media (max-width: 520px) { .boutons-ajout { flex-direction: column-reverse; } }

/* ------------------------------------------------ progrès : pas de blanc dans les cartes */
.carte-repartie { justify-content: space-between; }
.sorties-ligne { display: flex; gap: 6px; margin-top: -4px; }
.sorties-ligne span { flex: 1; text-align: center; font-size: 12px; font-weight: 800; padding: 3px 0; border-radius: 8px; background: var(--ligne2); color: var(--doux); }
.sorties-ligne span.ok { background: var(--ok-fond); color: var(--ok-texte); }
.sorties-ligne span.en-cours { opacity: .55; }
.grille-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.record { background: var(--fond); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.record .disque { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  background: var(--orange-fond); color: var(--orange-texte); }
.record.recent .disque { background: var(--accent); color: #fff; }
.record .t { font-family: var(--titre); font-weight: 800; font-size: 16px; }
.allures-grille { row-gap: 16px; }
@media (min-width: 1000px) { .allures-grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pictogramme des titres de page (même icône que le menu) */
.picto-page { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-fond); color: var(--accent-texte);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 520px) { .picto-page { width: 38px; height: 38px; border-radius: 12px; } .picto-page svg { width: 20px; height: 20px; } }

.programme-note { padding: 8px 0 2px; }
.ligne-liste.programme { opacity: .92; }
.ligne-liste.programme .barre-type { opacity: .7; }
.pastilles-fam { display: inline-flex; gap: 3px; }
.pastille-fam { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }

/* ------------------------------------------------ consigne libre au coach (séance) */
.autre-consigne { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ligne2); padding-top: 12px; }
.autre-consigne .saisie textarea { min-height: 52px; border-radius: 18px; }
.saisie .micro { background: var(--accent-fond); color: var(--accent-texte); }
.saisie .micro.ecoute { background: var(--rouge); color: #fff; animation: pulse .8s infinite alternate; }
.autre-reponse { display: flex; flex-direction: column; gap: 10px; }

/* Progrès : l'état en pleine largeur */
.hero-progres { display: grid; gap: 14px; }
@media (min-width: 900px) { .hero-progres { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
  .hero-droite { grid-template-columns: 1fr; } }
.mini-stats.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.valeurs-utilisees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.valeurs-utilisees > div { background: var(--fond); border-radius: 12px; padding: 10px 12px; }
.valeurs-utilisees b { display: block; font-family: var(--titre); font-size: 17px; font-weight: 800; }
.valeurs-utilisees span { font-size: 12px; color: var(--doux); }
