/* Whiteboard Heroes · landing des Fondateurs. Tokens = design/tokens.json (DA « Éveil »). */

@font-face { font-family: 'Chakra Petch'; src: url('/fonts/chakra-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/fonts/chakra-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Marker'; src: url('/fonts/marker.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --abysse: #07070D;
  --surface: #12121C;
  --surface-raised: #1C1C2E;
  --surface-system: #0B1220;
  --eveil-deep: #170F2C;
  --trait: #2A2A44;
  --ink: #E7E7F2;
  --ink-muted: #A3A3BD;
  --eveil: #7C3AED;
  --eveil-light: #A78BFA;
  --eveil-pale: #C4B5FD;
  --mana: #38BDF8;
  --comp: #F97316;
  --avatar-ink: #160F24;
  --display: 'Chakra Petch', 'Avenir Next Condensed', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}
@media (max-width: 359px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abysse);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--eveil-light); }
b { font-weight: 600; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: .2px; }
p { margin: 0; }
::selection { background: var(--eveil); color: #fff; }
:focus-visible { outline: 2px solid var(--mana); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--eveil); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-muted); }
em { font-style: normal; color: var(--eveil-pale); text-shadow: 0 0 24px rgba(167, 139, 250, .55); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 8px; border: 1px solid transparent;
  background: linear-gradient(180deg, #8B4BF7 0%, var(--eveil) 100%);
  color: #fff; text-decoration: none;
  font: 700 14px/1 var(--display); letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(196, 181, 253, .15) inset, 0 8px 28px -8px rgba(124, 58, 237, .8);
  transition: transform .15s ease, box-shadow .2s ease;
  -webkit-user-select: none; user-select: none; cursor: pointer; white-space: nowrap;
}
.btn::after { /* reflet qui passe */
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: shine 4.5s ease-in-out 1.5s infinite;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(196, 181, 253, .3) inset, 0 12px 36px -8px rgba(124, 58, 237, 1); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: 1.5px; }
.btn-ghost { background: rgba(18, 18, 28, .6); border-color: var(--trait); box-shadow: none; color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { border-color: var(--eveil-light); box-shadow: none; }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 7, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(42, 42, 68, .7); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font: 700 22px/1 var(--display); letter-spacing: 3px; }
.brand-word b, .ph-brand b { color: var(--eveil-light); font-weight: 700; }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--eveil-light); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

/* ---------- Héros ---------- */
.hero { position: relative; padding: calc(96px + env(safe-area-inset-top)) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.halo { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.halo.h1 { width: 620px; height: 620px; right: -160px; top: 40px; background: radial-gradient(circle, rgba(124, 58, 237, .7), transparent 65%); animation: breathe 9s ease-in-out infinite; }
.halo.h2 { width: 480px; height: 480px; left: -200px; top: 260px; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%); animation: breathe 11s ease-in-out -4s infinite; }
.chalk { /* grille HUD très discrète */
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(167, 139, 250, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.12); opacity: .7; } }

.hero-grid { position: relative; display: grid; gap: 8px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; min-height: 620px; } }

