/* ============================================================
   PREMIÈRE-LUEUR « LIA » — feuille de style
   DA : sombre, ambre/or, cinématographique
   ============================================================ */

:root {
  --fond: #0b0a10;
  --surface: #15121a;
  --or: #d4a24e;
  --or-vif: #f0c060;
  --rouge: #a8322e;
  --nuit: #101726;
  --ivoire: #ece4d4;
  --ivoire-2: #9a8f7d;
  --cinzel: 'Cinzel', serif;
  --cormorant: 'Cormorant Garamond', serif;
  --inter: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--fond);
  color: var(--ivoire);
  font-family: var(--cormorant);
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--or); color: var(--fond); }

/* ---------- Ornements & titres ---------- */
.ornement { color: var(--or); letter-spacing: .6em; text-align: center; font-size: .9rem; margin-bottom: 1.2rem; opacity: .8; }
.titre-section {
  font-family: var(--cinzel);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ivoire);
}
.titre-section + .recit-chapo, .fiche-sous { margin-top: 1.4rem; }

/* Lettrine de chapitre */
.lettrine::first-letter {
  font-family: var(--cinzel);
  font-size: 3.4em;
  line-height: .8;
  float: left;
  color: var(--or);
  padding: .08em .12em 0 0;
}

/* Découpage de texte (JS) */
.masque { display: inline-block; overflow: hidden; vertical-align: bottom; }
.masque > span { display: inline-block; will-change: transform; }

/* ---------- Grain de film ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 200; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-30px,20px); }
  40% { transform: translate(20px,-30px); } 60% { transform: translate(-20px,-20px); }
  80% { transform: translate(30px,30px); }
}

/* ---------- Curseur custom : patte de chat vue de dessus ---------- */
/* Curseur natif masqué. Safari ignore souvent `cursor: none`,
   on utilise donc un curseur personnalisé 100 % transparent (16×16),
   avec `none` en repli pour les autres navigateurs. */
html.curseur-actif, html.curseur-actif * {
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAEklEQVQ4y2NgGAWjYBSMAggAAAQQAAGFP6pyAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI2LTA2LTEwVDExOjM3OjMwKzAwOjAw0T++SgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNi0wNi0xMFQxMTozNzozMCswMDowMKBiBvYAAAAASUVORK5CYII=") 8 8, none !important;
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none;
  width: 34px; height: 34px;
}
.cursor img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.7));
  transform: rotate(-12deg);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s;
}
/* survol d'un élément cliquable : la patte se redresse, grossit et « tapote » */
.cursor.survol img {
  transform: rotate(0deg) scale(1.5);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.7)) drop-shadow(0 0 10px rgba(240,192,96,.55));
  animation: patte-tapote .6s ease-in-out infinite;
}
@keyframes patte-tapote {
  0%, 100% { transform: rotate(0deg) scale(1.5); }
  50%      { transform: rotate(0deg) scale(1.22); }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor.survol svg { animation: none; } }

/* ---------- Préloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 500; background: var(--fond);
  display: grid; place-items: center; align-content: center; gap: 1.4rem;
  transition: opacity .7s ease, visibility .7s;
}
#preloader.cache { opacity: 0; visibility: hidden; }
.preloader-pattes { display: flex; align-items: center; justify-content: center; }
.preloader-pattes img {
  width: 64px; height: 64px; margin: 0 .55rem; object-fit: contain; opacity: 0;
  animation: patte-pop 1.4s ease infinite;
  filter: drop-shadow(0 0 12px rgba(240,192,96,.5));
}
.preloader-pattes img:nth-child(2) { animation-delay: .22s; margin-top: -14px; }
.preloader-pattes img:nth-child(3) { animation-delay: .44s; }
@keyframes patte-pop { 0% { opacity: 0; transform: scale(.4) rotate(-12deg);} 30% { opacity: 1; transform: scale(1) rotate(0);} 70% { opacity: 1;} 100% { opacity: 0; } }
.preloader-nom { font-family: var(--cinzel); letter-spacing: .4em; text-transform: uppercase; color: var(--or); font-size: .95rem; }

/* ---------- Header / burger ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 2rem;
}
.site-header .logo, .site-header .burger { pointer-events: auto; }
.logo {
  font-family: var(--cinzel); font-weight: 700; font-size: 1.3rem; color: var(--or);
  border: 1px solid rgba(212,162,78,.5); padding: .35rem .6rem; line-height: 1;
  background: rgba(11,10,16,.45); backdrop-filter: blur(6px);
}
.burger {
  width: 52px; height: 52px; position: relative; z-index: 130;
  background: rgba(11,10,16,.45); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,162,78,.5); border-radius: 50%;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--or);
  transition: transform .45s cubic-bezier(.7,0,.2,1), top .45s cubic-bezier(.7,0,.2,1);
}
.burger span:nth-child(1) { top: 21px; }
.burger span:nth-child(2) { top: 29px; }
.burger.ouvert span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.burger.ouvert span:nth-child(2) { top: 25px; transform: rotate(-45deg); }

/* ---------- Tiroir ---------- */
.drawer { position: fixed; inset: 0; z-index: 125; visibility: hidden; }
.drawer.ouvert { visibility: visible; }
.drawer-panel { position: absolute; inset: 0; transform: translateY(-101%); will-change: transform; }
.drawer-panel--1 { background: var(--or); }
.drawer-panel--2 { background: #100d16; }
.drawer-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: center; padding: 6rem 8vw 3rem; opacity: 0;
}
.drawer-links { list-style: none; }
.drawer-links li { overflow: hidden; }
.drawer-links a {
  display: inline-flex; align-items: baseline; gap: 1.2rem;
  font-family: var(--cinzel); font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  letter-spacing: .08em; padding: .35rem 0; color: var(--ivoire);
  transform: translateY(120%); transition: color .3s;
}
.drawer-links a:hover, .drawer-links a:focus-visible { color: var(--or-vif); }
.drawer-links em { font-style: normal; font-size: .55em; color: var(--or); min-width: 3ch; }
.drawer-preview {
  position: absolute; right: 8vw; top: 50%; transform: translateY(-50%);
  width: min(26vw, 340px); aspect-ratio: 3/4; overflow: hidden;
  opacity: 0; pointer-events: none; border: 1px solid rgba(212,162,78,.4);
}
.drawer-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transform: scale(1.1); transition: transform .8s ease, opacity .4s; }
.drawer-bas { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.drawer-note { font-family: var(--inter); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivoire-2); }

/* Toggle MJ */
.mj-toggle { display: inline-flex; align-items: center; gap: .8rem; cursor: pointer; user-select: none; }
.mj-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mj-label { font-family: var(--inter); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ivoire-2); transition: color .3s; }
.mj-track {
  width: 58px; height: 28px; border-radius: 20px; border: 1px solid var(--or);
  position: relative; transition: background .35s;
}
.mj-thumb {
  position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--or); display: grid; place-items: center; font-size: 11px;
  transition: transform .35s cubic-bezier(.7,0,.2,1);
}
.mj-toggle input:checked ~ .mj-track { background: rgba(168,50,46,.5); }
.mj-toggle input:checked ~ .mj-track .mj-thumb { transform: translateX(29px); }
html[data-mode="joueurs"] .mj-label:first-child { color: var(--or-vif); }
html[data-mode="mj"] .mj-label--mj { color: var(--or-vif); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-layer { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 118%; object-fit: cover; object-position: center 20%; will-change: transform; }
.hero-mist {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(11,10,16,.92) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(11,10,16,.55) 0%, rgba(11,10,16,.15) 35%, rgba(11,10,16,.92) 100%);
  will-change: transform;
}
.hero-content {
  position: relative; inset: auto; text-align: center; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  will-change: transform;
}
.hero-sur { font-family: var(--inter); font-size: .78rem; letter-spacing: .45em; text-transform: uppercase; color: var(--or); }
.hero-titre {
  font-family: var(--cinzel); font-weight: 700; line-height: 1.05;
  font-size: clamp(2.6rem, 9vw, 7rem); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0,0,0,.7);
}
.hero-titre .char { display: inline-block; will-change: transform; }
.hero-sous { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-style: italic; color: var(--ivoire-2); }
.hero-sous span { color: var(--or-vif); }
.hero-tagline { max-width: 620px; font-style: italic; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ivoire); opacity: .9; }
.scroll-indic {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .2rem; z-index: 5;
}
#lottie-scroll { width: 46px; height: 64px; }
.scroll-indic span { font-family: var(--inter); font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ivoire-2); }

