/* ============================================================
   Orbital Rods — Feuille de style
   Thème sombre spatial, responsive mobile-first, sans dépendance.
   ============================================================ */

/* --- Variables de couleurs --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #1a1f2e;
  --bg-card: #161b2a;
  --accent-nuke: #dc2828;
  --accent-stab: #28c8dc;
  --text-primary: #e4e7eb;
  --text-secondary: #9097a0;
  --text-muted: #6a7280;
  --border: #2a3550;
  --border-light: #3a4258;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* --- Reset léger --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  /* Dégradé spatial subtil en fond */
  background-image: radial-gradient(ellipse at top, #141a2a 0%, var(--bg-primary) 70%);
  background-attachment: fixed;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-stab); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #b8c0d0;
}

/* --- Conteneur --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-link:hover { text-decoration: none; }
.logo { width: 48px; height: 48px; }
.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-stab);
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent-nuke) 0%, var(--accent-stab) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.compat-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Bouton de téléchargement --- */
.download-block {
  max-width: 500px;
  margin: 0 auto;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-nuke) 0%, var(--accent-stab) 100%);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(220, 40, 40, 0.25), 0 4px 20px rgba(40, 200, 220, 0.25);
  transition: transform 0.1s, box-shadow 0.15s;
  min-height: 44px; /* WCAG touch target */
}
.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(220, 40, 40, 0.35), 0 6px 24px rgba(40, 200, 220, 0.35);
  text-decoration: none;
}
.btn-download:active { transform: translateY(0); }
.btn-download svg { fill: currentColor; }
.download-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.section p { margin-bottom: 1rem; color: var(--text-primary); }
.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--text-muted);
  border-radius: 4px;
}

/* --- Cards Nuke / Stab --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
}
.card-nuke {
  border-left: 4px solid var(--accent-nuke);
  box-shadow: 0 0 32px rgba(220, 40, 40, 0.08);
}
.card-stab {
  border-left: 4px solid var(--accent-stab);
  box-shadow: 0 0 32px rgba(40, 200, 220, 0.08);
}
.card h2 { color: var(--text-primary); margin-bottom: 0.75rem; }
.card-nuke h2 { color: var(--accent-nuke); }
.card-stab h2 { color: var(--accent-stab); }
.card-desc {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.features {
  list-style: none;
  padding: 0;
}
.features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-primary);
}
.features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-stab);
  font-weight: bold;
}
.card-nuke .features li::before { color: var(--accent-nuke); }
.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Liste de fonctionnalités --- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-primary);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-stab);
  font-weight: bold;
}

/* --- Étapes d'installation --- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  color: var(--text-primary);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(120deg, var(--accent-nuke), var(--accent-stab));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.ext-link { color: var(--accent-stab); font-weight: 600; }

/* --- Tableau de commandes --- */
.commands-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.table-wrap { overflow-x: auto; }
.commands-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}
.commands-table th,
.commands-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.commands-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.commands-table td { color: var(--text-primary); }
.commands-table tr:last-child td { border-bottom: none; }
.commands-table td:first-child code { color: var(--accent-stab); background: transparent; }
.commands-table td:last-child { font-weight: 600; color: var(--accent-nuke); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  text-align: center;
}
.site-footer p { margin-bottom: 0.5rem; }
.footer-version { font-weight: 700; color: var(--text-primary); }
.footer-updated { color: var(--text-secondary); font-size: 0.9rem; }
.footer-license { color: var(--text-secondary); font-size: 0.85rem; }
.footer-disclaimer { color: var(--text-muted); font-size: 0.8rem; font-style: italic; max-width: 600px; margin: 0.5rem auto; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* ============================================================
   RESPONSIVE — Mobile-first, breakpoints ≥ 768px et ≥ 1024px
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .hero { padding: 6rem 0 4rem; }
  .section { padding: 4rem 0; }
  .card { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
  .hero h1 { font-size: 4rem; }
  .section-nuke .container,
  .section-stab .container { display: flex; }
  .section-nuke .card,
  .section-stab .card { margin-left: auto; }
}

/* --- Réduction des animations (accessibilité) --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
