/* PexGuide — feuille de style unique du site (pas de dépendance externe).
   Thème « WoW Forever » : illustration originale en SVG (assets/bg-*.svg) derrière le contenu.
   - body::before : ciel lointain (étoiles, lunes, pics), fixe → effet de profondeur ;
   - body::after  : scène qui défile avec la page (île flottante, montagnes, forêt, brume).
   Aucun JS : la parallaxe est en CSS (position fixe + scroll-timeline quand il est géré),
   et tout s'arrête avec prefers-reduced-motion. */

:root {
  color-scheme: dark;
  --bg: #100d0a;
  --bg-2: #17120d;
  --surface: #1d1711;
  --surface-2: #261e16;
  --glass: rgba(20, 15, 12, 0.86);
  --glass-2: rgba(30, 23, 17, 0.9);
  --border: #3d3123;
  --line: rgba(232, 194, 90, 0.3);
  --text: #eee6d6;
  --muted: #c4b69b;
  --gold: #ffd100;
  --gold-soft: #e8c25a;
  --gold-dim: #9c7413;
  --arcane: #7ff0d0;
  --parch: #ecdcb4;
  --parch-ink: #2e2010;
  --ok: #7fd68a;
  --ok-bg: #13261a;
  --warn: #ffb347;
  --warn-bg: #2d1f0c;
  --err: #ff8a7a;
  --err-bg: #2e1311;
  --radius: 12px;
  --gutter: 16px;
  --maxw: 1120px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(6, 5, 16, 0.85);

  /* Placement de la scène (px depuis le haut du document) — ajusté par écran plus bas. */
  --island-w: 260px;
  --island-x: -110px;
  --island-y: 92px;
  --mount-y: 300px;
  --mount-h: 300px;
  --forest-y: 470px;
  --forest-h: 280px;
  --fade-a: 560px;
  --fade-b: 740px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Décor : ciel lointain (fixe) ---------- */
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 112lvh;
  background: #120e22 url("bg-sky.svg") center top / cover no-repeat;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Décor : scène qui défile avec la page ---------- */
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    /* sol du bas de page : ruines, tour de guet, feu de camp */
    url("bg-ground.svg") center bottom / auto 300px repeat-x,
    /* fondu vers le sol sombre : sous la forêt, la page reste lisible */
    linear-gradient(to bottom, rgba(16, 13, 10, 0) var(--fade-a), var(--bg) var(--fade-b)) 0 0 / 100% 100% no-repeat,
    /* lueur de braises près du pied de page */
    radial-gradient(ellipse 70% 260px at 50% 100%, rgba(255, 140, 40, 0.1), transparent 70%) 0 0 / 100% 100% no-repeat,
    url("bg-forest.svg") center top var(--forest-y) / auto var(--forest-h) repeat-x,
    url("bg-island.svg") right var(--island-x) top var(--island-y) / var(--island-w) auto no-repeat,
    url("bg-mountains.svg") center top var(--mount-y) / auto var(--mount-h) repeat-x;
}

/* Accueil : l'île au-dessus du titre (mobile) puis à droite du texte (grand écran). */
.page-home {
  --island-w: 270px;
  --island-y: 132px;
  --mount-y: 470px;
  --mount-h: 320px;
  --forest-y: 650px;
  --forest-h: 300px;
  --fade-a: 760px;
  --fade-b: 950px;
}
.page-home::after {
  background-position:
    center bottom, 0 0, 0 0,
    center top var(--forest-y),
    center top var(--island-y),
    center top var(--mount-y);
}

@media (min-width: 600px) {
  :root {
    --island-w: 330px;
    --island-x: -90px;
    --island-y: 80px;
    --mount-y: 260px;
    --mount-h: 380px;
    --forest-y: 480px;
    --forest-h: 330px;
    --fade-a: 600px;
    --fade-b: 800px;
  }
  .page-home {
    --island-w: 340px;
    --island-y: 92px;
    --mount-y: 420px;
    --forest-y: 660px;
    --fade-a: 800px;
    --fade-b: 1000px;
  }
}

