/* ============================================================
   LE POITOU NOIR — feuille de style
   Archive déclassifiée / grimoire occulte
   Violet profond + or vieilli
   ============================================================ */

:root {
  --bg:         #0c0716;
  --bg-2:       #140a22;
  --bg-3:       #1c1030;
  --panel:      #1a1024;
  --ink:        #d6c5a3;        /* corps de texte */
  --ink-soft:   rgba(214, 197, 163, 0.72);
  --ink-mute:   rgba(214, 197, 163, 0.48);
  --gold:       #c9a14a;
  --gold-hi:    #e8c977;
  --gold-deep:  #8a6a26;
  --violet:     #7a3fd9;
  --violet-hi:  #a874f0;
  --violet-deep:#2a1248;
  --red-stamp:  #a83a3a;
  --rule:       rgba(201, 161, 74, 0.28);
  --rule-soft:  rgba(201, 161, 74, 0.14);

  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Cormorant SC", "EB Garamond", serif;

  --maxw: 1200px;
  --readw: 68ch;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(122, 63, 217, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(122, 63, 217, 0.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---- Grain + brume fond ---- */
.site-fog {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.45;
}
.site-fog::before, .site-fog::after {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(ellipse 30% 20% at 20% 30%, rgba(122,63,217,0.20), transparent 60%),
    radial-gradient(ellipse 40% 25% at 80% 60%, rgba(168,116,240,0.14), transparent 60%),
    radial-gradient(ellipse 25% 15% at 50% 90%, rgba(122,63,217,0.18), transparent 60%);
  filter: blur(30px);
  animation: drift 38s ease-in-out infinite alternate;
}
.site-fog::after {
  background:
    radial-gradient(ellipse 35% 20% at 70% 20%, rgba(168,116,240,0.16), transparent 60%),
    radial-gradient(ellipse 20% 14% at 30% 70%, rgba(122,63,217,0.18), transparent 60%);
  animation-duration: 54s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-1deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(1.5deg); }
}

.site-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.75  0 0 0 0 0.5  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(12,7,22,0.92), rgba(12,7,22,0.78));
  backdrop-filter: blur(8px);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: var(--gold-hi);
  flex-shrink: 0;
}
.brand .sigil { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.brand-domain {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 4px;
}
.site-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 2px;
  transition: color .25s, background .25s;
  position: relative;
}
.site-nav a .sym {
  width: 12px; height: 12px;
  opacity: 0.55;
  transition: opacity .25s, transform .25s;
}
.site-nav a:hover { color: var(--gold-hi); background: rgba(201,161,74,0.06); }
.site-nav a:hover .sym { opacity: 1; transform: rotate(15deg); }
.site-nav a.is-active { color: var(--gold-hi); }
.site-nav a.is-active::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--gold);
}
.site-nav a.is-active .sym { opacity: 1; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 80px;
  padding: 36px 28px 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
.site-footer .stamp {
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  padding: 4px 10px;
  border-radius: 2px;
  transform: rotate(-2deg);
}

/* ============================================================
   LAYOUT GÉNÉRAL
   ============================================================ */
.page {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px 24px;
}
.page-wide { max-width: 1320px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before,
.eyebrow::after {
  content: ""; height: 1px; background: var(--gold-deep); flex: 1;
  opacity: 0.5;
}
.eyebrow.left::after { display: none; }
.eyebrow.left::before { display: none; }

.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  margin: 0 0 8px;
  line-height: 1.05;
  text-shadow: 0 0 30px rgba(122, 63, 217, 0.25);
}
.page-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 65ch;
  margin: 0 0 36px;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 56px 0 18px;
  line-height: 1.15;
}
h3.subsection-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  margin: 28px 0 12px;
}

p { margin: 0 0 1.1em; }
.lead { font-size: 20px; color: var(--ink); }

a.inline {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 4px;
}

/* ---- Cartouche ---- */
.cartouche {
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(26,16,36,0.6), rgba(20,10,34,0.6));
  padding: 32px 36px;
  position: relative;
}
.cartouche::before, .cartouche::after,
.cartouche > .corner {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.cartouche::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cartouche::after  { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.cartouche > .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.cartouche > .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---- Type stamping ---- */
.classification {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-stamp);
  border: 1px solid var(--red-stamp);
  padding: 4px 10px;
  display: inline-block;
  transform: rotate(-2deg);
  background: rgba(168, 58, 58, 0.06);
}

.meta-row {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; gap: 22px; flex-wrap: wrap;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 10px 0;
  margin: 24px 0;
}
.meta-row span b { color: var(--gold); font-weight: 500; }

/* ---- Figure / image ---- */
figure.fig {
  margin: 36px 0;
  position: relative;
}
figure.fig img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
figure.fig figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 10px 4px 0;
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px dashed var(--rule-soft);
  margin-top: 8px;
}
figure.fig .pin {
  position: absolute; top: 8px; right: 8px;
  background: rgba(12,7,22,0.85);
  color: var(--gold-hi);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--gold-deep);
}

