/* VOIDRUSH — le Néant, l'or des flammes et les glitchs. */
:root {
  --bg: #06030d;
  --bg-2: #0d0720;
  --panel: rgba(18, 10, 38, 0.62);
  --panel-solid: #120a26;
  --line: rgba(167, 139, 250, 0.18);
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --gold: #f5b942;
  --ember: #f97316;
  --cyan: #22d3ee;
  --magenta: #ff2bd6;
  --text: #efe9ff;
  --muted: #9a90b8;
  --radius: 18px;
  --wrap: min(1180px, calc(100vw - 48px));
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ Fond : le Néant (WebGL) + grain + balayage */
.void-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -3; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.scanlines {
  position: fixed; inset: 0; z-index: 49; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ Démarrage */
.boot {
  position: fixed; inset: 0; z-index: 100; background: #030108; display: grid; place-content: center; gap: 28px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; color: var(--violet-2);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot__lines p { margin: 6px 0; opacity: 0; animation: bootline 0.25s forwards; }
.boot__lines p:nth-child(2) { animation-delay: 0.35s; }
.boot__lines p:nth-child(3) { animation-delay: 0.75s; }
.boot__ok { color: var(--gold); }
.boot__dots::after { content: ''; animation: dots 0.6s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes bootline { from { opacity: 0; transform: translateX(-8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.boot__bar { width: min(360px, 70vw); height: 2px; background: rgba(139, 92, 246, 0.2); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); transform-origin: left; animation: bar 1.15s cubic-bezier(.7, 0, .2, 1) forwards; box-shadow: 0 0 16px var(--gold); }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------------ Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 72px; padding: 0 max(24px, calc((100vw - 1260px) / 2));
  display: flex; align-items: center; gap: 28px; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(6, 3, 13, 0.72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.16em; font-size: 18px; }
.nav__brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.55)); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav__links a { position: relative; color: #d7d0ee; transition: color 0.2s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right 0.25s; }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after, .nav__links a.active::after { right: 0; }
.nav__hot { color: var(--gold) !important; }
.nav__hot::before { content: ''; position: absolute; top: -2px; right: -9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); padding: 3px; cursor: pointer; font: 600 12px var(--display); letter-spacing: 0.1em; color: var(--muted); }
.lang span { padding: 5px 10px; border-radius: 999px; transition: all 0.2s; }
.lang span.on { background: var(--violet); color: #fff; box-shadow: 0 0 14px rgba(139, 92, 246, 0.6); }
.nav__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.nav__burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ------------------------------------------------------------------ Boutons */
.btn {
  --c: var(--violet); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px;
  font: 700 15px var(--display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border: 0; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s; isolation: isolate; color: #fff;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: filter 0.25s; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 130%; }
.btn--gold { color: #1d0f02; }
.btn--gold::before { background: linear-gradient(135deg, #ffe29a, var(--gold) 45%, var(--ember)); }
.btn--gold:hover { box-shadow: 0 10px 40px -8px rgba(249, 115, 22, 0.75), 0 0 0 1px rgba(255, 226, 154, 0.5) inset; }
.btn--void::before { background: linear-gradient(135deg, #6d3ff0, var(--violet) 50%, #4c1d95); }
.btn--void:hover { box-shadow: 0 10px 40px -8px rgba(139, 92, 246, 0.85); }
.btn--sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--rift { margin-top: 22px; background: transparent; border: 1px solid rgba(255, 43, 214, 0.5); color: #ffd7f6; font-family: var(--mono); font-weight: 700; }
.btn--rift:hover { box-shadow: 0 0 30px rgba(255, 43, 214, 0.45), 0 0 0 1px var(--magenta) inset; }
.btn--rift[disabled] { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ Accueil */
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; padding: 110px 24px 90px; text-align: center; }
.hero__inner { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.kicker { font: 600 13px var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--violet-2); margin: 0 0 14px; }
.kicker--hot { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 43, 214, 0.6); }
.hero__logo { position: relative; margin: 6px 0 0; width: min(720px, 88vw); aspect-ratio: 1400 / 949; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.35)); animation: float 7s ease-in-out infinite; }
.hero__img--r, .hero__img--c { opacity: 0; mix-blend-mode: screen; pointer-events: none; filter: none; }
.hero__img--r { filter: hue-rotate(-40deg) saturate(3); }
.hero__img--c { filter: hue-rotate(160deg) saturate(3); }
.hero__logo.glitching .hero__img--r { opacity: 0.85; transform: translate(-7px, 1px); clip-path: inset(var(--g1, 20%) 0 var(--g2, 50%) 0); }
.hero__logo.glitching .hero__img--c { opacity: 0.85; transform: translate(7px, -1px); clip-path: inset(var(--g3, 55%) 0 var(--g4, 15%) 0); }
.hero__logo.glitching .hero__img:first-child { transform: translateX(var(--gx, 0)); }
@keyframes float { 50% { translate: 0 -10px; } }
.hero__tagline { margin: 8px 0 0; font: 700 clamp(16px, 2.2vw, 22px) var(--display); letter-spacing: 0.5em; color: var(--gold); text-shadow: 0 0 18px rgba(245, 185, 66, 0.55); white-space: nowrap; }
.hero__pitch { max-width: 640px; margin: 22px 0 0; color: #d9d2f0; font-size: clamp(16px, 1.6vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.hero__meta { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero__meta strong { color: var(--text); font-family: var(--mono); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 11px var(--display); letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--violet-2), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ Bandeau défilant */
.ticker { overflow: hidden; border-block: 1px solid rgba(255, 43, 214, 0.25); background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(255, 43, 214, 0.1), rgba(249, 115, 22, 0.12)); backdrop-filter: blur(6px); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { padding: 14px 0; font: 600 14px var(--mono); letter-spacing: 0.28em; white-space: nowrap; color: #f3e8ff; }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ------------------------------------------------------------------ Sections */
.section { width: var(--wrap); margin: 0 auto; padding: 130px 0 40px; position: relative; }
.section__head { max-width: 760px; margin-bottom: 54px; }
.title { margin: 0; font: 700 clamp(34px, 5vw, 60px)/1.04 var(--display); letter-spacing: 0.01em; text-transform: uppercase; background: linear-gradient(180deg, #fff, #c4b5fd 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0 0 18px; font: 700 22px var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.lead { margin: 18px 0 0; font-size: 19px; color: #cfc6ea; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Mots glitchés (titres) : deux calques RVB décalés par à-coups. */
.glitch-word { position: relative; display: inline-block; }
.glitch-word::before, .glitch-word::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; -webkit-text-fill-color: currentColor; }
.glitch-word::before { color: var(--cyan); }
.glitch-word::after { color: var(--magenta); }
.glitch-word:hover::before, .glitch-word.jolt::before { opacity: 0.8; animation: gl-a 0.35s steps(2) infinite; }
.glitch-word:hover::after, .glitch-word.jolt::after { opacity: 0.8; animation: gl-b 0.35s steps(2) infinite; }
@keyframes gl-a { 0% { transform: translate(-3px, 0); clip-path: inset(10% 0 60% 0); } 50% { transform: translate(3px, -1px); clip-path: inset(55% 0 20% 0); } 100% { transform: translate(-2px, 1px); clip-path: inset(30% 0 45% 0); } }
@keyframes gl-b { 0% { transform: translate(3px, 0); clip-path: inset(65% 0 10% 0); } 50% { transform: translate(-3px, 1px); clip-path: inset(20% 0 55% 0); } 100% { transform: translate(2px, -1px); clip-path: inset(40% 0 30% 0); } }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); overflow: hidden; transition: transform 0.35s, border-color 0.35s; }
.pillar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%); opacity: 0; transition: opacity 0.35s; }
.pillar:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pillar:hover::before { opacity: 1; }
.pillar__num { font: 700 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent); margin-bottom: 18px; }
.pillar h3 { position: relative; margin: 0 0 10px; font: 700 28px var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.pillar p { position: relative; margin: 0; color: #cfc6ea; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 44px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 5, 22, 0.55); backdrop-filter: blur(8px); }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(36px, 4.4vw, 54px)/1 var(--display); background: linear-gradient(180deg, #ffe29a, var(--gold) 50%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.feature { padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 8, 30, 0.5); }
.feature i { font-style: normal; font-size: 22px; color: var(--violet-2); }
.feature h4 { margin: 10px 0 6px; font: 700 17px var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ Héros */
.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hcard { --c: 139, 92, 246; position: relative; border-radius: var(--radius); padding: 22px 20px 22px; background: linear-gradient(160deg, rgba(var(--c), 0.14), rgba(12, 6, 26, 0.85) 55%); border: 1px solid rgba(var(--c), 0.28); overflow: hidden; transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.3s, box-shadow 0.3s; transform-style: preserve-3d; }
.hcard:hover { border-color: rgba(var(--c), 0.8); box-shadow: 0 20px 60px -20px rgba(var(--c), 0.55); }
.hcard__sigil { display: block; width: 92px; height: 92px; margin: 2px 0 16px; filter: drop-shadow(0 0 14px rgba(var(--c), 0.7)); transition: transform 0.6s; }
.hcard:hover .hcard__sigil { transform: rotate(60deg) scale(1.06); }
.hcard__idx { position: absolute; top: 16px; right: 18px; font: 600 12px var(--mono); color: rgba(var(--c), 0.9); letter-spacing: 0.1em; }
.hcard h3 { margin: 0 0 6px; font: 700 20px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.hcard p { margin: 0; font-size: 14.5px; color: #c9c0e4; line-height: 1.5; }
.hcard::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(var(--c), 0.08) 0 1px, transparent 1px 4px); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.hcard:hover::after { opacity: 1; }

/* ------------------------------------------------------------------ VOID RUSH (fragments glitchés) */
.section--rift { padding-top: 150px; }
.section--rift::before { content: ''; position: absolute; z-index: -2; left: 50%; top: 60px; width: 140vw; height: 900px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 38% 42% at 60% 45%, rgba(255, 43, 214, 0.16), transparent 70%), radial-gradient(ellipse 30% 50% at 30% 55%, rgba(139, 92, 246, 0.22), transparent 70%); filter: blur(10px); }
.section--rift::after { content: ''; position: absolute; z-index: -1; right: 6%; top: 120px; width: 3px; height: 520px; pointer-events: none;
  background: linear-gradient(transparent, #fff 20%, var(--magenta) 50%, var(--cyan) 80%, transparent); box-shadow: 0 0 18px 4px rgba(255, 43, 214, 0.7), 0 0 60px 16px rgba(139, 92, 246, 0.35);
  clip-path: polygon(40% 0, 100% 12%, 20% 30%, 90% 47%, 0 63%, 100% 78%, 30% 100%, 0 100%, 60% 78%, 0 63%, 70% 47%, 0 30%, 60% 12%, 0 0); animation: crack 3.2s steps(1) infinite; }
@keyframes crack { 0%, 100% { opacity: 1; transform: scaleX(1); } 47% { opacity: 1; } 48% { opacity: 0.2; transform: scaleX(3) translateX(4px); } 50% { opacity: 1; transform: scaleX(1); } 82% { opacity: 0.5; transform: translateX(-3px); } 83% { opacity: 1; transform: none; } }
.rift-shards { position: absolute; inset: 40px -8vw 0; pointer-events: none; z-index: -1; }
.shard { position: absolute; background: linear-gradient(135deg, rgba(167, 139, 250, 0.75), rgba(10, 2, 24, 0.85) 45%, rgba(255, 43, 214, 0.55) 75%, rgba(34, 211, 238, 0.6)); box-shadow: 0 0 40px rgba(139, 92, 246, 0.35) inset; backdrop-filter: blur(3px) hue-rotate(60deg); opacity: 0.8; animation: shard 6s ease-in-out infinite; mix-blend-mode: screen; }
.shard::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 5px); }
@keyframes shard { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(var(--dx, 6px), var(--dy, -10px)) rotate(var(--r, 0deg)); } }
.shard.jump { animation-duration: 0.12s; filter: hue-rotate(90deg) saturate(2); }
.rift-title {
  position: relative; margin: 0; font: 700 clamp(64px, 13vw, 170px)/0.9 var(--display); letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.9), 0 0 80px rgba(255, 43, 214, 0.35);
}
.rift-title::before, .rift-title::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
.rift-title::before { color: var(--cyan); left: 3px; text-shadow: -3px 0 var(--magenta); animation: rift-a 2.6s infinite linear alternate-reverse; mix-blend-mode: screen; }
.rift-title::after { color: var(--magenta); left: -3px; text-shadow: 3px 0 var(--cyan); animation: rift-b 3.1s infinite linear alternate-reverse; mix-blend-mode: screen; }
@keyframes rift-a { 0% { clip-path: inset(8% 0 82% 0); } 10% { clip-path: inset(48% 0 30% 0); } 20% { clip-path: inset(72% 0 6% 0); } 30% { clip-path: inset(20% 0 66% 0); } 40% { clip-path: inset(90% 0 2% 0); } 50% { clip-path: inset(35% 0 40% 0); } 60% { clip-path: inset(60% 0 22% 0); } 70% { clip-path: inset(4% 0 88% 0); } 80% { clip-path: inset(80% 0 10% 0); } 90% { clip-path: inset(44% 0 44% 0); } 100% { clip-path: inset(14% 0 70% 0); } }
@keyframes rift-b { 0% { clip-path: inset(70% 0 12% 0); } 15% { clip-path: inset(12% 0 75% 0); } 30% { clip-path: inset(40% 0 38% 0); } 45% { clip-path: inset(85% 0 3% 0); } 60% { clip-path: inset(25% 0 60% 0); } 75% { clip-path: inset(55% 0 25% 0); } 100% { clip-path: inset(5% 0 90% 0); } }
.rift-title.tear { animation: tear 0.18s steps(2) 3; }
@keyframes tear { 0% { transform: translate(0); } 33% { transform: translate(-8px, 2px) skewX(-8deg); } 66% { transform: translate(9px, -2px) skewX(6deg); } }

.terminal { position: relative; max-width: 860px; border-radius: 16px; border: 1px solid rgba(255, 43, 214, 0.32); background: rgba(5, 2, 12, 0.82); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 30px 80px -30px rgba(255, 43, 214, 0.4); padding: 0 0 28px; overflow: hidden; backdrop-filter: blur(10px); }
.terminal::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 43, 214, 0.2); font: 700 12px var(--mono); letter-spacing: 0.18em; color: #f5d0fe; }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b2a55; }
.terminal__bar i:first-child { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); animation: blink 1.1s infinite; }
.terminal__bar span { margin-left: 8px; }
.terminal__bar em { margin-left: auto; font-style: normal; color: var(--cyan); opacity: 0.8; }
.terminal__wave { display: block; width: 100%; height: 90px; }
.terminal__lines { list-style: none; margin: 0; padding: 4px 26px 0; counter-reset: frag; font: 400 15px/1.7 var(--mono); }
.terminal__lines li { position: relative; padding: 8px 0 8px 64px; color: #e9d5ff; border-bottom: 1px dashed rgba(167, 139, 250, 0.14); min-height: 42px; }
.terminal__lines li::before { counter-increment: frag; content: 'FRG-0' counter(frag); position: absolute; left: 0; top: 8px; font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 43, 214, 0.75); }
.terminal__lines li.locked { color: rgba(167, 139, 250, 0.55); }
.terminal__lines li.locked .bar { display: inline-block; height: 0.9em; vertical-align: middle; background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(255, 43, 214, 0.35)); animation: corrupt 1.6s steps(6) infinite; }
@keyframes corrupt { 0% { opacity: 1; } 30% { opacity: 0.4; transform: translateX(3px); } 60% { opacity: 0.9; transform: translateX(-2px); } }
.terminal__lines li.open { color: #fff; text-shadow: 0 0 10px rgba(255, 43, 214, 0.45); }
.terminal .btn--rift { margin-left: 26px; }
.terminal.shake { animation: tear 0.16s steps(2) 2; }

/* ------------------------------------------------------------------ Patch notes */
.patches { display: grid; gap: 16px; max-width: 920px; }
.patch { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); overflow: hidden; transition: border-color 0.3s; }
.patch.latest { border-color: rgba(245, 185, 66, 0.5); box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.15), 0 24px 60px -30px rgba(249, 115, 22, 0.55); }
.patch__head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; }
.patch__tag { font: 700 14px var(--mono); padding: 6px 10px; border-radius: 8px; background: rgba(139, 92, 246, 0.16); color: var(--violet-2); border: 1px solid rgba(139, 92, 246, 0.35); }
.patch.latest .patch__tag { background: rgba(245, 185, 66, 0.14); color: var(--gold); border-color: rgba(245, 185, 66, 0.4); }
.patch__title { flex: 1; font: 700 19px var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.patch__date { font-size: 13px; color: var(--muted); }
.patch__badge { font: 700 11px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: #1d0f02; background: var(--gold); padding: 4px 9px; border-radius: 6px; }
.patch__chev { width: 22px; height: 22px; transition: transform 0.3s; stroke: var(--muted); fill: none; stroke-width: 2; }
.patch.open .patch__chev { transform: rotate(180deg); }
.patch__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(.2, .7, .2, 1); }
.patch.open .patch__body { grid-template-rows: 1fr; }
.patch__body > div { overflow: hidden; }
.patch__content { padding: 0 26px 26px; color: #d6cdee; font-size: 15.5px; }
.patch__content h4 { margin: 18px 0 8px; font: 700 13px var(--display); letter-spacing: 0.22em; color: var(--gold); }
.patch__content ul { margin: 0; padding-left: 20px; }
.patch__content li { margin: 4px 0; }
.patch__content li::marker { color: var(--violet-2); }

/* ------------------------------------------------------------------ Classement */
.board { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(12px); padding: 26px; }
.board__filters { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-bottom: 26px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.seg button, .seg select { border: 0; background: transparent; color: var(--muted); font: 700 14px var(--display); letter-spacing: 0.08em; padding: 9px 16px; border-radius: 9px; cursor: pointer; text-transform: uppercase; }
.seg select { appearance: none; padding-right: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a90b8' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; }
.seg select option { background: var(--panel-solid); color: var(--text); }
.seg .on, .seg select.on { background: var(--violet); color: #fff; box-shadow: 0 0 18px rgba(139, 92, 246, 0.5); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 26px; }
.podium__slot { position: relative; text-align: center; padding: 22px 14px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(var(--pc), 0.2), rgba(10, 5, 22, 0.7)); border: 1px solid rgba(var(--pc), 0.45); }
.podium__slot.first { padding-top: 34px; box-shadow: 0 0 60px -20px rgba(var(--pc), 0.8); }
.podium__crown { width: 34px; height: 34px; margin: 0 auto 6px; color: rgb(var(--pc)); filter: drop-shadow(0 0 8px rgba(var(--pc), 0.9)); }
.podium__name { font: 700 17px var(--display); letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__kills { font: 700 30px var(--display); color: rgb(var(--pc)); }
.podium__hero { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font: 600 12px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid rgba(167, 139, 250, 0.08); }
.table td:first-child { font: 700 15px var(--mono); color: var(--violet-2); width: 60px; }
.table td:last-child, .table th:last-child { text-align: right; font-family: var(--mono); }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(139, 92, 246, 0.08); }
.table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: rgb(var(--hc)); box-shadow: 0 0 8px rgb(var(--hc)); }
.board__note { margin: 16px 0 0; font-size: 13px; text-align: center; }
.board__empty { text-align: center !important; padding: 44px 10px; color: var(--muted); font-family: var(--mono); }

/* ------------------------------------------------------------------ Objectif communautaire */
.goal { position: relative; padding: 52px 56px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(34, 211, 238, 0.35);
  background: radial-gradient(900px circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 60%), linear-gradient(160deg, rgba(8, 30, 44, 0.92), rgba(8, 6, 22, 0.94)); }
.goal__head { max-width: 760px; }
.goal__kicker { color: var(--cyan); }
.goal__count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 26px 0 18px; }
.goal__count b { font: 700 clamp(40px, 7vw, 92px)/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #9ef0ff 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.35)); }
.goal__count span { font: 600 clamp(15px, 1.6vw, 20px) var(--display); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.goal__bar { position: relative; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.goal__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #0e7490, var(--cyan), #e6fbff);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7); transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.goal__marks { position: relative; height: 34px; margin-top: 6px; }
.goal__marks span { position: absolute; top: 0; translate: -50% 0; font: 600 12px var(--mono); color: var(--muted); white-space: nowrap; }
.goal__marks span::before { content: ''; display: block; width: 2px; height: 8px; margin: 0 auto 4px; background: currentColor; }
.goal__marks span.on { color: var(--cyan); }
.goal__marks span:last-child { translate: -100% 0; }
.goal__marks span:last-child::before { margin-right: 0; }
.goal__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 15px; color: #cfe9f2; }
.goal__reward { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 18px 22px; border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(34, 211, 238, 0.2); }
.goal__reward p { margin: 0; }
.goal__orb { flex: none; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6fbff, var(--cyan) 35%, #0b1824 75%);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.6); animation: goalPulse 3s ease-in-out infinite; }
@keyframes goalPulse { 50% { box-shadow: 0 0 46px rgba(34, 211, 238, 0.9); transform: scale(1.06); } }
@media (max-width: 720px) { .goal { padding: 30px 20px; } .goal__marks span { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .goal__orb { animation: none; } .goal__bar i { transition: none; } }

/* ------------------------------------------------------------------ Communauté */
.discord { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 56px; border-radius: 28px; overflow: hidden; background: radial-gradient(800px circle at 85% 50%, rgba(139, 92, 246, 0.45), transparent 60%), linear-gradient(135deg, rgba(37, 18, 82, 0.9), rgba(10, 5, 22, 0.9)); border: 1px solid rgba(167, 139, 250, 0.35); }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { position: relative; padding-left: 26px; color: #e4dcfb; }
.checks li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.discord__orb { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.discord__orb img { width: 58%; filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.7)); animation: float 6s ease-in-out infinite; }
.discord__orb i { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(245, 185, 66, 0.45); transform: rotateX(72deg) rotateZ(0deg); animation: orbit 9s linear infinite; }
.discord__orb i:nth-child(3) { inset: 0; border-color: rgba(167, 139, 250, 0.4); animation-duration: 14s; animation-direction: reverse; transform: rotateX(70deg) rotateY(20deg); }
.discord__orb i:nth-child(4) { inset: 18%; border-color: rgba(255, 43, 214, 0.35); animation-duration: 6s; transform: rotateX(78deg) rotateY(-30deg); }
@keyframes orbit { to { rotate: 0 0 1 360deg; } }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 28px; }
.split--single { grid-template-columns: 1fr; max-width: 920px; }
.faq { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); padding: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font: 600 17px var(--display); letter-spacing: 0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--violet-2); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #cfc6ea; }

/* ------------------------------------------------------------------ Pied de page */
.footer { margin-top: 120px; padding: 56px 24px 70px; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(139, 92, 246, 0.08)); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; }
.footer img { margin-bottom: 10px; filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.6)); }
.footer p { margin: 0; }
.footer__links a { color: var(--violet-2); }
.footer__links a:hover { color: #fff; }

/* ------------------------------------------------------------------ Mobile */
@media (max-width: 980px) {
  .nav { background: rgba(6, 3, 13, 0.8); backdrop-filter: blur(14px); }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; margin: 0; width: 100%; flex-direction: column; gap: 0; padding: 6px 24px 20px; background: rgba(6, 3, 13, 0.97); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a::after { display: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: flex; }
  .pillars, .split, .discord { grid-template-columns: 1fr; }
  .heroes { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .discord { padding: 34px; }
  .discord__orb { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 600px) {
  :root { --wrap: calc(100vw - 32px); }
  body { font-size: 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .nav__brand span { display: none; }
  .nav .btn--sm { display: none; }
  .hero__tagline { letter-spacing: 0.24em; white-space: normal; }
  .heroes, .features, .checks { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .podium { grid-template-columns: 1fr; }
  .podium__slot.first { order: -1; }
  .board { padding: 16px; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .terminal__lines li { padding-left: 0; padding-top: 26px; }
  .section { padding-top: 100px; }
  .patch__head { flex-wrap: wrap; gap: 10px 12px; padding: 18px; }
  .patch__title { order: 5; flex-basis: 100%; font-size: 17px; }
  .patch__content { padding: 0 18px 20px; }
  .rift-title { font-size: 19vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Classement : modes, avatars Steam, emblèmes de rang */
.seg[hidden] { display: none; }
.seg--mode .on { background: var(--gold); color: #1a0d00; box-shadow: 0 0 18px rgba(245, 185, 66, 0.45); }
.board__avatar { display: inline-block; width: 28px; height: 28px; border-radius: 8px; margin-right: 10px; vertical-align: middle; object-fit: cover; }
.podium .board__avatar { display: block; width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 8px; border: 2px solid rgba(var(--pc), 0.7); }
.podium__emblem, .board__emblem { display: inline-block; width: 26px; height: 26px; margin-right: 6px; vertical-align: middle; object-fit: contain; }