/* ---------- Bandeau identité ---------- */
.identite { border-top: 1px solid rgba(212,162,78,.35); border-bottom: 1px solid rgba(212,162,78,.35); background: linear-gradient(to right, transparent, rgba(212,162,78,.06), transparent); }
.identite-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 4rem;
  padding: 2.2rem 2rem; max-width: 1300px; margin: 0 auto;
}
.id-item { display: flex; flex-direction: column; gap: .3rem; text-align: center; }
.id-cle { font-family: var(--inter); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivoire-2); }
.id-val { font-family: var(--cinzel); font-size: 1.15rem; color: var(--or-vif); overflow: hidden; }

/* ---------- RÉCIT ---------- */
.recit-intro { padding: 9rem 1.5rem 7rem; max-width: 760px; margin: 0 auto; text-align: center; }
.recit-chapo { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ivoire-2); }
.recit-chapo strong { color: var(--or-vif); font-weight: 500; }

.chapitre { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.chap-bg { position: absolute; inset: 0; z-index: 0; }
/* sur-zoom réduit + cadrage biaisé vers le haut : les visages restent en scène */
.chap-bg img { width: 100%; height: 114%; object-fit: cover; object-position: center 18%; will-change: transform; }
.chap-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,10,16,.55), rgba(11,10,16,.25) 40%, rgba(11,10,16,.75)); }
.chapitre--over { z-index: 5; box-shadow: 0 -40px 80px rgba(0,0,0,.65); }

.chap-card {
  position: relative; z-index: 2;
  max-width: 580px; margin: 12vh 6vw;
  background: rgba(13,11,18,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(212,162,78,.35); border-radius: 2px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.chapitre:nth-of-type(even) { justify-content: flex-end; }
.chap-num {
  position: absolute; top: -1.6rem; left: clamp(1.8rem, 4vw, 3.2rem);
  font-family: var(--cinzel); font-size: 3rem; color: var(--or);
  text-shadow: 0 4px 24px rgba(0,0,0,.8); line-height: 1;
}
.chap-titre { font-family: var(--cinzel); font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .1em; margin: .6rem 0 1.2rem; color: var(--ivoire); }
.chap-texte { margin-bottom: 1rem; color: var(--ivoire); }
.chap-quote {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(212,162,78,.3);
  font-style: italic; font-size: 1.15rem; color: var(--or-vif);
}
.chap-card--rage { border-color: rgba(168,50,46,.55); }

/* Ch. V : la section adopte le ratio exact de l'image (1122×1402) —
   pleine largeur, image entière, section plus haute */
#ch5 {
  aspect-ratio: 1122 / 1402;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: flex-end;
}
#ch5 .chap-card { margin-bottom: 14vh; }
#ch5 .chap-bg .ch5-flou {
  position: absolute; inset: 0; width: 100%; height: 114%;
  object-fit: cover; object-position: center 18%;
  filter: blur(26px) brightness(.4) saturate(.9);
}
#ch5 .chap-bg .ch5-entiere {
  position: relative; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.chap-card--rage .chap-num, .chap-card--rage .chap-quote { color: #e0584f; }

/* ============================================================
   LE RÉCIT VIVANT — ambiances et clins d'œil par chapitre
   ============================================================ */

/* --- Ch. I : nappes de brume + lanternes vacillantes --- */
.brume-nappe {
  position: absolute; bottom: -4%; width: 85%; height: auto;
  pointer-events: none; opacity: .55; filter: blur(3px);
  animation: brume-derive linear infinite alternate;
}
img.brume-nappe:nth-of-type(1) { left: -18%; animation-duration: 46s; }
img.brume-nappe:nth-of-type(2) { left: 22%; bottom: -10%; width: 105%; animation-duration: 64s; animation-delay: -20s; opacity: .4; transform: scaleX(-1); }
img.brume-nappe:nth-of-type(3) { left: -30%; bottom: 6%; width: 65%; animation-duration: 38s; animation-delay: -9s; opacity: .32; }
@keyframes brume-derive { from { translate: 0 0; } to { translate: 13% 0; } }
.lanterne {
  position: absolute; width: 90px; height: 90px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,196,110,.5) 0%, rgba(255,170,80,.12) 40%, transparent 70%);
  animation: lanterne-vacille ease-in-out infinite;
}
@keyframes lanterne-vacille {
  0%, 100% { opacity: .9; transform: scale(1); }
  18% { opacity: .5; } 33% { opacity: .85; transform: scale(1.06); }
  47% { opacity: .65; } 71% { opacity: 1; } 86% { opacity: .55; transform: scale(.96); }
}

/* --- Ch. II : volutes de fumée + queue qui dépasse --- */
.fumee-volute {
  position: absolute; bottom: 100%; width: 26px; height: 26px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(220,210,190,.18), transparent 70%);
  filter: blur(5px);
  animation: fumee-monte ease-in infinite;
}
@keyframes fumee-monte {
  0%   { transform: translate(0, 16px) scale(.5); opacity: 0; }
  15%  { opacity: .8; }
  100% { transform: translate(-26px, -120px) scale(2.4); opacity: 0; }
}
.queue-carte {
  position: absolute; left: -30px; bottom: 36px; z-index: -1;
  width: 24px; height: 78px; object-fit: contain;
  transform: rotate(40deg); transform-origin: 100% 20%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  animation: queue-balance 5s ease-in-out infinite;
}
.chap-card:hover .queue-carte { animation: queue-fretille .5s ease-in-out infinite; }
.ha-bram {
  position: absolute; pointer-events: none; z-index: 5;
  font-family: var(--cinzel); font-weight: 700; color: var(--or-vif);
  text-shadow: 0 0 12px rgba(240,192,96,.6);
  animation: ha-envol 1.2s ease-out forwards;
}
@keyframes ha-envol {
  0%   { opacity: 0; transform: translateY(0) rotate(-6deg) scale(.6); }
  18%  { opacity: 1; transform: translateY(-14px) rotate(3deg) scale(1.1); }
  100% { opacity: 0; transform: translateY(-64px) rotate(-4deg) scale(1); }
}

/* --- Ch. III : reflet vif-argent + dagues croisées --- */
#ch3 .chap-titre { overflow: hidden; }
#ch3 .chap-titre::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(226,232,245,.5) 49%, rgba(255,255,255,.75) 50%, rgba(226,232,245,.5) 51%, transparent 62%);
  transform: translateX(-130%);
  animation: vif-argent 7s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes vif-argent {
  0%, 76% { transform: translateX(-130%); }
  88%     { transform: translateX(130%); }
  100%    { transform: translateX(130%); }
}
.dagues-x img { width: 100%; height: 100%; object-fit: contain; }
.dagues-x {
  position: absolute; top: -30px; right: 14px; width: 76px; height: 76px;
  pointer-events: none; opacity: 0; transform: scale(.4) rotate(-16deg);
  transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 0 10px rgba(240,192,96,.5));
}
.dagues-x.visible { opacity: 1; transform: scale(1) rotate(0); }
.dagues-x .etincelle {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, #fff5d6, rgba(240,192,96,0) 70%);
  opacity: 0;
}
.dagues-x.visible .etincelle { animation: etincelle .5s ease-out .35s; }
@keyframes etincelle { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 30% { opacity: 1; transform: translate(-50%,-50%) scale(2.6); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(3.2); } }

