/* PSB : style inspiré de Samsung Health (cadrage 3.1, v1.4). Sombre, cartes gris foncé très arrondies, accent framboise,
   flamme orange, course en bleu, poids en violet. Hub plein écran : grille de 12 colonnes × 6 rangées sur PC. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(polices/inter.woff2) format('woff2'); }

:root {
  --fond: #000; --carte: #1C1C1E; --survol: #242427; --creux: #2C2C2E; --nuit: #141416;
  --texte: #fff; --gris-clair: #C7C7CC; --gris: #9A9AA0; --eteint: #48484A;
  --accent: #FF4F7B; --flamme: #FF7A1A; --course: #4FA9FF; --poids: #B48CFF;
  --rayon: 28px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--fond); }
body { margin: 0; color: var(--texte); font: 15px/1.4 Inter, system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }

/* ---------- Hub ---------- */
.hub { height: 100vh; min-height: 720px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.tete { display: flex; align-items: center; gap: 14px; padding: 0 6px; }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; align-self: center; }
.logo-img { display: block; height: 40px; width: auto; }
.barre-onglets .logo-img { height: 34px; }
.tete-date { font-size: 15px; color: var(--gris); }
.tete-date::first-letter { text-transform: uppercase; }
/* Lien vers l'appli Android : seulement sur téléphone (voir petits écrans). */
.lien-appli { display: none; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--carte); white-space: nowrap; }

.grille { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 14px; }
.semaine    { grid-column: 1 / 6;   grid-row: 1 / 4; }
.seance     { grid-column: 6 / 10;  grid-row: 1 / 3; }
.flamme     { grid-column: 10 / 13; grid-row: 1 / 4; }
.poids      { grid-column: 6 / 10;  grid-row: 3 / 6; }
.records    { grid-column: 1 / 4;   grid-row: 4 / 7; }
.course     { grid-column: 4 / 6;   grid-row: 4 / 7; }
.programme  { grid-column: 10 / 13; grid-row: 4 / 5; }
.photos     { grid-column: 10 / 13; grid-row: 5 / 7; }
.exercices  { grid-column: 6 / 8;   grid-row: 6 / 7; }
.historique { grid-column: 8 / 10;  grid-row: 6 / 7; }

.c { background: var(--carte); border: 0; border-radius: var(--rayon); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; overflow: hidden; text-align: left; }
button.c:hover { background: var(--survol); }
.c-tete { display: flex; align-items: center; gap: 10px; }
.c-tete h2, .c-titre { font-size: 18px; font-weight: 700; }
.c-titre.petit, .c-sur { font-size: 13px; font-weight: 600; color: var(--gris); }
.c-info { font-size: 13px; color: var(--gris); margin-left: auto; }
.point { width: 10px; height: 10px; border-radius: 50%; margin-left: auto; }
.point.course { background: var(--course); }

