/* ==========================================================================
   SlydeForge — design system
   Palette dérivée du logo : fond marine profond, dégradé de forge
   orange -> rouge, accent violet/bleu pour l'IA et les flux de sortie.
   ========================================================================== */

:root {
  --navy-950: #0a0c1c;
  --navy-900: #10132a;
  --navy-800: #141736;
  --navy-700: #1b2044;
  --navy-600: #262c56;
  --navy-500: #363d72;
  --ink-100: #f4f5fb;
  --ink-300: #c7cbe6;
  --ink-500: #9498bd;
  --ink-700: #6a6f95;

  --orange-500: #fa6117;
  --orange-600: #e8421e;
  --red-600: #d0281f;
  --purple-500: #6936de;
  --purple-400: #8a5cf0;
  --blue-500: #2d7cf6;
  --gold-400: #ffb454;

  --grad-forge: linear-gradient(135deg, var(--orange-500), var(--red-600));
  --grad-arcane: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  --grad-brand: linear-gradient(120deg, var(--purple-500) 0%, var(--orange-500) 55%, var(--gold-400) 100%);
  --grad-hero-glow: radial-gradient(60% 60% at 50% 40%, rgba(250, 97, 23, 0.25), transparent 70%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow-orange: 0 0 0 1px rgba(250, 97, 23, 0.25), 0 20px 60px -20px rgba(250, 97, 23, 0.35);
  --shadow-glow-purple: 0 0 0 1px rgba(105, 54, 222, 0.25), 0 20px 60px -20px rgba(105, 54, 222, 0.35);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink-100);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 40% at 12% -10%, rgba(105, 54, 222, 0.22), transparent 60%),
    radial-gradient(45% 35% at 90% 0%, rgba(250, 97, 23, 0.16), transparent 60%),
    var(--navy-900);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-forge);
  box-shadow: 0 0 10px rgba(250, 97, 23, 0.8);
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-forge);
  color: #fff;
  box-shadow: var(--shadow-glow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(250, 97, 23, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-100);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-danger { background: rgba(208, 40, 31, 0.12); color: #ff8a80; border-color: rgba(208, 40, 31, 0.35); }
.btn-danger:hover { background: rgba(208, 40, 31, 0.22); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 28, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-300);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--ink-100); background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: var(--ink-100); background: rgba(255, 255, 255, 0.08); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
}
.lang-switch a.active { background: var(--grad-arcane); color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: var(--ink-100); cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: var(--grad-hero-glow);
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow-wrap { display: flex; justify-content: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  max-width: 920px;
  margin: 0 auto;
}
.hero-subtitle {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--ink-300);
  font-size: 18px;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--ink-700); font-size: 13.5px; }

.hero-art {
  margin: 70px auto 0;
  max-width: 620px;
  position: relative;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: 0;
  background:
    radial-gradient(52% 58% at 50% 40%, rgba(255, 244, 230, 0.16), transparent 72%),
    radial-gradient(46% 50% at 50% 78%, rgba(250, 97, 23, 0.38), transparent 70%),
    radial-gradient(40% 46% at 50% 12%, rgba(105, 54, 222, 0.30), transparent 70%);
  filter: blur(48px);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-art img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 80px rgba(250, 97, 23, 0.25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@keyframes glow-pulse { 0%,100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Trust bar ---------- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 46px;
}
.trustbar .pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: var(--ink-300);
}
.trustbar .pill .icon { width: 15px; height: 15px; color: var(--gold-400); }

/* ---------- Sections ---------- */
section { position: relative; padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 12%, rgba(255,255,255,0.02) 88%, transparent); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { margin-top: 16px; color: var(--ink-300); font-size: 17px; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.step-number {
  font-size: 44px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  line-height: 1;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { color: var(--ink-300); font-size: 15px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(250, 97, 23, 0.35); background: rgba(255, 255, 255, 0.05); }
.feature-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-forge);
  margin-bottom: 16px;
  box-shadow: 0 8px 22px -8px rgba(250, 97, 23, 0.6);
}
.feature-icon-wrap .icon { width: 22px; height: 22px; color: #fff; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-300); font-size: 14.5px; }

/* ---------- Long-form content sections (features/ai/workflows pages) ---------- */
.content-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.content-section:last-child { border-bottom: none; }
.content-section .side h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }
.content-section .side p { color: var(--ink-300); margin-top: 14px; }
.bullet-list { display: flex; flex-direction: column; gap: 14px; }
.bullet-list li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: var(--ink-100);
}
.bullet-list .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--orange-500); }

