/* ============================================================
   LÉON BOURJADE — « Entre deux ciels »
   Direction artistique : parchemin, nuit d'aviation, or antique.
   ============================================================ */

:root {
  --ink: #191410;
  --ink-soft: #4a3f34;
  --paper: #f1e9d8;
  --paper-2: #e7ddc6;
  --paper-3: #efe6d3;
  --night: #0d1b26;
  --night-2: #091319;
  --night-3: #142736;
  --gold: #b78a4e;
  --gold-bright: #d8b877;
  --gold-deep: #8a6733;
  --blood: #7c2a25;
  --line-dark: rgba(215, 184, 120, 0.26);
  --line-light: rgba(70, 50, 25, 0.18);

  --f-display: 'Fraunces', Georgia, serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---- Grain filmique ---- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- Barre de progression ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 8000; pointer-events: none;
  background: rgba(0,0,0,0.06);
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

/* ---- Kickers / labels ---- */
.kicker {
  font-family: var(--f-sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 1.4rem;
}
.kicker--gold { color: var(--gold); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 60px);
  color: var(--paper);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(23, 18, 13, 0.92);
  padding-top: 16px; padding-bottom: 16px;
  box-shadow: 0 1px 0 var(--line-dark);
  backdrop-filter: blur(6px);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mono {
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.1em;
  width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold-bright);
}
.nav__name { font-family: var(--f-display); font-size: 18px; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 400; opacity: 0.82; transition: opacity 0.3s, color 0.3s;
}
.nav__links a span { color: var(--gold-bright); margin-right: 6px; font-style: italic; }
.nav__links a:hover { opacity: 1; color: var(--gold-bright); }
.nav__dates { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.24em; opacity: 0.7; }
.nav__alt { color: var(--gold-bright); opacity: 1; }
.nav__alt.is-active { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
/* Lien vers les carnets depuis le récit */
.carnets-link { color: var(--gold-deep); border-bottom: 1px solid rgba(183,138,78,0.5); }
.chapter--pilote .carnets-link, .therese .carnets-link { color: var(--gold-bright); border-bottom-color: rgba(216,184,120,0.5); }
.carnets-link:hover { border-bottom-color: currentColor; }

/* ============ HERO ============ */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--night-2);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: -4%;
  background: url("../img/escadrille-1918.jpg") center 35% / cover no-repeat;
  filter: grayscale(0.4) sepia(0.35) contrast(1.05) brightness(0.72);
  transform: scale(1.06); animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.16) translateY(-2%); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 100%, rgba(13,27,38,0.15), rgba(9,15,20,0.9) 78%),
    linear-gradient(180deg, rgba(9,15,20,0.72) 0%, rgba(9,15,20,0.05) 26%, rgba(9,15,20,0.35) 62%, rgba(9,15,20,0.95) 100%),
    linear-gradient(90deg, rgba(18,39,54,0.55), rgba(124,42,37,0.10));
  mix-blend-mode: normal;
}
.hero__inner {
  position: relative; z-index: 2; color: var(--paper);
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(70px, 12vh, 130px);
}
.hero__kicker {
  font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 1.8rem;
}
.hero__kicker i { color: var(--paper); opacity: 0.5; font-style: normal; }
.hero__title { margin: 0; line-height: 0.86; font-weight: 300; }
.hero__title span { display: block; font-family: var(--f-display); }
.hero__title span:first-child {
  font-size: clamp(3.4rem, 11vw, 9rem); font-weight: 300; letter-spacing: 0.02em; color: var(--paper);
}
.hero__title--script {
  font-style: italic; font-weight: 400;
  font-size: clamp(4.4rem, 15vw, 12.5rem);
  color: var(--gold-bright); margin-left: -0.03em !important;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero__tag {
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--paper);
  margin: 2.2rem 0 1.2rem;
}
.hero__sub {
  font-family: var(--f-sans); font-weight: 300; font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.7; color: rgba(241,233,216,0.72); max-width: 40ch;
}
.hero__scroll {
  position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(241,233,216,0.7);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold-bright), transparent); animation: scrolldot 2.4s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ SECTIONS communes ============ */
section { position: relative; }
.chapter__head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,60px); }
.chapter__head--center, .prose--center { text-align: center; }
.chapter__head--center { display: flex; flex-direction: column; align-items: center; }

h2 {
  font-family: var(--f-display); font-weight: 340; letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; margin: 0.3rem 0 0;
}
h2 em { font-style: italic; color: var(--gold-deep); }