.rond { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--creux); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rond:hover:not(:disabled) { background: var(--eteint); }
.rond:disabled { opacity: .3; cursor: default; }
.pilule { min-height: 44px; border: 0; border-radius: 999px; padding: 0 22px; background: var(--creux); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pilule:hover { filter: brightness(1.15); }
.pilule.plein { background: var(--accent); color: #000; }
.pilule.noire { background: #000; color: #fff; }
.pilule svg { width: 13px; height: 13px; fill: currentColor; }
.pilule.danger { min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--gris-clair); }
.pilule.danger.confirmer { background: var(--accent); color: #000; }
.lien { border: 0; background: none; padding: 4px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* Cette semaine : anneau 2/3 et jours ronds (cadrage 2.1) */
.semaine .c-tete h2 { flex-shrink: 0; }
.nav-semaine { display: flex; gap: 6px; }
.anneau-zone { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.anneau { position: relative; height: min(210px, 100%); aspect-ratio: 1; min-height: 120px; }
.anneau svg { width: 100%; height: 100%; display: block; }
.anneau circle { fill: none; stroke-width: 20; }
.anneau-fond { stroke: var(--creux); }
.anneau-plein { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 0 553; transition: stroke-dasharray .4s; }
.anneau-texte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; color: var(--gris); }
.anneau-n { font-size: 60px; font-weight: 800; line-height: 1; color: var(--texte); }
.anneau-n small { font-size: 30px; color: #6E6E73; }
.anneau-etat { font-size: 13px; color: var(--gris-clair); min-height: 18px; }
.anneau-etat b { color: var(--texte); }
.jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jour { border: 0; background: none; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--gris); }
.jour:disabled { cursor: default; }
.rond-jour { position: relative; width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; background: var(--creux); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #000; }
.jour:hover:not(:disabled) .rond-jour { filter: brightness(1.25); }
.jour.futur .rond-jour { background: var(--nuit); }
.jour.aujourdhui { color: var(--texte); font-weight: 700; }
.jour.aujourdhui .rond-jour { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--accent); }
.jour.aujourdhui.vide .rond-jour { background: none; border: 2px dashed var(--accent); box-shadow: none; }
.rond-jour.muscu { background: var(--accent); }
.rond-jour.course { background: var(--course); }
.rond-jour.mixte { background: linear-gradient(90deg, var(--accent) 50%, var(--course) 50%); }
.rond-jour svg { width: 50%; height: 50%; fill: none; stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Prochaine séance : carte pleine framboise */
.seance { background: var(--accent); color: #000; }
.seance .c-sur { color: rgba(0, 0, 0, .7); font-size: 15px; font-weight: 700; }
.seance-nom { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; }
.seance-texte { font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, .7); }

/* Programme : nom et lettres, la prochaine en framboise */
a.c { color: inherit; text-decoration: none; }
a.c:hover { background: var(--survol); }
.programme { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.programme > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.programme-nom { font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lettres { display: flex; gap: 4px; flex-shrink: 0; }
.lettre { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--creux); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.lettre.prochaine { background: var(--accent); color: #000; }
.seance-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.seance-lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid rgba(0, 0, 0, .14); font-size: 14px; font-weight: 600; }
.seance-lignes li:first-child { border-top: 0; }
.seance-lignes li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.seance-lignes .plus-exos { color: rgba(0, 0, 0, .65); font-weight: 600; }
.seance-boutons { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.seance-boutons .pilule { min-height: 42px; font-size: 14px; white-space: nowrap; }
.seance .pilule.noire { padding: 0 14px; }
/* Séance individuelle et séance libre : petits liens texte à côté de « Commencer » */
.liens-seance { display: flex; align-items: center; gap: 8px; }
.lien-seance { color: #000; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 1px 0; white-space: nowrap; }
.lien-seance:hover { color: rgba(0, 0, 0, .7); }
button.lien-seance { border: 0; background: none; font-family: inherit; cursor: pointer; }

/* Flamme : orange, à part de l'accent */
.flamme { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.flamme-icone { width: 96px; height: 96px; flex-shrink: 1; min-height: 40px; fill: none; stroke: var(--eteint); stroke-width: 1.6; stroke-linejoin: round; }
.flamme.vivante .flamme-icone { stroke: var(--flamme); }
.flamme.allumee .flamme-icone { fill: var(--flamme); stroke: var(--flamme); }
.flamme-n { font-size: 72px; font-weight: 800; line-height: 1; }
.flamme-texte { font-size: 15px; color: var(--gris-clair); }
.flamme-reste { font-size: 13px; color: var(--gris); margin-top: 6px; }
.flamme-reste b { color: var(--texte); }

/* Poids : violet */
.poids-valeur { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.poids-valeur .kg { font-size: 44px; font-weight: 800; line-height: 1.1; }
.poids-valeur .kg small, .course-zone .gros small { font-size: 17px; color: var(--gris); font-weight: 600; }
.poids-valeur .ecart { font-size: 14px; color: var(--poids); font-weight: 700; }
.poids-valeur .depuis { font-size: 13px; color: var(--gris); }
.poids-courbe { flex: 1; min-height: 50px; display: flex; }
.poids-courbe svg { width: 100%; height: 100%; display: block; }
.vide-texte { margin: auto; color: var(--gris); font-size: 14px; text-align: center; }
.plus { color: var(--accent); font-weight: 700; }

/* Course : bleu */
.course-zone { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 0; }
.course-zone .gros { font-size: 34px; font-weight: 800; line-height: 1; }
.course-zone .detail { font-size: 13px; color: var(--gris); }
.course-zone .detail b { color: var(--course); }
.course-icone { width: 44px; height: 44px; border-radius: 14px; background: var(--course); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.course-icone svg { width: 24px; height: 24px; fill: none; stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 12 semaines */
.historique { justify-content: center; padding: 16px 20px; }
.barres { flex: 1; max-height: 60px; min-height: 30px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; }
.barre { height: 100%; border: 0; padding: 0; background: none; display: flex; align-items: flex-end; border-radius: 4px; }
.barre i { display: block; width: 100%; border-radius: 3px; background: var(--texte); }
.barre.ratee i { background: var(--eteint); }
.barre.vide i { height: 4px !important; background: var(--creux); }
.barre.courante i { background: var(--accent); }
.barre.choisie { outline: 2px solid var(--gris); outline-offset: 2px; }

/* Cartes à venir */
.bientot { justify-content: space-between; }
.bientot .c-titre { color: #6E6E73; }
.bientot-texte { font-size: 12px; font-weight: 600; color: #6E6E73; }
.exercices { justify-content: center; }
.nb-exos { font-size: 30px; font-weight: 800; line-height: 1; }
/* Carte Avant / après du hub */
.hub-photos { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-photos[hidden] { display: none; }
.hub-photo { position: relative; display: block; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--nuit); }
.hub-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-photo.ph-vide { aspect-ratio: auto; padding: 6px; text-align: center; background: none; }

/* Carte Records du hub */
.records { gap: 10px; text-decoration: none; color: var(--texte); }
.records-liste { flex: 1 1 auto; min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.records-liste.pleine { justify-content: space-between; }
.records-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.rec-nom { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.records-liste b { font-size: 15px; font-weight: 800; text-align: right; }
.rec-date { grid-column: 1 / -1; font-size: 12px; color: var(--gris); }
.rec-date .nouveau { color: var(--accent); font-weight: 700; }
.rec-total { font-size: 12px; color: var(--gris); margin-top: -6px; }
.rec-total:empty { display: none; }
.rec-vide { font-size: 13px; color: var(--gris); }
.rec-titre { font-size: 12px; font-weight: 700; color: var(--gris); margin-top: 4px; }
.c-prog.surligne { outline: 3px solid var(--accent); outline-offset: 2px; transition: outline-color .3s; }

/* ---------- Fenêtres ---------- */
.fenetre { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px 24px; background: var(--carte); color: var(--texte); border: 0; border-radius: var(--rayon); }
.fenetre.large { width: min(720px, calc(100vw - 32px)); }
.fenetre::backdrop { background: rgba(0, 0, 0, .75); }
.fenetre-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.fenetre-tete h2 { font-size: 24px; font-weight: 800; }
.fenetre-tete h2::first-letter { text-transform: uppercase; }
.jour-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.jour-liste:empty { display: none; }
.seance-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--creux); }
.seance-ligne b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.seance-ligne b::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.seance-ligne.course b::before { background: var(--course); }
.seance-ligne small { color: var(--gris); }
.seance-actions { display: flex; gap: 6px; flex-shrink: 0; }
.seance-form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--creux); padding-top: 16px; }
.jour-liste:empty + .seance-form { border-top: 0; padding-top: 0; }
.seance-form h3 { font-size: 17px; font-weight: 700; }
.si-muscu, .si-course { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--creux); border-radius: 999px; }
.choix label { position: relative; }
.choix input { position: absolute; opacity: 0; }
.choix span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 700; color: var(--gris-clair); cursor: pointer; }
.choix input:checked + span { background: var(--accent); color: #000; }
.choix input[value="course"]:checked + span { background: var(--course); }
.choix input:focus-visible + span { outline: 2px solid var(--texte); outline-offset: 2px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }

.champ { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gris); }
.champ input { min-height: 44px; padding: 0 14px; background: var(--creux); border: 2px solid transparent; border-radius: 14px; color: var(--texte); font-size: 16px; font-weight: 600; width: 100%; }
.champ input:focus { outline: none; border-color: var(--gris); }
.champ input.invalide { border-color: var(--accent); }
.erreur { color: var(--accent); font-size: 13px; }
.erreur:empty { display: none; }
.ligne-saisie { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 12px; }
.ligne-saisie .champ { width: 170px; }
.ligne-saisie .pilule { margin-top: 20px; }
.poids-grande { margin-top: 10px; }
.poids-grande svg { display: block; width: 100%; height: auto; }
.poids-grande .vide-texte { padding: 40px 0; }

/* ---------- Pages avec onglets (Programmes…) ---------- */
.barre-onglets { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, .92); border-bottom: 1px solid var(--carte); padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.barre-onglets .logo { font-size: 24px; color: var(--texte); text-decoration: none; }
.onglets { display: flex; gap: 4px; background: var(--carte); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.onglets a, .onglets span { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gris-clair); text-decoration: none; white-space: nowrap; }
.onglets a:hover { background: var(--creux); }
.onglets a[aria-current="page"] { background: var(--accent); color: #000; font-weight: 700; }
.page { max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
.page-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-tete h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-right: 8px; }
.liste-programmes { display: flex; gap: 6px; flex-wrap: wrap; }
.onglet-prog { min-height: 40px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--carte); color: var(--gris-clair); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.onglet-prog:hover:not(:disabled) { background: var(--creux); }
.onglet-prog.choisi { background: var(--texte); color: #000; }
.onglet-prog.nouveau { color: var(--accent); }
.onglet-prog:disabled:not(.choisi) { opacity: .4; cursor: default; }
.point.actif { margin: 0; background: var(--accent); }

.prog-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.prog-tete h2 { font-size: 26px; font-weight: 800; }
.badge { background: var(--accent); color: #000; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; }
.prog-info { color: var(--gris); font-size: 14px; }
.prog-actions { margin-left: auto; display: flex; gap: 8px; }
.prog-actions .pilule.danger { min-height: 44px; }
.seances-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.c-prog { gap: 14px; overflow: visible; }
.sp-tete { display: flex; align-items: center; gap: 10px; }
.sp-tete h3 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); }
.c-prog.prochaine { box-shadow: inset 0 0 0 2px var(--accent); }
.rond.lancer { width: 40px; height: 40px; text-decoration: none; }
.rond.lancer svg { width: 20px; height: 20px; fill: var(--accent); }
.exos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.exos li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--creux); }
.exos li:first-child { border-top: 0; }
.objectif { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-vide { color: var(--gris); font-size: 14px; }
.vide-prog { align-items: flex-start; gap: 16px; }

/* Modification */
#vue, .prog-form { display: flex; flex-direction: column; gap: 14px; }
.nom-prog { width: min(360px, 100%); }
.c-prog.edit { background: var(--carte); }
/* Pendant un déplacement : l'élément reste à sa future place en pointillé, son aperçu suit le pointeur. */
.c-prog.glisse, .ligne.glisse { outline: 2px dashed var(--accent); outline-offset: -2px; background: none; }
.c-prog.glisse > *, .ligne.glisse > * { visibility: hidden; }
.apercu { position: fixed; z-index: 20; margin: 0; pointer-events: none; transform: rotate(1.5deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
body.deplacement, body.deplacement * { cursor: grabbing !important; user-select: none; }
.c-prog.ajout { min-height: 120px; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; border: 2px dashed var(--creux); background: none; }
.c-prog.ajout:hover { background: var(--carte); }
.sp-nom { flex: 1; min-width: 0; }
.rond.petit { width: 36px; height: 36px; font-size: 18px; }
.poignee { width: 32px; height: 44px; flex-shrink: 0; border: 0; border-radius: 10px; background: none; color: var(--gris); display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.poignee:hover { background: var(--creux); color: var(--texte); }
.poignee:active { cursor: grabbing; }
.poignee svg { width: 20px; height: 20px; fill: currentColor; }
.lignes { display: flex; flex-direction: column; gap: 8px; }
/* Ligne d'un exercice : grille poignée | nom | ×, puis vide | Reps/Durée, séries × valeur | ⚙ (la 2e ligne reste sous le nom). */
.ligne { background: var(--creux); border-radius: 18px; padding: 6px 8px 8px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
.ligne-bas { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ligne .champ input, .ligne-bas input { background: var(--nuit); }
.ex-nom { flex: 1; min-width: 0; }
.ligne-bas input { min-height: 40px; width: 46px; padding: 0 8px; border: 2px solid transparent; border-radius: 12px; color: var(--texte); font-size: 16px; font-weight: 600; text-align: center; }
.ligne-bas input:focus { outline: none; border-color: var(--gris); }
.ligne-bas input.invalide { border-color: var(--accent); }
.fois { color: var(--gris); font-size: 14px; }
.type-choix { display: flex; gap: 2px; background: var(--nuit); border-radius: 999px; padding: 3px; margin-right: 4px; }
.type-choix button { min-height: 34px; border: 0; border-radius: 999px; padding: 0 8px; background: none; color: var(--gris-clair); font-size: 13px; font-weight: 700; }
.type-choix button[aria-pressed="true"] { background: var(--texte); color: #000; }
.type-choix button:disabled { cursor: default; }
.type-choix button:disabled:not([aria-pressed="true"]) { opacity: .35; }
.ligne-erreurs { grid-column: 2; text-align: center; display: flex; flex-direction: column; }
.ligne-erreurs:not(:has(.erreur:not(:empty))) { display: none; }
.ajout-exo { align-self: flex-start; }

/* Paramètres avancés d'un exercice (⚙) */
.reglages { font-size: 17px; }
.ligne[data-type="duree"] .ex-valeur { width: 76px; padding: 0 3px; }
/* Fenêtre des paramètres avancés : texte cliquable (framboise et coché quand actif), menus dépliants */
.params { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; }
.p-note { font-size: 12px; color: var(--gris); }
.p-groupe { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--creux); }
.p-groupe:first-child { border-top: 0; }
.p-titre { font-size: 13px; font-weight: 700; color: var(--gris); padding-top: 9px; }
.p-valeurs { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; min-height: 38px; }
.p-aide { font-size: 12px; color: var(--gris); }
.p-groupe.grise { opacity: .35; }
.p-groupe.grise .choix-texte { cursor: default; }
.p-groupe.grise .choix-texte:hover { color: var(--gris-clair); }
.choix-texte { border: 0; background: none; padding: 8px 0; color: var(--gris-clair); font-size: 15px; font-weight: 600; text-align: left; display: inline-flex; align-items: center; gap: 6px; }
.choix-texte::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--eteint); flex-shrink: 0; }
.choix-texte[aria-pressed="true"] { color: var(--accent); }
.choix-texte[aria-pressed="true"]::before { content: '✓'; border-color: var(--accent); background: var(--accent); color: #000; font-size: 11px; font-weight: 900; line-height: 14px; text-align: center; }
.choix-texte:hover { color: var(--texte); }
.deroulant { width: 100%; }
.deroulant summary { list-style: none; cursor: pointer; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-radius: 12px; background: var(--creux); font-weight: 600; }
.deroulant summary::-webkit-details-marker { display: none; }
.deroulant summary::after { content: '▾'; color: var(--gris); transition: transform .15s; }
.deroulant[open] summary::after { transform: rotate(180deg); }
.deroulant .resume { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deroulant .options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 4px 4px 0; }
.params input { min-height: 38px; border: 2px solid transparent; border-radius: 12px; background: var(--creux); color: var(--texte); padding: 0 12px; font-size: 15px; font-weight: 600; }
.params input:focus { outline: none; border-color: var(--gris); }
.params input.invalide { border-color: var(--accent); }
.p-repos { width: 80px; text-align: center; }
.p-reglage { width: 100%; }

/* Bilan d'une séance (bas de carte) et du programme (en tête) */
.bilan { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--creux); display: flex; flex-direction: column; gap: 12px; }
.bm { display: flex; flex-direction: column; gap: 7px; }
.bm-ligne { display: grid; grid-template-columns: 92px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 13px; }
.bm-nom { color: var(--gris-clair); }
.bm-barre { height: 6px; border-radius: 3px; background: var(--creux); overflow: hidden; }
.bm-barre i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.bm-n { text-align: right; color: var(--gris); font-variant-numeric: tabular-nums; }
.bilan-pied { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--gris-clair); }
.bilan-pied span + span::before { content: '·'; margin-right: 14px; color: var(--eteint); }
.bilan-vide { font-size: 13px; color: var(--gris); }
.c-prog { height: 100%; }
.seances-grille { align-items: stretch; }
.bilan-prog { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; padding: 22px 28px; }
.bp-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 18px 36px; align-content: start; }
.bp-chiffre { display: flex; flex-direction: column; gap: 2px; }
.bp-chiffre b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.bp-chiffre span { font-size: 12px; color: var(--gris); }
.bp-muscles { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.bp-muscles h3 { font-size: 13px; font-weight: 600; color: var(--gris); }
.bp-muscles .bm { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 32px; }

/* ---------- Page Exercices : tableau aligné, filtres, fenêtre ---------- */
.nouveau-exo { margin-left: auto; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.recherche { min-height: 40px; width: min(260px, 100%); padding: 0 14px; border: 2px solid transparent; border-radius: 999px; background: var(--carte); color: var(--texte); font-size: 15px; }
.recherche:focus { outline: none; border-color: var(--gris); }
.filtre-muscle { width: auto; min-width: 200px; position: relative; }
.filtre-muscle summary { background: var(--carte); border-radius: 999px; }
.filtre-muscle .options { position: absolute; z-index: 4; top: calc(100% + 6px); left: 0; width: 320px; padding: 10px 14px; border-radius: 16px; background: var(--creux); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.filtre-lieu { display: flex; gap: 14px; }
.filtre-lieu .choix-texte::before, .filtre-muscle .choix-texte::before { border-radius: 50%; }
.tab-exos { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--rayon); overflow: hidden; font-size: 14px; }
.tab-exos th { text-align: left; font-size: 12px; font-weight: 700; color: var(--gris); padding: 14px 12px 10px; border-bottom: 1px solid var(--creux); }
.tab-exos td { padding: 12px; border-top: 1px solid var(--creux); vertical-align: top; }
.tab-exos tr:first-child td { border-top: 0; }
.tab-exos th:first-child, .tab-exos td:first-child { padding-left: 22px; }
.tab-exos tbody tr:hover { background: var(--survol); }
.tab-exos tr.exo-detail { display: none; }
.td-repos { white-space: nowrap; }
.nom-exo { border: 0; background: none; padding: 0; color: var(--texte); font-weight: 700; font-size: 15px; text-align: left; }
.nom-exo:hover { color: var(--accent); }
.reglage { display: block; color: var(--gris); font-size: 12px; margin-top: 2px; }
.gris { color: #6E6E73; }
.usages { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.usage { color: var(--gris-clair); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.usage:hover { color: var(--accent); text-decoration: underline; }
.usage small { color: var(--gris); }
#form-ex { display: flex; flex-direction: column; gap: 10px; }
.ex-type { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; }
.ex-type .type-choix { justify-self: start; }
.ex-usages { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--creux); }
.ex-usages:empty { display: none; }
.ex-usages .p-titre { padding-top: 0; }
.actions .espace { flex: 1; }
#fen-ex .params { margin: 0; }

/* ---------- Page Séance : exercice en haut, repos en bas (côte à côte sur PC) ---------- */
.sc { max-width: 1180px; margin: 0 auto; padding: 14px 16px 16px; }
.sc-en-cours { height: calc(100dvh - 92px); min-height: 560px; display: flex; flex-direction: column; gap: 12px; }
.sc-bandeau { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--carte); padding: 0 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gris-clair); text-align: left; }
.sc-bandeau:hover { background: var(--survol); }
.sc-bandeau b { color: var(--texte); font-variant-numeric: tabular-nums; margin-left: auto; }
.sc-titre { font-weight: 700; color: var(--texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ouvrir { color: var(--gris); }
.sc-ligne-bandeau { display: flex; align-items: center; gap: 8px; }
.sc-ligne-bandeau .sc-bandeau { flex: 1; min-width: 0; }
.sc-pause { width: 48px; height: 48px; background: var(--carte); }
.sc-pause svg { width: 20px; height: 20px; fill: var(--texte); }
.en-pause .sc-pause, .en-pause .sc-pause:hover:not(:disabled) { background: var(--accent); }
.en-pause .sc-pause svg { fill: #000; }
.sc-en-pause { margin-left: auto; color: var(--accent); font-weight: 700; white-space: nowrap; }
.en-pause .sc-bandeau b { margin-left: 0; color: var(--accent); }
.en-pause .sc-corps { opacity: .4; pointer-events: none; }
.sc-corps { flex: 1; min-height: 0; display: flex; gap: 12px; }
.sc-haut { flex: 3; min-width: 0; overflow: auto; gap: 14px; }
.sc-bas { flex: 2; min-width: 0; gap: 12px; }
.sc-tete { display: flex; flex-direction: column; gap: 4px; }
.sc-nom { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.sc-serie { font-size: 15px; color: var(--gris-clair); }
.sc-nom-ligne { display: flex; align-items: flex-start; gap: 10px; }
.sc-nom-ligne .sc-nom { flex: 1; min-width: 0; }
.sc-reglage { flex-shrink: 0; max-width: 50%; margin-top: 2px; padding: 6px 12px; border-radius: 10px; background: var(--texte); color: #000; font-size: 15px; }
.sc-bloc-series { display: flex; flex-direction: column; gap: 4px; }
.sc-action:disabled { opacity: .35; cursor: default; }
.sc-prochain { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--creux); }
.sc-prochain-titre { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.sc-prochain-nom { font-size: 22px; font-weight: 800; line-height: 1.15; }
.sc-prochain-obj { font-size: 14px; color: var(--gris-clair); }
.sc-saisie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.sc-erreur-kg { text-align: center; }
.pas { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pas-titre { font-size: 13px; font-weight: 700; color: var(--gris); }
.pas-ligne { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 6px; align-items: center; width: 100%; }
.pas-bouton { width: 52px; height: 52px; font-size: 26px; }
.pas-valeur { min-width: 0; min-height: 64px; border: 2px solid transparent; border-radius: 18px; background: var(--creux); color: var(--texte); font-size: 34px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.pas-valeur:focus { outline: none; border-color: var(--gris); }
.pas-vide { justify-content: center; color: var(--gris); }
.sc-series { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-ligne-resume { font-size: 13px; color: var(--gris); padding: 0 14px; }
.sc-num { white-space: nowrap; }
.sc-ligne-serie { display: grid; grid-template-columns: minmax(72px, max-content) minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px; border-radius: 12px; background: var(--creux); font-size: 15px; }
.sc-num { font-size: 13px; font-weight: 700; color: var(--gris); }
.sc-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-ligne-serie.a-venir .sc-val { color: var(--gris); font-weight: 500; }
.sc-ligne-serie.courante { background: none; outline: 2px solid var(--accent); outline-offset: -2px; }
.sc-ligne-serie.courante .sc-num { color: var(--accent); }
.sc-ligne-serie.courante .sc-val { color: var(--gris-clair); font-weight: 500; }
.sc-ligne-serie.faite { background: var(--accent); color: #000; }
.sc-ligne-serie.faite .sc-num { color: rgba(0, 0, 0, .65); }
.sc-ok { font-weight: 900; text-align: right; }
.sc-flash { align-self: flex-start; background: var(--accent); color: #000; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; }
.sc-action { min-height: 64px; font-size: 20px; width: 100%; margin-top: 4px; }
.sc-chrono { font-size: clamp(56px, 16vw, 110px); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; margin-top: auto; color: var(--gris-clair); }
.sc-chrono.actif { color: var(--texte); }
.sc-mode { text-align: center; font-size: 14px; color: var(--gris); }
.sc-repos-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sc-ensuite { font-size: 14px; color: var(--gris-clair); text-align: right; }
.sc-repos { font-size: clamp(48px, 13vw, 96px); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; margin: auto 0 0; }
.sc-repos.pret { color: var(--accent); font-size: clamp(64px, 16vw, 128px); margin: auto 0; }
.sc-barre { height: 8px; border-radius: 4px; background: var(--creux); overflow: hidden; }
.sc-barre i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .25s linear; }
.sc-plus { align-self: flex-start; font-size: 14px; padding: 6px 2px; }
.sc-boutons { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; }
.sc-skip { margin-left: auto; }
.sc-skip svg { width: 16px; height: 16px; fill: currentColor; }
.sc-info { color: var(--gris); }
.sc-fini { margin-top: auto; text-align: center; font-weight: 700; color: var(--gris-clair); }
.sc-depart, .sc-fin { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.sc-prochaine, .sc-bilan { gap: 14px; }
.sc-prochaine { background: var(--accent); color: #000; }
.sc-prochaine .c-sur { color: rgba(0, 0, 0, .7); }
.sc-prochaine .exos li { border-color: rgba(0, 0, 0, .15); }
.sc-commencer { min-height: 56px; font-size: 18px; }
/* Écran framboise de début de séance */
.sc-intro { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 28px; background: var(--accent); color: #000; }
.sc-intro-sur { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .65; }
.sc-intro-titre { margin: 0; font-size: 36px; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; }
.sc-intro-infos { margin: -6px 0 0; font-size: clamp(19px, 5.6vw, 24px); font-weight: 900; line-height: 1.15; letter-spacing: -.3px; }
.sc-intro-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-intro-liste li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, .15); font-size: 16px; }
.sc-intro-liste .n { font-weight: 800; opacity: .5; }
.sc-intro-liste .nom { font-weight: 700; }
.sc-intro-liste .obj { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-intro-liste .der { grid-column: 2 / 4; font-size: 13px; opacity: .65; }
.sc-intro-boutons { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.sc-intro-go { min-height: 60px; font-size: 20px; font-weight: 900; }
.sc-decompte { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #000; transition: transform .45s cubic-bezier(.6, 0, .3, 1); }
.sc-decompte.fini { transform: translateY(-100%); pointer-events: none; }
.sc-decompte-chiffre { font-size: min(150px, 40vw); font-weight: 900; line-height: 1; animation: sc-tape .6s ease-out; }
@keyframes sc-tape { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); } }
.sc-intro-retour { min-height: 44px; border: 0; background: none; color: #000; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.sc-autres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* Toutes les séances (page Séance) et « Charger une séance » (page Programmes) */
.sc-toutes { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.sc-toutes[hidden] { display: none; }
.sc-toutes-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.charger-liste { display: flex; flex-direction: column; gap: 8px; }
.sc-recherche { width: 100%; min-height: 44px; margin-bottom: 12px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--creux); color: var(--texte); font-size: 15px; }
.sp-seance { border-radius: 18px; background: var(--carte); }
.charger-liste .sp-seance { background: var(--creux); }
.sp-ligne { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px 8px 8px; }
.sp-deplier { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--texte); padding: 4px; text-align: left; }
.sp-fleche { flex-shrink: 0; width: 28px; text-align: center; font-size: 18px; color: var(--gris); transition: transform .15s; }
.ouverte .sp-fleche { transform: rotate(90deg); }
.sp-textes { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.sp-seance-nom { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.sp-seance-info { font-size: 13px; color: var(--gris); white-space: nowrap; }
.sp-progs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.sp-prog { padding: 2px 8px; border-radius: 999px; background: var(--creux); color: var(--gris-clair); font-size: 12px; font-weight: 600; }
.charger-liste .sp-prog { background: var(--eteint); }
.sp-prog.actif { color: var(--accent); }
.sp-detail { padding: 0 16px 10px 48px; }
.sp-seance:not(.ouverte) .sp-detail { display: none; }
.sp-seance .exos li { font-size: 14px; padding: 8px 0; }
.sp-detail .pilule.danger { margin-top: 8px; }
.sp-seance > .erreur { display: block; padding: 0 16px 10px 48px; }
.sp-seance > .erreur:empty { display: none; }
.sp-aussi { font-size: 13px; color: var(--gris-clair); }
.ajouts-seance { display: flex; flex-direction: column; gap: 14px; }
.ajouts-seance[hidden] { display: none; }
.ajouts-seance .c-prog.ajout { flex: 1; }
.sc-choix-titre { font-size: 20px; font-weight: 800; }
/* Menu dépliant des programmes (séance individuelle) */
.menu-prog { display: flex; align-items: center; gap: 10px; min-height: 52px; border: 0; border-radius: 16px; background: var(--creux); padding: 0 12px 0 16px; color: var(--texte); text-align: left; }
.menu-prog:hover { background: var(--eteint); }
.menu-prog-nom { font-size: 18px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-prog .badge { font-size: 12px; padding: 3px 10px; }
.menu-prog .espace { flex: 1; }
.menu-prog .chevron { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--gris-clair); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.menu-prog.ouvert .chevron { transform: rotate(180deg); }
.menu-prog-liste { display: flex; flex-direction: column; border-radius: 16px; background: var(--creux); padding: 6px 0; }
.menu-prog-liste[hidden] { display: none; }
.menu-prog-option { display: flex; align-items: center; gap: 10px; min-height: 46px; border: 0; background: none; padding: 0 16px; color: var(--gris-clair); font-weight: 600; text-align: left; }
.menu-prog-option .point { margin: 0; }
.menu-prog-option.choisi { color: var(--texte); font-weight: 700; background: var(--eteint); }
.menu-prog-option:hover { background: var(--eteint); }
.menu-prog-option.nouveau { color: var(--accent); }
/* Page Programmes : menu et crayon sur téléphone seulement */
.prog-menu-tel { display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.prog-menu-tel .menu-prog, .prog-menu-tel .menu-prog-liste { background: var(--carte); }
.prog-menu-tel .menu-prog:hover { background: var(--creux); }
.prog-menu-tel .menu-prog-liste { grid-column: 1 / -1; }
.rond.crayon { width: 52px; height: 52px; background: var(--carte); }
.rond.crayon svg { width: 20px; height: 20px; fill: none; stroke: var(--texte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Suggestions sous un champ */
.a-suggestions { position: relative; }
.suggestions { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; border-radius: 14px; background: var(--eteint); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.suggestion { border: 0; background: none; color: var(--texte); text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.suggestion:hover, .suggestion.actif { background: var(--creux); }
.sc-bilan .bp-chiffres { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
.sc-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sc-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 36px; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 14px; background: var(--creux); }
.sc-item.courant { outline: 2px solid var(--accent); }
.sc-item.glisse { outline: 2px dashed var(--accent); }
.sc-item-nom { border: 0; background: none; color: var(--texte); font-weight: 600; text-align: left; padding: 10px 4px; }
.sc-item-etat { font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.sc-ajout { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.sc-ajout .champ { flex: 1; }
.sc-ajout .pilule { margin-top: 20px; }
.jour-detail { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--gris-clair); }
.jour-detail li { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); gap: 8px; }
.seance-ligne { flex-wrap: wrap; }
.seance-ligne > div:first-child { flex: 1 1 260px; min-width: 0; }
.sc-bilan .exos li { flex-direction: column; gap: 2px; }
.sc-bilan .objectif { white-space: normal; font-weight: 600; color: var(--gris-clair); }
.sc-compare { font-weight: 600; color: var(--gris-clair); font-variant-numeric: tabular-nums; }
.sc-compare.haut { color: var(--texte); }
.sc-compare.bas { color: var(--gris); }
.sc-semaine { margin: -6px 0 0; font-size: 18px; font-weight: 800; color: var(--gris-clair); }
.sc-semaine:empty { display: none; }
.sc-semaine.validee { color: var(--flamme); }
.jour-detail li span:first-child { color: var(--gris); }

/* ---------- Petits écrans : 2 colonnes, la page défile ---------- */
@media (max-width: 900px), (max-height: 600px) {
  .hub { height: auto; min-height: 0; padding: 14px 16px 24px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .grille > .c { grid-column: auto; grid-row: auto; }
  .hub-photos { flex: none; height: 120px; }
  .grille > .semaine, .grille > .seance, .grille > .poids, .grille > .historique, .grille > .programme { grid-column: 1 / 3; }
  .grille > .programme { min-height: 0; }
  .barre-onglets { padding: 10px 16px; gap: 12px; }
  .page { padding: 18px 16px 40px; }
  .seances-grille { grid-template-columns: minmax(0, 1fr); }
  .sc-toutes-liste { grid-template-columns: minmax(0, 1fr); }
  .prog-menu-tel { display: grid; }
  .prog-tete .prog-actions { margin-left: 0; }
  .page-tete .liste-programmes, .prog-tete h2, .prog-tete .badge, .prog-actions .modifier, .prog-tete.actif { display: none; }
  .sc { padding: 10px 12px 12px; }
  .sc-en-cours { height: calc(100dvh - 76px); min-height: 520px; gap: 10px; }
  .sc-corps { flex-direction: column; gap: 10px; }
  .sc-haut { flex: 0 1 auto; }
  .sc-bas { flex: 1 0 210px; padding: 16px 18px; }
  .en-seance .barre-onglets { display: none; }
  .en-seance .sc-en-cours { height: calc(100dvh - 24px); }
  .intro .barre-onglets { display: none; }
  html:has(body.intro), body.intro, .intro .sc { background: var(--accent); }
  .intro .sc { padding: 0; }
  .sc-intro { min-height: 100dvh; border-radius: 0; padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); }
  .sc-repos { font-size: clamp(64px, 22vw, 110px); margin: auto 0; }
  .sc-nom { font-size: 24px; }
  .sc-ligne-serie { min-height: 34px; font-size: 14px; }
  .sc-series { gap: 4px; }
  .sc-saisie { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pas { flex-direction: row; gap: 10px; }
  .pas-titre { width: 48px; flex-shrink: 0; }
  .pas-valeur { min-height: 56px; font-size: 30px; }
  .sc-bilan .bp-chiffres { grid-template-columns: repeat(3, minmax(0, auto)); gap: 18px 24px; }
  .lien-appli { display: inline-block; }
  .tab-exos { font-size: 13px; }
  .tab-exos .col-pc { display: none; }
  .tab-exos th, .tab-exos td { padding: 10px 6px; }
  .tab-exos th:first-child, .tab-exos td:first-child { padding-left: 14px; }
  .tab-exos th:last-child, .tab-exos td:last-child { padding-right: 14px; white-space: nowrap; }
  .tab-exos .nom-exo { font-size: 14px; }
  .tab-exos tbody tr:not(.exo-detail) { cursor: pointer; }
  .tab-exos .usages > .usage { display: none; }
  .tab-exos tr.ouvert td { border-bottom: 0; }
  .tab-exos tr.exo-detail.ouvert { display: table-row; }
  .exo-detail td { border-top: 0; padding: 0 14px 12px; }
  .exo-detail dl { margin: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--creux); }
  .exo-detail dt { color: var(--gris); font-size: 12px; padding-top: 1px; }
  .exo-detail dd { margin: 0; }
  .exo-detail .usages > .usage { display: inline-flex; }
  .filtre-muscle .options { width: min(320px, calc(100vw - 32px)); }
  .ligne { grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 4px; padding: 6px 6px 8px; }
  .ligne-bas { gap: 3px; }
  .ligne-bas input { width: 40px; padding: 0 3px; }
  .ligne[data-type="duree"] .ex-valeur { width: 68px; }
  .type-choix { margin-right: 2px; }
  .type-choix button { padding: 0 7px; font-size: 12px; }
  .rond.petit { width: 32px; height: 32px; }
  .poignee { width: 28px; }
  .c { padding: 18px; border-radius: 24px; min-height: 150px; }
  .anneau { height: 170px; }
  .seance-nom { font-size: 30px; }
  .flamme-icone { width: 60px; height: 60px; }
  .flamme-n { font-size: 52px; }
  .poids-courbe { min-height: 110px; }
  .grille > .historique { min-height: 110px; }
  .grille > .bientot { min-height: 90px; }
}
@media (max-width: 420px) {
  .si-muscu, .si-course { grid-template-columns: minmax(0, 1fr); }
  .fenetre { padding: 18px; }
}

/* ---------- Page Progrès (cadrage 2.6) : poids, puis liste 25 %, courbe 45 %, détail 30 % ---------- */
.pg-page { max-width: none; }
.pg-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pg-periode { display: flex; gap: 6px; margin-left: auto; }
.pg-puce { min-height: 36px; border: 0; border-radius: 999px; padding: 0 14px; background: var(--carte); color: var(--gris-clair); font-weight: 600; font-size: 14px; }
.pg-puce:hover { background: var(--creux); }
.pg-puce.actif { background: var(--texte); color: #000; }
.pg-dates { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-end; gap: 12px; margin-bottom: 16px; }
.pg-dates[hidden] { display: none; }
.pg-dates .champ { width: 180px; }
.pg-dates .pilule { margin-top: 20px; }
.pg-poids { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; }
.pg-poids-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pg-poids-valeur { font-size: 32px; font-weight: 800; }
.pg-poids-texte .pilule { margin-top: 6px; }
.pilule.petite { min-height: 34px; padding: 0 14px; font-size: 13px; }
.pg-noter { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.pg-noter input { width: 100px; }
.pg-colonnes { display: grid; grid-template-columns: 25fr 45fr 30fr; gap: 16px; align-items: stretch; }
.pg-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
/* Les trois cartes ont la hauteur de celle de la courbe : la liste et le bilan ne comptent pas (contain) et défilent dedans. */
.pg-liste, .pg-detail { contain: size; }
.pg-recherche { position: relative; flex-shrink: 0; }
.pg-recherche-loupe { position: absolute; top: 10px; left: 11px; color: var(--gris); pointer-events: none; }
.pg-recherche input { width: 100%; height: 36px; padding: 0 34px; border: 1px solid transparent; border-radius: 12px; background: var(--creux); color: var(--texte); font-size: 14px; }
.pg-recherche input::placeholder { color: var(--gris); }
.pg-recherche input:focus { outline: none; border-color: var(--gris); }
.pg-recherche input::-webkit-search-cancel-button { display: none; }
.pg-recherche-effacer { position: absolute; top: 0; right: 2px; width: 32px; height: 36px; border: 0; background: none; color: var(--gris); font-size: 18px; }
.pg-tri { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 32px; font-size: 13px; }
.pg-tri { position: relative; }
.pg-tri-menu summary { list-style: none; display: flex; align-items: center; gap: 5px; height: 32px; cursor: pointer; color: var(--gris); }
.pg-tri-menu summary::-webkit-details-marker { display: none; }
.pg-tri-menu summary b { color: var(--texte); }
.pg-tri-menu summary::after { content: ''; width: 0; height: 0; margin-left: 2px; border: 4px solid transparent; border-top: 5px solid var(--gris); border-bottom: 0; transition: transform .15s; }
.pg-tri-menu[open] summary::after { transform: rotate(180deg); }
.pg-tri-options { position: absolute; z-index: 5; top: 34px; left: 0; right: 0; padding: 6px; border-radius: 14px; background: var(--creux); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 2px; }
.pg-tri-options button { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--gris-clair); font-size: 14px; text-align: left; }
.pg-tri-options button:hover { background: var(--survol); }
.pg-tri-options button[aria-current='true'] { color: var(--texte); font-weight: 700; }
.pg-tri-options button[aria-current='true']::after { content: '✓'; color: var(--accent); }
.pg-tri-sens { flex: none; width: 32px; height: 32px; margin-left: auto; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--accent); }
.pg-tri-sens.croissant svg { transform: rotate(180deg); }
.pg-liste { gap: 8px; }
.pg-table .pg-groupe td { padding: 0; }
.pg-groupe button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 0 6px; border: 0; background: none; color: var(--gris-clair); font-size: 12px; font-weight: 700; text-align: left; }
.pg-groupe button svg { flex: none; color: var(--accent); transition: transform .15s; }
.pg-groupe.plie button svg { transform: rotate(-90deg); }
.pg-groupe small { color: var(--gris); font-weight: 400; font-size: 12px; }
/* Liste et bilan : pas de barre de défilement ; un dégradé et une flèche disent s'il reste à voir en haut ou en bas. */
.pg-defile { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pg-defile > div:first-child { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.pg-defile > div:first-child::-webkit-scrollbar { display: none; }
.pg-defile-signe { position: absolute; left: 0; right: 0; height: 34px; display: flex; justify-content: center; color: var(--accent); pointer-events: none; }
.pg-defile-signe[hidden] { display: none; }
.pg-defile-haut { top: 0; align-items: flex-start; background: linear-gradient(var(--carte) 25%, transparent); }
.pg-defile-haut svg { transform: rotate(180deg); }
.pg-defile-bas { bottom: 0; align-items: flex-end; background: linear-gradient(transparent, var(--carte) 75%); }
.pg-defile-gauche, .pg-defile-droite { top: 0; bottom: 0; width: 30px; height: auto; padding: 0; border: 0; align-items: center; pointer-events: auto; cursor: pointer; }
.pg-defile-gauche { left: 0; right: auto; justify-content: flex-start; background: linear-gradient(90deg, var(--carte) 45%, transparent); }
.pg-defile-gauche svg { transform: rotate(90deg); }
.pg-defile-droite { left: auto; right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--carte) 45%, transparent); }
.pg-defile-droite svg { transform: rotate(-90deg); }
.pg-recap { margin-top: 6px; border-top: 1px solid #333336; }
.pg-recap-ligne { display: flex; align-items: center; gap: 6px; height: 26px; font-size: 13px; }
.pg-recap-ligne + .pg-recap-ligne { border-top: 1px solid #333336; }
.pg-recap-ligne > i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pg-recap-unite { flex: none; width: 26px; font-size: 11px; color: var(--gris); }
.pg-recap-zone { position: relative; flex: 1; min-width: 0; height: 100%; }
.pg-recap-defile { height: 100%; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-recap-defile::-webkit-scrollbar { display: none; }
.pg-recap-val { flex: none; display: flex; align-items: baseline; gap: 4px; padding: 0 6px; border-left: 1px solid #333336; font-weight: 700; }
.pg-recap-val:first-child { padding-left: 0; border-left: 0; }
.pg-recap-val small { font-size: 11px; font-weight: 400; color: var(--gris); }
.pg-recap-val.baisse { color: var(--gris); }
.pg-detail .pg-defile-haut { top: 31px; }   /* sous les titres des colonnes, qui restent en place */
.pg-graphe { min-height: 680px; }   /* la hauteur avec une courbe de 600 px : sans courbe, la liste ne se met pas à défiler */
.pg-compte { font-size: 13px; font-weight: 600; }
.pg-courbe { width: 100%; position: relative; }
.pg-courbe.zoome .pg-svg { cursor: grab; }
.pg-courbe.glisse, .pg-courbe.glisse .pg-svg { cursor: grabbing; user-select: none; }
.pg-vue-entiere { position: absolute; top: 0; right: 0; }
.pg-pale { opacity: 0.15; }
.pg-repere { stroke: var(--carte); stroke-width: 2; pointer-events: none; }
.pg-bulle-pc { display: flex; justify-content: space-between; gap: 12px; color: var(--gris-clair); }
.pg-svg { display: block; overflow: visible; }
.pg-grille { stroke: var(--creux); stroke-width: 1; }
.pg-axe { fill: var(--gris); font-size: 12px; }
.pg-ligne { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pg-point { stroke: var(--carte); stroke-width: 2; }
.pg-etiquette { fill: var(--gris-clair); font-size: 12px; font-weight: 600; }
.pg-viseur { stroke: var(--gris); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.pg-aide { color: var(--gris); font-size: 12px; margin-top: 4px; }
.pg-vide { color: var(--gris); padding: 24px 0; text-align: center; font-size: 14px; }
.pg-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: 13px; color: var(--gris-clair); }
.pg-legende span { display: inline-flex; align-items: center; gap: 6px; }
.pg-legende i, .pg-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pg-pastille { margin-right: 6px; }
.pg-bulle { position: fixed; z-index: 10; pointer-events: none; min-width: 200px; max-width: 290px; padding: 10px 12px; border-radius: 14px; background: var(--creux); box-shadow: 0 8px 24px #0008; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.pg-bulle.large { max-width: calc(100vw - 16px); }
.pg-bulle-grille { display: grid; grid-template-columns: repeat(var(--colonnes, 1), minmax(200px, 1fr)); gap: 4px 18px; }
.pg-bulle.large .pg-bulle-grille { grid-template-rows: repeat(var(--rangs), auto); grid-auto-flow: column; }   /* se lit colonne par colonne */
.pg-bulle-ligne { display: flex; align-items: center; gap: 8px; }
.pg-bulle-ligne span { flex: 1; color: var(--gris-clair); min-width: 0; }
.pg-bulle-ligne i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pg-bulle-ligne small { color: var(--gris); }
.pg-records, .pg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pg-records th, .pg-table th { text-align: left; color: var(--gris); font-size: 12px; font-weight: 700; padding: 6px 6px; position: sticky; top: 0; background: var(--carte); }
.pg-records td, .pg-table td { padding: 8px 6px; border-top: 1px solid var(--creux); vertical-align: top; }
.pg-records tbody tr { cursor: pointer; }
.pg-records tbody tr:hover { background: var(--survol); }
.pg-records tr.choisi .pg-nom { font-weight: 700; }
.pg-nom { color: var(--texte); }
.pg-val { font-weight: 700; white-space: nowrap; }
.pg-sous { display: block; color: var(--gris); font-weight: 400; font-size: 12px; }
.pg-date { white-space: nowrap; }
.pg-nouveau { display: block; font-size: 11px; font-weight: 800; color: var(--accent); }
.pg-td-case { width: 22px; }
.pg-case { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--eteint); vertical-align: middle; }
.pg-table .pg-max { white-space: nowrap; text-align: center; }
/* Une zone à toucher de 36 px, sans changer la hauteur de la ligne. */
.pg-max-bouton { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: -10px 0; border: 0; border-radius: 10px; background: none; padding: 0 4px; color: var(--gris-clair); font-weight: 700; }
.pg-max-bouton.vide { font-size: 24px; font-weight: 500; line-height: 1; }
.pg-max-bouton:hover { color: var(--accent); background: var(--survol); }
.pg-max-form { display: flex; flex-direction: column; gap: 12px; }

/* Photos du corps (bas de Progrès) : par pose, la plus ancienne et la plus récente de la période. */
.pg-photos { margin-top: 16px; }
.ph-tete { display: flex; align-items: center; gap: 14px; }
.ph-tete #photos-poses { margin-left: auto; }
.ph-paires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-paire { background: var(--creux); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-pose { font-weight: 700; font-size: 15px; }
.ph-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-photo { position: relative; display: block; width: 100%; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--nuit); border: 0; padding: 0; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-photo:hover { outline: 2px solid var(--texte); outline-offset: -2px; }
.ph-etiquette { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #000b; color: var(--texte); font-size: 12px; font-weight: 700; }
.ph-vide { aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed var(--eteint); display: flex; align-items: center; justify-content: center; color: var(--gris); font-size: 13px; text-align: center; padding: 10px; }
.ph-vide.large { aspect-ratio: 3 / 2; }
.ph-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--gris-clair); }
.ph-info b, .ph-ecart { color: var(--texte); font-weight: 800; }
.ph-choix { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-choix button { border: 0; border-radius: 999px; padding: 7px 12px; background: var(--creux); font-size: 13px; font-weight: 700; color: var(--gris-clair); }
.ph-choix button.actif { background: var(--texte); color: #000; }
.ph-bas { display: flex; justify-content: flex-end; gap: 8px; }
.ph-envoi { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.ph-envoi th { text-align: left; color: var(--gris); font-size: 12px; padding: 6px; }
.ph-envoi td { padding: 8px 6px; border-top: 1px solid var(--creux); vertical-align: middle; }
.ph-envoi .mini { width: 48px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--creux); }
.ph-envoi .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-envoi input[type=date], .ph-modifier input[type=date] { background: var(--creux); border: 0; border-radius: 10px; padding: 8px; color: var(--texte); }
.ph-envoi .erreur { display: block; }
.ph-source { font-size: 11px; color: var(--gris); display: block; margin-top: 2px; }
.ph-grande { width: min(900px, calc(100vw - 32px)); }
.ph-grande-image { display: flex; justify-content: center; background: var(--nuit); border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.ph-grande-image img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; display: block; }
.ph-grande-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ph-modifier { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px; }
.ph-modifier .ph-bas { margin-left: auto; align-self: flex-end; }
.ph-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ph-case { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ph-case-info { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.ph-poses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ph-pose-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 8px; background: var(--creux); border-radius: 16px; padding: 4px 8px 4px 2px; }
.ph-pose-ligne.glisse { opacity: .35; outline: 2px dashed var(--eteint); }
.ph-pose-nom { min-height: 40px; border: 0; border-radius: 10px; background: var(--nuit); padding: 0 10px; font-weight: 700; width: 100%; }
.ph-pose-nom.invalide { outline: 2px solid var(--accent); }
.ph-pose-nb { white-space: nowrap; }
.ph-pose-ligne .rond.petit { width: 34px; height: 34px; font-size: 18px; }
.ph-pose-erreur, .ph-pose-avis { grid-column: 2 / -1; }
.ph-pose-erreur:empty { display: none; }
.ph-pose-avis { color: var(--accent); font-weight: 600; }
#poses-ajouter { margin-bottom: 14px; }
#poses-ajouter:disabled { opacity: .4; cursor: default; }
.pg-repere-photo { fill: var(--carte); stroke: var(--poids); stroke-width: 2; cursor: pointer; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.pg-poids-photo { grid-column: 1 / -1; display: flex; flex-direction: column; font-size: 14px; }
.pg-poids-photo-ligne { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 0; border-top: 1px solid #333336; background: none; text-align: left; }
.pg-poids-photo-ligne span { flex: 1; color: var(--gris-clair); }
.pg-poids-photo-ligne i { font-style: normal; font-size: 18px; color: var(--accent); }
.pg-repere-photo:hover, .pg-repere-photo:focus { fill: var(--poids); outline: none; }
.pg-repere-photo .pg-repere-cible { fill: transparent; stroke: none; }

@media (max-width: 900px) {
  .pg-tete { flex-wrap: wrap; }
  .ph-paires { grid-template-columns: minmax(0, 1fr); }
  .ph-tete { flex-wrap: wrap; }
  .pg-dates { flex-wrap: wrap; justify-content: flex-start; }
  .pg-dates .champ { width: auto; flex: 1 1 130px; }
  .pg-poids { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pg-colonnes { grid-template-columns: minmax(0, 1fr); }
  .pg-liste, .pg-detail { contain: none; max-height: 420px; }
  .pg-recherche, .pg-tri { display: none; }
  .pg-graphe { min-height: 0; }
  .pg-graphe { order: -1; }
}

/* Page Courses (cadrage 2.7) : une course à la fois, le menu à gauche, la carte à droite, les infos dessous. */
.co-tete { justify-content: space-between; }
.co-synchro { color: var(--gris); font-size: 13px; }
.co-contenu { display: flex; flex-direction: column; gap: 14px; }
.co-contenu[hidden] { display: none; }
.co-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; height: 380px; }
.co-menu { position: relative; min-width: 0; }
.co-choix { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border: 0; border-radius: 22px; background: var(--carte); color: var(--texte); text-align: center; }
.co-choix:hover { background: var(--survol); }
.co-choix b { font-size: 28px; font-weight: 800; }
.co-choix span { font-size: 18px; font-weight: 600; color: var(--gris-clair); font-variant-numeric: tabular-nums; }
.co-choix i { font-style: normal; font-size: 18px; color: var(--gris-clair); }
.co-deroule { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; max-height: 380px; overflow-y: auto; padding: 6px; border-radius: 22px; background: var(--creux); box-shadow: 0 12px 32px #000; }
.co-ligne { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 11px 12px; border: 0; border-radius: 14px; background: none; color: var(--texte); font-size: 15px; text-align: left; font-variant-numeric: tabular-nums; }
.co-ligne:hover { background: var(--survol); }
.co-ligne.actif { background: var(--course); color: #000; font-weight: 700; }
.co-carte { min-width: 0; overflow: hidden; border-radius: 22px; background: var(--carte); }
.co-sans { height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--gris); font-size: 14px; }
.co-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-info { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 22px; background: var(--carte); }
.co-info b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.co-info b small { font-size: 14px; font-weight: 600; color: var(--gris); }
.co-info span { font-size: 13px; color: var(--gris); }
.co-info.large { grid-column: 1 / -1; }
.co-info.texte b { font-size: 16px; font-weight: 600; line-height: 1.9; }
.co-titre { margin-top: 6px; font-size: 22px; font-weight: 800; }
.co-meilleurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) {
  .co-haut { grid-template-columns: 42% minmax(0, 1fr); gap: 10px; height: 190px; }
  .co-choix { padding: 14px; border-radius: 18px; }
  .co-choix b { font-size: 18px; }
  .co-choix span { font-size: 15px; }
  .co-carte { border-radius: 18px; }
  .co-deroule { width: calc(100vw - 32px); max-height: 60vh; border-radius: 18px; }
  .co-infos, .co-meilleurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-info { padding: 12px 14px; border-radius: 18px; }
  .co-info b { font-size: 21px; }
  .co-info.texte b { font-size: 15px; line-height: 1.8; }
}

/* ---------- Connexion (cadrage 3.2, variante C) ---------- */
.cx { min-height: 100vh; min-height: 100dvh; display: flex; }
.cx-deco { flex: 1.1; margin: 16px; border-radius: var(--rayon); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 40px;
  background: radial-gradient(120% 90% at 30% 110%, rgba(255, 122, 26, .35), transparent 60%), radial-gradient(90% 70% at 80% -10%, rgba(255, 79, 123, .35), transparent 60%), var(--carte); }
.cx-gros { font-size: 64px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.cx-sous { font-size: 16px; color: var(--gris); }
.cx-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cx-form > .cx-pile { width: 100%; max-width: 380px; }
.cx-pile { display: flex; flex-direction: column; gap: 18px; }
.cx-titre { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; text-wrap: balance; }
.cx-sous-titre, .cx-demo { color: var(--gris); font-size: 14px; margin-top: -10px; }
.cx-demo { margin-top: 0; }
.cx .champ { font-size: 13px; font-weight: 600; color: var(--gris-clair); gap: 6px; }
.cx .champ input { min-height: 52px; font-weight: 500; }
.cx .champ input:focus { border-color: var(--accent); }
.cx-saisie { position: relative; }
.cx-saisie input { padding-right: 52px; }
.cx-oeil { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--gris); font-size: 18px; }
.cx-bloque { background: rgba(255, 79, 123, .12); color: var(--accent); border-radius: 16px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.cx-large { width: 100%; min-height: 52px; font-size: 16px; }
.cx-large:disabled { opacity: .35; cursor: default; filter: none; }
.cx-lien { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 6px 0; }
.cx-coche { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gris-clair); }
.cx-coche input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.cx-cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cx-cases input { height: 58px; width: 100%; border-radius: 14px; border: 2px solid transparent; background: var(--creux); text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cx-cases input:focus { outline: none; border-color: var(--accent); }
.cx-cases input.invalide { border-color: var(--accent); background: rgba(255, 79, 123, .12); }
.cx-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-codes div { background: var(--creux); border-radius: 12px; padding: 10px 0; text-align: center; font: 700 15px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; }
@media (max-width: 800px) {
  .cx-deco { display: none; }
  .cx-form { align-items: flex-start; padding: 56px 20px 24px; }
}

/* ---------- Mon compte ---------- */
.cp-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cp-pile { display: flex; flex-direction: column; gap: 14px; }
.cp-bloc { gap: 14px; }
.cp-bloc .champ { font-size: 13px; font-weight: 600; color: var(--gris-clair); }
.cp-bloc .pilule { align-self: flex-start; }
.cp-texte { color: var(--gris); font-size: 14px; }
.cp-ok { color: #5BD68A; font-size: 13px; font-weight: 600; }
.cp-ok:empty { display: none; }
.lien-compte { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gris-clair); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--carte); white-space: nowrap; }
.lien-compte:hover { background: var(--survol); }
@media (max-width: 900px) { .cp-colonnes { grid-template-columns: minmax(0, 1fr); } }
.cp-boutons { display: flex; gap: 10px; flex-wrap: wrap; }
/* Téléphone : l'en-tête du hub est plein, le lien Compte passe sous les cartes. */
.lien-compte-bas { display: none; text-align: center; padding: 16px; border-radius: var(--rayon); background: var(--carte); color: var(--gris-clair); font-weight: 700; text-decoration: none; }
@media (max-width: 900px), (max-height: 600px) {
  .lien-compte { display: none; }
  .lien-compte-bas { display: block; }
}
