/* Aethoria : design sombre et cinématique. Un seul accent : l'or. Le rouge n'est utilisé que pour l'urgence. */
:root {
  --bg0: #0b0b0f; --bg1: #101016; --bg2: #15151c; --card: #16161e; --card2: #1b1b24;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #ebe9e4; --muted: #a2a0aa; --dim: #74727d;
  --gold: #e3b04b; --gold-2: #f4d58f; --gold-d: #b8862a; --red: #c8323a;
  --glow: 0 0 22px rgba(227,176,75,.38);
  --radius: 14px;
  --head: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1 !important; transform: none !important; } }
body {
  margin: 0; color: var(--text); background: var(--bg0); min-height: 100vh;
  font: 400 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background-image: radial-gradient(1100px 520px at 50% -140px, rgba(227,176,75,.07), transparent 70%);
  background-repeat: no-repeat;
}
h1, h2, h3, .cinzel { font-family: "Cinzel", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .06em; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(227,176,75,.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: #0b0b0f; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; }

/* ---------- en-tête : transparent, puis opaque au défilement ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--head); display: flex; align-items: center; background: linear-gradient(180deg, rgba(11,11,15,.78), rgba(11,11,15,0)); transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease); }
.top.solid { background: rgba(11,11,15,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); height: 64px; }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.brand-name { display: block; font-size: 1.25rem; letter-spacing: .22em; color: #fff; line-height: 1.1; }
.brand-sub { display: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; order: 1; }
.nav a, .nav .dd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font: 500 .78rem/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.nav a:hover, .nav .dd-btn:hover, .nav .dd-btn[aria-expanded="true"] { color: var(--gold-2); background: rgba(255,255,255,.05); }
.nav [aria-current="page"] { color: var(--gold); }
.nav .shop { color: var(--gold); border: 1px solid rgba(227,176,75,.55); box-shadow: inset 0 0 12px rgba(227,176,75,.08); margin-left: 8px; }
.nav .shop:hover { background: rgba(227,176,75,.14); box-shadow: var(--glow); color: #fff; }
.dd { position: relative; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px; background: rgba(18,18,24,.98); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.65); z-index: 30; }
.dd-btn[aria-expanded="true"] + .dd-menu { display: block; }
.dd-menu a { display: flex; width: 100%; text-transform: none; letter-spacing: .02em; font-size: .92rem; }
.cart-btn { order: 2; margin-left: 10px; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font: 500 .85rem "Inter", sans-serif; cursor: pointer; flex: none; transition: .2s; }
.cart-btn:hover { border-color: var(--gold); box-shadow: var(--glow); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: #0b0b0f; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.burger { order: 3; display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .burger { display: inline-flex; margin-left: 8px; }
  .top .cart-btn { margin-left: auto; }
  .nav { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 12px; background: rgba(11,11,15,.97); border: 1px solid var(--line); border-radius: 14px; max-height: calc(100vh - 90px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .shop { margin: 6px 0 0; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; min-width: 0; }
  .dd-btn { pointer-events: none; color: var(--gold); }
  .dd-btn::after { display: none; }
}
.cart-btn > span:first-of-type { }
@media (max-width: 560px) { .cart-btn > span:nth-of-type(1) { display: none; } .cart-btn { padding: 6px 10px; } .brand-name { font-size: 1.05rem; letter-spacing: .16em; } }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 600 .82rem "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); color: #fff; border-color: var(--gold); box-shadow: var(--glow); }
.btn.primary { background: linear-gradient(180deg, #f0c466, #d49d34); color: #14110a; border-color: transparent; box-shadow: 0 6px 22px rgba(227,176,75,.28); }
.btn.primary:hover { color: #000; background: linear-gradient(180deg, #f7d27d, #e3ab41); box-shadow: 0 8px 32px rgba(227,176,75,.55); }
.btn.light { background: rgba(255,255,255,.05); backdrop-filter: blur(4px); }
.btn.ghost { background: rgba(255,255,255,.04); }
.btn.big { min-height: 56px; padding: 14px 36px; font-size: .9rem; }
.btn:disabled, .btn.is-soon { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; border-color: var(--line); color: var(--muted); background: rgba(255,255,255,.03); }
.btn.is-soon small { font-weight: 500; letter-spacing: .04em; text-transform: none; }
.card .btn.primary { flex: 1; }

/* ---------- héros plein écran ---------- */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 110px 20px 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -2; will-change: transform; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: #0b0b0f url(/assets/hero.webp) center 40% / cover no-repeat; animation: kb 36s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.2%, -1%); } }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,15,.7) 0%, rgba(11,11,15,.18) 30%, rgba(11,11,15,.4) 62%, rgba(11,11,15,.92) 90%, #0b0b0f 100%), radial-gradient(ellipse at 50% 55%, transparent 25%, rgba(11,11,15,.55) 85%); }
.hero-in { max-width: 900px; }
.home-hero img.logo { width: clamp(120px, 16vw, 190px); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 8px 28px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(227,176,75,.28)); }
.home-hero h1 { margin: 0; font-size: clamp(3.1rem, 11vw, 8.2rem); letter-spacing: .2em; padding-left: .2em; line-height: 1.02; color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,.65), 0 0 70px rgba(227,176,75,.22); }
.hero-sub { margin: 14px 0 0; font: 500 .9rem "Inter", sans-serif; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 0 28px rgba(0,0,0,.8); padding-left: .42em; }
.tagline { margin: 26px auto 0; max-width: 640px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #f1eee8; text-shadow: 0 2px 18px rgba(0,0,0,.8); font-weight: 300; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.expert { margin: 16px auto 0; font-size: .85rem; color: var(--muted); text-shadow: 0 1px 8px #000; }
.status { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 30px; padding: 8px 18px; border-radius: 999px; background: rgba(11,11,15,.6); backdrop-filter: blur(6px); border: 1px solid var(--line2); font-size: .85rem; letter-spacing: .04em; }
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: #7d7b86; margin-right: .55em; }
.st-ok .dot { background: #52e08a; box-shadow: 0 0 0 4px rgba(82,224,138,.18), 0 0 14px #52e08a; animation: pulse 2.4s ease-in-out infinite; }
.st-bad .dot { background: var(--red); box-shadow: 0 0 10px rgba(200,50,58,.6); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(82,224,138,0), 0 0 18px #52e08a; } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; width: 22px; height: 38px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections plein cadre (accueil) ---------- */
.rays { height: 1px; background: linear-gradient(90deg, transparent, rgba(227,176,75,.7), transparent); box-shadow: 0 0 18px rgba(227,176,75,.5); border: 0; margin: 0; }
.split { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; min-height: 560px; background: var(--bg0); overflow: hidden; }
.split + .split { border-top: 1px solid var(--line); }
.split-img { position: relative; background-size: cover; background-position: center; min-height: 320px; }
.split-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,15,0) 55%, var(--bg0) 100%), linear-gradient(0deg, rgba(11,11,15,.35), transparent 40%); }
.split.rev { grid-template-columns: 1fr 1.15fr; }
.split.rev .split-img { order: 2; }
.split.rev .split-img::after { background: linear-gradient(270deg, rgba(11,11,15,0) 55%, var(--bg0) 100%), linear-gradient(0deg, rgba(11,11,15,.35), transparent 40%); }
.split-txt { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 6vw, 90px); max-width: 640px; }
.kicker { font: 600 .75rem "Inter", sans-serif; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.split-txt h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.1; color: #fff; letter-spacing: .1em; text-transform: uppercase; }
.split-txt p { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.more { align-self: flex-start; font: 600 .8rem "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gold); padding-bottom: 4px; border-bottom: 1px solid rgba(227,176,75,.4); transition: .2s; }
.more:hover { color: #fff; border-color: var(--gold); letter-spacing: .2em; }
.more-row { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 56px 20px; }
.band { position: relative; text-align: center; padding: 120px 20px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/sec-mer.webp) center / cover no-repeat; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11,11,15,.55), rgba(11,11,15,.9)), linear-gradient(180deg, var(--bg0), transparent 30%, transparent 70%, var(--bg0)); }
.band h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.band p { margin: 0 auto; max-width: 520px; color: #d4d1ca; }
@media (max-width: 860px) {
  .split, .split.rev { grid-template-columns: 1fr; min-height: 0; }
  .split.rev .split-img { order: 0; }
  .split-img { min-height: 52vw; }
  .split-img::after, .split.rev .split-img::after { background: linear-gradient(0deg, var(--bg0), rgba(11,11,15,0) 60%); }
  .split-txt { padding: 8px 22px 56px; max-width: none; }
}

/* révélation douce au défilement */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- pages intérieures ---------- */
main.page { padding-top: calc(var(--head) + 44px); padding-bottom: 80px; }
.page-title { margin: 0 0 10px; font-size: clamp(2rem, 5.2vw, 3.2rem); letter-spacing: .12em; text-transform: uppercase; color: #fff; line-height: 1.1; }
.page-title::after { content: ""; display: block; width: 84px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--gold), transparent); box-shadow: 0 0 14px rgba(227,176,75,.6); }
.lead { max-width: 720px; margin: 18px 0 30px; font-size: 1.1rem; color: var(--muted); font-weight: 300; }
.sec-title { margin: 56px 0 8px; font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.sec-title::after { content: ""; display: block; width: 52px; height: 2px; margin-top: 12px; background: var(--gold); box-shadow: 0 0 10px rgba(227,176,75,.55); }
.sec-sub { margin: 0 0 20px; max-width: 700px; color: var(--muted); }
.crumb { font-size: .82rem; margin: 0 0 18px; color: var(--dim); letter-spacing: .04em; }
.crumb a { color: var(--muted); }
.banner { background: rgba(227,176,75,.08); color: var(--gold-2); text-align: center; padding: 12px 18px; font-weight: 500; border: 1px solid rgba(227,176,75,.35); border-radius: 12px; margin-bottom: 18px; }
.banner[hidden] { display: none; }
.hero { text-align: center; padding: 14px 0 6px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 0 50px rgba(227,176,75,.2); }
.hero p { margin: 0 auto; max-width: 640px; color: var(--muted); font-weight: 300; font-size: 1.08rem; }
.hint { margin: 6px 0 0; font-size: .86rem; color: var(--dim); }
.note { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(227,176,75,.06); border-radius: 0 12px 12px 0; color: var(--text); }
.note p { margin: 6px 0; }
.todo { background: rgba(227,176,75,.14); color: var(--gold-2); border: 1px dashed rgba(227,176,75,.5); border-radius: 4px; padding: 0 5px; font-weight: 500; }
.a-soon { color: var(--dim); cursor: not-allowed; }
.empty { text-align: center; padding: 30px 0; color: var(--muted); }

/* onglets */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 14px; margin-bottom: 4px; scrollbar-width: thin; justify-content: center; flex-wrap: wrap; }
.tab { flex: none; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--text); font: 500 .8rem "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--gold); color: #fff; }
.tab[aria-pressed="true"] { background: rgba(227,176,75,.14); border-color: var(--gold); color: var(--gold-2); box-shadow: var(--glow); }
#articles:focus { outline: none; }

/* cartes de la boutique */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(227,176,75,.5); box-shadow: 0 16px 44px rgba(0,0,0,.55), 0 0 26px rgba(227,176,75,.14); }
.card.pop { border-color: rgba(227,176,75,.6); box-shadow: 0 0 30px rgba(227,176,75,.16); }
.card-img { aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #23232d, #0f0f14); color: var(--gold); overflow: hidden; }
.card-img svg { width: 64px; height: 64px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: linear-gradient(180deg, #f4d58f, #dca740); color: #14110a; font: 700 .68rem "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: 0 0 20px rgba(227,176,75,.7); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.card .desc { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.price { font: 700 1.5rem "Inter", sans-serif; color: var(--gold); text-shadow: 0 0 18px rgba(227,176,75,.35); letter-spacing: .01em; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { min-height: 42px; padding: 8px 16px; font-size: .74rem; }

/* panneaux, tableaux, accordéons */
.panel { margin-top: 44px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.panel[hidden] { display: none; }
.panel h2 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.table-wrap { overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
table { border-collapse: collapse; width: 100%; min-width: 520px; color: var(--text); }
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: rgba(255,255,255,.04); color: var(--gold); font: 600 .74rem "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
thead th small { display: block; color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 400; font-size: .85rem; }
tbody th { text-align: left; font-weight: 500; color: #f4f2ee; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.yes { font-weight: 600; color: var(--gold-2); }
td.no { color: var(--dim); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 4px; font-weight: 500; color: var(--text); min-height: 48px; list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; width: 18px; flex: none; transition: transform .25s; }
details[open] > summary::before { content: "−"; }
summary:hover { color: #fff; }
details > p, details > ul, details > dl, details > div { margin: 0 4px 16px 30px; color: var(--muted); }
.acc details { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 0 16px; }
.acc summary { font-family: "Cinzel", Georgia, serif; font-size: 1.02rem; letter-spacing: .06em; }
.acc ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.acc li { margin: 5px 0; }
.acc details > p { margin-left: 30px; }

/* pied de page */
.foot { border-top: 1px solid var(--line); background: #08080b; padding: 44px 0 36px; font-size: .88rem; color: var(--muted); margin-top: 0; }
.foot p { margin: 0 0 10px; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-bottom: 26px; }
.foot h2 { margin: 0 0 10px; font: 600 .72rem "Inter", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot .a-soon { color: var(--dim); }

/* fenêtres */
.dlg { border: 1px solid var(--line2); border-radius: 18px; padding: 0; color: var(--text); background: linear-gradient(180deg, #1a1a23, #121218); max-width: min(680px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.dlg::backdrop { background: rgba(5,5,8,.82); backdrop-filter: blur(3px); }
.close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(11,11,15,.8); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; transition: .2s; }
.close:hover { border-color: var(--gold); color: var(--gold-2); }
.d-img { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #23232d, #0f0f14); color: var(--gold); }
.d-img svg { width: 80px; height: 80px; }
.d-img img { width: 100%; height: 100%; object-fit: contain; }
.d-in { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.d-in h2 { margin: 0; font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.d-in .long { margin: 0; white-space: pre-line; color: var(--muted); }
.d-in .price { font-size: 1.9rem; }
.d-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.d-row .btn { flex: 1; min-width: 180px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.04); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 600; color: var(--text); cursor: pointer; }
.qty button:hover { background: rgba(227,176,75,.15); color: var(--gold-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; border-radius: 18px 0 0 18px; max-width: min(430px, 100vw); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; padding: 18px 64px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.c-items { flex: 1; overflow: auto; padding: 8px 22px; }
.c-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.c-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.c-line .n { font-weight: 600; color: #fff; }
.c-line .p { font-weight: 700; text-align: right; color: var(--gold); }
.c-line .rm { background: none; border: 0; color: #ff8d92; text-decoration: underline; cursor: pointer; font: inherit; min-height: 32px; padding: 0 4px; justify-self: end; }
.c-form { padding: 14px 22px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }
.c-form .hint { color: var(--dim); }
.c-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0 0 12px; }
.c-total strong { color: var(--gold); }
.c-form label { font-weight: 600; display: block; margin-bottom: 6px; font-size: .9rem; }
.c-form input { width: 100%; min-height: 48px; padding: 8px 14px; font: inherit; font-size: 1rem; border: 1px solid var(--line2); border-radius: 12px; background: #0d0d12; color: var(--text); }
.c-form input:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow); }
.c-form input[aria-invalid="true"] { border-color: var(--red); }
.err { min-height: 1.2em; margin: 6px 0 8px; color: #ff8d92; font-weight: 500; font-size: .9rem; }
.c-form .btn.primary { width: 100%; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: rgba(20,20,27,.96); color: var(--gold-2); border: 1px solid rgba(227,176,75,.5); padding: 11px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .3s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--glow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.thanks { text-align: center; padding: 50px 22px; max-width: 640px; margin: 20px auto 0; }
.thanks h1 { color: #fff; font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; }
.thanks p { color: var(--muted); }
.thanks .btn { margin-top: 14px; }

/* ---------- rejoindre : launcher, étapes ---------- */
.dl { text-align: center; padding: 34px 20px; margin-bottom: 30px; background: radial-gradient(ellipse at 50% 0, rgba(227,176,75,.12), transparent 70%), rgba(255,255,255,.025); border: 1px solid rgba(227,176,75,.28); border-radius: 18px; box-shadow: 0 0 40px rgba(227,176,75,.07); }
.dl-btn { min-height: 64px; font-size: 1rem; padding: 16px 44px; }
.dl-info { margin: 14px 0 4px; color: var(--muted); }
.dl-info strong { color: var(--gold-2); }
.dl-alt { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 24px 22px 84px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font: 700 1.2rem "Cinzel", Georgia, serif; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); }
.steps h2 { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.steps p { margin: 0 0 8px; color: var(--muted); }
.steps a:not(.btn) { font-weight: 600; }
.addr { font-family: Consolas, "Courier New", monospace; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; color: var(--gold-2); }
.copy { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 500 .8rem "Inter", sans-serif; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 520px) { .steps li { padding: 70px 18px 18px; } .steps li::before { left: 18px; top: 16px; } }

/* ---------- grades, coffres, équipe ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.gcard { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 16px; transition: .3s var(--ease); }
.gcard:hover { transform: translateY(-4px); border-color: rgba(227,176,75,.5); box-shadow: 0 16px 44px rgba(0,0,0,.55), 0 0 26px rgba(227,176,75,.12); }
.gcard img { display: block; width: 100%; height: auto; }
.gcard h3 { margin: 12px 18px 0; font-size: 1.15rem; color: #fff; letter-spacing: .1em; text-transform: uppercase; }
.gcard .gp { margin: 2px 18px 0; font: 700 1.4rem "Inter", sans-serif; color: var(--gold); }
.gcard p { margin: 6px 18px 0; color: var(--muted); font-size: .92rem; }
.chest { margin: 44px 0 0; scroll-margin-top: 90px; }
.chest-head { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin-bottom: 16px; }
.chest-head img { width: 170px; height: 170px; border-radius: 16px; border: 1px solid var(--c, var(--line2)); box-shadow: 0 0 34px color-mix(in srgb, var(--c, #888) 30%, transparent); }
.chest-head h2 { margin: 0 0 6px; color: var(--c, var(--gold)); font-size: 1.7rem; letter-spacing: .1em; text-transform: uppercase; }
.chest-head p { margin: 4px 0; max-width: 680px; color: var(--muted); }
.chest-head strong { color: var(--text); }
.chest table { min-width: 0; }
.chest td, .chest th { text-align: left; padding: 9px 12px; }
.chest td.r-commun { color: var(--muted); }
.chest td.r-rare { color: #6fb0ff; font-weight: 600; }
.chest td.r-epique { color: #c08bff; font-weight: 600; }
.chest td.r-legendaire { color: var(--gold); font-weight: 600; }
@media (max-width: 600px) { .chest-head { grid-template-columns: 1fr; } .chest-head img { width: 120px; height: 120px; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member { text-align: center; padding: 26px 16px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }
.member .av { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2a2a35, #101015); color: var(--gold); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(227,176,75,.4); box-shadow: var(--glow); }
.member .av svg { width: 40px; height: 40px; }
.member h3 { margin: 0; font-size: 1.1rem; }
.member .role { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin: 4px 0 0; }
.member p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.embed { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg1); }
.big404 { text-align: center; padding: 80px 0; }
.big404 .n { font: 700 clamp(5rem, 22vw, 10rem) "Cinzel", Georgia, serif; color: var(--gold); text-shadow: 0 0 60px rgba(227,176,75,.4); line-height: 1; letter-spacing: .08em; }
.more-links { text-align: center; margin: 26px 0 0; font-weight: 500; }
.dl-alt a, .more-links a { font-weight: 500; }

/* ---------- texte long (guide, règlement, wiki) ---------- */
.prose h2 { color: #fff; font-size: 1.5rem; margin: 40px 0 10px; scroll-margin-top: 90px; letter-spacing: .08em; text-transform: uppercase; }
.prose h3 { color: var(--gold-2); margin: 22px 0 6px; font-size: 1.05rem; letter-spacing: .04em; }
.prose p, .prose li { max-width: 780px; color: #d3d1cb; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose figure { margin: 18px 0; max-width: 780px; }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line2); border-radius: 12px; }
.prose figcaption { font-size: .85rem; color: var(--dim); margin-top: 6px; }
code, .prose code { font-family: Consolas, "Courier New", monospace; background: rgba(255,255,255,.07); color: var(--gold-2); padding: 1px 7px; border-radius: 6px; font-size: .92em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); text-decoration: none; font-weight: 500; font-size: .88rem; min-height: 42px; color: var(--text); transition: .2s; }
.toc a:hover { border-color: var(--gold); color: var(--gold-2); box-shadow: var(--glow); }

/* ---------- wiki ---------- */
.wk-search { margin: 6px 0 20px; max-width: 640px; }
.wk-search label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.wk-search input { width: 100%; min-height: 54px; padding: 8px 20px; font: inherit; font-size: 1.05rem; border: 1px solid var(--line2); border-radius: 999px; background: #0d0d12; color: var(--text); }
.wk-search input:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow); }
.wk-cat { margin-top: 44px; scroll-margin-top: 90px; }
.wk-cat h2 { margin: 0 0 4px; color: #fff; font-size: 1.45rem; letter-spacing: .1em; text-transform: uppercase; }
.wk-cat h2 small { color: var(--gold); font-size: .75em; }
.wk-cat > p { margin: 0 0 14px; color: var(--muted); }
.wk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wk-cards a { display: block; height: 100%; padding: 14px 16px; text-decoration: none; color: var(--text); background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 12px; transition: .25s var(--ease); }
.wk-cards a:hover { border-color: rgba(227,176,75,.55); transform: translateY(-2px); box-shadow: 0 0 24px rgba(227,176,75,.12); }
.wk-cards strong { display: block; font-size: 1rem; color: #fff; font-weight: 600; }
.wk-cards small { display: block; font-weight: 600; color: var(--gold); font-size: .78rem; letter-spacing: .06em; }
.wk-cards span { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.wk-res { margin: 0 0 12px; }
.wk-toc { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; max-width: 780px; }
.wk-toc strong { color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.wk-toc ul { margin: 8px 0 0; padding-left: 20px; columns: 2; }
.wk-toc li { max-width: none; break-inside: avoid; }
@media (max-width: 600px) { .wk-toc ul { columns: 1; } }
.wk h2 { margin-top: 34px; }
.box { max-width: 780px; margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.04); }
.box strong { display: block; color: var(--gold-2); margin-bottom: 2px; }
.box p, .box ul { margin: 4px 0 0; }
.box-regle { border-left-color: var(--red); }
.box-regle strong { color: #ff9a9f; }
.box-astuce { border-left-color: #52e08a; }
.box-astuce strong { color: #8cf0b4; }
.box-aeth { background: rgba(227,176,75,.07); }
.wk-icon { float: right; margin: 0 0 8px 16px; width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: #0f0f14; border: 1px solid var(--line2); }
.wk-items { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.wk-items li { max-width: none; text-align: center; width: 96px; font-size: .82rem; color: var(--muted); }
.wk-items img { display: block; margin: 0 auto 4px; width: 64px; height: 64px; image-rendering: pixelated; background: #0f0f14; border: 1px solid var(--line2); border-radius: 10px; padding: 4px; }
.wk-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 14px; margin: 8px 0 14px; max-width: 780px; }
.wk-dl div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; min-width: 0; }
.wk-dl dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.wk-dl dd { margin: 0; overflow-wrap: anywhere; color: var(--text); }
.wk-rel { max-width: 780px; margin-top: 34px; }
.wk-rel h2 { font-size: 1.1rem; }
.wk-rel ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.wk-rel li { max-width: none; }
.wk-rel a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); text-decoration: none; font-weight: 500; font-size: .9rem; transition: .2s; }
.wk-rel a:hover { border-color: var(--gold); color: var(--gold-2); }
.wk-note { margin-top: 28px; }
.wk .table-wrap { max-width: 100%; }
.wk table { min-width: 0; }
.wk td, .wk th { text-align: left; vertical-align: top; }
.wk td code, .wk th code { background: rgba(227,176,75,.1); color: var(--gold-2); font-weight: 600; }
.wk .obj-row { margin: 12px 0; }
.wk .obj-row img { width: 256px; height: 256px; max-width: 100%; border-radius: 16px; border: 1px solid var(--line2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 8px 12px 10px; font-size: .88rem; color: var(--muted); }
.lightbox { max-width: min(1100px, 96vw); background: #0b0b0f; color: var(--text); }
.lightbox img { display: block; width: 100%; height: auto; }
.lightbox p { margin: 0; padding: 10px 16px; }
.cinzel { }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .drawer { border-radius: 0; } .panel { padding: 16px; } main.page { padding-top: calc(var(--head) + 28px); } }
