/* Thème partagé — landing (/) et pages par jeu (/jeux/...). */
:root {
  --night: #0a0a0f;
  --panel: #15151f;
  --neon: #a855f7;
  --neon2: #ec4899;
  --txt: #f5f5f7;
  --muted: #9a9aa8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--txt);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.display { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.04em; line-height: 1; }
.grad {
  background: linear-gradient(90deg, var(--neon), var(--neon2), var(--neon));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 9999px; font-weight: 700; font-size: 17px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  color: #fff; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(236, 72, 153, 0.6); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 9999px; font-weight: 600; font-size: 16px;
  background: rgba(255, 255, 255, 0.05); color: var(--txt); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 28px; letter-spacing: 0.12em; text-decoration: none; }
.brand svg { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.55)); }

/* Hero */
.hero { position: relative; text-align: center; padding: 70px 0 60px; }
.hero::before {
  content: ''; position: absolute; inset: -10% 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(60% 60% at 50% 20%, rgba(168, 85, 247, 0.28), transparent 70%),
    radial-gradient(50% 50% at 60% 40%, rgba(236, 72, 153, 0.2), transparent 70%);
}
.hero-game { padding: 48px 0 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.hero-logo { animation: float 3s ease-in-out infinite; }
h1 { font-size: clamp(36px, 8vw, 72px); margin: 14px 0 18px; }
.hero p.lead { max-width: 640px; margin: 0 auto 28px; color: #cfcfd8; font-size: clamp(16px, 2.3vw, 19px); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip { font-size: 13px; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 9999px; padding: 7px 14px; background: rgba(255, 255, 255, 0.03); }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--txt); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 5vw, 42px); text-align: center; margin-bottom: 10px; }
.sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 22px;
}
a.card { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, border-color 0.2s ease; }
a.card:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, 0.4); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neon); border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 9999px; padding: 3px 10px; margin-bottom: 12px; }

/* Prose (règles / points forts) */
.prose { max-width: 760px; margin: 0 auto; }
.prose li { margin: 0 0 12px 22px; color: #d6d6de; font-size: 16px; }
.prose li b { color: var(--txt); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 64px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; background: rgba(255, 255, 255, 0.02); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: 'Bebas Neue'; font-size: 20px; background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #fff; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 18px 20px; background: rgba(255, 255, 255, 0.02); }
.qa h3 { font-size: 16px; margin-bottom: 6px; }
.qa p { color: var(--muted); font-size: 15px; }

/* CTA band */
.band { text-align: center; border: 1px solid rgba(168, 85, 247, 0.25); border-radius: 28px; padding: 48px 24px; background: radial-gradient(80% 120% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%); }

/* Footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 32px 0 48px; text-align: center; color: var(--muted); font-size: 13px; }
footer .warn { color: #b9b9c4; margin-top: 8px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .hero { padding: 48px 0 40px; } section { padding: 44px 0; } }

/* Pages légales */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 6vw, 46px); text-align: left; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.legal h2 { font-size: 21px; text-align: left; margin: 30px 0 10px; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { color: #cfcfd8; font-size: 15px; margin-bottom: 10px; }
.legal ul, .legal ol { margin: 0 0 12px 22px; }
.legal a { color: var(--neon); }
.legal .box { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px 20px; background: rgba(255, 255, 255, 0.02); margin: 14px 0; }
.legal .box p:last-child { margin-bottom: 0; }

/* Liens légaux en pied de page */
.footlinks { margin-top: 14px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footlinks a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footlinks a:hover { color: var(--txt); }
