/* BZH Gaming — mêmes couleurs que les jeux (Orbital) : fond spatial, cyan et magenta néon. */
:root {
  --bg: #07070f;
  --bg-2: #0d0d1c;
  --panel: #12122a;
  --border: rgba(160, 170, 255, 0.16);
  --text: #e8e8ff;
  --muted: #9a9ac0;
  --accent: #00e5ff;
  --accent-2: #ff2bd6;
  --violet: #7c4dff;
  --gold: #ffcc33;
  --event: #ff7a1a;
  --grad: linear-gradient(90deg, var(--accent), var(--violet) 55%, var(--accent-2));
  --radius: 18px;
  --wrap: 1180px;
  --display: Orbitron, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ff3ff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 8px 12px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em;
}
.eyebrow-event { color: var(--event); }
.lead { font-size: 1.15rem; color: #c9c9ee; max-width: 46ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; transition: transform .3s; }
.brand:hover { transform: translateY(-1px); }
.logo { height: 44px; width: auto; filter: drop-shadow(0 0 10px rgba(124, 77, 255, .35)); }
.logo-wave { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw-wave 1.4s ease .3s forwards; }
@keyframes draw-wave { to { stroke-dashoffset: 0; } }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(0, 229, 255, .12); box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .35); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 77, 255, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 43, 214, .4); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .1); }

/* ---------- Fond étoilé */
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 52%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 420px 840px; } }

