/* ==========================================================================
   SOURCE · lecteur feuilletable (page de numéro)
   Le livre est posé sur une table teintée du fluo du numéro. Une seule
   feuille bouge à la fois (CSS 3D) ; pendant un tour, seuls transform et
   opacity changent. Pas d'overflow, de filter ni de border-radius entre
   .livre et .feuille (Safari aplatirait la 3D).
   ========================================================================== */

.page-numero {
  --table: color-mix(in srgb, var(--fluo) 10%, #dde0da);
  --table-ink: var(--ink);
  --papier-page: #f3f4f1;
  --barre-basse: 56px;
  --r: 0.70667;              /* largeur / hauteur d'une page A4 */
  --tour: 650ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-numero { --table: color-mix(in srgb, var(--fluo) 8%, #0a0c12); }
}
:root[data-theme="dark"] .page-numero { --table: color-mix(in srgb, var(--fluo) 8%, #0a0c12); }

/* ---------- Le cadre ---------- */
.lecteur {
  position: relative;
  display: grid;
  grid-template-rows: var(--barre) minmax(0, 1fr) calc(var(--barre-basse) + env(safe-area-inset-bottom));
  height: 100vh;
  height: 100svh;
  min-height: 300px;
  color: var(--table-ink);
  background-color: var(--table);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 55% at 50% 42%, color-mix(in srgb, var(--fluo) 16%, var(--table)), var(--table) 72%);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lecteur.immersif {
  position: fixed; inset: 0; z-index: 60; height: 100dvh; min-height: 0;
}
.lecteur:fullscreen { height: 100vh; }

/* ---------- Barres ---------- */
.barre {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-inline: clamp(4px, 1.4vw, 16px);
  transition: opacity var(--d2) var(--ease-out);
}
.barre-haute { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.barre-basse { padding-bottom: env(safe-area-inset-bottom); }
.barre-groupe { display: flex; align-items: center; gap: 2px; min-width: 0; }
.barre-basse > .barre-groupe { flex: 1 1 0; }
.barre-groupe.droite { justify-content: flex-end; }
.barre-titre {
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 1rem;
}
.barre-titre .mono { font-size: var(--t-xs); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: transparent; border: 0; border-radius: 0; color: inherit; cursor: pointer; text-decoration: none;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--d1);
}
.bouton:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bouton:disabled { opacity: .35; cursor: default; background: none; }
.bouton .discret { opacity: .7; }
.bouton[aria-expanded="true"], .bouton[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lecteur :focus-visible { outline: 3px solid var(--encre); outline-offset: -3px; }

.navigation { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; justify-content: center; max-width: 560px; }
.navigation[hidden] { display: none; }
.compteur {
  min-width: 7.6em; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .06em; margin: 0;
  font-size: .8rem; font-weight: 600;
}
.rail { position: relative; flex: 1 1 auto; display: flex; align-items: center; height: 44px; min-width: 80px; }
.rail input {
  --progres: 0%;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; accent-color: var(--fluo);
}
.rail input::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(var(--fluo), var(--fluo)) 0 0 / var(--progres) 100% no-repeat, color-mix(in srgb, var(--ink) 22%, transparent);
}
.rail input::-moz-range-track { height: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.rail input::-moz-range-progress { height: 2px; background: var(--fluo); }
.rail input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -6px;
  background: var(--fluo); border: 2px solid var(--ink); border-radius: 0;
}
.rail input::-moz-range-thumb { width: 12px; height: 12px; background: var(--fluo); border: 2px solid var(--ink); border-radius: 0; }
.rail input:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.apercu {
  position: absolute; bottom: 52px; left: var(--x, 50%); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px; padding: 6px;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
}
.apercu[hidden] { display: none; }
.apercu-img { display: flex; gap: 2px; height: 102px; }
.apercu-img img, .apercu-img .vierge { height: 102px; width: 72px; object-fit: cover; background: var(--papier-page); }
.apercu-n { font-size: .7rem; }

/* Mode immersif (plein écran) : les commandes s'effacent après 3 s sans geste. */
.lecteur.calme .barre, .lecteur.calme .bulles { opacity: 0; pointer-events: none; }
.lecteur.calme { cursor: none; }

/* ---------- La scène ---------- */
.scene { position: relative; touch-action: pan-y; }
.lecteur.zoome .scene { overflow: clip; }   /* sinon, la feuille qui se soulève peut passer sous les barres */
.lecteur.zoome .scene, .lecteur.immersif .scene { touch-action: none; }
.zone {
  position: absolute;
  inset: clamp(10px, 2.6vh, 30px) clamp(8px, 3vw, 48px) clamp(14px, 3.2vh, 34px);
  container: zone / size;
}
.zoom {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform-origin: 0 0;
}
.zoom.glisse { transition: transform var(--d2) var(--ease-out); }

/* Géométrie : page simple par défaut, double page si la zone est large (le script confirme, avec hystérésis). */
.livre {
  --ph: min(100cqh, 100cqw / var(--r));
  --pw: calc(var(--ph) * var(--r));
  position: relative;
  width: var(--pw);
  height: var(--ph);
  perspective: 2600px;
  perspective-origin: 50% 45%;
  transform: translateX(var(--decalage, 0px));
}
@container zone (min-width: 820px) and (min-aspect-ratio: 6 / 5) {
  .lecteur:not(.mode-simple) .livre { --ph: min(100cqh, 50cqw / var(--r)); width: calc(var(--pw) * 2); }
  .lecteur:not(.mode-simple) .livre.ferme-debut { --decalage: calc(var(--pw) / -2); }
}
.lecteur.mode-double .livre { --ph: min(100cqh, 50cqw / var(--r)); width: calc(var(--pw) * 2); }
.lecteur.mode-double .livre.ferme-debut { --decalage: calc(var(--pw) / -2); }
.lecteur.mode-double .livre.ferme-fin { --decalage: calc(var(--pw) / 2); }
.lecteur.mode-simple .livre { perspective-origin: 0% 45%; }

.cote { position: absolute; top: 0; width: var(--pw); height: 100%; }
.cote.gauche { left: 0; display: none; }
.cote.droit { left: 0; }
.lecteur:not(.mode-simple) .cote.gauche { display: block; }
@container zone (min-width: 820px) and (min-aspect-ratio: 6 / 5) {
  .lecteur:not(.mode-simple) .cote.droit { left: var(--pw); }
}
.lecteur.mode-double .cote.droit { left: var(--pw); }
.lecteur.mode-simple .cote.gauche { display: none; }
.lecteur:not(.js-pret) .cote.gauche { display: none; }

.emplacement { position: absolute; inset: 0; }

/* Ombre portée sur la table (une ellipse par côté non vide) */
.sol {
  position: absolute; left: 4%; right: 4%; bottom: -16px; height: 30px; z-index: -1;
  background: radial-gradient(closest-side, rgb(0 0 0 / .35), transparent);
  pointer-events: none;
}
.cote::after { /* ombre du papier sur la table */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: 0 1px 1px rgb(0 0 0 / .14), 0 14px 28px -12px rgb(0 0 0 / .45), 0 2px 10px -2px rgb(0 0 0 / .12);
}
.cote.vide::after, .cote.vide .sol, .cote.vide .portee { display: none; }

/* Tranches : filets alternés, plus ou moins épais selon les pages de chaque côté */
.cote::before {
  content: ""; position: absolute; top: 1px; bottom: -1px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fbfbf8 0 1px, #c3c7be 1px 2px);
}
.cote.gauche::before { left: calc(-1 * var(--ep-g, 0px)); width: var(--ep-g, 0px); }
.cote.droit::before { right: calc(-1 * var(--ep-d, 0px)); width: var(--ep-d, 0px); }
.cote.vide::before, .lecteur.zoome .cote::before { display: none; }

/* Ombre de la feuille qui tourne sur la page qu'elle découvre */
.portee {
  position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none;
}
.cote.droit .portee { background: linear-gradient(90deg, rgb(0 0 0 / .55), rgb(0 0 0 / .18) 30%, transparent 70%); }
.cote.gauche .portee { background: linear-gradient(270deg, rgb(0 0 0 / .55), rgb(0 0 0 / .18) 30%, transparent 70%); }
.lecteur.mode-simple .cote.droit .portee { background: linear-gradient(90deg, rgb(0 0 0 / .4), transparent 60%); }

/* ---------- Une page ---------- */
.page {
  position: absolute; inset: 0;
  background: var(--papier-page);
  contain: layout paint;
}
.page > img, .page > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.page .basse { object-fit: cover; background-size: cover; }
/* Transition depuis le kiosque : la couverture cliquée devient celle du livre fermé. */
.cote.droit .page[data-n="1"] { view-transition-name: couv; }
.page canvas.haute { opacity: 0; transition: opacity 240ms var(--ease-out); }
.page canvas.haute.pret { opacity: 1; }
.page canvas.zoomee { inset: auto; width: auto; height: auto; }
.page::after { /* gouttière : le papier s'enfonce vers la reliure */
  content: ""; position: absolute; top: 0; bottom: 0; width: 9%; z-index: 2; pointer-events: none;
}
.page[data-cote="g"]::after { right: 0; background: linear-gradient(90deg, transparent, rgb(0 0 0 / .07) 55%, rgb(0 0 0 / .2)); }
.page[data-cote="d"]::after { left: 0; background: linear-gradient(270deg, transparent, rgb(0 0 0 / .07) 55%, rgb(0 0 0 / .2)); }
.lecteur.mode-simple .page[data-cote="d"]::after { width: 4%; background: linear-gradient(270deg, transparent, rgb(0 0 0 / .12)); }
.livre.ferme-debut .page[data-n="1"]::after { width: 5%; background: linear-gradient(90deg, rgb(0 0 0 / .4), rgb(255 255 255 / .1) 50%, transparent); }
/* En sombre, les pages restent claires (sinon elles disparaîtraient sur la table), juste un peu éteintes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: .06; pointer-events: none; }
}
:root[data-theme="dark"] .page::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: .06; pointer-events: none; }
.page.dos { background: #eceee9; }
.page.dos::after { width: 100%; background: linear-gradient(90deg, rgb(0 0 0 / .1), transparent 30%); }

/* Couche de liens (notes vers les sources, liens externes) */
.liens { position: absolute; inset: 0; z-index: 4; }
.liens a { position: absolute; display: block; border-radius: 0; cursor: pointer; }
@media (hover: hover) {
  .liens a:hover { background: color-mix(in srgb, var(--fluo) 25%, transparent); box-shadow: inset 0 -2px 0 var(--fluo); }
}
.lecteur.anime .liens, .lecteur.glisse .liens { pointer-events: none; }

/* ---------- La feuille qui tourne ---------- */
.feuille {
  position: absolute; top: 0; left: 0; width: var(--pw); height: 100%; z-index: 4;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
}
@container zone (min-width: 820px) and (min-aspect-ratio: 6 / 5) {
  .lecteur:not(.mode-simple) .feuille { left: var(--pw); }
}
.lecteur.mode-double .feuille { left: var(--pw); }
.lecteur.mode-simple .feuille { left: 0; }
.feuille[hidden] { display: none; }
.lecteur.anime .feuille, .lecteur.glisse .feuille { will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.verso { transform: rotateY(180deg); }
.voile { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; }
.recto .voile { background: linear-gradient(90deg, rgb(0 0 0 / .5), #000 40%); }
.verso .voile { background: linear-gradient(270deg, rgb(0 0 0 / .5), #000 40%); }
.face::after { /* léger reflet du papier courbé, côté charnière */
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: var(--reflet, 0);
  background: linear-gradient(90deg, rgb(255 255 255 / .0), rgb(255 255 255 / .25) 12%, transparent 30%);
}

/* ---------- Chargement ---------- */
.chargement { position: absolute; left: 50%; bottom: 6px; width: min(220px, 40%); height: 2px; transform: translateX(-50%); opacity: 0; transition: opacity var(--d2); }
.chargement i { display: block; height: 100%; background: var(--fluo); box-shadow: 0 0 0 .5px color-mix(in srgb, var(--ink) 40%, transparent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform var(--d2) var(--ease-out); }
.lecteur.charge .chargement { opacity: 1; }

/* ---------- Bulles : reprise, retour, astuces, erreurs ---------- */
.bulles {
  position: absolute; left: 50%; bottom: calc(var(--barre-basse) + env(safe-area-inset-bottom) + 4px); z-index: 7;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px);
  transition: opacity var(--d2);
}
.bulle {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 10px 12px 10px 16px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: .95rem; line-height: 1.3;
  max-width: 34rem;
}
.bulle.discrete {
  box-shadow: none; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: color-mix(in srgb, var(--paper) 94%, transparent);
  padding: 5px 10px; gap: 6px; font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.bulle.discrete kbd { min-width: 20px; height: 20px; box-shadow: 0 1.5px 0 var(--ink); border-width: 1px; }
.bulle .actions { display: flex; gap: 6px; }
.bulle button, .bulle a.action {
  min-height: 40px; padding: 0 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 0;
}
.bulle button.principal, .bulle a.action.principal { background: var(--ink); color: var(--paper); }
.bulle kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px;
  border: 1.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font: 600 .75rem/1 var(--f-mono);
}
.bulle kbd .icone { width: 14px; height: 14px; stroke-width: 2; }
.bulle.erreur { border-color: var(--v-faux); box-shadow: 4px 4px 0 var(--v-faux); }
@media (prefers-reduced-motion: no-preference) {
  .bulle { animation: bulle-entre var(--d2) var(--ease-out); }
  .bulle.sort { opacity: 0; transform: translateY(6px); transition: opacity var(--d1), transform var(--d1); }
}
@keyframes bulle-entre { from { opacity: 0; transform: translateY(8px); } }

.retour-lien {
  position: absolute; left: 12px; top: calc(var(--barre) + 10px); z-index: 7;
}
.retour-lien button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer;
  background: var(--fluo); color: var(--on-fluo); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 0;
  font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase;
}

.sans-lecteur {
  position: absolute; left: 50%; bottom: calc(var(--barre-basse) + 16px); transform: translateX(-50%); z-index: 7;
  width: min(30rem, calc(100% - 32px)); padding: 12px 16px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  font-size: 1rem;
}

/* ---------- Vignettes ---------- */
.vignettes {
  position: absolute; left: 0; right: 0; bottom: calc(var(--barre-basse) + env(safe-area-inset-bottom)); z-index: 8;
  background: var(--paper); color: var(--ink);   /* opaque : le texte de la page ne doit pas transparaître sous les miniatures */
  border-top: 2px solid var(--ink);
  padding: 10px clamp(8px, 2vw, 20px) 14px;
}
.vignettes[hidden] { display: none; }
.vignettes-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vignettes-tete .mono { color: var(--ink-2); }
.vignettes-liste {
  list-style: none; margin: 0; padding: 4px 2px 6px; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.vignettes-liste li { flex: none; scroll-snap-align: center; }
.vignettes-liste li.paire { display: flex; gap: 0; }
.vignette {
  display: grid; gap: 6px; justify-items: center; padding: 4px; cursor: pointer;
  background: none; border: 0; border-radius: 0; color: inherit;
}
.vignette .image { width: 72px; height: 102px; background: var(--papier-page); box-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 4px 10px -4px rgb(0 0 0 / .3); overflow: hidden; }
.vignette .image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette .n { font: 500 .7rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); padding: 3px 5px 2px; }
.vignette[aria-current="page"] .image { outline: 3px solid var(--fluo); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.vignette[aria-current="page"] .n { background: var(--fluo); color: var(--on-fluo); }
.vignette:hover .image { transform: translateY(-2px); }
.vignette:focus-visible { outline: 3px solid var(--encre); outline-offset: 0; }

/* ---------- Sous la scène : la fiche du numéro (lisible sans JavaScript) ---------- */
.fiche { padding-block: clamp(48px, 7vw, 96px); background: var(--paper); }
.fiche:focus { outline: none; }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.fiche .kicker { color: var(--encre); }
.fiche h1 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .88; text-transform: uppercase;
  margin-block: 16px 22px;
}
.fiche .chapo { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 36rem; text-wrap: pretty; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.fiche-sommaire { border-top: 2px solid var(--ink); padding-top: 12px; }
.fiche-sommaire > .mono { color: var(--ink-2); margin-bottom: 4px; }
.sommaire { list-style: none; margin: 0; padding: 0; }
.sommaire li { border-bottom: 1px solid var(--rule); }
.sommaire a {
  display: block; padding: 14px 0; color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-stretch: 88%; font-size: 1.15rem; line-height: 1.25; text-wrap: pretty;
}
.sommaire a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--fluo); }
.sommaire .label { display: block; color: var(--ink-2); margin-bottom: 4px; font-weight: 400; }
.fiche-retour { margin-top: 22px; }
.pied-court .wrap { padding-block: 22px; }
.pied-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font: 400 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .02em; }
.pied-ligne .logo { font-size: 1.2rem; }
@media (max-width: 799px) {
  .fiche-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Téléphone ---------- */
.bouton-texte-mobile { display: none; }
@media (max-width: 760px) {
  .barre-haute { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px; }
  .barre-titre { display: block; font-size: .92rem; }
  .barre .texte { display: none; }
  .barre .bouton { padding: 0 6px; min-width: 42px; }
  .barre .facultatif { display: none; }
  .bouton-texte-mobile { display: inline-flex; padding-inline: 8px 10px; }
  .bouton-texte-mobile .texte { display: inline; }
  .rail { display: none; }
  .navigation { flex: 0 1 auto; gap: 0; }
  .barre-basse > .barre-groupe { flex: 0 0 auto; }
  .compteur { min-width: 0; padding-inline: 4px; }
  .bulles { max-width: calc(100% - 16px); }
  .bulle { font-size: .85rem; padding: 10px 12px; }
}
@media (max-width: 419px) {
  .bouton-theme-lecteur { display: none; }
}
@media (max-width: 359px) {
  .bouton-texte-mobile .long { display: none; }
}
@media (max-width: 600px) {
  .vignettes { top: var(--barre); overflow-y: auto; padding-bottom: 20px; }
  .vignettes-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; overflow: visible; }
  .vignettes-liste li.paire { display: contents; }
  .vignette .image { width: 100%; height: auto; aspect-ratio: 595 / 842; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .feuille { display: none !important; }
  .page canvas.haute { transition: none; }
}
