/* =====================================================================
   Kraken Mods — thème noir + rouge (le même que le mod menu)
   ===================================================================== */

:root {
  --bg: #070709;
  --bg-2: #0c0c0f;
  --panel: #121216;
  --panel-2: #18181d;
  --raised: #212128;
  --border: #26262e;
  --red: #e0141f;
  --red-hover: #ff3640;
  --red-glow: rgba(224, 20, 31, 0.35);
  --text: #f0f0f2;
  --muted: #8f8f99;
  --dim: #5f5f68;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Rajdhani", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
/* height: auto garde les proportions malgré les attributs width/height (utiles contre les sauts de mise en page) */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

/* Lien d'évitement (accessibilité) : visible seulement au clavier */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  transition: top 0.15s;
}

.skip-link:focus { top: 12px; }

/* Bloc de texte de présentation */
.prose { max-width: 820px; }
.prose h2 { margin: 12px 0 22px; }
.prose p { margin: 0 0 16px; color: var(--muted); font-size: 1.02rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a, .faq a { color: #ff5a62; text-decoration: underline; text-underline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typo ---------- */

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

.red { color: var(--red); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 14px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 30px -8px var(--red-glow); }
.btn--red:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 12px 34px -8px var(--red-glow); }

.btn--ghost { background: var(--panel); border-color: var(--border); }
.btn--ghost:hover { background: var(--raised); border-color: #34343e; }

.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Pastilles ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.pill--red { background: rgba(224, 20, 31, 0.12); border-color: rgba(224, 20, 31, 0.45); color: #ff5a62; }

.pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bd46b;
  box-shadow: 0 0 0 3px rgba(43, 212, 107, 0.18);
}

kbd {
  display: inline-block;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--raised);
  border: 1px solid #34343e;
  border-bottom-width: 3px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.86em;
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  color: #ff6b72;
}

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.header__actions:empty { display: none; }

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.is-active { color: #fff; background: var(--red); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(224, 20, 31, 0.22), transparent 70%),
    radial-gradient(closest-side at 15% 80%, rgba(224, 20, 31, 0.08), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero--home { text-align: center; padding-top: 56px; }

.hero__logo {
  width: min(340px, 72vw);
  margin: 0 auto 8px;
  filter: drop-shadow(0 20px 60px rgba(224, 20, 31, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero--home h1 { margin: 10px 0 18px; }

.hero__lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.12rem;
  color: var(--muted);
}

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

/* Hero d'une page de mod : texte + capture */
.hero--mod { padding-top: 56px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.hero--mod h1 { margin: 16px 0 18px; }

.h1-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.hero--mod .hero__lead { margin: 0 0 30px; }
.hero--mod .hero__actions { justify-content: flex-start; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Cadre de capture d'écran */
.screen {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

button.screen {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s;
}

button.screen:hover { border-color: rgba(224, 20, 31, 0.5); }

.screen--glow { box-shadow: 0 40px 100px -40px var(--red-glow), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }

.screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }
.screen__bar i:first-child { background: var(--red); }

.screen__bar span { margin-left: 8px; font-size: 0.75rem; color: var(--dim); font-weight: 600; }

.screen { overflow: hidden; }
.screen img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Bande de stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { background: var(--panel); padding: 24px; text-align: center; }

.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}

.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Grille de mods (accueil) ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.filter {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter:hover { color: var(--text); background: var(--raised); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.mod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Lien qui recouvre toute la carte (le texte reste lisible et sélectionnable par les moteurs) */
.mod-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.mod-card__link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.mod-card:has(.mod-card__link):hover {
  transform: translateY(-4px);
  border-color: rgba(224, 20, 31, 0.55);
  box-shadow: 0 24px 60px -30px var(--red-glow);
}

.mod-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  overflow: hidden;
}

.mod-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.mod-card:has(.mod-card__link):hover .mod-card__cover img { transform: scale(1.04); }

.mod-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--panel) 0%, transparent 55%);
}

.mod-card__badge { position: absolute; top: 14px; right: 14px; z-index: 1; }

.mod-card__body { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 22px; flex: 1; }

.mod-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mod-card__title h3 { font-size: 1.5rem; }
.mod-card__title small { font-weight: 700; color: var(--red); font-size: 0.85rem; }

.mod-card__body p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.mod-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

/* Carte « bientôt » */
.mod-card--soon .mod-card__cover {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--panel-2);
}

.mod-card--soon .mod-card__cover::after { display: none; }
.mod-card--soon .mod-card__cover img { width: 90px; height: 90px; object-fit: contain; opacity: 0.25; filter: grayscale(1); }
.mod-card--soon h3 { color: var(--muted); }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- Cartes de points forts ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(224, 20, 31, 0.12);
  border: 1px solid rgba(224, 20, 31, 0.35);
  color: var(--red);
  margin-bottom: 18px;
}

.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Réplique du mod menu (page de mod) ---------- */

.menu-demo {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #050506;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -50px var(--red-glow);
}

.menu-demo__side {
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  border-radius: 10px;
  background: var(--panel);
}

.menu-demo__side img { width: 120px; margin: 0 auto 18px; }

.menu-demo__cat {
  display: block;
  width: 100%;
  padding: 9px 14px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.menu-demo__cat:hover { background: var(--raised); color: var(--text); }
.menu-demo__cat.is-active { background: var(--red); color: #fff; font-weight: 700; }

.menu-demo__brand { margin-top: auto; padding: 18px 8px 4px; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.menu-demo__brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 0.75rem; color: var(--dim); }

.menu-demo__main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 28px;
  border-radius: 10px;
  background: var(--panel);
  min-height: 420px;
}

.menu-demo__panel { animation: fade 0.3s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.menu-demo__panel h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 6px; }
.menu-demo__panel > p { margin: 0 0 20px; color: var(--muted); }

.option-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.option-list li { display: flex; gap: 14px; align-items: flex-start; }

.option-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 8px #fff;
}

.option-list strong { display: block; font-size: 0.98rem; }
.option-list span { display: block; font-size: 0.88rem; color: var(--muted); }

.menu-demo__shot { align-self: center; cursor: zoom-in; }
/* Zoom sur le coin haut-gauche des captures, là où se trouve le menu */
.menu-demo__shot img { transform: scale(1.8); transform-origin: 0 0; }

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  text-align: left;
}

.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.4s, opacity 0.3s;
}

