:root {
  --bg: #070a17;
  --bg2: #0d1230;
  --panel: rgba(18, 24, 56, .72);
  --border: rgba(120, 140, 255, .18);
  --text: #e8ebff;
  --muted: #9aa3cf;
  --accent: #6f8cff;
  --accent2: #b39cff;
  --gold: #ffd479;
  --ok: #5ee6a0;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 75% -10%, #1b2466 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #241a52 0%, transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
a { color: var(--accent); }

/* ciel étoilé */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 35%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 15%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 60%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 20% 90%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 85%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 10%, #fff7 50%, transparent 51%);
  background-size: 600px 600px;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 600px 300px; } }

/* barre du haut */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 10, 23, .7); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 600; }
.brand b { color: var(--accent); }
.beta { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--gold); color: #2b1d00; padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.nav nav { display: flex; gap: clamp(10px, 2.5vw, 28px); flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* héros */
.hero { text-align: center; padding: clamp(56px, 10vw, 110px) 0 48px; }
.kicker { color: var(--accent2); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1; margin: 0; letter-spacing: -.02em;
     background: linear-gradient(180deg, #fff, #b8c4ff); -webkit-background-clip: text; background-clip: text; color: transparent;
     text-shadow: 0 0 60px rgba(111, 140, 255, .25); }
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; }
.lead { max-width: 620px; margin: 20px auto 32px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.lead strong { color: var(--text); }

.ip-card {
  display: inline-flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px 16px 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.ip-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.ip { font: 600 22px/1.3 ui-monospace, "Cascadia Code", Consolas, monospace; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600;
  color: #0a0f2e; background: linear-gradient(90deg, var(--accent), var(--accent2));
  padding: 11px 22px; border-radius: 12px; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(111, 140, 255, .35); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn:focus-visible, .chip:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.status { margin-top: 22px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.on .dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(94, 230, 160, .15); }
.status b { color: var(--text); }

/* atouts */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 72px; }
.features article { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.features .ico { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
                 background: rgba(111, 140, 255, .14); margin-bottom: 12px; }
.features h3 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* modes */
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.section-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin-right: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--border);
        padding: 6px 14px; border-radius: 99px; cursor: pointer; }
.chip.on { color: #0a0f2e; background: var(--accent); border-color: var(--accent); font-weight: 600; }
#search { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--border);
          border-radius: 10px; padding: 8px 12px; min-width: 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding-bottom: 72px; }
.mode { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border);
        border-radius: 14px; padding: 10px 12px; transition: border-color .15s, transform .15s; }
.mode:hover { border-color: rgba(120, 140, 255, .45); transform: translateY(-2px); }
.mode img, .mode .noimg { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; flex: none; background: #1a2150; }
.mode .name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.mode .cat { font-size: 12px; color: var(--muted); }

/* étapes */
.steps { padding-bottom: 80px; }
.steps ol { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); font-weight: 800; font-size: 22px; color: var(--accent); }
.steps span { color: var(--muted); font-size: 14.5px; }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(111, 140, 255, .14); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border); padding: 28px clamp(16px, 4vw, 48px); text-align: center; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-shop):not(:first-child) { display: none; }
  .ip-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sky { animation: none; } * { transition: none !important; } }

/* lien vers la boutique mis en avant */
.nav nav a.nav-shop { color: var(--gold); }
.nav nav a.nav-shop:hover { color: #ffe3a6; }