/* --- Ch. IV : mouettes + braises volcaniques --- */
.mouette {
  position: absolute; pointer-events: none; z-index: 1;
  width: 44px; height: 44px; opacity: .75;
}
/* battement : alternance des 2 frames, rythme propre à chaque oiseau */
.mouette img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  animation: mouette-bat var(--bat, .5s) steps(1) infinite;
}
.mouette .mo-2 { animation-delay: calc(var(--bat, .5s) / -2); }
@keyframes mouette-bat { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.braise {
  position: absolute; pointer-events: none; z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0 0%, #f08a3c 45%, rgba(240,100,40,0) 75%);
}

/* --- Ch. V : pouls de la rage --- */
#ch5 .chap-card--rage { animation: pouls-rage 2.2s ease-in-out infinite; }
@keyframes pouls-rage {
  0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 rgba(168,50,46,0); transform: scale(1); }
  12%      { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 34px rgba(168,50,46,.4); transform: scale(1.004); }
  24%      { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 10px rgba(168,50,46,.15); transform: scale(1); }
  34%      { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 26px rgba(168,50,46,.3); transform: scale(1.003); }
}

/* --- Mots sensibles (à découvrir au survol) --- */
.mot-brume, .mot-bram, .mot-eclipse, .mot-tomber, .mot-danse, .mot-tremble, .mot-dagues {
  display: inline-block; cursor: help;
  border-bottom: 1px dotted rgba(212,162,78,.35);
  transition: filter .5s, opacity .5s, color .3s;
}
.mot-brume:hover { filter: blur(2.2px); letter-spacing: .06em; }
.mot-eclipse:hover { opacity: .12; }
.mot-tomber:hover { animation: mot-chute .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes mot-chute {
  0% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(13px) rotate(7deg); }
  100% { transform: translateY(0) rotate(0); }
}
.mot-danse:hover { animation: mot-danse .8s ease-in-out; }
@keyframes mot-danse {
  0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateY(-2px); }
  50% { transform: rotate(4deg); } 75% { transform: rotate(-3deg) translateY(-1px); }
}
.mot-tremble:hover { animation: mot-tremble .35s linear infinite; color: #e0584f; }
@keyframes mot-tremble {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-1.4px,.8px); }
  50% { transform: translate(1.2px,-.8px); } 75% { transform: translate(-.8px,-1.2px); }
}
.mot-bram:hover, .mot-dagues:hover { color: var(--or-vif); }

/* --- Anecdotes cachées (triple-clic sur la lettrine) --- */
.note-mj {
  max-height: 0; overflow: hidden; opacity: 0;
  margin-top: 0;
  transition: max-height .6s cubic-bezier(.7,0,.2,1), opacity .5s .1s, margin-top .6s;
  font-style: italic; font-size: 1.05rem; color: var(--or-vif);
  border: 1px dashed rgba(212,162,78,.5);
  padding: 0 1.1rem;
}
.note-mj.ouverte { max-height: 200px; opacity: 1; margin-top: 1.2rem; padding: .9rem 1.1rem; }
.lettrine { cursor: text; }

/* ---------- SES MONDES ---------- */
.mondes { padding: 10rem 6vw; }
.mondes-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); max-width: 1300px; margin: 3.5rem auto 0; align-items: center;
}
.acc-item { border-bottom: 1px solid rgba(212,162,78,.3); }
.acc-item:first-child { border-top: 1px solid rgba(212,162,78,.3); }
.acc-tete {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  font-family: var(--cinzel); font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: .08em;
  padding: 1.3rem .4rem; color: var(--ivoire); transition: color .3s, padding-left .35s;
}
.acc-patte { font-size: .85em; filter: sepia(1) saturate(3) hue-rotate(-12deg); transition: transform .4s cubic-bezier(.7,0,.2,1); }
.acc-item:hover .acc-tete, .acc-item.ouvert .acc-tete { color: var(--or-vif); padding-left: 1rem; }
.acc-item:hover .acc-patte { transform: rotate(20deg) scale(1.15); }
.acc-item.ouvert .acc-patte { transform: rotate(90deg); }
.acc-corps { max-height: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.7,0,.2,1); }
.acc-item.survol .acc-corps { max-height: 56px; }
.acc-item.ouvert .acc-corps { max-height: 240px; }
.acc-corps p { padding: 0 .4rem 1.3rem 2.6rem; color: var(--ivoire-2); font-size: 1.1rem; }

.mondes-visuel {
  position: relative; aspect-ratio: 3/4; max-height: 76vh; overflow: hidden;
  border: 1px solid rgba(212,162,78,.35);
}
.mondes-visuel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 14%;
  opacity: 0; transform: scale(1.06);
  transition: opacity .45s ease, transform .45s ease;
}
.mondes-visuel img.actif { opacity: 1; transform: scale(1); }

/* ---------- CITATIONS ---------- */
.citations { position: relative; background: #060509; }
.citations-pin {
  height: 100vh; display: grid; place-items: center; position: relative;
  padding: 0 8vw; text-align: center; overflow: hidden;
}
.citations-patte { position: absolute; top: 12vh; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; opacity: .85; }
.citation {
  position: absolute; max-width: 900px; left: 50%; transform: translate(-50%, 0);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.8vw, 2.9rem); line-height: 1.45; color: var(--or-vif);
  opacity: 0; pointer-events: none;
}
.citation .mot { display: inline-block; }
.citations-tic {
  position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%);
  font-family: var(--inter); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivoire-2); max-width: 90vw;
}

/* ---------- GÉNÉRATEUR DE RÉPLIQUES ---------- */
.repliques {
  padding: 8rem 6vw; text-align: center;
  max-width: 900px; margin: 0 auto;
}
.repliques-sous { color: var(--ivoire-2); margin-top: 1.2rem; font-size: 1.1rem; }
.replique-texte {
  min-height: 5.2em;
  display: flex; align-items: center; justify-content: center;
  margin: 2.6rem auto; max-width: 760px;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.5;
  color: var(--or-vif);
}
.replique-texte .mot { display: inline-block; margin-right: .28em; }
.replique-bouton {
  font-family: var(--cinzel); font-size: 1rem; letter-spacing: .14em;
  color: var(--or-vif); padding: 1rem 2.2rem;
  border: 1px solid var(--or);
  background: rgba(212,162,78,.06);
  transition: background .3s, box-shadow .3s, transform .15s;
}
.replique-bouton:hover {
  background: rgba(212,162,78,.16);
  box-shadow: 0 0 24px rgba(212,162,78,.25);
}
.replique-bouton:active { transform: scale(.96); }

/* ---------- GALERIE / CARROUSEL ---------- */
.galerie { padding: 10rem 0 7rem; overflow: hidden; }
.carousel { margin-top: 3.5rem; outline: none; }
.car-piste {
  display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  will-change: transform; user-select: none; -webkit-user-select: none; width: max-content;
}
.slide { flex: 0 0 auto; width: min(58vw, 460px); transition: none; }
.slide-cadre {
  overflow: hidden; aspect-ratio: 3/4; border: 1px solid rgba(212,162,78,.3);
  background: var(--surface);
}
.slide-cadre img {
  width: 112%; max-width: none; height: 100%; object-fit: cover;
  object-position: center top;
  margin-left: -6%; will-change: transform; pointer-events: none;
}
.slide figcaption {
  font-family: var(--inter); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivoire-2); padding-top: .9rem; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity .4s .1s, transform .4s .1s;
}
.slide.actif figcaption { opacity: 1; transform: translateY(0); }

