/* ==========================================================
   Lords of Echoes — page Bestiaire
   S'appuie sur style.css et chroniques.css (slot d'ouverture,
   navigation des parties, titres, texte, citations).
   Chaque partie a sa direction artistique, chaque planche sa mise
   en page (voir tools/build_bestiaire.py).
   ========================================================== */

.page-bestiaire {
  --parchment: #e6d8b8;
  --parchment-dark: #c9b38a;
  --ink-brown: #2c2118;
  --ink-red: #6e2c1e;
  --font-old: "IM Fell English", "EB Garamond", Georgia, serif;
}

/* ---------- Identité propre : cabinet de naturaliste ----------
   Parchemin, encre brune, police ancienne (IM Fell English) là où les
   Chroniques utilisent l'or et le Cinzel. */
/* Barre de lecture et sommaire, version cabinet de naturaliste */
.page-bestiaire .rbar { background: rgba(18, 14, 10, .96); border-bottom-color: rgba(201, 179, 138, .22); }
.page-bestiaire .rbar-toc { font-family: var(--font-old); font-style: italic; font-size: 17px; letter-spacing: .02em; text-transform: none; border-color: rgba(201, 179, 138, .35); color: #cdbb96; }
.page-bestiaire .rbar-toc:hover, .page-bestiaire .rbar-toc[aria-expanded="true"] { color: var(--parchment); border-color: var(--parchment-dark); background: rgba(201, 179, 138, .08); }
.page-bestiaire .rbar-group { font-family: var(--font-old); font-style: italic; font-size: 15px; letter-spacing: .02em; text-transform: none; color: #cdbb96; }
.page-bestiaire .rbar-item { font-family: var(--font-old); color: var(--parchment); }
.page-bestiaire .rbar-progress i { background: linear-gradient(90deg, #8a6a42, var(--parchment)); }
.page-bestiaire .toc-panel {
  color: var(--ink-brown);
  border-right-color: rgba(44, 33, 24, .5);
  background:
    radial-gradient(ellipse 120% 80% at 50% 30%, rgba(255, 250, 235, .4), transparent 65%),
    repeating-linear-gradient(0deg, rgba(90, 60, 30, .03) 0 1px, transparent 1px 3px),
    var(--parchment);
}
.page-bestiaire .toc-head, .page-bestiaire .toc-foot, .page-bestiaire .toc-group + .toc-group { border-color: rgba(44, 33, 24, .3); }
.page-bestiaire .toc-head p { font-family: var(--font-old); font-style: italic; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--ink-brown); }
.page-bestiaire .toc-close { color: var(--ink-brown); border-color: rgba(44, 33, 24, .35); }
.page-bestiaire .toc-group h3 { font-family: var(--font-old); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: .01em; text-transform: none; color: var(--ink-red); }
.page-bestiaire .toc-group a { font-family: var(--font-old); color: var(--ink-brown); }
.page-bestiaire .toc-group a i { border-color: rgba(44, 33, 24, .5); }
.page-bestiaire .toc-group a.is-read { color: rgba(44, 33, 24, .55); }
.page-bestiaire .toc-group a.is-read i { background: rgba(44, 33, 24, .45); border-color: rgba(44, 33, 24, .6); }
.page-bestiaire .toc-group a.is-current { color: var(--ink-red); }
.page-bestiaire .toc-group a.is-current i { background: var(--ink-red); border-color: var(--ink-red); box-shadow: 0 0 0 3px rgba(110, 44, 30, .18); }
.page-bestiaire .toc-foot p { color: rgba(44, 33, 24, .7); }
.page-bestiaire .toc-reset { font-family: var(--font-old); font-style: italic; font-size: 16px; letter-spacing: .01em; text-transform: none; color: var(--ink-brown); border-color: rgba(44, 33, 24, .4); }
.page-bestiaire .toc-panel { width: min(660px, 96vw); }
.page-bestiaire .toc-list { padding: 8px 26px 34px; }
.page-bestiaire .toc-group { padding: 22px 0 10px; }
.page-bestiaire .toc-group h3 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; font-size: 21px; font-style: normal; color: var(--ink-brown); }
.page-bestiaire .toc-group h3 small { font-style: italic; font-size: 14px; color: var(--ink-red); }
.page-bestiaire .toc-ghead { padding: 14px 0; color: var(--ink-brown); }
.page-bestiaire .toc-num { width: 30px; height: 30px; background: none; border-color: rgba(110, 44, 30, .55); color: var(--ink-red); }
.page-bestiaire .toc-num--mark::before { border-color: var(--ink-red); }
.page-bestiaire .toc-gtitle { font-family: var(--font-old); font-style: italic; font-size: 19px; letter-spacing: 0; color: var(--ink-brown); }
.page-bestiaire .toc-ghead:hover .toc-gtitle, .page-bestiaire .toc-ghead.is-current .toc-gtitle { color: var(--ink-red); }
.page-bestiaire .toc-ghead.is-read .toc-num--mark::before { background: var(--ink-red); }
.toc-group--plates ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.toc-plate {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 4px !important;
  padding: 7px 7px 9px !important;
  background: rgba(255, 250, 235, .6);
  border: 1px solid rgba(44, 33, 24, .22);
  box-shadow: 0 8px 18px rgba(60, 40, 20, .2);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s, box-shadow .25s;
}
.toc-group--plates li:nth-child(3n+1) .toc-plate { --r: -1deg; }
.toc-group--plates li:nth-child(3n+2) .toc-plate { --r: .8deg; }
.toc-group--plates li:nth-child(3n) .toc-plate { --r: -.4deg; }
.toc-plate:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 14px 26px rgba(60, 40, 20, .3); }
.toc-thumb { display: block; overflow: hidden; }
.toc-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.18); }
.toc-plate small { font-style: italic; font-size: 13px; color: var(--ink-red); }
.toc-name { font-size: 15.5px; line-height: 1.2; color: var(--ink-brown); }
.page-bestiaire .toc-plate.is-read { color: inherit; }
.page-bestiaire .toc-plate.is-read .toc-thumb img { filter: sepia(.55) brightness(.92); }
.toc-plate.is-read::after {
  content: "lu";
  position: absolute;
  top: -8px; right: -8px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9a3b28, #5e1f14 75%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  font-family: var(--font-old);
  font-style: italic;
  font-size: 13px;
  color: #f1d9c0;
  transform: rotate(-12deg);
}
.page-bestiaire .toc-plate.is-current { outline: 2px solid var(--ink-red); outline-offset: 3px; }
@media (max-width: 560px) {
  .toc-group--plates ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-bestiaire .resume { background: var(--parchment); border-color: rgba(44, 33, 24, .5); }
.page-bestiaire .resume p { font-family: var(--font-old); color: #4a3a2a; }
.page-bestiaire .resume strong { color: var(--ink-brown); }
.page-bestiaire .resume-close { color: rgba(44, 33, 24, .7); }
.page-bestiaire .plate-name,
.page-bestiaire .best-intro-text h2,
.page-bestiaire .chro-head h2 { font-family: var(--font-old); font-weight: 400; letter-spacing: 0; }
.page-bestiaire .plate-where { font-family: var(--font-old); font-style: italic; font-size: 16px; letter-spacing: .02em; text-transform: none; }
.page-bestiaire .bst-num { font-family: var(--font-old); font-style: italic; font-size: 15px; letter-spacing: .04em; text-transform: none; }
.page-bestiaire .chap-block h4 { font-family: var(--font-old); font-style: italic; font-weight: 400; font-size: 20px; letter-spacing: .01em; text-transform: none; }
.page-bestiaire .plate-body .chap-block:first-child p:first-child::first-letter,
.page-bestiaire .prologue-lead::first-letter { font-family: var(--font-old); }
.page-bestiaire .bst-pullquote p { font-family: var(--font-old); font-style: italic; }
.page-bestiaire .eyebrow { font-family: var(--font-old); font-style: italic; font-size: 17px; letter-spacing: .03em; text-transform: none; }

/* ---------- Premier écran : frontispice et planches épinglées ---------- */
.bst-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 50px) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 28% 45%, rgba(214, 150, 80, .14), transparent 70%),
    repeating-linear-gradient(94deg, rgba(255, 235, 200, .018) 0 2px, transparent 2px 11px),
    radial-gradient(ellipse 90% 80% at 40% 40%, #2a1f16 0%, #17110c 58%, #0c0a08 100%);
}
.bst-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}
.bst-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}
.bst-frontis {
  position: relative;
  padding: clamp(40px, 4.4vw, 64px) clamp(30px, 3.6vw, 54px);
  text-align: center;
  color: var(--ink-brown);
  background:
    radial-gradient(ellipse 110% 90% at 50% 40%, rgba(255, 250, 235, .5), transparent 65%),
    radial-gradient(circle at 10% 90%, rgba(120, 80, 40, .16), transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(120, 80, 40, .12), transparent 30%),
    repeating-linear-gradient(0deg, rgba(90, 60, 30, .03) 0 1px, transparent 1px 3px),
    var(--parchment);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 70px rgba(90, 60, 30, .35);
  transform: rotate(-1deg);
}
.bst-frontis::before, .bst-frontis::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(44, 33, 24, .5);
}
.bst-frontis::before { inset: 12px; }
.bst-frontis::after { inset: 17px; border-width: .5px; border-color: rgba(44, 33, 24, .3); }
.frontis-top { font-family: var(--font-old); font-style: italic; font-size: 18px; color: var(--ink-red); margin-bottom: 20px; }
.bst-frontis h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-old);
  font-weight: 400;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .95;
  color: var(--ink-brown);
}
.bst-frontis h1 span { margin-top: 10px; font-style: italic; font-size: .46em; color: #4a3a2a; }
.frontis-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 20px; }
.frontis-rule span { width: 70px; height: 1px; background: rgba(44, 33, 24, .5); }
.frontis-rule i { width: 7px; height: 7px; border: 1px solid var(--ink-red); transform: rotate(45deg); }
.frontis-sub { font-family: var(--font-old); font-style: italic; font-size: 19px; line-height: 1.5; color: #4a3a2a; margin: 0 auto 28px; max-width: 380px; }
.frontis-toc { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; border-top: 1px solid rgba(44, 33, 24, .35); text-align: left; }
.frontis-toc li { border-bottom: 1px solid rgba(44, 33, 24, .18); }
.frontis-toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; color: var(--ink-brown); transition: background .2s; }
.frontis-toc a:hover { background: rgba(110, 44, 30, .06); }
.frontis-toc b {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(110, 44, 30, .55);
  border-radius: 50%;
  font-family: var(--font-old);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-red);
}
.frontis-toc span { display: flex; flex-direction: column; font-family: var(--font-old); font-size: 18px; line-height: 1.2; }
.frontis-toc small { font-style: italic; font-size: 13.5px; color: var(--ink-red); margin-bottom: 2px; }
.frontis-toc em { font-family: var(--font-old); font-size: 14px; color: #5a4632; white-space: nowrap; }
.frontis-toc a:hover span { color: var(--ink-red); }
.frontis-plates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid rgba(44, 33, 24, .45);
  font-family: var(--font-old);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-brown);
  transition: background .2s, color .2s;
}
.frontis-plates:hover { background: var(--ink-brown); color: var(--parchment); }
.frontis-foot { margin-top: 22px; font-family: var(--font-old); font-style: italic; font-size: 14px; color: rgba(44, 33, 24, .65); }

