/* ==========================================================================
   SOURCE · le site (kiosque, page de numéro, 404)
   S'ajoute à design/magazine.css (jetons, surligneur, coverlines, encadré
   « SOURCE, c'est quoi ? »). Le fluo d'un numéro ne teinte que son coin :
   --fluo est redéfini par carte (.num) et par page de numéro, jamais ici.
   ========================================================================== */

/* Polices variables locales (SIL OFL, design/polices/) : toutes les largeurs et graisses. */
@font-face {
  font-family: "Archivo";
  src: url(../design/polices/archivo-latin-standard-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../design/polices/source-serif-4-latin-standard-normal.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../design/polices/source-serif-4-latin-standard-italic.woff2) format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Mono"; src: url(../design/polices/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../design/polices/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../design/polices/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --shadow-cover: 0 1px 1px rgb(0 0 0 / .2), 0 8px 14px -6px rgb(0 0 0 / .25), 0 28px 44px -18px rgb(0 0 0 / .45);
  --shadow-cover-haut: 0 2px 2px rgb(0 0 0 / .18), 0 18px 26px -10px rgb(0 0 0 / .32), 0 46px 64px -24px rgb(0 0 0 / .5);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .35, 1);
  --d1: 160ms;
  --d2: 280ms;
  --d3: 480ms;
  --d4: 720ms;
  --ombre-tampon: var(--ink);
  --barre: 48px;
}

/* Teinte d'un numéro : <a class="num" style="--f:#ff7ad9;--fs:#ff8fe0"> */
.num { --fluo: var(--f, #e4ff3a); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .num { --fluo: var(--fs, var(--f, #dcf53b)); }
}
:root[data-theme="dark"] .num { --fluo: var(--fs, var(--f, #dcf53b)); }

/* ---------- Base ---------- */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
::selection { background: var(--fluo); color: var(--on-fluo); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 0; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--fluo); color: var(--on-fluo); border: 2px solid var(--ink);
  font: 800 var(--t-sm)/1 var(--f-display); font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 18px; text-decoration: none;
}
.evitement:focus { top: 12px; }
.mono {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
}
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icone.plein { fill: currentColor; stroke: none; }

/* Surligneur qui se pose (la promesse, les titres de cartes) */
.trace {
  color: inherit;
  background-image: linear-gradient(100deg, transparent .15em, var(--fluo) .2em, var(--fluo) calc(100% - .25em), transparent calc(100% - .15em));
  background-size: 0% 74%;
  background-position: 0 62%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .15em;
  margin-inline: -.15em;
}
.trace.pose { background-size: 100% 74%; color: var(--on-fluo); }

/* ---------- Boutons « tampon » ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 90%;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: var(--ink); background: var(--paper); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 var(--ombre-tampon);
  transition: transform var(--d1) var(--ease-out), box-shadow var(--d1) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ombre-tampon); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ombre-tampon); }
.btn .icone { width: 18px; height: 18px; stroke-width: 2; }
.btn-fluo { background: var(--fluo); color: var(--on-fluo); border-color: var(--on-fluo); }
.btn-encre { background: var(--ink); color: var(--paper); }
.lien-mono {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.lien-mono:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête collant ---------- */
.entete {
  position: sticky; top: 0; z-index: 40;
  background: var(--cover); color: var(--on-cover);
  border-bottom: 1px solid color-mix(in srgb, var(--on-cover) 14%, transparent);
}
.entete .wrap { height: var(--barre); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.entete .logo { font-size: 1.32rem; }
.entete .logo:focus-visible { outline-color: var(--fluo); }
.entete nav { display: flex; align-items: center; gap: clamp(4px, 2vw, 22px); }
.entete nav a, .bouton-theme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 6px;
  color: var(--on-cover-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.entete nav a:hover, .bouton-theme:hover { color: var(--on-cover); }
.entete :focus-visible { outline-color: var(--fluo); }
.bouton-theme .icone { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .entete nav .facultatif { display: none; }
  .bouton-theme .texte { display: none; }
}

/* ---------- À la une ---------- */
.une {
  position: relative; overflow: hidden;
  background: var(--cover); color: var(--on-cover);
}
.une .wrap {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(36px, 5.5vw, 80px) clamp(44px, 6vw, 88px);
}
.une-texte { grid-column: 1 / 8; position: relative; z-index: 2; }
.une-visuel { grid-column: 8 / 13; position: relative; z-index: 1; }
.une-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--fluo); }
.une-kicker .pastille {
  background: var(--fluo); color: var(--on-fluo); padding: 4px 8px 3px; font-weight: 600;
}
.une h1 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(2.8rem, 8.4vw, 7.6rem); line-height: .86; letter-spacing: -.01em;
  text-transform: uppercase; margin-block: 20px 24px; text-wrap: balance;
}
.une h1 a { color: inherit; text-decoration: none; }
.une h1 .hl { color: var(--on-fluo); }
.une .chapo {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; max-width: 34rem;
  text-wrap: pretty; hyphens: auto; hyphenate-limit-chars: 6 3 3;
}
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.une .btn { --ombre-tampon: var(--on-cover); }
.une-actions .lien-mono { color: var(--on-cover-2); }
.une-actions .lien-mono:hover { color: var(--on-cover); }
.une .coverlines { margin-top: 38px; }
.une .coverlines a:hover { color: var(--on-cover); text-decoration: underline; text-decoration-color: var(--fluo); text-decoration-thickness: 2px; }
.une-chiffre {
  position: absolute; z-index: 0; right: max(0px, calc((100vw - var(--page)) / 2)); top: 50%; transform: translate(4%, -52%);
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(9rem, 30vw, 26rem); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--on-cover) 18%, transparent);
  pointer-events: none; user-select: none;
}