.numeral {
  display: block; font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: var(--gold);
  opacity: 0.6; margin-bottom: 0.4rem;
}

.prose { max-width: 62ch; margin: 2.4rem auto 0; font-size: 1.16rem; }
.prose--center { max-width: 56ch; }
.prose p { margin: 0 0 1.3rem; }
.prose strong { font-weight: 600; }

.dropcap {
  float: left; font-family: var(--f-display); font-weight: 300; font-size: 4.6rem;
  line-height: 0.72; padding: 0.1em 0.12em 0 0; color: var(--gold-deep);
}

.lead { font-size: 1.32rem; line-height: 1.6; }

blockquote { margin: 0; }
.pull {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; color: var(--gold-deep);
  margin: 2.6rem 0 0; position: relative; padding-left: 1.4rem;
}
.pull::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 2px; background: var(--gold); }
.pull--sm { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* ---- Cadres photo (grading unifié) ---- */
.plate { position: relative; margin: 0; }
.plate img {
  width: 100%; border: 1px solid var(--line-light);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55);
  filter: grayscale(0.18) sepia(0.24) contrast(1.05) brightness(0.98) saturate(0.9);
}
.plate__cap, .plate figcaption {
  font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.72; margin-top: 14px; text-align: center;
}

/* ============ OUVERTURE ============ */
.opener { padding: clamp(90px, 15vh, 170px) clamp(20px,5vw,60px); }
.opener__grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.portrait { position: relative; }
.portrait__frame {
  position: relative; border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
  overflow: hidden; border: 1px solid var(--gold);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6), inset 0 0 0 8px rgba(241,233,216,0.5);
  aspect-ratio: 4/5;
}
.portrait__frame::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(183,138,78,0.5);
  border-radius: inherit; mix-blend-mode: overlay;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.28) sepia(0.28) contrast(1.06) brightness(1.02); }
.portrait figcaption {
  font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.7; text-align: center; margin-top: 18px;
}

/* Diptyque de l'ouverture — les deux visages */
.diptych {
  max-width: 900px; margin: 0 auto clamp(46px, 7vh, 90px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 40px);
}
.diptych__panel {
  position: relative; overflow: hidden; aspect-ratio: 625 / 855; background: var(--paper-2);
  border: 1px solid var(--gold);
  box-shadow: 0 40px 90px -46px rgba(0,0,0,0.58), inset 0 0 0 6px rgba(241,233,216,0.55);
}
.diptych__panel img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(0.12) sepia(0.18) contrast(1.05) brightness(1.02);
}
.diptych figcaption {
  grid-column: 1 / -1;
  font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.78; text-align: center; margin-top: 20px;
}
.diptych figcaption i { color: var(--gold); font-style: normal; margin: 0 4px; }
.opener__text--center { max-width: 660px; margin: 0 auto; text-align: center; }
.opener__text--center .lead { font-size: 1.28rem; }
.pull--center { padding-left: 0; text-align: center; margin-top: 2.2rem; }
.pull--center::before { display: none; }

/* ============ CHAPITRE — base ============ */
.chapter { padding: clamp(90px, 16vh, 200px) 0; overflow: hidden; }
.chapter .chapter__body,
.chapter .plate,
.chapter .callout,
.chapter .chapter__foot,
.chapter .prose,
.chapter .tree,
.chapter .pretre__grid { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: clamp(20px,5vw,60px); padding-right: clamp(20px,5vw,60px); }

/* ---- I. LE PILOTE (nuit) ---- */
.chapter--pilote { background: var(--night); color: var(--paper); }
.chapter--pilote .chapter__bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    radial-gradient(80% 50% at 80% 0%, rgba(124,42,37,0.18), transparent 60%),
    radial-gradient(60% 40% at 10% 90%, rgba(30,60,84,0.5), transparent 70%);
}
.chapter--pilote > * { position: relative; z-index: 1; }
.chapter--pilote h2 { color: var(--paper); }
.chapter--pilote h2 em { color: var(--gold-bright); }
.chapter--pilote .prose { color: rgba(241,233,216,0.86); }
.chapter--pilote .prose strong { color: var(--paper); }
.chapter--pilote .plate img { filter: grayscale(0.3) sepia(0.3) contrast(1.08) brightness(0.82) saturate(0.85); border-color: var(--line-dark); }
.chapter--pilote .plate__cap { color: rgba(241,233,216,0.6); }
.chapter--pilote .pull { color: var(--gold-bright); }

