/* NZR TEAM : style commun à toutes les pages.
   Univers du logo (nuit violette, néons) + composants du Hub NZR Meterion (onglets en pilule, cartes, boutons en dégradé). */
:root {
  --night: #0B0812; --night-2: #120C1D; --panel: #181026; --panel-2: #1E1430;
  --raised: #22252B; --hover: #2A2D34; --control: #1C1E23; --border: #262930;
  --line: rgba(179, 107, 255, 0.20); --line-strong: rgba(179, 107, 255, 0.45);
  --text: #F3EEFF; --subtle: #CBBDEA; --muted: #9A8CB8; --disabled: #6B5E86;
  --violet: #B36BFF; --violet-deep: #5A2EA6; --violet-glow: rgba(179, 107, 255, 0.55); --violet-tint: rgba(179, 107, 255, 0.14);
  --gold: #F2C24B; --good: #5FD08A; --good-bg: rgba(46, 160, 92, 0.22); --warn: #F2B43C; --danger: #FF8A7D;
  --display: "Teko", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Barre du haut */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.solid, .nav.always { background: rgba(11, 8, 18, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; justify-self: start; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong), 0 0 18px -4px var(--violet); }
.brand span { padding-top: 4px; }
.brand em { font-style: normal; color: var(--violet); }
.game-chip { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); background: var(--violet-tint); border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 8px; margin-left: 2px; }
.nav-side { justify-self: end; }

/* Onglets : HubStyle (pilule, actif = fond relevé + bord accent + halo) */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 11, 13, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tab { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 9px; border: 1px solid transparent; color: var(--subtle); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.tab .ico { width: 17px; height: 17px; }
.tab:hover { background: var(--hover); color: var(--text); }
.tab.on { background: var(--raised); color: var(--text); border-color: var(--violet); box-shadow: 0 0 18px -4px var(--violet); }
.tab.on .ico { color: var(--violet); }
@media (max-width: 860px) {
  .nav .wrap { grid-template-columns: auto 1fr; }
  .nav-side { display: none; }
  .tabs { justify-self: end; }
  .tab { padding: 8px 10px; }
  .tab .lbl { display: none; }
  .tab.on .lbl { display: inline; }
  .brand .long { display: none; }
}
@media (max-width: 420px) { .game-chip { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn.primary { color: #fff; background: linear-gradient(90deg, var(--violet), var(--violet-deep)); box-shadow: 0 10px 34px -10px var(--violet-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--violet-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.ghost { color: var(--text); background: rgba(24, 16, 38, 0.6); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(179, 107, 255, 0.16); transform: translateY(-2px); }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* Hero */
.hero { position: relative; isolation: isolate; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; z-index: -3; background: url("nzr-city.webp") center 40% / cover no-repeat; filter: blur(10px) saturate(1.2) brightness(0.3); transform: scale(1.05); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 50% 42%, rgba(179, 107, 255, 0.26), transparent 70%),
  linear-gradient(180deg, rgba(11, 8, 18, 0.35) 0%, rgba(11, 8, 18, 0.15) 45%, var(--night) 100%); }
#embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.kicker { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--subtle); margin: 0; padding-left: 0.32em; }
.kicker b { color: var(--violet); font-weight: 600; }
.lede { max-width: 56ch; margin: 10px auto 0; color: var(--muted); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* Sections et cartes */
.section { padding-block: 40px 24px; scroll-margin-top: 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.section-head h2 span { color: var(--violet); }
.section-head p { margin: 0; color: var(--muted); }
.card { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(160deg, rgba(40, 24, 66, 0.85), var(--panel) 55%); border: 1px solid var(--line); }
a.card, .card.hoverable { transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover, .card.hoverable:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 20px 50px -24px var(--violet-glow); }
.card.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--violet-glow); border-color: var(--violet); } 100% { box-shadow: 0 0 0 18px transparent; } }
.card-h { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.card-h .ico { color: var(--violet); width: 15px; height: 15px; }
.tile-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--violet); background: var(--violet-tint); border: 1px solid var(--line-strong); }
.tile-ico .ico { width: 26px; height: 26px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--good); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.soon { color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--control); color: var(--subtle); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.on { background: var(--raised); border-color: var(--violet); color: var(--text); box-shadow: 0 0 14px -5px var(--violet); }
.chip .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Page intérieure : bandeau de titre */
.page-head { padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
.page-head .crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.page-head .crumbs a:hover { color: var(--text); }
.page-head h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.page-head h1 span { color: var(--violet); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }

/* Pied de page et bouton Remonter */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 22px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
footer .brand { font-size: 20px; color: var(--subtle); }
footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
.to-top { position: fixed; z-index: 15; right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--text); background: var(--raised); border: 1px solid var(--violet); box-shadow: 0 0 18px -4px var(--violet), 0 10px 30px -12px #000; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--hover); }
.to-top .ico { color: var(--violet); stroke-width: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