/* Tarot card image - taller, gold frame */
figure.fig.tarot img {
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 40px rgba(122, 63, 217, 0.18);
}
figure.fig.tarot {
  max-width: 420px;
}
figure.fig.tarot.right { margin-left: auto; }

/* ============================================================
   TWEAK PANEL (cipher mode)
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 100;
  background: linear-gradient(180deg, #1a1028, #110820);
  border: 1px solid var(--gold-deep);
  color: var(--ink);
  font-family: var(--mono);
  width: 260px;
  padding: 0;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(122,63,217,0.15);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: rgba(122,63,217,0.08);
}
.tweaks-panel header h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-hi);
  font-weight: 500;
}
.tweaks-panel header .close {
  background: transparent;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}
.tweaks-panel .row {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.tweaks-panel label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  gap: 12px;
}
.tweaks-panel .hint {
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 1.5;
}

.tweak-switch {
  position: relative;
  width: 42px; height: 22px;
  background: #2a1a3a;
  border: 1px solid var(--gold-deep);
  border-radius: 22px;
  cursor: pointer;
  transition: background .25s;
  flex-shrink: 0;
}
.tweak-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform .25s;
}
.tweak-switch.is-on { background: rgba(122, 63, 217, 0.4); }
.tweak-switch.is-on::after { transform: translateX(20px); background: var(--gold-hi); }

.tweaks-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 99;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(26,16,40,0.92);
  border: 1px solid var(--gold-deep);
  color: var(--gold-hi);
  font-family: var(--mono);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: transform .25s, box-shadow .25s;
}
.tweaks-fab:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(122,63,217,0.4); }

/* ============================================================
   CIPHER MODE
   ============================================================ */
.cipher-active [data-cipher] {
  position: relative;
  cursor: help;
}
.cipher-active [data-cipher] .clear { display: none; }
.cipher-active [data-cipher] .cipher { display: inline; }
[data-cipher] .cipher { display: none; }
[data-cipher] .clear { display: inline; }

.cipher-active [data-cipher] {
  color: rgba(214, 197, 163, 0.50);
  text-shadow: 0 0 8px rgba(122, 63, 217, 0.35);
  letter-spacing: 0.04em;
  transition: color .25s, text-shadow .25s, letter-spacing .25s;
}
.cipher-active [data-cipher]:hover {
  color: var(--ink);
  text-shadow: none;
  letter-spacing: 0;
}
.cipher-active [data-cipher]:hover .clear { display: inline; }
.cipher-active [data-cipher]:hover .cipher { display: none; }

/* ============================================================
   HOMEPAGE / CARTE
   ============================================================ */
.hero-map {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 40px;
}
.hero-map .map-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1400px;
  margin: 24px auto 0;
  width: 100%;
}
.map-intro {
  display: flex; flex-direction: column;
  gap: 20px;
  align-self: center;
}
.map-intro .manifesto {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.map-intro .manifesto strong { color: var(--gold-hi); font-weight: 500; }

.map-canvas {
  position: relative;
  border: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 50% 35% at 50% 50%, rgba(122,63,217,0.16), transparent 65%),
    linear-gradient(180deg, #0e0820, #0a0518);
  min-height: 540px;
  overflow: hidden;
}
.map-canvas svg { display: block; width: 100%; height: 100%; }

.map-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  background: rgba(12,7,22,0.7);
  border: 1px solid transparent;
  transition: all .25s;
  white-space: nowrap;
}
.map-pin .dot {
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  background: var(--bg);
  position: relative;
}
.map-pin .dot::after {
  content: ""; position: absolute; inset: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .25s;
}
.map-pin:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: rgba(20, 10, 34, 0.95);
  z-index: 5;
}
.map-pin:hover .dot::after { opacity: 1; }
.map-pin:hover .dot { box-shadow: 0 0 12px rgba(232,201,119,0.5); }

.map-pin .num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold-hi);
  letter-spacing: 0.05em;
}

/* Side pin - aligned right of dot, pin sits over its node */
.map-pin.flip { flex-direction: row-reverse; }

