/* =====================================================================
   Yana’s Quest — feuille de styles du site officiel (Liito Gaming)
   Principe : la forêt est immense, Yana est petite.
   La lumière bleue est rare : elle appartient aux perles.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* couleurs */
  --ink: #0B0D11;          /* nuit */
  --ink-2: #10151a;        /* nuit plus claire, sections secondaires */
  --forest: #2F4A3D;       /* vert forêt (charte Liito Gaming) */
  --bark: #5B4636;         /* brun écorce (filets) */
  --snow: #eef2f4;         /* texte principal */
  --text: #c9d2d8;         /* texte courant */
  --soft: #9aa7b0;         /* texte secondaire (jamais sous 15 px) */
  --line: rgba(238,242,244,.12);
  --pearl: #8fd0ff;        /* la lumière rare */
  --blue: #2F98E4;
  --warm: #f1c27d;         /* l’espoir, le foyer */
  /* typographie */
  --f-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(3.4rem, 1.6rem + 7.4vw, 9.25rem);
  --fs-h1: clamp(3rem, 1.8rem + 5vw, 6.5rem);
  --fs-h2: clamp(2.3rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem);
  --fs-lede: clamp(1.2rem, 1.05rem + .55vw, 1.5rem);
  --fs-body: clamp(1.06rem, 1rem + .2vw, 1.19rem);
  --fs-small: .95rem;
  --fs-eyebrow: .82rem;
  /* espaces */
  --gutter: clamp(20px, 5vw, 72px);
  --wrap: min(1360px, 100% - 2 * var(--gutter));
  --read: 62ch;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 104px;
  --section: clamp(96px, 12vw, 200px);
  --nav-h: 84px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* le monde de Yana est nocturne dans les deux thèmes ; le thème clair ne change que les pages de texte */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --doc-bg: #f2f4f1; --doc-ink: #14191e; --doc-soft: #4d5962; } }
:root, :root[data-theme="dark"] { --doc-bg: var(--ink); --doc-ink: var(--snow); --doc-soft: var(--soft); }
:root[data-theme="light"] { --doc-bg: #f2f4f1; --doc-ink: #14191e; --doc-soft: #4d5962; }

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--pearl); outline-offset: 4px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--snow); color: var(--ink); padding: 12px 18px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.sprite { image-rendering: pixelated; image-rendering: crisp-edges; }

