/* ==========================================================================
   Anne-Marie de Couvreur — site officiel
   Direction artistique : minimalisme éditorial. Blanc cassé, noir profond,
   gris chaud, beige doux ; bleu nuit et or du logo en accents discrets.
   Typographie : Fraunces (titres) · Instrument Sans (texte, interface)
   ========================================================================== */

:root {
  --paper: #F8F7F4;
  --ink: #171717;
  --stone: #77736D;
  --sand: #E8E2D9;
  --sand-2: #F0ECE5;
  --navy: #0E1F3B;
  --gold: #B89462;
  --line: rgba(23, 23, 23, 0.14);
  --line-soft: rgba(23, 23, 23, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25em; }
strong { font-weight: 600; }
figure { margin: 0; }
::selection { background: var(--sand); color: var(--ink); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 999; font-size: .85rem; }
.skip:focus { top: 16px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.2vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h4 { font-size: 1.25rem; line-height: 1.25; }
em, .it { font-style: italic; }
h1 em, h2 em, h3 em { font-weight: 300; }

.display { font-size: clamp(3.6rem, 10.5vw, 10rem); line-height: .92; letter-spacing: -0.03em; font-weight: 300; }
.lead { font-family: var(--serif); font-variation-settings: "opsz" 40; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.45; font-weight: 300; color: var(--ink); }
.small { font-size: .9rem; }
.muted { color: var(--stone); }
.label {
  display: inline-block; font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.25rem;
}
.label .n { color: var(--gold); margin-right: .9em; font-variant-numeric: tabular-nums; }
.prose { max-width: 62ch; }
.prose p { font-size: 1.05rem; line-height: 1.8; }
.prose p + h3, .prose p + h4 { margin-top: 2.4em; }
.prose.light p { color: var(--stone); }

.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); row-gap: 0; }
.c1 { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .c-1-5 { grid-column: 1 / 6; } .c-1-6 { grid-column: 1 / 7; } .c-1-7 { grid-column: 1 / 8; } .c-1-8 { grid-column: 1 / 9; }
  .c-2-6 { grid-column: 2 / 7; } .c-2-7 { grid-column: 2 / 8; } .c-3-11 { grid-column: 3 / 12; } .c-4-12 { grid-column: 4 / 13; }
  .c-6-13 { grid-column: 6 / 13; } .c-7-13 { grid-column: 7 / 13; } .c-8-13 { grid-column: 8 / 13; } .c-5-13 { grid-column: 5 / 13; }
  .c-7-12 { grid-column: 7 / 12; } .c-3-9 { grid-column: 3 / 10; } .c-1-4 { grid-column: 1 / 5; } .c-5-12 { grid-column: 5 / 12; }
}

/* Liens & boutons */
.arrow-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0;
}
.arrow-link .ln { display: inline-block; width: 36px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.arrow-link .ln::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow-link:hover .ln { width: 56px; }
.arrow-link.light { color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); cursor: pointer; font-family: var(--sans);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.u { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--gold); }
.u:hover { text-decoration-color: var(--ink); }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.hr.gold { background: var(--gold); width: 48px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  transition: box-shadow .4s, background .4s;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-soft); opacity: 0; transition: opacity .4s; }
.site-header.scrolled::after { opacity: 1; }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; }
.logo img { height: 42px; width: auto; mix-blend-mode: multiply; }

.nav-inline { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-inline a {
  position: relative; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding: 10px 0;
}
.nav-inline a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-inline a:hover::after, .nav-inline a[aria-current="page"]::after { transform: scaleX(1); }
.nav-inline .sep { width: 1px; height: 18px; background: var(--line); }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .4s, color .4s, border-color .4s; }
.icon-link svg { width: 15px; height: 15px; fill: currentColor; }
.icon-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; padding: 10px 0;
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.menu-btn .lines { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-btn .lines i { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease), width .4s var(--ease); }
.menu-btn .lines i:last-child { width: 70%; }
.menu-btn:hover .lines i:last-child { width: 100%; }

