/* ==========================================================
   Lords of Echoes — page Chroniques
   S'appuie sur style.css (variables, en-tête, pied de page,
   boutons, slots plein écran, ornements).
   La page se lit d'un bout à l'autre : prologue, frise des
   sept âges (récits complets), lieux, peuples, mémoire.
   ========================================================== */

.page-chroniques {
  --madder: #a4473a;
  --madder-light: #e39b8a;
  --parts-h: 54px;   /* hauteur de la barre de lecture */
  --rail: 110px;   /* marge gauche de la frise */
  --spine: 34px;   /* position de l'épine dans cette marge */
}

/* ---------- Mise en page : sommaire dans la marge, contenu à droite ---------- */
body[data-page="chroniques"] main { padding-top: var(--header-h); }
.chro-layout { position: relative; }
@media (min-width: 1180px) {
  .chro-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
  body[data-page="chroniques"] .rbar { display: none; }
  body[data-page="chroniques"] .toc,
  body[data-page="chroniques"] .toc[hidden] {
    display: block;
    position: sticky;
    inset: auto;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    z-index: 30;
    border-right: 1px solid var(--line-soft);
  }
  body[data-page="chroniques"] .toc-backdrop, body[data-page="chroniques"] .toc-close { display: none; }
  body[data-page="chroniques"] .toc-panel { position: static; width: auto; height: 100%; border-right: 0; box-shadow: none; animation: none; background: #0f1012; }
  body[data-page="chroniques"] .toc-head { height: 56px; padding: 0 24px; }
  body[data-page="chroniques"] .toc-list { padding: 6px 18px 24px 24px; }
  body[data-page="chroniques"] .toc-foot { padding: 14px 24px 16px; }
  html.toc-open { overflow: visible; }
}
.chro-main { min-width: 0; }
.chro-main .container { max-width: none; padding: 0 clamp(22px, 4vw, 64px); }

/* ---------- Bandeau fin, sur toute la largeur ---------- */
.chro-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 168px;
  padding: 26px var(--gutter);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.chro-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; z-index: -2; }
.chro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .82) 42%, rgba(10, 10, 11, .3) 100%);
}
.chro-band-copy { max-width: 900px; }
.chro-band-kicker { font-style: italic; font-size: 16px; color: var(--gold-light); margin-bottom: 4px; }
.chro-band h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  color: #f4ecdc;
  margin-bottom: 8px;
}
.chro-band-lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: var(--cream); }

/* ---------- Ouverture : le prologue et les moments forts ---------- */
.chro-main .prologue { max-width: 1120px; }
.chro-main .prologue > :not(.hooks) { max-width: 760px; margin-left: auto; margin-right: auto; }
.chro-main .prologue > .eyebrow { margin-bottom: 10px; }
.chro-main .prologue-lead { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.6; color: #f1e8d6; border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.chro-main .prologue-lead::first-letter { font-size: 3.9em; }
.hooks { margin: clamp(34px, 4vw, 52px) 0 clamp(46px, 5vw, 70px); }
.hooks-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hooks-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.hooks ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hook {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.hook[data-kind="bataille"] { border-top: 2px solid var(--madder); }
.hook img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s ease; }
.hook::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 11, .1) 0%, rgba(10, 10, 11, .35) 35%, rgba(10, 10, 11, .92) 72%, rgba(10, 10, 11, .98) 100%);
}
.hook:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); }
.hook:hover img { transform: scale(1.06); }
.hook-age {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 9px 4px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, .6);
}
.hook-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 18px; }
.hook-line { font-style: italic; font-size: 17px; line-height: 1.42; color: #f1e8d6; }
.hook-title { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: var(--gold-light); }
.hook-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.hook-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.hook:hover .hook-more { color: var(--cream); }
.hook:hover .hook-more svg { transform: translateX(3px); }
@media (max-width: 1320px) {
  .hooks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hook { min-height: 300px; }
}
@media (max-width: 640px) {
  .chro-band { min-height: 0; padding: 22px 20px; }
  .chro-band-lead { display: none; }
  .hooks ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .hooks li { scroll-snap-align: start; }
}

.chro-outro-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ---------- Sommaire en accordéon (âges, parties) ---------- */
.toc-ghead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  color: var(--cream);
}
.toc-ghead::-webkit-details-marker { display: none; }
.toc-group--fold > .toc-ghead::after {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin: 0 4px 0 auto;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .2s;
}
.toc-group--fold[open] > .toc-ghead::after { transform: rotate(45deg); }
.toc-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--gold-light);
  background: radial-gradient(circle at 50% 35%, #26221c, var(--ink) 70%);
}
.toc-num--mark::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.toc-gtitle { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; line-height: 1.3; }
.toc-gtitle small { font-family: var(--font-body); font-style: italic; font-size: 13.5px; letter-spacing: 0; color: var(--muted); }
.toc-ghead:hover .toc-gtitle { color: var(--gold-light); }
.toc-group.toc-group--fold ol { padding: 0 0 12px 48px; }
.toc-group.toc-group--fold li a { font-size: 16px; padding: 6px 0; }
.toc-group--single .toc-ghead.is-current .toc-gtitle, .toc-group--fold:has(.is-current) > .toc-ghead .toc-gtitle { color: var(--gold-light); }
.toc-group--fold:has(.is-current) > .toc-ghead .toc-num { background: var(--gold); color: var(--ink); }
.toc-group--single .toc-ghead.is-read .toc-num--mark::before { background: var(--gold-dark); border-color: var(--gold); }
body[data-page="chroniques"] .toc-group { padding: 0; }
body[data-page="chroniques"] .toc-group + .toc-group { border-top: 1px solid var(--line-soft); }

