/* Supermarché Ensemble — site de présentation. Thème sombre, accent rouge (même palette que le jeu). */
:root {
  --bg: #0f1419;
  --bg-2: #161c24;
  --bg-3: #1f2733;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f1f2f4;
  --text-dim: #aab1bb;
  --accent: #db4330;
  --accent-2: #f0614b;
  --ok: #58d68d;
  --radius: 14px;
  --max: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-title: "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
.lead { color: var(--text-dim); font-size: 1.15rem; max-width: 720px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 1px solid var(--border); background: var(--bg-3); color: var(--text);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; background: #273141; }
.btn.primary { background: var(--accent); border-color: var(--accent-2); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn small { font-weight: 500; opacity: .8; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 20, 25, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; color: var(--text); font-size: 1.1rem; }
.nav .brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--text-dim); font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--text); text-decoration: none; }
.nav .cta { margin-left: 10px; padding: 9px 16px; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* Héros */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  background: #000 center/cover no-repeat;
  padding: 100px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 13, 18, 0.95) 0%, rgba(10, 13, 18, 0.78) 45%, rgba(10, 13, 18, 0.25) 100%);
}
.hero .wrap { position: relative; }
.hero .tag { display: inline-block; background: rgba(219, 67, 48, 0.18); color: #ff9e8f; border: 1px solid rgba(219, 67, 48, 0.4); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 18px; }
.hero h1 span { color: var(--accent-2); }
.hero .lead { font-size: 1.25rem; color: #d6dae0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-dim); font-size: .95rem; }
.hero .facts span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-3); cursor: zoom-in; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .2s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; color: var(--text-dim); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; }
.lightbox p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--text-dim); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); margin: 0; font-size: .98rem; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-dim); font-size: .95rem; }

/* Journée */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 64px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); }
.step p { color: var(--text-dim); margin: 0; font-size: .96rem; }

/* Téléchargement */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: stretch; }
.dl { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dl.reco { border-color: rgba(219, 67, 48, 0.6); box-shadow: 0 0 0 3px rgba(219, 67, 48, 0.12); }
.dl .badge { align-self: flex-start; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.dl .meta { color: var(--text-dim); font-size: .92rem; }
.dl code { font-size: .78rem; word-break: break-all; color: var(--text-dim); display: block; background: var(--bg); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.dl .btn { margin-top: auto; justify-content: center; }
.notice { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 196, 0, 0.08); border: 1px solid rgba(255, 196, 0, 0.3); color: #ffe6a6; font-size: .95rem; }
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 26px; }
.req div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: .95rem; color: var(--text-dim); }
.req strong { color: var(--text); display: block; margin-bottom: 4px; }

/* FAQ */
details { background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--text-dim); margin: 10px 0 0; }

/* Multijoueur */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

footer { padding: 40px 0 60px; color: var(--text-dim); font-size: .92rem; border-top: 1px solid var(--border); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
footer h3 { font-size: 1rem; color: var(--text); }
.muted { color: var(--text-dim); }