.chapter__body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px,6vw,90px); align-items: center; margin-top: 3.6rem; }
.chapter__body .prose { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stat { background: var(--night); padding: 30px 24px; text-align: center; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--gold-bright); }
.stat__lbl { display: block; font-family: var(--f-sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(241,233,216,0.62); margin-top: 10px; }

.plate { margin-top: clamp(50px, 8vh, 100px); }
.plate--side { margin-top: 0; }

.callout {
  margin-top: clamp(50px, 8vh, 100px); text-align: center; max-width: 720px !important;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  padding-top: 40px; padding-bottom: 40px;
}
.callout__mark { color: var(--gold-bright); font-size: 1.2rem; margin: 0 0 1rem; letter-spacing: 0.4em; }
.callout__text { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem,2.2vw,1.6rem); line-height: 1.5; margin: 0; color: rgba(241,233,216,0.92); }
.callout__text strong { font-style: normal; color: var(--gold-bright); font-weight: 500; }

.chapter__foot { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: center; margin-top: clamp(50px,8vh,100px); }
.honors__list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.honors__list li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
.honors__list li span { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.1em; color: var(--gold-bright); min-width: 46px; padding-top: 4px; }

/* ---- II. LE PRÊTRE (sacré / clair) ---- */
.chapter--pretre { background: linear-gradient(180deg, #f6efdf, #efe4cd); color: var(--ink); }
.chapter--pretre::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 0%, rgba(216,184,120,0.28), transparent 65%);
}
.chapter--pretre > * { position: relative; z-index: 1; }
.pretre__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,90px); align-items: center; margin-top: 3.6rem; }
.pretre__grid .prose { margin: 0; }
.plate--tall img { aspect-ratio: 3/4; object-fit: cover; }
.plate--wide { margin-top: clamp(50px,8vh,100px); }
.plate--wide img { aspect-ratio: 16/8; object-fit: cover; }
.epitaph {
  max-width: 820px; margin: clamp(60px,9vh,120px) auto 0; text-align: center;
  padding: 0 clamp(20px,5vw,60px);
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.32; color: var(--gold-deep);
}

/* ---- INTERLUDE — THÉRÈSE (pénombre de chapelle) ---- */
.therese {
  position: relative; overflow: hidden; text-align: center; color: var(--paper);
  background: radial-gradient(120% 100% at 50% 0%, #221913 0%, #100a06 62%);
  padding: clamp(90px, 16vh, 190px) clamp(20px, 5vw, 60px);
}
.therese__glow {
  position: absolute; top: -14%; left: 50%; transform: translateX(-50%);
  width: min(860px, 95%); height: 540px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216,184,120,0.18), transparent 72%);
}
.therese__inner { position: relative; max-width: 920px; margin: 0 auto; }
.therese .kicker { color: var(--gold); }
.therese h2 { color: var(--paper); font-weight: 340; margin-top: 0.5rem; }
.therese h2 em { color: var(--gold-bright); font-style: italic; }

.bigquote { margin: clamp(44px, 7vh, 84px) auto 0; max-width: 800px; }
.bigquote__mark { display: block; font-family: var(--f-display); font-size: 7rem; line-height: 0.3; height: 0.42em; color: var(--gold); opacity: 0.55; }
.bigquote blockquote {
  margin: 0; font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.6rem); line-height: 1.34; color: var(--paper);
}
.bigquote figcaption {
  margin-top: 1.6rem; font-family: var(--f-sans); font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-bright);
}
.bigquote figcaption::before { content: "— "; }
.therese__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px);
  margin-top: clamp(50px, 8vh, 96px); text-align: left;
}
.therese__cols p { margin: 0; font-family: var(--f-serif); font-size: 1.16rem; color: rgba(241,233,216,0.82); }
.therese__cols strong { color: var(--gold-bright); font-weight: 500; }
@media (max-width: 820px) { .therese__cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---- III. LA FAMILLE (parchemin) ---- */
.chapter--famille { background: var(--paper); }
.chapter--famille .chapter__bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.10; pointer-events: none;
  background: url("../img/montauban.jpg") center / cover no-repeat; filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
          mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
}
.chapter--famille > * { position: relative; z-index: 1; }