/* ---------- Barre de lecture (partagée avec le Bestiaire) ---------- */
.rbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: var(--parts-h);
  background: rgba(10, 10, 11, .95);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.rbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rbar button { display: inline-flex; align-items: center; justify-content: center; color: var(--cream-2); transition: color .2s, border-color .2s, background .2s; }
.rbar-toc {
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  flex: none;
}
.rbar-toc:hover, .rbar-toc[aria-expanded="true"] { color: var(--gold-light); border-color: var(--gold); background: rgba(196, 154, 92, .08); }
.rbar-burger { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.rbar-burger i { display: block; height: 1px; background: currentColor; }
.rbar-burger i:nth-child(2) { width: 70%; }
.rbar-where { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; overflow: hidden; }
.rbar-group {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.rbar-group:empty { display: none; }
.rbar-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: italic; font-size: 17px; color: var(--cream); }
.rbar-steps { display: flex; gap: 6px; flex: none; }
.rbar-steps button { width: 36px; height: 36px; border: 1px solid var(--line-soft); }
.rbar-steps button:hover { color: var(--gold-light); border-color: var(--gold); }
.rbar-steps svg, .toc-close svg, .read-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.rbar-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transform-origin: left center; transform: scaleX(0); transition: transform .2s linear; }

/* ---------- Sommaire latéral ---------- */
.toc { position: fixed; inset: 0; z-index: 150; }
.toc[hidden] { display: none; }
.toc-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 5, .7); backdrop-filter: blur(2px); animation: tocFade .25s ease; }
.toc-panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: min(440px, 92vw);
  display: flex;
  flex-direction: column;
  background: #111214;
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 80px rgba(0, 0, 0, .6);
  animation: tocIn .3s cubic-bezier(.2, .8, .2, 1);
  outline: none;
}
.toc-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px 0 28px; border-bottom: 1px solid var(--line-soft); flex: none; }
.toc-head p { font-family: var(--font-display); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.toc-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-soft); color: var(--cream); }
.toc-close:hover { border-color: var(--gold); color: var(--gold-light); }
.toc-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 28px 30px; }
.toc-group { padding: 18px 0 6px; }
.toc-group + .toc-group { border-top: 1px solid var(--line-soft); }
.toc-group h3 { font-family: var(--font-display); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.toc-group ol { list-style: none; margin: 0; padding: 0; }
.toc-group a { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 17px; line-height: 1.35; color: var(--cream-2); transition: color .2s; }
.toc-group a:hover { color: var(--cream); }
.toc-group a i { flex: none; width: 8px; height: 8px; border: 1px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.toc-group a.is-read { color: var(--muted); }
.toc-group a.is-read i { border-color: var(--gold); background: var(--gold-dark); }
.toc-group a.is-current { color: var(--gold-light); }
.toc-group a.is-current i { border-color: var(--gold-light); background: var(--gold-light); box-shadow: 0 0 0 3px rgba(196, 154, 92, .2); }
.toc-foot { flex: none; padding: 16px 28px 20px; border-top: 1px solid var(--line-soft); }
.toc-foot p { font-size: 14px; font-style: italic; color: var(--muted); margin-bottom: 10px; }
.toc-reset { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.toc-reset:hover { color: var(--gold-light); }
html.toc-open { overflow: hidden; }
@keyframes tocIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tocFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reprendre la lecture ---------- */
.resume {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 120;
  width: min(400px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  background: rgba(17, 18, 20, .97);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  animation: tocIn .4s cubic-bezier(.2, .8, .2, 1);
}
.resume[hidden] { display: none; }
.resume p { font-size: 17px; line-height: 1.45; color: var(--cream-2); margin-bottom: 14px; }
.resume strong { display: block; font-weight: 400; font-style: italic; font-size: 19px; color: var(--cream); margin-top: 2px; }
.resume-actions { display: flex; align-items: center; gap: 18px; }
.resume-close { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.resume-close:hover { color: var(--cream); }

/* ---------- Lien vers le récit suivant ---------- */
.read-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 48px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line-soft);
  text-align: right;
}
.read-next small { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.read-next span { font-family: var(--font-display); font-size: 18px; color: var(--gold-light); }
.read-next svg { color: var(--gold-light); transition: transform .25s; }
.read-next:hover svg { transform: translateX(4px); }

/* ---------- Sections et titres ---------- */
.chro-section {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0;
  scroll-margin-top: calc(var(--header-h) + var(--parts-h));
}
.chro-section + .chro-section { border-top: 1px solid var(--line-soft); }
.chro-head { text-align: center; max-width: 760px; margin: 0 auto clamp(56px, 7vw, 90px); }
.chro-head .eyebrow { margin-bottom: 14px; color: var(--gold-light); }
.chro-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 18px;
}
.chro-head p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--cream-2); }
.chro-head .ornament { margin-top: 26px; }

/* ---------- Prologue ---------- */
.chro-prologue {
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(196, 154, 92, .08), transparent 70%),
    var(--ink);
}
.prologue { max-width: 760px; margin: 0 auto; }
.prologue > .eyebrow { text-align: center; color: var(--gold-light); }
.prologue > h2 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.1;
  margin-bottom: 36px;
}
.prologue-lead {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.6;
  color: var(--cream);
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.prologue-lead::first-letter,
.chap-lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.5em;
  line-height: .8;
  padding: 7px 12px 0 0;
  color: var(--gold-light);
}
.prologue .chap-quote { margin-top: 48px; }

