@font-face { font-family: "Lilita One"; src: url("/fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #08131f;
  --sea: #0a1828;
  --sea-2: #0f2438;
  --card: #10283e;
  --line: #1f3d58;
  --text: #e8eef4;
  --muted: #9fb3c6;
  --brass: #e0a33a;
  --brass-hi: #ffe08a;
  --brass-lo: #9a6418;
  --wax: #d43a2e;
  --parchment: #f3e2b4;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
}

/* One language visible at a time; <html lang> is set before paint. */
html[lang="fr"] .en, html[lang="en"] .fr { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--sea);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.1; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(8, 19, 31, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--parchment); text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--brass-hi); }
.lang-toggle {
  display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sea-2); cursor: pointer; font: 800 .8rem "Nunito", sans-serif;
}
.lang-toggle span { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
html[lang="fr"] [data-set="fr"], html[lang="en"] [data-set="en"] { background: var(--brass); color: var(--night); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 12px;
  font-family: var(--display); font-size: 1.2rem; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass {
  color: #2a1704;
  background: linear-gradient(#ffe08a, #e0a33a 55%, #b87a22);
  border: 2px solid #5a3a10;
  box-shadow: 0 4px 0 #5a3a10, 0 10px 24px rgba(224, 163, 58, .25);
}
.btn-brass:hover { box-shadow: 0 6px 0 #5a3a10, 0 14px 30px rgba(224, 163, 58, .35); }
.btn-ghost { color: var(--parchment); border: 2px solid var(--line); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--brass); }
.btn-small { padding: 10px 18px; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 9vw, 110px) 16px clamp(90px, 12vw, 150px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(224, 163, 58, .18), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, #12385a, transparent 70%),
    var(--night);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-logo { width: clamp(150px, 22vw, 220px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 5rem); color: var(--parchment); text-shadow: 0 4px 0 #5a3a10, 0 10px 30px rgba(0, 0, 0, .5); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); margin: 14px auto 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fineprint { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

/* Games */
.games { max-width: 1180px; margin: 0 auto; padding: 40px 16px 30px; }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--parchment); margin: 0 0 40px; }
.game {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-bottom: clamp(48px, 8vw, 90px);
}
.game.flip .game-media { order: 2; }
.game-media { position: relative; }
.game-media > img:first-child { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.game-logo { position: absolute; width: 38%; right: 4%; top: 5%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.shots img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; transition: border-color .12s; }
.shots a:hover img { border-color: var(--brass); }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.game-head > img { border-radius: 12px; }
.game-head > div { flex: 1; min-width: 0; }
.game-head h3 { margin: 0; font-size: 2.1rem; color: var(--parchment); }
.genre { margin: 0; color: var(--muted); font-weight: 700; }
.badge {
  margin-left: auto; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 800; font-size: .82rem; color: var(--night); background: var(--brass);
}
.badge-red { background: var(--wax); color: #fff; }
.facts { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 5px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.game-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Launcher */
.launcher { padding: 20px 16px 80px; }
.launcher-card {
  max-width: 980px; margin: 0 auto; padding: clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 15% 30%, rgba(224, 163, 58, .14), transparent 60%), var(--sea-2);
}
.launcher-card > img { width: clamp(110px, 16vw, 160px); height: auto; }
.launcher h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--parchment); }
.steps { margin: 14px 0 24px; padding-left: 1.3em; color: var(--muted); }
.steps li { margin-bottom: 6px; }
.steps b { color: var(--text); }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px;
  padding: 28px 16px; border-top: 1px solid var(--line); background: var(--night); color: var(--muted); font-size: .92rem;
}
.footer p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brass-hi); }

@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game.flip .game-media { order: 0; }
  .launcher-card { grid-template-columns: 1fr; text-align: center; }
  .launcher-card > img { margin: 0 auto; }
  .steps { text-align: left; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .badge { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