.bst-hero-plates {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: min(78vh, 700px);
  gap: 14px;
}
.pin {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 9px 9px 0;
  background: var(--parchment);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .6);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s, box-shadow .35s;
}
.pin::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9b777, #7a5526 70%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
  z-index: 2;
}
.pin:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 34px 70px rgba(0, 0, 0, .7); z-index: 3; }
.pin-img { flex: 1; min-height: 0; overflow: hidden; }
.pin-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12); }
.pin-cap { padding: 7px 4px 8px; font-family: var(--font-old); font-style: italic; font-size: 14px; color: var(--ink-brown); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin--1 { grid-area: 1 / 1 / 5 / 5; --r: -2deg; }
.pin--2 { grid-area: 1 / 5 / 4 / 7; --r: 2.5deg; margin-top: 18px; }
.pin--3 { grid-area: 4 / 5 / 7 / 7; --r: -1.5deg; margin: 16px 0 0 10px; }
.pin--4 { grid-area: 5 / 1 / 7 / 3; --r: 3deg; margin-top: 6px; }
.pin--5 { grid-area: 5 / 3 / 7 / 5; --r: -2.5deg; margin-top: 18px; }

/* Ouvertures de partie : cartouche de parchemin sur l'image */
.bst-cover::before {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10, 10, 11, .35) 0%, rgba(10, 10, 11, .1) 70%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 18%, rgba(10, 10, 11, 0) 72%, var(--ink) 100%);
}
.bst-cartouche {
  position: relative;
  max-width: 640px;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 60px);
  color: var(--ink-brown);
  background:
    radial-gradient(ellipse 110% 90% at 50% 40%, rgba(255, 250, 235, .45), transparent 65%),
    repeating-linear-gradient(0deg, rgba(90, 60, 30, .03) 0 1px, transparent 1px 3px),
    var(--parchment);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 60px rgba(90, 60, 30, .3);
}
.bst-cartouche::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(44, 33, 24, .45); pointer-events: none; }
.bst-cover .bst-cartouche .eyebrow { color: var(--ink-red); }
.bst-cover .bst-cartouche h2 { font-family: var(--font-old); color: var(--ink-brown); text-shadow: none; font-size: clamp(38px, 4.6vw, 66px); }
.bst-cover .bst-cartouche p:not(.eyebrow) { color: #4a3a2a; text-shadow: none; font-size: clamp(17px, 1.3vw, 20px); }
.bst-cartouche .ornament span { background: linear-gradient(90deg, transparent, rgba(44, 33, 24, .5)); }
.bst-cartouche .ornament span:last-child { background: linear-gradient(90deg, rgba(44, 33, 24, .5), transparent); }
.bst-cartouche .ornament i { border-color: var(--ink-red); }

/* ---------- Avant-propos ---------- */
.best-intro {
  background:
    radial-gradient(ellipse 55% 60% at 80% 40%, rgba(196, 154, 92, .07), transparent 70%),
    var(--ink);
}
.best-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.best-intro-text .eyebrow { color: var(--gold-light); }
.best-intro-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.12;
  margin-bottom: 30px;
}
.best-intro-text > p:not(.eyebrow):not(.prologue-lead) { font-size: 18.5px; line-height: 1.78; color: var(--cream-2); }
.best-intro-text > p + p { margin-top: 16px; }
.rings { margin: 0; }
.rings svg { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 1; }
.ring--3 { stroke-dasharray: 2 6; }
.ring--2 { fill: rgba(196, 154, 92, .035); }
.ring--1 { fill: rgba(196, 154, 92, .09); stroke: var(--gold); }
.ring-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; fill: var(--cream); text-anchor: middle; }
.ring-note { font-family: var(--font-body); font-style: italic; font-size: 16px; fill: var(--cream-2); text-anchor: middle; }
.ring-note--far { fill: var(--muted); }