@media (min-width: 960px) {
  :root {
    --island-w: 400px;
    --island-x: -40px;
    --island-y: 70px;
    --mount-y: 250px;
    --mount-h: 430px;
    --forest-y: 500px;
    --forest-h: 380px;
    --fade-a: 640px;
    --fade-b: 880px;
  }
  .page-home {
    --island-w: min(560px, 46vw);
    --island-x: max(0px, calc(50% - 600px));
    --island-y: 66px;
    --mount-y: 330px;
    --mount-h: 460px;
    --forest-y: 600px;
    --forest-h: 400px;
    --fade-a: 780px;
    --fade-b: 1000px;
  }
  .page-home::after {
    background-position:
      center bottom, 0 0, 0 0,
      center top var(--forest-y),
      right var(--island-x) top var(--island-y),
      center top var(--mount-y);
  }
}

/* Parallaxe douce du ciel, uniquement si le navigateur gère scroll-timeline
   et si l'utilisateur n'a pas demandé moins d'animations. Sinon : ciel fixe. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    body::before {
      animation: pg-sky-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 1400px;
    }
  }
}
@keyframes pg-sky-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -10vh, 0); }
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--gold);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin: 0 0 0.5em;
  letter-spacing: 0.015em;
  text-shadow: var(--shadow-text);
}
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); margin: 2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

/* Titres en or « gravé » quand background-clip: text est géré. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .page-head h1, .center-page h1, .brand span {
    background: linear-gradient(180deg, #fff6c8 0%, #ffe066 35%, #ffd100 55%, #d99a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(8, 6, 20, 0.9));
  }
}
@media (forced-colors: active) {
  .hero h1, .page-head h1, .center-page h1, .brand span {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    filter: none;
  }
}

/* Séparateur ornemental sous les titres de section */
.section > .wrap:not(.prose) > h2 { text-shadow: var(--shadow-text); }
.section > .wrap:not(.prose) > h2::after,
.page-head h1::after,
.center-page h1::after {
  content: "";
  display: block;
  width: min(260px, 70%);
  height: 24px;
  margin-top: 0.3em;
  background: url("divider.svg") left center / contain no-repeat;
}
.center-page h1::after { margin-left: auto; margin-right: auto; background-position: center; }

a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

code, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
  color: #f5e9cc;
}
pre {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: 8px;
  padding: 0.8em 1em;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code { background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--gold);
  color: #1a1206;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 8px; color: #1a1206; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 820px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(14, 11, 20, 0.94), rgba(12, 9, 14, 0.86));
  border-bottom: 1px solid rgba(156, 116, 19, 0.7);
  box-shadow: 0 1px 0 rgba(255, 209, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.8;
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}
.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.35));
}
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  flex: 1 1 auto;
}
.nav a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--gold);
  background: rgba(255, 209, 0, 0.07);
  border-color: rgba(232, 194, 90, 0.25);
}
.nav a[aria-current="page"] {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 209, 0, 0.14), rgba(255, 209, 0, 0.03));
  border-color: rgba(232, 194, 90, 0.4);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

