/* Optimus Studio LLC — feuille de style commune */
:root {
  color-scheme: dark;
  --bg: #0a0614;
  --bg-2: #120b24;
  --surface: #181030;
  --surface-2: #211640;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1ff;
  --muted: #aaa1c8;
  --faint: #6f6690;
  --cyan: #38e1ff;
  --magenta: #ff45b8;
  --amber: #ffb224;
  --green: #5dff9e;
  --red: #ff4d5e;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 20, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)); color: #0a0614; font-weight: 900; font-size: 17px;
}
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.nav .btn { margin-left: 6px; color: #0a0614; background: var(--cyan); }
.nav .btn:hover { color: #0a0614; background: var(--cyan); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 20px; background: rgba(10, 6, 20, 0.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1;
  color: #0a0614; background: var(--cyan); border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(56, 225, 255, .35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: none; }
.btn-amber { background: var(--amber); }
.btn-amber:hover { box-shadow: 0 8px 28px rgba(255, 178, 36, .35); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Boutons des stores */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.28);
  transition: transform .15s ease, border-color .2s ease;
}
.store-btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(255,255,255,.6); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: .7rem; opacity: .85; letter-spacing: .02em; }
.store-btn strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Cartes et grilles ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
}
.num { font-size: .8rem; font-weight: 800; letter-spacing: .2em; color: var(--magenta); margin-bottom: 14px; display: block; }

/* Fond étoilé discret */
.stars::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  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% 72%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, #ffd6f2 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 92%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 52%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}

/* ---------- Accueil du studio ---------- */
.hero-studio { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-studio::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 69, 184, .18), transparent 70%);
  pointer-events: none;
}
.hero-studio .wrap { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) { .hero-studio .wrap { grid-template-columns: 1fr; } }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding: 0; list-style: none; }
.stat-row strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat-row span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.feature-game {
  position: relative; display: block; border-radius: 24px; overflow: hidden; color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 9 / 8; background: var(--surface);
}
.feature-game:hover { text-decoration: none; }
.feature-game img.bg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-game:hover img.bg { transform: scale(1.04); }
.feature-game .overlay {
  position: absolute; inset: auto 0 0 0; padding: 24px;
  background: linear-gradient(0deg, rgba(10,6,20,.95) 10%, rgba(10,6,20,0));
}
.feature-game .logo { width: min(260px, 60%); margin-bottom: 6px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(93, 255, 158, .14); color: var(--green); border: 1px solid rgba(93,255,158,.35);
}

.game-card {
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.game-card .media { min-height: 320px; background: #000; }
.game-card .media img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .game-card { grid-template-columns: 1fr; } .game-card .media { min-height: 0; aspect-ratio: 16/10; } }

.cta-band {
  border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, rgba(56,225,255,.14), rgba(255,69,184,.14)); border: 1px solid var(--line-strong);
}
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); max-width: 620px; }

/* ---------- Page Space Empire ---------- */
.se-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.se-hero picture, .se-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.se-hero .bg { object-fit: cover; object-position: 50% 40%; }
.se-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(10,6,20,.55) 40%, rgba(10,6,20,.15) 70%, rgba(10,6,20,.55)),
    radial-gradient(ellipse at 20% 100%, rgba(10,6,20,.8), transparent 60%);
}
.se-hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); }
.se-hero .logo { width: min(520px, 88vw); margin: 0 0 12px -8px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)); }
.se-hero .lead { color: #e6e0ff; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.se-hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.se-hero .badges li {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
  background: rgba(10,6,20,.6); border: 1px solid var(--line-strong);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo figcaption {
  position: absolute; left: 10px; bottom: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(10,6,20,.75); border: 1px solid var(--line-strong);
}
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check li { padding-left: 30px; position: relative; color: var(--muted); }
.check li strong { color: var(--text); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
}

.phone {
  position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 540 / 1170; border-radius: 38px;
  padding: 10px; background: linear-gradient(160deg, #3a2d63, #120b24); box-shadow: var(--shadow), 0 0 0 1px var(--line-strong);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #000; }
.sound-hint { text-align: center; font-size: .8rem; color: var(--faint); margin-top: 12px; }

/* Carrousel de captures */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 62vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
}
.carousel img { border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: center; aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.carousel-wrap { max-width: calc(var(--max) + 2 * 32px); margin: 0 auto; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.event { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.event img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.event figcaption { padding: 14px 16px 16px; }
.event figcaption strong { display: block; font-size: 1rem; }
.event figcaption span { font-size: .9rem; color: var(--muted); }

.final-cta { text-align: center; }
.final-cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 10px 40px rgba(56,225,255,.25); }
.final-cta .store-row { justify-content: center; margin-top: 24px; }

/* ---------- Pages de texte (confidentialité, support) ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h3 { font-size: 1.08rem; margin-top: 1.6em; }
.doc p, .doc li { color: #d9d3f0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc .updated { color: var(--faint); font-size: .9rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.toc li { margin: 0 0 .35em; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 700; color: var(--text); }
td { color: #d9d3f0; }
tr:last-child td { border-bottom: 0; }
.callout { border-left: 3px solid var(--cyan); background: rgba(56,225,255,.06); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.2em 0; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; }

/* ---------- Page de téléchargement ---------- */
.dl { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.dl .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 18px; box-shadow: 0 10px 40px rgba(56,225,255,.25); }
.dl .store-row { justify-content: center; margin-top: 24px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .92rem; background: #08050f; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Apparition douce au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-game img.bg, .btn, .store-btn { transition: none; }
}