/* ---------- Texte des récits ---------- */
.chap-block + .chap-block { margin-top: 34px; }
.chap-block h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.chap-block h4::before {
  content: "";
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.chap-block p { font-size: 19.5px; line-height: 1.8; color: #e6dcc8; }
.chap-block p + p { margin-top: 20px; }
.chap-lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 34px;
}
.chap-quote {
  padding: 28px 22px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chap-quote p { font-style: italic; font-size: 21px; line-height: 1.45; color: var(--cream); }
.chap-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.chap-doubt {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(239, 230, 212, .025);
}
.chap-doubt::before, .chap-doubt::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.chap-doubt::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.chap-doubt::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.chap-doubt h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 10px;
}
.chap-doubt p { font-style: italic; font-size: 16.5px; line-height: 1.6; color: var(--cream-2); }

/* ---------- Récit ---------- */
.chap {
  position: relative;
  margin-bottom: clamp(90px, 10vw, 150px);
  scroll-margin-top: calc(var(--header-h) + var(--parts-h) + 20px);
}
.chap-media {
  position: relative;
  margin: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.chap-media img { width: 100%; aspect-ratio: 21 / 9; max-height: 560px; object-fit: cover; }
.chap-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.chap[data-kind="bataille"] .chap-media { border-color: rgba(227, 155, 138, .35); }
.chap-head { max-width: 900px; }
.chap-era {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.chap-era::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.chap-kind {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--cream-2);
  border: 1px solid var(--line);
  padding: 4px 9px 3px;
}
.chap[data-kind="bataille"] .chap-kind { color: var(--madder-light); border-color: rgba(227, 155, 138, .45); }
.chap-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 14px;
}
.chap-kicker { font-style: italic; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--cream-2); max-width: 760px; }
.chap-body {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(240px, 320px);
  justify-content: space-between;
  gap: clamp(40px, 5vw, 80px);
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.chap-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--parts-h) + 96px);
}
.chap-aside:empty { display: none; }