/* ---------- Ouverture de partie (plein écran) ---------- */
.bst-part { position: relative; scroll-margin-top: calc(var(--header-h) + var(--parts-h)); }
.bst-cover {
  min-height: 88vh;
  min-height: 88svh;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 20px 100px;
}
.bst-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bst-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 55% at 50% 52%, rgba(10, 10, 11, .72) 0%, rgba(10, 10, 11, .35) 65%, rgba(10, 10, 11, .15) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 18%, rgba(10, 10, 11, 0) 72%, var(--ink) 100%);
}
.bst-cover-copy { max-width: 760px; margin: 0 auto; }
.bst-cover .eyebrow { color: var(--gold-light); }
.bst-cover h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.04;
  color: #f4ecdc;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .7);
  margin-bottom: 20px;
}
.bst-cover p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.bst-cover .ornament { margin-top: 28px; }
.bst-part--registres .bst-cover-img { filter: sepia(.45) saturate(.8); }
.bst-part--contes .bst-cover-img { filter: sepia(.3) saturate(.85) brightness(.85); }

/* ---------- Éléments communs des planches ---------- */
.bst { position: relative; scroll-margin-top: calc(var(--header-h) + var(--parts-h)); }
.bst-num {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.plate-where {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.plate-where::before { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.plate-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 12px;
}
.plate-epithet {
  font-style: italic;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--cream-2);
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.plate-body .chap-block:first-child p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.3em;
  line-height: .8;
  padding: 6px 10px 0 0;
  color: var(--gold-light);
}
.bst .chap-quote { margin-top: 34px; }
.plate-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.plate-link svg { width: 16px; height: 16px; transition: transform .25s; }
.plate-link:hover svg { transform: translateX(4px); }

/* Fond plein écran qui reste en place pendant que le texte défile */
.bst-bgwrap { position: absolute; inset: 0; z-index: 0; }
.bst-bg { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; object-fit: cover; display: block; }

/* Panneau de verre sombre, coins dorés */
.bst-panel {
  position: relative;
  max-width: 580px;
  padding: clamp(30px, 3.4vw, 50px);
  background: rgba(11, 11, 12, .8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.bst-panel::before, .bst-panel::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
}
.bst-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bst-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Immersive ---------- */
.bst--immersive { padding: clamp(110px, 16vh, 180px) 0; min-height: 100vh; }
.bst--immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 12%, rgba(10, 10, 11, 0) 88%, var(--ink) 100%);
}
.bst--immersive > .container, .bst--people > .container, .bst--tale > .container { position: relative; z-index: 2; }
.bst--right .bst-panel { margin-left: auto; }