.car-aide {
  text-align: center; margin-top: 1.6rem;
  font-family: var(--inter); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ivoire-2); opacity: .8;
  transition: opacity .8s ease;
}
.car-aide span { color: var(--or); animation: aide-pulse 1.8s ease-in-out infinite; display: inline-block; }
.car-aide span:last-child { animation-delay: .9s; }
@keyframes aide-pulse { 0%,100% { transform: translateX(0); opacity:.6; } 50% { transform: translateX(4px); opacity:1; } }
.car-aide span:first-child { animation-name: aide-pulse-g; }
@keyframes aide-pulse-g { 0%,100% { transform: translateX(0); opacity:.6; } 50% { transform: translateX(-4px); opacity:1; } }
.carousel.utilise .car-aide { opacity: 0; }
.car-nav {
  display: flex; align-items: center; gap: 1.4rem;
  max-width: 760px; margin: 3rem auto 0; padding: 0 2rem; position: relative;
}
.car-barre { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.car-segments { display: flex; gap: 4px; width: 100%; }
.car-segments i { flex: 1; height: 2px; background: rgba(212,162,78,.25); transition: background .3s; }
.car-segments i.passe { background: var(--or); }
.car-curseur {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px;
  background: var(--or-vif); border-radius: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 0 14px rgba(240,192,96,.8);
  will-change: left;
}
.car-fleche {
  font-size: 1.25rem; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(212,162,78,.45); display: grid; place-items: center;
  filter: sepia(1) saturate(3) hue-rotate(-12deg);
  transition: transform .3s, border-color .3s, background .3s;
}
.car-fleche--prev { transform: scaleX(-1); }
.car-fleche:hover { border-color: var(--or-vif); background: rgba(212,162,78,.12); }
.car-fleche--prev:hover { transform: scaleX(-1) scale(1.08); }
.car-fleche--next:hover { transform: scale(1.08); }
.car-compteur {
  font-family: var(--cinzel); font-size: 1rem; color: var(--ivoire-2);
  display: flex; align-items: baseline; gap: .4rem; min-width: 4.5ch;
}
.car-actuel { display: inline-block; height: 1.2em; overflow: hidden; color: var(--or-vif); font-size: 1.35rem; }
.car-roul { display: flex; flex-direction: column; line-height: 1.2; will-change: transform; }
.car-sep { opacity: .5; }

/* ---------- FICHE DE JEU ---------- */
.fiche {
  padding: 10rem 6vw;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,162,78,.07), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168,50,46,.05), transparent 50%),
    #0e0c13;
}
.fiche-sous { text-align: center; font-family: var(--inter); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivoire-2); }

.stats-grille {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  max-width: 1100px; margin: 3.5rem auto 0;
}
.stat-carte {
  border: 1px solid rgba(212,162,78,.35); background: rgba(21,18,26,.7);
  padding: 1.4rem .6rem 1.2rem; text-align: center; display: flex; flex-direction: column; gap: .4rem;
  position: relative;
}
.stat-carte--haut { border-color: var(--or); box-shadow: 0 0 24px rgba(212,162,78,.12) inset; }
.stat-nom { font-family: var(--inter); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-2); }
.stat-val { font-family: var(--cinzel); font-size: 2.4rem; line-height: 1; color: var(--ivoire); }
.stat-mod { font-family: var(--cinzel); color: var(--or-vif); font-size: 1.05rem; }

.jauges { max-width: 760px; margin: 3rem auto 0; display: grid; gap: 1.1rem; }
.jauge { display: grid; grid-template-columns: 150px 1fr 130px; gap: 1.2rem; align-items: center; }
.jauge-nom { font-family: var(--inter); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivoire-2); text-align: right; }
.jauge-fond { height: 6px; background: rgba(212,162,78,.15); overflow: hidden; }
.jauge-barre { height: 100%; width: 100%; background: linear-gradient(to right, var(--or), var(--or-vif)); transform: scaleX(0); transform-origin: left; }
.jauge-val { font-family: var(--cinzel); color: var(--or-vif); }
.jauge-val small { color: var(--ivoire-2); font-family: var(--inter); font-size: .65rem; letter-spacing: .08em; }

.fiche-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1100px; margin: 4rem auto 0; }
.fiche-bloc h3 { font-family: var(--cinzel); letter-spacing: .12em; font-size: 1.2rem; color: var(--or); margin-bottom: 1.2rem; }
.comp-liste, .cap-liste { list-style: none; }
.comp-liste li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px dotted rgba(212,162,78,.25);
}
.comp-liste em { color: var(--ivoire-2); font-size: .85em; }
.comp-liste strong { font-family: var(--cinzel); color: var(--or-vif); }
.cap-liste li { padding: .55rem 0 .55rem 1.4rem; position: relative; font-size: 1.1rem; }
.cap-liste li::before { content: "🐾"; position: absolute; left: 0; top: .75rem; font-size: .7rem; filter: sepia(1) saturate(3) hue-rotate(-12deg); }
.cap-liste strong { color: var(--or-vif); font-weight: 600; }

/* ---------- LA VOIE DE LIA — frise niv 1 → 12 ---------- */
.voie { padding: 10rem 6vw; max-width: 1100px; margin: 0 auto; }
.voie-sous {
  text-align: center; color: var(--ivoire-2); margin-top: 1.4rem;
  font-size: 1.2rem;
}
.voie-sous em { color: var(--or); font-size: .85em; }

.frise { position: relative; margin-top: 4.5rem; }
.frise-ligne {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: rgba(212,162,78,.15);
}
.frise-trace {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--or), var(--or-vif));
  transform: scaleY(0); transform-origin: top;
}
.jalon {
  position: relative; width: 50%; padding: 0 3.2rem 3.2rem 0;
}
.jalon:nth-child(odd) { left: 50%; padding: 0 0 3.2rem 3.2rem; }
.jalon-num {
  position: absolute; top: 0; right: -23px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--cinzel); font-weight: 700; font-size: 1.15rem;
  color: var(--or-vif); background: var(--fond);
  border: 1px solid var(--or);
  box-shadow: 0 0 16px rgba(212,162,78,.25);
}
.jalon:nth-child(odd) .jalon-num { right: auto; left: -23px; }
.jalon-carte {
  border: 1px solid rgba(212,162,78,.3); background: rgba(21,18,26,.6);
  padding: 1.6rem 1.7rem; border-radius: 2px;
}
.jalon-carte--cle { border-color: var(--or); box-shadow: 0 0 26px rgba(212,162,78,.1) inset; }
.jalon-carte h3 {
  font-family: var(--cinzel); font-size: 1.18rem; letter-spacing: .08em;
  color: var(--or-vif); margin-bottom: .8rem;
}
.jalon-carte h3 small {
  display: block; font-family: var(--inter); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-2);
  margin-top: .35rem;
}
.jalon-gain { font-size: 1.08rem; margin-bottom: .8rem; }
.jalon-faire { font-size: 1.05rem; color: var(--ivoire-2); }
.jalon-faire strong, .jalon-gain strong { color: var(--ivoire); }
.jalon-faire em, .jalon-gain em { color: var(--or-vif); }

/* dépliants */
.jalon-detail { margin-top: .9rem; border: 1px dashed rgba(212,162,78,.35); padding: .7rem 1rem; }
.jalon-detail summary {
  cursor: pointer; font-family: var(--inter); font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--or);
  list-style: none;
}
.jalon-detail summary::before { content: "🐾 "; font-size: .85em; }
.jalon-detail[open] summary { margin-bottom: .8rem; }
.jalon-detail ul, .jalon-detail ol { padding-left: 1.2rem; font-size: 1rem; color: var(--ivoire-2); }
.jalon-detail li { margin-bottom: .45rem; }
.jalon-detail li strong { color: var(--ivoire); }
.jalon-detail p { font-size: 1rem; color: var(--ivoire-2); margin-bottom: .7rem; }
.jalon-detail p strong { color: var(--or-vif); }

/* niveaux secrets (10 et 12) */
.jalon-carte--eveil { border-color: rgba(168,50,46,.55); }
.jalon-verrou {
  font-family: var(--inter); font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ivoire-2);
  padding: 1.2rem 0; text-align: center;
}
html[data-mode="mj"] .jalon-verrou { display: none; }
html[data-mode="joueurs"] .jalon-mj { display: none; }
html[data-mode="joueurs"] .jalon-carte--eveil h3 { filter: blur(0px); }