/* Généalogie */
.tree { text-align: center; margin-top: clamp(50px,8vh,100px); }
.tree__couple { display: inline-flex; align-items: center; gap: clamp(24px,5vw,70px); }
.tree__person { text-align: center; }
.tree__role { display: block; font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.tree__name { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 360; }
.tree__amp { font-family: var(--f-serif); font-style: italic; font-size: 2rem; color: var(--gold); }
.tree__stem { width: 1px; height: 46px; background: var(--gold); margin: 22px auto 0; }
.tree__label { font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0; }
.tree__branch { width: min(78%, 760px); height: 1px; background: var(--gold); margin: 0 auto; position: relative; }
.tree__children { display: flex; justify-content: center; gap: clamp(20px,5vw,64px); margin-top: 0; padding-top: 26px; flex-wrap: wrap; }
.tree__child { position: relative; padding-top: 26px; min-width: 90px; color: var(--ink-soft); font-family: var(--f-serif); font-size: 1.4rem; }
.tree__dot { position: absolute; top: -1px; left: 50%; transform: translate(-50%,-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); }
.tree__child::before { content: ""; position: absolute; top: -26px; left: 50%; width: 1px; height: 26px; background: var(--gold); }
.tree__dot--gold { background: var(--gold); width: 13px; height: 13px; box-shadow: 0 0 0 4px rgba(183,138,78,0.2); }
.tree__child--hero .tree__name { display: block; font-family: var(--f-display); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 400; color: var(--ink); font-style: italic; }
.tree__child .tree__name { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); }
.tree__sub { display: block; font-family: var(--f-sans); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-top: 8px; }

/* ============ CHRONOLOGIE ============ */
.timeline-sec { background: var(--night); color: var(--paper); padding: clamp(90px,16vh,190px) clamp(20px,5vw,60px); }
.timeline-sec .kicker { color: var(--gold-bright); }
.timeline-sec h2 { color: var(--paper); }
.timeline-sec h2 em { color: var(--gold-bright); }
.timeline { list-style: none; max-width: 900px; margin: clamp(50px,8vh,90px) auto 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--line-dark); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 44px 44px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 44px 44px; text-align: left; }
.timeline__year { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--gold-bright); display: block; margin-bottom: 6px; }
.timeline li p { margin: 0; font-family: var(--f-serif); font-size: 1.18rem; color: rgba(241,233,216,0.82); }
.timeline__node { position: absolute; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1px solid var(--gold); }
.timeline li .timeline__node { right: -5.5px; }
.timeline li:nth-child(even) .timeline__node { left: -5.5px; right: auto; }
.timeline--star .timeline__node, .timeline--end .timeline__node { background: var(--gold-bright); box-shadow: 0 0 0 5px rgba(216,184,120,0.18); }
.timeline--end .timeline__year { color: var(--blood); }

/* ============ ÉPILOGUE ============ */
.epilogue {
  min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    linear-gradient(rgba(9,15,20,0.78), rgba(9,15,20,0.92)),
    url("../img/spad-front.jpg") center / cover fixed no-repeat;
  color: var(--paper); padding: 100px clamp(20px,5vw,60px);
}
.epilogue__inner { max-width: 720px; }
.epilogue h2 { color: var(--paper); font-style: italic; font-weight: 300; font-size: clamp(2.6rem,7vw,5.4rem); }
.epilogue__text { font-family: var(--f-serif); font-size: clamp(1.15rem,2.2vw,1.5rem); line-height: 1.6; color: rgba(241,233,216,0.82); margin: 2rem auto 3rem; }
.epilogue__sig { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0.02em; }
.epilogue__sig span { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.3em; color: var(--gold-bright); }

/* ============ FOOTER ============ */
.footer { background: var(--night-2); color: rgba(241,233,216,0.6); text-align: center; padding: 70px 20px; }
.footer__mono { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--gold); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.footer p { margin: 0.4rem 0; font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.06em; }
.footer__src { font-size: 11px !important; opacity: 0.6; letter-spacing: 0.1em; margin-top: 1.4rem !important; }

/* ============ RÉVÉLATION AU DÉFILEMENT ============ */
/* Progressive enhancement : masqué seulement si JS actif (sinon tout est visible). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.15s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; }
}

/* ============ PAGE — LES CARNETS ============ */
.carnet-hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--paper);
  background: radial-gradient(120% 100% at 50% 0%, #1b2a3a 0%, var(--night-2) 66%);
  padding: 120px clamp(20px, 5vw, 60px) 90px;
}
.carnet-hero__inner { max-width: 760px; }
.carnet-hero .kicker { color: var(--gold-bright); }
.carnet-hero .kicker i { color: var(--paper); opacity: 0.5; font-style: normal; }
.carnet-hero h1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98; margin: 0.4rem 0 0; letter-spacing: 0.01em; }
.carnet-hero h1 em { font-style: italic; color: var(--gold-bright); }
.carnet-hero .lead { color: rgba(241,233,216,0.8); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.62; max-width: 620px; margin: 2rem auto 0; font-family: var(--f-serif); }
.carnet-hero .hero__scroll { position: static; transform: none; margin: 3rem auto 0; }

