/* Athlos : noir et or, sobre. Pensé d'abord pour le téléphone. */
:root {
  --fond: #0e0e10;
  --surface: #18181c;
  --surface-2: #222228;
  --bord: #2e2e36;
  --texte: #f3f1ec;
  --texte-doux: #a7a5a0;
  --or: #d4a537;
  --or-clair: #e9c76b;
  --or-fonce: #9c7620;
  --alerte: #e07a5f;
  --ok: #7fb48a;
  --rayon: 16px;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 30px; letter-spacing: -0.5px; }
h2 { font-size: 24px; }
p { margin: 0 0 12px; }
.doux { color: var(--texte-doux); }
.petit { font-size: 14px; }
.or { color: var(--or); }

/* --- Logo --- */
.logo {
  font-weight: 800;
  letter-spacing: 6px;
  font-size: 15px;
  color: var(--or);
  text-transform: uppercase;
}

/* --- En-tête des étapes (barre de progression) --- */
.entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.retour {
  background: none;
  border: 0;
  color: var(--texte-doux);
  font-size: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.retour:focus-visible, .bouton:focus-visible, .carte:focus-visible, .champ:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}
.progression {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.progression > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--or-fonce), var(--or));
  border-radius: 99px;
  transition: width .3s ease;
}

/* --- Contenu principal --- */
.corps { flex: 1; display: flex; flex-direction: column; }
.question { margin-bottom: 8px; }
.aide { color: var(--texte-doux); font-size: 15px; margin-bottom: 20px; }

/* --- Cartes de choix (grosses cartes à toucher) --- */
.cartes { display: grid; gap: 12px; margin-bottom: 20px; }
.cartes.deux { grid-template-columns: 1fr 1fr; }
.carte {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--texte);
  border: 1.5px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px 18px;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 60px;
}
.carte .icone { font-size: 24px; width: 30px; text-align: center; flex-shrink: 0; }
.carte .titre { font-weight: 600; display: block; }
.carte .sous { color: var(--texte-doux); font-size: 14px; display: block; }
.carte[aria-pressed="true"] {
  border-color: var(--or);
  background: linear-gradient(0deg, rgba(212,165,55,.10), rgba(212,165,55,.10)), var(--surface);
}
.carte[aria-pressed="true"] .titre { color: var(--or-clair); }