/* ---------- Vis-à-vis des jalons : médaillon + panthère + piste ---------- */
.jalon-vis {
  position: absolute; top: 0; left: 100%; width: 100%;
  padding-left: 3.2rem;
  display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none;
}
.jalon:nth-child(odd) .jalon-vis {
  left: auto; right: 100%;
  padding-left: 0; padding-right: 3.2rem;
  align-items: flex-end;
}
/* connecteur orné : de la ligne centrale au médaillon */
.vis-lien {
  position: absolute; top: 74px; left: 0; width: 3.2rem; height: 1px;
  background: linear-gradient(90deg, rgba(212,162,78,.75), rgba(212,162,78,.15));
  transform-origin: left center;
}
.vis-lien::before {
  content: "✦"; position: absolute; left: -4px; top: -11px;
  color: var(--or); font-size: .8rem;
}
.jalon:nth-child(odd) .vis-lien {
  left: auto; right: 0;
  background: linear-gradient(270deg, rgba(212,162,78,.75), rgba(212,162,78,.15));
  transform-origin: right center;
}
.jalon:nth-child(odd) .vis-lien::before { left: auto; right: -4px; }
/* médaillon illustré */
.vis-medaillon {
  width: clamp(110px, 13vw, 158px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; position: relative;
  border: 1px solid var(--or);
  box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 22px rgba(212,162,78,.15);
}
.vis-medaillon::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(212,162,78,.4); border-radius: 50%;
}
.vis-medaillon img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  will-change: transform;
}
html[data-mode="joueurs"] .jalon--secret .vis-medaillon img { filter: blur(9px) brightness(.55); }
/* la panthère qui s'éveille, niveau après niveau */
.vis-panthere {
  margin-top: .4rem; object-fit: contain;
  filter: drop-shadow(0 0 calc(var(--lueur, 6) * 1px) rgba(240,192,96,.55));
}
/* piste d'empreintes serpentine vers le jalon suivant */
.vis-piste { position: relative; width: 75%; height: 100px; margin-top: .4rem; }
.vis-piste img {
  position: absolute; width: 22px; opacity: .55;
  filter: drop-shadow(0 0 4px rgba(240,192,96,.35));
}
@media (max-width: 900px) { .jalon-vis { display: none; } }

.voie-erreurs {
  max-width: 700px; margin: 3rem auto 0;
  border: 1px solid rgba(168,50,46,.45); background: rgba(25,10,12,.45);
  padding: 1.8rem 2rem;
}
.voie-erreurs h3 { font-family: var(--cinzel); font-size: 1.1rem; letter-spacing: .1em; color: var(--or-vif); margin-bottom: 1rem; }
.voie-erreurs ul { list-style: none; }
.voie-erreurs li { padding: .4rem 0; font-size: 1.05rem; color: var(--ivoire-2); }
.voie-erreurs li strong { color: var(--ivoire); }

/* ---------- Détail mécanique des paliers (jauge) ---------- */
.jb-meca {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 640px; margin: 1.6rem auto 0; text-align: left;
}
.jb-meca-col { border: 1px solid rgba(212,162,78,.3); padding: 1rem 1.2rem; background: rgba(21,18,26,.5); }
.jb-meca-bonus { border-left: 3px solid var(--or); }
.jb-meca-contraintes { border-left: 3px solid var(--rouge); }
.jb-meca h4 {
  font-family: var(--inter); font-size: .68rem; letter-spacing: .25em;
  text-transform: uppercase; margin-bottom: .6rem;
}
.jb-meca-bonus h4 { color: var(--or-vif); }
.jb-meca-contraintes h4 { color: #e0584f; }
.jb-meca ul { list-style: none; font-size: .98rem; color: var(--ivoire); }
.jb-meca li { padding: .22rem 0 .22rem 1rem; position: relative; }
.jb-meca li::before { content: "·"; position: absolute; left: 0; color: var(--or); }
.jb-regles { max-width: 640px; margin: 1.6rem auto 0; text-align: left; }
.jb-regles .jalon-detail { background: rgba(21,18,26,.5); }

/* ---------- Codex (tooltips de l'univers) ---------- */
.recit-codex { margin-top: 2rem; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.codex {
  position: relative; cursor: help;
  font-family: var(--inter); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--or); border-bottom: 1px dotted var(--or);
  padding-bottom: 2px;
}
.codex-bulle {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 270px; padding: 1rem 1.2rem; z-index: 90;
  background: #171019; border: 1px solid var(--or);
  font-family: var(--cormorant); font-size: 1.02rem; letter-spacing: 0; text-transform: none;
  color: var(--ivoire); line-height: 1.5; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, transform .3s, visibility .3s;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.codex-bulle::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--or);
}
.codex:hover .codex-bulle, .codex:focus .codex-bulle {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* ---------- Modale (fiche Sély) ---------- */
.pnj-bouton {
  margin: .4rem 1.6rem 1.4rem;
  font-family: var(--inter); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or-vif); border: 1px solid rgba(212,162,78,.5); padding: .55rem 1rem;
  transition: background .3s, border-color .3s;
}
.pnj-bouton:hover { background: rgba(212,162,78,.12); border-color: var(--or-vif); }
.modale { position: fixed; inset: 0; z-index: 400; display: none; }
.modale.ouverte { display: block; }
.modale-fond { position: absolute; inset: 0; background: rgba(5,4,8,.82); backdrop-filter: blur(4px); }
.modale-carte {
  position: relative; max-width: 760px; max-height: 86vh; overflow-y: auto;
  margin: 7vh auto; padding: 3rem clamp(1.6rem, 4vw, 3.2rem);
  background: #14101a; border: 1px solid var(--or);
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
.modale-carte h3 { font-family: var(--cinzel); font-size: 1.7rem; letter-spacing: .12em; text-align: center; color: var(--ivoire); }
.modale-sous { text-align: center; font-family: var(--inter); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-2); margin: .6rem 0 1.8rem; }
.modale-carte h4 { font-family: var(--cinzel); font-size: 1.05rem; letter-spacing: .1em; color: var(--or-vif); margin: 1.8rem 0 .6rem; }
.modale-carte p { font-size: 1.08rem; color: var(--ivoire); }
.modale-carte p strong { color: var(--or-vif); }
.modale-citation { font-style: italic; color: var(--or-vif) !important; text-align: center; padding: .8rem 1rem; }
.modale-fermer {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(212,162,78,.5); color: var(--or); font-size: 1rem;
}
.modale-fermer:hover { background: rgba(212,162,78,.15); }
.bloc-stats { border: 1px solid rgba(212,162,78,.35); background: rgba(21,18,26,.6); padding: 1.4rem 1.6rem; }
.bloc-stats p { font-size: .98rem !important; color: var(--ivoire-2) !important; margin-top: .8rem; }
.bloc-stats p strong { color: var(--ivoire) !important; }
.bs-ligne { display: flex; gap: 1.6rem; flex-wrap: wrap; font-family: var(--cormorant); font-size: 1.05rem; color: var(--ivoire-2); }
.bs-ligne strong { color: var(--or-vif); }
.bs-carac { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.bs-carac span {
  flex: 1; min-width: 64px; text-align: center;
  border: 1px solid rgba(212,162,78,.3); padding: .5rem .2rem;
  font-family: var(--cinzel); color: var(--ivoire-2); font-size: .85rem;
}
.bs-carac em { display: block; font-style: normal; font-family: var(--inter); font-size: .58rem; letter-spacing: .18em; color: var(--ivoire-2); }
.bs-carac strong { display: block; font-size: 1.25rem; color: var(--ivoire); }

/* ============================================================
   CARTES À JOUER GÉANTES — capacités & compétences
   ============================================================ */
.comp-liste li, .cap-liste li { cursor: pointer; transition: background .25s, padding-left .25s; }
.comp-liste li:hover, .cap-liste li:hover { background: rgba(212,162,78,.07); }
.cap-liste li:hover { padding-left: 1.7rem; }
.comp-liste li:hover span:first-child::after, .cap-liste li:hover::after {
  content: " 🐾"; font-size: .65em; opacity: .7;
}

.carte-overlay {
  position: fixed; inset: 0; z-index: 410;
  display: grid; place-items: center;
  background: rgba(5,4,8,.85);
  opacity: 0; visibility: hidden;
  perspective: 1400px;
}
.carte-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.carte3d {
  position: relative; width: min(430px, 90vw); aspect-ratio: 5 / 7;
  transform-style: preserve-3d; will-change: transform;
}
.carte-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--or); border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 36px rgba(212,162,78,.12);
  overflow: hidden;
}
/* dos de carte */
.carte-dos {
  background:
    radial-gradient(circle at 50% 50%, rgba(212,162,78,.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(212,162,78,.05) 0 2px, transparent 2px 14px),
    #14101a;
  display: grid; place-items: center;
}
.carte-dos::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(212,162,78,.45); border-radius: 9px;
}
.carte-dos img { width: 38%; opacity: .9; filter: drop-shadow(0 0 18px rgba(240,192,96,.4)); }
.carte-dos span {
  position: absolute; bottom: 26px;
  font-family: var(--cinzel); letter-spacing: .4em; color: var(--or); font-size: .8rem;
}
/* recto */
.carte-recto {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,162,78,.1), transparent 55%),
    #16121d;
  display: flex; flex-direction: column;
  padding: clamp(1.2rem, 3vw, 1.9rem);
}
.carte-recto::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(212,162,78,.35); border-radius: 9px; pointer-events: none;
}
.carte-type {
  font-family: var(--inter); font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ivoire-2); text-align: center;
}
.carte-titre {
  font-family: var(--cinzel); font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: .08em; color: var(--or-vif); text-align: center;
  margin: .5rem 0 .9rem;
}
.carte-bonus {
  display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap;
  min-height: 44px; margin-bottom: .9rem;
}
.carte-jeton {
  font-family: var(--cinzel); font-size: .82rem;
  border: 1px solid rgba(212,162,78,.5); border-radius: 20px;
  padding: .35rem .75rem; color: var(--ivoire);
  background: rgba(212,162,78,.07);
}
.carte-jeton em { font-style: normal; color: var(--or-vif); margin-left: .35rem; }
.carte-jeton--total { background: var(--or); color: var(--fond); border-color: var(--or); }
.carte-jeton--total em { color: var(--fond); font-weight: 700; }
.carte-de6 {
  width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--or); display: grid; place-items: center;
  font-family: var(--cinzel); font-size: 1.4rem; color: var(--or-vif);
  background: #1d1622; box-shadow: inset 0 0 12px rgba(212,162,78,.15);
}
.carte-regle {
  font-size: 1.02rem; line-height: 1.55; color: var(--ivoire);
  flex: 1; overflow-y: auto; padding-right: .3rem;
}
.carte-regle strong { color: var(--or-vif); }
.carte-table {
  border: 1px dashed rgba(212,162,78,.45);
  padding: .7rem .9rem; margin-top: .8rem;
  background: rgba(212,162,78,.05);
}
.carte-table h5 {
  font-family: var(--inter); font-size: .62rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--or); margin-bottom: .35rem;
}
.carte-table p { font-size: .95rem; color: var(--ivoire-2); }
.carte-cit {
  margin-top: .8rem; text-align: center;
  font-style: italic; font-size: .95rem; color: var(--or);
}
.carte-fermer-x {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(212,162,78,.5); color: var(--or); font-size: .85rem;
}
.carte-fermer-x:hover { background: rgba(212,162,78,.15); }
.carte-indice {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  font-family: var(--inter); font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ivoire-2); opacity: .7;
}
/* halo « charme » */
.carte3d.charme .carte-face { animation: carte-charme 2.4s ease-in-out infinite; }
@keyframes carte-charme {
  0%, 100% { box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 30px rgba(212,162,78,.15); }
  50%      { box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 60px rgba(240,192,96,.4); }
}
/* effets plein écran */
.fx-lame {
  position: absolute; top: 50%; left: -45%; width: 42%; height: 3px;
  background: linear-gradient(90deg, transparent, #e8eef8 30%, #fff 50%, #e8eef8 70%, transparent);
  box-shadow: 0 0 18px rgba(232,238,248,.8);
  border-radius: 2px;
}
.fx-patte { position: absolute; width: 34px; opacity: 0; }
.fx-oeil { position: absolute; top: 38%; width: 110px; transform-origin: center; }
.fx-oeil .fo-pup { position: absolute; inset: 0; margin: auto; height: 37%; width: auto; }
.fx-galop { position: absolute; width: 150px; opacity: .9; filter: drop-shadow(0 0 14px rgba(240,192,96,.7)); }

/* ---------- ZONE SECRÈTE / MJ ---------- */
.secret { position: relative; }

/* Verrou (mode joueurs) */
.secret-verrou { position: relative; min-height: 90vh; display: grid; place-items: center; overflow: hidden; }
.verrou-img { position: absolute; inset: 0; }
.verrou-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(.35) saturate(.8); transform: scale(1.1); }
.verrou-contenu { position: relative; text-align: center; padding: 2rem; max-width: 640px; }
.verrou-cadenas { font-size: 2.6rem; display: block; margin-bottom: 1.4rem; filter: sepia(1) saturate(2.4) hue-rotate(-15deg); }
.verrou-contenu p { margin-top: 1.4rem; color: var(--ivoire-2); font-size: 1.25rem; }
.verrou-contenu strong { color: var(--or-vif); }
.verrou-note { font-family: var(--inter); font-size: .72rem !important; letter-spacing: .25em; text-transform: uppercase; }

