/* =========================================================================
   WIKI HARADON v2 — feuille de style (SPEC §4, maquette doc/haradon-wiki.png)
   =========================================================================
   Identité PROPRE au wiki : ce fichier ne dépend pas de website.css. Seules
   ressources externes : Google Fonts (Cinzel + Crimson Text).

   Les vignettes sont TOUTES des recadrages CSS de public/img/planche.png
   (classes .w2-v-*, mesurées au pixel sur la planche 1536x1024) : aucun
   découpage de fichier, aucune image externe.
   ========================================================================= */

:root {
  --bg: #0b0e18;
  --bg2: #080b13;
  --panel: #131828;
  --panel2: #171d31;
  --border: #2a3350;
  --border-f: #1d2439;
  --gold: #d4a847;
  --gold-light: #f0d78a;
  --gold-dark: #8a6d1b;
  --text: #d0d4dc;
  --dim: #7a8094;
  --bright: #eef0f4;
  --violet: #8b5cf6;
  --rouge: #b3261e;
  --vert: #33aa55;
  --bleu: #4b8ef0;
  --jaune: #e8c548;
  --r: 3px;
  --cinzel: "Cinzel", "Trajan Pro", Georgia, serif;
  --crimson: "Crimson Text", Georgia, "Times New Roman", serif;
}

/* ------------------------------- base ---------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 50% -120px, rgba(60, 78, 130, .22), transparent 70%),
    radial-gradient(800px 400px at 100% 100%, rgba(40, 52, 92, .16), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--crimson);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4 { font-family: var(--cinzel); font-weight: 600; margin: 0; }
img { max-width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; color: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.w2-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--panel); color: var(--gold); padding: 10px 16px;
  border: 1px solid var(--gold-dark);
}
.w2-skip:focus { left: 8px; top: 8px; }

.w2-svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.12em; }

/* -------------------- vignettes de la planche Codex -------------------- */
.w2-ico-rond, .w2-card-img, .w2-hero-bg, .w2-une-img, .w2-404-img, .w2-vig {
  background-image: url(img/planche.png);
  background-repeat: no-repeat;
  display: inline-block;
}

.w2-ico-rond {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5) inset;
}
.w2-ico-rond-s { width: 24px; height: 24px; }
.w2-tree .w2-ico-rond { width: 21px; height: 21px; }

.w2-v-quetes       { background-size: 404.2% 512.0%; background-position: 53.63% 83.74%; }
.w2-v-creatures    { background-size: 415.1% 525.1%; background-position: 68.61% 8.44%; }
.w2-v-objets       { background-size: 426.7% 538.9%; background-position: 99.49% 10.79%; }
.w2-v-sorts        { background-size: 415.1% 525.1%; background-position: 1.72% 48.25%; }
.w2-v-lieux        { background-size: 357.2% 453.1%; background-position: 33.45% 50.13%; }
.w2-v-artisanat    { background-size: 415.1% 525.1%; background-position: 69.47% 50.66%; }
.w2-v-montures     { background-size: 465.5% 588.5%; background-position: 98.67% 47.06%; }
.w2-v-evenements   { background-size: 404.2% 512.0%; background-position: 1.38% 82.52%; }
.w2-v-ensembles    { background-size: 446.5% 312.2%; background-position: 98.66% 5.75%; }
.w2-v-talents      { background-size: 698.2% 409.6%; background-position: 30.85% 83.46%; }
.w2-v-versions     { background-size: 459.9% 478.5%; background-position: 53.74% 83.46%; }
.w2-v-objets-monde { background-size: 446.5% 312.2%; background-position: 98.66% 5.75%; }
.w2-v-alaune       { background-size: 465.5% 682.7%; background-position: 38.97% 6.29%; }
.w2-v-hero         { background-size: 352.3% 385.0%; background-position: 33.09% 49.87%; }
.w2-v-logo         { background-size: 441.4% 334.6%; background-position: 1.68% 3.62%; }
.w2-v-liche        { background-size: 609.5% 423.1%; background-position: 98.29% 83.63%; }
.w2-v-archere      { background-size: 629.5% 433.9%; background-position: 77.24% 81.98%; }
.w2-v-chevalier    { background-size: 698.2% 409.6%; background-position: 30.85% 83.46%; }
/* les 9 icônes rondes cerclées d'or de la 4e rangée */
.w2-v-ico1 { background-size: 1396.4% 882.8%; background-position: 5.26% 98.35%; }
.w2-v-ico2 { background-size: 1396.4% 882.8%; background-position: 17.18% 98.35%; }
.w2-v-ico3 { background-size: 1396.4% 882.8%; background-position: 29.52% 98.35%; }
.w2-v-ico4 { background-size: 1396.4% 882.8%; background-position: 41.44% 98.35%; }
.w2-v-ico5 { background-size: 1396.4% 882.8%; background-position: 51.89% 98.35%; }
.w2-v-ico6 { background-size: 1396.4% 882.8%; background-position: 63.88% 98.35%; }
.w2-v-ico7 { background-size: 1396.4% 882.8%; background-position: 75.11% 98.35%; }
.w2-v-ico8 { background-size: 1396.4% 882.8%; background-position: 85.55% 98.35%; }
.w2-v-ico9 { background-size: 1396.4% 882.8%; background-position: 96.21% 98.35%; }

