@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/chakra_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/chakra_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
:root {
  --ink: #0b0d11; --bg: #101318; --panel: #171c24; --raised: #1e242e; --line: #2b3340; --line-hi: #3d4756;
  --text: #f2f4f7; --muted: #a3aebd; --dim: #6f7a89;
  --orange: #f08a32; --orange-hi: #ffac5c; --brass: #d9b45a; --brass-hi: #f2d58a; --brass-lo: #8c6f2c; --copper: #cb7c4b; --ok: #5fd38a;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif; --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; color: var(--muted); }
.eyebrow { font: 600 14px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--orange); }

/* barre du haut */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 13, 17, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(217, 180, 90, .28); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brass-hi); font: 700 20px var(--display); letter-spacing: .08em; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font: 600 15px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; border: 1px solid var(--line-hi);
  background: linear-gradient(#27303c, #1e242e); color: var(--text); font: 600 16px var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .12s, border-color .12s, filter .12s; }
.btn:hover { border-color: var(--brass); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(var(--orange-hi), var(--orange)); border-color: #c8661a; color: #1e1203; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[hidden] { display: none; }

/* accueil */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; text-align: center;
  background: radial-gradient(900px 480px at 50% 0, rgba(240, 138, 50, .16), transparent 70%), linear-gradient(#12161d, var(--ink)); border-bottom: 1px solid var(--line); }
.hero .logo { width: min(720px, 90%); margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.hero h1 { font-size: clamp(30px, 5vw, 54px); max-width: 880px; margin: 0 auto 16px; }
.hero h1 span { color: var(--brass-hi); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin: 0 auto 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tag { border: 1px solid rgba(217, 180, 90, .45); color: var(--brass-hi); background: rgba(217, 180, 90, .08); border-radius: 999px; padding: 5px 14px; font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(240, 138, 50, .5); background: rgba(240, 138, 50, .1); color: var(--orange-hi); font: 600 14px var(--display); letter-spacing: .06em; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(240, 138, 50, .22); }
.address { display: inline-flex; align-items: stretch; border: 1px solid var(--brass-lo); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.address code { display: flex; align-items: center; padding: 0 22px; font: 700 clamp(18px, 3vw, 24px) var(--display); letter-spacing: .04em; color: var(--text); }
.address button { border: 0; border-left: 1px solid var(--brass-lo); border-radius: 0; min-height: 58px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.gear { position: absolute; fill: currentColor; pointer-events: none; animation: spin 60s linear infinite; }
.gear.a { width: 380px; left: -140px; top: 40px; color: rgba(140, 111, 44, .28); }
.gear.b { width: 280px; right: -90px; bottom: -70px; color: rgba(203, 124, 75, .24); animation-duration: 44s; animation-direction: reverse; }
.gear.c { width: 150px; right: 150px; top: 60px; color: rgba(217, 180, 90, .16); animation-duration: 30s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gear { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) { .gear.c { display: none; } }

section { padding: 84px 0; }
section.alt { background: var(--bg); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 40px; }
.head p { margin-top: 14px; font-size: 18px; }

/* cartes */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; background: linear-gradient(#1a1f28, #141820); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brass-lo); transform: translateY(-2px); }
.card svg { width: 38px; height: 38px; color: var(--brass); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; }

/* mondes */
.worlds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.world { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; background: var(--panel); padding: 18px 20px; }
.world b { display: block; font: 700 19px var(--display); letter-spacing: .06em; }
.world span { color: var(--muted); font-size: 15px; }
.world.build { border-left-color: var(--brass); } .world.mine { border-left-color: var(--copper); }

/* étapes */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.step { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--orange); color: var(--text); font: 700 21px var(--display); margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; } .step p { font-size: 16px; } .step .btn { margin-top: 16px; }
.note { margin-top: 22px; font-size: 15px; color: var(--dim); }

/* aperçu */
.shot { border: 1px solid var(--brass-lo); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr 1.25fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 30px; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(var(--brass-hi), var(--brass-lo)); transform: rotate(45deg) scale(.7); }

/* appel final */
.cta { text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(240, 138, 50, .14), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta p { max-width: 620px; margin: 14px auto 26px; font-size: 18px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

footer { border-top: 1px solid rgba(217, 180, 90, .28); padding: 34px 0 44px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }
.legal { padding: 64px 0; max-width: 820px; }
.legal h1 { font-size: 36px; margin-bottom: 26px; } .legal h2 { font-size: 22px; margin: 30px 0 10px; } .legal p { margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--raised); border: 1px solid var(--ok); color: var(--text); padding: 12px 20px; border-radius: 10px; font: 600 15px var(--display); letter-spacing: .04em; transition: .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; }

/* Rejoindre : deux cartes (Modrinth, launcher officiel recommandé) ; une colonne sur mobile */
.head.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.head.center .eyebrow { justify-content: center; }
.help { margin-top: 26px; font-size: 15px; color: var(--muted, #a9b0bc); }
.help a { color: var(--orange-hi); font-weight: 600; text-decoration: none; }
.ways { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 880px; margin: 34px auto 0; }
.way { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 28px 28px;
  background: linear-gradient(#1b2029, #141820); border: 2px solid var(--line); border-radius: 6px; box-shadow: 0 6px 0 #0a0c10; }
.way.best { background: linear-gradient(#2a2520, #1a1713); border-color: var(--brass); box-shadow: 0 6px 0 #0a0c10, 0 0 40px rgba(217,180,90,.12); }
.way-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 4px;
  background: linear-gradient(var(--brass-hi), var(--brass)); color: #1e1203; font: 700 12px var(--display); letter-spacing: .08em; border: 1px solid var(--brass-lo); }
.way-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 4px; border: 2px solid var(--line-hi); background: #20262f; margin-bottom: 18px; }
.way-icon svg { width: 34px; height: 34px; }
.way-icon.modrinth { color: #1bd96a; }
.way-icon.launcher { color: #1e1203; background: linear-gradient(var(--brass-hi), var(--brass)); border-color: var(--brass-lo); }
.way h3 { font: 700 26px var(--display); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.way-sub { margin-top: 6px; font: 600 12px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-hi); border-radius: 4px; background: #11151b; font: 600 12px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.chips .chk { width: 16px; height: 16px; color: #0e1a12; background: #5fd38a; border-radius: 50%; padding: 2px; }
.ticks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; text-align: left; align-self: stretch; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--orange); font-weight: 700; }
.ticks code { background: #11151b; border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--orange-hi); font-size: 14px; }
.way-btn { margin-top: auto; align-self: stretch; min-height: 54px; border-radius: 4px; font: 700 15px var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(#3a4250, #2a3039); border: 1px solid var(--line-hi); box-shadow: 0 4px 0 #0a0c10; color: var(--text); }
.way-btn.gold { background: linear-gradient(var(--brass-hi), var(--brass)); border-color: var(--brass-lo); color: #1e1203; }
.way-btn.off { opacity: .55; cursor: default; transform: none; }
.way-btn .ico { width: 18px; height: 18px; }
.way-btn[hidden], .way-btn.off[hidden] { display: none; }
.note.center { text-align: center; margin-top: 30px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brass-hi); font: inherit; cursor: pointer; text-decoration: underline dotted; }

/* Règlement */
.rules .eyebrow { margin-bottom: 10px; }
.rules-intro { font-size: 17px; color: var(--muted); }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.rules-toc a { padding: 8px 12px; border: 1px solid var(--line-hi); border-radius: 6px; text-decoration: none; font: 600 14px var(--display); color: var(--text); background: var(--panel); }
.rules-toc a:hover { border-color: var(--brass); }
.rules h2 { scroll-margin-top: 90px; color: var(--brass-hi); }
.rules ol { margin: 6px 0 10px; padding-left: 22px; display: grid; gap: 10px; }
.rules li { line-height: 1.55; }
.rules li::marker { color: var(--orange); font-weight: 700; }
.rules-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.rules-table th, .rules-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.rules-table th { background: var(--raised); font: 600 14px var(--display); }
.table-wrap { overflow-x: auto; }
.rules-date { margin-top: 26px; font-size: 14px; color: var(--dim); }

/* Marché */
.market-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.mk { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.mk h3 { font-size: 19px; margin: 0 0 4px; }
.mk .mk-id { font-size: 12px; color: var(--dim); }
.mk .mk-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; font: 700 30px var(--display); color: var(--brass-hi); }
.mk .mk-chg { font: 600 15px var(--display); }
.mk .mk-chg.up { color: var(--ok); } .mk .mk-chg.down { color: #e5665a; } .mk .mk-chg.flat { color: var(--dim); }
.mk svg { display: block; width: 100%; height: 70px; margin-top: 8px; }
.mk svg polyline { fill: none; stroke: var(--orange); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.mk svg polygon { fill: rgba(240,138,50,.12); }
.mk .mk-note { font-size: 13px; color: var(--dim); margin-top: 6px; }
.community { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px; font-size: 15px; color: var(--muted); }
.community b { color: var(--brass-hi); font: 700 18px var(--display); margin-right: 4px; }

/* Pied de page : liens légaux et mention Mojang ; pages légales */
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mojang { width: 100%; margin-top: 14px; font: 600 12px var(--display); letter-spacing: .08em; color: var(--dim); text-align: center; }
.legal .plain { padding-left: 20px; display: grid; gap: 10px; margin: 8px 0 12px; }
.legal .todo { padding: 12px 16px; border: 1px dashed var(--brass-lo); border-radius: 8px; color: var(--muted); }
