/* Altucraft — feuille de style unique.
   Direction : couleurs franches du jeu (ciel, herbe, or, améthyste), cadres épais façon interface
   Minecraft, objets en pixel art 16×16 affichés à l'échelle entière, infobulles d'objet du jeu. */

@font-face { font-family: "Jersey 10"; src: url("../fonts/jersey-10.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1b2130;
  --ink-2: #4a5468;
  --paper: #ffffff;
  --bg: #f3f6fb;
  --line: #dfe5ee;
  --sky: #64bdf4;
  --sky-l: #d4efff;
  --sky-d: #2f8fd8;
  --link: #155ea6;
  --grass: #4caf3d;
  --grass-d: #2e7d24;
  --grass-l: #a6e08a;
  --gold: #ffc23d;
  --gold-d: #c98a14;
  --red: #ef4e3a;
  --purple: #8e5cf0;
  --purple-l: #e9dcff;
  --cyan: #22c7cb;
  --cyan-l: #d5f8f8;
  --brown: #8c5b33;
  --deepslate: #22252c;
  --gui: #c6c6c6;
  --slot: #8b8b8b;
  --tooltip: #12051a;
  --pixel: "Jersey 10", "Rubik", system-ui, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --u: 4px; /* « pixel » de l'interface */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--pixel); line-height: 1; margin: 0; text-wrap: balance; font-weight: 400; letter-spacing: 0.01em; }
h2 { font-size: clamp(40px, 5vw, 60px); }
h3 { font-size: 32px; }
p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--line); padding: 0.08em 0.4em; border-radius: 3px; overflow-wrap: anywhere; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
.stack { display: grid; gap: 16px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-family: var(--pixel); font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons façon interface du jeu ---------- */
.btn {
  --c: var(--grass); --c-d: var(--grass-d); --t: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 26px; font-weight: 400; line-height: 1;
  color: var(--t); background: var(--c); text-decoration: none; cursor: pointer;
  padding: 14px 22px 16px; border: 3px solid var(--ink);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.22), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
}
.btn:hover { color: var(--t); transform: translateY(-2px); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.22), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 0 6px 0 var(--ink); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.22), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 0 1px 0 var(--ink); }
.btn img { width: 32px; height: 32px; }
.btn.gold { --c: var(--gold); --t: var(--ink); text-shadow: none; }
.btn.stone { --c: #e9edf2; --t: var(--ink); text-shadow: none; }
.btn.purple { --c: var(--purple); }
.btn.small { font-size: 21px; padding: 8px 14px 10px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 3px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--pixel); font-size: 34px; font-weight: 400; letter-spacing: 0.02em; }
.logo img { width: 32px; height: 32px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { font-family: var(--pixel); font-size: 24px; color: var(--ink); text-decoration: none; padding: 8px 12px; border: 3px solid transparent; }
.nav a:hover { border-color: var(--ink); background: var(--sky-l); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--gold); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; font-family: var(--pixel); font-size: 23px; background: var(--paper); border: 3px solid var(--ink); padding: 6px 12px; cursor: pointer; color: var(--ink); }

