/* REQUIN Avocats · essai « bibliothèque mint » · CSS de l'expérience.
   Adapté de The Complete Shelf (mint-playground, licence MIT) :
   seule différence, les polices variables sont auto-hébergées et
   la classe utilitaire sr-only est définie ici (tailwind retiré). */

/* Hanken Grotesk (The Hanken Grotesk Project Authors, licence SIL OFL
   1.1) : typographie identitaire de la charte Perluette & Beaufixe
   d'octobre 2026 (page 4). Fichiers variables, toutes graisses de 100 à
   900 : Bold pour les titres, Medium pour les sous-titres, Regular pour
   le texte, comme sur la planche de la charte. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Identité REQUIN Avocats posée sur l'expérience mint ---- */

/* Le panneau de consultation porte le contenu complet des pièces :
   la définition passe en une colonne pleine largeur */
.book-details dl.pleine-page {
  grid-template-columns: 1fr;
  max-width: none;
  gap: 18px;
}
.book-details dl.pleine-page dt {
  color: var(--ink);
  font-weight: 600;
}
/* Lecture ample (classe posée par app.js d'après le marqueur `ample` du
   catalogue ; sélecteurs renforcés car les règles générales du panneau,
   plus bas dans la feuille, l'emportent à spécificité égale) : les trois premiers ouvrages ont un texte court, sans
   citation, qui se lit sans défiler ; le corps monte de 17 à 19 px sur
   bureau. Le mobile garde ses tailles. Décision d'Aloïs du 2026-10-07. */
@media (min-width: 761px) {
  .book-details__copy.texte-ample {
    padding: 22px 0;
  }
  .book-details__copy.texte-ample h2 {
    font-size: clamp(28px, calc(19px + 1vw), 34px);
  }
  .texte-ample .book-details__author {
    margin-top: 12px;
    font-size: 22px;
  }
  .texte-ample .book-details__description,
  .texte-ample dd {
    font-size: 19px;
    line-height: 1.5;
  }
  .book-details__copy.texte-ample dt {
    font-size: 12px;
  }
  .texte-ample .book-details__description,
  .book-details__copy.texte-ample dl {
    margin-top: 22px;
  }
  .texte-ample dl.pleine-page {
    gap: 12px;
    padding-top: 10px;
  }
  /* Deux paragraphes d'introduction : un blanc de paragraphe, pas la
     marge d'ouverture. */
  .texte-ample .book-details__description + .book-details__description {
    margin-top: 0.5em;
  }
}
/* Écrans peu hauts (portables 1280 x 720, 1366 x 650) : le corps ample
   revient à 17 px et les blancs se resserrent pour limiter le défilement. */
@media (min-width: 761px) and (max-height: 760px) {
  .texte-ample .book-details__description,
  .texte-ample dd {
    font-size: 16px;
    line-height: 1.5;
  }
  .texte-ample .book-details__description,
  .book-details__copy.texte-ample dl {
    margin-top: 20px;
  }
  .texte-ample dl.pleine-page {
    gap: 8px;
    padding-top: 8px;
  }
  .texte-ample.book-details__copy {
    padding: 10px 0;
  }
  .texte-ample .eyebrow {
    margin-bottom: 10px;
  }
  .texte-ample .book-details__author {
    margin-top: 10px;
  }
}

/* Logotype Perluette & BeauFixe (proposition du 2026-09-29, variante 1)
   en haut à gauche. Le dessin vit dans assets/img/logotype.svg, posé en
   masque CSS sur un aplat currentColor : un seul fichier, recolorable
   par contexte (brun sur papier en en-tête, sable sur vert profond au
   préchargeur). Rapport largeur/hauteur figé sur la boîte du SVG. */
.logotype-image {
  display: block;
  width: clamp(6.5rem, 9vw, 8.5rem);
  aspect-ratio: 162.05 / 68.31;
  background: currentColor;
  -webkit-mask: url("../img/logotype.svg") center / contain no-repeat;
  mask: url("../img/logotype.svg") center / contain no-repeat;
}
.wordmark--logotype {
  display: inline-flex;
  text-decoration: none;
  color: var(--ink);
}

/* Préchargeur repris de la version Izanami : plein écran encre profonde,
   compteur 00-100, la marque puis le logotype. Remplace l'écran de
   chargement mint, mais reste piloté par l'état ready du moteur. */