/* Bouton de don, en haut de toutes les pages (juste avant le choix de langue) */
.header-donate {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe066, #d9a400);
  color: #2a1c00;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(255, 209, 0, 0.35);
  white-space: nowrap;
}
.header-donate:hover, .header-donate:focus-visible { filter: brightness(1.08); color: #000; }
.header-donate + .lang-switch { margin-left: 0; }

@media (max-width: 720px) {
  .header-inner { gap: 0.35rem 0.75rem; }
  .header-inner > nav { order: 3; flex-basis: 100%; }
  .nav a { padding: 0.3rem 0.5rem; font-size: 0.95rem; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative;
  padding: 16.5rem 0 2.5rem;
}
.hero .wrap { position: relative; }
.hero-text { max-width: 40rem; }
.hero .lead {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: #f6eedd;
  max-width: 40rem;
  text-shadow: var(--shadow-text);
}
.hero .lead strong { color: var(--gold); }
@media (min-width: 600px) {
  .hero { padding-top: 19rem; }
}
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 4rem; min-height: 560px; }
  .hero-text { max-width: min(36rem, 54%); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffe9a6;
  background: linear-gradient(90deg, rgba(60, 22, 18, 0.9), rgba(30, 14, 30, 0.9));
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.byline {
  color: #d9cbb0;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  text-shadow: var(--shadow-text);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ffe780 0%, #ffd100 45%, #d29a00 100%);
  color: #1a1206;
  border-color: #6b4a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(90, 55, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 196, 0, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fff0a8 0%, #ffdc33 45%, #e0a800 100%);
  color: #1a1206;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 55, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 196, 0, 0.3);
}
.btn-ghost {
  background: rgba(14, 10, 8, 0.7);
  color: var(--gold);
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: #ffe066; background: rgba(40, 30, 14, 0.85); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: #9a8e77;
  border-color: var(--border);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: linear-gradient(180deg, #ffe780, #e8b520);
  border: 1px solid #6b4a00;
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  vertical-align: middle;
}

/* ---------- Cartes / grilles ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.card {
  position: relative;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 209, 0, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(34, 26, 20, 0.94), rgba(16, 12, 10, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 225, 150, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 209, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 225, 150, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 16px 34px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 196, 0, 0.1);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .meta { color: var(--muted); font-size: 0.93rem; }
.card-soon { border-style: dashed; }
.card h3 .badge { margin-left: 0.4rem; }

/* Cartes de routes : bandeau illustré */
.route { overflow: hidden; padding-top: 0; }
.route::before {
  content: "";
  display: block;
  height: 96px;
  margin: 0 -1.35rem 1rem;
  background: center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 209, 0, 0.45);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.route-durotar::before { background-image: url("route-durotar.svg"); }
.route-tirisfal::before { background-image: url("route-tirisfal.svg"); }
.route-next::before { background-image: url("route-next.svg"); opacity: 0.8; }
.route .meta::before { content: "\27A4\00A0"; color: var(--gold-dim); }

/* Cartes de fonctionnalités : médaillon + icône */
.feature-icon {
  display: block;
  width: 58px;
  height: 58px;
  padding: 8px;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3a2a14, #140e08 70%);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(156, 116, 19, 0.45), 0 0 18px rgba(255, 196, 0, 0.15);
}

.section { padding: 1rem 0 1.5rem; }
.section > .wrap > p { text-shadow: var(--shadow-text); max-width: 52rem; }
.muted { color: var(--muted); }

/* ---------- Étapes numérotées ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.1rem;
  min-height: 2.3rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  background: radial-gradient(circle at 50% 35%, #3a2a14, #140e08 70%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 196, 0, 0.18);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ---------- Accueil : « Comment ça marche » + aperçu de la fenêtre ---------- */
.how-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.how-steps {
  background: var(--glass);
  border: 6px solid rgba(156, 116, 19, 0.6);
  border-image: url("frame.svg") 24 / 24px / 0 stretch;
  padding: 1.6rem 1.5rem 0.6rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
@media (min-width: 880px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 2.5rem; }
}

/* Maquette de la fenêtre d'étapes de l'addon (HTML/CSS pur) */
.questlog { margin: 0; }
.ql-window {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.95), rgba(18, 14, 10, 0.95));
  border: 1px solid #6b5420;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 3px rgba(156, 116, 19, 0.55),
    0 0 0 4px #000,
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(127, 240, 208, 0.08);
  font-size: 0.95rem;
  overflow: hidden;
}
.ql-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(180deg, #3a2c14, #1d150a);
  border-bottom: 1px solid #6b5420;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
}
.ql-titlebar img { width: 20px; height: 20px; flex: 0 0 auto; }
.ql-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-level {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #e9dcc0;
  border: 1px solid #6b5420;
  border-radius: 4px;
  padding: 0 0.4rem;
  background: rgba(0, 0, 0, 0.4);
}
.ql-steps {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}
.ql-step {
  position: relative;
  padding: 0.45rem 0.8rem 0.45rem 1.9rem;
  color: #d8ccb2;
  line-height: 1.4;
  border-left: 3px solid transparent;
}
.ql-step + .ql-step { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.ql-step::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.95em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: #5d4a26;
}
.ql-step.is-current {
  color: #fff6e0;
  background: linear-gradient(90deg, rgba(255, 209, 0, 0.16), rgba(255, 209, 0, 0.02));
  border-left-color: var(--gold);
}
.ql-step.is-current::before { background: var(--gold); box-shadow: 0 0 8px rgba(255, 209, 0, 0.8); }
.ql-verb { font-weight: 700; }
.ql-accept { color: #ffd100; }
.ql-turnin { color: #7fd68a; }
.ql-kill { color: #ff8a7a; }
.ql-lvl { color: #9fd0ff; font-variant-numeric: tabular-nums; }
.ql-quest { color: #fff2c8; }
.ql-npc { color: var(--muted); }
.ql-progress {
  display: inline-block;
  margin-left: 0.3rem;
  font-variant-numeric: tabular-nums;
  color: #fff2c8;
  background: rgba(255, 138, 122, 0.15);
  border: 1px solid rgba(255, 138, 122, 0.4);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-size: 0.85em;
}
.ql-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid #3d3020;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
}
.ql-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff2c8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ql-arrow img {
  width: 34px;
  height: 34px;
  transform: rotate(32deg);
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.45));
}
.questlog figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  text-shadow: var(--shadow-text);
}
@media (prefers-reduced-motion: no-preference) {
  .ql-arrow img { animation: pg-arrow 3.2s ease-in-out infinite; }
  .ql-step.is-current::before { animation: pg-pulse 2.4s ease-in-out infinite; }
}
@keyframes pg-arrow {
  0%, 100% { transform: rotate(26deg); }
  50% { transform: rotate(38deg); }
}
@keyframes pg-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 209, 0, 0.5); }
  50% { box-shadow: 0 0 12px rgba(255, 209, 0, 1); }
}