html[data-mode="joueurs"] .secret-mj { display: none; }
html[data-mode="mj"] .secret-verrou { display: none; }

/* Esprit-panthère */
/* la carte est ancrée en bas : tout le ciel du haut reste libre pour la constellation */
.esprit { position: relative; min-height: 115vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.esprit-bg { position: absolute; inset: 0; }
.esprit-bg img { width: 100%; height: 126%; object-fit: cover; will-change: transform; }
.esprit-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,10,16,.25), rgba(11,10,16,.85)); }
.esprit-carte {
  position: relative; z-index: 2; max-width: 720px; margin: 8rem 1.5rem 7vh;
  background: rgba(13,11,18,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(212,162,78,.4); padding: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}
.esprit-carte .titre-section { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.esprit-carte .chap-texte { margin-top: 1.2rem; }
.esprit-carte .chap-quote { color: var(--or-vif); }
.esprit-flamme { width: 96px; height: 140px; margin: 0 auto; overflow: visible; }
.esprit-flamme img {
  width: 100%; height: 100%; object-fit: contain;
  transform-origin: 50% 95%;
  animation: flamme-danse 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(240,192,96,.45));
}
@keyframes flamme-danse {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); filter: drop-shadow(0 0 18px rgba(240,192,96,.45)) brightness(1); }
  22%      { transform: scaleY(1.06) scaleX(.97) rotate(-1.2deg); filter: drop-shadow(0 0 26px rgba(240,192,96,.6)) brightness(1.12); }
  48%      { transform: scaleY(.95) scaleX(1.04) rotate(.8deg); filter: drop-shadow(0 0 14px rgba(240,192,96,.4)) brightness(.94); }
  74%      { transform: scaleY(1.08) scaleX(.96) rotate(1.4deg); filter: drop-shadow(0 0 28px rgba(240,192,96,.65)) brightness(1.15); }
}