.map-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(201,161,74,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,161,74,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.map-compass {
  position: absolute;
  bottom: 18px; right: 18px;
  width: 60px !important;
  height: 60px !important;
  opacity: 0.5;
}
.map-legend {
  position: absolute;
  top: 56px; left: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(12,7,22,0.6);
  padding: 8px 10px;
  border: 1px solid rgba(201,161,74,0.18);
}
.map-legend .item { display: flex; align-items: center; gap: 8px; }
.map-legend svg { width: 12px; height: 12px; flex-shrink: 0; }

.map-corner-label {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.map-corner-label.tl { left: 18px; }
.map-corner-label.tr { right: 18px; }

/* ============================================================
   POITOU SECRET — segments
   ============================================================ */
.segment {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--rule-soft);
  padding: 36px 0;
}
.segment:first-of-type { border-top: none; }
.segment .seg-num {
  font-family: var(--display);
  font-size: 100px;
  color: var(--gold-deep);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.segment .seg-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.segment .seg-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 3px 8px;
  margin-top: 14px;
}
.segment .seg-body h3 {
  font-family: var(--display);
  font-size: 30px;
  color: var(--gold-hi);
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.segment .seg-body .lieu {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.segment figure.fig { margin-top: 24px; }
.segment blockquote.testimony {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: var(--ink);
  margin: 18px 0;
}
.segment blockquote.testimony cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* ============================================================
   LÉGENDES (page 3)
   ============================================================ */
.legend-tale {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  padding: 48px 0;
}
.legend-tale:first-of-type { border-top: none; }
.legend-tale .tale-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 18px;
}
.legend-tale .tale-num {
  font-family: var(--display);
  font-size: 80px;
  color: var(--gold-deep);
  line-height: 0.8;
}
.legend-tale h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--gold-hi);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.legend-tale .tale-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.legend-tale .tale-body {
  columns: 2;
  column-gap: 40px;
  column-rule: 1px solid var(--rule-soft);
  max-width: 1000px;
}
.legend-tale .tale-body p:first-child::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 68px;
  line-height: 0.8;
  padding: 4px 10px 0 0;
  color: var(--gold-hi);
}

/* ============================================================
   RECETTES
   ============================================================ */
.recipe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--rule-soft);
}
.recipe:first-of-type { border-top: none; }
.recipe.flip > figure { order: 2; }
.recipe h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--gold-hi);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}
.recipe .recipe-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; gap: 12px;
  margin-bottom: 8px;
}
.recipe .recipe-matrl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  border: 1px dashed var(--rule);
  padding: 12px 14px;
  margin: 16px 0 24px;
}
.recipe h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 8px;
}
.recipe .ingr {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.recipe .ingr li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
  display: flex; gap: 12px;
}
.recipe .ingr li::before {
  content: "·";
  color: var(--gold);
  font-weight: bold;
  flex-shrink: 0;
}
.recipe .recipe-warn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--red-stamp);
  border-left: 2px solid var(--red-stamp);
  padding: 6px 0 6px 12px;
  margin: 8px 0;
}

/* ============================================================
   REGISTRE — polaroids
   ============================================================ */
.registre-board {
  position: relative;
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
  justify-content: center;
}
.polaroid {
  background: #f0e6cf;
  color: #2a1c10;
  padding: 16px 16px 22px;
  width: 320px;
  font-family: "Caveat", "Bradley Hand", "Marker Felt", cursive;
  font-size: 17px;
  line-height: 1.5;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 18px 36px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
  transition: transform .35s, box-shadow .35s;
}
.polaroid::before {
  /* tape strip */
  content: "";
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 80px; height: 22px;
  background: rgba(201, 161, 74, 0.35);
  border: 1px solid rgba(201, 161, 74, 0.6);
  border-left-style: dashed;
  border-right-style: dashed;
}
.polaroid .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a3f1a;
  border-bottom: 1px dashed rgba(90,63,26,0.4);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.polaroid .meta b { color: #2a1c10; font-weight: 600; }
.polaroid .stamp {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a2a2a;
  border: 1px solid #8a2a2a;
  padding: 2px 6px;
  transform: rotate(8deg);
  opacity: 0.85;
}
.polaroid:nth-child(3n)   { transform: rotate(-1.8deg); }
.polaroid:nth-child(3n+1) { transform: rotate(1.4deg); }
.polaroid:nth-child(3n+2) { transform: rotate(-0.6deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 5; box-shadow: 0 24px 44px rgba(0,0,0,0.7); }

.registre-foreword {
  max-width: 720px;
  margin: 0 auto 24px;
  background: rgba(20,10,34,0.6);
  border: 1px dashed var(--gold-deep);
  padding: 22px 28px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ============================================================
   JOURNAL (page 6) — pages tournées
   ============================================================ */
.journal-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0;
}
.journal-book {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse 50% 50% at 50% 30%, rgba(232,201,119,0.05), transparent 70%),
    linear-gradient(180deg, #f5e9ce, #e8d8b1);
  background-blend-mode: multiply;
  color: #2a1c10;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(90,63,26,0.3),
    inset 0 0 90px rgba(120, 80, 30, 0.2);
  font-family: "Caveat", "Marker Felt", cursive;
  overflow: hidden;
}
.journal-book::before {
  /* binding shadow center */
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 50px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(58,32,12,0.35) 50%, transparent);
  pointer-events: none;
}
.journal-page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  padding: 50px 60px;
  overflow-y: auto;
}
.journal-page.left  { left: 0; padding-right: 40px; border-right: 1px solid rgba(90,63,26,0.15); }
.journal-page.right { right: 0; padding-left: 40px; }
.journal-page h3 {
  font-family: "Caveat", cursive;
  font-size: 28px;
  line-height: 1.15;
  color: #5a2a2a;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(90,42,42,0.3);
  padding-bottom: 8px;
}
.journal-page .date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a4a1c;
  margin: 12px 0 14px;
}
.journal-page p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #2a1c10;
}
.journal-page p .underline {
  text-decoration: underline;
  text-decoration-color: #8a2a2a;
  text-decoration-thickness: 1.5px;
}
.journal-page .scribble {
  display: inline-block;
  position: relative;
  color: #5a2a2a;
}
.journal-page .scribble::before {
  /* crossed-out */
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 50%;
  height: 1.5px; background: #5a2a2a;
  transform: rotate(-1deg);
}
.journal-page strong {
  font-weight: normal;
  color: #5a2a2a;
}
.journal-page::-webkit-scrollbar { width: 6px; }
.journal-page::-webkit-scrollbar-thumb { background: rgba(90,63,26,0.3); }