.loading-screen.prechargeur {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: var(--vert-profond);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loading-screen.prechargeur[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.prechargeur .compteur {
  margin: 0;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--sauge);
}
.prechargeur .prechargeur-logotype {
  margin: 0;
  color: var(--sable);
  animation: prechargeur-entree 0.8s ease 0.5s both;
}
.prechargeur .prechargeur-logotype .logotype-image,
.prechargeur .logotype-anime {
  width: clamp(12rem, 32vw, 20rem);
}
/* Logotype de l'écran d'accueil en SVG en ligne, immobile (le tour du
   « uin » à l'entrée, au survol et au clic a été retiré le 2026-10-07). */
.logotype-anime {
  display: block;
  height: auto;
  overflow: visible;
}
/* L'écran d'accueil ne s'efface plus seul : une fois la bibliothèque
   prête (classe est-pret), le compteur cède la place à l'invitation
   « Entrer » et tout l'écran devient cliquable. Le bouton occupe sa
   place dès le départ pour que le logotype ne bouge pas. */
.prechargeur .compteur {
  transition: opacity 0.4s ease;
}
.prechargeur.est-pret {
  cursor: pointer;
}
.prechargeur.est-pret .compteur {
  opacity: 0;
}
.prechargeur-entree {
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--sable);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.prechargeur.est-pret .prechargeur-entree {
  visibility: visible;
  opacity: 1;
}
.prechargeur-entree:focus-visible {
  outline: 1px solid var(--sauge);
  outline-offset: 8px;
}
@keyframes prechargeur-entree {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-screen.prechargeur { transition: none; }
  .prechargeur .compteur,
  .prechargeur-entree { transition: none; }
  .prechargeur .prechargeur-logotype { animation: none; }
}


:root {
  --largeur-panneau: min(620px, 41vw);
  /* Légende de l'étagère : ancrage bas et corps du titre, partagés avec
     les flèches qui se posent au-dessus d'elle. */
  --legende-bas: clamp(178px, 23vh, 228px);
  --legende-corps: clamp(37px, 4.4vw, 72px);
  --legende-interligne: 1.05;
  /* Couleurs de la v=121 (proposition Perluette & Beaufixe de septembre,
     mesurées sur la maquette), préférées par Aloïs le 2026-10-14 aux
     valeurs officielles de la charte d'octobre (ocre #998361, brun
     #45321e, olive #596d46). */
  --sable: #cdba96;
  --ocre: #a1845f;
  --taupe: #695e45;
  --brun: #512d1b;
  --sauge: #94a17b;
  --olive: #5a6d46;
  --vert: #235336;
  --vert-profond: #1a3621;
  --kraft: #b3aa8c;
  --paper: #ece3d1;
  --paper-deep: #e2d8c1;
  --paper-light: #f6f1e7;
  --ink: var(--brun);
  /* 0,73 : plus faible opacité du brun qui tient 4,5:1 sur le papier
     (Apple), avec une marge pour les arrondis du navigateur. */
  --ink-soft: rgba(81, 45, 27, 0.73);
  --hairline: rgba(81, 45, 27, 0.19);
  --accent: var(--olive);
  --sans: "Hanken Grotesk", system-ui, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  /* Ni tirer-pour-actualiser ni rebond de page : sur mobile, un tirage
     vers le bas parti du panneau ou de l'en-tête rechargeait le site,
     donc ramenait à l'écran d'accueil. */
  overscroll-behavior: none;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

::selection {
  color: var(--paper-light);
  background: var(--ink);
}

.press-experience {
  position: relative;
  width: 100%;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  transition: background-color 640ms ease;
}

.press-experience::after {
  position: absolute;
  z-index: 14;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 12% 31%, rgba(45, 35, 24, 0.12) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 73% 69%, rgba(255, 255, 255, 0.9) 0 0.6px, transparent 0.7px);
  background-size: 7px 9px, 11px 13px;
}

/* Le chrome persistant (logo, statut, légendes) glisse d'une encre à
   l'autre au rythme du fond quand le thème change */
.site-header,
.browse-caption,
.shelf-index,
.independent-note {
  transition: color 640ms ease;
}

.shelf-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shelf-canvas.is-dragging {
  cursor: grabbing !important;
}

.is-ready .shelf-canvas {
  opacity: 1;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px clamp(22px, 3.4vw, 56px);
  pointer-events: none;
}

.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.185em;
  line-height: 1;
  /* L'en-tête laisse passer le pointeur vers le canvas, le logotype
     reprend la main : il ramène à l'étagère (voir app.js). */
  pointer-events: auto;
}

.wordmark__divider {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.edition-mark {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.17em;
  line-height: 1;
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  pointer-events: auto;
}

.browse-caption {
  position: absolute;
  z-index: 16;
  bottom: var(--legende-bas);
  left: clamp(24px, 5.4vw, 92px);
  width: min(430px, 36vw);
  isolation: isolate;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.browse-caption::before {
  position: absolute;
  z-index: -1;
  top: -42px;
  right: -72px;
  bottom: -38px;
  left: -92px;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(238, 232, 219, 0.96) 0%,
    rgba(238, 232, 219, 0.82) 58%,
    rgba(238, 232, 219, 0) 100%
  );
  pointer-events: none;
}

.is-focused .browse-caption {
  opacity: 0;
  transform: translate3d(-22px, 0, 0);
}

/* Devise de l'écran d'arrivée mobile : n'existe que sous 760 px, quand
   l'étagère est au repos (classe is-resting posée par app.js). */
.repos-caption {
  display: none;
}

/* Indice de lecture mobile : au-dessus de la barre d'amorce, souligne
   que le contenu de la pièce se lit en glissant vers le haut. Disparaît
   le temps de la lecture de la pièce en cours et revient à chaque
   pièce présentée (classe lecture-decouverte gérée par app.js). */
.indice-lecture,
.retour-livre {
  display: none;
}

/* Sommaire mobile : accès direct aux 8 pièces. Le bouton n'existe que
   sous 760 px ; l'overlay suit le duotone de la pièce courante. */
.sommaire-bouton {
  display: none;
}

.sommaire {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--paper);
}

/* display: flex ci-dessus battrait le style UA de [hidden] : fermé,
   l'overlay doit vraiment disparaître. */
.sommaire[hidden] {
  display: none;
}

.sommaire__inner {
  width: 100%;
  padding: 24px;
}