/* ---------- Pages intérieures ---------- */
.page-head { padding: 3rem 0 1rem; }
.page-head .lead {
  font-size: 1.18rem;
  max-width: 46rem;
  color: #f6eedd;
  text-shadow: var(--shadow-text);
}
.page-head .muted { text-shadow: var(--shadow-text); }

/* Panneau de contenu : verre sombre + cadre doré ornementé (border-image) */
.section > .wrap.prose {
  width: calc(100% - 2 * var(--gutter));
  background:
    radial-gradient(ellipse 90% 220px at 50% 0%, rgba(255, 209, 0, 0.05), transparent 70%),
    var(--glass);
  border: 6px solid rgba(156, 116, 19, 0.6);
  border-image: url("frame.svg") 24 / 24px / 0 stretch;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.section > .wrap.prose > :first-child,
.section > .wrap.prose > :first-child > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--gold-soft); }
.prose h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.65rem);
  margin-top: 1.8em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-dim), rgba(156, 116, 19, 0)) 1;
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.55em;
  vertical-align: 0.12em;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, var(--gold) 50%, #a87400);
  box-shadow: 0 0 6px rgba(255, 209, 0, 0.5);
}
.prose .steps > li { padding-left: 3.1rem; }

.note {
  position: relative;
  border: 1px solid rgba(156, 116, 19, 0.45);
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 209, 0, 0.08), rgba(255, 209, 0, 0.02)), rgba(12, 9, 7, 0.6);
  padding: 0.9rem 1.1rem 0.9rem 3.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.1rem 0;
}
.note::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  background: url("icon-quest.svg") center / contain no-repeat;
}
.note p:last-child { margin-bottom: 0; }