/* ---------- Cinéma ---------- */
.bst--cinema { padding-bottom: clamp(90px, 10vw, 140px); }
.bst-cinema-head {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(50px, 7vh, 80px);
  overflow: hidden;
  isolation: isolate;
}
.bst-cinema-head .bst-bg { position: absolute; inset: 0; height: 100%; z-index: -1; }
.bst-cinema-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 16%, rgba(10, 10, 11, 0) 45%, rgba(10, 10, 11, .85) 82%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .5) 0%, rgba(10, 10, 11, 0) 60%);
}
.bst-cinema-title { max-width: 820px; }
.bst-cinema-title .plate-name { font-size: clamp(40px, 5vw, 76px); text-shadow: 0 3px 30px rgba(0, 0, 0, .7); }
.bst-cinema-title .plate-epithet { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.bst-cinema-body {
  columns: 2 320px;
  column-gap: clamp(40px, 5vw, 80px);
  column-rule: 1px solid var(--line-soft);
  max-width: 1120px;
  margin-top: 40px;
}
.bst-cinema-body .chap-block { break-inside: avoid-column; }
.bst-cinema-body .chap-block + .chap-block { margin-top: 26px; }
.bst-pullquote {
  max-width: 900px;
  margin: clamp(56px, 7vw, 90px) auto 0;
  text-align: center;
}
.bst-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.3;
  color: var(--gold-light);
}
.bst-pullquote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.bst-pullquote::before, .bst-pullquote::after {
  content: "";
  display: block;
  width: 7px; height: 7px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.bst-pullquote::after { margin: 24px auto 0; }

/* ---------- Planche encadrée ---------- */
.bst--plate { padding: clamp(90px, 10vw, 150px) 0; }
.bst-plate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(50px, 6vw, 100px);
  align-items: start;
}
.bst--plate.is-reverse .bst-frame { order: 2; }
.bst-frame {
  position: sticky;
  top: calc(var(--header-h) + var(--parts-h) + 40px);
  margin: 0;
  padding: 14px;
  background: linear-gradient(180deg, #1c1a17, #121110);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}
.bst-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(196, 154, 92, .22);
  pointer-events: none;
}
.bst-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bst-frame figcaption {
  padding: 14px 4px 2px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Duo ---------- */
.bst--duo { padding: clamp(90px, 10vw, 150px) 0; background: linear-gradient(180deg, var(--ink), #111113 50%, var(--ink)); }
.bst-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 3vw, 44px); align-items: start; }
.bst-duo-card {
  position: relative;
  background: #121214;
  border: 1px solid var(--line-soft);
}
.bst-duo-card:nth-child(2) { margin-top: clamp(60px, 9vw, 140px); }
.bst-duo-card figure { margin: 0; overflow: hidden; }
.bst-duo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bst-duo-text { padding: clamp(26px, 3vw, 42px); }

/* ---------- Registre ouvert (parchemin) ---------- */
.bst--folio { padding: clamp(90px, 10vw, 150px) 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, #1c1712, var(--ink) 75%); }
.bst-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 3px;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(255, 250, 235, .35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(90, 60, 30, .025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 12% 18%, rgba(120, 80, 40, .12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(120, 80, 40, .14), transparent 35%),
    linear-gradient(90deg, var(--parchment-dark) 0%, var(--parchment) 8%, var(--parchment) 46%, #cdb78e 50%, var(--parchment) 54%, var(--parchment) 92%, var(--parchment-dark) 100%);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), inset 0 0 80px rgba(90, 60, 30, .35);
}
.bst-book::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 60px;
  margin-left: -30px;
  background: linear-gradient(90deg, rgba(60, 40, 20, 0), rgba(60, 40, 20, .28) 50%, rgba(60, 40, 20, 0));
  pointer-events: none;
}
.bst-folio { position: relative; padding: clamp(40px, 5vw, 76px) clamp(30px, 4.4vw, 70px); color: var(--ink-brown); }
.bst-folio-mark {
  font-family: var(--font-old);
  font-style: italic;
  font-size: 15px;
  color: rgba(44, 33, 24, .7);
  text-align: center;
  margin-bottom: 26px;
}
.bst-engraving { margin: 0 0 30px; padding: 8px; border: 1px solid rgba(44, 33, 24, .45); background: rgba(255, 250, 235, .25); }
.bst-engraving img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: sepia(.75) contrast(1.05) brightness(1.05) saturate(.7); mix-blend-mode: multiply; }
.bst-folio .bst-num { color: rgba(44, 33, 24, .55); }
.bst-folio .plate-where { color: var(--ink-red); font-family: var(--font-old); font-size: 14px; letter-spacing: .06em; text-transform: none; font-style: italic; }
.bst-folio .plate-where::before { background: var(--ink-red); }
.bst-folio .plate-name { font-family: var(--font-old); color: var(--ink-brown); font-size: clamp(34px, 3.4vw, 50px); }
.bst-folio .plate-epithet { font-family: var(--font-old); color: #4a3a2a; border-bottom-color: rgba(44, 33, 24, .35); }
.bst-folio .chap-block p { font-family: var(--font-old); font-size: 18.5px; line-height: 1.7; color: var(--ink-brown); }
.bst-folio .chap-block h4 { font-family: var(--font-old); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: .02em; font-size: 20px; color: var(--ink-red); }
.bst-folio .chap-block h4::before { border-color: var(--ink-red); }
.bst-folio .plate-body .chap-block:first-child p:first-child::first-letter { font-family: var(--font-old); color: var(--ink-red); font-size: 3.8em; }
.bst-folio .chap-quote { border-color: rgba(44, 33, 24, .35); }
.bst-folio .chap-quote p { font-family: var(--font-old); color: var(--ink-brown); }
.bst-folio .chap-quote cite { color: rgba(44, 33, 24, .6); }

/* ---------- Peuples ---------- */
.bst--people { padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); min-height: 100vh; }
.bst--people::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, .1) 12%, rgba(10, 10, 11, .1) 80%, var(--ink) 100%);
}
.bst-people-grid { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 380px); justify-content: space-between; gap: 40px; align-items: start; }
.bst--right .bst-people-grid { grid-template-columns: minmax(0, 380px) minmax(0, 580px); }
.bst--right .bst-people-grid .bst-panel { order: 2; }
.bst-clues {
  position: sticky;
  top: calc(var(--header-h) + var(--parts-h) + 40px);
  padding: 30px 30px 26px;
  background: rgba(20, 16, 11, .82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.bst-clues h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bst-clues > p { font-style: italic; color: var(--cream-2); margin-bottom: 12px; }
.bst-clues ol { list-style: none; margin: 0; padding: 0; counter-reset: clue; }
.bst-clues li {
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--cream);
  counter-increment: clue;
}
.bst-clues li + li { border-top: 1px dashed rgba(196, 154, 92, .2); }
.bst-clues li::before {
  content: counter(clue, upper-roman);
  position: absolute;
  left: 0; top: 11px;
  width: 26px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  text-align: center;
}
.bst-encounter { max-width: 860px; margin: clamp(70px, 10vh, 120px) auto 0; text-align: center; }
.bst-encounter .eyebrow { color: var(--gold-light); }
.bst-encounter-text {
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.45;
  color: #f4ecdc;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
  padding: 34px clamp(20px, 4vw, 50px);
  background: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(10, 10, 11, .75), rgba(10, 10, 11, 0) 75%);
}