/* La couverture : seul objet en 3D du site */
.couv3d { position: relative; perspective: 1600px; display: grid; justify-items: center; }
.couv3d::before {
  content: ""; position: absolute; inset: -14% -22%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fluo) 38%, transparent), transparent);
  pointer-events: none;
}
.objet {
  position: relative; display: block; width: min(100%, 430px); aspect-ratio: 595 / 842;
  background: color-mix(in srgb, var(--fluo) 20%, var(--cover));
  box-shadow: var(--shadow-cover), 18px 30px 60px -20px rgb(0 0 0 / .55);
  transform: rotateY(-16deg) rotateX(3deg);
  transform-origin: 50% 50%;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}
.objet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.objet::after { /* reliure : bande sombre puis claire sur les 6 % de gauche */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .42), rgb(0 0 0 / .1) 38%, rgb(255 255 255 / .16) 52%, rgb(255 255 255 / 0) 70%, rgb(0 0 0 / .08));
}
.objet::before { /* reflet qui glisse au survol */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .2) 48%, rgb(255 255 255 / .06) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 110% 0;
  transition: background-position 700ms var(--ease-out);
}
@media (hover: hover) {
  .objet:hover { transform: rotateY(-6deg) translateY(-8px); box-shadow: var(--shadow-cover-haut), 10px 34px 70px -24px rgb(0 0 0 / .6); }
  .objet:hover::before { background-position: -10% 0; }
}
.objet:focus-visible { outline: 3px solid var(--fluo); outline-offset: 6px; }

@media (max-width: 959px) {
  .une-texte { grid-column: 1 / 9; }
  .une-visuel { grid-column: 9 / 13; }
}
@media (max-width: 719px) {
  .une .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 28px 44px; }
  .une-texte, .une-visuel { grid-column: 1; }
  .une-texte { display: contents; }
  .une-kicker { order: 1; }
  .une h1 { order: 2; margin-bottom: 26px; font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .une-visuel { order: 3; margin-bottom: 34px; }
  .une .chapo { order: 4; }
  .une-actions { order: 5; flex-direction: column; align-items: stretch; }
  .une-actions .btn { width: 100%; }
  .une-actions .liens-secondaires { justify-content: center; }
  .une .coverlines { order: 6; grid-template-columns: minmax(0, 1fr); }
  .une .coverlines li:nth-child(odd) { border-right: 0; }
  .une .coverlines li:nth-child(even) a { padding-left: 0; }
  .objet { width: 64vw; max-width: 300px; transform: rotateY(-10deg) rotateX(2deg); }
  .une-chiffre { top: 30%; font-size: 16rem; }
}
.liens-secondaires { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- La promesse ---------- */
.promesse { padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--rule); }
.promesse .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.promesse-texte { grid-column: 1 / 8; }
.promesse .source-mode { grid-column: 8 / 13; }
.promesse .kicker { color: var(--encre); }
.promesse h2 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: .9; text-transform: uppercase;
  margin-block: 14px 26px; max-width: 13ch;
}
.promesse-corps { display: grid; gap: .9em; max-width: 34rem; font-size: 1.15rem; line-height: 1.6; text-wrap: pretty; }
.verdicts { margin-top: 34px; }
.verdicts p { color: var(--ink-2); margin-bottom: 12px; }
.verdicts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.verdicts li {
  --c: var(--v-nd);
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-left: 4px solid var(--c);
  padding: 7px 10px 6px;
}
.verdicts li[data-v="vrai"] { --c: var(--v-vrai); }
.verdicts li[data-v="plutot"] { --c: var(--v-plutot); }
.verdicts li[data-v="nuance"] { --c: var(--v-nuance); }
.verdicts li[data-v="exagere"] { --c: var(--v-exag); }
.verdicts li[data-v="faux"] { --c: var(--v-faux); }
.source-mode li { color: var(--ink-2); }
@media (max-width: 859px) {
  .promesse .wrap { grid-template-columns: minmax(0, 1fr); }   /* 12 colonnes + 11 gouttières débordaient sous 340 px */
  .promesse-texte, .promesse .source-mode { grid-column: 1 / -1; }
}