/* ---------- Accueil */
.hero {
  position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(124, 77, 255, .35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(0, 229, 255, .16), transparent 70%),
    var(--bg);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-visual { position: relative; aspect-ratio: 16 / 12; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(0, 229, 255, .08); }
.hero-visual .shot { position: absolute; width: 82%; }
.shot-back { right: 0; top: 0; transform: rotate(3deg); opacity: .9; }
.shot-front { left: 0; bottom: 0; transform: rotate(-2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 80px rgba(255, 43, 214, .18); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(160, 170, 255, .07); }
.section-head { margin-bottom: 36px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px; }
.game-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); }
.game-orbital:hover { box-shadow: 0 20px 60px rgba(0, 229, 255, .15); }
.game-sonic:hover { box-shadow: 0 20px 60px rgba(255, 204, 51, .14); }
.game-morioh:hover { box-shadow: 0 20px 60px rgba(255, 79, 163, .16); }
.game-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-media img { transform: scale(1.04); }
.game-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-family: var(--display); font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.game-body .actions { margin-top: auto; padding-top: 8px; }
.emblem { width: 36px; height: 36px; }
.badge { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(0, 229, 255, .12); color: var(--accent); margin-bottom: 12px; }
.badge-gold { background: rgba(255, 204, 51, .12); color: var(--gold); }
.badge-pink { background: rgba(255, 79, 163, .14); color: #ff7dbb; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.facts li { font-size: .85rem; color: var(--muted); padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pillars li { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); display: grid; gap: 2px; }
.pillars strong { font-family: var(--display); color: var(--accent); letter-spacing: .04em; }
.pillars span { color: var(--muted); }

/* ---------- Cartes d'articles */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, .4); }
.post-card[hidden] { display: none; }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card-link:hover { color: inherit; }
.post-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.post-card-cover img, .post-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.excerpt { color: var(--muted); font-size: .95rem; }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: .6em; }
.cat { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: rgba(124, 77, 255, .16); color: #c7b6ff; }
.cover-fallback {
  background:
    radial-gradient(circle at 75% 35%, rgba(255, 43, 214, .5), transparent 45%),
    radial-gradient(circle at 25% 70%, rgba(0, 229, 255, .45), transparent 50%),
    linear-gradient(135deg, #15153a, #07070f);
}

/* ---------- Blog */
.page-head { padding: clamp(48px, 7vw, 84px) 0 24px; background: radial-gradient(ellipse 60% 100% at 80% 0%, rgba(124, 77, 255, .25), transparent 70%); }
.page-head .actions.center, .page-head.center .lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: #fff; background: rgba(0, 229, 255, .16); border-color: rgba(0, 229, 255, .5); }

.post-head { padding: 40px 0 28px; }
.post-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
.post-head .lead { max-width: none; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }
.byline { color: var(--muted); font-size: .95rem; }
.post-cover { margin: 0 auto 40px; }
.post-cover-img { aspect-ratio: 21 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.post-cover figcaption { font-size: .8rem; color: var(--muted); text-align: right; margin-top: 8px; }
.post-cover figcaption a { color: var(--muted); }
.post-body { padding-bottom: 64px; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.post-body h3 { margin-top: 1.5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-2); color: #d6d6f5; font-style: italic; }
.post-body code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-body .tags { margin: 32px 0; }
.callout { margin: 2em 0; padding: 20px 24px; border-radius: 16px; background: rgba(0, 229, 255, .06); border: 1px solid rgba(0, 229, 255, .25); }
.callout-bzh { background: linear-gradient(135deg, rgba(124, 77, 255, .14), rgba(255, 43, 214, .08)); border-color: rgba(255, 43, 214, .35); }
.callout-warning { background: rgba(255, 204, 51, .07); border-color: rgba(255, 204, 51, .35); }
.callout-title { font-family: var(--display); font-weight: 800; color: var(--text); margin-bottom: .5em; }
.callout p:last-child { margin-bottom: 0; }
.sources { padding: 24px 28px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.sources h2 { font-size: 1.1rem; margin: 0 0 .8em; }
.sources ol { margin: 0 0 1em; font-size: .92rem; }

/* ---------- Pages jeux */
.game-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0; }
.game-hero-orbital { background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(124, 77, 255, .4), transparent 70%), var(--bg); }
.game-hero-sonic { background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(40, 110, 255, .4), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 90%, rgba(255, 204, 51, .14), transparent 70%), var(--bg); }
.game-hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.logo-orbital { display: flex; align-items: center; gap: 14px; letter-spacing: .14em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-orbital img { width: 64px; height: 64px; }
.logo-sonic { display: flex; align-items: center; gap: 14px; color: var(--gold); text-shadow: 0 3px 0 #c2410c, 0 0 30px rgba(255, 204, 51, .3); }
.game-hero-morioh { background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(255, 79, 163, .3), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 90%, rgba(255, 210, 63, .12), transparent 70%), var(--bg); }
.logo-morioh { color: #ffd23f; font-style: italic; text-shadow: 4px 4px 0 #ff4fa3, 0 0 30px rgba(255, 79, 163, .3); }
.logo-sonic img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.feature .num { font-family: var(--display); font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { margin-top: .4em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(0, 229, 255, .5); }
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.install-card { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.install-card p { color: var(--muted); margin: 0; }
.cta-band { display: flex; justify-content: center; margin-top: 40px; }
.acts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.acts li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.acts li div { display: grid; }
.acts li span:not(.act-num) { color: var(--muted); font-size: .92rem; }
.act-num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--display); font-weight: 800; color: #1b1300; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #e09400); box-shadow: 0 0 14px rgba(255, 204, 51, .35); }

/* ---------- Fil d'Ariane, fiches « en bref », FAQ, l'essentiel */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--accent); }
.facts-box { margin-bottom: 48px; padding: 22px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.facts-title { font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; color: var(--accent); margin-bottom: 14px; }
.facts-box dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }
.facts-box dl div { min-width: 0; }
.facts-box dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts-box dd { margin: 2px 0 0; }
.faq h2 { margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: #c9c9ee; margin: 0 0 18px; }
.post-body .faq { margin: 2.4em 0; }
.key-points { margin: 0 0 2em; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 229, 255, .08), rgba(124, 77, 255, .08)); border: 1px solid rgba(0, 229, 255, .3); }
.key-points ul { margin: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }
.post-head { padding-top: 24px; }

/* ---------- Pied de page */
.site-footer { border-top: 1px solid var(--border); background: #05050b; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-grid p { margin-top: 12px; max-width: 40ch; }
.footer-title { font-family: Inter, sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(160, 170, 255, .08); font-size: .8rem; color: #6f6f95; }
.footer-legal a { color: #8a8ab0; }

/* ---------- Responsive */
@media (max-width: 1080px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 960px) {
  .hero-inner, .game-hero-inner, .split, .about { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo { height: 36px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px;
    background: rgba(7, 7, 15, .97); border-bottom: 1px solid var(--border); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .games, .post-grid, .features, .install, .acts, .footer-grid { grid-template-columns: 1fr; }
  .game-body { padding: 22px; }
  .post-cover-img { aspect-ratio: 16 / 10; border-radius: 16px; }
  .sources { padding: 20px; }
  .btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .logo-wave { stroke-dashoffset: 0; }
}