/* Jauge de bête */
.jauge-bete { padding: 8rem 6vw; max-width: 1000px; margin: 0 auto; text-align: center; }
.jb-titre { font-family: var(--cinzel); font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: .1em; color: var(--ivoire); }
.jb-titre small { display: block; font-size: .45em; color: var(--ivoire-2); letter-spacing: .25em; margin-top: .5rem; }
.jb-sous { color: var(--ivoire-2); max-width: 620px; margin: 1.2rem auto 0; }
.jb-visuel {
  position: relative; aspect-ratio: 1; max-width: 560px; margin: 2.5rem auto 0;
  overflow: hidden; border: 1px solid rgba(212,162,78,.4);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(212,162,78,.10), transparent 65%),
    #0c0a11;
}
/* contain : l'image entière est toujours visible, jamais recadrée */
.jb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px;
  opacity: 0; transform: scale(1.05); transition: opacity .5s, transform .5s;
  filter: drop-shadow(0 0 22px rgba(240,192,96,.18));
}
.jb-img.actif { opacity: 1; transform: scale(1); }
.jb-teinte { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(168,50,46,.55)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.jb-paliers { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.jb-palier {
  font-family: var(--cinzel); font-size: .92rem; letter-spacing: .08em;
  border: 1px solid rgba(212,162,78,.4); padding: .6rem 1.2rem;
  display: flex; align-items: center; gap: .6rem; color: var(--ivoire-2);
  transition: all .3s;
}
.jb-palier span { font-size: .8em; color: var(--or); }
.jb-palier:hover { border-color: var(--or-vif); color: var(--ivoire); }
.jb-palier.actif { background: var(--or); color: var(--fond); border-color: var(--or); }
.jb-palier.actif span { color: var(--fond); }
.jb-desc { margin: 1.6rem auto 0; max-width: 560px; font-style: italic; color: var(--ivoire); min-height: 3.4em; }

/* Accroches + PNJ */
.accroches, .pnj { padding: 4rem 6vw 6rem; max-width: 1200px; margin: 0 auto; }
.accroches h3, .pnj h3 { font-family: var(--cinzel); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: .12em; text-align: center; margin-bottom: 2.5rem; color: var(--ivoire); }
.accroches-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.accroche-carte {
  border: 1px solid rgba(168,50,46,.45); background: rgba(25,10,12,.5);
  padding: 1.8rem; transition: transform .3s, border-color .3s;
}
.accroche-carte:hover { transform: translateY(-6px); border-color: var(--rouge); }
.accroche-carte h4 { font-family: var(--cinzel); font-size: 1.02rem; letter-spacing: .08em; color: var(--or-vif); margin-bottom: .9rem; }
.accroche-carte p { font-size: 1.05rem; color: var(--ivoire-2); }

.pnj-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.pnj-carte { border: 1px solid rgba(212,162,78,.35); background: rgba(21,18,26,.6); overflow: hidden; }
.pnj-img { aspect-ratio: 16/10; overflow: hidden; }
.pnj-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.pnj-carte:hover .pnj-img img { transform: scale(1.05); }
.pnj-carte h4 { font-family: var(--cinzel); font-size: 1.25rem; letter-spacing: .1em; color: var(--or-vif); padding: 1.4rem 1.6rem .2rem; }
.pnj-role { font-family: var(--inter); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-2); padding: 0 1.6rem; }
.pnj-carte > p:last-child { padding: .9rem 1.6rem 1.6rem; font-size: 1.08rem; color: var(--ivoire); }

/* ---------- FOOTER ---------- */
.footer { padding: 7rem 1.5rem 4rem; text-align: center; border-top: 1px solid rgba(212,162,78,.25); position: relative; overflow: hidden; }
.footer-pattes {
  position: absolute; top: 1.2rem; left: 0; width: 100%; height: 56px;
  display: flex; justify-content: center; opacity: .65;
}
.footer-pattes img {
  height: 100%; object-fit: contain;
  clip-path: inset(0 100% 0 0);
}
.footer-pattes.joue img { animation: marche-revele 5s ease-in-out infinite; }
@keyframes marche-revele {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  55%  { clip-path: inset(0 0 0 0); opacity: 1; }
  82%  { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
.footer-fin { font-family: var(--cinzel); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: .14em; }
.footer-fin em { color: var(--or-vif); }
.footer-devise { font-style: italic; color: var(--ivoire-2); margin-top: 1.4rem; max-width: 560px; margin-inline: auto; }
.footer-credit { font-family: var(--inter); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(154,143,125,.6); margin-top: 3rem; }

/* ============================================================
   ANIMATIONS FÉLINES
   ============================================================ */

/* ---------- 1. Traces de pattes au clic ---------- */
.trace-patte {
  position: fixed; z-index: 250; width: 26px; height: 26px;
  pointer-events: none;
  animation: trace-vanish 1.5s ease-out forwards;
}
.trace-patte svg { width: 100%; height: 100%; fill: var(--or); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
@keyframes trace-vanish {
  0%   { transform: translate(-50%,-50%) scale(.45); opacity: 0; }
  14%  { transform: translate(-50%,-50%) scale(1.08); opacity: .85; }
  24%  { transform: translate(-50%,-50%) scale(1); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* ---------- 2. Queue tabby sur le burger ---------- */
.burger-queue {
  position: absolute; top: 44px; left: 50%;
  width: 22px; height: 66px; z-index: -1;
  object-fit: contain;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  transition: opacity .3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  animation: queue-balance 4.5s ease-in-out infinite;
}
.burger:hover .burger-queue { animation: queue-fretille .55s ease-in-out infinite; }
.burger.ouvert .burger-queue { opacity: 0; }
@keyframes queue-balance {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50%      { transform: translateX(-50%) rotate(5deg); }
}
@keyframes queue-fretille {
  0%, 100% { transform: translateX(-50%) rotate(-13deg); }
  50%      { transform: translateX(-50%) rotate(14deg); }
}

/* ---------- 3. Titres de chapitres « griffés » au survol ----------
   Un coup de patte : 3 lacérations parallèles en diagonale qui se
   TRACENT le long de leur propre axe (du haut vers le bas), presque
   simultanément, puis s'estompent. */
.chap-titre { position: relative; }
.griffures { position: absolute; inset: -18% -4%; pointer-events: none; }
.griffures i {
  position: absolute; width: 2.5px; opacity: 0;
  background: linear-gradient(to bottom, var(--or-vif), var(--or-vif) 60%, transparent);
  border-radius: 2px;
  transform: rotate(24deg) scaleY(0);
  transform-origin: top center;
}
/* 3 griffes parallèles, légèrement décalées comme les doigts d'une patte */
.griffures i:nth-child(1) { left: 34%; top: -6%; height: 112%; }
.griffures i:nth-child(2) { left: 46%; top: -12%; height: 128%; width: 3px; }
.griffures i:nth-child(3) { left: 58%; top: -4%; height: 108%; }
.chap-titre:hover .griffures i:nth-child(1) { animation: griffe-trace .75s ease-out .04s; }
.chap-titre:hover .griffures i:nth-child(2) { animation: griffe-trace .75s ease-out 0s; }
.chap-titre:hover .griffures i:nth-child(3) { animation: griffe-trace .75s ease-out .08s; }
@keyframes griffe-trace {
  0%   { opacity: 0;   transform: rotate(24deg) scaleY(0); }
  8%   { opacity: .95; }
  30%  { transform: rotate(24deg) scaleY(1); opacity: .9; }
  65%  { opacity: .75; }
  100% { opacity: 0;   transform: rotate(24deg) scaleY(1); }
}

/* ---------- 4. Yeux félins du footer (pupilles suivent la souris) ---------- */
.chat-yeux {
  width: 250px; margin: 0 auto 1.2rem;
  display: flex; gap: 4px; justify-content: center;
}
.chat-yeux .oeil {
  position: relative; flex: 1;
  transform-origin: center;
  animation: clignement 6s ease-in-out infinite;
}
.chat-yeux .oeil-fond {
  width: 100%; display: block;
  filter: drop-shadow(0 0 16px rgba(212,162,78,.35));
}
.chat-yeux .pupille {
  position: absolute; inset: 0; margin: auto;
  height: 37%; width: auto;
  transition: transform .15s ease-out;
}
.chat-yeux .oeil--d { animation-delay: .12s; }
@keyframes clignement {
  0%, 91%, 100% { transform: scaleY(1); }
  93.5%         { transform: scaleY(.06); }
  96%           { transform: scaleY(1); }
}

/* ---------- 6. Étirement de réveil (zone MJ) ---------- */
.reveil {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: rgba(8, 7, 12, .96);
  opacity: 0; visibility: hidden;
}
.reveil-chat { position: relative; width: min(420px, 64vw); aspect-ratio: 1; }
.reveil-chat .pose {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 0 24px rgba(240,192,96,.35));
}
.reveil-ombre {
  position: absolute; left: 12%; right: 12%; bottom: 6%;
  height: 10px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,162,78,.22), transparent 70%);
}

/* ---------- 7. Constellation féline (section Esprit-Panthère) ----------
   Après 3 s d'immobilité, les étoiles du fond se relient
   en silhouette de panthère. Tout mouvement la dissipe. */
.constellation { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cst-amb { fill: #f0c060; animation: cst-scintille ease-in-out infinite alternate; }
@keyframes cst-scintille { from { opacity: .15; } to { opacity: .8; } }
.cst-pt {
  fill: #f0c060; opacity: .5;
  animation: cst-flou ease-in-out infinite alternate;
}
.cst-ligne {
  stroke: #f0c060; stroke-width: 2; stroke-linecap: round;
  opacity: 0;
  animation: cst-flou ease-in-out infinite alternate;
}
/* flou « respirant » : chaque point/trait oscille entre net et diffus
   (durées et délais randomisés en JS) */
@keyframes cst-flou {
  from { filter: blur(.2px) drop-shadow(0 0 3px rgba(240,192,96,.85)); }
  to   { filter: blur(2.4px) drop-shadow(0 0 8px rgba(240,192,96,.95)); }
}
.cst-oeil { fill: #fff3d6; opacity: 0; filter: drop-shadow(0 0 7px rgba(240,192,96,.95)); }

/* ---------- 8. Easter egg : l'esprit-panthère traverse l'écran ----------
   Déclenché en tapant « lia » ou par triple-clic sur le logo. */
.egg-chat {
  position: fixed; left: 0; top: 40vh; z-index: 280;
  width: 240px; height: 240px; pointer-events: none; display: none;
  will-change: transform;
}
.egg-int { position: relative; width: 100%; height: 100%; }
.egg-int img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 0 18px rgba(240, 192, 96, .7)) drop-shadow(0 0 44px rgba(212, 162, 78, .35));
}
.egg-particule {
  position: fixed; z-index: 279; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #ffe9b0 0%, #f0c060 45%, rgba(240,192,96,0) 75%);
}

/* ---------- 5. Curseur qui pétrit (patounes) après inactivité ---------- */
.cursor.petrit:not(.survol) img { animation: petrit-balance 1.15s ease-in-out infinite; }
@keyframes petrit-balance {
  0%   { transform: rotate(-20deg) scale(.96) translateY(0); }
  25%  { transform: rotate(-14deg) scale(1.0) translateY(2px); }
  50%  { transform: rotate(-6deg)  scale(1.04) translateY(0); }
  75%  { transform: rotate(-14deg) scale(1.0) translateY(2px); }
  100% { transform: rotate(-20deg) scale(.96) translateY(0); }
}

/* ---------- 9. Dé poussé de la table (fiche de jeu) ---------- */
.de-perchoir {
  position: absolute; top: -54px; right: 9%;
  width: 130px; height: 58px;
  z-index: 3; overflow: visible;
}
.de-d20 {
  position: absolute; right: 6px; bottom: 0;
  width: 46px; height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)) drop-shadow(0 0 8px rgba(240,192,96,.25));
}
.de-patte {
  position: absolute; right: -28px; bottom: 2px;
  width: 56px; opacity: 0;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.6));
}