/* ---------- Rayonnage : tous les numéros ---------- */
.rayonnage { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 9vw, 128px); }
.rayon-tete {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px;
  border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: clamp(28px, 4vw, 48px);
}
.rayon-tete h2 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: .92; text-transform: uppercase;
}
.compteur { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.outils-rayon { display: none; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 32px; }
.outils-rayon.actifs { display: flex; }
.recherche { position: relative; flex: 1 1 260px; max-width: 420px; }
.recherche input {
  width: 100%; height: 44px; padding: 0 12px 0 40px;
  font: 400 1rem/1 var(--f-text); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 0;
}
.recherche .icone { position: absolute; left: 12px; top: 12px; color: var(--ink-2); }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce {
  min-height: 36px; padding: 0 12px; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 0;
}
.puce[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bascule { display: inline-flex; border: 1.5px solid var(--ink); margin-left: auto; }
.bascule button {
  min-height: 40px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase;
}
.bascule button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.aucun { color: var(--ink-2); font-style: italic; padding-block: 24px; }

.etagere {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(148px, 21vw, 232px), 1fr));
  column-gap: clamp(16px, 3vw, 40px); row-gap: clamp(32px, 5vw, 64px);
}
.etagere > li { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.carte { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; }
.carte:focus-visible { outline: 3px solid var(--encre); outline-offset: 8px; }
.carte-couv {
  position: relative; display: block; aspect-ratio: 595 / 842;
  background: color-mix(in srgb, var(--fluo) 25%, var(--paper-3));
  box-shadow: var(--shadow-cover);
  transition: transform var(--d2) var(--ease-out);
}
.carte-couv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: var(--shadow-cover-haut); opacity: 0; transition: opacity var(--d2) var(--ease-out);
}
.carte-couv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte-couv .reliure {
  position: absolute; inset: 0 auto 0 0; width: 5%; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .32), rgb(255 255 255 / .1) 55%, transparent);
}
.signet { position: absolute; top: -3px; right: 12px; width: 14px; height: 34px; overflow: visible; }
.signet path { fill: var(--fluo); stroke: var(--ink); stroke-width: 1.5; }
.carte-legende { display: grid; gap: 6px; }
.carte-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.carte-titre {
  font-family: var(--f-display); font-weight: 800; font-stretch: 88%;
  font-size: 1.05rem; line-height: 1.18; text-wrap: balance;
}
.carte-rub { color: var(--ink-2); font-size: .68rem; }
@media (hover: hover) {
  .carte:hover .carte-couv { transform: translateY(-6px) rotate(-.6deg); }
  .carte:hover .carte-couv::after { opacity: 1; }
  .carte:hover .trace { background-size: 100% 74%; color: var(--on-fluo); }
}
.carte:focus-visible .trace { background-size: 100% 74%; color: var(--on-fluo); }