/* Menu plein écran */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: grid; grid-template-rows: var(--header-h) 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.menu-overlay .top { display: flex; align-items: center; justify-content: space-between; }
.menu-overlay .top .logo img { filter: grayscale(1) invert(1) brightness(1.6); mix-blend-mode: screen; }
.menu-overlay .close { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--paper); cursor: pointer; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0; }
.menu-overlay .close .x { position: relative; width: 22px; height: 22px; }
.menu-overlay .close .x::before, .menu-overlay .close .x::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu-overlay .close .x::after { transform: rotate(-45deg); }
.menu-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; overflow: auto; padding: 24px 0; }
.menu-list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-list li { border-top: 1px solid rgba(248,247,244,.12); }
.menu-list li:last-child { border-bottom: 1px solid rgba(248,247,244,.12); }
.menu-list a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 20px;
  padding: clamp(10px, 1.6vh, 18px) 0; font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.1; color: var(--paper);
  transform: translateX(0); transition: transform .5s var(--ease), color .4s;
}
.menu-list a::before { counter-increment: m; content: counter(m, decimal-leading-zero); font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; color: var(--gold); }
.menu-list a .sub { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(248,247,244,.5); }
.menu-list a:hover { transform: translateX(12px); font-style: italic; }
.menu-aside { border-left: 1px solid rgba(248,247,244,.12); padding-left: 40px; }
.menu-aside img { width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(100%) contrast(1.05); opacity: .9; }
.menu-aside p { margin: 1.4rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: rgba(248,247,244,.8); max-width: 30ch; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; padding: 24px 0 32px; border-top: 1px solid rgba(248,247,244,.12); font-size: .82rem; color: rgba(248,247,244,.7); }
.menu-foot a:hover { color: var(--paper); }
@media (max-width: 980px) {
  .nav-inline { display: none; }
  .menu-body { grid-template-columns: 1fr; align-content: start; }
  .menu-aside { display: none; }
}
@media (max-width: 600px) { .logo img { height: 34px; } :root { --header-h: 68px; } .menu-btn .txt { display: none; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.site-footer h5 { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a:hover { color: var(--stone); }
.site-footer .name { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; line-height: 1.15; margin: 10px 0 14px; }
.site-footer .tag { color: var(--stone); max-width: 32ch; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .74rem; color: var(--stone); letter-spacing: .04em; }
.site-footer .legal a:hover { color: var(--ink); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
main { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section.sand { background: var(--sand-2); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark .lead { color: var(--paper); }
.section.dark .label { color: rgba(248,247,244,.55); }
.section.dark .prose p { color: rgba(248,247,244,.78); }
.section.navy { background: var(--navy); color: var(--paper); }
.section.navy h2, .section.navy h3, .section.navy .lead { color: var(--paper); }
.section.navy .label { color: rgba(248,247,244,.6); }
.section.navy .prose p { color: rgba(248,247,244,.8); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p.intro { margin: 0; max-width: 48ch; color: var(--stone); font-size: 1rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Apparition */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  main { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Accueil : ouverture ---------- */
.hero {
  position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(60px, 8vw, 110px);
}
.hero .grid { row-gap: 0; align-items: start; }
.hero-over { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 56px); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.hero-title { grid-column: 1 / 9; grid-row: 2; position: relative; z-index: 2; margin: clamp(10px, 3vw, 50px) 0 0; }
.hero-title .display { margin: 0; }
.hero-title .display em { display: block; padding-left: clamp(0px, 8vw, 150px); }
.hero-fig { grid-column: 7 / 13; grid-row: 2 / 4; position: relative; }
.hero-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 18%; }
.hero-fig figcaption { position: absolute; left: 0; bottom: -28px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.hero-intro { grid-column: 1 / 6; grid-row: 3; align-self: end; padding-top: clamp(30px, 5vw, 70px); max-width: 44ch; }
.hero-intro p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.hero-intro .btn-row { margin-top: 2rem; gap: 14px 34px; }
.hero-book { grid-column: 1 / 6; grid-row: 4; display: flex; align-items: center; gap: 22px; margin-top: clamp(40px, 6vw, 90px); padding-top: 26px; border-top: 1px solid var(--line); max-width: 480px; }
.hero-book img { width: 64px; flex: 0 0 auto; }
.hero-book .t { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.hero-book .s { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }
@media (max-width: 899px) {
  .hero-title { grid-column: 1 / -1; grid-row: auto; }
  .hero-title .display em { padding-left: 0; }
  .hero-fig { grid-column: 1 / -1; grid-row: auto; margin-top: 28px; }
  .hero-fig img { aspect-ratio: 4 / 5; }
  .hero-intro, .hero-book { grid-column: 1 / -1; grid-row: auto; }
}

/* Index éditorial des entreprises (liste) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li a {
  display: grid; grid-template-columns: 70px 1.1fr 1.2fr auto; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease);
}
.index-list .n { font-size: .72rem; letter-spacing: .16em; color: var(--gold); }
.index-list .name { font-family: var(--serif); font-variation-settings: "opsz" 96; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; line-height: 1; }
.index-list .desc { color: var(--stone); font-size: .98rem; max-width: 40ch; }
.index-list .yr { font-size: .74rem; letter-spacing: .14em; color: var(--stone); }
.index-list li a:hover { padding-left: 14px; }
.index-list li a:hover .name { font-style: italic; }
@media (max-width: 760px) { .index-list li a { grid-template-columns: 44px 1fr; } .index-list .desc { grid-column: 2; } .index-list .yr { grid-column: 2; } }

/* Mise en scène du livre (accueil) */
.book-stage { position: relative; }
.book-stage .backdrop { position: absolute; left: 0; top: 10%; width: 78%; height: 86%; background: var(--sand); z-index: 0; }
.book-stage img { position: relative; z-index: 1; width: 72%; margin-left: 14%; box-shadow: 0 24px 50px -30px rgba(23,23,23,.45); }

/* Journal / actualité à la une */
.news-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.news-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-feature .date { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; line-height: 1; margin-bottom: 1rem; }
.news-feature .date small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
@media (max-width: 860px) { .news-feature { grid-template-columns: 1fr; } }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news-list .d { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.news-list h3 { font-size: 1.35rem; margin: 0 0 .3em; }
.news-list p { margin: 0; color: var(--stone); font-size: .98rem; max-width: 60ch; }
@media (max-width: 700px) { .news-list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Pages intérieures : ouverture ---------- */
.page-open { padding: clamp(40px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); }
.page-open .grid { align-items: end; }
.page-open h1 { margin: 0; }
.page-open .lead { margin: 0; padding-bottom: 6px; }
.page-open .hr { margin-top: clamp(30px, 4vw, 56px); }
.page-fig { margin-top: 0; }
.page-fig img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.page-fig.tall img { aspect-ratio: 16 / 9; }

/* Blocs éditoriaux asymétriques */
.ed { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); align-items: center; }
.ed + .ed { margin-top: clamp(64px, 9vw, 140px); }
.ed .media { position: relative; }
.ed .media img { width: 100%; object-fit: cover; }
.ed .media .cap { position: absolute; left: 0; bottom: -26px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.ed .text .label { margin-bottom: 1rem; }
.ed .text h2 { margin-bottom: .6em; }
.ed .text .meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: .9rem; margin: 1.6rem 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ed .text .meta dt { color: var(--stone); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.ed .text .meta dd { margin: 0; }
.ed .brand { display: flex; align-items: center; gap: 14px; margin-bottom: 1.2rem; min-height: 44px; }
.ed .brand img { max-height: 44px; width: auto; }
.ed .brand .wm { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; font-weight: 400; }
.ed.a .media { grid-column: 1 / 8; } .ed.a .text { grid-column: 9 / 13; }
.ed.b .media { grid-column: 6 / 13; grid-row: 1; } .ed.b .text { grid-column: 1 / 5; grid-row: 1; }
.ed.c .media { grid-column: 1 / 6; } .ed.c .text { grid-column: 7 / 13; }
.ed.d .media { grid-column: 8 / 13; grid-row: 1; } .ed.d .text { grid-column: 1 / 7; grid-row: 1; }
.ed.a .media img { aspect-ratio: 16 / 10; } .ed.b .media img { aspect-ratio: 4 / 3; } .ed.c .media img { aspect-ratio: 4 / 5; } .ed.d .media img { aspect-ratio: 3 / 4; }
@media (max-width: 899px) {
  .ed .media, .ed .text { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .ed .text { margin-top: 44px; }
  .ed.c .media img, .ed.d .media img { aspect-ratio: 4 / 3; }
}

/* Chapitres biographie */
.chapter { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); padding: clamp(48px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.chapter .ch-num { grid-column: 1 / 3; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1; color: var(--gold); }
.chapter .ch-body { grid-column: 3 / 9; }
.chapter .ch-side { grid-column: 10 / 13; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.chapter .ch-side img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.chapter .ch-side figcaption { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
.chapter.wide .ch-body { grid-column: 3 / 11; }
@media (max-width: 899px) {
  .chapter .ch-num, .chapter .ch-body, .chapter .ch-side { grid-column: 1 / -1; position: static; }
  .chapter .ch-side { margin-top: 32px; max-width: 380px; }
}

/* Citation */
.quote { font-family: var(--serif); font-variation-settings: "opsz" 72; font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.35; margin: 2.4rem 0; padding-left: 28px; border-left: 1px solid var(--gold); text-wrap: pretty; }
.quote cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.quote.center { border: 0; padding: 0; text-align: center; max-width: 30ch; margin-inline: auto; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.25; }
.quote.center cite { margin-top: 1.6rem; }
.section.dark .quote cite, .section.navy .quote cite { color: rgba(248,247,244,.55); }

/* Chronologie */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.timeline li { padding: 28px 28px 28px 0; border-right: 1px solid var(--line-soft); }
.timeline li:last-child { border-right: 0; }
.timeline li + li { padding-left: 28px; }
.timeline .y { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1; margin-bottom: 14px; }
.timeline h4 { margin-bottom: .4em; }
.timeline p { margin: 0; color: var(--stone); font-size: .95rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline li { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0 !important; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* Chiffres */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figures div { border-top: 1px solid var(--line); padding-top: 18px; }
.figures .v { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 300; line-height: 1; }
.figures .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 16px 0 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline; font-size: 1rem; }
.list li::before { content: counter(li, decimal-leading-zero); counter-increment: li; font-size: .72rem; letter-spacing: .14em; color: var(--gold); }
.list { counter-reset: li; }
.list.plain li { grid-template-columns: 1fr; }
.list.plain li::before { display: none; }
.section.dark .list, .section.dark .list li, .section.navy .list, .section.navy .list li { border-color: rgba(248,247,244,.14); }

/* Livre */
.book-open { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); align-items: center; }
.book-open .cover { grid-column: 2 / 6; position: relative; }
.book-open .cover::before { content: ""; position: absolute; inset: -8% -10% 8% 10%; background: var(--sand); z-index: 0; }
.book-open .cover img { position: relative; z-index: 1; width: 100%; box-shadow: 0 30px 60px -36px rgba(23,23,23,.5); }
.book-open .info { grid-column: 7 / 13; }
.book-open .title { font-size: clamp(2.6rem, 5vw, 4.6rem); margin-bottom: .3em; }
.book-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: .92rem; margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-meta dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.book-meta dd { margin: 0; }
@media (max-width: 899px) { .book-open .cover { grid-column: 2 / 12; margin-bottom: 56px; } .book-open .info { grid-column: 1 / -1; } }

.parts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.parts div { padding: 32px 26px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parts .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: var(--gold); line-height: 1; }
.parts h4 { margin: 18px 0 8px; }
.parts p { margin: 0; color: var(--stone); font-size: .95rem; }
@media (max-width: 860px) { .parts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .parts { grid-template-columns: 1fr; } }

.excerpt { font-family: var(--serif); font-variation-settings: "opsz" 24; font-size: 1.22rem; line-height: 1.7; font-weight: 300; }
.excerpt p { margin-bottom: 1.1em; }
.excerpt p::first-letter { } 
.excerpt .sig { font-style: italic; font-size: 1.5rem; margin-top: 2rem; }

/* Vidéo & audio */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(23,23,23,.18); color: var(--paper); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-family: var(--sans); }
.video .play .ring { width: 78px; height: 78px; border: 1px solid rgba(248,247,244,.85); border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease), background .4s; }
.video .play:hover .ring { transform: scale(1.06); background: rgba(248,247,244,.12); }
.video .play .ring svg { width: 20px; height: 20px; fill: var(--paper); margin-left: 3px; }
.video .play .t { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }

.audio { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audio li { display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.audio .pb { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .4s, color .4s; }
.audio .pb:hover { background: var(--ink); color: var(--paper); }
.audio .pb svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.audio .t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.audio .m { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }
.audio .dur { font-size: .78rem; color: var(--stone); letter-spacing: .08em; }
.audio audio { grid-column: 2 / -1; width: 100%; }
.audio audio:not([src]) { display: none; }
.section.dark .audio, .section.dark .audio li { border-color: rgba(248,247,244,.14); }
.section.dark .audio .pb { border-color: var(--paper); color: var(--paper); }
.section.dark .audio .pb:hover { background: var(--paper); color: var(--ink); }

/* Galerie */
.gallery { columns: 3; column-gap: 24px; }
.gallery figure { break-inside: avoid; margin: 0 0 24px; }
.gallery figcaption { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
@media (max-width: 860px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

/* Conférences */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.modules > div { padding: 36px 32px 44px 0; border-bottom: 1px solid var(--line); }
.modules > div + div { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.modules h3 { font-size: 1.6rem; margin-bottom: 1.2em; }
.modules ul { list-style: none; margin: 0; padding: 0; }
.modules li { padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 1rem; line-height: 1.5; }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; } .modules > div + div { padding-left: 0; border-left: 0; } }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.contact .row { padding: 22px 0; border-top: 1px solid var(--line); }
.contact .row .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.contact .row .v { font-family: var(--serif); font-size: 1.45rem; font-weight: 300; line-height: 1.2; }
.contact .row .v a:hover { font-style: italic; }
.form { display: grid; gap: 26px; }
.form label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink); outline: none; transition: border-color .4s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form .consent { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: .86rem; color: var(--stone); }
.form .consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
@media (max-width: 860px) { .contact, .form .two { grid-template-columns: 1fr; } }

/* Pages légales */
.legal-page h2 { font-size: 1.7rem; margin-top: 2.2em; }
.legal-page p, .legal-page li { font-size: 1rem; color: var(--ink); }
.legal-page .todo { border: 1px dashed var(--gold); padding: 2px 8px; color: #8a6f3d; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Étiquette interne « à compléter » : retirer la balise une fois le contenu ajouté */
.todo { display: inline-block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #8a6f3d; border: 1px dashed var(--gold); padding: 6px 12px; margin-top: 14px; }

/* Correctifs responsive : grille en une colonne sous 900 px, étiquettes et bloc livre du hero */
@media (max-width: 899px) {
  .grid { grid-template-columns: 1fr; row-gap: 28px; }
  .grid > * { grid-column: auto !important; grid-row: auto !important; }
  .hero .grid { row-gap: 0; }
  .hero .grid > .hero-fig { margin-top: 28px; }
  .section-head { row-gap: 10px; }
}
.label { display: inline-flex; flex-wrap: wrap; gap: 4px 0; align-items: baseline; }
.hero-book .t, .hero-book .s { display: block; }
.logo img { height: 46px; }
@media (max-width: 600px) { .logo img { height: 36px; } }

/* Cadrage : la couverture du livre n'est jamais recadrée */
.chapter .ch-side.book img { aspect-ratio: auto; object-fit: contain; }

/* Bloc éditorial « b » : format carré, plus d'air au-dessus du visage */
@media (min-width: 900px) { .ed.b .media img { aspect-ratio: 1 / 1; } }

/* Mobile : l'accroche du haut s'empile en trois lignes lisibles, alignées à gauche */
@media (max-width: 600px) {
  .hero-over { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; gap: 6px; padding-bottom: 16px; font-size: .68rem; letter-spacing: .14em; line-height: 1.5; }
  .hero-over span:first-child { color: var(--gold); }
  .hero-over span:nth-child(2) { color: var(--ink, inherit); }
}

/* Crédit DYCAST : sous le copyright, aligné à gauche, même gris que les mentions */
.site-footer .legal .copy { display: block; }
.site-footer .legal .copy .dycast-credit { display: block; width: auto; padding: 6px 0 0; text-align: left; font-size: inherit; letter-spacing: inherit; color: var(--stone); }
.site-footer .legal .copy .dycast-credit__lien { opacity: 1; }

/* ---------- Formulaire de contact (envoi par le site, depuis le 2026-10-13) ---------- */
.form-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-envoi { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-retour { margin: 0; padding: 14px 18px; font-size: .95rem; border-left: 2px solid var(--gold); background: var(--sand-2); }
.form-retour.ok { border-color: var(--navy); }
.form-retour.erreur { border-color: #a3412f; background: #f8ebe7; }
.form [aria-invalid="true"] { border-bottom-color: #a3412f; }
.form.envoye .btn { opacity: .6; }