.journal-sec { background: var(--paper); padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 60px); }
.journal { max-width: 760px; margin: 0 auto; position: relative; }
.journal::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 90px; width: 1px; background: linear-gradient(var(--gold), rgba(183,138,78,0.12)); }

.entry { position: relative; padding-left: 48px; margin-bottom: clamp(46px, 8vh, 82px); }
.entry__node { position: absolute; left: 1px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); }
.entry__node--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(183,138,78,0.16); }
.entry__date { display: block; font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.entry__place { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.entry__note { font-family: var(--f-serif); font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1rem; }
.entry__note em { font-style: italic; color: var(--ink); }

.voice {
  margin: 1.1rem 0 0; padding: 24px 28px; position: relative;
  background: #faf4e6; border-left: 2px solid var(--gold); border-radius: 3px;
  box-shadow: 0 26px 50px -34px rgba(50,35,15,0.5);
}
.voice p { margin: 0 0 0.85em; font-family: var(--f-serif); font-style: italic; font-size: 1.28rem; line-height: 1.5; color: var(--ink); }
.voice p:last-child { margin-bottom: 0; }
.voice p b { font-style: normal; font-weight: 600; color: var(--gold-deep); margin-right: 4px; }
.voice--grand { background: none; border: 0; box-shadow: none; padding: 6px 0; text-align: center; }
.voice--grand p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--gold-deep); }

.journal__divider { text-align: center; color: var(--gold); letter-spacing: 0.7em; font-size: 0.8rem; margin: clamp(40px, 7vh, 80px) 0 0; opacity: 0.7; }
.journal__sub { text-align: center; font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); margin: 1.6rem 0 clamp(46px, 8vh, 82px); }
.journal__back { padding-left: 48px; margin-top: clamp(40px, 6vh, 70px); }
.journal__back a { font-family: var(--f-sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid rgba(183,138,78,0.4); padding-bottom: 3px; }
.journal__back a:hover { border-bottom-color: var(--gold-deep); }

/* ============ ARCHIVES ============ */
.archives { background: var(--paper-2); padding: clamp(90px, 16vh, 190px) clamp(20px, 5vw, 60px); }
.archive-grid {
  max-width: 600px; margin: clamp(50px, 8vh, 90px) auto 0;
  display: grid; grid-template-columns: 1fr; gap: clamp(50px, 9vh, 90px);
}
.doc { margin: 0; }
.doc img {
  width: 100%; background: #fff; border: 1px solid var(--line-light);
  box-shadow: 0 34px 64px -36px rgba(50,35,15,0.5); filter: sepia(0.05) contrast(1.02);
}
.doc--cut img { background: none; border: 0; box-shadow: none; filter: drop-shadow(0 26px 34px rgba(50,35,15,0.32)); }
.doc figcaption {
  font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.78; text-align: center; margin-top: 14px; line-height: 1.55;
}
.posterite { max-width: 720px; margin: clamp(60px, 9vh, 110px) auto 0; text-align: center; }
.posterite p:not(.kicker) {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--gold-deep); margin: 0;
}
.posterite strong { font-style: normal; font-weight: 500; color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .nav__name, .nav__dates { display: none; }
  .nav__links { gap: 20px; }
  .opener__grid, .chapter__body, .chapter__foot, .pretre__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 7px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; text-align: left; padding: 0 0 40px 40px; }
  .timeline li .timeline__node, .timeline li:nth-child(even) .timeline__node { left: 1.5px; right: auto; }
  .tree__couple { flex-direction: column; gap: 16px; }
  .tree__children { gap: 24px; }
  .entry, .journal__back { padding-left: 32px; }
  .voice { padding: 20px 20px; }
  .diptych { grid-template-columns: 1fr; max-width: 380px; gap: 26px; }
}
@media (max-width: 520px) {
  .hero__title--script { font-size: 22vw; }
  .nav__links a span { display: none; }
  .stat { padding: 22px 12px; }
}