/* ---------- Cards / grids reused across pages ---------- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.info-card h3 { font-size: 18px; margin-bottom: 10px; }
.info-card p { color: var(--ink-300); font-size: 14.5px; }
.info-card .badge { margin-bottom: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-orange { background: rgba(250, 97, 23, 0.14); color: var(--orange-500); }
.badge-purple { background: rgba(105, 54, 222, 0.16); color: var(--purple-400); }

/* Category chips (workflows page) */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-chip {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.category-chip .emoji { font-size: 26px; margin-bottom: 10px; }
.category-chip h4 { font-size: 14.5px; margin-bottom: 6px; }
.category-chip p { font-size: 12.5px; color: var(--ink-500); }

/* Scenario steps (workflows page) */
.scenario { counter-reset: sc; }
.scenario li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.scenario li:first-child { border-top: none; }
.scenario li::before {
  counter-increment: sc;
  content: counter(sc);
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-arcane);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
}
.scenario p { padding-top: 5px; color: var(--ink-100); font-size: 15px; }

/* Principles (AI page) */
.principle-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(105,54,222,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(138, 92, 240, 0.25);
}
.principle-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink-100); }
.principle-card p { color: var(--ink-300); font-size: 14.5px; }

/* ---------- Download page ---------- */
.version-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(250,97,23,0.14), rgba(105,54,222,0.10));
  border: 1px solid rgba(250, 97, 23, 0.25);
  flex-wrap: wrap;
}
.version-hero .v-number { font-size: 40px; font-weight: 800; }
.version-hero .v-date { color: var(--ink-500); font-size: 14px; margin-top: 4px; }
.version-hero .v-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.changelog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.changelog-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.changelog-item .v-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.changelog-item .v-tag { font-weight: 700; }
.changelog-item .v-date { color: var(--ink-700); font-size: 13px; }
.changelog-item p { color: var(--ink-300); font-size: 14.5px; white-space: pre-line; }

.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-300); font-size: 14.5px; }
.req-list .icon { width: 16px; height: 16px; color: var(--orange-500); flex-shrink: 0; }

/* ---------- Marketplace (charters / components) ---------- */
.marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.market-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
}
.market-card .swatch-row { display: flex; height: 64px; }
.market-card .swatch-row span { flex: 1; }
.market-card .swatch-row.empty { background: var(--grad-brand); }
.market-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.market-card h3 { font-size: 17px; }
.market-card .by { color: var(--ink-700); font-size: 13px; }
.market-card p.desc { color: var(--ink-300); font-size: 14px; flex: 1; }
.market-card .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }

.empty-state {
  text-align: center;
  padding: 70px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,255,255,0.15);
  color: var(--ink-500);
}

/* ---------- Community / final CTA ---------- */
.community-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.community-points .info-card a { color: var(--gold-400); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.community-points .info-card a .icon { width: 14px; height: 14px; }

.final-cta {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(250,97,23,0.16), rgba(105,54,222,0.14));
  border: 1px solid rgba(250,97,23,0.25);
}
.final-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.final-cta p { color: var(--ink-300); margin-top: 14px; max-width: 480px; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-700); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { color: var(--ink-300); font-size: 14.5px; }
.footer-col a:hover { color: var(--ink-100); }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-700);
  font-size: 13px;
}

/* ---------- Forms (admin) ---------- */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-300); margin-bottom: 8px; }
.field input[type=text], .field input[type=password], .field input[type=date], .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--ink-100);
  font: inherit;
  font-size: 14.5px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(250,97,23,0.2); }
.field textarea { min-height: 110px; resize: vertical; }
.field-hint { color: var(--ink-700); font-size: 12.5px; margin-top: 6px; }
.field-checkbox { display: flex; align-items: center; gap: 10px; }
.field-checkbox input { width: 16px; height: 16px; }
.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(208, 40, 31, 0.14);
  border: 1px solid rgba(208, 40, 31, 0.35);
  color: #ff9d94;
  font-size: 14px;
  margin-bottom: 20px;
}
input[type=file] {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: var(--ink-300);
  font-size: 13.5px;
}

/* ---------- Admin dashboard ---------- */
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; }
.admin-table th { color: var(--ink-700); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.05em; }
.admin-table td { color: var(--ink-300); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-section { margin-bottom: 56px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-section-head h2 { font-size: 20px; }
.row-actions { display: flex; gap: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink-500); }

/* ---------- Login page ---------- */
.login-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 60px 24px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 140px 24px; }
.notfound h1 { font-size: 5rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .content-section { grid-template-columns: 1fr; gap: 26px; }
  .card-grid-3, .card-grid-2, .marketplace-grid, .community-points { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid, .card-grid-3, .card-grid-2, .marketplace-grid, .community-points, .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .version-hero { flex-direction: column; align-items: flex-start; }

  /* Le logo est bien plus petit en largeur contrainte : un flou de 48px
     (calibré pour les ~620px du halo desktop) avale presque toute la forme
     du glow sur un conteneur de cette taille et le rend quasi invisible.
     Rayon de flou réduit + halo étendu pour rester visible sans écraser le
     logo. */
  .hero-art::before {
    inset: -38% -22%;
    filter: blur(22px);
  }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy-950);
  z-index: 90;
  padding: 30px 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--ink-100); }
.mobile-nav .btn { margin-top: 18px; }