/* Registre et récits de veillée */
.chap[data-kind="registre"] .chap-block p {
  font-style: italic;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--gold);
}
.chap[data-kind="legende"] .chap-block:not(:first-child) {
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .02);
}

/* Peuples : portrait à gauche */
.chap--portrait {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.chap-portrait { position: sticky; top: calc(var(--header-h) + var(--parts-h) + 30px); }
.chap-portrait .chap-media { margin: 0; }
.chap-portrait .chap-media img { aspect-ratio: 4 / 5; max-height: none; }
.chap-main .chap-text { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line-soft); max-width: 720px; }
.chap-aside--row { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }

/* ---------- Frise des sept âges ---------- */
.chro-ages { background: var(--ink); }
.tl { position: relative; padding: clamp(60px, 7vw, 100px) 0 1px var(--rail); }
.tl-spine {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--spine);
  width: 1px;
  background: var(--line-soft);
}
.tl-spine i {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--tl-p, 0) * 100%);
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-light));
}
.tl-age { position: relative; scroll-margin-top: calc(var(--header-h) + var(--parts-h) + 64px); }
.tl-age-head { position: relative; max-width: 760px; margin-bottom: clamp(50px, 6vw, 80px); padding-top: 6px; }
.tl-num {
  position: absolute;
  top: 0;
  left: calc(var(--spine) - var(--rail) - 35px);
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #26221c, var(--ink) 70%);
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 7px var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
}
.tl-when {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.tl-age-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 12px;
}
.tl-age-head p:last-child { font-size: 19px; line-height: 1.6; color: var(--cream-2); }
/* Le titre d'un récit est d'un cran sous celui de l'âge */
.tl .chap-title { font-size: clamp(26px, 2.6vw, 38px); }
.chap-mark {
  position: absolute;
  top: 34px;
  left: calc(var(--spine) - var(--rail) - 7px);
  width: 14px; height: 14px;
  border: 1px solid var(--gold-light);
  background: var(--ink);
  transform: rotate(45deg);
  z-index: 2;
}
.chap[data-kind="bataille"] .chap-mark { background: var(--madder); border-color: var(--madder-light); }
.chap[data-kind="epreuve"] .chap-mark { background: #6f7f8f; border-color: #b9c4cf; }
.chaps .chap-mark { display: none; }

/* ---------- Fonds peints ---------- */
/* L'image reste en place pendant que le contenu de la section défile. */
.sec-bgwrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sec-bg { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; object-fit: cover; }
.chro-prologue > .container, .age-cover > .container, .part-cover > .container { position: relative; z-index: 2; }

.chro-prologue {
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10, 10, 11, .08), rgba(10, 10, 11, .24)),
    url("../assets/img/chroniques/chro-hero.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.chro-prologue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, .36), rgba(10, 10, 11, .06) 20%, rgba(10, 10, 11, .06) 80%, rgba(10, 10, 11, .45));
}
.chro-prologue .prologue {
  padding: clamp(36px, 4.4vw, 64px) clamp(24px, 4.4vw, 64px);
  background: rgba(10, 10, 11, .36);
  backdrop-filter: blur(1px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}

/* Ouverture de chaque âge : panorama plein écran */
.chro-ages-intro { padding-top: clamp(90px, 11vw, 150px); }
.chro-ages-intro .chro-head { margin-bottom: clamp(40px, 5vw, 64px); }
.age-cover {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(120px, 16vh, 180px) 0 clamp(60px, 9vh, 100px);
  overflow: hidden;
  isolation: isolate;
}
.age-cover .sec-bg { position: absolute; inset: 0; height: 100%; }
.age-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, .88) 0%, rgba(10, 10, 11, .55) 38%, rgba(10, 10, 11, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 22%, rgba(10, 10, 11, 0) 62%, var(--ink) 100%);
}
.age-cover .tl-age-head { max-width: 680px; margin: 0; padding: 0; background: none; }
.age-cover .tl-num { position: static; margin: 0 0 24px; width: 84px; height: 84px; font-size: 28px; box-shadow: 0 0 0 7px rgba(10, 10, 11, .6), 0 0 0 8px var(--line); }
.age-cover .tl-age-head h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.05; text-shadow: 0 3px 30px rgba(0, 0, 0, .7); }
.age-cover .tl-age-head p:last-child { font-size: clamp(19px, 1.5vw, 23px); color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }

