:root {
  --bg: #0b0b0d;
  --bg-card: #17171b;
  --text: #f2f2f2;
  --text-muted: #a8a8ad;
  --accent: #ff5722;
  --accent-dark: #d84315;
  --border: #2a2a2f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.logo .emoji { font-size: 1.5rem; }

header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

nav a:hover { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 20px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
}

.lang-switch button:hover:not(.active) { color: var(--text); }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  color: var(--accent);
}

p, li { color: var(--text); }

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

main a { color: var(--accent); }

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero .bomb {
  font-size: 5rem;
  display: block;
  margin-bottom: 16px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
}

.cta:hover { background: var(--accent-dark); }

.cta.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.cta.secondary:hover {
  border-color: var(--accent);
  background: transparent;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.05rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Étapes « Comment jouer » */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 18px 68px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Styles de bombe */
.skins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.skin {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.skin .dot {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.skin strong { display: block; }
.skin span.req { color: var(--text-muted); font-size: 0.85rem; }

/* FAQ */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details p { margin: 10px 0 0; color: var(--text-muted); }

footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  color: var(--text-muted);
  margin-right: 16px;
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

.updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -8px;
}

.mail {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

ul { padding-left: 20px; }

@media (max-width: 520px) {
  h1 { font-size: 1.8rem; }
  nav a { margin-left: 14px; }
  .lang-switch { margin-left: 14px; }
}

/* a11y-contrast : texte blanc sur fond >= 4.5:1 */
.cta { background: #c0360f; }
.cta:hover { background: #a52e0c; }
.cta.secondary, .cta.secondary:hover { background: transparent; }
.lang-switch button.active, .steps li::before { background: #c0360f; }

/* a11y-contrast : texte blanc sur fond >= 4.5:1 */
.cta { background: #c0360f; }
.cta:hover { background: #a52e0c; }
.cta.secondary, .cta.secondary:hover { background: transparent; }
.lang-switch button.active, .steps li::before { background: #c0360f; }