/* ------------------------------ en-tête -------------------------------- */
.w2-top {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #0d1120 0%, #0a0d18 100%);
  border-bottom: 1px solid var(--border-f);
}
.w2-top::after {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 18%, var(--gold) 50%, var(--gold-dark) 82%, transparent);
  opacity: .8;
}
.w2-top-in {
  max-width: 1680px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 18px;
}
.w2-logo { display: flex; flex-direction: column; line-height: 1; padding: 4px 0; }
.w2-logo-1 {
  font-family: var(--cinzel); font-weight: 900; font-size: 22px; letter-spacing: .14em;
  color: var(--gold-light);
  background: linear-gradient(180deg, #f6e3ad, #cfa53f 60%, #8a6d1b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w2-logo-2 {
  font-family: var(--cinzel); font-size: 10px; letter-spacing: .5em;
  color: var(--dim); margin-top: 3px; padding-left: 2px;
}
.w2-nav { display: flex; gap: 4px; margin-left: 22px; flex: 1; }
.w2-nav-a {
  font-family: var(--cinzel); font-size: 13px; letter-spacing: .1em;
  color: #a9b0c2; padding: 20px 14px; position: relative;
}
.w2-nav-a:hover { color: var(--gold-light); }
.w2-nav-a.w2-actif { color: var(--gold-light); }
.w2-nav-a.w2-actif::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.w2-top-r { display: flex; align-items: center; gap: 10px; }
.w2-ver {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: rgba(19, 24, 40, .7);
  padding: 5px 12px; border-radius: var(--r);
}
.w2-ver-b { color: var(--gold); font-size: 16px; display: flex; }
.w2-ver-t { display: flex; flex-direction: column; line-height: 1.25; }
.w2-ver-t b { font-family: var(--cinzel); font-size: 11.5px; color: var(--gold-light); letter-spacing: .04em; }
.w2-ver-t i { font-style: normal; font-size: 10.5px; color: var(--dim); }
.w2-rond {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa2b6; font-size: 15px; background: rgba(19, 24, 40, .7);
}
.w2-fr { font-family: var(--cinzel); font-size: 10px; letter-spacing: .06em; color: var(--gold); }
.w2-burger {
  display: none; align-items: center; gap: 7px;
  background: rgba(19, 24, 40, .8); border: 1px solid var(--border); color: var(--gold-light);
  font-family: var(--cinzel); font-size: 12px; letter-spacing: .08em;
  padding: 8px 12px; border-radius: var(--r); cursor: pointer;
}
/* Barre du wiki sous les onglets du site (l'en-tête au-dessus est celui de
   website.css : .topbar / .hero-banner / .main-tabs, non stylé ici). */
.w2-barre {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #0d1120 0%, #0a0d18 100%);
  border-bottom: 1px solid var(--border-f);
}
.w2-barre::after {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 18%, var(--gold) 50%, var(--gold-dark) 82%, transparent);
  opacity: .8;
}
.w2-barre-in {
  max-width: 1680px; margin: 0 auto; padding: 0 20px;
  min-height: 46px; display: flex; align-items: center; gap: 14px;
}
.w2-barre-t {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cinzel); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
}
.w2-barre-t .w2-svg { color: var(--gold); font-size: 15px; }
.w2-barre-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hero-banner .game-logo { animation: none; }

/* ------------------------------ ossature ------------------------------- */
.w2-shell {
  max-width: 1680px; margin: 0 auto; padding: 18px 20px 40px;
  display: grid; gap: 18px;
  grid-template-columns: 262px minmax(0, 1fr) 286px;
  align-items: start;
}
.w2-main { min-width: 0; }

/* ------------------------------ panneaux -------------------------------- */
.w2-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 29, 49, .92), rgba(15, 19, 33, .92));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px 18px;
  margin: 0 0 18px;
}
/* coins ornés : 4 petits « L » en or, dessinés en dégradés (1 pseudo) */
.w2-panel::before, .w2-hero::before, .w2-fh::before, .w2-side::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 1px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 10px no-repeat;
  opacity: .75;
}
.w2-panel-t {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin: 0 0 14px;
}
.w2-panel-t::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), rgba(138, 109, 27, .1));
}
.w2-p-mini { padding: 12px 14px; }
.w2-p-texte .w2-texte p { margin: 0 0 10px; }

/* ------------------------------ sidebar --------------------------------- */
.w2-side {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 25, 42, .95), rgba(13, 17, 29, .95));
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 12px 18px;
  position: sticky; top: 76px;
  max-height: calc(100vh - 96px); overflow: auto;
}
.w2-side-head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--cinzel); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-light);
  padding: 2px 4px 12px; border-bottom: 1px solid var(--border-f); margin-bottom: 10px;
}
.w2-side-ico { color: var(--gold); font-size: 17px; display: flex; }
.w2-side-x { display: none; margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; }

.w2-tree ul { list-style: none; margin: 0; padding: 0; }
.w2-tree li > ul { display: none; }
.w2-tree li.w2-open > ul { display: block; }
.w2-tree-1 { margin-left: 10px !important; border-left: 1px solid var(--border-f); }
.w2-tree-2, .w2-tree-3 { margin-left: 12px !important; }
.w2-row { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: var(--r); }
.w2-row:hover { background: rgba(212, 168, 71, .07); }
.w2-root > .w2-row { padding: 6px 4px; }
.w2-tw {
  width: 16px; height: 16px; flex: none; padding: 0; background: none; border: 0;
  color: var(--dim); cursor: pointer; font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.w2-tw-vide { cursor: default; }
.w2-open > .w2-row > .w2-tw { transform: rotate(90deg); color: var(--gold); }
.w2-tl {
  flex: 1; min-width: 0; color: var(--text); font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w2-root > .w2-row > .w2-tl {
  font-family: var(--cinzel); font-size: 12.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold-light);
}
.w2-actif > .w2-row { background: rgba(212, 168, 71, .12); }
.w2-actif > .w2-row > .w2-tl { color: var(--gold-light); }
.w2-n {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-size: 12px; color: var(--dim); flex: none; letter-spacing: .02em;
}
.w2-root > .w2-row > .w2-n { color: #96a0ba; font-size: 12.5px; }

/* --------------------------- colonne droite ----------------------------- */
.w2-right { min-width: 0; }
.w2-une { display: block; position: relative; color: inherit; }
.w2-une-img {
  display: block; height: 118px; border: 1px solid var(--border-f); border-radius: var(--r);
  position: relative; margin-bottom: 10px;
}
.w2-une-b {
  position: absolute; left: 8px; bottom: 8px;
  background: linear-gradient(180deg, #edd08f, #b8892a);
  color: #1a1408; font-family: var(--cinzel); font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px;
}
.w2-une-in { display: block; padding-right: 18px; }
.w2-une-in b { display: block; font-family: var(--cinzel); font-size: 14px; color: var(--gold-light); margin-bottom: 3px; }
.w2-une-in i { font-style: normal; font-size: 13px; color: var(--dim); line-height: 1.35; display: block; }
.w2-une-ch { position: absolute; right: 0; bottom: 14px; color: var(--gold); font-size: 13px; }

.w2-rapide { list-style: none; margin: 0; padding: 0; }
.w2-rapide li + li { border-top: 1px solid var(--border-f); }
.w2-rapide a { display: flex; align-items: center; gap: 11px; padding: 10px 2px; color: inherit; }
.w2-rapide a:hover { background: rgba(212, 168, 71, .06); }
.w2-rapide-t { flex: 1; min-width: 0; }
.w2-rapide-t b { display: block; font-family: var(--cinzel); font-size: 13px; color: var(--bright); font-weight: 600; }
.w2-rapide-t i { font-style: normal; font-size: 12.5px; color: var(--dim); }
.w2-rapide-ch { color: var(--gold-dark); font-size: 12px; }

.w2-select { position: relative; display: block; margin-bottom: 12px; }
.w2-select select {
  width: 100%; appearance: none; background: rgba(9, 12, 21, .8); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); padding: 9px 30px 9px 12px;
  font-family: var(--crimson); font-size: 14px;
}
.w2-select-ch { position: absolute; right: 10px; top: 11px; color: var(--gold-dark); font-size: 12px; pointer-events: none; }
.w2-royaumes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w2-royaume {
  display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); padding: 8px 10px;
  background: rgba(9, 12, 21, .55);
}
.w2-royaume.w2-actif { border-color: var(--gold-dark); color: var(--gold-light); background: rgba(212, 168, 71, .08); }
.w2-royaume .w2-svg { color: var(--gold-dark); }

/* -------------------------------- hero ---------------------------------- */
.w2-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r);
  min-height: 218px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.w2-hero-bg { position: absolute; inset: 0; opacity: .5; }