.sys-tag { font: 600 12px/1.4 var(--display); letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-muted); }
.sys-tag span { color: var(--mana); margin-right: 8px; text-shadow: 0 0 12px rgba(56, 189, 248, .6); }
.hero h1 { font-size: clamp(38px, 10.5vw, 76px); line-height: 1.02; margin: 18px 0 20px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .cta-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero .cta-row .btn { flex: 0 0 auto; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 24px 0 0; font-size: 13px; color: var(--ink-muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--eveil-light); box-shadow: 0 0 8px var(--eveil-light); }

/* La scène du héros */
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; margin: 0 auto; }
.stage-hero { position: absolute; left: 50%; bottom: 0; width: 82%; transform: translateX(-50%); filter: drop-shadow(0 20px 40px rgba(124, 58, 237, .35)); animation: idle 5s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.rings { position: absolute; left: 50%; bottom: 3%; width: 70%; aspect-ratio: 4 / 1; transform: translateX(-50%); }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--eveil); opacity: 0; animation: ring 3.6s ease-out infinite; }
.rings i:nth-child(2) { border-color: var(--mana); animation-delay: 1.2s; }
.rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.orbits .orbit { position: absolute; width: clamp(48px, 13vw, 64px); animation: bob 6s ease-in-out infinite; }
.o1 { left: 2%; top: 22%; animation-delay: -1s !important; }
.o2 { left: 0%; top: 52%; animation-delay: -3s !important; }
.o3 { left: 9%; top: 78%; animation-delay: -2s !important; }
.o4 { right: 2%; top: 20%; animation-delay: -4s !important; }
.o5 { right: 0%; top: 50%; animation-delay: -.5s !important; }
.o6 { right: 9%; top: 77%; animation-delay: -2.5s !important; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.float { position: absolute; font-family: var(--display); font-weight: 700; border-radius: 8px; white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.chip-xp { left: 22%; top: 6%; padding: 8px 14px; font-size: clamp(18px, 4.6vw, 26px); color: var(--eveil-pale); background: rgba(23, 15, 44, .85); border: 1px solid rgba(167, 139, 250, .45); text-shadow: 0 0 18px rgba(167, 139, 250, .9); box-shadow: 0 0 30px -6px rgba(124, 58, 237, .8); }
.chip-pr { right: 14%; top: 3%; padding: 6px 12px; font-size: 13px; color: var(--ink); background: rgba(18, 18, 28, .9); border: 1px solid var(--trait); animation-delay: -3s; display: flex; gap: 8px; align-items: center; }
.chip-pr span { color: var(--comp); border: 1px solid var(--comp); padding: 2px 6px; border-radius: 2px; font-size: 11px; letter-spacing: 1.5px; }
.chip-lvl { right: 17%; bottom: 8%; width: 62px; height: 62px; display: grid; place-items: center; background: rgba(11, 18, 32, .9); border-radius: 50%; animation-delay: -5s; }
.chip-lvl svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.chip-lvl circle { fill: none; stroke-width: 3; }
.lvl-track { stroke: var(--surface-raised); }
.lvl-fill { stroke: var(--mana); stroke-dasharray: 113; stroke-dashoffset: 40; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--mana)); }
.chip-lvl span { font-size: 22px; line-height: .9; text-align: center; }
.chip-lvl small { display: block; font-size: 8px; letter-spacing: 1.5px; color: var(--ink-muted); }
@media (max-width: 420px) { .chip-lvl { display: none; } .chip-pr { right: 4%; } .chip-xp { left: 4%; } }

.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--eveil-pale); opacity: 0; animation: dust 7s linear infinite; }
.dust i:nth-child(1) { left: 30%; bottom: 12%; }
.dust i:nth-child(2) { left: 42%; bottom: 8%; animation-delay: -1s; }
.dust i:nth-child(3) { left: 55%; bottom: 14%; animation-delay: -2.2s; background: var(--mana); }
.dust i:nth-child(4) { left: 64%; bottom: 10%; animation-delay: -3.1s; }
.dust i:nth-child(5) { left: 36%; bottom: 20%; animation-delay: -4.4s; background: var(--mana); }
.dust i:nth-child(6) { left: 70%; bottom: 18%; animation-delay: -5.2s; }
.dust i:nth-child(7) { left: 48%; bottom: 4%; animation-delay: -6s; }
.dust i:nth-child(8) { left: 26%; bottom: 6%; animation-delay: -2.7s; background: var(--mana); }
@keyframes dust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-240px); opacity: 0; } }

