/* Pokora — feuille de style du site.
   Palette et polices partagées avec le launcher (bleu nuit, bleu ciel, vert feuille, Fredoka / Nunito).
   Style « autocollant » : contours sombres épais et ombres pleines, comme le logo. */

@font-face {
	font-family: "Fredoka";
	src: url("/fonts/Fredoka.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("/fonts/Nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-display: swap;
}

:root {
	--ink: #071034;
	--bg: #081440;
	--bg-deep: #050c2c;
	--bg-alt: #0b1a52;
	--panel: #10215e;
	--panel-2: #142a72;
	--line: #22398a;
	--text: #f4f8ff;
	--muted: #b3c6ef;
	--faint: #7d93c9;
	--sky-1: #d6efff;
	--sky-2: #8fd3ff;
	--sky-3: #4ea6ff;
	--blue: #2f6fe4;
	--blue-deep: #1d4fc0;
	--cloud: #5b95f0;
	--cloud-back: #3a74dc;
	--leaf: #5ad66b;
	--leaf-deep: #2fae4e;
	--gold: #ffcf4a;
	--silver: #c9d6ee;
	--bronze: #e39a5b;
	--radius: 18px;
	--radius-sm: 12px;
	--display: "Fredoka", "Segoe UI", system-ui, sans-serif;
	--body: "Nunito", "Segoe UI", system-ui, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--header-h: 76px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-2); text-decoration: none; }