.journal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 18px;
}
.journal-controls button {
  background: transparent;
  border: 1px solid var(--gold-deep);
  color: var(--gold-hi);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.journal-controls button:hover:not(:disabled) {
  background: rgba(122,63,217,0.12);
  color: var(--gold-hi);
}
.journal-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.journal-progress {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.journal-progress b { color: var(--gold-hi); font-weight: 500; }

.journal-foreword {
  max-width: 740px;
  margin: 0 auto 28px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  font-size: 16px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 18px 0;
}

/* ============================================================
   SANCTUAIRE — composition cinéma
   ============================================================ */
.scene {
  margin: 72px 0;
  position: relative;
}
.scene .scene-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 18px;
}
.scene-num {
  font-family: var(--display);
  font-size: 100px;
  color: var(--gold-deep);
  line-height: 0.85;
}
.scene-title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  color: var(--gold-hi);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.scene-grid.flip { grid-template-columns: 360px 1fr; }
.scene-grid.flip > figure { order: 0; }
.scene-text { max-width: var(--readw); }

/* Manifesto block */
.manifesto-block {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(122,63,217,0.15), transparent 70%),
    linear-gradient(180deg, rgba(26,16,40,0.65), rgba(12,7,22,0.65));
  border: 1px solid var(--rule);
  padding: 40px 44px;
  max-width: 880px;
  margin: 36px auto 0;
  position: relative;
}
.manifesto-block::before, .manifesto-block::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
}
.manifesto-block::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.manifesto-block::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.manifesto-block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.manifesto-block h4 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold-hi);
  font-weight: 500;
  margin: 14px 0 6px;
  letter-spacing: 0.03em;
}
.manifesto-block p {
  font-size: 17px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .page { padding: 32px 18px 24px; }
  .site-header .inner { padding: 14px 16px; gap: 12px; }
  .site-nav { display: none; flex-direction: column; gap: 0; width: 100%; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); border-top: 1px solid var(--rule); padding: 8px 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }
  .brand-name { font-size: 15px; }
  .brand-domain { font-size: 9px; }

  .hero-map .map-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .map-canvas { min-height: 460px; }

  .segment {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .segment .seg-num { font-size: 64px; }
  .scene-grid, .scene-grid.flip { grid-template-columns: 1fr; gap: 24px; }
  .recipe { grid-template-columns: 1fr; gap: 24px; }
  .recipe.flip > figure { order: 0; }
  .legend-tale .tale-body { columns: 1; }
  .legend-tale .tale-num { font-size: 56px; }

  .journal-book { aspect-ratio: auto; min-height: 80vh; }
  .journal-page { position: static; width: 100%; padding: 28px; }
  .journal-page.right { display: none; }
  .journal-book.show-right .journal-page.left { display: none; }
  .journal-book.show-right .journal-page.right { display: block; }
  .journal-book::before { display: none; }

  figure.fig.tarot { max-width: 100%; }

  .tweaks-panel { width: calc(100vw - 36px); right: 18px; bottom: 80px; }
}

@media (max-width: 600px) {
  .page-title { font-size: 36px; }
  .manifesto-block { padding: 28px 22px; }
  .polaroid { width: 100%; }
}

/* Print: keep simple */
@media print {
  .site-fog, .site-grain, .tweaks-panel, .tweaks-fab, .nav-toggle, .site-footer { display: none; }
  body { background: white; color: black; }
}