/* ---------- Contes du Sud ---------- */
.bst--tale { padding: clamp(120px, 18vh, 200px) 0; min-height: 100vh; }
.bst--tale .bst-bg { filter: sepia(.35) saturate(.85) brightness(.8); }
.bst--tale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(8, 7, 6, 0) 30%, rgba(8, 7, 6, .75) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 14%, rgba(10, 10, 11, 0) 86%, var(--ink) 100%);
}
.bst-tale-col {
  max-width: 620px;
  padding: clamp(30px, 3.4vw, 50px);
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(8, 7, 6, .82), rgba(8, 7, 6, .6));
  border-top: 1px solid rgba(227, 155, 138, .35);
  border-bottom: 1px solid rgba(227, 155, 138, .35);
}
.bst--right .bst-tale-col { margin-left: auto; }
.bst--center .bst-tale-col { margin: 0 auto; text-align: center; }
.bst--center .plate-where { justify-content: center; }
.bst--tale .plate-where { color: var(--madder-light); }
.bst--tale .plate-where::before { background: var(--madder); }
.bst-tale-text p {
  font-family: var(--font-old);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.65;
  color: #efe3cc;
}
.bst-tale-text p:first-child::first-letter {
  float: left;
  font-family: var(--font-old);
  font-size: 3.6em;
  line-height: .8;
  padding: 6px 10px 0 0;
  color: var(--madder-light);
}
.bst--center .bst-tale-text p:first-child::first-letter { float: none; padding: 0; font-size: 1.6em; }
.bst-wise {
  margin-top: 30px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(196, 154, 92, .06);
  text-align: left;
}
.bst-wise h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.bst-wise p { font-size: 16.5px; line-height: 1.6; color: var(--cream-2); }