/* Vue en liste (au-delà de 8 numéros) */
.etagere.liste { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 1px solid var(--rule); }
.etagere.liste > li { contain-intrinsic-size: auto 64px; border-bottom: 1px solid var(--rule); }
.etagere.liste .carte {
  display: grid; grid-template-columns: 4.2rem 40px minmax(0, 1fr); align-items: center; gap: 0 18px;
  min-height: 64px; padding-block: 8px; transition: background-color var(--d1);
}
.etagere.liste .carte:hover { background: color-mix(in srgb, var(--fluo) 22%, var(--paper)); }
.etagere.liste .carte::before {
  content: attr(data-n); grid-row: 1; grid-column: 1; justify-self: end;
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: 2rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.etagere.liste .carte-couv { grid-column: 2; width: 40px; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.etagere.liste .carte:hover .carte-couv { transform: none; }
.etagere.liste .signet, .etagere.liste .carte-couv::after { display: none; }
.etagere.liste .carte-legende { grid-column: 3; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; align-items: baseline; }
.etagere.liste .carte-titre { grid-column: 1; grid-row: 1; }
.etagere.liste .carte-meta { grid-column: 2; grid-row: 1; }
.etagere.liste .carte-rub { grid-column: 1 / -1; }
@media (max-width: 380px) {
  .etagere { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sans JavaScript : la liste simple produite par outils/site.py */
.liste-simple { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 10px; font-size: 1.1rem; }
.liste-simple a { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; }
.js .sans-js { display: none; }

/* Apparition au défilement (une seule fois, jamais au-dessus de la ligne de flottaison) */
@media (prefers-reduced-motion: no-preference) {
  .js .rev { opacity: 0; transform: translateY(14px); }
  .js .rev.vu {
    opacity: 1; transform: none;
    transition: opacity var(--d3) var(--ease-out), transform var(--d3) var(--ease-out);
    transition-delay: min(calc(var(--i, 0) * 40ms), 240ms);
  }
  .trace { transition: background-size 640ms var(--ease-out), color 0s 200ms; }
  .carte .trace { transition: background-size var(--d2) var(--ease-out), color 0s; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--cover); color: var(--on-cover-2); overflow: hidden; }
.pied .wrap { padding-top: clamp(40px, 6vw, 72px); }
.pied-grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px clamp(24px, 4vw, 56px);
  font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.7; letter-spacing: .02em;
}
.pied-grille h2 { font: 600 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-cover); margin-bottom: 8px; }
.pied a { color: var(--on-cover); }
.pied a:hover { color: var(--fluo); }
.pied :focus-visible { outline-color: var(--fluo); }
.pied-logo {
  display: block; margin: clamp(32px, 5vw, 64px) 0 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  /* « SOURCE. » mesure 5,62 em : il occupe toute la colonne, rogné par le bas */
  font-size: calc((min(100vw, var(--page)) - 2 * var(--gutter)) / 5.66); line-height: .74; letter-spacing: .02em; margin-bottom: -.13em;
  color: color-mix(in srgb, var(--on-cover) 8%, transparent);
  user-select: none;
}
.pied-logo span { color: var(--fluo); }
@media (max-width: 719px) {
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Transitions entre pages ---------- */
@view-transition { navigation: auto; }
::view-transition-group(couv) { animation-duration: 480ms; animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation-duration: 200ms; }
::view-transition-new(root) { animation-duration: 280ms; }

/* ---------- Mouvement réduit, couleurs forcées ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0s !important; }
  .objet, .objet:hover { transform: none; }
  .trace { background-size: 100% 74%; color: var(--on-fluo); }
}
@media (forced-colors: active) {
  .hl, .trace.pose { background: Mark; color: MarkText; }
  .btn { border: 2px solid ButtonText; }
}

/* ---------- 404 ---------- */
.perdu { padding-block: clamp(56px, 10vw, 140px); }
.perdu .wrap { display: grid; gap: 22px; justify-items: start; }
.perdu .wrap > * { max-width: 54rem; width: 100%; }
.perdu .kicker { color: var(--encre); }
.perdu h1 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(3rem, 10vw, 7.5rem); line-height: .86; text-transform: uppercase;
}
.perdu p { font-size: 1.2rem; max-width: 36rem; }
.perdu .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.perdu ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.perdu ol li { border-bottom: 1px solid var(--rule); }
.perdu ol a { display: block; padding: 12px 0; font-family: var(--f-display); font-weight: 800; font-stretch: 90%; color: var(--ink); text-decoration: none; }
.perdu ol a:hover { text-decoration: underline; }

/* Couverture absente (pas de Pillow ni de pdftoppm à la construction) : une couverture typographique */
.couv-vide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 9% 8%; background: var(--cover); color: var(--on-cover); overflow: hidden;
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: .88;
  font-size: clamp(1.1rem, 2.4vw, 2.2rem);
}
.couv-vide b { font-stretch: 112%; font-size: .7em; letter-spacing: .05em; }
.couv-vide i { font-style: normal; color: var(--fluo); }
.couv-vide .hl { color: var(--on-fluo); }
.objet .couv-vide { font-size: clamp(1.6rem, 4vw, 3.2rem); }
