/*
Theme Name: Moonhaven
Theme URI: https://soulboundodyssey.fr
Author: Moonhaven
Description: Thème du site de Moonhaven — bleu nuit, accents dorés et lunaires, panneaux arrondis, comme l'interface du jeu. Les pages de Soulbound Odyssey (inscription, launcher, compte, devblog) restent servies sous « Soulbound Odyssey ».
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Propriétaire
Text Domain: moonhaven
*/

/* Couleurs reprises du thème d'interface du jeu (assets/ui/moonhaven_theme.tres). Les noms --gold, --blood, --stone…
   gardent ceux de l'ancien thème : les codes courts du plugin sbo-compte s'en servent. */
:root {
	--night: #0b1328;
	--night-2: #111c38;
	--panel: rgba(27, 42, 72, 0.92);
	--panel-solid: #1b2a48;
	--panel-hi: #22365a;
	--panel-deep: #121d36;
	--stone: #3f5f8f;
	--stone-hi: #6f9fdc;
	--stone-lo: #24385a;
	--blue: #5ea3ff;
	--blue-dark: #2f6fd1;
	--gold: #f5c86a;
	--gold-glow: #ffe2a0;
	--gold-dark: #b98a32;
	--blood: #2f6fd1;
	--blood-glow: #5ea3ff;
	--soul: #a9d8ff;
	--text: #e7ecfb;
	--dim: #a8b4d4;
	--ok: #7ee2a0;
	--bad: #ff8a7a;
	--radius: 18px;
	--title: "Fredoka", "Nunito", system-ui, sans-serif;
	--body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow: 0 10px 30px rgba(3, 8, 24, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--night);
	color: var(--text);
	font-family: var(--body);
	font-size: 1.05rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* Ciel de nuit : dégradé, halo de lune et étoiles discrètes. */
.sky {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 82% 8%, rgba(255, 226, 160, 0.16) 0, rgba(255, 226, 160, 0.05) 9%, transparent 26%),
		radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 46% 12%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
		radial-gradient(1px 1px at 64% 33%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 72% 72%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 90% 48%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
		radial-gradient(1px 1px at 8% 80%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 38% 88%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
		radial-gradient(ellipse at 50% 120%, rgba(94, 163, 255, 0.18), transparent 60%),
		linear-gradient(180deg, #0b1328 0%, #101b39 55%, #16224a 100%);
	background-size: auto, 340px 340px, 420px 420px, 380px 380px, 460px 460px, 400px 400px, 520px 520px, 360px 360px, 440px 440px, auto, auto;
}

::selection { background: var(--blue-dark); color: #fff; }

a { color: var(--soul); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold-glow); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	font-family: var(--title);
	font-weight: 600;
	color: var(--gold);
	line-height: 1.25;
	margin: 1.4em 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1em; }

code, kbd {
	background: var(--panel-deep);
	border: 1px solid var(--stone-lo);
	border-radius: 6px;
	color: var(--gold);
	padding: 0.05em 0.4em;
	font-size: 0.92em;
}
pre { background: var(--panel-deep); border: 1px solid var(--stone-lo); border-radius: 12px; padding: 14px; overflow-x: auto; }
blockquote { margin: 1em 0; padding: 0.6em 1em; border-left: 4px solid var(--gold); background: var(--panel-deep); border-radius: 0 12px 12px 0; color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--stone-lo); margin: 2em 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 8px 14px; background: var(--panel-solid); border: 2px solid var(--gold); border-radius: 10px;
}

/* ------------------------------------------------------------ panneaux et boutons (comme dans le jeu) */
.pixel-box {
	position: relative;
	background: var(--panel);
	border: 1.5px solid var(--stone);
	border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	padding: clamp(18px, 3vw, 32px);
	backdrop-filter: blur(6px);
}
.pixel-box.has-corners { border-color: rgba(245, 200, 106, 0.55); box-shadow: var(--shadow), 0 0 0 4px rgba(245, 200, 106, 0.06); }

.pixel-button,
.wp-block-button__link,
button.pixel-button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	font-family: var(--title);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.2;
	color: var(--text);
	background: var(--panel-hi);
	border: 1.5px solid var(--stone-hi);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(3, 8, 24, 0.35);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.pixel-button:hover, .pixel-button:focus-visible,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	color: #fff;
	background: #2b4470;
	border-color: var(--gold);
	text-decoration: none;
	transform: translateY(-2px);
}
.pixel-button:active, input[type="submit"]:active { transform: translateY(1px); }

/* Action principale : bleu lunaire (l'ancien « is-blood » du plugin). */
.pixel-button.is-blood, input[type="submit"] {
	color: #fff;
	background: linear-gradient(180deg, #6db0ff 0%, var(--blue-dark) 100%);
	border-color: #8cc3ff;
}
.pixel-button.is-blood:hover, input[type="submit"]:hover { background: linear-gradient(180deg, #84bdff 0%, #3a7ee0 100%); color: #fff; }

.tag {
	display: inline-block;
	padding: 6px 14px;
	font-family: var(--title);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--night);
	background: var(--gold);
	border-radius: 999px;
}

/* ------------------------------------------------------------ en-tête */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 19, 40, 0.82);
	border-bottom: 1px solid rgba(111, 159, 220, 0.25);
	backdrop-filter: blur(10px);
}
.site-header .inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gold);
	font-family: var(--title);
	font-weight: 600;
	font-size: 1.45rem;
	flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand:hover { text-decoration: none; color: var(--gold-glow); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav a {
	display: block;
	padding: 8px 14px;
	font-family: var(--title);
	font-weight: 500;
	font-size: 1.02rem;
	color: var(--text);
	border-radius: 999px;
	white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
	color: var(--gold-glow);
	background: rgba(63, 95, 143, 0.35);
	text-decoration: none;
}
.main-nav .menu-cta > a {
	margin-left: 6px;
	color: #fff;
	background: linear-gradient(180deg, #6db0ff 0%, var(--blue-dark) 100%);
	border: 1px solid #8cc3ff;
}
.main-nav .menu-cta > a:hover { background: linear-gradient(180deg, #84bdff 0%, #3a7ee0 100%); color: #fff; }

.nav-toggle {
	display: none;
	margin-left: auto;
	font-family: var(--title);
	font-weight: 600;
	font-size: 1rem;
	color: var(--text);
	background: var(--panel-hi);
	border: 1px solid var(--stone-hi);
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
}
@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(11, 19, 40, 0.97); border-bottom: 1px solid var(--stone-lo); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
	.main-nav .menu-cta > a { margin: 6px 0 0; text-align: center; }
}

/* Sous-menu des pages de Soulbound Odyssey */
.sbo-subnav { background: rgba(17, 28, 56, 0.9); border-bottom: 1px solid var(--stone-lo); }
.sbo-subnav .inner { max-width: 1180px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sbo-subnav .sbo-home { font-family: var(--title); font-weight: 600; color: var(--gold); }
.sbo-subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.sbo-subnav a { display: block; padding: 4px 10px; border-radius: 999px; color: var(--dim); font-size: 0.95rem; }
.sbo-subnav a:hover, .sbo-subnav .is-current a { color: var(--text); background: rgba(63, 95, 143, 0.35); text-decoration: none; }

/* ------------------------------------------------------------ mise en page */
.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 16px 72px; }
.site-main.narrow { max-width: 860px; }

.page-title { text-align: center; margin-top: 0.3em; }
.magical { text-shadow: 0 0 22px rgba(245, 200, 106, 0.35); }

.section-title { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.section-title::before {
	content: "";
	flex: none;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: radial-gradient(circle at 65% 35%, transparent 42%, var(--gold) 44%);
	box-shadow: 0 0 12px rgba(245, 200, 106, 0.45);
	transform: rotate(-25deg);
}

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.stack > * + * { margin-top: 48px; }
.hint { color: var(--dim); font-size: 0.95rem; }

/* ------------------------------------------------------------ accueil */
.hero {
	position: relative;
	min-height: min(86vh, 820px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	background: var(--night) var(--hero-image, none) center / cover no-repeat;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(11, 19, 40, 0.35) 65%),
		linear-gradient(180deg, rgba(11, 19, 40, 0.15) 0%, rgba(11, 19, 40, 0.05) 40%, rgba(11, 19, 40, 0.75) 78%, var(--night) 100%);
}
.hero.is-sbo { min-height: min(62vh, 560px); }
.hero .inner { position: relative; z-index: 2; text-align: center; padding: 48px 16px 64px; max-width: 900px; }
.hero-title {
	margin: 14px 0 10px;
	font-size: clamp(3rem, 9vw, 5.6rem);
	color: #fff8e8;
	text-shadow: 0 4px 0 #1d3360, 0 0 30px rgba(245, 200, 106, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
	letter-spacing: 0.01em;
}
.hero .tagline {
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	color: #f2f5ff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
	margin: 0 auto 26px;
	max-width: 680px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .platforms { margin: 22px 0 0; color: var(--dim); font-size: 0.95rem; text-shadow: 0 1px 6px #000; }

/* Lucioles qui montent dans la bannière */
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes span {
	position: absolute;
	bottom: -10px;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: #ffe9a8;
	box-shadow: 0 0 10px 2px rgba(255, 220, 140, 0.8);
	opacity: 0;
	animation: mote 11s linear infinite;
}
@keyframes mote {
	0% { transform: translate(0, 0); opacity: 0; }
	15% { opacity: 0.9; }
	50% { transform: translate(18px, -40vh); }
	100% { transform: translate(-10px, -80vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.motes span { animation: none; }
	.pixel-button { transition: none; }
	html { scroll-behavior: auto; }
}

.server-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 6px 14px;
	background: rgba(11, 19, 40, 0.75);
	border: 1px solid var(--stone);
	border-radius: 999px;
	font-size: 0.95rem;
}
.server-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; box-shadow: 0 0 6px currentColor; }
.server-status.is-up .dot { background: var(--ok); color: var(--ok); }
.server-status.is-down .dot { background: var(--bad); color: var(--bad); }

.feature h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.feature .glyph { font-size: 1.5rem; }
.feature p { color: var(--dim); margin: 0; }
a.pixel-box.feature { display: block; text-decoration: none; transition: transform 0.12s ease, border-color 0.12s ease; }
a.pixel-box.feature:hover, a.pixel-box.feature:focus-visible { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.sbo-teaser { background: linear-gradient(120deg, rgba(27, 42, 72, 0.92), rgba(48, 30, 60, 0.92)); }

.shots-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shots-strip a { display: block; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--stone); box-shadow: var(--shadow); transition: transform 0.12s ease, border-color 0.12s ease; }
.shots-strip a:hover { border-color: var(--gold); transform: translateY(-3px); }
.shots-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--stone); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: block; text-align: center; color: var(--dim); margin-top: 6px; font-size: 0.95rem; }

/* ------------------------------------------------------------ billets */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .thumb { display: block; margin: calc(-1 * clamp(18px, 3vw, 32px)) calc(-1 * clamp(18px, 3vw, 32px)) 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.post-card .thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card h2, .post-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.post-card .excerpt { color: var(--dim); flex: 1; }
.post-card .excerpt p { margin: 0; }
.meta { font-size: 0.9rem; color: var(--dim); margin-bottom: 8px; }
.meta .date { color: var(--soul); }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { border-bottom: 1px solid var(--stone-lo); padding-bottom: 8px; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li::marker { color: var(--gold); }
.entry-content li + li { margin-top: 4px; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { text-align: center; color: var(--dim); font-size: 0.92rem; margin-top: 6px; }
.entry-content img { border-radius: 12px; }

.wp-block-gallery.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 14px !important;
}
.wp-block-gallery.wp-block-gallery > figure.wp-block-image { width: auto !important; position: relative; border-radius: 14px; overflow: hidden; }
.wp-block-gallery figure.wp-block-image { margin: 0; }
.wp-block-gallery figure.wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; border-radius: 0; }
.wp-block-gallery figure.wp-block-image figcaption { background: linear-gradient(transparent, rgba(11, 19, 40, 0.9)) !important; font-size: 0.92rem !important; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stone); background: var(--panel); font-family: var(--title); }
.pagination .current { color: var(--night); background: var(--gold); border-color: var(--gold); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ------------------------------------------------------------ formulaires (plugin sbo-compte) */
.sbo-form { display: grid; gap: 16px; }
.sbo-form label { display: block; font-family: var(--title); font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.sbo-form .hint { display: block; margin-top: 4px; }
.sbo-form input[type="text"],
.sbo-form input[type="password"],
.sbo-form input[type="email"],
.sbo-form input[type="url"],
.sbo-form select,
.sbo-form textarea,
input[type="search"] {
	width: 100%;
	padding: 11px 14px;
	font-family: var(--body);
	font-size: 1rem;
	color: #fff;
	background: var(--panel-deep);
	border: 1.5px solid var(--stone);
	border-radius: 12px;
}
.sbo-form input:focus, .sbo-form select:focus, .sbo-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 200, 106, 0.2); }
.sbo-form textarea { resize: vertical; min-height: 140px; }
.sbo-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
	background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.sbo-form select option { background: var(--panel-deep); }
.sbo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sbo-form .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sbo-contact { text-align: center; color: var(--dim); }

.notice { padding: 12px 16px; border: 1.5px solid var(--stone); border-radius: 12px; background: var(--panel-deep); margin-bottom: 18px; }
.notice.is-error { border-color: var(--bad); color: #ffd9d2; background: rgba(90, 24, 24, 0.55); }
.notice.is-success { border-color: var(--ok); color: #dcfce7; background: rgba(12, 60, 34, 0.55); }
.notice strong { font-family: var(--title); display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------ statistiques (SBO) */
.sbo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sbo-stats .stat {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 18px 12px; text-align: center;
	background: var(--panel); border: 1.5px solid var(--stone); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sbo-stats .value { font-family: var(--title); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--gold); }
.sbo-stats .label { color: var(--dim); font-size: 0.95rem; }
.sbo-stats .stat-online .value { color: var(--ok); }
.sbo-stats .stat-breaches .value { color: #c4a6ff; }
.sbo-stats.is-down .stat-online .value, .sbo-stats.is-down .stat-breaches .value { color: var(--dim); }

/* ------------------------------------------------------------ mon compte (SBO) */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-head p { margin: 0; }
.account-head .hello { font-family: var(--title); font-weight: 600; font-size: 1.3rem; color: var(--gold); margin-bottom: 4px; }
.account-head .sub { color: var(--dim); }
#espace > * + * { margin-top: 28px; }

.character-card { display: flex; gap: 18px; align-items: flex-start; }
.character-card .portrait {
	flex: none; width: 96px; height: 104px; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 60%, rgba(245, 200, 106, 0.18), transparent 70%), var(--panel-deep);
	border: 1.5px solid var(--stone); border-radius: 14px;
}
.character-card .portrait img { width: 80px; height: 88px; image-rendering: pixelated; }
.character-card h3 { margin: 0 0 4px; }
.character-card .sub { margin: 0 0 10px; color: var(--dim); }
.character-card .online { color: var(--ok); }
.character-card .soul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.character-card .soul .bar { display: block; height: 10px; background: var(--panel-deep); border: 1px solid var(--stone); border-radius: 999px; overflow: hidden; }
.character-card .soul .bar span { display: block; height: 100%; background: linear-gradient(90deg, #5fc8ff, var(--soul)); }
.character-card .soul .n { font-size: 0.92rem; color: var(--soul); }
.character-card.is-inert { filter: grayscale(0.7); }
.character-card.is-inert .soul .n { color: #fca5a5; }
.character-card .facts { list-style: none; padding: 0; margin: 0; color: var(--dim); font-size: 0.95rem; }
.character-card .facts li + li { margin-top: 2px; }
.character-card .info { min-width: 0; flex: 1; }
@media (max-width: 520px) { .character-card { flex-direction: column; } }

/* ------------------------------------------------------------ téléchargements */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 8px; }
.download-grid .pixel-button { justify-content: space-between; width: 100%; padding: 14px 18px; border-radius: 16px; text-align: left; }
.download-grid .os { display: flex; align-items: center; gap: 12px; }
.download-grid .os small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }
.download-grid .size { font-family: var(--body); font-size: 0.82rem; background: rgba(11, 19, 40, 0.45); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.steps { list-style: none; padding: 0; margin: 22px 0 14px; counter-reset: step; }
.steps li {
	counter-increment: step;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 14px;
	background: var(--panel-deep);
	border: 1px solid var(--stone-lo);
	border-radius: 14px;
	margin-bottom: 10px;
}
.steps li::before {
	content: counter(step);
	flex: none;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	font-family: var(--title);
	font-weight: 600;
	color: var(--night);
	background: var(--gold);
}

/* ------------------------------------------------------------ visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(5, 9, 20, 0.94); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox .caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text); }
.lightbox button {
	position: absolute; font-family: var(--title); font-size: 1.4rem; line-height: 1; color: var(--text);
	background: var(--panel-hi); border: 1px solid var(--stone-hi); border-radius: 50%; width: 46px; height: 46px; cursor: pointer;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; }
.lightbox .next { right: 16px; top: 50%; }

/* ------------------------------------------------------------ pied de page */
.site-footer { border-top: 1px solid var(--stone-lo); background: rgba(8, 13, 28, 0.9); color: var(--dim); font-size: 0.92rem; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer .copy { display: flex; align-items: center; gap: 10px; }
.site-footer .copy img { border-radius: 8px; }
.site-footer ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }

.alignwide { max-width: 1180px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }

@media (max-width: 420px) {
	.brand span { font-size: 1.25rem; }
	.hero .actions .pixel-button { width: 100%; }
}