/* ---------- Contes de la veillée (au coin du feu) ---------- */
.bst--veillee {
  padding: clamp(100px, 12vw, 170px) 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(214, 120, 50, .16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(240, 160, 70, .12), transparent 70%),
    #0b0a09;
}
.bst-ember-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px); align-items: start; }
.bst-ember {
  background: linear-gradient(180deg, #16120e, #100d0b);
  border: 1px solid rgba(214, 140, 70, .22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 60px rgba(214, 120, 50, .06);
}
.bst-ember:nth-child(2) { margin-top: 60px; }
.bst-ember figure { margin: 0; overflow: hidden; }
.bst-ember img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; filter: sepia(.25) saturate(.9); }
.bst-ember-text { padding: 28px 28px 30px; }
.bst-ember .plate-name { font-size: clamp(24px, 2vw, 30px); }
.bst-ember .plate-epithet { font-size: 17.5px; }
.bst-ember .chap-block p { font-size: 17px; line-height: 1.7; }
.bst-ember .chap-block + .chap-block { padding: 18px 18px 16px; border: 1px solid var(--line-soft); background: rgba(196, 154, 92, .05); }
.bst-ember .chap-block + .chap-block p { font-size: 15.5px; }

/* ---------- Fin ---------- */
.best-end-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.best-end-copy .ornament { margin-bottom: 30px; }
.best-end-copy p { font-style: italic; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.55; color: var(--cream); margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bst-hero-grid { grid-template-columns: 1fr; }
  .bst-frontis { max-width: 560px; margin: 0 auto; }
  .bst-hero-plates { height: 520px; max-width: 760px; width: 100%; margin: 0 auto; }
  .best-intro-grid { grid-template-columns: 1fr; }
  .rings { max-width: 440px; margin: 0 auto; }
  .bst-people-grid, .bst--right .bst-people-grid { grid-template-columns: minmax(0, 1fr); }
  .bst--right .bst-people-grid .bst-panel { order: 0; }
  .bst-clues { position: static; max-width: 580px; }
  .bst--right .bst-clues { margin-left: auto; }
  .bst-ember-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .bst-ember:nth-child(2) { margin-top: 0; }
}
@media (max-width: 900px) {
  .bst-plate-grid { grid-template-columns: 1fr; }
  .bst--plate.is-reverse .bst-frame { order: 0; }
  .bst-frame { position: static; }
  .bst-duo-grid { grid-template-columns: 1fr; }
  .bst-duo-card:nth-child(2) { margin-top: 0; }
  .bst-book { grid-template-columns: 1fr; }
  .bst-book::before { display: none; }
  .bst-folio + .bst-folio { border-top: 1px solid rgba(44, 33, 24, .3); }
  .bst-panel, .bst--right .bst-panel, .bst-tale-col, .bst--right .bst-tale-col { max-width: none; margin-left: 0; }
  .bst-cinema-head { min-height: 64vh; }
}
@media (max-width: 640px) {
  .bst-hero-plates { height: 400px; gap: 10px; }
  .pin-cap { font-size: 12px; }
  .frontis-toc small { width: 100px; }
  .bst-panel { padding: 26px 22px; }
  .bst-folio { padding: 34px 22px; }
}
