/* =====================================================================================
   Astrum — site vitrine. DA « Volcanique » : roche noire et basalte, lettrage de lave rouge-orange, braises.
   Mobile d'abord. Aucune dépendance. Voir CHARTE.md pour la palette et les usages.
   ===================================================================================== */
@font-face { font-family: "Cal Sans"; src: url("../fonts/CalSans-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cal Sans"; src: url("../fonts/CalSans-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  /* roche (socle du logo) */
  --roche-0: #0a0807;  /* le plus profond : pied de page, code */
  --roche-1: #110e0d;  /* fond */
  --roche-2: #1a1514;  /* surfaces */
  --roche-3: #251e1c;  /* surfaces relevées */
  --basalte: #3a3230;  /* bordures fortes, gris du socle */
  /* lave (lettrage et fissures) */
  --lave: #e2421b;        /* rouge lave */
  --lave-vive: #ff6a1a;   /* orange incandescent : accents, icônes, sur-titres */
  --lave-sombre: #9e2a12;
  --braise: #ffb347;      /* ambre : liens, survols */
  --braise-pale: #ffe0b8; /* titres */
  --sur-lave: #1a0a05;    /* texte posé sur l'ambre / l'orange */
  /* états */
  --ambre: #ffc24a;    /* info, étiquettes */
  --mort: #e8335a;     /* mort, hors ligne, danger (carmin, distinct de la lave) */
  --vivant: #4fd27e;   /* en ligne */
  /* texte */
  --texte: #f2ece8;
  --texte-2: #cfc3bd;
  --texte-3: #a3958f;
  --ligne: rgba(255, 106, 26, .2);
  --ligne-2: rgba(242, 236, 232, .09);
  --lueur: 0 0 0 1px rgba(255, 106, 26, .35), 0 0 26px rgba(255, 90, 20, .18);
  --r: 10px;
  --ombre: 0 18px 50px rgba(0, 0, 0, .55);
  --f-titre: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   /* titres (800) */
  --f-display: "Cal Sans", "Satoshi", system-ui, sans-serif;                     /* grands titres, slogan, noms « légendaires », chiffres */
  --f-gothique: var(--f-display);                                               /* ancien nom (Grenze Gotisch retirée le 20/11) */
  --f-texte: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--roche-1) url("../img/texture-roche.webp") repeat; color: var(--texte);
  font: 400 16px/1.65 var(--f-texte); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--braise); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--braise-pale); }