/* ---------- Héros : ciel, nuages, île ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #4fb2f1 0%, #8fd2fb 55%, #d4efff 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-block: 72px 112px; }
.hero h1 { font-size: clamp(76px, 12vw, 150px); color: #fff; text-shadow: 6px 6px 0 rgba(27, 33, 48, 0.35); letter-spacing: 0.01em; }
.hero .tagline { font-size: clamp(20px, 2.2vw, 25px); color: var(--ink); max-width: 30ch; font-weight: 500; }
.hero .eyebrow { color: #0e3f66; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.address { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255, 255, 255, 0.85); border: 3px solid var(--ink); padding: 8px 8px 8px 14px; width: fit-content; max-width: 100%; }
.address strong { font-family: var(--mono); font-size: 18px; overflow-wrap: anywhere; }
.address .label { font-family: var(--pixel); font-size: 20px; color: var(--ink-2); }
.copy-status { font-family: var(--pixel); font-size: 20px; color: var(--grass-d); min-height: 1em; }

.scene { position: relative; justify-self: center; width: min(100%, 576px); aspect-ratio: 576 / 600; }
.scene .island { position: absolute; inset: 6% 0 0 0; width: 100%; animation: bob 6s ease-in-out infinite; }
.scene .island img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 0 rgba(27, 33, 48, 0.12)); }
.scene .gear { position: absolute; width: 18%; animation: spin 7s linear infinite; }
.scene .gear img { width: 100%; display: block; }
.scene .gear.g1 { left: -4%; top: 52%; }
.scene .gear.g2 { left: 8%; top: 66%; width: 11%; animation-direction: reverse; animation-duration: 4.4s; }
.scene .float { position: absolute; width: 11%; }
.scene .float.f1 { right: 2%; top: 6%; }
.scene .float.f2 { left: 6%; top: 8%; }
.scene .spark { position: absolute; width: 8px; height: 8px; background: var(--purple-l); box-shadow: 0 0 10px var(--purple); animation: twinkle 2.6s ease-in-out infinite; }
.scene .spark.s1 { right: 22%; top: 30%; }
.scene .spark.s2 { right: 12%; top: 40%; animation-delay: 0.8s; }
.scene .spark.s3 { right: 18%; top: 50%; animation-delay: 1.6s; }

.sun { position: absolute; z-index: 1; top: 48px; right: 9%; width: 88px; height: 88px; background: #fff6b0; box-shadow: 0 0 0 10px rgba(255, 246, 176, 0.45), 0 0 80px 30px rgba(255, 240, 150, 0.6); }
.cloud { position: absolute; z-index: 1; height: 28px; background: #fff; opacity: 0.95; animation: drift linear infinite; }
.cloud::before { content: ""; position: absolute; left: 22%; top: -20px; width: 46%; height: 20px; background: #fff; }
.cloud.c1 { top: 70px; width: 220px; left: -240px; animation-duration: 95s; }
.cloud.c2 { top: 190px; width: 150px; left: -160px; animation-duration: 120s; animation-delay: -40s; }
.cloud.c3 { top: 340px; width: 260px; left: -280px; animation-duration: 140s; animation-delay: -90s; opacity: 0.8; }

/* bande d'herbe en bas des sections (texture générée) */
.grass-edge { height: 48px; background: url("../img/tex/grass-side.png") repeat-x; background-size: 48px 48px; image-rendering: pixelated; border-top: 0; }
.dirt { background: url("../img/tex/dirt.png") repeat; background-size: 48px 48px; image-rendering: pixelated; }
.stone-bg { background: url("../img/tex/stone.png") repeat; background-size: 48px 48px; image-rendering: pixelated; }