/* Ouverture des lieux, des peuples et de la mémoire */
.chro-part { position: relative; scroll-margin-top: calc(var(--header-h) + var(--parts-h)); border-top: 1px solid var(--line-soft); }
.part-cover {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 14vh, 160px) 0;
  margin-bottom: clamp(70px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.part-cover .sec-bg { position: absolute; inset: 0; height: 100%; }
.part-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 55% at 50% 50%, rgba(10, 10, 11, .78) 0%, rgba(10, 10, 11, .4) 65%, rgba(10, 10, 11, .15) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 20%, rgba(10, 10, 11, 0) 75%, var(--ink) 100%);
}
.part-cover .chro-head { margin-bottom: 0; }
.part-cover .chro-head h2 { font-size: clamp(40px, 5vw, 74px); text-shadow: 0 3px 30px rgba(0, 0, 0, .7); }
.part-cover .chro-head p { color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }

/* ---------- Le premier jour ---------- */
.chro-outro { position: relative; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h) + var(--parts-h)); }
.chro-outro-top {
  min-height: 86vh;
  min-height: 86svh;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 20px 90px;
}
.chro-outro-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10, 10, 11, .7) 0%, rgba(10, 10, 11, .45) 60%, rgba(10, 10, 11, .25) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 11, 0) 20%, rgba(10, 10, 11, 0) 75%, var(--ink) 100%);
}
.chro-outro-copy { max-width: 780px; }
.chro-outro .eyebrow { color: var(--gold-light); }
.chro-outro h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
  margin-bottom: 18px;
}
.chro-outro-lead { font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.chro-outro-text { max-width: 720px; margin: 0 auto; padding: clamp(50px, 6vw, 80px) 0 clamp(90px, 10vw, 130px); }
.chro-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 44px 0 40px;
  padding: 22px 26px;
  background: rgba(196, 154, 92, .05);
  border: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--cream-2);
}
.chro-log strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.chro-log .is-blank { color: var(--muted); font-style: italic; }
.chro-outro-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Réglages dans la colonne de contenu ---------- */
.chro-main .age-cover { min-height: 58vh; min-height: 58svh; padding-top: clamp(90px, 12vh, 140px); }
.chro-main .part-cover { min-height: 56vh; min-height: 56svh; margin-bottom: clamp(50px, 6vw, 90px); }
.chro-main .chro-outro-top { min-height: 64vh; min-height: 64svh; }
.chro-main .chap-body { grid-template-columns: minmax(0, 720px); }
.chro-main .chap-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; }
.chro-main .chap-aside > :only-child { grid-column: 1 / -1; }
.chro-main .chro-prologue { padding-top: clamp(50px, 6vw, 80px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chap-body { grid-template-columns: 1fr; }
  .chap-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .chap-aside > :only-child { grid-column: 1 / -1; }
  .chap--portrait { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
  .chap-aside--row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .page-chroniques { --rail: 46px; --spine: 14px; }
  .tl-num { width: 48px; height: 48px; font-size: 16px; left: calc(var(--spine) - var(--rail) - 24px); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--line); }
  .tl-age-head { padding-top: 60px; }
  .age-cover .tl-age-head { padding-top: 0; }
  .age-cover { min-height: 70vh; }
  .chap-mark { top: 22px; }
  .chap-media img { aspect-ratio: 16 / 10; }
  .chap--portrait { grid-template-columns: 1fr; }
  .chap-portrait { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  .rbar-toc span:last-child { display: none; }
  .rbar-toc { padding: 0 11px; }
  .rbar-group { display: none; }
  .resume { right: 16px; bottom: 16px; }
  .chap-aside { grid-template-columns: 1fr; }
  .chap-block p { font-size: 17.5px; }
  .chro-outro-ctas { flex-direction: column; align-items: stretch; }
}