.w2-hero-voile {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 120% at 50% 40%, rgba(8, 11, 20, .55), rgba(8, 11, 20, .9) 75%),
    linear-gradient(180deg, rgba(8, 11, 20, .45), rgba(8, 11, 20, .92));
}
.w2-hero-in { position: relative; z-index: 1; width: 100%; padding: 24px 26px 22px; text-align: center; }

.w2-titre {
  font-family: var(--cinzel); font-weight: 900; font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .05em; line-height: 1.1; margin: 0;
  background: linear-gradient(180deg, #fbeec4 8%, #e2c273 45%, #b8912f 75%, #8a6d1b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: var(--gold-light);
}
.w2-soustitre { margin: 6px 0 16px; color: #b6bccb; font-size: 17px; font-style: italic; }
.w2-titre-p {
  font-size: clamp(24px, 2.6vw, 32px); text-align: left; margin: 4px 0 12px;
  display: flex; align-items: center; gap: 16px;
}
.w2-titre-p::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), rgba(138, 109, 27, .08));
}

/* ----------------------------- recherche -------------------------------- */
.w2-search {
  display: flex; align-items: center; gap: 10px; max-width: 810px; margin: 0 auto;
  background: rgba(7, 10, 18, .88); border: 1px solid var(--gold-dark);
  border-radius: var(--r); padding: 7px 8px 7px 16px;
}
.w2-search-i { color: var(--gold-dark); font-size: 18px; display: flex; }
.w2-search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--bright);
  font-family: var(--crimson); font-size: 16px; padding: 8px 0;
}
.w2-search input::placeholder { color: #6a7289; }
.w2-search input:focus { outline: none; }

.w2-btn-or {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--cinzel); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #1c1608; border: 1px solid #c9a24a; border-radius: 2px;
  background: linear-gradient(180deg, #f2d791, #c79a37 60%, #a87f24);
  padding: 11px 20px;
}
.w2-btn-or:hover { color: #1c1608; background: linear-gradient(180deg, #f9e6b4, #d3a842 60%, #b58c2b); }
.w2-btn-s { padding: 9px 16px; }
.w2-btn-vide {
  display: inline-flex; align-items: center; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 2px; color: var(--dim);
  font-family: var(--cinzel); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}

/* -------------------------------- puces --------------------------------- */
.w2-pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 16px; }
.w2-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(13, 17, 29, .85); color: var(--text);
  font-size: 13.5px; padding: 4px 13px 4px 5px; white-space: nowrap;
}
.w2-pill:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.w2-pill.w2-actif { border-color: var(--gold); color: var(--gold-light); background: rgba(212, 168, 71, .1); }
/* 9 puces sur la rangée d'accueil (Monnaies comprise) : on resserre un peu
   pour qu'elles tiennent sur une seule ligne en grand écran. */
.w2-hero .w2-pills { gap: 6px; }
.w2-hero .w2-pill { padding: 4px 10px 4px 4px; gap: 6px; }
.w2-pills-f { justify-content: flex-start; margin: 12px 0 14px; }
.w2-pills-f .w2-pill { padding: 5px 14px; }

/* ------------------------- cartes de catégorie -------------------------- */
.w2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.w2-card {
  display: flex; flex-direction: column; color: inherit;
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(22, 28, 47, .9), rgba(13, 17, 29, .95));
  overflow: hidden; position: relative;
}
.w2-card:hover { border-color: var(--gold-dark); }
.w2-card-img { display: block; height: 124px; position: relative; }
.w2-card-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, .12) 40%, rgba(13, 17, 29, .96));
}
/* colonne : « Explorer → » reste aligné en bas quel que soit le nombre de
   lignes du titre (22 cartes, certains noms tiennent sur deux lignes). */
.w2-card-in {
  display: flex; flex-direction: column; flex: 1;
  padding: 0 14px 14px; margin-top: -20px; position: relative;
}
.w2-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.w2-card-tt b {
  display: block; font-family: var(--cinzel); font-size: 19px; color: var(--gold-light);
  font-weight: 700; line-height: 1.15;
}
.w2-card-tt i {
  font-style: normal; font-size: 14px; color: #9aa2b6;
  font-variant-numeric: tabular-nums;
}
.w2-card-d { display: block; font-size: 13.5px; line-height: 1.4; color: #9fa6b8; min-height: 56px; }
.w2-card-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  padding-top: 10px;
  font-family: var(--cinzel); font-size: 12px; letter-spacing: .1em; color: var(--gold);
}
.w2-card:hover .w2-card-go { color: var(--gold-light); }
.w2-card-go .w2-svg { width: 22px; }