/* ---------- Bandeau de faits ---------- */
.facts { background: var(--ink); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { display: flex; align-items: center; gap: 14px; padding: 22px 12px; border-right: 2px dashed rgba(255, 255, 255, 0.15); }
.fact:last-child { border-right: 0; }
.fact img { width: 48px; height: 48px; flex: none; }
.fact strong { font-family: var(--pixel); font-size: 30px; font-weight: 400; display: block; line-height: 1.1; }
.fact span { color: #b9c3d6; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow img { width: 32px; height: 32px; }
.tint-sky { background: var(--sky-l); }
.tint-grass { background: #e6f6dc; }
.tint-purple { background: var(--purple-l); }
.tint-gold { background: #fff3d1; }
.tint-dark { background: var(--deepslate); color: #fff; }
.tint-dark .lead, .tint-dark .eyebrow { color: #b9c3d6; }

/* ---------- Inventaire interactif ---------- */
.inventory-layout { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.inventory {
  background: var(--gui); padding: 18px; border: 3px solid var(--ink);
  box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #555, 8px 8px 0 rgba(27, 33, 48, 0.18);
  display: grid; grid-template-columns: repeat(4, 88px); gap: 8px; width: fit-content;
}
.inventory .title { grid-column: 1 / -1; font-family: var(--pixel); font-size: 24px; color: #3f3f3f; margin: -4px 0 4px 2px; }
.slot {
  position: relative; width: 88px; height: 88px; background: var(--slot); border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff; display: grid; place-items: center;
}
.slot img { width: 64px; height: 64px; transition: transform 0.15s; }
.slot:hover, .slot:focus-visible, .slot[aria-pressed="true"] { background: #a8a8a8; outline: none; }
.slot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border: 4px solid var(--gold); pointer-events: none; }
.slot:hover img { transform: scale(1.12) rotate(-6deg); }
.tooltip {
  position: absolute; z-index: 5; left: 74px; top: -10px; min-width: 210px; text-align: left;
  background: var(--tooltip); color: #fff; padding: 10px 12px; font-family: var(--pixel); font-size: 22px; line-height: 1.15;
  border: 3px solid #2a0a5c; box-shadow: inset 0 0 0 2px #5a1fd6; pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tooltip .t-name { display: block; }
.tooltip .t-lore { display: block; color: #aaa; font-size: 20px; }
.tooltip .t-mod { display: block; color: #7b7bff; font-size: 19px; margin-top: 4px; }
.slot:hover .tooltip, .slot:focus-visible .tooltip { opacity: 1; transform: none; }
.r-common { color: #fff; } .r-uncommon { color: #ffff55; } .r-rare { color: #55ffff; } .r-epic { color: #ff55ff; }

.item-detail { background: var(--paper); border: 3px solid var(--ink); padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.12); min-width: 0; }
.item-detail .big { width: 120px; height: 120px; display: grid; place-items: center; background: var(--bg); border: 3px solid var(--ink); }
.item-detail .big img { width: 96px; height: 96px; }
.item-detail h3 { margin-bottom: 8px; }
.item-detail .tag { display: inline-block; font-family: var(--pixel); font-size: 19px; padding: 2px 8px; border: 2px solid var(--ink); background: var(--gold); margin-bottom: 10px; }
.item-detail ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.item-detail > div { min-width: 0; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--paper); border: 3px solid var(--ink); padding: 26px; display: grid; gap: 12px; align-content: start; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.12); min-width: 0; position: relative; }
.card .icon { width: 64px; height: 64px; }
.card h3 { font-size: 34px; }
.card .kicker { font-family: var(--pixel); font-size: 19px; text-transform: uppercase; letter-spacing: 0.06em; }
.card.c-grass { border-top: 12px solid var(--grass); }
.card.c-gold { border-top: 12px solid var(--gold); }
.card.c-purple { border-top: 12px solid var(--purple); }
.card.c-cyan { border-top: 12px solid var(--cyan); }
.card.c-red { border-top: 12px solid var(--red); }
.card.c-sky { border-top: 12px solid var(--sky); }
.card .more { font-family: var(--pixel); font-size: 22px; margin-top: 4px; }

/* étapes « rejoindre » */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step3 { counter-increment: s; background: var(--paper); border: 3px solid var(--ink); padding: 26px; display: grid; gap: 10px; position: relative; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.12); }
.step3::before { content: counter(s); position: absolute; top: -20px; left: 20px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--gold); border: 3px solid var(--ink); font-family: var(--pixel); font-size: 28px; font-weight: 400; }
.step3 img { width: 64px; height: 64px; }

/* village */
.village { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.village figure { margin: 0; }
.village img { width: 100%; height: auto; }
.legend { display: grid; gap: 12px; }
.legend li { display: flex; gap: 12px; align-items: baseline; }
.legend ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chip { font-family: var(--pixel); font-size: 20px; padding: 2px 10px; border: 2px solid var(--ink); white-space: nowrap; }
.chip.green { background: var(--grass-l); } .chip.gold { background: var(--gold); } .chip.purple { background: var(--purple-l); } .chip.sky { background: var(--sky-l); } .chip.red { background: #ffd6cf; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 0; }
.page-hero .wrap { padding-block: 64px 72px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero h1 { font-size: clamp(56px, 8vw, 96px); color: #fff; text-shadow: 5px 5px 0 rgba(27, 33, 48, 0.3); }
.page-hero .lead { color: rgba(27, 33, 48, 0.85); }
.page-hero .hero-item { width: 160px; height: 160px; }
.page-hero.sky { background: linear-gradient(180deg, #4fb2f1, #a6dcfb); }
.page-hero.grass { background: linear-gradient(180deg, #5cc24a, #a6e08a); }
.page-hero.purple { background: linear-gradient(180deg, #8e5cf0, #c9b0ff); }
.page-hero.gold { background: linear-gradient(180deg, #ffb52e, #ffe08a); }

.toc { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 71px; z-index: 10; }
.toc .wrap { display: flex; gap: 6px 10px; flex-wrap: wrap; padding-block: 10px; }
.toc a { font-family: var(--pixel); font-size: 21px; color: var(--ink); text-decoration: none; padding: 4px 10px; border: 2px solid var(--line); background: var(--bg); }
.toc a:hover { border-color: var(--ink); background: var(--gold); }

.guide { display: grid; gap: 28px; }
.gstep { display: grid; grid-template-columns: 96px 1fr; gap: 24px; background: var(--paper); border: 3px solid var(--ink); padding: 26px; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.1); scroll-margin-top: 140px; }
.gstep .num { display: grid; justify-items: center; gap: 8px; align-content: start; }
.gstep .num b { font-family: var(--pixel); font-size: 24px; background: var(--ink); color: #fff; padding: 2px 10px; }
.gstep .num img { width: 64px; height: 64px; }
.gstep > div { min-width: 0; display: grid; gap: 12px; }
.gstep ul, .gstep ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.optional { font-family: var(--pixel); font-size: 19px; color: #7a4f00; text-transform: uppercase; letter-spacing: 0.06em; }

.note { border: 3px solid var(--ink); background: #fff3d1; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.note img { width: 32px; height: 32px; flex: none; }
.note.info { background: var(--sky-l); }
.note.danger { background: #ffe0da; }

/* fenêtre d'application simplifiée (aperçu des étapes) */
.window { border: 3px solid var(--ink); background: #2b2f36; color: #e9edf2; font-size: 15px; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.15); max-width: 560px; }
.window .bar { background: #1c1f24; padding: 8px 12px; font-family: var(--pixel); font-size: 20px; display: flex; gap: 8px; align-items: center; }
.window .bar i { width: 10px; height: 10px; background: #e55; display: inline-block; }
.window .bar i + i { background: #eb5; } .window .bar i + i + i { background: #5c5; }
.window .body { padding: 14px 16px; display: grid; gap: 6px; }
.window label { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.window .box { width: 16px; height: 16px; border: 2px solid #9aa3b2; flex: none; display: grid; place-items: center; font-size: 12px; line-height: 1; }
.window .box.on { background: var(--grass); border-color: var(--grass); color: #fff; }
.window .actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; }
.window .actions span { border: 2px solid #9aa3b2; padding: 4px 12px; font-family: var(--pixel); font-size: 20px; }
.window .actions span.primary { background: var(--link); border-color: var(--link); color: #fff; }
.window .hint { color: #9aa3b2; font-size: 13px; }

/* téléchargement */
.download { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--paper); border: 3px solid var(--ink); padding: 28px; box-shadow: 10px 10px 0 var(--ink); }
.download .chest { width: 128px; height: 128px; animation: bob 3s ease-in-out infinite; }
.download > div { display: grid; gap: 12px; min-width: 0; }
.download .meta { font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.download .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* tableaux */
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.1); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
th { font-family: var(--pixel); font-size: 22px; font-weight: 400; background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td .ico { width: 32px; height: 32px; vertical-align: middle; margin-right: 8px; }

/* touches */
kbd {
  display: inline-block; min-width: 2.1em; text-align: center; font-family: var(--pixel); font-size: 23px; font-weight: 400; line-height: 1;
  padding: 8px 10px 10px; background: #fff; color: var(--ink); border: 3px solid var(--ink);
  box-shadow: inset 0 -5px 0 #c9d2df; transition: transform 0.08s, box-shadow 0.08s;
}
tr:hover kbd, kbd:hover { transform: translateY(3px); box-shadow: inset 0 -2px 0 #c9d2df; }
kbd.wide { min-width: 4em; }
.qwerty { display: block; font-size: 12px; color: var(--ink-2); font-family: var(--mono); margin-top: 6px; }

/* mods en détail (nouveautés) */
.mod { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-block: 56px; border-bottom: 3px dashed var(--line); scroll-margin-top: 140px; }
.mod:last-child { border-bottom: 0; }
.mod .showcase { position: relative; height: 200px; display: grid; place-items: center; }
.mod .showcase .pedestal { position: absolute; bottom: 8px; width: 150px; height: 26px; background: rgba(27, 33, 48, 0.12); border-radius: 50%; filter: blur(2px); animation: shadow 3.2s ease-in-out infinite; }
.mod .showcase .floater { animation: bob 3.2s ease-in-out infinite; }
.mod .showcase .floater img { width: 128px; height: 128px; animation: spinY 7s linear infinite; }
.mod .body { display: grid; gap: 14px; min-width: 0; }
.mod .body h2 { font-size: clamp(38px, 4.4vw, 52px); }
.mod .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mod .box { border: 3px solid var(--ink); padding: 14px 16px; background: var(--paper); display: grid; gap: 6px; }
.mod .box b { font-family: var(--pixel); font-size: 23px; font-weight: 400; }
.mod .box.trap { background: #ffe0da; }
.mod .box.start { background: #e6f6dc; }
.mod .mini { display: flex; gap: 8px; flex-wrap: wrap; }
.mod .mini img { width: 48px; height: 48px; background: var(--paper); border: 3px solid var(--ink); padding: 4px; }

.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.glossary div { background: var(--paper); border: 3px solid var(--ink); padding: 16px; }
.glossary dt { font-family: var(--pixel); font-size: 27px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }

/* profils */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profile { background: var(--paper); border: 3px solid var(--ink); padding: 26px; display: grid; gap: 12px; align-content: start; box-shadow: 8px 8px 0 rgba(27, 33, 48, 0.12); }
.profile .pimg { width: 96px; height: 96px; animation: bob 3.4s ease-in-out infinite; }
.profile h3 { font-size: 44px; }
.profile.eco { border-top: 14px solid #c9954f; }
.profile.ultra { border-top: 14px solid var(--cyan); }
.profile.woaw { border-top: 14px solid var(--purple); }
.profile dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.profile dt { font-weight: 700; }
.profile dd { margin: 0; color: var(--ink-2); }

/* pied de page */
.site-footer { color: #e6e9ef; }
.site-footer .top { height: 48px; }
.site-footer .inner { background: var(--deepslate); }
.site-footer .wrap { padding-block: 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; }
.site-footer h4 { font-family: var(--pixel); font-size: 24px; font-weight: 400; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { grid-column: 1 / -1; font-size: 13px; color: #9aa3b2; border-top: 2px dashed rgba(255, 255, 255, 0.12); padding-top: 18px; }

/* ---------- Animations ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes drift { to { transform: translateX(calc(100vw + 600px)); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.8); opacity: 0.6; } }
.float { animation: bob 3.4s ease-in-out infinite; }
.float img { width: 100%; display: block; animation: spinY 6s linear infinite; }
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pending { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 96px; }
  .scene { width: min(100%, 420px); }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .inventory-layout, .village { grid-template-columns: 1fr; }
  .steps3, .profiles { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .mod { grid-template-columns: 1fr; gap: 16px; }
  .mod .showcase { height: 170px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 12px 20px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .site-header .wrap { position: relative; }
  .inventory { grid-template-columns: repeat(4, 64px); gap: 6px; padding: 12px; }
  .slot { width: 64px; height: 64px; }
  .slot img { width: 48px; height: 48px; }
  .tooltip { display: none; }
  .item-detail { grid-template-columns: 1fr; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .hero-item { width: 112px; height: 112px; }
  .gstep { grid-template-columns: 1fr; }
  .gstep .num { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .download { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .download .chest { width: 96px; height: 96px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.15); }
  .toc { top: 71px; }
  .section { padding-block: 64px; }
}

/* ---------- Compléments ---------- */
.visually-hidden:focus { position: fixed; z-index: 50; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--gold); color: var(--ink); padding: 10px 14px; border: 3px solid var(--ink); font-family: var(--pixel); }
.card-link { color: var(--ink); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 12px 12px 0 rgba(27, 33, 48, 0.16); }
.card-link p { color: var(--ink-2); }
.kicker { font-family: var(--pixel); font-size: 19px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.muted-small { font-size: 14px; color: var(--ink-2); }
.center-cta { display: flex; justify-content: center; margin-top: 44px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dirt-deep { background-color: #2b1d13; background-image: url("../img/tex/dirt-dark.png"); background-size: 64px 64px; image-rendering: pixelated; }
.dirt-deep .wrap { background: transparent; }
.site-footer .inner { background-color: #2b1d13; }
.page-hero .wrap + .grass-edge, .hero .grass-edge { position: relative; z-index: 2; }
.page-hero .hero-item { animation: bob 3.6s ease-in-out infinite; }
.hero-item.float-static { animation: bob 3.6s ease-in-out infinite; }
.legend li span:last-child { color: var(--ink-2); }
@media (max-width: 980px) {
  .scene { width: 384px; max-width: 100%; }
}
@media (min-width: 981px) {
  .scene { width: 576px; max-width: 100%; }
}

.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: var(--gold); }
p kbd, li kbd, td p kbd, .box kbd, .card p kbd, span kbd { font-size: 19px; padding: 3px 7px 5px; border-width: 2px; box-shadow: inset 0 -3px 0 #c9d2df; vertical-align: 1px; }
.hero-actions .btn { font-size: 24px; }
.narrow .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hero .wrap, .inventory-layout, .village { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 980px) { .hero .wrap, .inventory-layout, .village { grid-template-columns: minmax(0, 1fr); } }

.scene img, .float img, .scene .gear img { height: auto; }
.foot-h { font-family: var(--pixel); font-size: 24px; font-weight: 400; margin: 0 0 10px; }
.tint-dark a, .site-footer a { color: #fff; }
.slot.empty { cursor: default; }
.slot.empty:hover { background: var(--slot); }