/* typographie partagée */
.eyebrow { margin: 0 0 var(--s-3); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.display { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: var(--fs-display); line-height: .9; letter-spacing: .01em; color: var(--snow); }
.h1 { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: var(--fs-h1); line-height: .95; color: var(--snow); }
.h2 { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: var(--fs-h2); line-height: 1.02; color: var(--snow); }
.h3 { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: var(--fs-h3); line-height: 1.12; color: var(--snow); }
.lede { margin-top: var(--s-3); font-size: var(--fs-lede); line-height: 1.55; color: var(--text); max-width: 40ch; }
.prose { max-width: var(--read); }
.prose p + p { margin-top: 1.1em; }
.quote { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.35; color: var(--snow); }
.quote em { font-style: normal; color: var(--pearl); }
.link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--snow); padding: 6px 0; border-bottom: 1px solid rgba(238,242,244,.35); transition: border-color .3s var(--ease), gap .3s var(--ease); }
.link:hover { border-color: var(--snow); gap: 16px; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; background: var(--snow); color: var(--ink); transition: background .3s var(--ease), transform .2s var(--ease); }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.textbtn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 700; color: var(--snow); border-bottom: 1px solid rgba(238,242,244,.35); }
.textbtn:hover { border-color: var(--snow); }
.textbtn[aria-pressed="true"] { border-color: var(--pearl); color: var(--pearl); }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 3. La perle (seule lumière bleue du site) ---------- */
.pearl { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff 0 14%, #cfeaff 22%, var(--blue) 62%, #0f4f86 100%); box-shadow: 0 0 10px rgba(47,152,228,.65); }
.find { position: absolute; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; animation: drift 5s ease-in-out infinite; }
.find .pearl { width: 16px; height: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.find:hover .pearl, .find:focus-visible .pearl { transform: scale(1.35); box-shadow: 0 0 18px rgba(143,208,255,.9); }
.find::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(143,208,255,.5); animation: ring 3.6s ease-out infinite; }
.find.got { pointer-events: none; animation: take .7s var(--ease) forwards; }
.find.inline { position: relative; display: inline-grid; vertical-align: middle; }
@keyframes drift { 50% { transform: translateY(-8px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes take { 40% { transform: scale(1.8); } 100% { transform: scale(0) translateY(-30px); opacity: 0; } }
.burst { position: fixed; z-index: 95; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; background: var(--pearl); box-shadow: 0 0 8px var(--blue); }

/* ---------- 4. Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.nav.solid { background: rgba(11,13,17,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav .bar { width: var(--wrap); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: var(--s-4); }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--snow); }
.mark b { font-family: var(--f-title); font-weight: 700; font-size: 1.4rem; letter-spacing: .08em; }
.mark small { margin-top: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--soft); }
.nav ul { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { position: relative; display: block; padding: 8px 0; font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--text); transition: color .3s var(--ease); }
.nav ul a:hover { color: var(--snow); }
.nav ul a[aria-current="page"] { color: var(--snow); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--pearl); box-shadow: 0 0 8px rgba(143,208,255,.8); }
.pearls { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; color: var(--snow); white-space: nowrap; text-decoration: none; }
.pearls small { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--soft); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; place-items: center; color: var(--snow); }
.menu-btn svg { width: 26px; height: 26px; }
.menu { display: none; }
@media (max-width: 1080px) {
  :root { --nav-h: 72px; }
  .nav ul.main, .nav .pearls.desk { display: none; }
  .menu-btn { display: grid; }
  .menu { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px); background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .menu.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .menu .top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
  .menu nav { margin-top: auto; margin-bottom: auto; }
  .menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
  .menu li { counter-increment: m; border-bottom: 1px solid var(--line); }
  .menu li a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; font-family: var(--f-title); font-weight: 700; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; text-decoration: none; color: var(--snow); }
  .menu li a::before { content: "0" counter(m); font-family: var(--f-body); font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--soft); }
  .menu li a[aria-current="page"] { color: var(--pearl); }
  .menu .foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; color: var(--soft); font-size: var(--fs-small); }
  .menu.open li { animation: menuin .6s var(--ease) both; }
  .menu.open li:nth-child(2) { animation-delay: .05s; } .menu.open li:nth-child(3) { animation-delay: .1s; } .menu.open li:nth-child(4) { animation-delay: .15s; } .menu.open li:nth-child(5) { animation-delay: .2s; }
}
@keyframes menuin { from { opacity: 0; transform: translateY(20px); } }
body.menu-open { overflow: hidden; }

/* ---------- 5. Accueil : la scène d’ouverture ---------- */
.opening { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; }
.opening .photo { position: absolute; inset: 0; z-index: -3; background: url(/img/village.webp) 66% 62% / cover no-repeat; transform-origin: 60% 80%; }
.opening::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  linear-gradient(90deg, rgba(11,13,17,.82) 0%, rgba(11,13,17,.45) 34%, rgba(11,13,17,0) 58%),
  linear-gradient(180deg, rgba(11,13,17,.55) 0%, rgba(11,13,17,0) 22%, rgba(11,13,17,0) 86%, var(--ink) 100%); }
.opening canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.opening .copy { position: absolute; left: 0; right: 0; top: clamp(150px, 24vh, 260px); width: var(--wrap); margin-inline: auto; pointer-events: none; }
.opening .copy > * { pointer-events: auto; max-width: 15ch; }
.opening .copy .presents { max-width: none; }
.opening .display { text-shadow: 0 8px 50px rgba(0,0,0,.55); }
.opening .display span { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(10px); animation: titlein 1.6s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .12s); }
@keyframes titlein { to { opacity: 1; transform: none; filter: none; } }
.opening .promise { margin-top: var(--s-3); max-width: 30ch; font-size: var(--fs-lede); line-height: 1.5; color: #dfe6ea; text-shadow: 0 2px 20px rgba(0,0,0,.7); opacity: 0; animation: fadein 1.4s var(--ease) forwards 1.3s; }
.opening .actions { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; max-width: none; opacity: 0; animation: fadein 1.4s var(--ease) forwards 1.6s; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.walk-hint { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: var(--fs-small); color: rgba(238,242,244,.85); text-shadow: 0 1px 10px rgba(0,0,0,.6); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.walking .walk-hint { opacity: 1; }
.walking .copy { opacity: .25; transition: opacity .8s var(--ease); }
.walking .copy:hover { opacity: 1; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin: 0 2px; border-radius: 5px; border: 1px solid rgba(238,242,244,.4); border-bottom-width: 2px; font: 700 .8rem var(--f-body); color: var(--snow); background: rgba(11,13,17,.45); }
@media (max-width: 760px) {
  .opening .photo { background-position: 64% 72%; }
  .opening::before { background: linear-gradient(180deg, rgba(11,13,17,.85) 0%, rgba(11,13,17,.55) 38%, rgba(11,13,17,0) 58%, rgba(11,13,17,0) 86%, var(--ink) 100%); }
  .opening .copy { top: calc(var(--nav-h) + 28px); }
  .opening .copy > * { max-width: 100%; }
  .opening .actions { margin-top: var(--s-3); }
}

/* ---------- 6. Accueil : déclaration et index ---------- */
.statement { padding: var(--section) 0 calc(var(--section) * .6); }
.statement .wrap { text-align: center; }
.statement .quote { max-width: 22ch; margin-inline: auto; }
.statement p.quote + p { margin: var(--s-4) auto 0; max-width: 44ch; font-size: var(--fs-lede); line-height: 1.6; color: var(--soft); }
.statement .rule-v { width: 1px; height: 72px; margin: 0 auto var(--s-4); background: linear-gradient(var(--line), rgba(238,242,244,.4)); }
.index { padding-bottom: var(--section); }
.index .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: start; margin-top: var(--s-5); }
.index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index li a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 18px; padding: 30px 0; text-decoration: none; color: var(--snow); }
.index .no { font-size: .9rem; font-weight: 700; letter-spacing: .1em; color: var(--soft); }
.index .t { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.9rem); line-height: 1.05; transition: color .4s var(--ease), transform .5s var(--ease); }
.index .d { display: block; margin-top: 8px; font-family: var(--f-body); font-weight: 500; font-size: 1.02rem; color: var(--soft); }
.index .ar { width: 22px; height: 22px; fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease), stroke .4s var(--ease); }
.index li a:hover .t, .index li a:focus-visible .t, .index li.on .t { transform: translateX(10px); }
.index li a:hover .ar, .index li.on .ar { stroke: var(--snow); transform: translateX(4px); }
.index .preview { position: sticky; top: calc(var(--nav-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--ink-2); }
.index .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 2.4s var(--ease); }
.index .preview img.on { opacity: 1; transform: scale(1); }
.index .preview figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 1; font-size: var(--fs-small); color: rgba(238,242,244,.85); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.index .thumb { display: none; }
@media (max-width: 860px) {
  .index .grid { grid-template-columns: 1fr; }
  .index .preview { display: none; }
  .index li a { grid-template-columns: 96px minmax(0, 1fr); align-items: center; padding: 22px 0; }
  .index .no, .index .ar { display: none; }
  .index .thumb { display: block; width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
}
.latest { padding-bottom: var(--section); }
.latest .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.latest .h3 { max-width: 24ch; }
.latest p.meta { margin-top: 12px; color: var(--soft); }
@media (max-width: 700px) { .latest .row { grid-template-columns: 1fr; } }

/* ---------- 7. En-tête des pages intérieures ---------- */
.masthead { position: relative; min-height: clamp(520px, 78vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.masthead .photo { position: absolute; inset: -6% 0 0; z-index: -2; background-position: center; background-size: cover; will-change: transform; }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,13,17,.6) 0%, rgba(11,13,17,.1) 35%, rgba(11,13,17,.55) 72%, var(--ink) 100%); }
.masthead .wrap { padding: calc(var(--nav-h) + 80px) 0 clamp(56px, 8vw, 110px); }
.masthead .lede { max-width: 34ch; color: #dfe6ea; }
.crumbs { margin: 0 0 var(--s-3); font-size: var(--fs-small); color: var(--soft); }
.crumbs a { color: var(--soft); text-underline-offset: 3px; }

/* ---------- 8. Histoire ---------- */
.prologue { padding: var(--section) 0; }
.prologue .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.trail { position: relative; margin: 0; }
.trail img.ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; filter: brightness(.82) contrast(1.05) saturate(.6); }
.trail canvas { position: absolute; left: 31%; top: 26%; width: 64px; height: 64px; transform: translate(-50%, -100%); }
.trail figcaption { margin-top: 16px; color: var(--soft); font-size: var(--fs-small); }
.prologue .quote p + p { margin-top: .9em; }
.hearth { position: relative; padding: calc(var(--section) * 1.1) 0; overflow: hidden; isolation: isolate; }
.hearth .photo { position: absolute; inset: 0; z-index: -2; background: url(/img/fire.webp) center 40% / cover no-repeat; opacity: .5; }
.hearth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(11,13,17,.35), var(--ink) 80%); }
.hearth .h2 { max-width: 14ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); max-width: 1100px; }
.steps div { padding-top: var(--s-3); border-top: 1px solid rgba(241,194,125,.45); }
.steps b { display: block; font-family: var(--f-title); font-size: 1.35rem; color: var(--warm); }
.steps span { display: block; margin-top: 6px; color: #dfe6ea; }
@media (max-width: 900px) { .prologue .grid { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); } }