/* ---------- 10. Empreintes de scroll (marge du récit) ---------- */
.marge-pattes { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.marge-patte {
  position: fixed; width: 30px;
  opacity: 0;
  transform: rotate(var(--rot, 0deg));
  animation: marge-patte 2.5s ease forwards;
  filter: drop-shadow(0 0 6px rgba(240,192,96,.4));
}
@keyframes marge-patte {
  0%   { opacity: 0; scale: .55; }
  14%  { opacity: .85; scale: 1; }
  55%  { opacity: .5; }
  100% { opacity: 0; scale: 1; }
}

/* ---------- 11. Pupilles dans le noir (chapitre V) ---------- */
.yeux-rage {
  position: absolute; top: 13%; left: 11%;
  width: clamp(110px, 13vw, 180px);
  display: flex; gap: 5px;
  opacity: 0; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(212,162,78,.5));
}
.yr-oeil { position: relative; flex: 1; transform-origin: center; }
.yr-oeil > img:first-child { width: 100%; display: block; }
.yr-pup { position: absolute; inset: 0; margin: auto; height: 37%; width: auto; }

/* ---------- 12. La panthère te suit (zone MJ) ---------- */
.suiveuse {
  position: fixed; bottom: 6px; left: 0;
  width: 96px; height: 96px;
  z-index: 65; pointer-events: none; opacity: 0;
  will-change: transform;
}
.suiveuse img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 0 10px rgba(240,192,96,.55));
}
.suiveuse .sv-repos { animation: sv-respire 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sv-respire { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }

/* ---------- 13. Chasse au papillon (hero) ---------- */
.papillon {
  position: fixed; top: 0; left: 0;
  width: 46px; height: 46px;
  z-index: 80; pointer-events: none; opacity: 0;
  transition: opacity .5s;
  will-change: transform;
  filter: drop-shadow(0 0 10px rgba(240,192,96,.6));
}
/* battement d'ailes : alternance des 2 frames (décalées d'une demi-période) */
.papillon img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  animation: pap-bat .36s steps(1) infinite;
}
.papillon .pap-2 { animation-delay: -.18s; }
.papillon.panique img { animation-duration: .13s; }
.papillon.panique .pap-2 { animation-delay: -.065s; }
@keyframes pap-bat { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- 14. Jauge de Bête vivante ---------- */
.vignette-rage {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(130,18,14,.6) 100%);
}
.griffe-ecran {
  position: fixed; width: 40vw; height: 5px;
  z-index: 71; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(240,192,96,.95), rgba(168,50,46,.85) 55%, transparent);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(168,50,46,.65), 0 8px 0 -3px rgba(168,50,46,.5), 0 -8px 0 -3px rgba(168,50,46,.5);
  animation: griffe-ecran 1.5s ease-out forwards;
}
@keyframes griffe-ecran {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  8%   { opacity: 1; }
  38%  { clip-path: inset(0 0 0 0); }
  70%  { opacity: .8; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

/* ---------- 15. Lune aux yeux (hero) ---------- */
.hero-content { pointer-events: none; } /* laisse passer le survol vers la lune */
.lune-zone {
  position: absolute; left: 3%; top: 8%;
  width: 18%; aspect-ratio: 1;
  z-index: 4; border-radius: 50%;
}
.lune-voile {
  position: absolute; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,15,28,.88) 42%, transparent 72%);
  opacity: 0;
}
.lune-paire {
  position: absolute; inset: 0;
  display: flex; gap: 4%; align-items: center; justify-content: center;
  padding: 0 16%;
}
.lune-oeil { position: relative; flex: 1; transform-origin: center; transform: scaleY(0); }
.lune-oeil > img:first-child { width: 100%; display: block; }
.lo-pup { position: absolute; inset: 0; margin: auto; height: 37%; width: auto; }

/* ---------- 16. Titre qui ronronne ---------- */
.hero-titre.ronronne .char { animation: ronron 3.4s ease-in-out infinite; }
@keyframes ronron {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 1.15rem; }
  .mondes-grille { grid-template-columns: 1fr; }
  .mondes-visuel { order: -1; aspect-ratio: 4/3; }
  .stats-grille { grid-template-columns: repeat(3, 1fr); }
  .fiche-colonnes, .pnj-grille { grid-template-columns: 1fr; }
  .accroches-grille { grid-template-columns: 1fr; }
  .jauge { grid-template-columns: 110px 1fr 110px; gap: .8rem; }
  .chap-card { margin: 10vh 5vw; }
  .drawer-preview { display: none; }
  .frise-ligne { left: 22px; }
  .jalon, .jalon:nth-child(odd) { width: 100%; left: 0; padding: 0 0 2.6rem 3.6rem; }
  .jalon-num, .jalon:nth-child(odd) .jalon-num { left: 0; right: auto; }
  .jb-meca { grid-template-columns: 1fr; }
  .slide { width: 78vw; }
}
@media (max-width: 540px) {
  .stats-grille { grid-template-columns: repeat(2, 1fr); }
  .identite-strip { gap: 1.4rem 2rem; }
  .jauge { grid-template-columns: 1fr; gap: .3rem; text-align: left; }
  .jauge-nom { text-align: left; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .preloader-pattes span { animation: none; opacity: 1; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