.sommaire__titre {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sommaire__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sommaire__liste button {
  display: flex;
  gap: 16px;
  align-items: baseline;
  width: 100%;
  padding: 13px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}

.sommaire__numero {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.sommaire__fermer {
  margin-top: 22px;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 17px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1;
}

.eyebrow__line {
  width: 46px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}

.browse-caption h1 {
  max-width: 420px;
  margin: 0;
  font-size: var(--legende-corps);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: var(--legende-interligne);
}

.browse-caption__author {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.inspect-button {
  display: inline-flex;
  gap: 21px;
  align-items: center;
  margin-top: 24px;
  padding: 0 0 7px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.inspect-button span:last-child {
  font-size: 14px;
  font-weight: 420;
  transition: transform 220ms ease;
}

.inspect-button:hover span:last-child {
  transform: translate3d(2px, -2px, 0);
}

/* Les flèches se tiennent au-dessus de la légende, même quand le titre
   court sur deux lignes : ancrage bas de la légende + sa hauteur hors
   titre (115px) + deux lignes de titre + 24px d'air. */
.shelf-arrow {
  position: absolute;
  z-index: 17;
  bottom: calc(var(--legende-bas) + 115px + 2 * var(--legende-interligne) * var(--legende-corps) + 24px);
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(236, 228, 209, 0.68);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    background-color 220ms ease;
}

.shelf-arrow:hover:not(:disabled) {
  background: rgba(246, 241, 231, 0.92);
  transform: scale(1.06);
}

.shelf-arrow:disabled {
  cursor: default;
  opacity: 0.25;
}

.is-focused .shelf-arrow {
  opacity: 0;
  pointer-events: none;
}

.shelf-arrow--left {
  left: clamp(15px, 2.7vw, 44px);
}

.shelf-arrow--right {
  right: clamp(15px, 2.7vw, 44px);
}

.arrow-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 9px;
}

.arrow-icon span,
.arrow-icon::before,
.arrow-icon::after {
  position: absolute;
  display: block;
  content: "";
  background: currentColor;
}

.arrow-icon span {
  top: 4px;
  width: 17px;
  height: 1px;
}

.arrow-icon::before,
.arrow-icon::after {
  width: 6px;
  height: 1px;
}

.arrow-icon--right::before {
  top: 2px;
  right: -1px;
  transform: rotate(45deg);
}

.arrow-icon--right::after {
  right: -1px;
  bottom: 2px;
  transform: rotate(-45deg);
}

.arrow-icon--left::before {
  top: 2px;
  left: -1px;
  transform: rotate(-45deg);
}

.arrow-icon--left::after {
  bottom: 2px;
  left: -1px;
  transform: rotate(45deg);
}

.shelf-index {
  position: absolute;
  z-index: 19;
  right: clamp(24px, 5vw, 82px);
  bottom: 34px;
  left: clamp(24px, 5vw, 82px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 38px;
  align-items: end;
  transition:
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-focused .shelf-index {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.shelf-index__ticks {
  display: grid;
  grid-template-columns: repeat(19, 1fr);
  align-items: end;
  height: 21px;
}

.shelf-index__ticks button {
  position: relative;
  display: block;
  width: 100%;
  height: 21px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.shelf-index__ticks button::before {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--hairline);
}

.shelf-index__ticks button span {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 1px;
  width: 1px;
  height: 7px;
  background: var(--ink);
  opacity: 0.48;
  transition:
    height 220ms ease,
    opacity 220ms ease,
    width 220ms ease;
}

.shelf-index__ticks button:hover span,
.shelf-index__ticks button.is-active span {
  width: 2px;
  height: 18px;
  opacity: 1;
}

.book-details {
  position: absolute;
  z-index: 22;
  top: 0;
  right: 0;
  width: var(--largeur-panneau);
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(44px);
  transition:
    opacity 420ms ease 80ms,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.book-details::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--paper);
  transition: background-color 640ms ease;
}

.is-focused .book-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.book-details__inner {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  padding: 27px clamp(28px, 4vw, 68px) 30px clamp(52px, 6vw, 98px);
}

.back-button {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  justify-self: start;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.back-button .arrow-icon {
  transform: scale(0.78);
}

.details-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-self: end;
  margin-top: -9px;
}

/* Chevrons de pièce voisine : réservés à la barre d'amorce mobile,
   le desktop navigue à la molette et au clavier. */
.details-nav__bouton {
  display: none;
}

.book-details__position {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.book-details__position span:first-child::after {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 9px 3px 13px;
  content: "";
  background: currentColor;
  opacity: 0.28;
}

.book-details__copy {
  align-self: center;
  max-height: 100%;
  padding: 34px 0;
  overflow-y: auto;
  /* défilement sans barre visible (demande de recette) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.book-details__copy .eyebrow {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.book-details h2 {
  max-width: none;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(26px, calc(19px + 0.75vw), 31px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.book-details__author {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 500;
}

.book-details__description {
  max-width: none;
  margin: 34px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.book-details blockquote {
  position: relative;
  max-width: none;
  margin: 33px 0 0;
  padding: 0 0 0 23px;
  border-left: 1px solid currentColor;
}

.book-details blockquote p {
  margin: 0;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
}

.book-details blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.book-details dl {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  max-width: none;
  margin: 34px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
}

.book-details dl div {
  min-width: 0;
}

.book-details dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-details dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/* Chorégraphie d'entrée : le corps du panneau est reconstruit à chaque
   consultation, les keyframes se jouent donc à la création des nœuds.
   Départ calé sur la fin du mouvement de caméra (comme le délai 0,5 s
   de Stripe Press), 90 ms entre chaque bloc. */
@keyframes piece-entree {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-details__copy > * {
  --cascade: 7;
  animation: piece-entree 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(430ms + var(--cascade) * 90ms);
}

.book-details__copy > :nth-child(1) { --cascade: 0; }
.book-details__copy > :nth-child(2) { --cascade: 1; }
.book-details__copy > :nth-child(3) { --cascade: 2; }
.book-details__copy > :nth-child(4) { --cascade: 3; }
.book-details__copy > :nth-child(5) { --cascade: 4; }
.book-details__copy > :nth-child(6) { --cascade: 5; }
.book-details__copy > :nth-child(7) { --cascade: 6; }

/* Bascule grille / fiche dans L'équipe : la cascade d'entrée appartient
   à l'ouverture de la pièce. Dès la première fiche ouverte (classe
   deja-entre posée par app.js), chaque bascule n'a plus qu'un fondu
   court sans départ différé ; la fiche mettait 1,1 à 1,5 s à paraître
   (retour d'Aloïs du 2026-10-07). */
@keyframes fiche-bascule {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.book-details__copy.deja-entre > * {
  animation: fiche-bascule 220ms ease both;
  animation-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .book-details__copy > *,
  .book-details__copy.deja-entre > * {
    animation: none;
  }
}

/* Rangée d'action transposée des boutons d'achat Stripe Press :
   inversion au survol, barre qui s'étire, flèche qui sort en diagonale
   pendant que sa jumelle rentre par le coin opposé */
.piece-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: none;
  margin-top: 46px;
}

.piece-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  padding: 0 0 0 16px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.piece-action + .piece-action {
  margin-top: -1px;
}

.piece-action::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform 300ms ease-out;
}

.piece-action:hover {
  background: var(--ink);
  color: var(--paper);
}

.piece-action:hover::after {
  transform: scaleX(1);
}

.piece-action__icone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  overflow: hidden;
  margin-left: 16px;
  padding: 15px 13px;
  border-left: 1px solid var(--hairline);
}

.piece-action__fleche {
  width: 10px;
  height: 10px;
  transition: transform 400ms ease;
}

.piece-action__fleche path {
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}

.piece-action__fleche--retour {
  position: absolute;
  transform: translate(-26px, 26px);
}

.piece-action:hover .piece-action__fleche {
  transform: translate(26px, -26px);
}

.piece-action:hover .piece-action__fleche--retour {
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .piece-action::after,
  .piece-action__fleche {
    transition: none;
  }
}

.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin-top: 27px;
  padding: 16px 0 12px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.official-link span:last-child {
  font-size: 16px;
  font-weight: 420;
  transition: transform 220ms ease;
}

.official-link:hover span:last-child {
  transform: translate3d(3px, -3px, 0);
}

/* Consignes (glisser, molette, pincer) retirées le 2026-09-30 à la
   demande d'Aloïs : seul reste le bouton Recentrer, calé à droite. */
.focus-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 590;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.focus-controls span + span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.focus-controls button {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loading-screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--paper);
  transition:
    opacity 720ms ease 120ms,
    visibility 720ms ease 120ms;
}

/* Règle d'origine mint : elle masquait aussi le préchargeur dès que le
   moteur était prêt, avant la fin du compteur et sans attendre le clic.
   Le préchargeur ne s'efface que par son attribut aria-hidden. */
.is-ready .loading-screen:not(.prechargeur) {
  visibility: hidden;
  opacity: 0;
}

.loading-screen__mark {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 62px;
}

.loading-screen__mark span {
  display: block;
  width: 13px;
  background: var(--ink);
  animation: assemble 1.25s ease-in-out infinite alternate;
}

.loading-screen__mark span:nth-child(1) {
  height: 46px;
}

.loading-screen__mark span:nth-child(2) {
  height: 59px;
  animation-delay: -0.42s;
}

.loading-screen__mark span:nth-child(3) {
  height: 39px;
  animation-delay: -0.78s;
}

.loading-screen p {
  margin: 19px 0 0;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

@keyframes assemble {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Signature de l'agence, en bas à droite de l'étagère (lien wecrave.fr). */
.propulse-par {
  padding-bottom: 1px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 240ms ease;
}
.propulse-par span {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.22em;
}
.propulse-par:hover,
.propulse-par:focus-visible {
  color: var(--ink);
}
.independent-note {
  margin: 0;
  padding-bottom: 1px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1020px) {
  :root {
    --largeur-panneau: min(570px, 48vw);
  }

  .book-details {
    width: var(--largeur-panneau);
  }

  .book-details__inner {
    padding-right: 34px;
    padding-left: 60px;
  }

  .focus-controls span:nth-child(2) {
    display: none;
  }

  .independent-note {
    display: none;
  }

}

.consult-fleche {
  display: none;
}

@media (max-width: 760px) {
  .site-header {
    padding: 20px 18px;
  }

  .wordmark {
    gap: 9px;
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .wordmark__divider {
    width: 14px;
  }

  .logotype-image {
    width: 5.6rem;
  }

  .edition-mark {
    display: none;
  }

  .sommaire-bouton {
    display: block;
    padding: 12px 0;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.26em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
  }

  .header-actions {
    gap: 0;
  }

  .browse-caption {
    right: 0;
    bottom: 64px;
    left: 0;
    width: auto;
    padding: 30px 20px 8px;
    background: linear-gradient(
      180deg,
      rgba(238, 232, 219, 0),
      rgba(238, 232, 219, 0.96) 34px,
      var(--paper) 50px
    );
  }

  .browse-caption::before {
    display: none;
  }

  .is-resting .browse-caption {
    opacity: 0;
    pointer-events: none;
  }

  /* Le bouton rétablit pointer-events pour lui-même : au repos, il
     restait touchable sous la légende invisible et ouvrait un ouvrage
     au-dessus des repères. */
  .is-resting .inspect-button {
    pointer-events: none;
  }

  .repos-caption {
    position: absolute;
    z-index: 16;
    top: 96px;
    right: 20px;
    left: 20px;
    display: block;
    margin: 0;
      font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--ink);
    opacity: 0;
    transition: opacity 500ms ease;
    pointer-events: none;
  }

  .is-resting .repos-caption {
    opacity: 1;
  }

  .browse-caption h1 {
    max-width: 78vw;
    font-size: clamp(26px, 8vw, 34px);
  }

  .browse-caption__author {
    font-size: 14px;
  }

  .inspect-button {
    margin-top: 14px;
  }

  .shelf-arrow {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
  }

  .shelf-arrow--left {
    left: 18px;
  }

  .shelf-arrow--right {
    right: 18px;
  }

  .shelf-index {
    right: 72px;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    left: 72px;
    display: block;
  }

  /* Mobile : la signature se pose au-dessus de la rangée flèches et
     repères, centrée. */
  .propulse-par {
    position: absolute;
    bottom: 42px;
    left: 50%;
    font-size: 9px;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
  }

  /* Hors repos, la légende de l'ouvrage occupe cette place. */
  .press-experience:not(.is-resting) .propulse-par {
    opacity: 0;
    pointer-events: none;
  }

  .shelf-index__ticks {
    height: 13px;
  }

  .shelf-index__ticks button {
    height: 13px;
  }

  .shelf-index__ticks button span {
    bottom: 2px;
    height: 5px;
  }

  .shelf-index__ticks button:hover span,
  .shelf-index__ticks button.is-active span {
    height: 12px;
  }

  .book-details {
    top: auto;
    bottom: 0;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(100%);
    transition:
      opacity 420ms ease 80ms,
      transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
      height 450ms cubic-bezier(0.32, 0.72, 0.28, 1);
  }

  /* Tiroir extensible : faire défiler le texte déploie le panneau en
     pleine hauteur (l'en-tête reste), un tirage vers le bas le replie. */
  .book-details.is-etendue {
    height: calc(100dvh - 78px);
  }

  /* En amorce, seule la rangée retour/position se montre : le corps
     reste invisible jusqu'au déploiement, sinon son début dépasse. */
  .book-details__copy {
    visibility: hidden;
    opacity: 0;
    transition: opacity 380ms ease 120ms, visibility 0s linear 500ms;
  }

  /* Bouton centré : il se touche pour lire, sans prendre toute la
     largeur (le doigt sur les côtés reste à l'orbite du livre). */
  .is-focused .indice-lecture {
    position: absolute;
    z-index: 24;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    font-family: var(--sans);
    cursor: pointer;
    transform: translateX(-50%);
    white-space: nowrap;
    gap: 9px;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 1;
    transition: opacity 420ms ease;
  }

  .indice-lecture__chevron {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    animation: indice-lecture-appel 2.2s ease-in-out infinite;
  }

  @keyframes indice-lecture-appel {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(-3px, -3px); }
  }

  /* L'indice ne s'efface que tiroir déployé : il revient dès que le
     texte est replié (recette Aloïs du 2026-09-30). */
  .press-experience:has(.book-details.is-etendue) .indice-lecture {
    opacity: 0;
    pointer-events: none;
  }

  /* Lecture déployée : bouton flottant pour revenir au livre. */
  .book-details.is-etendue .retour-livre {
    position: absolute;
    z-index: 3;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 20px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transform: translateX(-50%);
  }

  .retour-livre__chevron {
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  /* Flèches de part et d'autre du livre en consultation. */
  .is-focused .consult-fleche {
    position: absolute;
    z-index: 24;
    top: 46%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 300ms ease;
  }

  .is-focused .consult-fleche--gauche {
    left: 8px;
  }

  .is-focused .consult-fleche--droite {
    right: 8px;
  }

  .is-focused .consult-fleche:disabled {
    opacity: 0.2;
  }

  .press-experience:has(.book-details.is-etendue) .consult-fleche {
    opacity: 0;
    pointer-events: none;
  }

  .book-details.is-etendue .book-details__copy {
    visibility: visible;
    opacity: 1;
    transition: opacity 380ms ease 140ms, visibility 0s;
  }

  /* Lecture déployée : le dégradé qui déborde au-dessus du panneau
     masquait le logotype ; l'en-tête passe devant le panneau et le
     texte s'estompe sous la rangée retour/position au lieu d'y être
     coupé net (recette Aloïs du 2026-09-30). */
  .book-details.is-etendue::before {
    top: 0;
  }

  .press-experience:has(.book-details.is-etendue) .site-header {
    z-index: 23;
  }

  .book-details.is-etendue .book-details__copy {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 8px, #000 40px);
    mask-image: linear-gradient(180deg, transparent 0, transparent 8px, #000 40px);
  }

  .focus-controls {
    display: none;
  }

  .book-details::before {
    top: -55px;
    background: linear-gradient(180deg, transparent, var(--paper) 55px), var(--paper);
    /* Le dégradé déborde au-dessus du panneau : sans ceci il intercepte
       les taps destinés à l'en-tête (bouton Sommaire, logotype). */
    pointer-events: none;
  }

  .is-focused .book-details {
    opacity: 1;
    transform: translateY(0);
  }

  .book-details__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 9px 20px max(14px, env(safe-area-inset-bottom));
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .back-button {
    grid-column: 1;
    grid-row: 1;
  }

  .details-nav {
    grid-column: 2;
    grid-row: 1;
    gap: 12px;
    margin: 0;
  }

  .details-nav__bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    margin: -12px -6px;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .details-nav__bouton:disabled {
    opacity: 0.25;
  }

  .book-details__position span:first-child::after {
    width: 20px;
  }

  .book-details__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: auto;
    /* Réserve basse : la dernière ligne (courriel de Contact, crédits
       des mentions légales) restait sous le bouton flottant « Revenir
       au livre ». */
    padding: 25px 0 calc(68px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }

  .book-details__copy .eyebrow {
    margin-bottom: 11px;
  }

  .book-details h2 {
    max-width: 90%;
    font-size: clamp(35px, 10vw, 48px);
  }

  .book-details__author {
    margin-top: 10px;
    font-size: 14px;
  }

  .book-details__description {
    margin-top: 20px;
    font-size: 16px;
  }

  .book-details blockquote {
    margin-top: 21px;
  }

  .book-details dl {
    margin-top: 23px;
  }

  .official-link {
    margin-top: 22px;
  }

  .focus-controls {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .focus-controls span:nth-child(2) {
    display: none;
  }

}

@media (max-height: 700px) and (min-width: 761px) {
  :root {
    --legende-bas: 94px;
  }

  .book-details__copy {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .book-details__description {
    margin-top: 20px;
  }

  .book-details blockquote,
  .book-details dl {
    margin-top: 20px;
  }
}

@media (pointer: coarse) {
  .shelf-canvas {
    cursor: default;
  }

  /* Au doigt, les repères se répartissent sur toute la règle au lieu
     d'occuper 7 colonnes d'une grille de 19 héritée de mint : 38 px de
     large sur iPhone au lieu de 13 (minimum Apple : 28), 44 de haut. La
     règle grandit vers le haut (hauteur libre, bas ancré) : à hauteur
     fixe, les boutons débordaient vers le bas et poussaient les traits
     contre le bord de l'écran. */
  .shelf-index__ticks {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: auto;
  }

  .shelf-index__ticks button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

/* =============================================================
   Surcharges finales REQUIN Avocats. Placées en FIN de feuille :
   le CSS mint redéclare .book-details plus haut à spécificité
   égale, toute surcharge posée avant lui serait perdante dans la
   cascade (leçon de recette du 2026-07-30).
   ============================================================= */
@media (min-width: 1021px) {
  /* Composition symétrique demandée en recette : la marge à droite du
     texte égale la marge à gauche du livre, quel que soit l'écran.
     Le livre rendu fait ~49vh de large (cadrage caméra lié à la
     hauteur) ; avec une colonne de 580px et 120px d'écart panneau,
     la largeur de panneau qui équilibre les deux marges est
     (100vw + 2x120px + 2x580px - 49vh) / 3. GARDER SYNCHRONE avec
     applyFocusViewOffset dans etagere.js (même formule côté moteur). */
  :root {
    --largeur-panneau: min(calc((100vw + 1400px - 49vh) / 3), 62vw);
  }
  .book-details {
    width: var(--largeur-panneau);
  }
  .book-details__inner {
    padding: 27px clamp(56px, calc((100vw - var(--largeur-panneau) - 49vh) / 2), 420px) 30px 120px;
  }
  .book-details__copy {
    font-size: 1.06rem;
  }
}

/* ── L'équipe : portraits et fiches ─────────────────────────────
   Rendu duotone façon Stripe Press : les ombres prennent la couleur de
   la page (--paper, la reliure), les lumières celle de l'encre. Photo en
   niveaux de gris posée en « multiply » sur un aplat d'encre, puis voile
   couleur de page en « lighten » : noir → page, blanc → encre. */
/* Bureau : les portraits sont dimensionnés sur la hauteur de la fenêtre
   pour que les quatre photos et leurs noms tiennent sans défiler
   (--portrait-reserve = en-tête du panneau, titre, chapeau, commandes). */
.trombinoscope {
  --portrait-reserve: 470px;
  --portrait: clamp(84px, calc((100dvh - var(--portrait-reserve)) / 2), 240px);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 22px 44px;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.membre {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.trombinoscope .portrait {
  width: var(--portrait);
}
.membre__nom,
.membre__role {
  white-space: nowrap;
}
.portrait {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--portrait-clair, var(--ink));
  border: 1px solid var(--hairline);
  isolation: isolate;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photos déjà recadrées en carré, visage au centre. */
  object-position: 50% 50%;
  filter: grayscale(1) contrast(1.08) brightness(1.08);
  mix-blend-mode: multiply;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--paper);
  mix-blend-mode: lighten;
  pointer-events: none;
}
.membre:hover .portrait img,
.membre:focus-visible .portrait img {
  transform: scale(1.04);
}
.membre:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}
.membre__nom {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.membre__role {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Fiche ouverte : la grille et son chapeau s'effacent derrière elle. */
.fiche-ouverte > :not(.fiche) {
  display: none;
}
.fiche__retour {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 28px;
  padding: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
}
.portrait--grand {
  width: min(260px, 70%);
}
.fiche__role {
  margin: 26px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fiche__nom {
  margin: 10px 0 0;
  font-size: clamp(26px, calc(19px + 0.75vw), 31px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.fiche .book-details__description {
  margin-top: 22px;
}
@media (max-width: 760px) {
  .trombinoscope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .trombinoscope .portrait {
    width: 100%;
  }
  .membre__nom,
  .membre__role {
    white-space: normal;
  }
  .membre__nom {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait img {
    transition: none;
  }
}

/* ── Contact : planches des bureaux (ex-Atlas) ──────────────────────────────
   Deux plans stylisés dans le panneau de consultation. Les tracés
   suivent le duotone de la pièce (encre et filets en variables). */
.planche {
  margin: 2.6rem 0 0;
}
.planche + .planche {
  margin-top: 3rem;
}
.planche figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.planche figcaption::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--hairline);
}
/* Planches réduites (recette Aloïs du 2026-09-30) : 78 % de la colonne
   en bureau, 88 % en mobile, calées à gauche sur le texte. */
.planche-lien {
  display: block;
  width: 78%;
  margin-top: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s;
}
.planche svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .planche-lien {
    width: 88%;
  }
}
/* Le plan entier mène à l'itinéraire, comme l'adresse qui le suit : au
   survol, le cadre passe du filet à l'encre ; à l'appui, le plan s'efface
   un instant. Le contour de focus se trace à l'intérieur du cadre. */
.planche-cadre {
  transition: stroke 0.3s;
}
@media (hover: hover) {
  .planche-lien:hover .planche-cadre {
    stroke: var(--ink);
  }
}
.planche-lien:active {
  opacity: 0.6;
  transition-duration: 0.08s;
}
.planche-lien:focus-visible {
  outline-offset: -5px;
}
.planche-cadre {
  fill: none;
  stroke: var(--hairline);
}
.planche-rue {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.planche-rue--avenue {
  stroke-width: 3.2;
}
.planche-rue--principale {
  stroke-width: 2.2;
}
.planche-rue--secondaire {
  stroke-width: 1.4;
  opacity: 0.85;
}
.planche-zone {
  fill: none;
  stroke: var(--hairline);
  stroke-dasharray: 5 7;
}
.planche-nom {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--ink);
  /* halo couleur papier : toute ligne passant derrière un nom est
     interrompue sous les lettres, à la manière des cartes imprimées */
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 7px;
  stroke-linejoin: round;
}
.planche-nom--repere {
  fill: var(--ink);
  font-size: 14px;
}
.planche-repere {
  transform-box: fill-box;
  transform-origin: center;
}
.planche-repere circle:first-child {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.planche-repere circle:last-child {
  fill: var(--ink);
}
.planche-adresse {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink);
}
.planche-adresse a {
  color: var(--ink);
}

/* ── Itinéraire : choix de l'application sur iPhone et iPad ────
   iOS n'offre pas ce choix à un site : menu à la manière de ses feuilles
   d'action (Plans, Google Maps, Waze, Annuler), créé au premier toucher
   par app.js. Verre couleur papier, comme les flèches de consultation. */
.feuille {
  width: min(100% - 1rem, 28rem);
  max-width: none;
  max-height: none;
  margin: auto auto 0;
  padding: 0 0 max(0.5rem, env(safe-area-inset-bottom));
  border: 0;
  background: none;
  overflow: visible;
  color: var(--ink);
}
.feuille[open] {
  animation: feuille-monte 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.feuille::backdrop {
  background: rgba(40, 22, 13, 0.3);
}
.feuille[open]::backdrop {
  animation: feuille-voile 0.3s ease-out;
}
@keyframes feuille-monte {
  from { transform: translateY(110%); }
}
@keyframes feuille-voile {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .feuille[open],
  .feuille[open]::backdrop {
    animation: none;
  }
}
.feuille__groupe,
.feuille__annuler {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper-light) 92%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
}
.feuille__titre {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.feuille__groupe a,
.feuille__annuler {
  padding: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.feuille__groupe a {
  border-top: 1px solid var(--hairline);
}
.feuille__annuler {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}
.feuille:focus {
  outline: none;
}
.feuille :focus-visible {
  outline-offset: -6px;
}
.feuille__groupe a:active,
.feuille__annuler:active {
  background-color: color-mix(in srgb, var(--paper-deep) 92%, transparent);
}

/* ── Barres de défilement masquées (WebKit) ─────────────────── */
.book-details__copy::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Passe de fiabilité (2026-10-06) ──────────────────────────── */

/* Le panneau et l'écran d'accueil écoutent le toucher sur toute leur
   surface : sans ceci Chrome Android les voile à chaque contact. */
.book-details,
.loading-screen {
  -webkit-tap-highlight-color: transparent;
}

/* Zones de toucher élargies sans rien déplacer : ces commandes ne
   faisaient que 9 à 14 px de haut (un doigt posé à côté de « Retour à
   l'étagère » déployait la lecture au lieu de revenir). Extension
   verticale seulement : en largeur elle créerait un débordement que
   outils/typographie.py signalerait. */
.back-button,
.inspect-button,
.fiche__retour,
.sommaire-bouton {
  position: relative;
}
.back-button::after,
.inspect-button::after,
.fiche__retour::after,
.sommaire-bouton::after {
  position: absolute;
  inset: -14px 0;
  content: "";
}

/* Téléphone tenu en paysage : ancrées au-dessus de la légende, les
   flèches montaient sur le logotype et la mention Lyon - Paris. Elles
   se posent côte à côte, à droite, au-dessus de la signature. */
@media (max-height: 500px) and (min-width: 761px) {
  .shelf-arrow {
    bottom: 74px;
    width: 44px;
    height: 44px;
  }
  .shelf-arrow--left {
    right: calc(clamp(15px, 2.7vw, 44px) + 56px);
    left: auto;
  }
}

/* Message de secours de l'écran d'accueil : affiché par la veille de
   index.html si la bibliothèque ne démarre pas, ou sans JavaScript. */
.prechargeur-secours {
  max-width: 30rem;
  padding: 0 1.5rem;
  color: var(--sable);
  text-align: center;
}
.prechargeur-secours[hidden] {
  display: none;
}
/* Sélecteurs à deux classes : la règle mint « .loading-screen p »
   (capitales de 9 px) s'appliquerait sinon à ces paragraphes. */
.prechargeur .prechargeur-secours,
.prechargeur .prechargeur-secours p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}
.prechargeur .prechargeur-secours p + p {
  margin-top: 0.6rem;
}
.prechargeur-secours a {
  color: inherit;
}

/* Page 404 : l'écran d'accueil sans compteur ni script, un lien pour
   revenir à la bibliothèque. */
.page-introuvable {
  cursor: default;
}
.page-introuvable .prechargeur-entree {
  text-decoration: none;
}

/* Lecture sans rendu 3D (classe posée par app.js quand WebGL manque) :
   pas d'étagère, le sommaire tient lieu d'accueil et chaque pièce se lit
   en pleine largeur. */
.sans-3d .shelf-canvas,
.sans-3d .browse-caption,
.sans-3d .repos-caption,
.sans-3d .shelf-arrow,
.sans-3d .shelf-index,
.sans-3d .consult-fleche,
.sans-3d .indice-lecture,
.sans-3d .retour-livre,
.sans-3d .focus-controls,
.sans-3d.is-browsing .sommaire__fermer {
  display: none !important;
}
.sans-3d .sommaire-bouton {
  display: block;
  padding: 12px 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.sans-3d .sommaire__inner {
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 761px) {
  .sans-3d .book-details {
    left: 0;
    width: 100%;
  }
  .sans-3d .book-details__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 110px 28px 30px;
  }
}
@media (max-width: 760px) {
  .sans-3d .book-details__copy {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
}

/* ── Règles Apple pour l'iPhone (2026-10-14) ──────────────────── */

/* Human Interface Guidelines : aucun texte sous 11 points, et toute
   commande touchable sur 44 x 44 points au moins. Les libellés de 9 et
   10 px passent à 11 px. Les zones de toucher s'agrandissent par un
   pseudo-élément transparent, sans rien déplacer : en hauteur seulement
   pour les commandes à texte (outils/typographie.py signalerait un
   débordement en largeur), dans les deux sens pour les flèches. */
@media (max-width: 760px) {
  .sommaire-bouton,
  .eyebrow,
  .inspect-button,
  .back-button,
  .book-details__position,
  .propulse-par,
  .membre__role,
  .fiche__retour {
    font-size: 11px;
  }

  /* Inset compté depuis l'intérieur de la bordure de 1 px. */
  .shelf-arrow::after,
  .consult-fleche::after {
    position: absolute;
    inset: -4px;
    content: "";
  }

  /* Rangée du panneau : le bord haut du panneau rogne la zone, elle
     s'étend donc vers le bas, et passe devant le texte en lecture
     (sans z-index, le bloc de texte la recouvrait au-delà de 23 px). */
  .back-button,
  .details-nav__bouton {
    position: relative;
    z-index: 1;
  }
  .back-button::after {
    inset: -14px 0 -22px;
  }
  .details-nav__bouton::after {
    position: absolute;
    inset: -4px -2px -12px;
    content: "";
  }

  .indice-lecture::after,
  .retour-livre::after {
    position: absolute;
    inset: -2px 0;
    content: "";
  }

  /* Boutons flottants en verre, à la manière du Liquid Glass d'iOS 26 :
     « Appuyer pour lire », « Revenir au livre » et les flèches rondes.
     Teinte de la reliure plutôt que blanche : le texte garde son
     contraste sur chaque ouvrage. Le flou et la saturation prennent ce
     qui passe derrière, un reflet clair court sur le bord haut, une
     ombre douce les détache. */
  .is-focused .indice-lecture,
  .book-details.is-etendue .retour-livre,
  .is-focused .consult-fleche,
  .shelf-arrow,
  .shelf-arrow:hover:not(:disabled) {
    border: 0;
    background: color-mix(in srgb, var(--paper) 72%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    backdrop-filter: blur(16px) saturate(1.8);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--paper) 45%, #fff 55%),
      inset 0 -1px 0 color-mix(in srgb, var(--paper) 80%, #000 20%),
      0 0 0 0.5px var(--hairline),
      0 10px 28px -8px rgba(0, 0, 0, 0.28);
  }

  /* Le texte défile sous « Revenir au livre » : teinte plus dense, pour
     qu'il reste lisible même là où le flou ne serait pas rendu. */
  .book-details.is-etendue .retour-livre {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
  }

  .is-focused .indice-lecture {
    /* 12 px au-dessus de la barre d'amorce : la pastille la touchait. */
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 14px 24px;
    border-radius: 999px;
  }

  .sommaire__fermer {
    position: relative;
  }
  .sommaire__fermer::after {
    position: absolute;
    inset: -5px 0;
    content: "";
  }

  /* Retour de fiche : juste sous la rangée du panneau, dont la zone
     descend jusqu'à lui ; la sienne descend dans sa marge vide,
     jusqu'au portrait. */
  .fiche__retour::after {
    inset: -3px 0 -32px;
  }

  .wordmark--logotype {
    position: relative;
  }
  .wordmark--logotype::after {
    position: absolute;
    inset: -4px 0;
    content: "";
  }

  /* Règle des repères élargie jusqu'aux flèches (zones de toucher
     comprises) : 28 px par repère même sur un écran de 320 px. */
  .shelf-index {
    right: 62px;
    left: 62px;
  }

  /* Signature CRAVE : posée juste au-dessus des repères de 44 px, sa
     zone de toucher s'étend vers le haut seulement. */
  .propulse-par {
    bottom: 46px;
  }
  .propulse-par::after {
    position: absolute;
    inset: -32px 0 0;
    content: "";
  }
}

/* Réglage « Réduire la transparence » : les boutons de verre deviennent
   opaques. */
@media (max-width: 760px) and (prefers-reduced-transparency: reduce) {
  .is-focused .indice-lecture,
  .book-details.is-etendue .retour-livre,
  .is-focused .consult-fleche,
  .shelf-arrow,
  .shelf-arrow:hover:not(:disabled) {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