/* ---------- 9. Personnages : Yana ---------- */
.heroine { padding: var(--section) 0; }
.heroine .grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.facts { margin: var(--s-5) 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-4); }
.facts dt { padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; color: var(--snow); white-space: nowrap; }
.facts dd { margin: 0; padding: 20px 0 18px; border-top: 1px solid var(--line); color: var(--soft); }
.stage { position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(238,242,244,.16), transparent 70%), linear-gradient(180deg, #0d1217 0%, #151c22 65%, #1c242b 100%); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1; background: linear-gradient(180deg, transparent, rgba(220,230,236,.08)); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .controls { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0 16px; }
.stage .controls span { flex-basis: 100%; height: 0; }

/* ---------- 10. La meute ---------- */
.pack { padding: var(--section) 0; background: var(--ink-2); }
.pack .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: var(--s-4); align-items: end; }
.hope p { color: var(--soft); font-size: var(--fs-small); }
.hope p b { color: var(--snow); font-family: var(--f-title); }
.hope .line { margin-top: 12px; height: 2px; background: rgba(238,242,244,.12); }
.hope .line i { display: block; height: 100%; width: 0; background: var(--warm); box-shadow: 0 0 10px rgba(241,194,125,.6); transition: width 1.2s var(--ease); }
.wolves { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6) clamp(32px, 4vw, 72px); }
.wolf { position: relative; grid-column: span 3; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 28px; align-content: start; }
.wolf:nth-child(1) { grid-column: 1 / -1; grid-template-columns: 136px minmax(0, 1fr); }
.wolf:nth-child(1) .portrait { width: 136px; height: 136px; }
.wolf:nth-child(1) h3 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.wolf:nth-child(1) q { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); max-width: 38ch; }
.wolf:nth-child(2n+3) { transform: translateY(clamp(0px, 4vw, 64px)); }
.wolf .portrait { width: 88px; height: 88px; position: relative; }
.wolf .portrait svg { width: 100%; height: 100%; filter: grayscale(1) brightness(.62); transition: filter 1.2s var(--ease); }
.wolf .portrait::before { content: ""; position: absolute; inset: -40%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(241,194,125,.32), transparent 62%); opacity: 0; transition: opacity 1.2s var(--ease); }
.wolf .role { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.wolf h3 { margin: 6px 0 0; font-family: var(--f-title); font-weight: 700; font-size: clamp(1.7rem, 1.35rem + 1vw, 2.3rem); line-height: 1.05; color: #aab4bb; transition: color 1s var(--ease); }
.wolf q { display: block; margin-top: 14px; font-style: italic; line-height: 1.6; color: var(--soft); quotes: "« " " »"; }
.wolf .act { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.wolf .give { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid rgba(143,208,255,.4); color: var(--pearl); font-weight: 700; cursor: pointer; }
.wolf .give[disabled] { color: var(--soft); border-color: transparent; cursor: default; }
.wolf .give[disabled] .pearl { opacity: .35; box-shadow: none; }
.wolf .state { display: none; font-weight: 700; color: var(--warm); }
.wolf.revived .portrait svg { filter: none; }
.wolf.revived .portrait::before { opacity: 1; }
.wolf.revived h3 { color: var(--snow); }
.wolf.revived q { color: var(--text); }
.wolf.revived .give { display: none; }
.wolf.revived .state { display: inline; }
@media (max-width: 900px) {
  .pack .head { grid-template-columns: 1fr; }
  .wolves { grid-template-columns: 1fr; gap: var(--s-5); }
  .wolf, .wolf:nth-child(1) { grid-column: auto; grid-template-columns: 72px minmax(0, 1fr); gap: 0 20px; }
  .wolf:nth-child(2n+3) { transform: none; }
  .wolf .portrait, .wolf:nth-child(1) .portrait { width: 72px; height: 72px; }
}

/* ---------- 11. Les ombres ---------- */
.shadows { padding: var(--section) 0 0; }
.foes { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.foe { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.foe .art { width: 120px; height: 120px; display: grid; place-items: center; }
.foe .art svg { width: 96px; height: 96px; }
.foe .art img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; filter: grayscale(.4) brightness(.8) contrast(1.1); }
.foe p { color: var(--soft); }
.foe .meta { font-size: var(--fs-small); color: #b7a8e6; letter-spacing: .04em; }
@media (max-width: 760px) { .foe { grid-template-columns: 88px minmax(0, 1fr); gap: 8px 22px; } .foe .art, .foe .art img { width: 80px; height: 80px; } .foe .art svg { width: 72px; height: 72px; } .foe > p { grid-column: 2; } }
.devourer { position: relative; margin-top: var(--section); min-height: 80vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; background: radial-gradient(ellipse 50% 50% at 50% 45%, rgba(122,63,209,.22), transparent 70%), #08070c; padding: var(--s-6) 0; }
.devourer .boss { position: relative; width: clamp(200px, 26vw, 320px); aspect-ratio: 1; margin: 0 auto var(--s-4); display: grid; place-items: center; }
.devourer .boss svg { width: 70%; height: 70%; animation: breathe 5s ease-in-out infinite; }
.devourer .boss i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(176,108,255,.45); animation: aoe 4.5s ease-out infinite; }
@keyframes breathe { 50% { transform: translateY(-6px) scale(1.02); } }
@keyframes aoe { 0% { transform: scale(.35); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.devourer .h1 { color: #e3d4ff; }
.devourer p { margin: var(--s-3) auto 0; max-width: 46ch; color: #b9b0cc; font-size: var(--fs-lede); line-height: 1.6; }
.devourer .hp { margin: var(--s-4) auto 0; max-width: 420px; text-align: left; }
.devourer .hp small { font-size: var(--fs-small); color: #b7a8e6; }
.devourer .hp div { margin-top: 8px; height: 6px; background: #1b1426; }
.devourer .hp div i { display: block; height: 100%; background: linear-gradient(90deg, #7a3fd1, #a25bff); }

/* ---------- 12. Le monde ---------- */
.zone { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.zone .photo { position: absolute; inset: -10% 0; z-index: -2; background-position: center; background-size: cover; will-change: transform; }
.zone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(11,13,17,0) 22%, rgba(11,13,17,0) 55%, rgba(11,13,17,.85) 88%, var(--ink) 100%); }
.zone .wrap { align-self: flex-end; padding-bottom: clamp(64px, 10vh, 130px); }
.zone.right .wrap > div { margin-left: auto; }
.zone .no { font-family: var(--f-title); font-weight: 700; font-size: 1rem; letter-spacing: .3em; color: var(--soft); }
.zone .h1 { margin-top: 10px; text-shadow: 0 8px 40px rgba(0,0,0,.6); }
.zone p.t { margin-top: var(--s-3); font-size: var(--fs-lede); line-height: 1.55; color: #e2e8ec; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.zone p.m { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--soft); letter-spacing: .04em; }
.zone canvas.walker { position: absolute; z-index: 1; width: 128px; height: 128px; }
.creatures { padding: var(--section) 0; }
.creatures .grid { margin-top: var(--s-5); display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.creature figure { margin: 0; position: relative; }
.creature img { width: 100%; object-fit: cover; border-radius: 3px; }
.creature:nth-child(1) img { aspect-ratio: 4 / 3; }
.creature:nth-child(2) img { aspect-ratio: 4 / 5; }
.creature figcaption { margin-top: var(--s-3); }
.creature figcaption p { margin-top: 8px; color: var(--soft); }
@media (max-width: 800px) { .creatures .grid { grid-template-columns: 1fr; } .creature:nth-child(2) img { aspect-ratio: 4 / 3; } }

/* ---------- 13. Devlog ---------- */
.journal { padding: var(--s-6) 0 var(--section); }
.entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-4) clamp(40px, 6vw, 96px); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry time { display: block; font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; color: var(--snow); }
.entry .status { display: block; margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--soft); }
.entry .status.now { color: var(--pearl); }
.entry .status.warn { color: var(--warm); }
.entry .h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); max-width: 20ch; }
.entry .body { margin-top: var(--s-3); max-width: var(--read); }
.entry .body ul { margin: 14px 0 0; padding-left: 1.2em; }
.entry .body li + li { margin-top: 6px; }
.entry .media { margin-top: var(--s-4); background: #161c22; aspect-ratio: 4 / 1; display: grid; place-items: center; overflow: hidden; }
.entry .media img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; gap: 14px; } .entry .media { aspect-ratio: 2 / 1; } }

/* ---------- 14. Presse ---------- */
.press { padding: var(--s-6) 0 var(--section); }
.press .intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.sheet { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; column-gap: var(--s-4); }
.sheet dt { padding: 16px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.sheet dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--snow); }
.sheet a { color: var(--pearl); }
.kit { margin-top: var(--section); }
.kit .grid { margin-top: var(--s-5); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.asset { text-decoration: none; color: var(--snow); }
.asset .frame { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #151b21; overflow: hidden; transition: background .4s var(--ease); }
.asset:hover .frame { background: #1a2129; }
.asset .frame img { max-width: 86%; max-height: 80%; object-fit: contain; }
.asset b { display: block; margin-top: 18px; font-family: var(--f-title); font-size: 1.3rem; }
.asset span { display: block; margin-top: 4px; color: var(--soft); font-size: var(--fs-small); }
.asset em { font-style: normal; display: inline-block; margin-top: 10px; font-weight: 700; font-size: var(--fs-small); border-bottom: 1px solid rgba(238,242,244,.35); }
.press .note { margin-top: var(--s-4); color: var(--soft); font-size: var(--fs-small); max-width: var(--read); }
@media (max-width: 900px) { .press .intro { grid-template-columns: 1fr; } .kit .grid { grid-template-columns: 1fr; } }

/* ---------- 15. Pages de texte ---------- */
.doc { padding: calc(var(--nav-h) + 80px) 0 var(--section); background: var(--doc-bg); color: var(--doc-ink); }
.doc .h1 { color: var(--doc-ink); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); }
.doc .prose { margin-top: var(--s-4); }
.doc h2 { margin: var(--s-5) 0 12px; font-family: var(--f-title); font-size: 1.7rem; color: var(--doc-ink); }
.doc p, .doc li { color: var(--doc-soft); }
.doc a { color: inherit; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(127,127,127,.25); vertical-align: top; }
.doc code { font-size: .9em; }
.doc .crumbs, .doc .crumbs a { color: var(--doc-soft); }

/* ---------- 16. Pied de page ---------- */
.site-foot { padding: var(--s-5) 0 calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--soft); font-size: var(--fs-small); }
.site-foot .bar { width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--snow); }

/* ---------- 17. 404 : Yana s’est perdue ---------- */
.lost { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.lost .photo { position: absolute; inset: 0; z-index: -3; background: url(/img/forest.webp) center 40% / cover no-repeat; filter: brightness(.45) saturate(.5); }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 60% 50% at 50% 78%, rgba(11,13,17,0), rgba(11,13,17,.75) 75%), linear-gradient(180deg, rgba(11,13,17,.7), rgba(11,13,17,0) 40%); }
.lost canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.lost .copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(40px, 10vh, 120px)); text-align: center; padding: 0 var(--gutter); }
.lost .copy p { margin: var(--s-3) auto 0; max-width: 34ch; font-size: var(--fs-lede); color: #dfe6ea; }
.lost .way { white-space: nowrap; position: absolute; left: 50%; bottom: calc(10vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }

/* ---------- 18. Retour d’information ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 85; transform: translate(-50%, 160%); transition: transform .5s var(--ease); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; background: rgba(16,21,26,.96); box-shadow: 0 20px 40px rgba(0,0,0,.4); color: var(--snow); font-weight: 600; font-size: var(--fs-small); }
.toast.show { transform: translate(-50%, 0); }
.reborn { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, rgba(241,194,125,.2), rgba(11,13,17,.95) 70%); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.reborn.show { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.reborn .h1 { color: var(--warm); }
.reborn p { margin: var(--s-3) auto var(--s-4); max-width: 38ch; font-size: var(--fs-lede); color: #ebe5d9; }

/* ---------- 19. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* étalonnage : les photos d’été de la forêt passent en hiver froid */
.cool, .index .preview img[data-for="histoire"], .index .thumb[src*="forest"] { filter: saturate(.35) brightness(.72) contrast(1.08) hue-rotate(-8deg); }
.index .preview img { filter: brightness(.82) saturate(.75); }
.index .preview img[data-for="histoire"] { filter: saturate(.35) brightness(.72) contrast(1.08); }

.masthead.plain { min-height: clamp(440px, 62vh, 640px); background: radial-gradient(ellipse 60% 70% at 70% 0%, rgba(122,63,209,.14), transparent 70%), var(--ink); }
.masthead.plain::before { display: none; }
.masthead .photo.dim { filter: brightness(.55) saturate(.8); }
.zone .wrap > div { max-width: 620px; }
.zone .h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.4rem); overflow-wrap: break-word; hyphens: auto; }
.kit .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wolf .give[hidden] { display: none; }
@media (max-width: 900px) {
  .heroine .grid { grid-template-columns: 1fr; }
  .stage { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  .zone canvas.walker { display: none; }
  .zone .find { top: 22% !important; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 4px; }
}