/* Résumé : parchemin (texte sombre sur clair, contraste élevé) */
.summary {
  color: var(--parch-ink);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(140, 90, 30, 0.18), transparent 55%),
    linear-gradient(180deg, #f1e3bf, #e3cd98);
  border: 1px solid #8a6a2a;
  border-radius: 6px;
  box-shadow: inset 0 0 30px rgba(120, 80, 20, 0.35), 0 0 0 3px rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.45);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.75rem;
}
.summary ul { margin: 0; }
.summary li::marker { color: #8a2a1a; }
.summary a { color: #6b2a00; }
.summary code { background: rgba(255, 255, 255, 0.4); color: var(--parch-ink); border-color: #b49a62; }

.placeholder {
  color: var(--warn);
  font-weight: 600;
}

/* ---------- Envoi de fichier ---------- */
.dropzone {
  display: block;
  position: relative;
  border: 2px dashed var(--gold-dim);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(127, 240, 208, 0.08), transparent 60%),
    rgba(12, 9, 7, 0.65);
  padding: 2.2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--gold);
  background:
    radial-gradient(circle at 50% 30%, rgba(127, 240, 208, 0.16), transparent 60%),
    rgba(30, 23, 14, 0.8);
  box-shadow: 0 0 26px rgba(255, 196, 0, 0.18), inset 0 0 30px rgba(127, 240, 208, 0.08);
}
.dropzone:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.dropzone .dz-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.7rem;
  display: block;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: radial-gradient(circle at 50% 35%, #3a2a14, #140e08 70%);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 196, 0, 0.18);
}
.dropzone .dz-title { display: block; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.15rem; }
.dropzone .dz-sub { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.file-info { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }

.alert {
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  border: 1px solid;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.alert p:last-child { margin-bottom: 0; }
.alert strong { display: block; margin-bottom: 0.2rem; font-family: var(--serif); font-size: 1.05rem; }
.alert-warn { background: var(--warn-bg); border-color: #6b4a16; color: #ffe2b8; }
.alert-warn strong { color: var(--warn); }
.alert-err { background: var(--err-bg); border-color: #6e2a24; color: #ffd6d0; }
.alert-err strong { color: var(--err); }
.alert-ok { background: var(--ok-bg); border-color: #2d5a36; color: #d6f5da; }
.alert-ok strong { color: var(--ok); }
.alert-info { background: rgba(20, 15, 12, 0.9); border-color: var(--border); color: var(--text); }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(156, 116, 19, 0.45);
  border-radius: 8px;
  background: rgba(12, 9, 7, 0.65);
  cursor: pointer;
}
.consent:hover { border-color: var(--gold-dim); }
.consent input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.2rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

[hidden] { display: none !important; }

/* ---------- Dons ---------- */
.donate {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 209, 0, 0.14), transparent 70%),
    rgba(12, 9, 7, 0.7);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  box-shadow: inset 0 0 40px rgba(255, 196, 0, 0.06);
}
.donate::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  background: url("icon-heart.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 120, 120, 0.35));
}
.donate + p { margin-top: 1rem; }
.donate .quote { font-family: var(--serif); font-size: 1.28rem; color: var(--gold-soft); max-width: 34rem; margin: 0 auto 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  margin-top: 8rem;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(255, 209, 0, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(14, 11, 9, 0.55), rgba(11, 9, 7, 0.9) 70%);
  border-top: 1px solid rgba(156, 116, 19, 0.6);
  padding: 2.4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 260px;
  max-width: 80%;
  height: 24px;
  transform: translateX(-50%);
  background: url("divider.svg") center / contain no-repeat;
}
.site-footer p { margin: 0 0 0.6em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-bottom: 0.8rem; padding: 0; list-style: none; }
.footer-links a { color: var(--text); font-family: var(--serif); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Page de redirection / 404 ---------- */
.center-page {
  text-align: center;
  margin-top: clamp(7rem, 22vh, 12rem);
  margin-bottom: 3rem;
  width: calc(100% - 2 * var(--gutter));
  max-width: 600px;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
  background:
    radial-gradient(ellipse 90% 200px at 50% 0%, rgba(255, 209, 0, 0.07), transparent 70%),
    var(--glass);
  border: 6px solid rgba(156, 116, 19, 0.6);
  border-image: url("frame.svg") 24 / 24px / 0 stretch;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.center-page .brand-big {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(255, 209, 0, 0.35));
}
.center-page .cta-row { justify-content: center; }
.page-splash { justify-content: flex-start; }

/* ---------- Mouvement réduit : pas de parallaxe ni d'animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  body::before { transform: none !important; }
  .btn-primary:hover, .card:hover { transform: none; }
}

main:focus { outline: none; }