/* --------------------- parcourir par catégorie -------------------------- */
.w2-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.w2-chip {
  display: flex; align-items: center; gap: 9px; color: inherit;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(10, 14, 24, .6); padding: 8px 10px;
}
.w2-chip:hover { border-color: var(--gold-dark); }
.w2-chip-t { flex: 1; min-width: 0; }
.w2-chip-t b { display: block; font-family: var(--cinzel); font-size: 13px; color: var(--bright); font-weight: 600; }
.w2-chip-t i { font-style: normal; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.w2-chip-ch { color: var(--gold-dark); font-size: 11px; }

/* ----------------------------- fil d'Ariane ----------------------------- */
.w2-fil {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; color: var(--dim); margin: 0 0 12px;
  padding: 9px 12px; border: 1px solid var(--border-f); border-radius: var(--r);
  background: rgba(13, 17, 29, .55);
}
.w2-fil a { color: #a8b0c4; }
.w2-fil a:hover { color: var(--gold-light); }
.w2-fil-h { color: var(--gold); font-size: 15px; display: flex; }
.w2-fil-s { color: #495375; font-size: 9px; display: flex; }
.w2-fil-c { color: var(--gold-light); }

/* ------------------------------- listes --------------------------------- */
.w2-intro { color: #9fa6b8; font-size: 15px; margin: 0 0 14px; max-width: 80ch; }
.w2-vide {
  color: var(--dim); font-style: italic; padding: 22px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--r);
}
.w2-souscats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.w2-souscats a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); padding: 6px 12px;
  background: rgba(13, 17, 29, .6);
}
.w2-souscats a:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.w2-souscats i { font-style: normal; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

.w2-filtres {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(13, 17, 29, .6); padding: 12px; margin-bottom: 12px;
}
.w2-f-l { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 180px;
  border: 1px solid var(--border); border-radius: var(--r); background: rgba(7, 10, 18, .8); padding: 0 10px; }
.w2-f-ic { color: var(--gold-dark); display: flex; }
.w2-f-l input { flex: 1; min-width: 0; background: none; border: 0; color: var(--bright); font: 15px var(--crimson); padding: 9px 0; }
.w2-f-l input:focus { outline: none; }
.w2-f-c { display: flex; align-items: center; gap: 6px; }
.w2-f-c label {
  font-family: var(--cinzel); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
.w2-f-c input, .w2-f-c select {
  background: rgba(7, 10, 18, .8); border: 1px solid var(--border); border-radius: var(--r);
  color: var(--text); font: 14px var(--crimson); padding: 8px 9px;
}
.w2-f-c input[type=number] { width: 62px; }
.w2-f-tiret { color: var(--dim); }

.w2-listebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.w2-count { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.w2-count b { color: var(--gold-light); font-size: 16px; }
.w2-vues { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.w2-vue {
  font-family: var(--cinzel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; color: var(--dim); background: rgba(13, 17, 29, .7);
}
.w2-vue.w2-actif { color: #1c1608; background: linear-gradient(180deg, #e7cd8c, #c49a39); }

.w2-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.w2-tuile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--r); padding: 12px 8px;
  background: rgba(13, 17, 29, .65); color: var(--text); min-height: 138px;
}
.w2-tuile .w2-ic { border-color: var(--border); }
.w2-table td .w2-ic { border-color: var(--border-f); }
.w2-tuile:hover { border-color: var(--gold-dark); background: rgba(22, 28, 47, .8); }
.w2-tuile-n { font-size: 14px; line-height: 1.25; color: inherit; }
.w2-tuile-v { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

.w2-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.w2-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.w2-table th {
  text-align: left; font-family: var(--cinzel); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); font-weight: 600;
  background: rgba(10, 14, 24, .9); border-bottom: 1px solid var(--border); padding: 0;
}
.w2-table th a { display: block; padding: 10px 12px; color: inherit; }
.w2-table th a:hover { color: var(--gold-light); }
.w2-table th.w2-tri a { color: var(--gold-light); }
.w2-table td { padding: 7px 12px; border-bottom: 1px solid var(--border-f); vertical-align: middle; }
.w2-table tbody tr:hover { background: rgba(212, 168, 71, .05); }
.w2-dim { color: #545b73; }

.w2-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 6px; }
.w2-pg {
  min-width: 34px; text-align: center; padding: 7px 10px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: var(--r); color: var(--text);
  background: rgba(13, 17, 29, .6); font-variant-numeric: tabular-nums;
}
.w2-pg:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.w2-pg.w2-actif { color: #1c1608; background: linear-gradient(180deg, #e7cd8c, #c49a39); border-color: #c9a24a; }
.w2-pg.w2-off { opacity: .4; }
.w2-pg-e { color: var(--dim); padding: 0 2px; }

/* ----------------------------- résultats -------------------------------- */
.w2-res { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r); }
.w2-res li + li { border-top: 1px solid var(--border-f); }
.w2-res-a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); }
.w2-res-a:hover { background: rgba(212, 168, 71, .06); }
.w2-res-n { flex: 1; min-width: 0; font-size: 15px; }
.w2-res-t, .w2-res-v, .w2-res-l { font-size: 12.5px; color: var(--dim); }
.w2-res-t { font-family: var(--cinzel); letter-spacing: .06em; }

/* ------------------------------- icônes --------------------------------- */
.w2-ic {
  display: inline-block; flex: none; background-size: cover; background-position: center;
  border: 1px solid var(--border); border-radius: 2px; background-color: #0a0d16;
  vertical-align: middle;
}
.w2-ic-18 { width: 18px; height: 18px; }
.w2-ic-20 { width: 20px; height: 20px; }
.w2-ic-24 { width: 24px; height: 24px; }
.w2-ic-32 { width: 32px; height: 32px; }
.w2-ic-40 { width: 40px; height: 40px; }
.w2-ic-48 { width: 48px; height: 48px; }
.w2-ic-64 { width: 64px; height: 64px; }
.w2-ic-vide { background: repeating-linear-gradient(45deg, #11151f, #11151f 4px, #161b28 4px, #161b28 8px); }

/* --------------------------- couleurs qualité --------------------------- */
.w2-q10, .item_quality_10 { color: #9d9d9d !important; }
.w2-q20, .item_quality_20 { color: #ffffff !important; }
.w2-q30, .item_quality_30 { color: #1eff00 !important; }
.w2-q40, .item_quality_40 { color: #0070dd !important; }
.w2-q50, .item_quality_50 { color: #a335ee !important; }
.w2-q60, .item_quality_60 { color: #ff8000 !important; }
.w2-q70, .item_quality_70 { color: #e6cc80 !important; }
.w2-q0 { color: var(--text) !important; }
.w2-q1 { color: #e8c548 !important; }   /* créature élite */
.w2-q2 { color: #ff6b5e !important; }   /* boss */

/* ------------------------------- liens / réfs --------------------------- */
.w2-lien { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-light); }
.w2-lien:hover { text-decoration: underline; }
.w2-refs { list-style: none; margin: 0; padding: 0; }
.w2-refs > li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 5px 2px; border-bottom: 1px solid var(--border-f);
}
.w2-refs > li:last-child { border-bottom: 0; }
.w2-refs-2col { columns: 2; column-gap: 24px; }
.w2-refs-2col > li { break-inside: avoid; }
.w2-ref { display: inline-flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.w2-ref:hover .w2-ref-n { text-decoration: underline; }
.w2-ref-n { font-size: 14.5px; color: inherit; }
.w2-ref-v, .w2-ref-x, .w2-qte, .w2-prog {
  font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums;
}
.w2-prog { font-family: var(--cinzel); font-size: 11px; letter-spacing: .06em; }
.w2-lbl {
  font-family: var(--cinzel); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); min-width: 92px;
}
.w2-plus { margin-top: 8px; font-size: 13.5px; }
.w2-tag {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--cinzel);
  border: 1px solid var(--border); border-radius: 2px; padding: 1px 6px; color: var(--dim);
}
.w2-tag-leg { color: #ffb454; border-color: #6b4d15; }

/* -------------------------------- argent -------------------------------- */
.w2-argent { display: inline-flex; align-items: center; gap: 5px; }
.w2-mo {
  display: inline-flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums;
  font-size: 13.5px; padding: 1px 6px; border-radius: 2px; border: 1px solid;
}
.w2-mo i { font-style: normal; font-size: 10.5px; opacity: .85; }
.w2-or { color: #f0c860; border-color: #6b551a; background: rgba(240, 200, 96, .08); }
.w2-ar { color: #cfd6e2; border-color: #4a5570; background: rgba(207, 214, 226, .06); }
.w2-cu { color: #d59a6a; border-color: #6a4527; background: rgba(213, 154, 106, .07); }
.w2-mo-x { color: var(--violet); border-color: #4b3a7a; background: rgba(139, 92, 246, .08); }
.w2-troc { display: inline-flex; align-items: center; gap: 4px; }
.w2-troc b { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.w2-prix { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.w2-xp { color: var(--vert); font-variant-numeric: tabular-nums; margin-left: 10px; }

/* ------------------------------- monnaies -------------------------------- */
/* Icône ronde du type : la pièce d'or du jeu (img/currencies/gold_g.png),
   seule vignette qui ne soit pas un recadrage de la planche Codex. */
.w2-v-monnaies {
  background-image: url(img/currencies/gold_g.png);
  background-size: 74%;
  background-position: center;
  background-color: #171104;
}
/* tuile de la liste des monnaies (vue cartes) */
.w2-tuile-mon { gap: 8px; }
.w2-mon-rond {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dark);
  background: radial-gradient(circle at 50% 34%, rgba(212, 168, 71, .22), rgba(9, 12, 20, .92) 72%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5) inset;
}
.w2-mon-rond .w2-ic { border: 0; border-radius: 50%; background-color: transparent; }
.w2-tuile-mon:hover .w2-mon-rond { border-color: var(--gold); }
/* fiche : description + compteurs */
.w2-mon-desc { margin-bottom: 12px; }
.w2-mon-desc .w2-texte p { margin: 0 0 8px; }
.w2-mon-note { margin: 0 0 8px; font-size: 13.5px; color: var(--dim); }
/* « Acceptée par » : marchand, programme, lieux, nb d'articles */
.w2-mon-acc > li { flex-wrap: wrap; }
.w2-mon-acc .w2-ref { flex: 1 1 220px; }
.w2-mon-lieu { font-size: 12.5px; color: var(--dim); }
/* programme + lieu empilés à droite du marchand : les noms de programmes sont
   parfois très longs, on les tronque plutôt que de replier la ligne. */
.w2-mon-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  margin-left: auto; min-width: 0; max-width: 260px; line-height: 1.35;
}
.w2-mon-meta .w2-prog, .w2-mon-meta .w2-mon-lieu {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w2-mon-acc .w2-n {
  margin-left: 12px; min-width: 54px; text-align: right; color: var(--gold-light);
}
.w2-mon-acc .w2-n i { font-style: normal; font-size: 10.5px; color: var(--dim); margin-left: 3px; }
/* « Permet d'acheter » : tableau serré dans la colonne de droite */
.w2-table-mon { min-width: 520px; }
.w2-table-mon td .w2-prix { margin-left: 0; }
.w2-table-mon td .w2-prog { display: block; margin-top: 2px; }
/* badge « Monnaie d'échange » (fiche objet) */
.w2-badge-mon {
  color: var(--gold-light); border: 1px solid var(--gold-dark);
  background: rgba(212, 168, 71, .12); -webkit-text-fill-color: currentColor;
}
/* pastilles des monnaies acceptées (fiche créature) */
.w2-monp-l { display: flex; flex-wrap: wrap; gap: 6px; }
.w2-monp {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 3px 8px 3px 5px; color: var(--text); background: rgba(13, 17, 29, .6);
}
.w2-monp:hover { border-color: var(--gold-dark); color: var(--gold-light); }

/* -------------------------------- fiches -------------------------------- */
.w2-fh {
  position: relative; display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px;
  background: linear-gradient(180deg, rgba(23, 29, 49, .92), rgba(13, 17, 29, .92));
  margin-bottom: 14px;
}
.w2-fh-ic { flex: none; }
.w2-fh-ic .w2-ic { border-color: var(--gold-dark); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6) inset; }
.w2-fh-in { min-width: 0; }
.w2-titre-f { font-size: clamp(22px, 2.4vw, 30px); -webkit-text-fill-color: currentColor; background: none; }
.w2-fh-meta { margin: 6px 0 0; color: #9fa6b8; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.w2-fh-sep { color: #495375; }
.w2-fh-id { margin: 5px 0 0; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.w2-fh-id b { color: #96a0ba; }
.w2-fh-en { margin-left: 12px; font-style: italic; }
.w2-badge {
  font-family: var(--cinzel); font-size: 11px; letter-spacing: .1em; padding: 2px 8px;
  border-radius: 2px; vertical-align: middle;
}
.w2-badge-na { color: #ffb0a8; border: 1px solid #6d2620; background: rgba(179, 38, 30, .18); -webkit-text-fill-color: currentColor; }

.w2-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.w2-onglet {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--cinzel); font-size: 12px; letter-spacing: .08em;
  border: 1px solid var(--border); border-radius: var(--r); padding: 8px 14px;
  color: var(--text); background: rgba(13, 17, 29, .7);
}
.w2-onglet i { font-style: normal; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.w2-onglet.w2-actif { border-color: var(--gold-dark); color: var(--gold-light); background: rgba(212, 168, 71, .1); }

.w2-fiche { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.w2-fiche-1 { grid-template-columns: minmax(0, 1fr); }
.w2-col-g, .w2-col-d { min-width: 0; }

.w2-sec {
  border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(20, 25, 42, .85), rgba(13, 17, 29, .9));
}
.w2-sec > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 11px 14px; font-family: var(--cinzel); font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light);
}
.w2-sec > summary::-webkit-details-marker { display: none; }
.w2-sec-t { flex: 1; min-width: 0; }
.w2-sec-ch { color: var(--gold-dark); font-size: 11px; transition: transform .15s ease; }
.w2-sec[open] > summary .w2-sec-ch { transform: rotate(180deg); }
.w2-sec[open] > summary { border-bottom: 1px solid var(--border-f); }
.w2-sec-in { padding: 10px 14px 14px; }
.w2-sst {
  font-family: var(--cinzel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin: 10px 0 6px; display: flex; align-items: center; gap: 8px;
}
.w2-sst:first-child { margin-top: 0; }

.w2-stats { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 14px; }
.w2-stats th {
  text-align: left; font-family: var(--cinzel); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); font-weight: 600;
  padding: 7px 10px 7px 0; width: 42%; vertical-align: top;
}
.w2-stats td { padding: 7px 0; border-bottom: 1px solid var(--border-f); color: var(--bright); }
.w2-stats tr:last-child td { border-bottom: 0; }

.w2-guilde { font-style: italic; color: var(--gold-light); margin: 0 0 10px; }
.w2-quete-st { font-style: italic; color: var(--jaune); margin: 0 0 10px; }
.w2-obj { margin: 0; padding-left: 18px; }
.w2-obj li { margin-bottom: 5px; }
.w2-rec-l { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.w2-vend { list-style: none; margin: 0; padding: 0; }
.w2-vend > li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border-f); }
.w2-vend > li:last-child { border-bottom: 0; }
.w2-prog-bloc + .w2-prog-bloc { margin-top: 14px; }
.w2-prog-bloc h4 { font-family: var(--cinzel); font-size: 12.5px; color: var(--gold-light); letter-spacing: .08em; margin-bottom: 4px; }
.w2-bonus { list-style: none; margin: 0; padding: 0; }
.w2-bonus li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-f); }
.w2-bonus b { font-family: var(--cinzel); font-size: 12px; color: var(--vert); }
.w2-palier + .w2-palier { margin-top: 12px; }
.w2-palier h4 { font-family: var(--cinzel); font-size: 12.5px; color: var(--gold-light); margin-bottom: 4px; }
.w2-texte p { margin: 0 0 10px; line-height: 1.55; }
.w2-pre {
  white-space: pre-wrap; font-family: var(--crimson); font-size: 15px; line-height: 1.55;
  background: rgba(7, 10, 18, .6); border: 1px solid var(--border-f); border-radius: var(--r);
  padding: 14px; margin: 0; color: var(--text);
}
.w2-illu { height: 150px; background-size: cover; background-position: center; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; }
.w2-video { margin: 10px 0 0; }

/* ------------------------------- talents -------------------------------- */
.w2-arbre + .w2-arbre { margin-top: 18px; }
.w2-tal-grid { display: grid; gap: 10px; }
.w2-tal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.w2-tal .w2-ic { border-color: var(--gold-dark); }
.w2-tal-n { font-style: normal; font-size: 11.5px; color: var(--text); line-height: 1.2; max-width: 92px; }
.w2-tal-m { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ----------------------------- minicartes ------------------------------- */
.w2-cartes { display: block; }
.w2-carte { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: rgba(7, 10, 18, .6); }
.w2-carte + .w2-carte { margin-top: 12px; }
.w2-cache { display: none; }
.w2-carte-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; background-color: #0a0d16;
}
.w2-carte-solo .w2-carte-img { aspect-ratio: 1 / 1; }
.w2-pt {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%); border: 1px solid rgba(0, 0, 0, .65);
  box-shadow: 0 0 5px rgba(0, 0, 0, .8);
}
.w2-pt i { display: block; position: absolute; inset: 2px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.w2-pt-rouge { background: #d9443a; }
.w2-pt-boss { background: #7c1c16; width: 15px; height: 15px; border-color: #e0a0a0; }
.w2-pt-bleu { background: var(--bleu); }
.w2-pt-jaune { background: var(--jaune); }
.w2-pt-vert { background: var(--vert); }

/* Pastilles d'origine du jeu (miroir img/maps/*.png) : elles remplacent le
   disque de couleur quand le `r` du point est connu. */
.w2-ptimg-dot_red_point, .w2-ptimg-dot_boss, .w2-ptimg-dot_blue_point,
.w2-ptimg-dot_quests, .w2-ptimg-dot_quests_objective,
.w2-ptimg-dot_quests_finisher, .w2-ptimg-dot_quests_merchant {
  background-color: transparent; background-repeat: no-repeat;
  background-position: center; background-size: contain;
  border: 0; box-shadow: none; width: 13px; height: 13px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.w2-ptimg-dot_red_point i, .w2-ptimg-dot_boss i, .w2-ptimg-dot_blue_point i,
.w2-ptimg-dot_quests i, .w2-ptimg-dot_quests_objective i,
.w2-ptimg-dot_quests_finisher i, .w2-ptimg-dot_quests_merchant i { display: none; }
.w2-ptimg-dot_red_point { background-image: url(img/maps/minimap_quest_objective_dot.png); }
.w2-ptimg-dot_boss { background-image: url(img/maps/map_icon_boss.png); width: 22px; height: 22px; }
.w2-ptimg-dot_blue_point { background-image: url(img/maps/minimap_blue_dot.png); }
.w2-ptimg-dot_quests { background-image: url(img/maps/minimap_quest_dot.png); }
.w2-ptimg-dot_quests_objective { background-image: url(img/maps/minimap_quest_objective_dot.png); }
.w2-ptimg-dot_quests_finisher { background-image: url(img/maps/minimap_quest_finisher_dot.png); }
.w2-ptimg-dot_quests_merchant { background-image: url(img/maps/minimap_quest_merchant_dot.png); }
.w2-pta { display: contents; }
.w2-lg-t {
  font-family: var(--cinzel); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-dark); width: 100%;
}
.w2-carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border-f); }
.w2-carte-nom { font-size: 14px; }
.w2-carte-n { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.w2-carte-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.w2-cs {
  font-family: var(--cinzel); font-size: 11.5px; letter-spacing: .06em; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r); background: rgba(13, 17, 29, .7);
  color: var(--text); padding: 6px 12px;
}
.w2-cs.w2-actif { border-color: var(--gold-dark); color: var(--gold-light); background: rgba(212, 168, 71, .1); }
.w2-legende, .w2-carte-filtres { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; font-size: 13px; color: var(--dim); }
.w2-lg, .w2-cf { display: inline-flex; align-items: center; gap: 7px; }
/* En légende, le point reste POSITIONNÉ (relative) : son pastillon interne
   est en position:absolute — en static il se dimensionnait sur le viewport
   et peignait un disque blanc géant par-dessus la page. */
.w2-lg .w2-pt, .w2-cf .w2-pt { position: relative; left: auto; top: auto; transform: none; }
.w2-galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.w2-gal { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.w2-gal-img {
  display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center;
  border: 1px solid var(--border); border-radius: var(--r); background-color: #0a0d16;
}
.w2-gal:hover .w2-gal-img { border-color: var(--gold-dark); }
.w2-gal-n { font-size: 14px; }
.w2-gal-x { font-size: 12px; color: var(--dim); }

/* ---------------------- info-bulles (HTML du jeu) ----------------------- */
.w2-tip {
  position: absolute; z-index: 120; max-width: 390px; pointer-events: none;
  background: linear-gradient(180deg, #0f1422, #080b13);
  border: 1px solid var(--gold-dark); border-radius: var(--r);
  padding: 10px 12px; font-size: 14px; color: var(--text);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}
.w2-bulle { font-size: 14px; line-height: 1.4; }
.w2-bulle-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.w2-bulle-n { font-family: var(--cinzel); font-size: 15px; color: var(--gold-light); }
.w2-bulle-l { list-style: none; margin: 0; padding: 0; color: var(--dim); font-size: 13px; }
.w2-bulle-l li { padding: 1px 0; }

/* Le HTML des info-bulles vient des caches SQL du site : on style SES
   classes telles quelles (block_N portés par des <ul>, pastilles de monnaie
   = <span class="silver"></span> VIDE suivi du nombre, d'où la pièce en
   pastille ronde avec sa lettre o/a/c plutôt qu'un suffixe). */
.w2-bulle .item_info, .w2-bulle .spell_info { display: block; }
.w2-bulle .top_crop, .w2-bulle .bottom_crop { display: none; }
.w2-bulle .item_info img, .w2-bulle .spell_info img { vertical-align: middle; max-width: 40px; margin-right: 8px; }
.w2-bulle .title { font-family: var(--cinzel); font-size: 15px; display: block; margin-bottom: 4px; }
.w2-bulle .block_1, .w2-bulle .block_2, .w2-bulle .block_3, .w2-bulle .block_4,
.w2-bulle .block_5, .w2-bulle .block_6, .w2-bulle .block_7, .w2-bulle .block_8 {
  border-top: 1px solid var(--border-f); margin: 6px 0 0; padding: 6px 0 0; list-style: none;
}
.w2-bulle .item_info > :first-child, .w2-bulle .top_crop + * {
  border-top: 0; margin-top: 0; padding-top: 0;
}
.w2-bulle .block_1 { color: var(--text); }
.w2-bulle .block_2 { color: #6ad06a; }
.w2-bulle .block_3 { color: #66d9e8; }
.w2-bulle .block_4 { color: #c8a978; font-style: italic; }
.w2-bulle .block_5 { color: var(--jaune); }
.w2-bulle .block_6 { color: #b7a4e0; }
.w2-bulle .block_7 { color: #9fa6b8; }
.w2-bulle .block_8 { color: #e07a6a; }
.w2-bulle ul { list-style: none; margin: 0; padding: 0; }
.w2-bulle li { padding: 1px 0; }
.w2-bulle .slot_material { display: flex; justify-content: space-between; gap: 14px; color: var(--dim); }
.w2-bulle .price { display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  font-variant-numeric: tabular-nums; }
.w2-bulle .price div { display: inline; margin-right: 4px; color: var(--dim); }
.w2-bulle .gold, .w2-bulle .silver, .w2-bulle .copper {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid;
  font-size: 9px; font-weight: 700; font-style: normal; margin-left: 7px;
}
.w2-bulle .price > :first-child + .gold,
.w2-bulle .price > :first-child + .silver,
.w2-bulle .price > :first-child + .copper { margin-left: 0; }
.w2-bulle .gold { background: linear-gradient(180deg, #f3d178, #c9992f); border-color: #8a6d1b; color: #3a2b06; }
.w2-bulle .gold::after { content: "o"; }
.w2-bulle .silver { background: linear-gradient(180deg, #e6ebf3, #a9b3c6); border-color: #6b7590; color: #2a3040; }
.w2-bulle .silver::after { content: "a"; }
.w2-bulle .copper { background: linear-gradient(180deg, #e0a878, #a86a3a); border-color: #7a4a25; color: #3a2113; }
.w2-bulle .copper::after { content: "c"; }
.w2-bulle .item_set_bonus { color: #6ad06a; }
.w2-bulle .item_set_bonus .inactive, .w2-bulle .inactive { color: #5b6276; }
/* Panneau de sort : 4 valeurs sans libellé dans la source (coût, portée,
   incantation, recharge) — on les nomme en CSS. */
.w2-bulle .spell_info .top_crop + div {
  font-family: var(--cinzel); font-size: 15px; color: var(--gold-light); margin-bottom: 4px;
}
.w2-bulle .spell_info ul {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 6px 0 0;
  border-top: 1px solid var(--border-f);
}
.w2-bulle .spell_info li { font-size: 13px; color: #9fa6b8; }
.w2-bulle .spell_info li::before {
  color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  margin-right: 5px; font-family: var(--cinzel);
}
.w2-bulle .spell_info li:nth-child(1)::before { content: "Coût"; }
.w2-bulle .spell_info li:nth-child(2)::before { content: "Portée"; }
.w2-bulle .spell_info li:nth-child(3)::before { content: "Incant."; }
.w2-bulle .spell_info li:nth-child(4)::before { content: "Recharge"; }
.w2-bulle .spell_info ul + div {
  border-top: 1px solid var(--border-f); margin-top: 6px; padding-top: 6px;
  color: #c8a978; font-style: italic;
}

/* --------------------------------- 404 ---------------------------------- */
.w2-404 { text-align: center; padding: 30px 20px 40px; }
.w2-404-img { width: 190px; height: 190px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 18px; }
.w2-404 .w2-intro { margin: 10px auto 20px; }

/* ------------------------------ pied de page ---------------------------- */
.w2-foot {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 22px 20px 30px; border-top: 1px solid var(--border-f); margin-top: 10px;
}
.w2-foot-t {
  font-family: var(--cinzel); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: #8b7c4f;
}
.w2-foot-l { flex: 0 1 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dark)); }
.w2-foot-l:last-child { background: linear-gradient(90deg, var(--gold-dark), transparent); }

/* ================= pack des 22 catégories (img/categories) ===============
   Les médaillons et les artworks sont de VRAIS fichiers (découpés une fois
   pour toutes) ; ils ne passent pas par les recadrages .w2-v-* de la planche
   Codex, qui ne servent plus que pour le hero et « À la une ». */
.w2-ico-cat {
  background-size: contain;
  background-position: center;
  background-color: transparent;
  border: 0;                 /* le médaillon porte déjà son cercle d'or */
  box-shadow: none;
}
.w2-tree .w2-ico-cat { width: 21px; height: 21px; }

/* artwork d'une carte d'accueil : le fond gris de la planche est fondu dans
   le panneau par un masque radial (sinon la carte fait « affiche collée »). */
.w2-card-art {
  background-image: none;    /* remplace la planche : l'URL est en ligne */
  background-size: cover;
  background-position: center 30%;
  -webkit-mask-image: radial-gradient(118% 104% at 50% 30%, #000 44%, rgba(0, 0, 0, .78) 66%, transparent 94%);
  mask-image: radial-gradient(118% 104% at 50% 30%, #000 44%, rgba(0, 0, 0, .78) 66%, transparent 94%);
}
.w2-card-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 34%, rgba(11, 14, 24, 0) 40%, rgba(11, 14, 24, .55) 78%, rgba(11, 14, 24, .92) 100%);
}
.w2-card-art .w2-card-fade {
  background: linear-gradient(180deg, rgba(8, 11, 20, 0) 34%, rgba(13, 17, 29, .82) 78%, rgba(13, 17, 29, 1));
}

/* rangée des 22 médaillons : 2 lignes en grand écran, défilement en mobile */
.w2-pills-22 { max-width: 1120px; margin-left: auto; margin-right: auto; }
.w2-hero .w2-pills-22 .w2-pill { font-size: 12.5px; }

/* ------------------------ pages de contenu (Markdown) -------------------- */
.w2-md {
  display: block; max-width: 860px;
  border: 1px solid var(--border-f); border-radius: var(--r);
  background: rgba(13, 17, 29, .55); padding: 18px 22px 22px;
  font-size: 16.5px; line-height: 1.62;
}
.w2-md .w2-md-t {
  font-family: var(--cinzel); color: var(--gold-light);
  margin: 22px 0 8px; font-size: 20px; font-weight: 600;
}
.w2-md h3.w2-md-t { font-size: 17px; color: var(--gold); }
.w2-md h4.w2-md-t { font-size: 15px; color: var(--text); }
.w2-md > :first-child { margin-top: 0; }
.w2-md p { margin: 0 0 12px; }
.w2-md ul { margin: 0 0 14px; padding-left: 20px; }
.w2-md li { margin: 0 0 5px; }
.w2-md blockquote {
  margin: 14px 0; padding: 10px 14px; color: var(--dim);
  border-left: 2px solid var(--gold-dark); background: rgba(8, 11, 20, .5);
  font-size: 14.5px;
}
.w2-md b { color: var(--bright); }
.w2-md ol { margin: 0 0 14px; padding-left: 24px; }
.w2-md ol > li::marker { color: var(--gold); font-family: var(--cinzel); font-weight: 600; }
/* tableaux : l'enveloppe défile seule, la page ne déborde jamais en mobile */
.w2-md-tabw { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.w2-md-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.w2-md-tab th, .w2-md-tab td {
  border: 1px solid var(--border-f); padding: 6px 9px; text-align: left; vertical-align: middle;
}
.w2-md-tab th {
  background: rgba(8, 11, 20, .7); color: var(--gold-light);
  font-family: var(--cinzel); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.w2-md-tab tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.w2-md-tab .w2-ref { display: flex; }
/* captures du jeu (tutoriels) : cliquables pour la pleine taille */
.w2-md-fig { margin: 8px 0 18px; }
.w2-md-fig img {
  display: block; width: 100%; max-width: 760px; height: auto;
  border: 1px solid var(--border); border-radius: 4px;
}
.w2-md-fig figcaption { color: var(--dim); font-size: 14px; font-style: italic; margin-top: 6px; }
/* pastille de couleur de gemme ({{rouge}} {{vert}} {{bleu}}) */
.w2-gem { white-space: nowrap; }
.w2-gem::before {
  content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 6px;
  border-radius: 50%; background: currentColor; vertical-align: -1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 6px currentColor;
}
.w2-gem-rouge { color: #ff5a64; }
.w2-gem-vert { color: #5fd46c; }
.w2-gem-bleu { color: #5ea8ff; }

/* ------------------- fiches classes / factions / succès ------------------ */
.w2-spec .w2-ref-v { color: var(--dim); }
.w2-note {
  margin: 8px 0 0; font-size: 13.5px; color: var(--dim); font-style: italic;
}
.w2-titre-rec {
  margin: 0; font-family: var(--cinzel); font-size: 17px;
  color: var(--gold-light);
}
.w2-crit { list-style: none; margin: 0; padding: 0; }
.w2-crit > li {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 8px; border-bottom: 1px solid var(--border-f);
}
.w2-crit > li:last-child { border-bottom: 0; }
.w2-crit-t {
  flex: 0 0 auto; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-dark);
  border: 1px solid var(--border); border-radius: 2px; padding: 2px 6px;
}
.w2-crit-x { color: var(--text); font-size: 14.5px; }
.w2-crit .w2-qte { margin-left: auto; color: var(--gold-light); }

/* -------------------------------- voile --------------------------------- */
.w2-voile { display: none; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1279px) {
  .w2-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .w2-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .w2-right .w2-panel { margin-bottom: 0; }
  .w2-cards, .w2-chips, .w2-grille, .w2-galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .w2-burger { display: inline-flex; }
  .w2-nav { display: none; }
  .w2-top-in, .w2-barre-in { gap: 12px; padding: 0 16px; }
  .w2-ver-t { display: none; }
  /* l'en-tête doit tenir dans 360 px : pas de défilement horizontal */
  .w2-top-r .w2-rond:not(.w2-fr) { display: none; }
  .w2-barre-t span { display: none; }
  .w2-logo-2 { letter-spacing: .34em; }
  .w2-shell { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 30px; gap: 16px; }
  .w2-side {
    position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 86vw; z-index: 90;
    max-height: none; border-radius: 0; transform: translateX(-102%);
    transition: transform .2s ease; overflow: auto;
  }
  .w2-tiroir .w2-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .7); }
  .w2-side-x { display: block; }
  .w2-voile { display: block; position: fixed; inset: 0; background: rgba(4, 6, 12, .66); z-index: 80; }
  .w2-voile[hidden] { display: none; }
  .w2-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w2-cards, .w2-chips, .w2-grille, .w2-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w2-fiche { grid-template-columns: minmax(0, 1fr); }
  /* 22 médaillons : défilement horizontal plutôt que 6 lignes de puces */
  .w2-pills-22 {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 6px; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .w2-pills-22 .w2-pill { flex: 0 0 auto; }
  .w2-md { padding: 14px 16px 18px; font-size: 16px; }
  .w2-refs-2col { columns: 1; }
  .w2-search { flex-wrap: wrap; }
  .w2-btn-or { width: 100%; justify-content: center; }
}

@media (max-width: 599px) {
  /* En-tête du site (balisage de Chris, website.css) : sa barre du haut est
     d'une hauteur fixe et ne se replie pas — sous ~470 px de large elle
     dépassait de la page. On la laisse respirer. wiki2.css n'est chargée que
     sur /wiki : les pages du site ne sont pas touchées. */
  .topbar {
    height: auto; min-height: 40px; padding: 4px 12px;
    flex-wrap: wrap; row-gap: 2px;
  }
  .topbar-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

  .w2-ver { display: none; }
  .w2-cards, .w2-chips, .w2-grille, .w2-galerie, .w2-right { grid-template-columns: minmax(0, 1fr); }
  .w2-titre { font-size: 28px; }
  .w2-card-d { min-height: 0; }
  .w2-hero-in { padding: 18px 16px; }
  .w2-filtres { padding: 10px; }
  .w2-f-c { flex: 1 1 100%; }
  .w2-f-c select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
