@font-face { font-family: 'Silkscreen'; src: url('../fonts/silkscreen-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; unicode-range: U+0100-024F; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; unicode-range: U+0100-024F; font-display: swap; }

:root {
  --bg: #07090d;
  --panel: #0c1117;
  --panel-2: #10161e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8f0ed;
  --muted: #8d9ca2;
  --dim: #5b6a70;
  --accent: #3dffa2;
  --accent-2: #17a866;
  --accent-3: #0b5c3b;
  --glow: rgba(61, 255, 162, 0.22);
  --danger: #ff5c6c;
  --warn: #ffc857;
  --pink: #f4a3bd;
  --radius: 16px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --pixel: 'Silkscreen', monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #04120b; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(7, 9, 13, 0.72); border-bottom: 1px solid var(--line); }
.top__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--pixel); font-size: 17px; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current='page'] { color: var(--text); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.is-on { background: var(--accent); box-shadow: 0 0 0 4px rgba(61, 255, 162, 0.16); }
.dot.is-off { background: var(--danger); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-weight: 600; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: transparent; background: var(--accent); color: #04120b; box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { background: #6effbb; border-color: transparent; }
.btn--sm { height: 38px; padding: 0 15px; border-radius: 9px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; background: url('../assets/bg.svg') center bottom / cover no-repeat; opacity: 0.9; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.7) 48%, rgba(7, 9, 13, 0.25) 100%), linear-gradient(180deg, rgba(7, 9, 13, 0.9) 0%, transparent 45%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; min-height: 600px; padding: 72px 0 84px; }
.eyebrow { font-family: var(--pixel); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.hero h1 { margin-top: 18px; font-family: var(--display); font-size: clamp(46px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: 17.5px; color: #b9c7c9; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--dim); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(16, 22, 30, 0.92), rgba(10, 14, 19, 0.92)); }
.status { padding: 24px; backdrop-filter: blur(10px); }
.status__head { display: flex; align-items: center; gap: 14px; }
.status__head img { width: 46px; height: 50px; }
.status__name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.status__state { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.status__grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.stat__k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat__v { margin-top: 3px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.bar { margin-top: 10px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.6s ease; }
.motd { margin-top: 14px; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.addr { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 11px 15px; border-radius: 11px; background: #06090d; border: 1px dashed var(--line-strong); font-family: var(--pixel); font-size: 13px; }
.addr button { border: 0; background: none; color: var(--accent); font-family: var(--body); font-weight: 600; font-size: 13px; cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, #080b10, #0a0f15); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; }
.section__head h2 { margin-top: 12px; font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; line-height: 1.08; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--pixel); font-size: 13px; color: var(--accent); }
.step h3 { margin-top: 16px; font-family: var(--display); font-size: 20px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.features { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 30px 28px; background: var(--bg); }
.feature svg { width: 26px; height: 26px; color: var(--accent); }
.feature h3 { margin-top: 18px; font-size: 17px; font-family: var(--display); }
.feature p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase__stage { position: relative; aspect-ratio: 1 / 1; max-height: 520px; border-radius: 22px; overflow: hidden; background: radial-gradient(60% 55% at 50% 58%, rgba(61, 255, 162, 0.16), transparent 70%), linear-gradient(180deg, #0d141b, #080b10); border: 1px solid var(--line); }
.showcase__stage canvas { width: 100% !important; height: 100% !important; }
.price-tag { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.price-tag b { font-family: var(--display); font-size: 34px; }
.price-tag span { color: var(--muted); }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Pied de page ---------- */
.foot { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot a:hover { color: var(--text); }

/* ---------- Boutique ---------- */
.shop { padding: 44px 0 90px; }
.shop__title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.shop__title h1 { margin-top: 10px; font-family: var(--display); font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.03em; line-height: 1; }
.shop__title p { margin-top: 10px; color: var(--muted); max-width: 560px; }
.shop__grid { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; align-items: start; }
.stage { position: sticky; top: 92px; height: min(640px, calc(100vh - 120px)); border-radius: 22px; overflow: hidden; background: radial-gradient(55% 50% at 50% 60%, rgba(61, 255, 162, 0.13), transparent 70%), linear-gradient(180deg, #0d141b, #080b10); border: 1px solid var(--line); }
.stage canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage__bar { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.stage__bar > * { pointer-events: auto; }
.stage__who { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(7, 9, 13, 0.7); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.stage__who canvas { width: 26px !important; height: 26px !important; border-radius: 6px; image-rendering: pixelated; background: #1b232c; }
.toggles { display: flex; gap: 6px; }
.toggle { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(7, 9, 13, 0.7); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.toggle.is-on { color: var(--accent); border-color: rgba(61, 255, 162, 0.35); }
.stage__hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--dim); pointer-events: none; }

.panel { padding: 24px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-family: var(--display); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(61, 255, 162, 0.12); color: var(--accent); font-family: var(--pixel); font-size: 11px; }
.panel .sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.field { margin-top: 16px; display: flex; gap: 8px; }
.input { flex: 1; min-width: 0; height: 46px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line-strong); background: #06090d; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { border-color: rgba(61, 255, 162, 0.55); box-shadow: 0 0 0 4px rgba(61, 255, 162, 0.1); }
.msg { margin-top: 10px; font-size: 13.5px; min-height: 1.3em; color: var(--muted); }
.msg.is-ok { color: var(--accent); }
.msg.is-err { color: var(--danger); }

.items { margin-top: 16px; display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.item:hover { border-color: var(--line-strong); }
.item.is-on { border-color: rgba(61, 255, 162, 0.55); background: rgba(61, 255, 162, 0.05); }
.item img { width: 76px; height: 76px; border-radius: 10px; background: radial-gradient(circle at 50% 60%, rgba(61, 255, 162, 0.14), transparent 70%), #0a0f14; }
.item__name { font-family: var(--display); font-weight: 700; font-size: 16.5px; }
.item__desc { margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.item__price { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(61, 255, 162, 0.12); color: var(--accent); }

.checkout { margin-top: 18px; display: grid; gap: 10px; }
.checkout .btn { width: 100%; height: 52px; font-size: 16px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.secure svg { width: 14px; height: 14px; }
.legal { margin-top: 16px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }

/* Bandeau de retour de paiement */
.notice { margin-top: 26px; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel-2); }
.notice[hidden] { display: none; }
.notice.is-ok { border-color: rgba(61, 255, 162, 0.45); background: linear-gradient(90deg, rgba(61, 255, 162, 0.1), rgba(61, 255, 162, 0.02)); }
.notice.is-err { border-color: rgba(255, 92, 108, 0.45); }
.notice__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); }
.notice.is-ok .notice__icon { background: var(--accent); color: #04120b; }
.notice__icon svg { width: 18px; height: 18px; }
.notice b { font-family: var(--display); font-size: 17px; }
.notice p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.lost { min-height: calc(100vh - 69px); display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost h1 { font-family: var(--pixel); font-size: 64px; color: var(--accent); }
.lost p { margin: 10px 0 26px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__in, .showcase, .shop__grid { grid-template-columns: 1fr; }
  .hero__in { min-height: 0; padding: 56px 0 64px; }
  .steps, .features { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: 440px; }
  .nav { display: none; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.82) 60%, var(--bg)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top__right .pill { display: none; }
  .hero__cta .btn { width: 100%; }
  .item { grid-template-columns: 60px 1fr; }
  .item img { width: 60px; height: 60px; }
  .item__price { grid-column: 2; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.bar--full > i { width: 100%; opacity: 0.25; }

/* ---------- Compte ---------- */
.acct { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px 0 6px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; }
.acct:hover { background: rgba(255, 255, 255, 0.05); }
.acct canvas { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; background: #1b232c; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 9, 0.78); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__card { width: min(460px, 100%); padding: 28px; border-radius: 18px; border: 1px solid var(--line-strong); background: #0d1218; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.modal__card h2 { margin-top: 10px; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.modal__text { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.modal__code { margin-top: 16px; padding: 16px; border-radius: 12px; text-align: center; font-family: var(--pixel); font-size: 30px; letter-spacing: 0.14em; color: var(--accent); background: rgba(61, 255, 162, 0.07); border: 1px dashed rgba(61, 255, 162, 0.35); }
.modal__code:empty { display: none; }
.modal__wait { margin-top: 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.modal__wait[hidden], .modal__help[hidden] { display: none; }
.modal__help { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 200, 87, 0.07); border: 1px solid rgba(255, 200, 87, 0.25); color: #d9cfae; font-size: 13.5px; line-height: 1.5; }
.modal__help a { color: var(--accent); text-decoration: underline; }
.modal__actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.login-btn { width: 100%; height: 52px; margin-top: 16px; font-size: 15.5px; }
.login-btn img { width: 22px; height: 24px; }
.login-alt { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.linkish { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.who { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(61, 255, 162, 0.35); background: rgba(61, 255, 162, 0.05); }
.who canvas { width: 44px; height: 44px; border-radius: 9px; image-rendering: pixelated; background: #1b232c; }
.who__name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.who__sub { font-size: 13px; color: var(--muted); }
.who .linkish { margin-left: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { [data-account] .acct span { display: none; } }