/* Bandeau des benchmarks */
.ticker { position: relative; margin-top: 28px; border-block: 1px solid var(--trait); background: rgba(18, 18, 28, .5); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker span { padding: 14px 22px; font: 700 14px/1 var(--display); letter-spacing: 4px; color: var(--ink-muted); white-space: nowrap; }
.ticker span:nth-child(3n+1) { color: var(--eveil-light); }
.ticker span::after { content: '◆'; margin-left: 44px; font-size: 8px; vertical-align: middle; color: var(--trait); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Tuiles d'équipement (cadre = rareté) ---------- */
.tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--c, #8A8F99); background: #0E0E18; }
.tile svg { width: 78%; height: 78%; }
.r-scrap { --c: #8A8F99; border-style: dashed; }
.r-common { --c: #E5E7EB; }
.r-rare { --c: #3B82F6; background: #0D1426; }
.r-epic { --c: #A855F7; background: #160F2A; }
.r-comp { --c: #F97316; background: #1E1009; box-shadow: 0 0 18px -2px rgba(249, 115, 22, .55); }
.r-legendary { --c: #EAB308; background: #1A1405; box-shadow: 0 0 0 3px #0E0E18, 0 0 0 4px rgba(234, 179, 8, .6), 0 0 22px rgba(234, 179, 8, .45); }
.r-games { --c: #9F6BFF; background: #170F2C; box-shadow: 0 0 26px 2px rgba(159, 107, 255, .65); }
.r-games::before { content: '✦'; position: absolute; top: -9px; right: -6px; color: #E9D5FF; font-size: 13px; text-shadow: 0 0 8px #9F6BFF; animation: twinkle 2.2s ease-in-out infinite; }
.r-legendary::before { content: '✦'; position: absolute; top: -9px; left: -6px; color: #FDE68A; font-size: 11px; text-shadow: 0 0 8px #EAB308; animation: twinkle 2.8s ease-in-out -1s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px 18px; border: 1px solid var(--trait); border-radius: 10px; background: linear-gradient(180deg, var(--surface), rgba(18, 18, 28, .4)); }
.stat b { display: block; font: 700 clamp(34px, 8vw, 46px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-alt { background: linear-gradient(180deg, transparent, rgba(18, 18, 28, .55) 18%, rgba(18, 18, 28, .55) 82%, transparent); }
.eyebrow { font: 600 12px/1 var(--display); letter-spacing: 3px; text-transform: uppercase; color: var(--mana); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 6.4vw, 50px); line-height: 1.08; }
.section-lead { margin-top: 16px; max-width: 620px; color: var(--ink-muted); font-size: 17px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 18px 18px 24px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); transition: border-color .3s, transform .3s; }
.step:hover { border-color: rgba(167, 139, 250, .5); transform: translateY(-3px); }
.step-visual { position: relative; height: 210px; margin-bottom: 20px; border-radius: 8px; background: var(--abysse); border: 1px solid var(--trait); overflow: hidden; display: grid; place-items: center; }
.step-num { font: 700 12px/1 var(--display); letter-spacing: 2px; color: var(--eveil-light); }
.step h3 { font-size: 22px; margin: 8px 0 8px; }
.step > p { color: var(--ink-muted); font-size: 15px; }

/* Tableau blanc scanné */
.whiteboard { background: radial-gradient(ellipse at 50% 30%, #2a2a3a, #12121C 75%); }
.wb-board { width: 78%; padding: 14px 18px; background: linear-gradient(160deg, #F4F4F6, #DADBE2); border-radius: 4px; box-shadow: 0 0 0 5px #9097A6, 0 14px 30px rgba(0, 0, 0, .6); transform: rotate(-2deg); font-family: 'Marker', 'Comic Sans MS', cursive; color: #1E3A8A; }
.wb-title { font-size: 26px; color: #B91C1C; line-height: 1.1; }
.wb-line { font-size: 16px; line-height: 1.35; }
.wb-load { color: #15803D; font-size: 13px; }
.wb-cap { font-size: 13px; color: #374151; margin-top: 4px; }
.scan-frame { position: absolute; inset: 22px 30px; pointer-events: none; }
.scan-frame i { position: absolute; width: 22px; height: 22px; border-color: var(--mana); border-style: solid; filter: drop-shadow(0 0 6px var(--mana)); }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.scan-beam { position: absolute; left: 4px; right: 4px; height: 2px; top: 0; background: var(--mana); box-shadow: 0 0 14px 3px rgba(56, 189, 248, .7); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 4%; } 50% { top: 94%; } }

/* Butin */
.loot { width: 84%; padding: 16px; background: var(--surface-system); border: 1px solid var(--mana); box-shadow: 0 0 24px -6px rgba(56, 189, 248, .6), inset 0 0 30px rgba(56, 189, 248, .06); text-align: center; }
.loot-sys { font: 600 11px/1 var(--display); letter-spacing: 3px; color: var(--mana); }
.loot-title { font: 600 15px/1.3 var(--display); margin-top: 6px; }
.loot-xp { font: 700 40px/1.1 var(--display); color: var(--eveil-pale); text-shadow: 0 0 22px rgba(167, 139, 250, .9); margin: 8px 0 2px; }
.loot-split { font-size: 11px; color: var(--ink-muted); }
.xpbar { height: 8px; border-radius: 4px; background: var(--surface-raised); margin-top: 14px; overflow: hidden; }
.xpbar span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #0EA5E9, var(--mana)); box-shadow: 0 0 10px var(--mana); transition: width 1.6s cubic-bezier(.2, .8, .2, 1) .3s; }
.in .xpbar span { width: var(--w, 73%); }
.xpbar-lg { height: 12px; border-radius: 6px; }

/* Palier */
.upgrade { display: flex; align-items: center; gap: 14px; }
.upgrade .tile { width: 76px; }
.upgrade .r-comp { animation: pulse 2.4s ease-in-out infinite; }
.upgrade-arrow { width: 28px; fill: none; stroke: #FDBA74; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.upgrade-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font: 600 15px/1.3 var(--display); }
.upgrade-label span { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #FDBA74; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 14px -2px rgba(249, 115, 22, .5); } 50% { box-shadow: 0 0 28px 2px rgba(249, 115, 22, .8); } }
.step-visual:has(.upgrade) { place-items: center; padding-bottom: 40px; }

/* ---------- Deux axes ---------- */
.axes { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 960px) { .axes { grid-template-columns: 1fr 1fr; gap: 20px; } }
.axis { padding: 24px 20px; border-radius: 12px; border: 1px solid var(--trait); background: var(--surface); overflow: hidden; }
@media (min-width: 600px) { .axis { padding: 30px 28px; } }
.axis-xp { border-top: 2px solid var(--mana); }
.axis-gear { border-top: 2px solid var(--comp); }
.axis-tag { font: 600 11px/1 var(--display); letter-spacing: 3px; text-transform: uppercase; color: var(--mana); }
.tag-gear { color: #FDBA74; }
.axis h3 { font-size: 26px; margin: 10px 0 10px; }
.axis header p:last-child { color: var(--ink-muted); font-size: 15px; }
.xp-demo { margin: 24px 0 8px; }
.xp-demo-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.xp-demo .xpbar { --w: 73%; }

.ranks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
@media (min-width: 520px) { .ranks { grid-template-columns: repeat(5, 1fr); } }
.rank { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.rank-emblem { width: 52px; height: auto; transition: transform .3s, filter .3s; }
.rank:hover .rank-emblem { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 10px var(--c)); }
.rank-grade { font: 600 12px/1.25 var(--display); color: var(--c); }
.rank-levels { font-size: 11px; color: var(--ink-muted); }

.ladder { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
@media (min-width: 520px) { .ladder { grid-template-columns: repeat(7, 1fr); } }
.ladder-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ladder-step .tile { width: 100%; max-width: 64px; }
.ladder-name { font: 600 12px/1.2 var(--display); color: var(--t); }
.ladder-level { font-size: 10.5px; line-height: 1.25; color: var(--ink-muted); }

/* ---------- Fonctions ---------- */
.features { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px 20px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); transition: border-color .3s, transform .3s; }
.feature:hover { border-color: rgba(167, 139, 250, .45); transform: translateY(-3px); }
.feature h3 { font-size: 19px; margin: 14px 0 8px; }
.feature > p, .feature > div > p { color: var(--ink-muted); font-size: 14.5px; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.feature-icon svg { width: 22px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-wide { display: grid; gap: 22px; background: radial-gradient(ellipse at 100% 0%, rgba(124, 58, 237, .16), transparent 60%), var(--surface); }
@media (min-width: 680px) { .feature-wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .feature-wide { grid-template-columns: 1fr 1.6fr; align-items: center; padding: 28px; } }
.feature-wide h3 { margin-top: 0; font-size: 24px; }
.classes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 8px; }
.class { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.class svg { width: 50px; margin-bottom: 4px; transition: transform .3s, filter .3s; }
.class:hover svg { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--c)); }
.class-hex { fill: color-mix(in srgb, var(--c) 8%, #0E0E18); stroke: var(--c); stroke-width: 1.2; }
.class-icon { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.class-name { font: 600 13px/1.2 var(--display); color: var(--ink); }
.class-profile { font-size: 11px; color: var(--c); }

/* ---------- Fondateurs ---------- */
.founders { overflow: hidden; }
.founders-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(124, 58, 237, .22), transparent 62%); pointer-events: none; }
.founders-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .founders-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.sys-window { position: relative; padding: 20px 22px; margin-bottom: 32px; background: var(--surface-system); border: 1px solid rgba(56, 189, 248, .75); box-shadow: 0 0 34px -8px rgba(56, 189, 248, .55), inset 0 0 40px rgba(56, 189, 248, .05); }
.sys-corner { position: absolute; width: 12px; height: 12px; border-color: var(--mana); border-style: solid; }
.sys-corner.c1 { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.sys-corner.c2 { top: -4px; right: -4px; border-width: 2px 2px 0 0; }
.sys-corner.c3 { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; }
.sys-corner.c4 { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }
.sys-label { font: 600 12px/1 var(--display); letter-spacing: 4px; color: var(--mana); }
.sys-title { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.sys-quest { font: 700 clamp(20px, 4.6vw, 26px)/1.2 var(--display); margin-top: 2px; color: var(--eveil-pale); text-shadow: 0 0 20px rgba(167, 139, 250, .6); }
.sys-reward { margin-top: 10px; font-size: 13px; color: var(--mana); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perk { display: flex; gap: 16px; padding: 18px; border-radius: 10px; background: linear-gradient(90deg, var(--eveil-deep), rgba(23, 15, 44, .4)); border: 1px solid rgba(167, 139, 250, .25); }
.perk-num { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font: 700 15px/1 var(--display); color: var(--eveil-pale); border: 1px solid rgba(167, 139, 250, .5); border-radius: 50%; box-shadow: 0 0 16px -4px var(--eveil-light); }
.perk h3 { font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.perk div > p { color: var(--ink-muted); font-size: 14.5px; }
.soon { font: 600 10px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--mana); border: 1px solid rgba(56, 189, 248, .5); padding: 4px 6px; border-radius: 2px; }

/* ---------- Installer ---------- */
.install { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .install { grid-template-columns: 1.1fr .9fr; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 10px; background: var(--abysse); border: 1px solid var(--trait); }
.tabs button { min-height: 44px; min-width: 112px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); font: 600 14px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 -2px 0 var(--eveil-light); }
.howto[hidden] { display: none; }
.howto { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.howto li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--trait); }
.howto li > span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--eveil); color: #fff; font: 700 14px/1 var(--display); }
.howto p { font-size: 15px; color: var(--ink-muted); }
.inline-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--mana); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fineprint { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }

/* Téléphone (aperçu du QG, dessiné en HTML) */
.phone { position: relative; width: min(320px, 86vw); margin: 0 auto; padding: 12px; border-radius: 46px; background: linear-gradient(160deg, #2A2A44, #0E0E18 40%, #1C1C2E); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 80px -10px rgba(124, 58, 237, .45); transform: rotate(3deg); }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 2; }
.phone-screen { position: relative; overflow: hidden; border-radius: 36px; background: var(--abysse); padding: 58px 14px 0; display: flex; flex-direction: column; gap: 10px; min-height: 600px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-brand { font: 700 19px/1 var(--display); letter-spacing: 3px; }
.ph-streak { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--trait); border-radius: 999px; font: 600 11px/1 var(--display); }
.ph-streak svg { width: 13px; fill: none; stroke: #A5B4FC; stroke-width: 2; }
.ph-card { border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); padding: 12px; }
.ph-hero { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; }
.ph-hero img { width: 100%; }
.ph-hero > div { display: flex; flex-direction: column; gap: 3px; }
.ph-rank { align-self: flex-start; font: 700 10px/1 var(--display); letter-spacing: 2px; padding: 4px 6px; border: 1px solid var(--mana); color: var(--mana); }
.ph-grade { font-size: 12px; color: var(--mana); }
.ph-lvl { font: 700 28px/1 var(--display); }
.ph-hero .xpbar { height: 6px; margin-top: 6px; --w: 62%; }
.ph-quest { background: var(--surface-system); border-color: rgba(56, 189, 248, .7); }
.ph-sys { font: 600 9.5px/1 var(--display); letter-spacing: 2.5px; color: var(--mana); }
.ph-row { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.ph-row em { font-style: normal; color: var(--eveil-light); text-shadow: none; }
.ph-bar { height: 6px; border-radius: 3px; background: var(--surface-raised); margin-top: 8px; }
.ph-bar span { display: block; width: 66%; height: 100%; border-radius: 3px; background: var(--eveil-light); }
.ph-last { display: flex; justify-content: space-between; align-items: center; }
.ph-last > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ph-last small { font-size: 11px; color: var(--ink-muted); }
.ph-last b { font-size: 14px; }
.ph-last em { font-style: normal; font-size: 12px; color: var(--eveil-light); text-shadow: none; }
.ph-score { font: 700 30px/1 var(--display); text-align: right; }
.ph-score span { display: block; margin: 6px 0 0 auto; width: fit-content; font-size: 10px; letter-spacing: 2px; color: var(--comp); border: 1px solid var(--comp); padding: 3px 6px; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-tiles div { text-align: center; padding: 10px 4px; border: 1px solid var(--trait); border-radius: 10px; }
.ph-tiles b { display: block; font: 700 20px/1 var(--display); }
.ph-tiles b.o { color: var(--comp); }
.ph-tiles b.m { color: var(--mana); }
.ph-tiles small { font-size: 10.5px; color: var(--ink-muted); }
.ph-tab { margin: auto -14px 0; display: flex; justify-content: space-around; align-items: center; padding: 12px 10px 22px; border-top: 1px solid var(--trait); }
.ph-tab i { width: 20px; height: 20px; border: 2px solid #4A4A70; border-radius: 6px; }
.ph-tab i:first-child { border-color: var(--eveil-light); }
.ph-plus { width: 50px; height: 50px; margin-top: -26px; display: grid; place-items: center; border-radius: 50%; background: var(--eveil); color: #fff; font: 400 30px/1 var(--body); box-shadow: 0 0 24px rgba(124, 58, 237, .8); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-list { margin-top: 36px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); transition: border-color .25s; }
.faq details[open] { border-color: rgba(167, 139, 250, .5); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 18px; font: 600 16px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--eveil-light); border-bottom: 2px solid var(--eveil-light); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 18px 18px; color: var(--ink-muted); font-size: 15px; }

/* ---------- Fin ---------- */
.final { position: relative; padding: 40px 0 100px; overflow: hidden; }
.final-glow { position: absolute; left: 50%; bottom: 0; width: 1000px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, .35), transparent 60%); pointer-events: none; }
.final-inner { position: relative; display: grid; gap: 8px; align-items: center; text-align: center; justify-items: center; }
@media (min-width: 900px) { .final-inner { grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; } }
.final-hero { width: min(420px, 90%); filter: drop-shadow(0 0 40px rgba(124, 58, 237, .45)); animation: idle-plain 6s ease-in-out infinite; }
@keyframes idle-plain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.final h2 { font-size: clamp(34px, 7vw, 60px); line-height: 1.05; margin: 14px 0 0; }
.final .cta-row { justify-content: inherit; }
@media (max-width: 899px) { .final .cta-row { justify-content: center; } .final .section-lead { margin-inline: auto; } }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--trait); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 16px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; } .footer-inner p { grid-column: 1 / -1; } .footer nav { justify-self: end; } }
.footer .brand span { font: 600 15px/1 var(--display); letter-spacing: 1px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { color: var(--ink-muted); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--eveil-light); }
.footer p { font-size: 12px; color: #7A7A94; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .xpbar span { width: var(--w, 73%); }
  .rings i:first-child { opacity: .6; transform: scale(.9); }
}
