/* ÉCOUTER — les livres audio (chantier ecouter, 19/10/2026 ; la maquette approuvée : https://claude.ai/artifact/HQvePh5JXMBhc6YtTvTpT2 ;
   FUSION-ECOUTER.md) — équipe Téléphone. Les couleurs et les polices de NOVA (Barlow / Barlow Condensed, l'accent #D9481C) : la bibliothèque et
   les chapitres suivent le thème (clair · foncé, les jetons de base.css) ; le lecteur est foncé dans les deux (comme la maquette).
   Chaque cible : 48 px au moins ; rien sous 14 px qu'un décor (aria-hidden) ; rien ne déborde à 360 px ; « moins de mouvement » : rien ne bouge. */

.app--nova .ec-page { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 640px; margin: 0 auto; }
.app--nova .ec-haut { display: flex; justify-content: flex-end; min-height: 0; }
.app--nova .ec-finis { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ambre-doux); color: var(--ambre-texte); font-weight: 700; font-size: 15px; }
.app--nova .ec-finis svg { color: var(--etoile); flex: none; }
.app--nova .ec-charge { color: var(--gris); text-align: center; padding: 24px 0; }

/* la couverture dessinée en lettres (jamais l'image du livre) */
.ec-couv { flex: none; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--ec-c, #D9481C);
  color: #FFFFFF; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; line-height: 1; }
.ec-couv-t { overflow-wrap: anywhere; hyphens: none; }
.ec-couv-bas { display: flex; flex-direction: column; gap: 10px; }
.ec-couv-trait { display: block; width: 32px; height: 4px; border-radius: 2px; background: #15212A; }
.ec-couv-a { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.ec-couv--mini { width: 52px; height: 72px; border-radius: 6px; padding: 6px; font-size: 11px; }
.ec-couv--mini .ec-couv-trait { width: 18px; height: 3px; }
.ec-couv--moyen { width: 96px; height: 132px; border-radius: 8px; padding: 10px; font-size: 19px; }
/* la grande (le lecteur) : TOUT y est à sa mesure — une seule largeur, --ec-l, d'où viennent ses marges, son titre, son trait, son auteur
   (228 px : 30 px de marge, un titre de 44 px, comme la maquette) ; elle rapetisse sur un écran bas sans jamais couper un mot (« PAUVR / E »)
   ni pousser le trait sur le titre (corrections du tour 2 : avant, ses marges suivaient la largeur de l'écran, et son titre, la hauteur) */
.ec-couv--grand { --ec-l: min(228px, 58vw, 34vh); width: var(--ec-l); aspect-ratio: 228 / 312; border-radius: 12px; padding: calc(var(--ec-l) * .132);
  font-size: calc(var(--ec-l) * .193); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.ec-couv--grand .ec-couv-bas { gap: calc(var(--ec-l) * .044); }
.ec-couv--grand .ec-couv-trait { width: calc(var(--ec-l) * .21); height: max(3px, calc(var(--ec-l) * .022)); border-radius: 3px; }
.ec-couv--grand .ec-couv-a { font-size: calc(var(--ec-l) * .07); }
/* (Safari sur iPhone : vh = l'écran SANS ses barres ; svh = ce qu'on voit vraiment, ses barres là) */
@supports (height: 1svh) { .ec-couv--grand { --ec-l: min(228px, 58vw, 34svh); } }

/* les barres d'avancement */
.ec-barre { display: block; height: 8px; border-radius: 4px; background: #2A3A43; overflow: hidden; }
.ec-barre i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 4px; background: #FF8B5E; }
.app--nova .ec-barre--fine { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 4px; }
.app--nova .ec-barre--fine i { background: var(--accent); }

/* É-EC1 · « Reprendre » : la carte foncée */
.app--nova .ec-reprendre { background: #15212A; color: #F3F5F4; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 16px; border: 1px solid transparent; }
:root[data-theme="dark"] .app--nova .ec-reprendre { border-color: #2A3A43; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app--nova .ec-reprendre { border-color: #2A3A43; } }
.app--nova .ec-et { font-family: var(--f-titre); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #FF8B5E; }
.app--nova .ec-rep-l { display: flex; gap: 16px; align-items: center; min-width: 0; }
.app--nova .ec-rep-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.app--nova .ec-rep-titre { font-family: var(--f-titre); font-weight: 700; font-size: 24px; line-height: 1.05; }
.app--nova .ec-rep-s { font-size: 15px; color: #C9D4D2; }
.app--nova .ec-gros { text-transform: uppercase; letter-spacing: .5px; font-family: var(--f-titre); font-weight: 800; }

/* É-EC1 · les rayons : Les livres, Nos audios */
.app--nova .ec-rayon { display: flex; flex-direction: column; gap: 10px; }
.app--nova .ec-rayon-t { font-family: var(--f-titre); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); }
.app--nova .ec-ligne { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 12px; border: 0; border-radius: var(--r); background: var(--surface);
  color: var(--encre); box-shadow: var(--ombre); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.app--nova button.ec-ligne:active { transform: translateY(1px); }
.app--nova .ec-ligne--bientot { cursor: default; }
.app--nova .ec-ligne--bientot .ec-couv { opacity: .55; }
.app--nova .ec-ligne-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app--nova .ec-ligne-t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .ec-ligne-a { font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .ec-pct { flex: none; font-family: var(--f-titre); font-weight: 700; font-size: 18px; color: var(--accent-texte); font-variant-numeric: tabular-nums; }
.app--nova .ec-pct--fini { color: var(--vert); }
.app--nova .ec-bientot { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--gris); font-weight: 700; font-size: 14px; }
.app--nova .ec-micro { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent); }

/* AVANCER · la carte « 🎧 Écouter » — en haut, juste sous la tête (écouter partout, 138 ; avant : sous les tuiles, 14 px au-dessus d'elle) */
.app--nova .ec-carte-place { margin-top: 0; }
.app--nova .ec-carte { gap: 12px; }
.app--nova .ec-carte .ec-couv--mini { width: 40px; height: 56px; padding: 5px; font-size: 8.5px; border-radius: 5px; }
.app--nova .ec-carte-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent); }

/* É-EC2 · LE LECTEUR (plein écran, foncé dans les deux thèmes) */
.app--nova .ec-lecteur { flex: 1 0 auto; min-height: 100%; display: flex; flex-direction: column; background: #15212A; color: #F3F5F4; padding-bottom: env(safe-area-inset-bottom); }
.app--nova .ec-l-tete { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.app--nova .ec-rond { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #F3F5F4; cursor: pointer; }
.app--nova .ec-rond:active, .app--nova .ec-saut:active { background: #1E2D36; }
.app--nova .ec-rond-vide { flex: none; width: 48px; }
.app--nova .ec-l-etiquette { flex: 1; min-width: 0; text-align: center; font-family: var(--f-titre); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #9DB0B7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .ec-l-corps { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 12px 24px 28px; }
.app--nova .ec-l-titres { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.app--nova .ec-l-nom { font-family: var(--f-titre); font-weight: 700; font-size: 26px; line-height: 1.05; }
.app--nova .ec-l-livre { font-size: 16px; color: #9DB0B7; }
.app--nova .ec-l-position { width: 100%; display: flex; flex-direction: column; gap: 2px; }
.app--nova .ec-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app--nova .ec-pos { width: 100%; height: 48px; margin: 0; background: transparent; accent-color: #D9481C; cursor: pointer; -webkit-appearance: none; appearance: none; }
.app--nova .ec-pos::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #2A3A43; }
.app--nova .ec-pos::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 0; border-radius: 50%; background: #FF8B5E; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.app--nova .ec-pos::-moz-range-track { height: 6px; border-radius: 3px; background: #2A3A43; }
.app--nova .ec-pos::-moz-range-progress { height: 6px; border-radius: 3px; background: #FF8B5E; }
.app--nova .ec-pos::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #FF8B5E; }
.app--nova .ec-pos:focus-visible { outline: 3px solid #FF8B5E; outline-offset: 2px; border-radius: 6px; }
.app--nova .ec-l-temps { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; color: #9DB0B7; }
.app--nova .ec-l-gestes { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.app--nova .ec-saut { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #F3F5F4; cursor: pointer; }
.app--nova .ec-saut span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); font-family: var(--f-titre); font-weight: 700; font-size: 14px; }
.app--nova .ec-jouer { width: 92px; height: 92px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #D9481C; color: #FFFFFF; cursor: pointer;
  box-shadow: 0 10px 28px rgba(217, 72, 28, .45); }
.app--nova .ec-jouer svg { margin-left: 4px; }
.app--nova .ec-jouer--en-cours svg { margin-left: 0; }
.app--nova .ec-l-bas { display: flex; gap: 10px; margin-top: auto; }
.app--nova .ec-pilule { min-width: 88px; height: 48px; padding: 0 18px; border: 1px solid #2A3A43; border-radius: 999px; background: #1E2D36; color: #F3F5F4; cursor: pointer;
  font-family: var(--f-titre); font-weight: 700; font-size: 20px; }
.app--nova .ec-charge--fonce { color: #9DB0B7; }
@media (prefers-reduced-motion: no-preference) {
  .app--nova .ec-lecteur:not(.ec-calme) .ec-jouer { transition: transform .15s ease-out; }
  .app--nova .ec-lecteur:not(.ec-calme) .ec-jouer:active { transform: scale(.95); }
}
/* le lecteur ouvert : tout le fond est foncé (la tablette, l'ordinateur : pas de bandes claires de chaque côté) */
:root[data-ec-lecteur="oui"] body, :root[data-ec-lecteur="oui"] .app { background: #15212A; }
/* un grand écran (la tablette debout, l'ordinateur) : le lecteur au milieu, les pilules sous les gestes (jamais un grand vide) */
@media (min-height: 900px) and (min-width: 700px) {
  .app--nova .ec-l-corps { justify-content: center; }
  .app--nova .ec-l-bas { margin-top: 8px; }
}
/* un petit écran (360 × 640, un iPhone SE) : la couverture et les espaces se serrent — tout tient sans défiler, même un nom de chapitre sur
   2 lignes (corrections du tour 2 : il dépassait de 5 px à 360 × 640) */
@media (max-height: 700px) {
  .app--nova .ec-l-corps { gap: 12px; padding-top: 4px; padding-bottom: 16px; }
  .app--nova .ec-couv--grand { --ec-l: min(228px, 58vw, 26vh); }
  .app--nova .ec-l-nom { font-size: 22px; }
}
/* un très petit écran (un iPhone SE dans Safari, ses barres là : 375 × 553 ; un petit Android avec les siennes) : les gestes se serrent
   aussi — jamais sous 48 px (corrections du tour 2 : « 1× » et « Chapitres » étaient sous le bas) */
@media (max-height: 600px) {
  .app--nova .ec-l-tete { height: 52px; }
  .app--nova .ec-l-corps { gap: 8px; padding-top: 0; padding-bottom: 12px; }
  .app--nova .ec-couv--grand { --ec-l: min(228px, 58vw, 25vh); }
  .app--nova .ec-l-nom { font-size: 20px; }
  .app--nova .ec-jouer { width: 76px; height: 76px; }
  .app--nova .ec-saut { width: 56px; height: 56px; }
}
@supports (height: 1svh) {
  @media (max-height: 700px) { .app--nova .ec-couv--grand { --ec-l: min(228px, 58vw, 26svh); } }
  @media (max-height: 600px) { .app--nova .ec-couv--grand { --ec-l: min(228px, 58vw, 25svh); } }
}

/* ÉCOUTER PARTOUT (chantier 138, 18/11/2026) · L'ACCUEIL : la carte « 🎧 Écouter » — FONCÉE dans les deux thèmes (comme « Reprendre » de la
   bibliothèque : elle se voit parmi les cartes blanches) ; sa place ne prend aucune place tant qu'elle est vide (display: contents : pas d'écart de plus
   dans l'Accueil quand la bibliothèque n'est pas là). Un seul bouton orange plein : ▶ / ⏸ de « Reprendre » ; le ▶ d'un livre : contour.
   EN HAUT ET COMPACTE (138c, 19/11/2026 ; Mounir : « … les personne ne entre pas ajoute le en haut dans acceuil ») : sous les puces, petite pour que le
   jeu reste au 1er écran — « Reprendre » : UNE rangée et sa fine barre (76 px) ; les livres : la tête, puis une rangée de 48 px par livre, 2 au plus
   (148 px) ; chaque cible : 48 px ; rien sous 14 px qu'un décor (la petite couverture : aria-hidden). Le bord en thème foncé : une ombre dedans (aucun
   pixel de plus). */
.app--nova .ec-acc-place { display: contents; }
/* LE SAUT (138c, correcteur) : pendant la 1re lecture de la bibliothèque (l'ouverture de NOVA), la place est GARDÉE — la carte de la forme vue la
   dernière fois sur ce téléphone, SANS RIEN DEDANS (ses rangées vides, les mêmes règles : 76 px « reprendre », 148 px 2 livres, 100 px 1 livre) ;
   INVISIBLE (ni fond, ni mot, rien à toucher : un toucher passe au travers). La carte arrive à sa place : rien ne saute sous le doigt. */
.app--nova .ec-acc-attente { display: flex; flex-direction: column; min-width: 0; visibility: hidden; }
.app--nova .ec-acc { background: #15212A; color: #F3F5F4; border-radius: var(--r); display: flex; flex-direction: column; cursor: pointer; min-width: 0; }
:root[data-theme="dark"] .app--nova .ec-acc { box-shadow: inset 0 0 0 1px #2A3A43; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app--nova .ec-acc { box-shadow: inset 0 0 0 1px #2A3A43; } }
.app--nova .ec-acc--reprendre { padding: 8px 12px 10px; gap: 6px; }
.app--nova .ec-acc--livres { padding: 0 6px 4px 12px; }
.app--nova .ec-acc-l, .app--nova .ec-acc-livre { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; }
.app--nova .ec-acc-casque { flex: none; display: grid; place-items: center; color: #FF8B5E; }
.app--nova .ec-acc .ec-couv--mini { width: 32px; height: 42px; padding: 4px; font-size: 6.5px; border-radius: 4px; }
.app--nova .ec-acc .ec-couv--mini .ec-couv-bas { gap: 3px; }
.app--nova .ec-acc .ec-couv--mini .ec-couv-trait { width: 12px; height: 2px; }
.app--nova .ec-acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app--nova .ec-acc-titre { font-family: var(--f-titre); font-weight: 700; font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .ec-acc-s { min-width: 0; font-size: 14px; line-height: 1.25; color: #C9D4D2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .ec-acc-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
/* « Tout › » (la bibliothèque) : 48 px de cible ; sur la petite ligne de « Reprendre », il déborde en haut et en bas sans grandir la rangée (il couvre
   la fin du titre : le même chemin que la carte, la bibliothèque) */
.app--nova .ec-acc-tout { flex: none; min-width: 48px; min-height: 48px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: #C9D4D2;
  font-family: var(--f-titre); font-weight: 700; font-size: 16px; cursor: pointer; }
.app--nova .ec-acc-tout:active { background: #1E2D36; }
.app--nova .ec-acc-bas .ec-acc-tout { margin: -15px -6px -15px 0; }
/* la tête des livres : le casque et « Écouter » (orange), « Tout › » à droite — 48 px de haut (la cible de « Tout › ») */
.app--nova .ec-acc-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; }
.app--nova .ec-acc-et { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titre); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: #FF8B5E; }
.app--nova .ec-acc-et svg { flex: none; }
/* « Reprendre » : le bouton ROND orange (▶ / ⏸), LE bouton orange de l'Accueil (nb--primaire), 48 px */
.app--nova .ec-acc .nb.ec-acc-rond { flex: none; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; gap: 0; border: 0; border-radius: 50%; }
.app--nova .ec-acc .nb.ec-acc-rond svg { width: 22px; height: 22px; margin-left: 3px; }
.app--nova .ec-acc .nb.ec-acc-rond--pause svg { margin-left: 0; }
/* la fine barre du % du livre, sous la rangée */
.app--nova .ec-acc-attente .ec-barre, .app--nova .ec-acc .ec-barre { height: 4px; border-radius: 2px; }
/* rien de commencé : une rangée de 48 px par livre ; ▶ rond en CONTOUR orange (sa cible : 48 px ; le rond dessiné : 40 px) */
.app--nova .ec-acc-livres { display: flex; flex-direction: column; }
.app--nova .ec-acc-ecouter { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: #FF8B5E; cursor: pointer; }
.app--nova .ec-acc-o { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid #FF8B5E; border-radius: 50%; }
.app--nova .ec-acc-o svg { width: 18px; height: 18px; margin-left: 2px; }
.app--nova .ec-acc-ecouter:active .ec-acc-o { background: rgba(255, 139, 94, .14); }

/* ÉCOUTER PARTOUT (138) · LE MINI-LECTEUR : dès qu'un chapitre joue ou attend au milieu, une petite barre foncée AU-DESSUS de la pilule du bas, sur les
   écrans de NOVA (la règle : noyau/ecoute-partout.js). La pastille du livre, son titre, le chapitre, ⏯ (blanc : jamais un 2e bouton orange) ; sa fine
   barre (le chapitre, en orange). Le contenu et les toasts remontent d'autant (rien ne passe dessous). Cibles de 48 px ; « moins de mouvement » : rien
   ne bouge (aucune animation). Le grand écran : en bas à gauche de la scène (les toasts restent en bas à droite). */
:root { --ec-mini-h: 60px; }
.ec-mini { position: absolute; z-index: 11; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); max-width: 520px; margin-inline: auto;
  bottom: var(--barre-occupe); height: var(--ec-mini-h); display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; border-radius: 16px; overflow: hidden;
  background: #15212A; color: #F3F5F4; box-shadow: 0 8px 24px rgba(21, 33, 42, .28), 0 1px 3px rgba(21, 33, 42, .18); }
:root[data-theme="dark"] .ec-mini { background: #1E2D36; box-shadow: 0 8px 28px rgba(0, 0, 0, .5), inset 0 0 0 1px #2A3A43; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ec-mini { background: #1E2D36; box-shadow: 0 8px 28px rgba(0, 0, 0, .5), inset 0 0 0 1px #2A3A43; } }
.ec-mini-ouvrir { flex: 1; min-width: 0; height: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 4px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ec-mini-pastille { flex: none; position: relative; width: 34px; height: 46px; border-radius: 5px; background: var(--ec-c, #D9481C); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ec-mini-pastille i { position: absolute; left: 6px; bottom: 7px; width: 14px; height: 3px; border-radius: 2px; background: #15212A; }
.ec-mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ec-mini-t { font-family: var(--f-titre); font-weight: 700; font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-mini-s { font-size: 14px; line-height: 1.2; color: #C9D4D2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-mini-jouer { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #FFFFFF; cursor: pointer; }
.ec-mini-ouvrir:active { background: rgba(255, 255, 255, .06); }
.ec-mini-jouer:active { background: rgba(255, 255, 255, .2); }
.ec-mini :focus-visible { outline: 3px solid #FF8B5E; outline-offset: -3px; }
.ec-mini-barre { position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; pointer-events: none; }
.ec-mini-barre i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #FF8B5E; }
/* rien ne passe dessous : le contenu garde en bas la place de la pilule ET du mini-lecteur ; les toasts montent au-dessus de lui */
.app.ec-mini-la:not(.app--grand):not(.sans-barre) > .contenu { padding-bottom: calc(var(--barre-occupe) + var(--ec-mini-h) + 8px); }
.app.ec-mini-la:not(.app--grand):not(.sans-barre):not(.toasts-haut):not(.avec-feuille) > .toasts { bottom: calc(var(--barre-occupe) + var(--ec-mini-h) + 12px); }
/* le grand écran (le rail à gauche, grand.css) : en bas à gauche de la scène, à 24 px du rail ; le contenu garde sa place en bas */
#app.app--grand > .ec-mini { left: calc(var(--ge-rail, 96px) + env(safe-area-inset-left, 0px) + 24px); right: auto; width: min(420px, calc(100% - var(--ge-rail, 96px) - 48px));
  max-width: none; margin: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
#app.app--grand.ec-mini-la > .contenu { padding-bottom: calc(var(--ec-mini-h) + 40px); }

/* É-EC3 · LES CHAPITRES */
.app--nova .ec-sur { font-family: var(--f-titre); font-weight: 700; font-size: 18px; color: var(--vert); }
.app--nova .ec-chaps { display: flex; flex-direction: column; gap: 6px; }
.app--nova .ec-chap { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; border-radius: 12px; background: var(--surface);
  color: var(--encre); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.app--nova .ec-chap--ici { background: var(--accent-doux); }
.app--nova .ec-chap-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gris);
  font-family: var(--f-titre); font-weight: 800; font-size: 17px; }
.app--nova .ec-chap--fini .ec-chap-n { background: var(--vert-doux); color: var(--vert); }
.app--nova .ec-chap--ici .ec-chap-n { background: var(--accent); color: #FFFFFF; }
.app--nova .ec-chap-t { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; line-height: 1.15; }
.app--nova .ec-chap-ok { flex: none; color: var(--vert); }
.app--nova .ec-chap-en-cours { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 14px; }
