:root { --bg: #0b0d11; --surface: #15181f; --border: #232833; --ink: #e8ebf0; --muted: #9aa3ae; --gold: #f2c230; --accent: #5865f2; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.6; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 20; background: rgba(11,13,17,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { font-weight: 800; letter-spacing: 3px; color: var(--gold); font-size: 20px; }
.nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav .links a { color: var(--ink); font-size: 14px; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn.gold { background: var(--gold); color: #1a1a1a; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn.discord { background: var(--accent); color: #fff; }

.hero { padding: 90px 0 70px; text-align: center; background: radial-gradient(900px 400px at 50% -10%, rgba(242,194,48,0.12), transparent); }
.hero h1 { font-size: 52px; letter-spacing: 1px; }
.hero p { color: var(--muted); font-size: 18px; margin: 16px auto 28px; max-width: 620px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ip { margin-top: 22px; color: var(--muted); font-size: 14px; }
.ip code { background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; color: var(--gold); }

section { padding: 56px 0; }
h2 { font-size: 28px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-card .body { padding: 16px; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 6px; }
.news-card h3 { font-size: 16px; margin-bottom: 6px; }
.news-card p { color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.date { color: #6b727c; font-size: 12px; margin-top: 10px; }

footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: 13px; }
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); display: block; margin-top: 6px; }

.legal { max-width: 800px; padding: 48px 0; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: #6b727c; font-size: 13px; }

#cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
#cookie p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
#cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hidden { display: none !important; }
@media (max-width: 640px) { .hero h1 { font-size: 36px; } }

/* Guide du joueur */
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-top: 36px; padding-bottom: 56px; }
.toc { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--ink); font: inherit; font-size: 14px; margin-bottom: 14px; }
.toc nav a { display: block; color: var(--muted); font-size: 14px; padding: 5px 10px; border-left: 2px solid var(--border); }
.toc nav a:hover { color: var(--gold); border-left-color: var(--gold); text-decoration: none; }
.content { min-width: 0; }
.content h1 { font-size: 36px; margin-bottom: 8px; }
.content .lead, .muted { color: var(--muted); }
.content section { padding: 28px 0 8px; border-bottom: 1px solid var(--border); scroll-margin-top: 70px; }
.content h2 { font-size: 24px; margin-bottom: 14px; color: var(--gold); }
.content h3 { font-size: 17px; margin: 18px 0 8px; }
.content p, .content li { color: #c9cfd7; font-size: 15px; }
.content p { margin-bottom: 10px; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 12px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--ink); }
.content code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 13px; color: var(--gold); }
.content pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.content table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; display: block; overflow-x: auto; }
.content th, .content td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.content th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 820px) {
  .guide { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { position: static; max-height: none; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc nav a { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
  .content h1 { font-size: 28px; }
}

/* --- Polish / epure --- */
.eyebrow { display:inline-block; text-transform:uppercase; letter-spacing:3px; font-size:12px; font-weight:700; color:var(--gold); opacity:.92; margin-bottom:14px; }
.hero { padding: 104px 0 78px; }
.hero h1 { font-size: 60px; }
.hero .lead { color: var(--muted); font-size: 19px; margin: 18px auto 30px; max-width: 640px; }
.hero-note { color:#6b727c; font-size:13px; margin-top:22px; letter-spacing:.3px; }
.cta { gap: 14px; }
.muted { color: var(--muted); }
.copy { margin-top: 10px; }

h2 { letter-spacing:.3px; }
section { padding: 64px 0; }

.nav .links a { transition: color .15s ease; }
.nav .links a:hover { color: var(--gold); text-decoration: none; }

.btn { transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration:none; }
.btn.gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost:hover { border-color:#3a4254; background:#1b1f28; }

.card { position: relative; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card::before { content:""; position:absolute; left:0; top:0; height:3px; width:0; background:var(--gold); transition: width .25s ease; }
.card:hover { transform: translateY(-3px); border-color:#2f3647; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.card:hover::before { width:100%; }

footer strong { color: var(--ink); display:block; margin-bottom:4px; }
footer a:hover { color: var(--gold); }

@media (max-width:640px){ .hero { padding: 72px 0 56px; } .hero h1 { font-size: 40px; } .hero .lead { font-size:17px; } }