.gallery__item:hover img { transform: scale(1.03); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 60px 70px;
  background: rgba(3, 3, 4, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-weight: 600; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Installation ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step a { color: #ff5a62; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Raccourcis / commandes ---------- */

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.table-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-card h3 { padding: 20px 24px; border-bottom: 1px solid var(--border); }

.table-card table { width: 100%; border-collapse: collapse; }

.table-card td { padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 0.93rem; vertical-align: middle; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card td:first-child { width: 1%; white-space: nowrap; }
.table-card td:last-child { color: var(--muted); }

/* ---------- Journal des versions ---------- */

.changelog { position: relative; max-width: 760px; }

.changelog::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.release { position: relative; padding: 0 0 34px 40px; }
.release:last-child { padding-bottom: 0; }

.release::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--dim);
}

.release:first-child::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(224, 20, 31, 0.18); }

.release__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.release__head h3 { font-size: 1.4rem; }

.release ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.release li { margin: 3px 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }

.faq details {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.faq details[open] { border-color: #34343e; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Appel à l'action ---------- */

.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 20, 31, 0.3), transparent 50%),
    var(--panel);
  border: 1px solid rgba(224, 20, 31, 0.35);
}

.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Pied de page ---------- */

.footer { padding: 54px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); }

.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }

.footer__about { max-width: 420px; }
.footer__about p { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }

.footer__links { display: flex; gap: 56px; }
.footer__links h4 { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.footer__links a { display: block; padding: 3px 0; color: var(--muted); font-size: 0.92rem; }
.footer__links a:hover { color: var(--text); }

.footer__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--dim);
}

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-demo__main { grid-template-columns: 1fr; }
  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .container { padding: 0 16px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(7, 7, 9, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .header__actions { margin-left: auto; }
  .nav a { padding: 12px 14px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .cards-3, .steps, .two-cols { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }

  .menu-demo { grid-template-columns: 1fr; }
  .menu-demo__side { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .menu-demo__side img, .menu-demo__brand { display: none; }
  .menu-demo__cat { width: auto; margin: 0; }
  .menu-demo__main { padding: 20px; min-height: 0; }

  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: auto; grid-row: auto; }

  .table-card td { padding: 12px 16px; }
  .cta { padding: 28px; }
  .footer__links { gap: 36px; }

  .lightbox { padding: 70px 12px; }
}

/* Très petits écrans : le bouton Télécharger de l'en-tête ne garde que l'icône */
@media (max-width: 400px) {
  .header__dl-label { display: none; }
  .header__actions .btn--sm { padding: 9px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 58px); }
  .lightbox__next { right: calc(50% - 58px); }
}