/* --- Champs de saisie --- */
.champ-groupe { margin-bottom: 18px; }
.champ-groupe label { display: block; font-weight: 600; margin-bottom: 8px; }
.champ-ligne { display: flex; align-items: center; gap: 10px; }
.champ {
  width: 100%;
  background: var(--surface);
  color: var(--texte);
  border: 1.5px solid var(--bord);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 22px;
}
.champ::placeholder { color: #5d5b57; }
.unite { color: var(--texte-doux); min-width: 30px; }
.erreur { color: var(--alerte); font-size: 15px; min-height: 22px; }

/* --- Boutons --- */
.actions { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.bouton {
  width: 100%;
  border: 0;
  border-radius: 99px;
  padding: 17px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  background: var(--or);
  color: #1a1407;
}
.bouton:disabled { opacity: .35; cursor: default; }
.bouton.secondaire { background: var(--surface-2); color: var(--texte); }
.bouton.lien { background: none; color: var(--texte-doux); font-weight: 500; padding: 10px; }

/* --- Encadrés --- */
.encadre {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.encadre.or { border-color: var(--or-fonce); }
.encadre.alerte { border-color: var(--alerte); }
.indicateur { font-size: 34px; font-weight: 800; color: var(--or); }

/* --- Case à cocher (consentement) --- */
.consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px;
  cursor: pointer;
  margin-bottom: 12px;
}
.consentement input { width: 24px; height: 24px; accent-color: var(--or); flex-shrink: 0; margin-top: 2px; }
/* Page santé : les situations à cocher, plus serrées pour tenir sur moins d'écrans */
.liste-sante .consentement { padding: 12px 14px; margin-bottom: 8px; font-size: 15px; line-height: 1.35; }
.liste-sante .consentement:has(input:checked) { border-color: var(--or); }

/* --- Accueil --- */
.accueil { justify-content: center; text-align: center; }
.accueil .emblème {
  width: 112px; height: 112px; margin: 0 auto 24px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 25%, #2a2a31, #111114);
  border: 1.5px solid var(--or-fonce);
  display: grid; place-items: center;
  font-size: 54px; font-weight: 800; color: var(--or);
}
.accueil h1 { font-size: 34px; }
.promesses { list-style: none; padding: 0; margin: 24px 0; text-align: left; display: grid; gap: 12px; }
.promesses li { display: flex; gap: 12px; align-items: flex-start; }
.promesses li span:first-child { color: var(--or); font-weight: 800; }

/* --- Récapitulatif --- */
.ligne-recap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.ligne-recap:last-child { border-bottom: 0; }
.ligne-recap span:first-child { color: var(--texte-doux); }
.ligne-recap span:last-child { text-align: right; font-weight: 600; }

@media (min-width: 560px) {
  #app { padding-top: 40px; }
}

/* Grille de petites cartes (nombre de séances) et pastille de couleur des niveaux */
.cartes.trois { grid-template-columns: repeat(3, 1fr); }
.cartes.trois .carte { justify-content: center; text-align: center; font-size: 22px; }
.pastille { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; margin-right: 6px; vertical-align: -1px; }
.apercu { margin-bottom: 4px; }

/* --- Étape 2 : séance rapide, bibliothèque, fiche --- */
h3 { font-size: 18px; margin: 22px 0 10px; }
.cartes.quatre { grid-template-columns: repeat(4, 1fr); }
.cartes.quatre .carte { justify-content: center; text-align: center; padding: 14px 6px; }
.liste-exos { display: grid; gap: 8px; }
.exo { display: flex; align-items: stretch; gap: 8px; }
.exo-corps {
  flex: 1; text-align: left; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px;
  padding: 12px 14px; color: var(--texte); font: inherit; cursor: pointer;
}
.exo-nom { display: block; font-weight: 600; }
.exo-detail { display: block; color: var(--texte-doux); font-size: 14px; margin-top: 2px; }
.exo-remplacer {
  width: 52px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 14px;
  color: var(--or); font-size: 22px; cursor: pointer;
}
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.puce {
  background: var(--surface); border: 1px solid var(--bord); color: var(--texte); border-radius: 99px;
  padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer;
}
.puce[aria-pressed="true"] { border-color: var(--or); color: var(--or-clair); background: rgba(212,165,55,.10); }
.niveau { white-space: nowrap; }
.visuel {
  aspect-ratio: 4 / 3; border-radius: var(--rayon); margin-bottom: 14px;
  background: radial-gradient(circle at 50% 40%, #26262c, #141417); border: 1px dashed var(--bord);
  display: grid; place-items: center;
}
.consignes { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.exo-corps:focus-visible, .exo-remplacer:focus-visible, .puce:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.carte:disabled { opacity: .45; cursor: default; }

/* --- Programme de 4 semaines --- */
.onglets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 4px; }
.onglet {
  background: var(--surface); border: 1.5px solid var(--bord); border-radius: 14px; padding: 10px 4px;
  color: var(--texte); font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center;
}
.onglet-num { font-weight: 800; font-size: 18px; color: var(--c); }
.onglet-int { font-size: 12px; color: var(--texte-doux); }
.onglet[aria-pressed="true"] { border-color: var(--c); background: rgba(255,255,255,.04); }
.onglet:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.attente { animation: battement 1.6s ease-in-out infinite; }
@keyframes battement { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .attente { animation: none; } }

/* --- Lecteur de séance --- */
.lecteur { text-align: center; }
.lecteur h2 { margin-bottom: 14px; }
.chrono { font-size: 72px; font-weight: 800; color: var(--or); line-height: 1; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.petit-visuel { aspect-ratio: 16 / 9; max-height: 180px; margin: 0 auto 4px; }
/* Mobilisation par côté (chevilles) : à mi-temps, l'image passe en miroir, le personnage fait le geste avec l'autre jambe (28/11/2026) */
.visuel.miroir video, .visuel.miroir img { transform: scaleX(-1); }
/* Petit cadre 16:9 : la vidéo 4:3 débordait en bas (pieds coupés, 255 px de haut dans 178) ; collée au cadre, elle tient entière (28/11/2026) */
.petit-visuel.avec-image > video, .petit-visuel.avec-image > img { position: absolute; inset: 0; }
.cercles { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 8px; }
.cercle { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--or); }
.cercle.plein { background: var(--or); }
.lecteur details { text-align: left; }
/* Séance automatique : temps estimé des répétitions, boutons Pause et Fini côte à côte */
.barre-temps { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 6px auto 8px; width: 100%; max-width: 260px; }
.barre-temps span { display: block; height: 100%; width: 100%; background: var(--or); transition: width .2s linear; }
.actions-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions-ligne .bouton { width: 100%; margin: 0; }
.lecteur summary { cursor: pointer; font-weight: 600; }
.notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.note {
  background: var(--surface-2); border: 2px solid var(--c); color: var(--texte); border-radius: 12px;
  padding: 12px 0; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer;
}
.note[aria-pressed="true"] { background: var(--c); color: #111; }
/* Étoiles de l'avis (24/11/2026) */
.etoiles .note { --c: #d4a537; font-size: 24px; line-height: 1; }
.note:disabled:not([aria-pressed="true"]) { opacity: .4; }
.carte.faite { opacity: .65; }
.carte.prochaine { border-color: var(--or); }

/* ---------- Étape 5 : progrès, trophées, réglages ---------- */
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.tuile { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; }
.tuile-valeur { font-size: 26px; font-weight: 700; color: var(--or); line-height: 1.1; }
.tuile-legende { font-size: 13px; color: var(--texte-doux); margin-top: 4px; }
.mois { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mois .puce { min-width: 44px; }
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.nom-jour { font-size: 12px; color: var(--texte-doux); padding-bottom: 4px; }
.jour { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: var(--texte-doux); font: inherit; font-size: 14px; padding: 0; }
.jour.actif { background: var(--or); color: #1a1406; font-weight: 700; cursor: pointer; }
.jour.aujourdhui { box-shadow: inset 0 0 0 2px var(--or-clair); color: var(--texte); }
.jour.actif.aujourdhui { box-shadow: inset 0 0 0 2px var(--texte); }
.jour.choisi { outline: 2px solid var(--texte); outline-offset: 1px; }
svg.courbe { width: 100%; height: auto; display: block; overflow: visible; }
svg.courbe .grille { stroke: var(--bord); stroke-width: 1; }
svg.courbe .seuil { stroke: var(--texte-doux); stroke-width: 1; stroke-dasharray: 4 4; }
svg.courbe .axe { fill: var(--texte-doux); font-size: 11px; }
svg.courbe .valeur { fill: var(--texte); font-size: 12px; font-weight: 700; }
svg.courbe .trace { fill: none; stroke: var(--or); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.courbe .point { fill: var(--or); stroke: var(--surface); stroke-width: 2; }
svg.courbe .cible { fill: transparent; cursor: pointer; outline: none; }
svg.courbe .cible.active { fill: rgba(212, 165, 55, .18); }
.info-courbe { min-height: 1.4em; margin: 6px 0 0; }
.trophees { display: grid; gap: 10px; }
.trophee, .trophee-nouveau { display: flex; gap: 14px; align-items: center; text-align: left; }
.trophee { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; opacity: .55; }
.trophee .titre, .trophee .sous { display: block; }
.trophee .sous { font-size: 14px; color: var(--texte-doux); margin: 2px 0 4px; }
.trophee.gagne { opacity: 1; border-color: var(--or-fonce); }
.trophee:not(.gagne) .trophee-icone { filter: grayscale(1); }
.trophee-icone { font-size: 30px; line-height: 1; }
.interrupteur { margin-left: auto; width: 46px; height: 28px; border-radius: 14px; background: var(--bord); position: relative; flex: none; transition: background .2s; }
.interrupteur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--texte); transition: transform .2s; }
[aria-pressed="true"] > .interrupteur { background: var(--or); }
[aria-pressed="true"] > .interrupteur::after { transform: translateX(18px); }
.langues { margin-top: 12px; justify-content: center; }

/* Lecteur : exercice non fait, et raison demandée en fin de séance */
.lien-discret { background: none; border: none; color: var(--texte-doux); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 10px; margin-top: 2px; cursor: pointer; width: 100%; }
.lien-discret:hover, .lien-discret:focus-visible { color: var(--or-clair); }
.choix-raisons { display: grid; gap: 8px; margin: 10px 0 4px; }
.choix-raisons .carte { padding: 12px 14px; font-size: 15px; text-align: left; }
.retour-raison { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Figurines : départ puis arrivée en fondu, au rythme lent d'un mouvement contrôlé */
/* Fond gris clair, celui des photos (le personnage n'est pas détouré) */
.visuel.avec-image { position: relative; overflow: hidden; background: #d3d4d7; border: 0; }
.visuel.avec-image img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.visuel.anime img { position: absolute; inset: 0; }
.visuel.avec-image video { width: 100%; height: 100%; object-fit: contain; display: block; background: #d3d4d7; }
/* le départ reste affiché dessous, l'arrivée apparaît et disparaît par-dessus (les images sont opaques) */
.visuel.anime img.arrivee, .visuel.anime .etiquette.arrivee { animation: athlos-arrivee 5s ease-in-out infinite; }
.visuel.anime .etiquette.depart { animation: athlos-depart 5s ease-in-out infinite; }
.visuel .etiquette { position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(20, 20, 23, .72); opacity: 0; }
.visuel .etiquette.depart { opacity: 1; }
@keyframes athlos-arrivee { 0%, 30% { opacity: 0; } 45%, 80% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes athlos-depart { 0%, 30% { opacity: 1; } 45%, 80% { opacity: 0; } 95%, 100% { opacity: 1; } }
/* Flèches dorées des rotations (js/fleches.js) : un trait doré, et un reflet clair qui avance dans le sens du mouvement */
.visuel .fleches { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Avec le fondu, la flèche n'apparaît qu'avec la position d'arrivée (sinon elle flotte sur la position de départ) */
.visuel.anime .fleches { animation: athlos-arrivee 5s ease-in-out infinite; }
.fleches .arc { fill: none; stroke: #c9a227; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.fleches .arc.arriere { opacity: .45; stroke-dasharray: 6 7; filter: none; }
.fleches .arc.flux { stroke: #fff3c4; stroke-width: 2.5; stroke-dasharray: 10 40; filter: none; animation: athlos-flux 1.6s linear infinite; }
.fleches .pointe { fill: #c9a227; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.fleches .point { fill: #fff3c4; stroke: #c9a227; stroke-width: 2.5; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
@keyframes athlos-flux { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fleches .arc.flux { animation: none; display: none; }
  .visuel.anime .fleches { display: none; }
  /* sans animation : les deux positions côte à côte */
  .visuel.anime { display: grid; grid-template-columns: 1fr 1fr; }
  .visuel.anime img, .visuel.anime img:not(.arrivee), .visuel.anime img.arrivee { position: static; width: 100%; height: 100%; animation: none; opacity: 1; }
  .visuel.anime .etiquette { display: none; }
  .visuel.anime img + img { border-left: 2px solid #141417; }
}

/* --- Barre d'onglets en bas (15/11/2026) : pictogramme + mot, sous le pouce --- */
body.avec-onglets #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center; gap: 0;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--bord);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.onglets button {
  flex: 1; max-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 4px 0; color: var(--texte-doux); font: 500 11px/1.1 var(--police); cursor: pointer;
}
.onglets svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.onglets button[aria-current="page"] { color: var(--or); }
.onglets button[aria-current="page"] svg { stroke-width: 2.2; }
.haut-accueil { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.roue { background: none; border: 0; padding: 6px; color: var(--texte-doux); cursor: pointer; }
.roue svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* --- Composer ma séance (18/11/2026) --- */
.encadre.compo { padding: 12px 14px; margin-bottom: 10px; }
.compo-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.compo-x { background: none; border: 0; color: var(--texte-doux); font-size: 18px; padding: 4px 8px; cursor: pointer; }
.compo-reglage { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.compo-reglage span { flex: 1; color: var(--texte-doux); font-size: 15px; }
.compo-reglage b { min-width: 52px; text-align: center; font-size: 17px; }
.compo-reglage button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); font-size: 20px; cursor: pointer; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.compo-ordre { display: flex; align-items: center; gap: 4px; }
.compo-ordre button:not(.compo-x) { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); font-size: 17px; cursor: pointer; }

/* Poids sur les machines, pendant la séance (19/11/2026) */
.poids-machine { text-align: center; padding: 10px 12px; margin: 8px 0; }
.poids-reglage { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.poids-reglage .puce { min-width: 48px; min-height: 44px; font-size: 22px; line-height: 1; }
.poids-reglage strong { font-size: 22px; min-width: 96px; }

/* Zone de texte de l'avis (24/11/2026) */
textarea { font: inherit; font-size: 16px; color: var(--texte); background: var(--surface-2); border: 1px solid var(--bordure, rgba(127,127,127,.35)); border-radius: 12px; padding: 12px 14px; resize: vertical; }
textarea:focus { outline: 2px solid #d4a537; outline-offset: 1px; }

/* --- Téléphone couché (paysage), Pascal 28/11/2026 : pendant la séance, image à gauche, chrono et boutons à droite --- */
@media (orientation: landscape) and (max-height: 560px) {
  #app { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom));
         padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  #app:has(.corps.lecteur) { max-width: 940px; }
  .corps.lecteur:has(> .visuel) {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 22px; align-content: start;
  }
  .corps.lecteur:has(> .visuel) > * { grid-column: 2; }
  .corps.lecteur:has(> .visuel) { position: relative; padding-bottom: 0; }
  /* image en haut à gauche, boutons en dessous sur une seule ligne (Pause, Fini, Passer) */
  .corps.lecteur > .visuel { grid-column: 1; grid-row: 1 / span 40; align-self: start; justify-self: center; width: auto; height: calc(100vh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: none; max-width: 100%; aspect-ratio: 4 / 3; margin: 0; }
  .corps.lecteur:has(> .visuel) > .actions { grid-column: auto; grid-row: auto; position: absolute; left: 0; bottom: 0; width: calc((100% - 22px) * 1.15 / 2.15); margin: 0; padding: 0;
    display: flex; gap: 8px; }
  .corps.lecteur:has(> .visuel) > .actions > * { flex: 1; margin: 0; }
  .corps.lecteur:has(> .visuel) > .actions > .actions-ligne { flex: 2; }
  .corps.lecteur > p, .corps.lecteur > h2 { margin-top: 0; margin-bottom: 4px; }
  .corps.lecteur h2 { font-size: 20px; }
  .corps.lecteur .chrono { font-size: 50px; margin: 2px 0 0; }
  .corps.lecteur .encadre { padding: 6px 12px; margin-bottom: 6px; }
  .corps.lecteur .bouton { padding: 9px 8px; font-size: 15px; line-height: 1.2; }
}

/* Nouvel exercice : l'image apparaît en fondu au lieu de surgir d'un coup (Pascal, 29/11/2026) */
.corps.lecteur .visuel.avec-image { animation: apparitionVisuel .35s ease-out; }
@keyframes apparitionVisuel { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .corps.lecteur .visuel.avec-image { animation: none; } }