a:hover { color: var(--sky-1); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.pixel { image-rendering: pixelated; }
.muted { color: var(--faint); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sky-2); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* --- Typographie d'affichage -------------------------------------------------------------- */
.display {
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
	text-transform: uppercase;
	letter-spacing: .01em;
	text-shadow: 0 4px 0 var(--ink);
}
.text-logo {
	color: var(--sky-1);
	background: linear-gradient(180deg, #ffffff 15%, var(--sky-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 0 var(--blue-deep)) drop-shadow(0 3px 0 var(--ink));
	text-shadow: none;
}
.eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .82rem;
	color: var(--leaf);
	margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .display { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-head-left { text-align: left; margin: 0; }
.section-lead { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* --- Boutons ------------------------------------------------------------------------------ */
.btn {
	--shadow: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	border: 3px solid var(--ink);
	box-shadow: 0 5px 0 var(--shadow);
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s;
	white-space: nowrap;
	color: var(--text);
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--shadow); color: inherit; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--shadow); }
.btn-primary {
	background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 45%, var(--blue) 100%);
	color: #fff;
	text-shadow: 0 2px 0 rgba(7, 16, 52, .55);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-dark { background: var(--panel-2); color: var(--text); }
.btn-dark:hover { background: #1a3384; color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--sky-2); padding-inline: 0; border: 0; }
.btn-ghost:hover { transform: none; box-shadow: none; color: var(--sky-1); }
.btn-ghost .icon { transition: transform .2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(4px); }
.btn-lg { font-size: 1.12rem; padding: 14px 26px; }
.btn-xl { font-size: 1.25rem; padding: 18px 32px; width: 100%; }
.btn-xl .icon { width: 24px; height: 24px; }
.btn-sm { font-size: .88rem; padding: 8px 14px; }
.btn-icon { width: 48px; height: 48px; padding: 0; }
.btn-icon .icon { width: 22px; height: 22px; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.btn.is-disabled:hover { transform: none; box-shadow: 0 5px 0 var(--shadow); }

/* --- En-tête ------------------------------------------------------------------------------ */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.nav-open {
	background: rgba(8, 20, 64, .86);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 0 rgba(7, 16, 52, .8);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; text-shadow: 0 3px 0 var(--ink); }
.brand:hover { color: var(--text); }
.brand img { filter: drop-shadow(0 3px 0 rgba(7, 16, 52, .6)); }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
	color: var(--text);
	font-family: var(--display);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1.02rem;
	letter-spacing: .04em;
	padding: 8px 14px;
	border-radius: 10px;
	transition: background .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.main-nav a.is-active { color: var(--sky-2); }
.nav-only-mobile { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.online-pill {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 800; font-size: .9rem; color: var(--muted);
	padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.online-pill i, .hero-status i {
	width: 9px; height: 9px; border-radius: 50%; background: var(--leaf);
	box-shadow: 0 0 0 0 rgba(90, 214, 107, .6); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(90, 214, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 214, 107, 0); } }
.nav-toggle { display: none; }

/* --- Ciel décoratif ----------------------------------------------------------------------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sky-glow {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 60% 55% at 72% 38%, rgba(78, 166, 255, .45), transparent 70%),
		radial-gradient(ellipse 80% 70% at 50% 0%, #1f4fc4 0%, transparent 70%),
		linear-gradient(180deg, #0b1d57 0%, #0a1a50 60%, var(--bg) 100%);
}
.star { position: absolute; fill: #fff; opacity: .8; animation: twinkle 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(143, 211, 255, .9)); }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7) rotate(20deg); } }
.clouds { position: absolute; left: 0; width: 100%; bottom: -2px; }
.clouds-back { height: 200px; opacity: .9; animation: drift 40s ease-in-out infinite alternate; }
.clouds-front { height: 150px; animation: drift 30s ease-in-out infinite alternate-reverse; }
.cloud-stroke { fill: var(--ink); stroke: var(--ink); stroke-width: 14; }
.clouds-back .cloud-fill { fill: var(--cloud-back); }
/* Les nuages de devant prennent la couleur de la section suivante : le ciel se termine en festons. */
.clouds-front .cloud-fill { fill: var(--bg); }
@keyframes drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

/* --- Hero d'accueil ----------------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(760px, 100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 30px) 0 150px; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero-status {
	display: inline-flex; align-items: center; gap: 10px;
	background: rgba(7, 16, 52, .55); border: 2px solid rgba(143, 211, 255, .25);
	padding: 6px 16px 6px 12px; border-radius: 999px; font-weight: 700; color: var(--muted); margin-bottom: 22px;
}
.hero-status strong { color: var(--leaf); font-size: 1.1em; }
.hero-status-idle { padding-left: 16px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 .text-logo { display: block; font-size: 1.25em; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.legend-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.legend-chip {
	font: inherit; font-weight: 800; font-size: .92rem; color: var(--muted);
	background: rgba(7, 16, 52, .5); border: 2px solid rgba(143, 211, 255, .18);
	border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
	transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease);
}
.legend-chip:hover { color: var(--text); border-color: rgba(143, 211, 255, .45); transform: translateY(-2px); }
.legend-chip.is-active { color: var(--ink); background: var(--sky-2); border-color: var(--ink); }
.legend-dex { font-family: var(--display); font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.legend-chip.is-active .legend-dex { background: rgba(7, 16, 52, .18); }

.hero-stage, .page-hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.stage-halo {
	position: absolute; inset: 12%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(143, 211, 255, .35), rgba(78, 166, 255, .1) 55%, transparent 70%);
	animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.pokemon-canvas { position: relative; width: 100%; height: 100%; display: block; cursor: grab; opacity: 0; transition: opacity .6s var(--ease); }
.pokemon-canvas.is-ready { opacity: 1; }
.pokemon-canvas.is-dragging { cursor: grabbing; }
.stage-hint {
	position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	font-size: .85rem; font-weight: 700; color: var(--muted);
	background: rgba(7, 16, 52, .55); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.stage-hint .icon { width: 18px; height: 18px; }
.no-webgl .stage-hint { display: none; }

/* --- Bande de statistiques ---------------------------------------------------------------- */
.stats-band { position: relative; z-index: 2; margin-top: -70px; }
.stats-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: 0 8px 0 var(--ink);
}
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 22px 24px; }
.stat + .stat { border-left: 2px solid var(--line); }
.stat img { grid-row: span 2; width: 44px; height: 44px; }
.stat strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: .95rem; }

/* --- Sections ----------------------------------------------------------------------------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 3px solid var(--ink); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-art { position: relative; display: grid; place-items: center; }
.about-art > img:first-child { width: min(420px, 100%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.orbit { position: absolute; width: 56px; height: 56px; filter: drop-shadow(0 4px 0 rgba(7, 16, 52, .7)); animation: float 5s ease-in-out infinite; }
.orbit-1 { top: 6%; left: 8%; animation-delay: -1s; }
.orbit-2 { top: 18%; right: 4%; animation-delay: -2.5s; }
.orbit-3 { bottom: 26%; right: 2%; animation-delay: -3.5s; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy strong { color: var(--text); }
.about-copy .display { margin-bottom: 22px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
	position: relative; padding: 30px 28px 28px;
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: 0 6px 0 var(--ink);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 0 var(--ink); }
.feature-card h3 { font-size: 1.35rem; margin: 18px 0 10px; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon {
	width: 64px; height: 64px; padding: 8px;
	background: rgba(143, 211, 255, .1); border: 2px solid rgba(143, 211, 255, .2); border-radius: 16px;
}
.feature-wide {
	grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-content: center;
	background: linear-gradient(120deg, #1d4fc0 0%, var(--panel-2) 60%);
}
.feature-wide .feature-icon { grid-row: span 3; width: 96px; height: 96px; padding: 14px; align-self: start; }
.feature-wide h3 { margin-top: 0; font-size: 1.7rem; }
.feature-wide p { color: var(--sky-1); opacity: .9; }
.feature-full { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; background: linear-gradient(120deg, var(--panel-2) 0%, #1d4fc0 100%); }
.feature-full .feature-cta { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; color: var(--sky-2); }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* --- Pokédex ------------------------------------------------------------------------------ */
.pokedex { background: var(--bg-alt); border-block: 3px solid var(--ink); }
.dex-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.dex-list {
	display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow-y: auto; padding: 10px;
	background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink);
	scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.dex-item {
	font: inherit; color: var(--muted); text-align: left; cursor: pointer;
	display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px;
	padding: 10px 12px; border-radius: 10px; border: 2px solid transparent; background: transparent;
	transition: background .15s, color .15s;
}
.dex-item:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.dex-item.is-active { background: var(--sky-2); color: var(--ink); border-color: var(--ink); }
.dex-num { font-family: var(--display); font-weight: 600; font-size: .85rem; opacity: .8; }
.dex-name { font-weight: 800; }
.dex-dots { display: flex; gap: 4px; }
.type-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--type, #999); }
.dex-stage {
	display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
	background: radial-gradient(circle at 35% 45%, #1f4fc4 0%, var(--panel) 60%);
	border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); overflow: hidden;
}
.dex-screen { position: relative; min-height: 460px; }
.dex-screen::after {
	content: ""; position: absolute; left: 15%; right: 15%; bottom: 12%; height: 26px; border-radius: 50%;
	background: radial-gradient(ellipse, rgba(7, 16, 52, .55), transparent 70%); z-index: 0;
}
.dex-screen canvas { position: absolute; inset: 0; z-index: 1; }
.dex-info { padding: 36px 34px; background: rgba(7, 16, 52, .35); border-left: 3px solid var(--ink); display: flex; align-items: center; }
.dex-card-num { font-family: var(--display); font-weight: 600; color: var(--faint); margin: 0 0 4px; }
.dex-card h3 { font-size: 2.3rem; text-transform: uppercase; text-shadow: 0 3px 0 var(--ink); }
.type-badges { display: flex; gap: 8px; margin: 14px 0 18px; }
.type-badge {
	font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em;
	padding: 4px 12px; border-radius: 8px; border: 2px solid var(--ink); background: var(--type, #999); color: #fff;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45); box-shadow: 0 3px 0 var(--ink);
}
.dex-desc { color: var(--muted); }
.dex-measures { display: flex; gap: 12px; margin: 18px 0 0; }
.dex-measures div { flex: 1; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 14px; }
.dex-measures dt { font-size: .8rem; color: var(--faint); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dex-measures dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

.type-normal { --type: #9fa19f; } .type-fire { --type: #e62829; } .type-water { --type: #2980ef; }
.type-grass { --type: #3fa129; } .type-electric { --type: #fac000; } .type-ice { --type: #3dcef3; }
.type-fighting { --type: #ff8000; } .type-poison { --type: #9141cb; } .type-ground { --type: #915121; }
.type-flying { --type: #81b9ef; } .type-psychic { --type: #ef4179; } .type-bug { --type: #91a119; }
.type-rock { --type: #afa981; } .type-ghost { --type: #704170; } .type-dragon { --type: #5060e1; }
.type-dark { --type: #624d4e; } .type-steel { --type: #60a1b8; } .type-fairy { --type: #ef70ef; }

/* --- Classement ---------------------------------------------------------------------------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.podium-step { display: flex; flex-direction: column; align-items: center; width: 210px; }
.podium-step img { width: 60px; height: 120px; image-rendering: pixelated; margin-bottom: -6px; position: relative; z-index: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }
.podium-block {
	width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 12px 18px;
	background: var(--panel-2); border: 3px solid var(--ink); border-radius: var(--radius) var(--radius) 0 0;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, .08);
}
.podium-block strong { font-family: var(--display); font-size: 1.15rem; }
.podium-block span:last-child { color: var(--muted); font-weight: 800; }
.podium-rank {
	width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px;
	font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink);
	border-radius: 50%; border: 3px solid var(--ink); background: var(--medal);
}
.podium-1 { --medal: var(--gold); } .podium-1 .podium-block { min-height: 170px; background: linear-gradient(180deg, #2a55c8, var(--panel-2)); }
.podium-2 { --medal: var(--silver); } .podium-2 .podium-block { min-height: 130px; }
.podium-3 { --medal: var(--bronze); } .podium-3 .podium-block { min-height: 100px; }
.rank-list { list-style: none; counter-reset: rank 3; max-width: 640px; margin: 28px auto 0; padding: 0; display: grid; gap: 8px; }
.rank-list li {
	counter-increment: rank; display: grid; grid-template-columns: 34px 32px 1fr auto; gap: 12px; align-items: center;
	padding: 10px 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px;
}
.rank-list li::before { content: counter(rank); font-family: var(--display); font-weight: 700; color: var(--faint); }
.rank-list img { image-rendering: pixelated; border-radius: 6px; }
.rank-list span { color: var(--muted); font-weight: 800; }

/* --- FAQ ----------------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.faq-grid .section-head .btn { margin-top: 22px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 5px 0 var(--ink); overflow: hidden; }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
	font-family: var(--display); font-weight: 600; font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%;
	width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
	background: rgba(143, 211, 255, .14); color: var(--sky-2); font-size: 1.3rem; transition: rotate .2s var(--ease);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* --- Appel final -------------------------------------------------------------------------- */
.cta-final { position: relative; isolation: isolate; padding: 90px 0; border-top: 3px solid var(--ink); overflow: hidden; }
.cta-final .sky-glow { background: radial-gradient(ellipse 70% 90% at 70% 50%, #2a5fd6, transparent 70%), linear-gradient(180deg, #0f2a7a, var(--bg-deep)); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px; }
.cta-grid p { color: var(--muted); font-size: 1.12rem; margin: 18px 0 28px; }
.cta-canvas { height: 340px; }

/* --- En-têtes de pages --------------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 60px) 0 190px; }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero-compact { padding: calc(var(--header-h) + 50px) 0 60px; text-align: center; }
.page-hero-compact .container { position: relative; z-index: 1; }
.page-hero-compact .hero-lead { margin-inline: auto; }
.page-hero-stage { max-width: 440px; justify-self: center; }

.download-card {
	max-width: 520px; padding: 24px; margin-top: 8px;
	position: relative; z-index: 2;
	background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: 0 8px 0 var(--ink);
}
.download-card:has(.download-option + .download-option) { max-width: 720px; }
.download-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.download-option { display: flex; flex-direction: column; gap: 10px; }
.download-option .btn-xl { font-size: .98rem; letter-spacing: .01em; padding: 16px 12px; gap: 8px; }
.download-option .btn-xl .icon { width: 20px; height: 20px; }
.download-size { text-align: center; color: var(--muted); font-weight: 800; font-size: .9rem; }
.download-os { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: .95rem; }
.download-os .icon { width: 18px; height: 18px; color: var(--sky-2); }
.download-note { margin: 14px 0 0; text-align: center; color: var(--faint); font-size: .92rem; font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
	position: relative; padding: 34px 28px 28px; text-align: center;
	background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink);
}
.step-num {
	position: absolute; top: -22px; left: 50%; translate: -50% 0;
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink);
	background: var(--sky-2); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.step-icon { width: 64px; height: 64px; margin: 6px auto 14px; }
.step-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); margin: 0; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: 30px; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.panel-title { font-size: 1.5rem; margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); }
.check-list .icon { width: 22px; height: 22px; color: var(--leaf); margin-top: 2px; }
.number-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.number-list li::marker { font-family: var(--display); font-weight: 700; color: var(--sky-2); }
.reward-row { display: flex; gap: 18px; align-items: center; }
.reward-row img { width: 64px; height: 64px; flex: none; }
.reward-row p { margin: 0; color: var(--muted); }

.callout { border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 18px; border: 2px solid; }
.callout p:last-child { margin-bottom: 0; }
.callout-info { background: rgba(78, 166, 255, .1); border-color: rgba(78, 166, 255, .45); }
.callout-astuce { background: rgba(90, 214, 107, .1); border-color: rgba(90, 214, 107, .45); }
.callout-attention { background: rgba(255, 207, 74, .1); border-color: rgba(255, 207, 74, .5); }

/* --- Vote ---------------------------------------------------------------------------------- */
.vote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vote-card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 30px 22px 26px; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink);
	transition: transform .25s var(--ease);
}
.vote-card:not(.is-soon):hover { transform: translateY(-6px); }
.vote-num {
	width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px;
	font-family: var(--display); font-weight: 700; font-size: 1.4rem; border-radius: 16px;
	background: linear-gradient(180deg, var(--sky-2), var(--blue)); border: 3px solid var(--ink); text-shadow: 0 2px 0 var(--ink);
}
.vote-card h3 { font-size: 1.25rem; }
.vote-domain { color: var(--faint); font-weight: 700; margin: 0; }
.vote-cooldown { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .92rem; margin: 10px 0 18px; }
.vote-cooldown .icon { width: 16px; height: 16px; }
.vote-card .btn { width: 100%; margin-top: auto; }

/* --- Wiki ---------------------------------------------------------------------------------- */
.wiki-search {
	display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto;
	background: var(--panel); border: 3px solid var(--ink); border-radius: 14px; padding: 0 16px; box-shadow: 0 5px 0 var(--ink);
}
.wiki-search .icon { width: 22px; height: 22px; color: var(--faint); flex: none; }
.wiki-search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; padding: 14px 0; outline: none; }
.wiki-search input::placeholder { color: var(--faint); }
.wiki-search:focus-within { border-color: var(--sky-3); }
.wiki-group + .wiki-group { margin-top: 48px; }
.wiki-group-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); margin-bottom: 16px; }
.wiki-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wiki-card {
	display: grid; grid-template-columns: 52px 1fr 20px; gap: 14px; align-items: center;
	padding: 18px; color: var(--text); background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 5px 0 var(--ink);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wiki-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink); }
.wiki-card img { width: 52px; height: 52px; padding: 6px; background: rgba(143, 211, 255, .1); border-radius: 12px; }
.wiki-card strong { display: block; font-family: var(--display); font-size: 1.12rem; }
.wiki-card small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.wiki-card .icon { width: 20px; height: 20px; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.wiki-card:hover .icon { transform: translateX(3px); color: var(--sky-2); }
.wiki-empty { text-align: center; color: var(--muted); }

.page-hero-wiki { text-align: left; padding-bottom: 50px; }
.page-hero-wiki .hero-lead { margin-inline: 0; margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; font-weight: 800; color: var(--faint); margin-bottom: 10px; }
.wiki-title { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.wiki-title img { width: 56px; height: 56px; filter: drop-shadow(0 3px 0 var(--ink)); }
.wiki-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 40px; padding: 50px 0 110px; align-items: start; }
.wiki-sidebar, .wiki-toc { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.wiki-side-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--leaf); margin: 18px 0 6px; }
.wiki-side-title:first-child { margin-top: 0; }
.wiki-sidebar a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.wiki-sidebar a img { width: 22px; height: 22px; }
.wiki-sidebar a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.wiki-sidebar a.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--sky-2); }
.wiki-toc a { color: var(--faint); font-size: .92rem; font-weight: 700; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.wiki-toc a:hover { color: var(--text); border-color: var(--sky-2); }

.prose { font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 2.2em 0 .7em; position: relative; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .6em; }
.prose .anchor { position: absolute; left: -1.1em; opacity: 0; color: var(--faint); transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose h3 { position: relative; }
.prose p, .prose li { color: #d3def7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sky-3); }
.prose strong { color: var(--text); }
.prose code {
	font-family: "Cascadia Code", Consolas, monospace; font-size: .88em;
	background: rgba(143, 211, 255, .12); border: 1px solid rgba(143, 211, 255, .2); color: var(--sky-1);
	padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 5px 0 var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th { background: var(--panel-2); text-align: left; font-family: var(--display); font-weight: 600; padding: 12px 16px; }
.prose td { padding: 11px 16px; border-top: 2px solid var(--line); background: var(--panel); vertical-align: top; }
.prose td:first-child { white-space: nowrap; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2.5em 0; }
.wiki-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.wiki-pager a { padding: 16px 20px; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 5px 0 var(--ink); color: var(--text); }
.wiki-pager a:hover { color: var(--text); background: var(--panel-2); }
.wiki-pager small { display: block; color: var(--faint); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.wiki-pager strong { font-family: var(--display); font-size: 1.1rem; }
.pager-next { text-align: right; grid-column: 2; }

/* --- Pied de page -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-deep); border-top: 3px solid var(--ink); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); margin-bottom: 6px; }
.footer-col a { color: var(--muted); font-weight: 700; }
.footer-col a:hover { color: var(--text); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--line); }
.footer-legal p { color: var(--faint); font-size: .86rem; margin-bottom: 6px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* --- Adaptatif ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.wiki-layout { grid-template-columns: 220px minmax(0, 1fr); }
	.wiki-toc { display: none; }
	.vote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.main-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px 16px 20px;
		background: rgba(8, 20, 64, .97); border-bottom: 3px solid var(--ink);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .2s var(--ease), opacity .2s, visibility .2s;
	}
	.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
	.main-nav a { padding: 12px 14px; font-size: 1.1rem; }
	.nav-only-mobile { display: block; }
	.nav-toggle { display: inline-flex; }
	.hide-mobile, .online-pill { display: none; }
	.hero { min-height: auto; padding-bottom: 130px; }
	.hero-grid, .page-hero-grid, .about-grid, .faq-grid, .cta-grid, .two-cols { grid-template-columns: 1fr; }
	.hero-stage { max-width: 420px; margin: 0 auto; order: -1; }
	.page-hero-stage { order: -1; max-width: 320px; margin-bottom: -20px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 2px solid var(--line); }
	.feature-grid, .steps, .wiki-cards { grid-template-columns: 1fr 1fr; }
	.feature-wide { grid-column: span 2; }
	.dex-layout { grid-template-columns: 1fr; }
	.dex-list { flex-direction: row; overflow-x: auto; max-height: none; }
	.dex-item { grid-template-columns: auto auto; flex: none; }
	.dex-dots { display: none; }
	.dex-stage { grid-template-columns: 1fr; }
	.dex-screen { min-height: 360px; }
	.dex-info { border-left: 0; border-top: 3px solid var(--ink); }
	.about-art { max-width: 360px; margin: 0 auto; }
	.cta-canvas { height: 280px; max-width: 360px; margin: 0 auto; }
	.wiki-layout { grid-template-columns: 1fr; padding-top: 30px; }
	.wiki-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.wiki-side-title { display: none; }
	.wiki-sidebar a { background: var(--panel); border: 2px solid var(--line); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: span 2; }
	.section { padding: 80px 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.header-actions .btn-primary { padding: 8px 14px; }
	.brand span { display: none; }
	.hero h1 { font-size: 2.4rem; }
	.hero-ctas .btn { width: 100%; }
	.stat { padding: 16px; column-gap: 10px; }
	.stat img { width: 34px; height: 34px; }
	.stat strong { font-size: 1.3rem; }
	.feature-grid, .steps, .wiki-cards, .vote-grid { grid-template-columns: 1fr; }
	.feature-wide { grid-column: auto; grid-template-columns: 1fr; }
	.feature-wide .feature-icon { grid-row: auto; width: 72px; height: 72px; margin-bottom: 14px; }
	.feature-full .feature-cta { grid-column: auto; grid-row: auto; margin-top: 18px; }
	.steps { gap: 36px; }
	.podium { gap: 8px; }
	.podium-step { width: 33%; }
	.podium-block strong { font-size: .95rem; }
	.podium-block span:last-child { font-size: .85rem; }
	.wiki-pager { grid-template-columns: 1fr; }
	.pager-next { grid-column: auto; }
	.prose td:first-child { white-space: normal; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