:focus-visible { outline: 2px solid var(--braise); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0 0 .5em; color: var(--braise-pale); }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); text-shadow: 0 0 28px rgba(255, 90, 20, .28); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3, .h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 600; }
code { font: .9em/1.4 ui-monospace, Consolas, Menlo, monospace; color: var(--braise); background: rgba(255,106,26,.08); padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--texte-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg, .ico-xl, .ico-xxl { fill: none; stroke: var(--lave-vive); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 40px; height: 40px; }
.ico-xl { width: 56px; height: 56px; }
.ico-xxl { width: 96px; height: 96px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lave-vive); color: var(--sur-lave); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- boutons ---------- */
/* « roche + lave » : bloc taillé (coins coupés), cœur de lave et lueur au survol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .9rem/1 var(--f-texte); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 1em 1.5em; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s, color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-or { /* lave */
  color: #fff4ea; text-shadow: 0 1px 2px rgba(60, 10, 0, .7);
  background: linear-gradient(180deg, #cc3d1a 0%, #b8321a 52%, #7e1e0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 179, 71, .65), inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 106, 26, .55);
}
.btn-or:hover { color: #fff; filter: brightness(1.12) drop-shadow(0 0 14px rgba(255, 90, 20, .55)); }
.btn-ghost { /* roche */
  color: var(--braise-pale); background: linear-gradient(180deg, #2e2624, #1a1514);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px var(--basalte);
}
.btn-ghost:hover { color: var(--braise-pale); box-shadow: inset 0 0 0 1px var(--lave-vive), inset 0 -8px 18px rgba(255, 90, 20, .18); filter: drop-shadow(0 0 10px rgba(255, 90, 20, .35)); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--braise-pale); }
.btn-sm { font-size: .8rem; padding: .7em 1.05em; }
.btn-lg { font-size: 1rem; padding: 1.05em 1.6em; }
[aria-disabled="true"].btn { opacity: .78; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-back::after { content: none; }
.link-back::before { content: "←"; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(17, 14, 13, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { display: block; width: 120px; height: auto; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--ligne); border-radius: 10px; background: transparent; cursor: pointer; padding: 11px 10px; }
.burger span { display: block; height: 2px; background: var(--braise-pale); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.js .burger { display: block; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav { width: 100%; }
.js .nav { display: none; }
.js .nav.open { display: block; padding-bottom: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a:not(.btn):not(.status-pill) { white-space: nowrap; display: block; padding: 12px 10px; color: var(--texte-2); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:not(.btn):not(.status-pill):hover { color: var(--braise-pale); background: rgba(255,106,26,.06); }
.nav a[aria-current="page"]:not(.btn):not(.status-pill) { color: var(--braise); }
.nav-cta { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ---------- statut ---------- */
.status-pill, .status-card {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--texte-2);
  font-size: .85rem; font-weight: 500; border: 1px solid var(--ligne-2); border-radius: 999px; padding: .5em .95em; background: rgba(26, 21, 20, .7);
}
.status-pill:hover, .status-card:hover { color: var(--texte); border-color: var(--ligne); }
[data-statut-pill] > i { width: 9px; height: 9px; border-radius: 50%; background: var(--texte-3); flex: none; }
[data-state="en-ligne"] > i { background: var(--vivant); box-shadow: 0 0 0 4px rgba(91, 209, 139, .18); animation: pouls 2.4s ease-in-out infinite; }
[data-state="hors-ligne"] > i { background: var(--mort); box-shadow: 0 0 0 4px rgba(232, 51, 90, .18); }
@keyframes pouls { 50% { box-shadow: 0 0 0 7px rgba(91, 209, 139, 0); } }

/* ---------- héros ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 16px 72px; text-align: center;
  background: radial-gradient(120% 75% at 50% 100%, rgba(150, 40, 12, .35) 0%, transparent 60%), radial-gradient(120% 70% at 50% 0%, #2a1712 0%, transparent 70%); }
.sky, .hero::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky { /* braises qui montent */
  background-image:
    radial-gradient(1.6px 1.6px at 20px 40px, #ffb347, transparent 70%),
    radial-gradient(1.2px 1.2px at 120px 90px, #ff6a1a, transparent 70%),
    radial-gradient(2px 2px at 200px 160px, #ffc24a, transparent 70%),
    radial-gradient(1.1px 1.1px at 60px 210px, #ff6a1a, transparent 70%),
    radial-gradient(1.4px 1.4px at 260px 30px, #ffb347, transparent 70%),
    radial-gradient(1px 1px at 160px 240px, #ffd58a, transparent 70%);
  background-size: 290px 260px; opacity: .7; animation: braises 26s linear infinite;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%); mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
}
@keyframes braises { to { background-position: 40px -520px; } }
.hero::after { content: ""; background: url("../img/fissures.webp") center bottom / cover no-repeat; opacity: .4; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 75%); mask-image: linear-gradient(0deg, #000 0%, transparent 75%); }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2%; width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 90, 20, .2), transparent 60%); pointer-events: none; }
.hero-in { max-width: 860px; margin: 0 auto; }
.hero-logo img { display: block; width: min(720px, 94vw); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .55)); }
.slogan { font-family: var(--f-titre); font-size: clamp(1.35rem, 4.6vw, 2.25rem); color: var(--braise-pale); margin: 8px 0 14px; letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.slogan span { display: block; color: var(--lave-vive); background: linear-gradient(180deg, var(--braise), var(--lave-vive) 60%, var(--lave-sombre)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.slogan-2 { font: 600 .82rem/1.4 var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); margin: -4px 0 16px; }
@media (max-width: 480px) { .slogan-2 { font-size: .7rem; letter-spacing: .08em; } }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: var(--texte-2); max-width: 680px; margin-left: auto; margin-right: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 14px; }
.cta .btn { flex: 0 1 auto; min-width: 240px; white-space: nowrap; }
@media (max-width: 420px) { .cta .btn { flex: 1 1 100%; min-width: 0; } }
.hero-meta { color: var(--texte-3); font-size: .875rem; }
.status-card { margin-top: 8px; }
.scroll-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: var(--lave-vive); opacity: .7; animation: flotte 3s ease-in-out infinite; }
.scroll-hint .ico { fill: currentColor; stroke: none; width: 20px; height: 20px; }
@keyframes flotte { 50% { transform: translate(-50%, 6px); } }
/* héros de l'accueil : slogan sur un fond de lave */
.hero-lave { min-height: min(86vh, 760px); display: grid; align-items: center; padding-top: 72px; padding-bottom: 88px;
  background: #0a0605 url("../img/lave-heros-mobile.webp") center bottom / cover no-repeat; }
@media (min-width: 760px) { .hero-lave { background-image: url("../img/lave-heros.webp"); background-position: center 70%; } }
.hero-lave::after { opacity: .35; }
.hero-lave .lueur { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 100%, rgba(255, 90, 20, .35), transparent 70%); animation: lueur 5s ease-in-out infinite alternate; }
@keyframes lueur { from { opacity: .55; } to { opacity: 1; } }
.slogan-xl { font-size: clamp(2.4rem, 8.4vw, 5.6rem); line-height: 1.02; margin: 0 0 18px; color: var(--braise-pale);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9), 0 0 32px rgba(0, 0, 0, .85), 0 0 60px rgba(255, 90, 20, .25); }
.slogan-xl span:not(.sr) { margin-top: .08em; background: none; color: #ff8a3d; -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .95), 0 0 26px rgba(0, 0, 0, .9), 0 0 48px rgba(255, 90, 20, .45); }
.hero-lave .slogan-2 { font-size: .9rem; color: var(--texte); text-shadow: 0 1px 3px #000; }
.hero-lave .lead { color: var(--texte); text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .8); }
.hero-lave .hero-meta { color: var(--texte-2); text-shadow: 0 1px 2px #000; }
@media (max-width: 480px) { .hero-lave .slogan-2 { font-size: .7rem; } }

/* ---------- sections ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding: 64px 0; position: relative; }
.section-dark { overflow: hidden; overflow: clip; background: linear-gradient(180deg, var(--roche-0), var(--roche-2) 60%, var(--roche-0)); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.section-dark::before { /* filigrane : crâne du logo */
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 240px; height: 280px; pointer-events: none;
  background: url("../img/monogramme-256.webp") center / contain no-repeat; opacity: .06; filter: grayscale(.6) brightness(.8);
}
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; text-align: left; max-width: none; flex-wrap: wrap; }
.sec-head-row h2 { margin: 0; }
.kicker { font: 600 .78rem/1.2 var(--f-texte); text-transform: uppercase; letter-spacing: .22em; color: var(--lave-vive); margin: 0 0 12px; display: inline-flex; align-items: center; gap: .6em; }
.kicker::before, .kicker::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--lave-vive)); }
.kicker::after { transform: scaleX(-1); }
.kicker a { color: inherit; text-decoration: none; }
.page-head { padding: 56px 0 24px; text-align: center; background: radial-gradient(90% 120% at 50% 0%, var(--roche-3), transparent 70%); position: relative; }
.page-head::after { content: ""; display: block; width: 180px; height: 14px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--lave-vive) 45%, transparent 45% 55%, var(--lave-vive) 55%, transparent) center / 100% 1px no-repeat,
              url("../img/braise.svg") center / 14px 14px no-repeat; opacity: .85; }
.page-head .lead { margin-bottom: 0; }
.page-head .tags { margin-top: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card { background: linear-gradient(180deg, rgba(37, 30, 28, .75), rgba(26, 21, 20, .75)); border: 1px solid var(--ligne-2); border-radius: var(--r); padding: 24px; position: relative; }
.card:hover { box-shadow: var(--lueur); }
.card { transition: box-shadow .25s; }
.card::before { /* fissure de lave en haut */
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 26, .55), transparent); }
.card h2, .card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.card.feature h2 { font-size: 1.2rem; }
.pillar { text-align: center; }
.grid + .center { margin-top: 28px; }
.tag { display: inline-block; font: 600 .7rem/1 var(--f-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--ambre); border: 1px solid rgba(255, 194, 74, .4); border-radius: 999px; padding: .4em .7em; margin: 0 .3em .3em 0; vertical-align: middle; }
.tag-soon { color: var(--braise); border-color: rgba(255, 106, 26, .5); }
.tags { margin: 0; }

.split { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.split-top { align-items: start; }
.split-icon { display: flex; justify-content: center; }
.split-icon .ico-xxl { filter: drop-shadow(0 0 22px rgba(255, 106, 26, .25)); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; } .prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.list-mark { list-style: none; padding-left: 0 !important; }
.list-mark li { padding-left: 1.6em; position: relative; }
.list-mark li::before { content: ""; position: absolute; left: 0; top: .45em; width: .85em; height: .85em; background: url("../img/braise.svg") center / contain no-repeat; }
.callout, blockquote.callout { border: 1px solid rgba(255, 194, 74, .3); background: rgba(255, 194, 74, .07); border-radius: 12px; padding: 14px 18px; margin: 1.4em 0; color: var(--texte-2); }
blockquote.callout.warn { border-color: rgba(232, 51, 90, .45); background: rgba(232, 51, 90, .08); }
blockquote.callout.tip { border-color: rgba(255, 106, 26, .4); background: rgba(255, 106, 26, .07); }
blockquote { margin: 1.4em 0; }
.callout p:last-child, blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--ligne); margin: 2em 0; }
.tblwrap { overflow-x: auto; } .tbl { border-collapse: collapse; width: 100%; } .tbl th, .tbl td { border: 1px solid var(--ligne-2); padding: 8px 10px; text-align: left; }
.st { font-size: .95em; }
.st-new { font: 600 .7rem/1 var(--f-texte); text-transform: uppercase; color: var(--sur-lave); background: var(--lave-vive); border-radius: 999px; padding: .3em .6em; }

/* annonce de mort */
.death-card { margin: 0; text-align: center; border: 1px solid rgba(232, 51, 90, .35); border-radius: var(--r); padding: 28px 22px 18px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(232, 51, 90, .14), rgba(17, 14, 13, .9) 70%); box-shadow: var(--ombre); }
.death-skull { width: 44px; height: 44px; fill: none; stroke: var(--mort); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.death-card blockquote { margin: 10px 0 12px; font: 600 1.12rem/1.5 var(--f-titre); color: var(--texte); }
.death-card blockquote strong { color: #ff6f8c; }
.death-card figcaption { font-size: .8rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: .15em; }

/* chiffres */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats li { text-align: center; padding: 22px 10px; border-radius: var(--r); border: 1px solid var(--ligne); background: rgba(26, 21, 20, .6); }
.stats b { display: block; font: 700 clamp(2rem, 7vw, 2.8rem)/1 var(--f-titre); color: var(--lave-vive); margin-bottom: 8px; text-shadow: 0 0 24px rgba(255, 106, 26, .3); }
.stats .unit { font: 600 .55em var(--f-texte); }
.stats span { color: var(--texte-2); font-size: .9rem; }

/* étapes */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.steps > li, .card, .prose { min-width: 0; }
.steps > li { counter-increment: s; position: relative; padding: 22px 22px 18px 74px; border: 1px solid var(--ligne-2); border-radius: var(--r); background: rgba(26, 21, 20, .65); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center;
  font: 700 1.1rem/1 var(--f-titre); color: var(--sur-lave); background: linear-gradient(180deg, var(--braise), var(--lave-vive)); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 106, 26, .15); }
.steps h3, .steps .h3 { margin: 4px 0 .4em; }
.steps p:last-child { margin-bottom: 0; }
.steps-v { margin: 24px 0; }
.code-block { position: relative; margin: 10px 0; }
.code-block pre { margin: 0; overflow-x: auto; background: var(--roche-0); border: 1px solid var(--ligne); border-radius: 10px; padding: 14px 16px; }
.code-block code { background: none; padding: 0; font-size: .85rem; white-space: pre; }
.code-block .copy { margin-top: 8px; }
.info-card { margin-bottom: 8px; }

/* lieux */
.places { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.places li { padding: 14px 16px; border-left: 2px solid var(--lave-vive); background: rgba(37, 30, 28, .45); border-radius: 0 10px 10px 0; }
.places strong { display: block; font-family: var(--f-titre); color: var(--braise-pale); }
.places span { color: var(--texte-2); font-size: .95rem; }

/* patch notes */
.notes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.note-card { padding: 22px; border-radius: var(--r); border: 1px solid var(--ligne-2); background: rgba(26, 21, 20, .7); display: flex; flex-direction: column; }
.note-card h3 { margin: 0 0 .5em; font-size: 1.15rem; }
.note-card h3 a { color: var(--braise-pale); text-decoration: none; }
.note-card h3 a::after { content: ""; position: absolute; inset: 0; }
.note-card { position: relative; transition: border-color .2s, transform .2s; }
.note-card:hover { border-color: var(--ligne); transform: translateY(-2px); }
.note-card p { color: var(--texte-2); font-size: .95rem; }
.note-card .tags { margin-top: auto; }
.note-date { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lave-vive) !important; margin-bottom: .6em; }
.note .prose h2 { font-size: 1.4rem; padding-bottom: .35em; border-bottom: 1px solid var(--ligne); }
.note-back { margin-top: 2.5em; }

/* statut (page) */
.status-big { display: flex; gap: 18px; align-items: center; }
.status-big > i { width: 18px !important; height: 18px !important; }
.status-big-title { font: 700 1.4rem/1.2 var(--f-titre); color: var(--braise-pale); margin: 0 0 4px; }
.worlds { display: grid; gap: 10px; margin: 16px 0; }
.world { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--ligne-2); border-radius: 12px; background: rgba(26, 21, 20, .6); }
.world b { font-family: var(--f-titre); color: var(--braise-pale); }
.world span { color: var(--texte-2); font-size: .9rem; }
.world .on { color: var(--vivant); } .world .off { color: #ff6f8c; }

/* final */
.final { text-align: center; }
.star-glow { fill: var(--lave-vive) !important; color: var(--lave-vive); stroke: none !important; filter: drop-shadow(0 0 18px rgba(255, 106, 26, .6)); margin-bottom: 8px; }

/* 404 */
.page-404 { padding: 80px 0; }
.monogramme-404 { opacity: .85; filter: drop-shadow(0 0 24px rgba(255, 106, 26, .25)); margin-bottom: 10px; }

/* ---------- pied ---------- */
.foot { border-top: 1px solid var(--ligne); background: var(--roche-0); padding: 48px 0 24px; margin-top: 0; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.foot-slogan { font-family: var(--f-titre); color: var(--braise-pale); margin: 12px 0 4px; }
.foot h2 { font: 600 .8rem/1 var(--f-texte); text-transform: uppercase; letter-spacing: .18em; color: var(--lave-vive); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--texte-2); text-decoration: none; }
.foot a:hover { color: var(--braise-pale); text-decoration: underline; }
.foot-legal { max-width: 1180px; margin: 32px auto 0; padding: 20px 16px 0; border-top: 1px solid var(--ligne-2); font-size: .82rem; color: var(--texte-3); }
.foot-legal p { margin: 0 0 6px; }
.foot-legal strong { color: var(--texte-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  background: var(--roche-3); color: var(--texte); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 18px; box-shadow: var(--ombre); font-size: .95rem; }

/* ---------- carte des ressources (façon DofusMap) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head-court { padding: 28px 0 4px; }
.page-head-court h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.page-head-court .lead { font-size: 1rem; }
.page-head-court::after { margin-top: 18px; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--braise); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lien:hover { color: var(--braise-pale); }
.chip { font: 600 .85rem var(--f-texte); color: var(--texte-2); background: rgba(10, 8, 7, .85); border: 1px solid var(--ligne-2); border-radius: 999px; padding: .5em 1em; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--sur-lave); background: var(--lave-vive); border-color: var(--lave-vive); }
.section.section-carte { padding: 12px 0 24px; }
.carte-app { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1500px; margin: 0 auto; padding: 0 12px; }
.carte-vue { position: relative; height: calc(100vh - 110px); min-height: 420px; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; background: var(--roche-0); }
.carte-vue canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.carte-vue canvas:active, .carte-vue canvas.glisse { cursor: grabbing; }
.carte-vue canvas:focus-visible { outline: 2px solid var(--braise); outline-offset: -2px; }
.carte-barre { position: absolute; z-index: 4; left: 10px; top: 10px; right: 60px; display: flex; gap: 8px; flex-wrap: wrap; }
.carte-mondes { display: flex; gap: 6px; }
.tri-ouvrir b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 99px; background: var(--lave-vive); color: var(--sur-lave); font-size: .75rem; }
.carte-vide { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 32px); text-align: center; background: rgba(10, 8, 7, .9); border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 16px; color: var(--braise-pale); font-weight: 600; }
.carte-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 4; }
.carte-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ligne); background: rgba(10, 8, 7, .9); color: var(--braise-pale); font: 700 1.2rem/1 var(--f-texte); cursor: pointer; }
.carte-zoom button:hover { border-color: var(--lave-vive); }
.carte-toast { position: absolute; bottom: 64px; }
.carte-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 180px; max-width: 280px; background: rgba(10, 8, 7, .96); border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 10px; font-size: .84rem; color: var(--texte-2); box-shadow: var(--ombre); }
.tip-tete { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.tip-tete b { color: var(--braise-pale); font-size: .95rem; }
.tip-res { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.tip-res span:not(.tri-icone) { flex: 1; color: var(--texte); }
.tip-res b { color: var(--braise); }
.tip-vide, .tip-aide { color: var(--texte-3); font-size: .78rem; margin-top: 4px; }
.carte-note { margin-top: 10px; }
/* fenêtre de tri : tiroir sur mobile, panneau latéral sur grand écran */
.tri { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(360px, 92vw); transform: translateX(-105%); display: flex; flex-direction: column;
  background: var(--roche-1); border-right: 1px solid var(--ligne); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
.tri:not(.ouvert) { box-shadow: none; }
.tri.ouvert { transform: none; }
.tri-tete { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.tri-titre { font-size: 1.6rem; margin: 0; }
.tri-fermer { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ligne-2); background: transparent; color: var(--texte); font-size: 1.4rem; cursor: pointer; }
.tri-outils { padding: 0 16px 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--ligne-2); }
.tri-outils input[type=search] { font: 500 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .6em .8em; }
.tri-outils input[type=search]:focus { outline: 2px solid var(--braise); outline-offset: 1px; }
.tri-ligne { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--texte-2); }
.tri-ligne select { font: 500 .88rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 6px; padding: .3em .4em; }
.tri-ligne .lien { margin-left: auto; font-size: .85rem; }
.tri-zaaps { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--texte-2); cursor: pointer; }
.tri-zaaps input, .tri-res input { accent-color: var(--lave-vive); width: 16px; height: 16px; flex: none; }
.tri-liste { overflow: auto; padding: 6px 10px 16px; flex: 1; }
.tri-groupe { margin-top: 10px; }
.tri-groupe-tete { display: flex; align-items: baseline; gap: 10px; padding: 4px 6px; border-bottom: 1px solid var(--ligne); }
.tri-groupe-tete h2 { font-size: 1.2rem; margin: 0 auto 0 0; }
.tri-groupe-tete .lien { font-size: .8rem; }
.tri-res { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.tri-res:hover { background: rgba(255, 106, 26, .08); }
.tri-res.coche { background: rgba(255, 106, 26, .12); }
.tri-icone { display: inline-block; flex: none; background-repeat: no-repeat; }
.tri-nom { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.tri-nom b { font-weight: 600; color: var(--texte); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-nom small { color: var(--texte-3); font-size: .75rem; }
.tri-nb { font: 600 .78rem var(--f-texte); color: var(--braise); background: rgba(255, 106, 26, .1); border-radius: 99px; padding: .15em .55em; }
@media (min-width: 980px) {
  .carte-app { grid-template-columns: 330px minmax(0, 1fr); gap: 12px; }
  .tri { position: relative; inset: auto; width: auto; transform: none; transition: none; height: calc(100vh - 110px); min-height: 420px; border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: none; z-index: 1; }
  .tri-fermer, .tri-ouvrir { display: none; }
}

/* ---------- espace « Mon compte » ---------- */
.compte-lien { display: inline-flex; align-items: center; gap: .45em; color: var(--texte-2); text-decoration: none; font-size: .9rem; font-weight: 600; padding: .45em .8em; border-radius: 6px; border: 1px solid var(--ligne-2); }
.compte-lien:hover, .compte-lien[aria-current="page"] { color: var(--braise-pale); border-color: var(--ligne); }
.compte-lien.connecte { color: var(--braise); }
.compte-lien span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-compte { padding: 32px 0 64px; }
.compte-boite { max-width: 480px; }
.form { display: grid; gap: 8px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--texte-2); margin-top: 6px; }
.form input { font: 500 1rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .75em .9em; width: 100%; }
.form input:focus { outline: 2px solid var(--braise); outline-offset: 1px; border-color: var(--lave-vive); }
.form .btn { margin-top: 10px; justify-self: start; }
.form p { margin: 0; }
.form-erreur { color: #ff6f8c; background: rgba(232, 51, 90, .1); border: 1px solid rgba(232, 51, 90, .4); border-radius: 8px; padding: 10px 12px; }
.form-ok { color: var(--vivant); background: rgba(79, 210, 126, .08); border: 1px solid rgba(79, 210, 126, .35); border-radius: 8px; padding: 10px 12px; }
.compte-stats { margin-bottom: 18px; }
.compte-grille { align-items: start; }
.compte-grille .h3 { margin-top: 0; }
.compte-grille .h3 + * { margin-top: 0; }
.solde b { font: 700 2rem var(--f-titre); color: var(--braise); margin-right: 8px; }
.compte-actions { margin-top: 20px; }
.tag-mort { color: #ff6f8c; border-color: rgba(232, 51, 90, .5); }
.tag-vivant { color: var(--vivant); border-color: rgba(79, 210, 126, .45); }
.filtres-persos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filtres-persos span { display: contents; }
.persos { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.perso { padding: 18px 20px; }
.perso-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.perso-tete h2 { margin: 0; font-size: 1.45rem; }
.perso-classe { color: var(--braise); font-weight: 600; margin: 4px 0 10px; }
.perso-infos { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.perso-infos dt { color: var(--texte-3); }
.perso-infos dd { margin: 0; color: var(--texte-2); }
.perso-mort { opacity: .82; background: linear-gradient(180deg, rgba(60, 14, 22, .55), rgba(26, 21, 20, .8)); }
.perso-mort h2 { color: var(--texte-2); text-decoration: line-through; text-decoration-color: rgba(232, 51, 90, .7); text-decoration-thickness: 2px; }
@media (min-width: 640px) { .persos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .compte-grille { grid-template-columns: 1.6fr 1fr; } }
@media (min-width: 980px) { .persos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* onglets et page « Comptes » */
.compte-onglets { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--ligne); margin-bottom: 22px; }
.compte-onglets a { padding: .6em 1em; color: var(--texte-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.compte-onglets a:hover { color: var(--braise-pale); }
.compte-onglets a[aria-current="page"] { color: var(--braise); border-bottom-color: var(--lave-vive); }
.comptes-entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.comptes-entete h2 { margin: 0; }
.comptes-creer { max-width: 520px; margin-bottom: 14px; }
.cta-ligne { display: flex; gap: 12px; align-items: center; }
.comptes-liste { display: grid; gap: 10px; }
.compte-carte { padding: 0; }
.compte-resume { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 18px; }
.compte-resume::-webkit-details-marker { display: none; }
.compte-resume::after { content: "▸"; color: var(--lave-vive); transition: transform .2s; }
details[open] > .compte-resume::after { transform: rotate(90deg); }
.compte-nom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compte-nom strong { font-size: 1.05rem; }
.compte-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--texte-2); margin-left: auto; }
.compte-persos { border-top: 1px solid var(--ligne-2); padding: 8px 18px 14px; display: grid; gap: 6px; }
.perso-ligne { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "t n e" "t i i"; gap: 2px 10px; align-items: center; padding: 6px 0; }
.perso-ligne .tete { grid-area: t; width: 40px; height: 40px; border-radius: 50%; background: var(--roche-0); border: 1px solid var(--ligne-2); }
.perso-ligne-nom { grid-area: n; display: grid; line-height: 1.25; min-width: 0; }
.perso-ligne-nom small { color: var(--texte-3); }
.perso-ligne .tag { grid-area: e; }
.perso-ligne > .muted { grid-area: i; }
.perso-ligne.perso-mort { background: none; }
.perso-ligne.perso-mort b { text-decoration: line-through; text-decoration-color: rgba(232, 51, 90, .7); color: var(--texte-2); }
.compte-titre { margin: 30px 0 10px; }
.partage-form fieldset { border: 0; padding: 0; margin: 0; }
.partage-form legend { font-weight: 600; font-size: .92rem; color: var(--texte-2); margin-bottom: 6px; }
.partage-choix { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.partage-compte { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.partage-compte input { accent-color: var(--lave-vive); width: 16px; height: 16px; }
.partage-form select { font: 500 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .55em .7em; max-width: 260px; }
.partage-code { border: 1px dashed var(--lave-vive); border-radius: 10px; padding: 12px 14px; background: rgba(255, 106, 26, .06); }
.code-gros { font: 700 1.4rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--braise-pale); background: none; padding: 0; }
.partages { display: grid; gap: 10px; }
.partage-groupe { padding: 12px 16px; display: grid; gap: 6px; }
.partage-lot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--ligne-2); padding-bottom: 6px; }
.partage-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.card.partage-ligne { padding: 12px 16px; }
.partage-info { flex: 1; min-width: 140px; }

/* réglages de page perso (onglet Comptes) */
.perso-ligne { grid-template-areas: "t n e" "t i i" "t r r"; }
.perso-page-reglages { grid-area: r; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--texte-2); }
.perso-page-reglages label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.perso-page-reglages input { accent-color: var(--lave-vive); }
/* pages perso publiques */
.section.section-perso { padding: 40px 0 64px; }
.perso-chercher { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 16px; }
.perso-chercher input { flex: 1; min-width: 0; font: 500 1rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .65em .9em; }
.perso-resultats { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.perso-resultat { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; text-decoration: none; color: var(--texte); }
.perso-resultat:hover { box-shadow: var(--lueur); }
.perso-recherche .form-erreur { max-width: 520px; margin: 0 auto 12px; }
.perso-fiche { max-width: 760px; margin: 0 auto; }
.perso-carte { padding: 26px; margin-bottom: 18px; }
.perso-carte-tete { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.perso-portrait { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, #3a170e, var(--roche-0)); border: 2px solid var(--lave-vive); box-shadow: 0 0 22px rgba(255, 90, 20, .3); }
.perso-identite h1 { margin: 0 0 4px; font-size: clamp(2rem, 6vw, 3rem); }
.perso-identite .kicker { margin-bottom: 4px; }
.perso-sous-titre { color: var(--braise); font-weight: 600; margin: 0 0 8px; }
.perso-carte-mort .perso-portrait { filter: grayscale(.7) brightness(.95); border-color: var(--mort); box-shadow: none; }
.perso-carte-mort h1 { color: var(--texte-2); }
.perso-annonce { margin: 20px 0 6px; padding: 14px 18px; border: 1px solid rgba(232, 51, 90, .4); border-radius: 10px; background: rgba(232, 51, 90, .08); font: 600 1.05rem/1.5 var(--f-texte); color: var(--texte); }
.perso-annonce strong { color: #ff6f8c; }
.perso-annonce-date { display: block; margin-top: 4px; font-size: .85rem; font-weight: 400; color: var(--texte-3); }
.perso-infos-grandes { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0; }
.perso-infos-grandes dt { color: var(--texte-3); }
.perso-infos-grandes dd { margin: 0; color: var(--texte); font-weight: 600; }
.blason-nom { display: inline-flex; gap: 8px; align-items: center; }
.blason { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50% 50% 45% 45%; background: var(--basalte); border: 1px solid rgba(0, 0, 0, .5); }
.blason i { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.equipement-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; max-width: 560px; }
.emplacement { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: rgba(10, 8, 7, .7); border: 1px solid var(--ligne-2); overflow: hidden; }
.emplacement:hover, .emplacement:focus-visible { border-color: var(--lave-vive); box-shadow: var(--lueur); }
.emplacement.vide { opacity: .35; }
.emplacement img { width: 44px; height: 44px; }
.emplacement-nom { font-size: .6rem; text-align: center; padding: 2px; color: var(--texte-2); }

/* apparition douce */

/* ---------- tablette ---------- */
@media (min-width: 640px) {
  .grid-3, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .code-block pre { padding-right: 92px; }
  .code-block .copy { position: absolute; top: 8px; right: 8px; margin: 0; }
  .hero { padding: 56px 24px 96px; }
}
/* ---------- bureau ---------- */
@media (min-width: 980px) {
  .js .burger { display: none; }
  .nav, .js .nav { display: flex; width: auto; align-items: center; gap: 18px; padding: 0; }
  .nav ul { display: flex; gap: 2px; }
  .nav a:not(.btn):not(.status-pill) { padding: 8px 10px; font-size: .93rem; }
  .nav a[aria-current="page"]:not(.btn):not(.status-pill) { box-shadow: inset 0 -2px 0 var(--lave-vive); border-radius: 0; }
  .nav-cta { margin: 0; flex-wrap: nowrap; }
  .top-in { flex-wrap: nowrap; }
  .brand img { width: 130px; }
  .grid-3, .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .split-top { grid-template-columns: 160px minmax(0, 1fr); }
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps:not(.steps-v) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 88px 0; }
  .hero { padding: 64px 24px 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- connexion du launcher via le site (page « Autoriser le launcher », « Launchers connectés ») ---------- */
.autoriser { text-align: left; }
.autoriser-question { display: grid; gap: 10px; }
.autoriser-question .h3 { margin: 0; line-height: 1.25; }
.autoriser-pc { color: var(--braise); overflow-wrap: anywhere; }
.autoriser-blason { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: var(--braise-pale); border-radius: 50%; background: var(--roche-3); box-shadow: var(--lueur); }
.autoriser-alerte { color: var(--ambre); border-left: 3px solid var(--ambre); padding-left: 10px; }
.autoriser-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form .autoriser-actions .btn { margin-top: 0; }
.launchers { display: grid; gap: 12px; margin-bottom: 18px; }
.launcher { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.launcher h2 { margin: 0 0 4px; font-size: 1.3rem; overflow-wrap: anywhere; }
.launcher dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .875rem; }
.launcher dt { color: var(--texte-3); }
.launcher dd { margin: 0; color: var(--texte-2); }

/* ---------- bestiaire (façon Dofensive) ---------- */
.section-bestiaire { padding-top: 48px; }
.filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; margin: 0 0 10px; background: rgba(10, 8, 7, .6); border: 1px solid var(--ligne-2); border-radius: var(--r); }
.filtre { display: grid; gap: 4px; min-width: 0; }
.filtre label, .filtre-label { font: 600 .72rem/1.2 var(--f-texte); text-transform: uppercase; letter-spacing: .12em; color: var(--texte-3); }
.filtre-q { grid-column: 1 / -1; }
.filtre input, .filtre select { width: 100%; min-width: 0; font: 500 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .55em .7em; }
.filtre input:focus, .filtre select:focus { border-color: var(--lave-vive); outline: none; box-shadow: 0 0 0 2px rgba(255, 106, 26, .25); }
.niv { display: flex; align-items: center; gap: 6px; }
.niv input { width: 100%; }
.filtres-raz { justify-self: start; padding: .55em 0; font-size: .9rem; }
.filtres-compte { margin: 0 0 14px; font-size: .9rem; }
.monstres { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.monstre { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--texte); }
.monstre:hover { color: var(--texte); }
.monstre-img { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, .14), transparent 70%); }
.monstre-img img { max-width: 72px; max-height: 72px; width: auto; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.monstre-sans { font: 700 2rem var(--f-titre); color: var(--texte-3); }
.monstre-txt { min-width: 0; position: relative; }
.monstre-nom { font-size: 1.25rem; margin: 0 0 2px; line-height: 1.15; padding-right: 52px; }
.monstre-sous { margin: 0 0 6px; font-size: .84rem; color: var(--texte-3); }
.monstre-bas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-boss { position: absolute; top: 0; right: 0; margin: 0; color: var(--mort); border-color: rgba(232, 51, 90, .5); }
.danger { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem var(--f-texte); color: var(--texte-2); }
.danger-barres { display: inline-flex; gap: 2px; }
.danger-barres i { width: 6px; height: 12px; border-radius: 2px; background: rgba(242, 236, 232, .14); transform: skewX(-12deg); }
.danger-1 .on { background: #8fb36a; } .danger-2 .on { background: var(--ambre); } .danger-3 .on { background: var(--lave-vive); }
.danger-4 .on { background: var(--lave); } .danger-5 .on { background: var(--mort); box-shadow: 0 0 6px rgba(232, 51, 90, .6); }
.danger-5 .danger-txt { color: #ff8aa2; } .danger-4 .danger-txt { color: #ff9a7a; }
.els { display: inline-flex; gap: 4px; }
.el { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .5); }
.els .el { margin: 0; }
.el-0 { background: #b9aca6; } .el-1 { background: #b87a3d; } .el-2 { background: #ff5a1f; } .el-3 { background: #4aa3e6; } .el-4 { background: #5cd08c; }
.bestiaire-note { margin-top: 22px; text-align: center; }

.fiche-monstre { max-width: 1180px; margin: 0 auto; }
.retour { display: inline-block; margin: 0 0 14px; font-size: .92rem; }
.fiche-tete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; justify-items: center; text-align: center; margin-bottom: 14px; }
.fiche-img { width: 160px; height: 160px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(255, 106, 26, .2), rgba(10, 8, 7, .2) 70%); }
.fiche-img img { max-width: 170px; max-height: 170px; width: auto; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7)); }
.fiche-id h1 { margin: 0 0 4px; font-size: clamp(2.1rem, 7vw, 3.2rem); }
.fiche-id .kicker { margin-bottom: 6px; }
.fiche-sous { color: var(--braise); font-weight: 600; margin: 0 0 10px; }
.fiche-danger .danger { font-size: 1rem; }
.fiche-danger .danger-barres i { width: 9px; height: 18px; }
.fiche-danger p { margin: 4px 0 0; }
.grades { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.grades-l { font: 600 .72rem var(--f-texte); text-transform: uppercase; letter-spacing: .12em; color: var(--texte-3); margin-right: 4px; }
.grades .chip { text-decoration: none; }
.grades .chip[aria-current="true"] { color: var(--sur-lave); background: var(--lave-vive); border-color: var(--lave-vive); }
.fiche-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.fiche-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.bloc { padding: 18px; }
.bloc h2 { font-size: 1.5rem; margin: 0 0 10px; }
.bloc .h4 { font: 600 .95rem var(--f-texte); color: var(--braise-pale); margin: 12px 0 6px; }
.stats-monstre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.stat { background: rgba(10, 8, 7, .55); border: 1px solid var(--ligne-2); border-radius: 8px; padding: 8px 6px; text-align: center; }
.stat dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-3); }
.stat dd { margin: 0; font: 700 1.15rem var(--f-texte); color: var(--texte); font-variant-numeric: tabular-nums; }
.stat-pv dd { color: #ff8aa2; } .stat-pa dd { color: #6fc3ff; } .stat-pm dd { color: #7ee2a0; }
.fiche-cars { color: var(--texte-2); margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.res, .butins { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.res th, .res td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--ligne-2); white-space: nowrap; }
.res thead th { font-weight: 600; color: var(--texte-2); font-size: .8rem; }
.res tbody th { text-align: left; color: var(--texte-3); font-weight: 600; }
.res .neg { color: #7ee2a0; } .res .fort { color: #ff9a7a; font-weight: 600; }
.ia { margin: 0 0 8px; display: grid; gap: 8px; }
.ia-ligne { padding-left: 12px; border-left: 2px solid var(--lave-vive); }
.ia-ligne dt { font-weight: 600; color: var(--braise-pale); }
.ia-ligne dd { margin: 0; color: var(--texte-2); font-size: .9rem; }
.zones { margin: 0 0 8px; padding-left: 1.1em; }
.zones li { margin: 2px 0; }
.sort { border-top: 1px solid var(--ligne-2); padding: 10px 0 4px; }
.sort:first-of-type { border-top: 0; padding-top: 0; }
.sort summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.sort summary::-webkit-details-marker { display: none; }
.sort-nom { color: var(--braise-pale); font-size: 1.02rem; }
.sort-meta { display: inline-flex; gap: 6px; flex: none; }
.puce { font: 700 .74rem var(--f-texte); border-radius: 999px; padding: .25em .6em; background: rgba(10, 8, 7, .7); border: 1px solid var(--ligne-2); white-space: nowrap; }
.puce-pa { color: #6fc3ff; } .puce-po { color: #7ee2a0; }
.sort-cond { margin: 4px 0 6px; }
.sort-cc { margin: 6px 0 2px; color: var(--ambre); font-weight: 600; }
.sort-desc { margin: 6px 0 4px; font-style: italic; }
.effets { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; font-size: .92rem; }
.effets li { color: var(--texte); }
.effets .zone { color: var(--texte-3); font-size: .85rem; }
.pp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.pp label { font-size: .88rem; color: var(--texte-2); }
.pp input { width: 100px; font: 600 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .4em .6em; }
.butins th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-3); padding: 6px; border-bottom: 1px solid var(--ligne); }
.butins td { padding: 8px 6px; border-bottom: 1px solid var(--ligne-2); vertical-align: middle; }
.butins .num { text-align: right; white-space: nowrap; }
.butins th:not(:first-child) { text-align: right; }
.butins .fort { color: var(--braise); font-weight: 700; }
.butin-objet { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.butin-objet img { flex: none; width: 32px; height: 32px; }
.butin-objet span { display: grid; line-height: 1.25; }
.butin-objet small { font-size: .76rem; }
@media (min-width: 640px) {
  .filtres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monstres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche-tete { grid-template-columns: 180px minmax(0, 1fr); text-align: left; justify-items: start; }
}
@media (min-width: 980px) {
  .filtres { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr) auto; }
  .filtre-q { grid-column: auto; }
  .monstres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiche-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (max-width: 420px) { .stats-monstre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* en-tête : la pastille de statut reste sur une ligne ; « Mac » (aussi dans le pied de page) masqué sur les bureaux étroits */
.status-pill { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1279px) { .nav .nav-large { display: none; } .nav a:not(.btn):not(.status-pill) { padding: 8px 7px; } }
.niv input { min-width: 4.2em; }
@media (max-width: 639px) {
  .butins th:nth-child(3), .butins td:nth-child(3) { display: none; } /* seuil : repris en petit sous le nom s'il existe */
  .butin-objet { min-width: 0; gap: 8px; }
  .butins th, .butins td { padding-left: 4px; padding-right: 4px; }
}

/* ---------- encyclopédie ---------- */
.onglets-ency { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.onglets-ency .chip b { font-weight: 700; opacity: .75; margin-left: 2px; }
.onglets-ency .chip[aria-pressed="true"] b { opacity: 1; }
.objets { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.objet { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--texte); }
.objet:hover { color: var(--texte); }
.objet-txt { display: grid; min-width: 0; line-height: 1.3; }
.objet-txt b { color: var(--braise-pale); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objet-txt small { color: var(--texte-3); font-size: .8rem; }
.objet-sources { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.src { font: 600 .66rem/1 var(--f-texte); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: .35em .55em; border-radius: 999px; border: 1px solid var(--ligne-2); color: var(--texte-2); }
.src-dr { color: #ff9a7a; border-color: rgba(255, 106, 26, .35); } .src-h { color: #7ee2a0; border-color: rgba(79, 210, 126, .3); }
.src-rc { color: #6fc3ff; border-color: rgba(74, 163, 230, .3); } .src-sh, .src-bq { color: var(--ambre); border-color: rgba(255, 194, 74, .35); }
.ico-objet { width: 48px; height: 48px; flex: none; image-rendering: auto; }
.ico-objet.vide { background: rgba(242, 236, 232, .06); border-radius: 8px; }
.objet .ico-objet { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.pano-icones { display: grid; grid-template-columns: repeat(2, auto); gap: 2px; justify-content: center; align-content: center; }
.objet-pano { grid-template-columns: 64px minmax(0, 1fr); }
.objet-pano .ico-objet { width: 30px; height: 30px; }
.fiche-img-objet { background: radial-gradient(circle at 50% 55%, rgba(255, 106, 26, .22), rgba(10, 8, 7, .2) 70%); }
.fiche-img-objet .ico-objet { width: 96px; height: 96px; }
.fiche-img-objet.pano-icones .ico-objet { width: 48px; height: 48px; }
.fiche-desc { max-width: 60ch; margin: 8px 0 0; font-style: italic; }
.effets-objet li { padding: 2px 0; }
.effets-objet .malus { color: #ff8aa2; }
.effets-objet .degats { color: var(--braise); font-weight: 600; }
.arme-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.liste-objets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.liste-objets li { display: flex; align-items: center; gap: 10px; }
.liste-objets .ico-objet { width: 32px; height: 32px; }
.liste-objets .muted { margin-left: auto; font-size: .85rem; white-space: nowrap; }
.butins td a { font-weight: 600; }
.butin-objet a { color: var(--braise-pale); text-decoration: none; }
.butin-objet a:hover { text-decoration: underline; }
@media (min-width: 640px) { .objets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .objets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- Dofusbook (/stuff/) ---------- */
.section-stuff { padding-top: 40px; }
.stuff-tete { margin-bottom: 18px; align-items: center; }
.stuff-tete h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); }
.stuff-onglets { display: flex; gap: 6px; }
.stuff-onglets .chip[aria-selected="true"] { color: var(--sur-lave); background: var(--lave-vive); border-color: var(--lave-vive); }
.stuff-barre { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 14px; }
.stuff-barre input[type="text"], .stuff-barre select { font: 500 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .5em .7em; min-width: 0; }
.stuff-barre input[type="text"] { flex: 1 1 200px; }
.stuff-compte { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stuff-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stuff-cols > .card { padding: 16px; }
.stuff-cols h2, .stuff-sauves h2 { font-size: 1.4rem; margin: 0 0 10px; }
.stuff-perso-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.caracs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.caracs th, .caracs td { padding: 4px; border-bottom: 1px solid var(--ligne-2); text-align: center; }
.caracs thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-3); font-weight: 600; }
.caracs tbody th { text-align: left; color: var(--texte-2); font-weight: 600; }
.caracs input, .lignes-fm input { width: 4.6em; font: 600 .9rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 6px; padding: .3em .4em; text-align: right; }
.caracs .fort { color: var(--braise-pale); font-weight: 700; text-align: right; }
.erreur { color: #ff8aa2 !important; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: rgba(10, 8, 7, .65); border: 1px solid var(--ligne-2); border-radius: 10px; cursor: pointer; padding: 4px; color: var(--texte-3); }
.slot:hover, .slot.actif { border-color: var(--lave-vive); box-shadow: var(--lueur); }
.slot.plein { background: radial-gradient(circle at 50% 55%, rgba(255, 106, 26, .16), rgba(10, 8, 7, .7) 70%); }
.slot-vide { font: 600 .66rem var(--f-texte); text-transform: uppercase; letter-spacing: .06em; }
.slot .ico-objet { width: 44px; height: 44px; }
.slot-fm { position: absolute; top: 3px; right: 3px; font: 700 .55rem var(--f-texte); font-style: normal; color: var(--sur-lave); background: var(--ambre); border-radius: 4px; padding: 1px 3px; }
.slot-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.detail-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-tete > div { flex: 1; min-width: 120px; }
.detail-tete a { font-weight: 600; color: var(--braise-pale); }
.lignes-fm { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lignes-fm th { text-align: left; font-weight: 500; color: var(--texte-2); padding: 3px 4px; }
.lignes-fm td { padding: 3px 4px; }
.lignes-fm .over { color: var(--ambre); }
.lignes-fm .exo { color: #6fc3ff; font-weight: 600; }
.jauge-fm { height: 6px; border-radius: 3px; background: rgba(242, 236, 232, .1); overflow: hidden; margin: -6px 0 10px; }
.jauge-fm i { display: block; height: 100%; background: linear-gradient(90deg, var(--ambre), var(--lave-vive)); }
.jauge-fm.trop i { background: var(--mort); }
.ajout-exo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ajout-exo select { font: 500 .88rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .4em .5em; max-width: 100%; }
.alertes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.alertes li { font-size: .84rem; padding: 6px 10px; border-radius: 8px; background: rgba(232, 51, 90, .1); border: 1px solid rgba(232, 51, 90, .35); color: #ffc2cf; }
.totaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0 0 6px; }
.total { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--ligne-2); font-size: .9rem; }
.total dt { color: var(--texte-2); }
.total dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texte); }
.total.neg dd { color: #ff8aa2; }
.panos-actives { list-style: none; padding: 0; margin: 0; font-size: .88rem; display: grid; gap: 4px; }
.stuff-sauves { margin-top: 14px; padding: 16px; }
.sauves { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sauves li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lien-danger { color: #ff8aa2; }
.choix { width: min(640px, calc(100% - 24px)); max-height: min(80vh, 760px); padding: 0; background: var(--roche-1); color: var(--texte); border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre); }
.choix::backdrop { background: rgba(6, 4, 3, .72); }
.choix-in { display: grid; grid-template-rows: auto auto minmax(0, 1fr); max-height: min(80vh, 760px); }
.choix-tete { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; }
.choix-tete h2 { margin: 0; font-size: 1.4rem; }
.choix-filtres { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 6px 16px 10px; border-bottom: 1px solid var(--ligne-2); }
.choix-filtres input[type="search"] { flex: 1 1 220px; font: 500 .95rem var(--f-texte); color: var(--texte); background: var(--roche-0); border: 1px solid var(--basalte); border-radius: 8px; padding: .55em .7em; }
.choix-haut { font-size: .85rem; color: var(--texte-2); display: inline-flex; gap: 6px; align-items: center; }
.choix-liste { overflow: auto; padding: 8px; display: grid; gap: 4px; }
.choix-objet { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--texte); cursor: pointer; font: inherit; }
.choix-objet:hover, .choix-objet:focus-visible { background: rgba(255, 106, 26, .07); border-color: var(--ligne); }
.choix-objet span { display: grid; min-width: 0; }
.choix-objet b { color: var(--braise-pale); font-weight: 600; }
.choix-fx { color: var(--texte-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.escouade-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.escouade-table th, .escouade-table td { padding: 8px 6px; border-bottom: 1px solid var(--ligne-2); white-space: nowrap; }
.escouade-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-3); text-align: right; }
.escouade-table thead th:first-child { text-align: left; }
.escouade-table tbody th { text-align: left; display: grid; font-weight: 500; }
.escouade-table tbody th b { color: var(--braise-pale); }
.escouade-table .num { text-align: right; }
.escouade-table tr.mort { opacity: .6; }
.escouade-table tr.mort b { text-decoration: line-through; text-decoration-color: rgba(232, 51, 90, .7); }
.escouade { display: grid; gap: 12px; }
.escouade-somme { max-width: 520px; }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); } .totaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .stuff-cols { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .totaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Cimetière et Panthéon ---------- */
.legendes-compteur { text-align: center; font: 600 .95rem var(--f-texte); color: var(--braise); margin: -16px 0 22px; }
.tombes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tombe { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(60, 14, 22, .35), rgba(26, 21, 20, .8)); border: 1px solid rgba(232, 51, 90, .22); }
.tombe .tete { width: 48px; height: 48px; border-radius: 50%; filter: grayscale(.75) brightness(.9); border: 1px solid rgba(232, 51, 90, .45); background: var(--roche-0); }
.tombe-txt { display: grid; min-width: 0; line-height: 1.35; }
.tombe-txt .perso-nom { font: 700 1.25rem var(--f-titre); color: var(--texte); text-decoration-color: rgba(232, 51, 90, .6); }
.tombe-txt b.perso-nom { text-decoration: line-through; text-decoration-color: rgba(232, 51, 90, .7); }
.tombe-sous { color: var(--texte-2); font-size: .9rem; }
.tombe-lieu { color: var(--texte-3); font-size: .84rem; }
.tombe-date { font: 700 .8rem var(--f-texte); color: #ff8aa2; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.pantheon { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pantheon-bloc h2 { margin-bottom: 4px; }
.rangs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.rang { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.rang:nth-child(odd) { background: rgba(10, 8, 7, .35); }
.rang .tete { width: 40px; height: 40px; border-radius: 50%; background: var(--roche-0); border: 1px solid var(--ligne-2); }
.rang-n { font: 700 1.1rem var(--f-titre); color: var(--texte-3); text-align: center; }
.rang-txt { display: grid; min-width: 0; line-height: 1.3; }
.rang-txt .perso-nom { font-weight: 600; color: var(--braise-pale); }
.rang-val { font: 700 .95rem var(--f-texte); color: var(--braise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.podium-1 .rang-n { color: #ffc24a; } .podium-2 .rang-n { color: #d8d0cc; } .podium-3 .rang-n { color: #d08a4e; }
.podium-1 .tete { border-color: #ffc24a; box-shadow: 0 0 12px rgba(255, 194, 74, .35); }
.alliance-tag { display: grid; place-items: center; width: 40px; height: 40px; font-size: .55rem !important; border-radius: 8px; font: 700 .62rem var(--f-texte); letter-spacing: .04em; color: var(--sur-lave); background: var(--ambre); overflow: hidden; }
.escouade-carte { padding: 10px 0; border-top: 1px solid var(--ligne-2); }
.escouade-carte:first-of-type { border-top: 0; }
.escouade-tete { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.escouade-membres { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 38px; }
.membre { display: grid; justify-items: center; font-size: .72rem; color: var(--texte-2); }
.membre .tete { width: 36px; height: 36px; border-radius: 50%; background: var(--roche-0); border: 1px solid var(--ligne-2); }
.classes-barres { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.classes-barres li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: .86rem; }
.cl-barre { display: flex; height: 10px; border-radius: 5px; background: rgba(242, 236, 232, .06); overflow: hidden; }
.cl-barre .v { background: linear-gradient(90deg, var(--lave-sombre), var(--lave-vive)); }
.cl-barre .m { background: rgba(232, 51, 90, .55); }
.cl-n { color: var(--texte-3); text-align: right; white-space: nowrap; }
@media (min-width: 980px) { .pantheon { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Dofusbook : écran d'équipement disposé comme l'inventaire du client 2.68 (equipmentUi.xml, cadre 484 × 454) */
.slots.slots { display: block; position: relative; width: 100%; max-width: 484px; margin: 0 auto; aspect-ratio: 484 / 454; }
.slots .slot { position: absolute; aspect-ratio: auto; padding: 0; background: rgba(10, 8, 7, .7) center / 100% 100% no-repeat; border-radius: 8px; }
.slots .slot.plein { background-image: none; background-color: rgba(10, 8, 7, .75); }
.slots .slot .ico-objet { width: 72%; height: 72%; }
.slot-decor { opacity: .35; cursor: default; pointer-events: auto; border: 1px dashed var(--ligne-2); }
.inv-perso { position: absolute; display: grid; justify-items: center; align-content: center; text-align: center; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 106, 26, .18), transparent 75%); }
.inv-embleme { width: 62%; height: auto; max-height: 72%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 90, 20, .35)); opacity: .9; }
.inv-nom { font: 700 clamp(1rem, 3.4vw, 1.35rem) var(--f-titre); color: var(--braise-pale); margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-niv { font-size: clamp(.68rem, 2.2vw, .82rem); color: var(--texte-3); }
@media (max-width: 420px) { .slots .slot { border-radius: 6px; } .slot-fm { font-size: .45rem; } }
@media (min-width: 1100px) { .stuff-cols { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) minmax(0, .9fr); } }
.inv-embleme { width: 70%; opacity: 1; filter: brightness(1.9) saturate(1.1) drop-shadow(0 0 22px rgba(255, 106, 26, .45)); }
.inv-perso { background: radial-gradient(closest-side, rgba(255, 106, 26, .26), rgba(255, 106, 26, .06) 60%, transparent 80%); }
/* Dofusbook : personnage en pied (non équipé) au centre de l'écran d'équipement */
.inv-skin { height: 80%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.inv-perso .inv-nom { margin-top: 0; }
.inv-skin { height: 68%; }
@media (min-width: 1100px) { .stuff-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr); } .caracs input { width: 3.9em; } }
.inv-perso { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: visible; }
.inv-skin { height: auto; max-height: calc(100% - 3.4em); min-height: 0; flex: 0 1 auto; }
.inv-perso .inv-nom, .inv-perso .inv-niv { flex: none; line-height: 1.25; }

/* ---------- héros de l'accueil : bannière de l'écran de chargement (ville en feu + chevalier cornu) ----------
   Mobile : image recadrée sur le chevalier en haut, texte dessous sur le fond de lave.
   Bureau : image plein cadre, texte sur la partie gauche assombrie (jamais sur le visage ni la main du chevalier). */
.hero-banniere { display: block; min-height: 0; padding: 0 0 72px; text-align: center; background: #0a0605 url("../img/lave-heros-mobile.webp") center bottom / cover no-repeat; }
.hero-banniere::before, .hero-banniere::after { display: none; }
.hero-visuel { display: block; position: relative; margin: 0 0 -64px; }
.hero-visuel img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center top; }
.hero-visuel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 5, 0) 55%, rgba(10, 6, 5, .85) 88%, #0a0605 100%); }
.hero-banniere .hero-in { position: relative; z-index: 1; padding: 0 16px; }
.hero-banniere .slogan-xl { font-size: clamp(2.2rem, 10vw, 3.4rem); }
@media (min-width: 760px) {
  .hero-banniere { display: grid; align-items: center; min-height: min(92vh, 820px); padding: 96px 0 96px; text-align: left; background: #0a0605; }
  .hero-visuel { position: absolute; inset: 0; margin: 0; z-index: -2; }
  .hero-visuel img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 72% 30%; }
  .hero-visuel::after { background:
      linear-gradient(90deg, rgba(10, 6, 5, .92) 0%, rgba(10, 6, 5, .8) 32%, rgba(10, 6, 5, .35) 52%, rgba(10, 6, 5, 0) 66%),
      linear-gradient(0deg, rgba(10, 6, 5, .9) 0%, rgba(10, 6, 5, 0) 26%); }
  .hero-banniere .hero-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .hero-banniere .hero-in > * { max-width: min(560px, 48vw); margin-left: 0; margin-right: 0; }
  .hero-banniere .slogan-xl { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
  .hero-banniere .cta { justify-content: flex-start; }
  .hero-banniere .status-card { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .hero-banniere .sky { display: none; } }

/* =====================================================================================================================
   Refonte « forge » (20/11) : en-tête flottant, panneaux taillés à liseré de braise, apparitions au défilement en CSS,
   bandeau des chiffres en direct, dernières chutes, FAQ, podium du Panthéon, Faucheurs, Guide du survivant.
   Inspiration d'ensemble (audit Mustam), identité Astrum : basalte, lave, carmin de la mort, gothique pour le slogan.
   ===================================================================================================================== */
:root { --coupe: 12px; --braise-liseré: linear-gradient(140deg, rgba(255, 140, 60, .55), rgba(255, 106, 26, .08) 28%, rgba(255, 106, 26, 0) 55%, rgba(232, 51, 90, .35)); }

/* typographie : Satoshi partout, Grenze Gotisch réservée au slogan et aux noms « légendaires » */
.slogan, .slogan-xl, .foot-slogan, .tombe-txt .perso-nom, .inv-nom, .marche figcaption .perso-nom, .stats b, .direct b { font-family: var(--f-gothique); letter-spacing: .01em; }
.slogan-xl { font-weight: 700; text-wrap: balance; }
.kicker { font-weight: 700; }
body { font-feature-settings: "ss01" 0; }
b, strong { font-weight: 700; }

/* ---------- en-tête flottant ---------- */
.top { top: 10px; width: calc(100% - 20px); max-width: 1220px; margin: 10px auto 0; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 21, 20, .9), rgba(14, 11, 10, .88)) padding-box, var(--braise-liseré) border-box;
  border: 1px solid transparent; box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 179, 71, .08);
  transition: background-color .3s, box-shadow .3s, top .3s; }
.top::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 26, .75), transparent); opacity: .7; }
.top-in { min-height: 58px; padding: 6px 14px; }
.top.est-bas { box-shadow: 0 10px 30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 106, 26, .18); }
.brand img { transition: width .3s; }
.top.est-bas .brand img { width: 104px; }
@media (max-width: 979px) { .js .nav.open { padding: 0 6px 12px; } }

/* ---------- panneaux taillés (coins coupés + liseré de braise) ---------- */
.card, .panneau {
  border: 1px solid transparent; border-radius: 0;
  background: linear-gradient(180deg, rgba(37, 30, 28, .9), rgba(22, 18, 17, .9)) padding-box, var(--braise-liseré) border-box;
  clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe));
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s;
}
.card:hover { box-shadow: none; }
@media (hover: hover) { a.card:hover, .card.pillar:hover, .card.feature:hover, .objet:hover, .monstre:hover { transform: translateY(-4px); filter: brightness(1.08); } }

/* ---------- apparition au défilement (CSS seul) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section .sec-head, .section .card, .section .panneau, .steps > li, .direct-in > li {
      animation: forge-monte linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
  .rangs-cascade > li { animation: forge-rang .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
}
@keyframes forge-monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes forge-rang { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- héros : vidéo animée par-dessus l'image (bureau) ---------- */
.hero-video { display: none; }
@media (min-width: 760px) {
  .hero-video { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%;
    opacity: 0; transition: opacity .8s ease; pointer-events: none; }
  .hero-video.joue { opacity: 1; }
  .hero-banniere::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; left: 0; top: 0; width: auto; transform: none; aspect-ratio: auto;
    background: linear-gradient(90deg, rgba(10, 6, 5, .92) 0%, rgba(10, 6, 5, .78) 32%, rgba(10, 6, 5, .3) 54%, rgba(10, 6, 5, 0) 68%),
                linear-gradient(0deg, rgba(10, 6, 5, .95) 0%, rgba(10, 6, 5, 0) 28%); }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none !important; } }
.hero-banniere .slogan-xl { text-shadow: 0 2px 4px rgba(0, 0, 0, .9), 0 0 30px rgba(0, 0, 0, .7), 0 0 60px rgba(255, 90, 20, .3); }

/* ---------- bandeau des chiffres en direct ---------- */
.direct { position: relative; z-index: 2; max-width: 980px; margin: -48px auto 0; padding: 0 16px; }
.direct-in { list-style: none; margin: 0; padding: 18px 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(180deg, rgba(26, 21, 20, .96), rgba(14, 11, 10, .96)) padding-box, var(--braise-liseré) border-box; border: 1px solid transparent;
  clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe)); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.direct-in li { text-align: center; padding: 4px 8px; border-left: 1px solid var(--ligne-2); }
.direct-in li:first-child { border-left: 0; }
.direct b { display: block; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1; color: var(--braise); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 106, 26, .35); }
.direct span { display: block; margin-top: 6px; font-size: clamp(.68rem, 2.2vw, .82rem); text-transform: uppercase; letter-spacing: .12em; color: var(--texte-3); font-weight: 600; }
.direct-mort b { color: #ff5f7e; text-shadow: 0 0 22px rgba(232, 51, 90, .4); }
.direct-note { text-align: center; margin: 8px 0 0; }

/* ---------- dernières chutes (accueil) ---------- */
.chutes { padding: 22px; }
.chutes h3 { display: flex; align-items: center; gap: .5em; font-size: 1.3rem; margin: 0 0 12px; }
.chutes h3 .ico { color: #ff5f7e; }
.chutes-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chute { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n d" "s d"; gap: 0 12px; align-items: center; padding: 10px 12px;
  background: linear-gradient(90deg, rgba(232, 51, 90, .12), rgba(10, 8, 7, .3)); border-left: 2px solid rgba(232, 51, 90, .7); }
.chute-nom { grid-area: n; font: 700 1.05rem var(--f-texte); color: var(--texte); text-decoration-color: rgba(232, 51, 90, .6); }
b.chute-nom { text-decoration: line-through; text-decoration-color: rgba(232, 51, 90, .7); }
.chute-sous { grid-area: s; color: var(--texte-3); font-size: .85rem; }
.chute-date { grid-area: d; color: #ff8aa2; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chutes-pied { margin: 12px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-q { padding: 0; }
.faq-q summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 1.02rem; color: var(--braise-pale); position: relative; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--lave-vive); border-bottom: 2px solid var(--lave-vive); transform: rotate(45deg); transition: transform .25s; }
.faq-q[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-q summary:hover { color: #fff; }
.faq-q p { margin: 0; padding: 0 18px 18px; color: var(--texte-2); }

/* ---------- podium du Panthéon ---------- */
.pantheon > .pantheon-bloc:first-child { grid-column: 1 / -1; }
.podium-socle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 640px; margin: 18px auto 22px; }
.marche { margin: 0; display: grid; justify-items: center; text-align: center; }
.marche-perso { width: auto; height: clamp(110px, 22vw, 190px); object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .7)); position: relative; z-index: 1; margin-bottom: -10px; }
.marche figcaption { width: 100%; padding: 18px 8px 12px; position: relative; display: grid; gap: 2px;
  background: linear-gradient(180deg, #2b2321, #141010 70%); border-top: 1px solid rgba(255, 140, 60, .5);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); box-shadow: inset 0 18px 30px -18px rgba(255, 106, 26, .55); }
.marche figcaption::before { content: ""; position: absolute; left: 12%; right: 12%; top: -6px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 120, 40, .85), transparent); filter: blur(2px); animation: lave-pouls 3.2s ease-in-out infinite; }
.marche-1 figcaption { min-height: 120px; } .marche-2 figcaption { min-height: 88px; } .marche-3 figcaption { min-height: 66px; }
.marche-rang { font: 700 1.6rem/1 var(--f-gothique); color: var(--braise); }
.marche-1 .marche-rang { color: #ffc24a; font-size: 2rem; }
.marche .perso-nom { font-size: 1.15rem; color: var(--braise-pale); }
.marche small { color: var(--texte-3); font-size: .78rem; }
@keyframes lave-pouls { 50% { opacity: .55; transform: scaleX(.9); } }
@media (prefers-reduced-motion: reduce) { .marche figcaption::before { animation: none; } }

/* ---------- Faucheurs ---------- */
.faucheur .rang-txt { gap: 4px; }
.faucheur-barre { display: block; height: 6px; background: rgba(242, 236, 232, .06); border-radius: 3px; overflow: hidden; }
.faucheur-barre i { display: block; height: 100%; background: linear-gradient(90deg, #7a1424, var(--mort)); }
.faucheur .rang-val { color: #ff8aa2; }
.tri-morts input { accent-color: var(--mort); }
.tip-morts { color: #ff8aa2; font-weight: 700; margin-top: 4px; }

/* ---------- Guide du survivant ---------- */
.guide { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.guide-sommaire { padding: 18px 20px; align-self: start; }
.guide-sommaire ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.guide-sommaire a { text-decoration: none; }
.guide-texte h2 { scroll-margin-top: 96px; }
.callout { padding: 14px 18px; border-left: 3px solid var(--lave-vive); background: rgba(255, 106, 26, .07); }
.vocab { display: grid; gap: 10px; margin: 0; }
.vocab div { display: grid; gap: 2px; padding: 10px 14px; background: rgba(10, 8, 7, .45); border-left: 2px solid var(--basalte); }
.vocab dt { font-weight: 800; color: var(--braise-pale); }
.vocab dd { margin: 0; color: var(--texte-2); }
@media (min-width: 980px) { .guide { grid-template-columns: 260px minmax(0, 1fr); } .guide-sommaire { position: sticky; top: 96px; } }

/* ---------- système typographique (20/11) : Cal Sans pour l'affichage, Satoshi pour les titres courants et le texte ----------
   Cal Sans n'existe qu'en une graisse (400) : jamais de gras synthétique. Satoshi Variable 300–900. */
h1, h2, .slogan, .slogan-xl, .foot-slogan, .direct b, .stats b, .marche-rang, .tombe-txt .perso-nom, .inv-nom, .marche figcaption .perso-nom,
.monstre-nom, .fiche-id h1, .perso-identite h1 {
  font-family: var(--f-display); font-weight: 400; font-synthesis: none; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h2 { line-height: 1.08; text-wrap: balance; }
h3, .h3, .h4 { font-family: var(--f-texte); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.slogan-xl { line-height: .98; letter-spacing: -.025em; }
.slogan-xl span:not(.sr) { letter-spacing: -.02em; }
.kicker, .filtre label, .filtre-label, .grades-l, .foot h2, .direct span, .slogan-2 { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.btn { font-family: var(--f-texte); font-weight: 800; letter-spacing: .1em; }
.direct b, .stats b, .rang-val, .rang-n, .stat dd, .total dd, .num, .solde b, .res td, .butins td, .marche-rang, .chute-date, .tri-nb, .escouade-table td { font-variant-numeric: tabular-nums; }
body { font-weight: 450; }
.rang.faucheur { grid-template-columns: 28px minmax(0, 1fr) auto; }
.total.zero dd, .total.zero dt { color: var(--texte-3); opacity: .7; }
.stuff-totaux h3.h4, .escouade h3.h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lave-vive); margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--ligne); }

/* ---------- « Pourquoi choisir Astrum » + « Modération et fair-play » : icônes et skins du jeu ---------- */
.nowrap { white-space: nowrap; }
.pq-heros { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
.pq-h { position: relative; padding: 0 24px 26px; text-align: center; overflow: hidden; }
.pq-h h3, .pq-c h3 { font-family: var(--f-display); font-weight: 400; color: var(--braise-pale); margin: 0 0 8px; }
.pq-h h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); }
.pq-h p, .pq-c p { color: var(--texte-2); margin: 0; }
.pq-scene { position: relative; height: 230px; margin: 0 -24px 18px; display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(46% 38% at 50% 92%, rgba(255, 120, 30, .55), rgba(255, 70, 20, .18) 55%, transparent 75%),
    radial-gradient(70% 60% at 50% 100%, rgba(232, 51, 90, .16), transparent 70%),
    linear-gradient(180deg, #120d0c 0%, #1b1412 100%); }
.pq-scene::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 14px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.pq-scene img { position: relative; z-index: 1; filter: drop-shadow(0 0 16px rgba(255, 106, 26, .35)); }
.pq-trio img { height: 200px; width: auto; margin: 0 -14px 14px; }
.pq-trio img:nth-child(2) { height: 218px; z-index: 2; }
.pq-trio img:nth-child(1), .pq-trio img:nth-child(3) { filter: brightness(.82) drop-shadow(0 0 12px rgba(255, 106, 26, .3)); }
.pq-dofus { align-items: center; gap: 18px; }
.pq-dofus img { width: 72px; height: 72px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)) drop-shadow(0 0 18px rgba(255, 140, 40, .45)); }
.pq-dofus img:nth-child(2) { width: 108px; height: 108px; animation: pq-flotte 4s ease-in-out infinite; }
.pq-solo img:first-child { height: 212px; width: auto; margin-bottom: 14px; filter: grayscale(.7) brightness(.85) drop-shadow(0 0 18px rgba(232, 51, 90, .55)); }
.pq-h-mort .pq-scene { background: radial-gradient(46% 38% at 50% 92%, rgba(232, 51, 90, .5), rgba(150, 20, 50, .16) 55%, transparent 75%), linear-gradient(180deg, #120c0d, #1b1214); }
.pq-pastille { position: absolute !important; top: 16px; right: 18px; width: 44px !important; height: 44px !important; margin: 0 !important; z-index: 3 !important; animation: none !important; }
@keyframes pq-flotte { 50% { transform: translateY(-8px); } }

.pq-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pq-c { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px; }
.pq-c > :not(.pq-badge) { grid-column: 2; }
.pq-c h3 { font-size: 1.25rem; line-height: 1.15; }
.pq-badge { grid-column: 1; grid-row: 1 / span 3; position: relative; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 70% at 50% 65%, rgba(255, 106, 26, .35), rgba(255, 106, 26, .06) 65%, transparent), linear-gradient(160deg, #2a201d, #15100f);
  border: 1px solid rgba(255, 130, 50, .35);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .6); transition: transform .3s ease; }
.pq-badge img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)); }
.pq-badge img + img { margin-left: -30px; width: 40px; height: 40px; align-self: flex-end; margin-bottom: 6px; }
.pq-badge img + img + img { margin-left: -14px; }
.pq-glyphes i { display: block; width: 26px; height: 26px; margin: 0 -2px; background: linear-gradient(180deg, #ffc26b, #ff6a1a);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.pq-glyphes i:nth-child(2) { width: 34px; height: 34px; }
.g-sablier { --m: url(../img/pourquoi/chal-sablier.webp); }
.g-combat { --m: url(../img/pourquoi/chal-combat.webp); }
.g-equilibre { --m: url(../img/pourquoi/chal-equilibre.webp); }
.pq-os { gap: 6px; }
.pq-os .ico { width: 26px; height: 26px; color: var(--braise-pale); }
@media (hover: hover) { .pq-c:hover .pq-badge { transform: translateY(-2px) rotate(-2deg); } }
.fp-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--texte-2); }
.fp-liste li { position: relative; padding-left: 18px; }
.fp-liste li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--lave-vive); box-shadow: 0 0 8px rgba(255, 106, 26, .6); }
@media (prefers-reduced-motion: reduce) { .pq-dofus img:nth-child(2) { animation: none; } .pq-badge { transition: none; } }
@media (min-width: 700px) {
  .pq-heros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pq-h { padding: 0 20px 24px; }
  .pq-scene { margin: 0 -20px 18px; }
  .pq-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pq-cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pq-c { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 26px 20px 24px; }
  .pq-c > :not(.pq-badge) { grid-column: 1; }
  .pq-badge { grid-row: auto; width: 88px; height: 88px; margin-bottom: 16px; }
  .pq-c .fp-liste { text-align: left; }
}
.pq-c { align-content: start; }
.pq-badge { width: auto; min-width: 76px; padding: 0 10px; gap: 2px; }
.pq-badge img + img, .pq-badge img + img + img { margin: 0; align-self: center; }
.pq-badge img:not(:only-child) { width: 42px; height: 42px; }
@media (min-width: 1100px) { .pq-badge { min-width: 88px; padding: 0 14px; } .pq-badge img:not(:only-child) { width: 48px; height: 48px; } }

/* ---------- menu : « Le serveur », « Outils », « Légendes » (icônes SVG maison, clic / survol / clavier) ---------- */
.nav a:not(.btn):not(.status-pill), .nav-sous-btn { display: flex; align-items: center; gap: 10px; }
.nav .ico { width: 18px; height: 18px; stroke-width: 1.7; color: var(--texte-3); transition: color .2s, transform .2s, filter .2s; }
.nav a:not(.btn):not(.status-pill):hover .ico, .nav a[aria-current="page"] .ico, .nav-sous-btn:hover .ico, .nav-groupe.ouvert > .nav-sous-btn .ico, .nav-groupe.actif > .nav-sous-btn .ico {
  color: var(--lave-vive); filter: drop-shadow(0 0 6px rgba(255, 106, 26, .55)); }
.nav .btn .ico, .nav .compte-lien .ico { color: inherit; }
.nav-sous-btn { width: 100%; font: 500 1rem var(--f-texte); color: var(--texte-2); background: none; border: 0; padding: 12px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.nav-sous-btn::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s; }
.nav-groupe.ouvert > .nav-sous-btn::after { transform: translateY(2px) rotate(-135deg); }
.nav-sous-btn:hover, .nav-groupe.ouvert > .nav-sous-btn { color: var(--braise-pale); background: rgba(255, 106, 26, .06); }
.nav-groupe.actif > .nav-sous-btn { color: var(--braise); }
.nav-sous-btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--lave-vive); outline-offset: 2px; }
/* mobile : accordéon */
.nav-sous { padding: 2px 0 6px 14px !important; margin-left: 18px !important; border-left: 1px solid rgba(255, 106, 26, .25); }
.js .nav-sous { display: none; }
.js .nav-groupe.ouvert > .nav-sous { display: grid; animation: nav-deplie .18s ease-out; }
.nav .nav-sous a:not(.btn):not(.status-pill) { padding: 10px 10px; }
@keyframes nav-deplie { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 980px) {
  .nav > ul { align-items: center; }
  .nav > ul > li { position: relative; }
  .nav-sous-btn { width: auto; font-size: .93rem; padding: 8px 10px; white-space: nowrap; gap: 7px; }
  .nav-sous-btn::after { margin-left: 2px; }
  .nav a.nav-item:not(.btn) { gap: 7px; }
  .nav-groupe.actif > .nav-sous-btn { box-shadow: inset 0 -2px 0 var(--lave-vive); border-radius: 0; }
  .nav .nav-sous { position: absolute; top: calc(100% + 12px); left: -8px; min-width: 260px; margin: 0 !important; padding: 8px !important; border: 0; gap: 2px;
    background: linear-gradient(180deg, rgba(30, 24, 22, .99), rgba(16, 12, 11, .99)) padding-box, var(--braise-liseré) border-box; border: 1px solid transparent;
    clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6); z-index: 60; }
  /* pont de survol : couvre l'espace entre le titre et le panneau */
  .nav .nav-sous::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-groupe { padding-bottom: 0; }
  .nav-groupe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
  .js .nav-groupe.ouvert > .nav-sous { display: grid; animation: nav-ouvre .16s ease-out; }
  html:not(.js) .nav .nav-sous { display: none; }
  html:not(.js) .nav-groupe:hover > .nav-sous, html:not(.js) .nav-groupe:focus-within > .nav-sous { display: grid; }
  .nav .nav-sous a:not(.btn):not(.status-pill) { padding: 9px 12px 9px 9px; border-radius: 8px; gap: 12px; font-size: .93rem; }
  .nav .nav-sous .ico { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: rgba(255, 106, 26, .07); border: 1px solid rgba(255, 106, 26, .16); color: var(--braise-pale); }
  .nav .nav-sous a:hover .ico, .nav .nav-sous a:focus-visible .ico, .nav .nav-sous a[aria-current="page"] .ico { background: rgba(255, 106, 26, .18); border-color: rgba(255, 106, 26, .5); color: var(--lave-vive); transform: scale(1.06); }
  .nav .nav-sous a[aria-current="page"]:not(.btn):not(.status-pill) { box-shadow: none; color: var(--braise); background: rgba(255, 106, 26, .07); }
}
@media (min-width: 980px) and (max-width: 1199px) { .nav-racine > li > .nav-item .ico, .nav-sous-btn > .ico { display: none; } }
@keyframes nav-ouvre { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .js .nav-groupe.ouvert > .nav-sous { animation: none; } }

/* ---------- accueil : badges « Disponible sur Windows / Mac » ---------- */
.hero-os { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; justify-content: inherit; }
.os-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; font-size: .9rem; color: var(--texte-2);
  background: linear-gradient(180deg, rgba(30, 24, 22, .85), rgba(16, 12, 11, .85)) padding-box, var(--braise-liseré) border-box; border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); backdrop-filter: blur(4px); }
.os-badge strong { color: var(--braise-pale); font-weight: 700; }
.os-glyphe { width: 20px; height: 20px; color: var(--braise-pale); flex: none; }
.os-badge.os-actuel { background: linear-gradient(180deg, rgba(70, 34, 18, .92), rgba(30, 16, 10, .92)) padding-box, linear-gradient(140deg, #ffb35c, #ff6a1a 60%, #e8335a) border-box; }
.os-badge.os-actuel .os-glyphe { color: var(--lave-vive); filter: drop-shadow(0 0 6px rgba(255, 106, 26, .7)); }
/* cartes à icône : même disposition empilée à toutes les largeurs */
.pq-c { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 22px 18px 20px; }
.pq-c > :not(.pq-badge) { grid-column: 1; }
.pq-badge { grid-row: auto; height: 76px; margin-bottom: 14px; }
.pq-c .fp-liste { text-align: left; }

/* ---------- accueil : « Un terrain de jeu inédit » (îles découpées Astrub + Incarnam) ---------- */
.zone { position: relative; overflow: hidden; padding-top: 56px; }
.zone::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 72% 55%, rgba(255, 106, 26, .13), transparent 70%), radial-gradient(30% 40% at 85% 15%, rgba(80, 200, 190, .07), transparent 70%); }
.zone-grille { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.zone-texte h2 { margin: 4px 0 14px; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02; }
.zone-accroche { font-size: 1.12rem; color: var(--texte); margin: 0 0 12px; }
.zone-texte p:not(.kicker):not(.zone-accroche) { color: var(--texte-2); margin: 0; }
.zone-chiffres { list-style: none; padding: 0; margin: 22px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.zone-chiffres li { display: flex; align-items: baseline; gap: 8px; padding: 8px 16px 8px 14px;
  background: linear-gradient(180deg, rgba(36, 28, 25, .9), rgba(18, 14, 13, .9)) padding-box, var(--braise-liseré) border-box; border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.zone-chiffres b { font: 400 1.6rem/1 var(--f-display); color: var(--lave-vive); font-variant-numeric: tabular-nums; }
.zone-chiffres span { color: var(--texte-2); font-size: .9rem; }
.zone-lien { font-weight: 600; color: var(--braise-pale); text-decoration: none; border-bottom: 1px solid rgba(255, 106, 26, .5); padding-bottom: 2px; }
.zone-lien:hover { color: var(--lave-vive); }

.zone-scene { position: relative; display: block; aspect-ratio: 1 / 1.02; text-decoration: none; color: inherit; isolation: isolate; --px: 0; --py: 0; }
.zone-ile { position: absolute; display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.zone-ile img { display: block; width: 100%; height: auto; }
.zone-ile picture { display: block;
  filter: drop-shadow(0 0 1.5px rgba(255, 170, 80, .95)) drop-shadow(0 0 10px rgba(255, 106, 26, .55)) drop-shadow(0 34px 28px rgba(0, 0, 0, .85)); }
.zone-astrub { left: 0; bottom: 0; width: 76%; transform: translate(calc(var(--px) * -6px), calc(var(--py) * -6px)); animation: zone-flotte 9s ease-in-out infinite; }
.zone-incarnam { right: -2%; top: -2%; width: 46%; z-index: 2; transform: translate(calc(var(--px) * 14px), calc(var(--py) * 10px)); animation: zone-flotte 7s ease-in-out -2s infinite; }
.zone-incarnam picture { filter: drop-shadow(0 0 1.5px rgba(150, 240, 225, .8)) drop-shadow(0 0 14px rgba(80, 200, 190, .35)) drop-shadow(0 40px 30px rgba(0, 0, 0, .8)); }
.zone-scene:hover .zone-astrub picture, .zone-scene:focus-visible .zone-astrub picture {
  filter: drop-shadow(0 0 2px rgba(255, 190, 100, 1)) drop-shadow(0 0 18px rgba(255, 106, 26, .8)) drop-shadow(0 34px 28px rgba(0, 0, 0, .85)); }
.zone-scene:focus-visible { outline: 2px solid var(--lave-vive); outline-offset: 6px; }
@keyframes zone-flotte { 50% { translate: 0 -10px; } }


/* braises qui montent et brume qui dérive autour des îles */
.zone-braises { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.zone-braises i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffb35c;
  box-shadow: 0 0 8px 2px rgba(255, 106, 26, .8); opacity: 0; animation: zone-braise 9s linear infinite; }
.zone-braises i:nth-child(1) { left: 8%; animation-delay: 0s; } .zone-braises i:nth-child(2) { left: 18%; animation-delay: -2.3s; animation-duration: 11s; }
.zone-braises i:nth-child(3) { left: 29%; animation-delay: -5s; } .zone-braises i:nth-child(4) { left: 41%; animation-delay: -1.2s; animation-duration: 12s; }
.zone-braises i:nth-child(5) { left: 52%; animation-delay: -6.4s; } .zone-braises i:nth-child(6) { left: 61%; animation-delay: -3.7s; animation-duration: 10s; }
.zone-braises i:nth-child(7) { left: 70%; animation-delay: -8s; } .zone-braises i:nth-child(8) { left: 79%; animation-delay: -4.4s; animation-duration: 13s; }
.zone-braises i:nth-child(9) { left: 88%; animation-delay: -7.1s; } .zone-braises i:nth-child(10) { left: 95%; animation-delay: -.6s; animation-duration: 11s; }
@keyframes zone-braise { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: .9; } 70% { opacity: .6; } 100% { transform: translate(24px, -520px) scale(.3); opacity: 0; } }
.zone-brume { position: absolute; inset: 10% -10% -5% -10%; z-index: 1; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 25% at 30% 85%, rgba(255, 220, 190, .10), transparent 70%), radial-gradient(35% 22% at 75% 60%, rgba(255, 200, 170, .08), transparent 70%);
  animation: zone-brume 26s ease-in-out infinite alternate; }
@keyframes zone-brume { to { transform: translateX(6%); } }

@media (max-width: 699px) {
  .zone-scene { aspect-ratio: 1 / 1.1; margin: 0 -6px; }
  .zone-astrub { width: 84%; }
  .zone-incarnam { width: 50%; top: -4%; }
}
@media (min-width: 980px) {
  .zone-grille { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
  .zone-scene { aspect-ratio: 1 / .92; }
  .zone-astrub { width: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .zone-astrub, .zone-incarnam, .zone-brume { animation: none; }
  .zone-braises { display: none; }
  .zone-ile { transition: none; }
}
.pq-cartes-3 { }
@media (min-width: 1100px) { .pq-cartes.pq-cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .zone-scene { aspect-ratio: 1 / .86; } .zone-astrub { width: 66%; left: 2%; } .zone-incarnam { width: 48%; top: 0; right: -3%; } }
.zone-astrub { z-index: 3; }
@media (min-width: 980px) { .zone-scene { aspect-ratio: 1 / .8; } }
@media (max-width: 979px) { .zone-scene { order: -1; } }
@media (max-width: 699px) {
  .zone-scene { aspect-ratio: 1 / .98; margin-top: 8px; }
  .zone-incarnam { top: 0; }
  .zone-chiffres { flex-wrap: nowrap; gap: 8px; }
  .zone-chiffres li { padding: 7px 10px; gap: 6px; }
  .zone-chiffres b { font-size: 1.3rem; }
  .zone-chiffres span { font-size: .8rem; }
}
@media (max-width: 699px) { .zone-incarnam { right: 0; width: 48%; } .zone-scene { margin: 8px 0 0; } }

/* ---------- fond fixe du site : canyon de lave en vidéo (le contenu défile par-dessus) ---------- */
body { background: #0d0807; }
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: #140906 url("../img/fond/canyon.webp") center 40% / cover no-repeat; }
@media (max-width: 699px) { .fond { background-image: url("../img/fond/canyon-mobile.webp"); background-position: center; } }
.fond-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 1.2s ease; }
.fond-video.pret { opacity: 1; }
/* voile : centre lisible, bords plus vivants */
.fond::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(13, 8, 7, .80), rgba(13, 8, 7, .55) 70%, rgba(13, 8, 7, .40)),
              linear-gradient(180deg, rgba(13, 8, 7, .25), rgba(13, 8, 7, .55)); }
@media (prefers-reduced-motion: reduce) { .fond-video { display: none; } }

/* îles séparées (sans chevauchement) + marqueurs icônes seulement (zaap, donjons) */
.zone-scene { aspect-ratio: 100 / 70 !important; margin: 0 !important; }
.zone-ile { animation-name: zone-flotte; }
.zone-incarnam { left: 0 !important; right: auto !important; top: 2% !important; width: 40% !important; z-index: 2; }
.zone-astrub { left: auto !important; right: 0 !important; bottom: 0 !important; width: 56% !important; z-index: 3; }
.zone-portail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.zone-portail path { fill: none; stroke: rgba(150, 240, 225, .75); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(120, 230, 210, .8)); animation: zone-flux 2.4s linear infinite; }
.zone-portail-p { display: none; }
@keyframes zone-flux { to { stroke-dashoffset: -18; } }
.zone-mark { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: block; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 12, 10, .75) 55%, transparent 72%); }
.zone-mark img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)) drop-shadow(0 0 6px rgba(255, 140, 50, .55)); transition: transform .2s; }
.zone-mark-zaap { width: 38px; height: 38px; }
.zone-mark-zaap img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)) drop-shadow(0 0 8px rgba(120, 230, 210, .8)); }
.zone-scene:hover .zone-mark img { transform: scale(1.12); }
@media (max-width: 699px) {
  .zone-scene { aspect-ratio: 100 / 140 !important; }
  .zone-incarnam { width: 60% !important; top: 0 !important; left: 0 !important; }
  .zone-astrub { width: 92% !important; right: 0 !important; bottom: 0 !important; }
  .zone-portail-l { display: none; } .zone-portail-p { display: block; }
  .zone-mark { width: 24px; height: 24px; } .zone-mark-zaap { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .zone-portail path { animation: none; } }
@media (max-width: 699px) { .zone-scene { aspect-ratio: 100 / 152 !important; } .zone-astrub { width: 88% !important; } .zone-incarnam { width: 56% !important; } }

/* ---------- héros de l'accueil, mobile et petite tablette (< 760 px) : chevalier plein cadre, dégradé sombre, texte en bas ---------- */
@media (max-width: 759px) {
  .hero-banniere { display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
    min-height: min(100svh, 860px); padding: 96px 0 28px; background: #0a0605; }
  .hero-banniere::before, .hero-banniere::after, .hero-lave .lueur { display: none !important; }
  .hero-visuel { position: absolute; inset: 0; margin: 0; z-index: -2; }
  .hero-visuel img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 62% 8%; }
  .hero-visuel::after { background:
      linear-gradient(180deg, rgba(10, 6, 5, .35) 0%, rgba(10, 6, 5, 0) 16%, rgba(10, 6, 5, 0) 30%, rgba(10, 6, 5, .62) 48%, rgba(10, 6, 5, .9) 64%, #0a0605 86%); }
  .hero-banniere .sky { opacity: .45; }
  .hero-banniere .hero-in { width: 100%; max-width: 34rem; margin: 0; padding: 0 20px; }
  .hero-banniere .slogan-xl { font-size: clamp(2rem, 9.6vw, 3rem); line-height: 1.04; margin: 0 0 14px; }
  .hero-banniere .lead { font-size: 1.02rem; line-height: 1.55; color: #f6ece4; max-width: 36ch; margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .9); }
  .hero-banniere .cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 14px; justify-content: stretch; }
  .hero-banniere .cta .btn { min-width: 0; width: 100%; justify-content: center; }
  .hero-banniere .hero-os { justify-content: flex-start; gap: 8px; margin-top: 4px; }
  .hero-banniere .os-badge { font-size: .8rem; padding: 6px 12px 6px 10px; }
  .hero-banniere .status-card { display: inline-flex; margin-top: 10px; }
  .hero-banniere .scroll-hint { display: none; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .hero-banniere { padding-top: 84px; }
  .hero-banniere .slogan-xl { font-size: clamp(1.9rem, 8.8vw, 2.6rem); }
  .hero-banniere .lead { font-size: .96rem; }
}

/* filet de sécurité anti-décalage horizontal (les vraies causes sont corrigées à la source) */
html { overflow-x: clip; }
.zone-scene { contain: layout; }
@media (max-width: 379px) { .filtres .filtre-niv { grid-column: 1 / -1; } .niv input { min-width: 0; } }
@media (max-width: 759px) {
  .hero-visuel::after { background:
      linear-gradient(180deg, rgba(10, 6, 5, .4) 0%, rgba(10, 6, 5, 0) 14%, rgba(10, 6, 5, .1) 24%, rgba(10, 6, 5, .62) 36%, rgba(10, 6, 5, .88) 46%, rgba(10, 6, 5, .96) 58%, #0a0605 80%); }
  .hero-banniere .hero-os { flex-wrap: nowrap; }
  .hero-banniere .os-badge { font-size: .74rem; padding: 6px 10px 6px 8px; gap: 6px; white-space: nowrap; }
  .hero-banniere .os-glyphe { width: 16px; height: 16px; }
}
@media (min-width: 760px) and (max-width: 979px) {
  .hero-visuel::after { background:
      linear-gradient(90deg, rgba(10, 6, 5, .95) 0%, rgba(10, 6, 5, .86) 40%, rgba(10, 6, 5, .45) 60%, rgba(10, 6, 5, 0) 76%),
      linear-gradient(0deg, rgba(10, 6, 5, .9) 0%, rgba(10, 6, 5, 0) 26%); }
  .hero-banniere .hero-in > * { max-width: min(440px, 56vw); }
  .hero-banniere .lead { color: #f6ece4; }
}
@media (max-width: 359px) { .hero-banniere .hero-os { flex-wrap: wrap; } }

/* inscription : case « projet de fans / sans argent réel / Ankama » */
.form .form-accord { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; padding: 12px 14px;
  font-weight: 500; font-size: .88rem; line-height: 1.5; color: var(--texte-2); background: rgba(255, 106, 26, .05); border: 1px solid var(--ligne-2); border-radius: 8px; cursor: pointer; }
.form .form-accord input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--lave-vive); cursor: pointer; }
.form .btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
/* pied de page : mention projet de fans */
.foot-legal .foot-fan { max-width: 78ch; }

/* ---------- page perso (refonte 21/11) : bannière sur socle, pierre tombale, chiffres, équipement, succès, métiers ---------- */
.perso-fiche { max-width: 1120px; display: grid; gap: 18px; }
.perso-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 0 26px; overflow: hidden; }
.perso-scene { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(50% 42% at 50% 92%, rgba(255, 120, 30, .5), rgba(255, 70, 20, .14) 55%, transparent 76%),
              radial-gradient(70% 60% at 50% 100%, rgba(232, 51, 90, .14), transparent 70%), linear-gradient(180deg, #120d0c, #1c1512); }
.perso-socle { position: absolute; left: 50%; bottom: 18px; width: 220px; height: 54px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, #3a2a24 0%, #241a16 60%, #130e0c 100%);
  box-shadow: 0 0 0 2px rgba(255, 106, 26, .35), 0 0 24px 4px rgba(255, 106, 26, .45), inset 0 -10px 18px rgba(255, 90, 20, .45), inset 0 8px 14px rgba(0, 0, 0, .6); }
.perso-socle::after { content: ""; position: absolute; inset: 22% 14% 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 70, .5), transparent); filter: blur(3px); }
.perso-skin { position: relative; z-index: 1; height: 250px; width: auto; margin-bottom: 38px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .7)) drop-shadow(0 0 18px rgba(255, 106, 26, .35)); }
.perso-skin-embleme { height: 150px; margin-bottom: 70px; }
.perso-id { padding: 0 22px; display: grid; gap: 10px; align-content: start; }
.perso-id .kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.perso-ornement { font: 600 .68rem var(--f-texte); letter-spacing: .08em; text-transform: uppercase; color: #ffd38a; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 200, 120, .45); background: rgba(255, 180, 80, .08); }
.fiche-nom { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .95; margin: 0; color: var(--braise-pale);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 30px rgba(255, 106, 26, .35); overflow-wrap: anywhere; }
.perso-titre { margin: -4px 0 0; font-style: italic; color: #ffcf8a; }
.perso-classe { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--texte-2); }
.perso-classe-ico { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(255, 106, 26, .5)); }
.perso-niveau { display: grid; gap: 6px; max-width: 420px; }
.perso-niveau-n { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.perso-niveau-n span { font: 600 .74rem var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.perso-niveau-n b { font: 400 2.4rem/1 var(--f-display); color: var(--lave-vive); font-variant-numeric: tabular-nums; }
.perso-xp { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne-2); overflow: hidden; }
.perso-xp i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a1a, #ffb35c); box-shadow: 0 0 12px rgba(255, 106, 26, .7); border-radius: inherit; }
.perso-xp-txt { margin: 0; font-size: .82rem; color: var(--texte-3); }
.perso-etat { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 0; justify-self: start; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.perso-etat i { width: 9px; height: 9px; border-radius: 50%; }
.perso-etat-vivant { color: #b9f3cf; background: rgba(60, 200, 120, .1); border: 1px solid rgba(90, 220, 140, .45); }
.perso-etat-vivant i { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.perso-etat-mort { color: #ffc2cf; background: rgba(232, 51, 90, .12); border: 1px solid rgba(232, 51, 90, .5); }
.perso-etat-mort i { background: #ff5f7e; box-shadow: 0 0 10px #ff5f7e; }
.perso-groupes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.perso-groupe { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 14px 8px 10px;
  border: 1px solid var(--ligne-2); border-radius: 10px; background: rgba(10, 8, 7, .45); }
.perso-groupe .blason { grid-row: 1 / span 2; width: 34px; height: 34px; }
.perso-groupe .blason i { width: 13px; height: 13px; }
.perso-groupe strong { color: var(--texte); }
.perso-hero-mort .perso-skin { filter: grayscale(.85) brightness(.75) drop-shadow(0 0 18px rgba(232, 51, 90, .5)); }
.perso-hero-mort .perso-scene { background: radial-gradient(50% 42% at 50% 92%, rgba(232, 51, 90, .45), rgba(150, 20, 50, .12) 55%, transparent 76%), linear-gradient(180deg, #120c0d, #1b1214); }
.perso-hero-mort .perso-socle { box-shadow: 0 0 0 2px rgba(232, 51, 90, .35), 0 0 24px 4px rgba(232, 51, 90, .4), inset 0 -10px 18px rgba(232, 51, 90, .35), inset 0 8px 14px rgba(0, 0, 0, .6); }
.perso-hero-mort .fiche-nom { color: #e9d6d2; text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 30px rgba(232, 51, 90, .35); }
@media (min-width: 820px) {
  .perso-hero { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 0; align-items: center; }
  .perso-scene { height: 100%; min-height: 400px; }
  .perso-skin { height: 300px; }
  .perso-id { padding: 30px 30px 30px 0; }
}

/* pierre tombale */
.perso-tombe { display: grid; place-items: center; padding: 8px 0; }
.perso-pierre { position: relative; width: min(420px, 100%); padding: 60px 28px 30px; text-align: center; color: #d9d2cf;
  background: radial-gradient(120% 80% at 50% 0%, #6b6462 0%, #4a4442 45%, #2e2a29 100%);
  border-radius: 48% 48% 10px 10px / 34% 34% 10px 10px; border: 2px solid #1d1a19;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12), inset 0 -18px 30px rgba(0, 0, 0, .45), 0 24px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 51, 90, .18); }
.perso-pierre::before { content: ""; position: absolute; left: 50%; top: 18px; width: 4px; height: 28px; transform: translateX(-50%); background: rgba(0, 0, 0, .35); }
.perso-pierre::after { content: ""; position: absolute; left: 50%; top: 26px; width: 20px; height: 4px; transform: translateX(-50%); background: rgba(0, 0, 0, .35); }
.perso-pierre p { margin: 0; text-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 -1px 0 rgba(0, 0, 0, .5); }
.perso-pierre-ci { font: 600 .78rem var(--f-texte); letter-spacing: .3em; text-transform: uppercase; color: #a9a19e; }
.perso-pierre .perso-pierre-nom { font: 400 clamp(2rem, 6vw, 2.8rem)/1.05 var(--f-display); color: #f0e8e5; margin: 6px 0 4px; overflow-wrap: anywhere; }
.perso-pierre-classe { color: #c7bfbc; }
.perso-pierre .perso-pierre-date { margin-top: 14px; font-size: .92rem; }
.perso-pierre-zone { font-style: italic; color: #e9b9b0; }
.perso-pierre .perso-pierre-morts { margin-top: 10px; font: 600 .76rem var(--f-texte); letter-spacing: .12em; text-transform: uppercase; color: #ff9fb2; }

/* chiffres */
.perso-chiffres { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perso-chiffre { display: grid; gap: 4px; padding: 16px 16px 14px; text-align: center; }
.perso-chiffre b { font: 400 clamp(1.7rem, 4vw, 2.3rem)/1 var(--f-display); color: var(--lave-vive); font-variant-numeric: tabular-nums; }
.perso-chiffre span { font-size: .8rem; color: var(--texte-3); }
.perso-chiffre-mort b { color: #ff5f7e; }
.perso-chiffre-pantheon b { color: #ffd38a; }
.perso-chiffre-pantheon { grid-column: 1 / -1; }
@media (min-width: 820px) { .perso-chiffres { grid-template-columns: repeat(5, minmax(0, 1fr)); } .perso-chiffre-pantheon { grid-column: auto; } }

/* blocs */
.perso-bloc { padding: 22px; }
.perso-bloc > .kicker { margin: 0; }
.perso-bloc-titre { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2px 0 16px; color: var(--braise-pale); }
.perso-sous { font: 600 .78rem var(--f-texte); text-transform: uppercase; letter-spacing: .12em; color: var(--lave-vive); margin: 18px 0 8px; }
.perso-eq-grille { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.perso-slots .slot { cursor: default; }
.perso-totaux .perso-sous:first-child { margin-top: 0; }
.perso-lien-db { display: inline-block; margin-top: 14px; }
@media (min-width: 900px) { .perso-eq-grille { grid-template-columns: minmax(0, 484px) minmax(0, 1fr); align-items: start; } }

.perso-dofus { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perso-dofus-item { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; text-align: center; border-radius: 12px; border: 1px dashed var(--ligne-2); background: rgba(10, 8, 7, .35); }
.perso-dofus-item img { width: 60px; height: 60px; filter: grayscale(1) brightness(.45); opacity: .6; }
.perso-dofus-item strong { font-size: .88rem; color: var(--texte-3); }
.perso-dofus-item.obtenu { border-style: solid; border-color: rgba(255, 170, 70, .5); background: radial-gradient(70% 70% at 50% 35%, rgba(255, 140, 40, .22), rgba(10, 8, 7, .4) 75%); }
.perso-dofus-item.obtenu img { filter: drop-shadow(0 0 14px rgba(255, 170, 60, .7)); opacity: 1; }
.perso-dofus-item.obtenu strong { color: var(--braise-pale); }
.perso-succes-resume { margin: 16px 0 0; color: var(--texte-2); }
.perso-succes-resume b { color: var(--lave-vive); font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; }
.perso-succes-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.perso-succes-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(10, 8, 7, .4); border: 1px solid var(--ligne-2); }
.perso-succes-liste b { color: #ffd38a; font-size: .85rem; font-variant-numeric: tabular-nums; }
.perso-trophee { width: 18px; height: 18px; background: linear-gradient(180deg, #ffd38a, #ff8a3d); -webkit-mask: url("../img/pourquoi/etoile.webp") center / contain no-repeat; mask: url("../img/pourquoi/etoile.webp") center / contain no-repeat; }

.perso-metiers-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.perso-metier { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(10, 8, 7, .4); border: 1px solid var(--ligne-2); }
.perso-metier img { width: 48px; height: 48px; border-radius: 10px; }
.perso-metier-txt { display: grid; gap: 3px; }
.perso-metier-barre { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.perso-metier-barre i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a1a, #ffb35c); }
@media (min-width: 900px) {
  .perso-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perso-fiche > .perso-hero, .perso-fiche > .perso-tombe, .perso-fiche > .perso-chiffres, .perso-fiche > .perso-equipement, .perso-fiche > .link-back { grid-column: 1 / -1; }
}
.perso-classe-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 106, 26, .12); border: 1px solid rgba(255, 106, 26, .4); filter: none; }
.inv-skin.inv-skin-mort { filter: grayscale(.85) brightness(.75) drop-shadow(0 0 14px rgba(232, 51, 90, .45)); }
.perso-dofus-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .perso-dofus { gap: 8px; } .perso-dofus-item { padding: 10px 4px; } .perso-dofus-item img { width: 46px; height: 46px; } .perso-dofus-item strong { font-size: .8rem; } .perso-dofus-item .small { font-size: .7rem; } }
.perso-maj { margin: 0; font-size: .78rem; color: var(--texte-3); text-align: right; grid-column: 1 / -1; }
/* marqueurs placés sur les vraies cartes d'entrée (indices officiels du client, map_positions ; transformation de carte.json) */
.zone-mark[data-p="zaap"] { left: 52.7%; top: 61%; }          /* zaap d'Astrub [5,-18] */
.zone-mark[data-p="kankreblath"] { left: 41.8%; top: 64.6%; } /* Cache de Kankreblath [3,-17] */
.zone-mark[data-p="grange"] { left: 63.7%; top: 39.1%; }      /* Grange du Tournesol Affamé [7,-24] */
.zone-mark[data-p="chateau"] { left: 96.5%; top: 24.5%; }     /* Château Ensablé [13,-28] */
.zone-mark[data-p="bouftou"] { left: 36.3%; top: 2.6%; }      /* Cour du Bouftou Royal [2,-34] */
.zone-mark[data-p="kardorim"] { left: 94.4%; top: 61.8%; }    /* Crypte de Kardorim, Incarnam [5,-1] */

/* ---------- Panthéon : podium des 3 premiers (refonte 21/11) ---------- */
.podium3 { list-style: none; margin: 16px 0 18px; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.pod { position: relative; flex: 1 1 0; min-width: 0; max-width: 220px; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 10px 14px; }
.pod-1 { order: 2; } .pod-2 { order: 1; } .pod-3 { order: 3; }
.pod-scene { position: relative; width: calc(100% + 20px); margin: 0 -10px 6px; height: 128px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(55% 45% at 50% 95%, rgba(255, 120, 30, .28), transparent 75%), linear-gradient(180deg, rgba(18, 13, 12, .4), rgba(28, 21, 18, .7)); }
.pod-socle { position: absolute; left: 50%; bottom: 10px; width: 62%; height: 18px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, #3a2a24, #1a1311); box-shadow: 0 0 0 1px rgba(255, 106, 26, .35), 0 0 12px rgba(255, 106, 26, .35), inset 0 -4px 8px rgba(255, 90, 20, .35); }
.pod-perso { position: relative; z-index: 1; height: 104px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .7)); }
.pod-medaille { position: absolute; top: 8px; left: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font: 400 1rem/1 var(--f-display); color: #1c0f08; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .6); }
.pod-1 .pod-medaille { background: radial-gradient(circle at 35% 30%, #ffe3a3, #e9a948 55%, #a8641c); }
.pod-2 .pod-medaille { background: radial-gradient(circle at 35% 30%, #f3ebe4, #c4b8ae 55%, #7d716a); }
.pod-3 .pod-medaille { background: radial-gradient(circle at 35% 30%, #f2c49a, #c27a45 55%, #7a3f1e); }
.pod .pod-nom { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 1.2rem/1.2 var(--f-display); color: var(--braise-pale); text-decoration: none; letter-spacing: 0; }
a.pod-nom:hover { color: var(--lave-vive); }
.pod-classe { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: .78rem; color: var(--texte-3); }
.pod-classe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-classe .tete { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.pod-valeur { display: grid; gap: 0; margin-top: 4px; }
.pod-valeur small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-3); }
.pod-valeur b { font: 400 1.35rem/1.1 var(--f-display); color: var(--lave-vive); font-variant-numeric: tabular-nums; }
.pod-lien { font-size: .76rem; margin-top: 4px; }
/* #1 : légèrement plus grand et surélevé, seule lueur du podium */
.pod-1 { max-width: 240px; transform: translateY(-14px); box-shadow: 0 0 0 1px rgba(255, 190, 100, .28), 0 0 28px rgba(255, 140, 40, .22); }
.pod-1 .pod-scene { height: 146px; }
.pod-1 .pod-perso { height: 122px; }
.pod-1 .pod-nom { font-size: 1.4rem; }
.pod-1 .pod-valeur b { color: #ffc46b; }
.podium3-1 .pod, .podium3-2 .pod { max-width: 240px; }
@media (max-width: 560px) {
  .podium3 { gap: 6px; }
  .pod { padding: 0 6px 10px; }
  .pod-scene { width: calc(100% + 12px); margin: 0 -6px 4px; height: 96px; }
  .pod-perso { height: 76px; margin-bottom: 12px; }
  .pod-1 { transform: translateY(-10px); }
  .pod-1 .pod-scene { height: 110px; }
  .pod-1 .pod-perso { height: 90px; }
  .pod-medaille { width: 24px; height: 24px; font-size: .85rem; top: 6px; left: 6px; }
  .pod .pod-nom { font-size: 1rem; }
  .pod-1 .pod-nom { font-size: 1.1rem; }
  .pod-classe { font-size: .68rem; }
  .pod-classe .tete { display: none; }
  .pod-valeur b { font-size: 1.1rem; }
  .pod-valeur small { font-size: .6rem; letter-spacing: .06em; }
  .pod-lien { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pod-1 { transform: none; } }
.pod, .pod-1 { overflow: hidden; }

/* ---------- Panthéon : podium en scène (marches de basalte, rang gravé, personnages debout) — refonte 2 ---------- */
.pantheon-bloc-podium { position: relative; max-width: 720px; width: 100%; margin-left: auto; margin-right: auto; padding: 8px 0 0; background: none; border: 0; box-shadow: none; }
.pantheon-bloc-podium::before { content: ""; position: absolute; left: 50%; top: 40px; width: min(820px, 120%); height: 440px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 70%, rgba(255, 90, 20, .22), rgba(232, 51, 90, .06) 55%, transparent 72%); }
.pantheon-bloc-podium > h2, .pantheon-bloc-podium > p { text-align: center; }
.pd-scene { list-style: none; margin: 18px auto 26px; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: 0; max-width: 640px; }
.pd { flex: 1 1 0; min-width: 0; max-width: 214px; }
.pd-1 { order: 2; max-width: 230px; } .pd-2 { order: 1; } .pd-3 { order: 3; }
.pd-col { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none; transition: transform .25s ease; }
a.pd-col:hover, a.pd-col:focus-visible { transform: translateY(-6px); }
a.pd-col:focus-visible { outline: 2px solid var(--lave-vive); outline-offset: 4px; border-radius: 6px; }
.pd-nom { display: block; max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.3rem/1.2 var(--f-display); color: #f6e4d2; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.pd-1 .pd-nom { font-size: 1.5rem; color: #fff0dc; }
.pd-info { display: inline-flex; align-items: center; gap: 6px; max-width: 96%; margin: 2px 0 6px; font-size: .8rem; color: var(--texte-3); }
.pd-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-info .tete { width: 20px; height: 20px; border-radius: 50%; flex: none; }
/* personnage debout sur sa marche : lumière braise venue d'en bas, aura derrière le premier */
.pd-perso { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; margin-bottom: -10px; }
.pd-perso img { display: block; width: auto; height: 210px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .75)) drop-shadow(0 -2px 10px rgba(255, 110, 30, .28)); }
.pd-2 .pd-perso img { height: 226px; }
.pd-1 .pd-perso img { height: 258px; }
.pd-perso::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 120%; height: 34px; transform: translateX(-50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 50, .55), rgba(255, 90, 20, .18) 60%, transparent); }
.pd-1 .pd-perso::before { content: ""; position: absolute; left: 50%; bottom: 20px; width: 240px; height: 260px; transform: translateX(-50%); z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 170, 70, .28), rgba(255, 110, 30, .1) 55%, transparent); animation: pd-aura 5s ease-in-out infinite; }
@keyframes pd-aura { 50% { opacity: .65; transform: translateX(-50%) scale(1.05); } }
/* marches : basalte taillé, face supérieure éclairée par la braise, veines de lave discrètes */
.pd-marche { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 92px;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 110, 30, .5) 46.4%, transparent 47.2% 100%) 0 0 / 100% 100% no-repeat,
    linear-gradient(68deg, transparent 0 70%, rgba(255, 90, 20, .35) 70.3%, transparent 71% 100%) 0 0 / 100% 100% no-repeat,
    radial-gradient(60% 50% at 50% 0%, rgba(255, 120, 40, .18), transparent 70%),
    linear-gradient(180deg, #3b2c27 0%, #241a17 28%, #17110f 100%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, .55); }
.pd-marche::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: linear-gradient(180deg, #8a5a3a 0%, #5a3b2b 45%, #2c201c 100%); box-shadow: 0 1px 0 rgba(255, 150, 60, .55), 0 6px 14px rgba(255, 110, 30, .28); }
.pd-marche::after { content: ""; position: absolute; inset: 12px 0 0; pointer-events: none; border-left: 1px solid rgba(255, 255, 255, .05); border-right: 1px solid rgba(0, 0, 0, .4); }
.pd-2 .pd-marche { height: 128px; }
.pd-1 .pd-marche { height: 168px; }
.pd-1 .pd-marche::before { box-shadow: 0 1px 0 rgba(255, 190, 90, .75), 0 8px 20px rgba(255, 130, 40, .4); }
/* rang gravé : métal chaud (or, argent, bronze) */
.pd-rang { position: relative; z-index: 1; margin-top: 8px; font: 400 3.6rem/1 var(--f-display); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 8px rgba(255, 150, 60, .22)); }
.pd-1 .pd-rang { font-size: 4.6rem; }
.pd-or { background-image: linear-gradient(180deg, #fff0c2 0%, #f2c15c 40%, #b8742a 75%, #7d4a18 100%); }
.pd-argent { background-image: linear-gradient(180deg, #fbf6f0 0%, #d3c8bf 42%, #958a82 78%, #625853 100%); }
.pd-bronze { background-image: linear-gradient(180deg, #ffd9b5 0%, #d68f58 42%, #9a5428 78%, #5f2f14 100%); }
.pd-n1 .pd, .pd-n2 .pd { max-width: 230px; }
/* lignes 4+ alignées sur le podium, sans soulignement */
.pantheon-bloc-podium .rangs { max-width: 640px; margin-left: auto; margin-right: auto; }
.rangs .perso-nom, .pantheon .rang .perso-nom { text-decoration: none; }
.rangs a.perso-nom:hover { color: var(--lave-vive); }
@media (max-width: 560px) {
  .pd-scene { margin: 12px auto 20px; }
  .pd-nom { font-size: 1rem; }
  .pd-1 .pd-nom { font-size: 1.12rem; }
  .pd-info { font-size: .66rem; gap: 4px; }
  .pd-info .tete { display: none; }
  .pd-perso img { height: 118px; }
  .pd-2 .pd-perso img { height: 128px; }
  .pd-1 .pd-perso img { height: 150px; }
  .pd-1 .pd-perso::before { width: 140px; height: 150px; bottom: 12px; }
  .pd-marche { height: 58px; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%, 0 7px); }
  .pd-2 .pd-marche { height: 80px; }
  .pd-1 .pd-marche { height: 104px; }
  .pd-rang { font-size: 2.3rem; margin-top: 6px; }
  .pd-1 .pd-rang { font-size: 2.9rem; }
}
@media (prefers-reduced-motion: reduce) { .pd-1 .pd-perso::before { animation: none; } a.pd-col { transition: none; } }
/* itération : fissures courtes et discrètes en bas de marche (au lieu de longues diagonales), strate horizontale légère */
.pd-marche { background:
    linear-gradient(118deg, transparent 0 48%, rgba(255, 120, 40, .42) 49%, transparent 51.5% 100%) 8% 100% / 34% 46% no-repeat,
    linear-gradient(62deg, transparent 0 46%, rgba(255, 100, 30, .32) 47.5%, transparent 50% 100%) 88% 100% / 28% 38% no-repeat,
    linear-gradient(180deg, transparent 0 62%, rgba(0, 0, 0, .28) 62.5%, rgba(255, 255, 255, .03) 63.5%, transparent 64.5%),
    radial-gradient(60% 50% at 50% 0%, rgba(255, 120, 40, .16), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(255, 90, 20, .14), transparent 75%),
    linear-gradient(180deg, #3b2c27 0%, #241a17 28%, #17110f 100%); }
.pantheon-bloc-podium { overflow-x: clip; } .pd-perso { max-width: 100%; }

/* ---------- Panthéon : podium sur îlots volcaniques flottants (art du propriétaire) — refonte 3 ---------- */
/* --w : largeur de l'îlot ; --r : hauteur / largeur de l'image ; --p : ligne des pieds (fraction de la hauteur depuis le haut) */
.pantheon-bloc-podium { max-width: 860px; }
.pd-scene { max-width: 840px; gap: 6px; align-items: flex-end; margin: 22px auto 30px; }
.pd { flex: 0 1 auto; max-width: none; min-width: 0; }
.pd-1 { --w: 290px; --r: .958; --p: .105; --dec: 64px; max-width: none; }
.pd-2 { --w: 250px; --r: .922; --p: .113; --dec: 26px; }
.pd-3 { --w: 240px; --r: .709; --p: .13; --dec: 0px; }
.pd-col { width: var(--w); max-width: 100%; margin-bottom: var(--dec); }
.pd-groupe { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; animation: pd-flotte 5s ease-in-out infinite; will-change: transform; }
.pd-2 .pd-groupe { animation-duration: 4.6s; animation-delay: -1.7s; }
.pd-3 .pd-groupe { animation-duration: 5.4s; animation-delay: -3.1s; }
@keyframes pd-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.pd-perso { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: calc(var(--w) * var(--r) * var(--p) * -1); }
.pd-perso::after { width: 70%; height: 22px; bottom: -4px; background: radial-gradient(closest-side, rgba(255, 150, 60, .5), rgba(255, 90, 20, .16) 60%, transparent); }
.pd-ile { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
.pd-rang { margin-top: -2px; font-size: 1.9rem; line-height: 1; }
.pd-1 .pd-rang { font-size: 2.2rem; }
/* braises qui tombent des fissures de lave */
.pd-braises { position: absolute; left: 30%; right: 30%; bottom: 18%; height: 30px; z-index: 0; pointer-events: none; }
.pd-braises i { position: absolute; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 6px 2px rgba(255, 106, 26, .8); opacity: 0; animation: pd-tombe 3.2s linear infinite; }
.pd-braises i:nth-child(1) { left: 12%; animation-delay: -.4s; }
.pd-braises i:nth-child(2) { left: 52%; animation-delay: -1.5s; animation-duration: 3.8s; }
.pd-braises i:nth-child(3) { left: 84%; animation-delay: -2.6s; animation-duration: 2.9s; }
@keyframes pd-tombe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(70px); opacity: 0; } }
.pantheon-bloc-podium .rangs { max-width: 780px; }
@media (max-width: 760px) {
  .pd-1 { --w: 190px; --dec: 44px; } .pd-2 { --w: 160px; --dec: 18px; } .pd-3 { --w: 152px; }
  .pd-perso img { height: 170px; } .pd-2 .pd-perso img { height: 150px; } .pd-1 .pd-perso img { height: 190px; }
}
@media (max-width: 560px) {
  .pd-scene { gap: 2px; margin: 14px auto 22px; }
  .pd-1 { --w: 106px; --dec: 28px; } .pd-2 { --w: 88px; --dec: 12px; } .pd-3 { --w: 84px; }
  .pd-perso img { height: 104px; } .pd-2 .pd-perso img { height: 112px; } .pd-1 .pd-perso img { height: 136px; }
  .pd-1 .pd-perso::before { width: 120px; height: 140px; }
  .pd-rang { font-size: 1.15rem; } .pd-1 .pd-rang { font-size: 1.35rem; }
  .pd-braises { bottom: 22%; }
}
@media (prefers-reduced-motion: reduce) { .pd-groupe { animation: none; } .pd-braises { display: none; } }
/* rang gravé sur la roche, juste sous la dalle (au lieu de sous la pointe) */
.pd-groupe .pd-rang { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--w) * var(--r) * .5); transform: translateX(-50%); margin: 0; font-size: 1.7rem; opacity: .95; }
.pd-1 .pd-groupe .pd-rang { font-size: 2.1rem; bottom: calc(var(--w) * var(--r) * .55); }
.pd-3 .pd-groupe .pd-rang { bottom: calc(var(--w) * var(--r) * .42); }
@media (max-width: 560px) { .pd-groupe .pd-rang { font-size: 1rem; } .pd-1 .pd-groupe .pd-rang { font-size: 1.2rem; } }

/* ---------- Astrum Studio : entrée du menu Outils et carte de l'accueil ---------- */
.nav-titre { display: flex; flex-direction: column; line-height: 1.15; }
.nav-titre small { font-size: .74rem; font-weight: 500; color: var(--texte-3); letter-spacing: 0; text-transform: none; margin-top: 2px; }
.nav .nav-sous a:hover .nav-titre small, .nav .nav-sous a[aria-current="page"] .nav-titre small { color: var(--texte-2); }
.pq-c-studio { grid-column: 1 / -1; border-color: rgba(255, 106, 26, .45); background: radial-gradient(90% 160% at 0% 100%, rgba(226, 66, 27, .2), transparent 60%), radial-gradient(60% 120% at 100% 0%, rgba(255, 179, 71, .08), transparent 60%); }
.pq-c-studio .pq-badge .ico { width: 40px; height: 40px; color: var(--braise); filter: drop-shadow(0 0 10px rgba(255, 106, 26, .55)); }
.pq-c-studio p { max-width: 760px; }
.pq-c-studio .pq-lien { margin-top: 10px; }
.pq-c-studio .pq-lien a { color: var(--braise); font-weight: 700; text-decoration: none; }
.pq-c-studio .pq-lien a::after { content: " →"; }
.pq-c-studio .pq-lien a:hover { color: var(--braise-pale); text-decoration: underline; }

/* ---------- « Pourquoi choisir Astrum » (refonte 21/11) : 3 groupes, grille régulière, une icône par carte ---------- */
.pq-groupe + .pq-groupe { margin-top: 34px; }
.pq-groupe-titre { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 600 .78rem var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--lave-vive); scroll-margin-top: 96px; }
.pq-groupe-titre::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 106, 26, .45), transparent); }
.pq-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pq-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .pq-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pq-carte { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 18px 18px 16px; height: 100%;
  transition: box-shadow .25s ease, transform .25s ease; }
@media (hover: hover) { .pq-carte:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 130, 50, .4), 0 10px 26px rgba(255, 90, 20, .16); } }
.pq-medaille { width: 58px; height: 58px; display: grid; place-items: center; color: #ffd8b0;
  background: radial-gradient(70% 70% at 50% 40%, rgba(255, 120, 40, .32), rgba(255, 90, 20, .08) 70%), linear-gradient(160deg, #2c211d, #16100e);
  border: 1px solid rgba(255, 130, 50, .4);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .55); }
.pq-medaille img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }
.pq-medaille .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.pq-corps { min-width: 0; }
.pq-corps h4 { margin: 2px 0 6px; font: 400 1.18rem/1.2 var(--f-display); color: var(--braise-pale); }
.pq-corps p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--texte-2); }
.pq-corps .pq-lien { margin-top: 8px; font-size: .88rem; }
.pq-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--texte-2); }
.pq-points li { position: relative; padding-left: 16px; line-height: 1.45; }
.pq-points li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--lave-vive); box-shadow: 0 0 6px rgba(255, 106, 26, .6); }
@media (prefers-reduced-motion: reduce) { .pq-carte { transition: none; } }
.pq-grille .pq-c-studio { grid-column: auto; } /* carte Studio : mise en avant conservée, mais dans la grille régulière */

/* ---------- accueil : dernière section « L'aventure vous attend » (carte encadrée, héros sur un îlot volcanique) ---------- */
.final { text-align: left; }
.final-carte { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; max-width: 980px; margin: 0 auto; padding: 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 120, 40, .35), 0 0 40px rgba(255, 90, 20, .16), 0 24px 50px rgba(0, 0, 0, .5); }
.final-carte::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 22% 75%, rgba(255, 106, 26, .2), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(232, 51, 90, .08), transparent 70%); }
.final-scene { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 26px 0 8px; }
.final-groupe { position: relative; display: flex; flex-direction: column; align-items: center; width: 190px; --r: .958; --p: .105; animation: pd-flotte 5s ease-in-out infinite; }
.final-perso { position: relative; z-index: 2; height: 170px; width: auto; margin-bottom: calc(190px * var(--r) * var(--p) * -1);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .75)) drop-shadow(0 0 14px rgba(255, 120, 40, .3)); }
.final-ile { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)); }
.final-texte { position: relative; padding: 4px 22px 28px; text-align: center; }
.final-texte .kicker { margin: 0 0 4px; }
.final-texte h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.final-texte .lead { margin: 0 auto; max-width: 46ch; }
.final-texte .cta { margin: 20px 0 0; }
@media (min-width: 820px) {
  .final-carte { grid-template-columns: 340px minmax(0, 1fr); gap: 0; }
  .final-scene { padding: 34px 0 26px; }
  .final-groupe { width: 250px; }
  .final-perso { height: 230px; margin-bottom: calc(250px * var(--r) * var(--p) * -1); }
  .final-texte { padding: 36px 40px 36px 8px; text-align: left; }
  .final-texte .lead { margin: 0; }
  .final-texte .cta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .final-groupe { animation: none; } }
@media (max-width: 379px) { .final-texte { padding: 4px 12px 24px; } .final-texte .btn-lg { padding-left: 14px; padding-right: 14px; letter-spacing: .06em; } }
