/* Design system « Autopips » (refonte du 11/11/2026, avant : « Cockpit nuit ») — jetons (couleurs, typo, espacements, rayons, ombres, mouvements).
   Sombre par défaut (identité du produit) ; un thème clair est fourni pour l'accessibilité. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2-variations"), url("fonts/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Couleurs Autopips : nuit profonde, cyan -> bleu -> violet, corail pour les pertes */
  --bg: #07080a;
  --bg-2: #0c0e11;
  --surface: #121519;
  --surface-2: #181c21;
  --surface-3: #1e2329;
  --line: rgba(150, 156, 146, 0.16);
  --line-2: rgba(150, 156, 146, 0.3);
  --text: #f3f5ef;
  --text-2: #d0d4ca;
  --muted: #8e948a;
  --muted-2: #7f857b;
  --cyan: #d4ff3a;
  --accent-2: #8ce63c;
  --violet: #4be3a8;
  --coral: #ff5d4a;
  --grad: linear-gradient(100deg, #8ce63c 0%, #d4ff3a 100%);
  --grad-v: linear-gradient(180deg, #d4ff3a 0%, #8ce63c 100%);
  --grad-aurora: linear-gradient(120deg, #4be3a8 0%, #8ce63c 45%, #d4ff3a 100%);
  --gold: #d4ff3a; /* nom historique de l'accent : tout le design system s'en sert */
  --gold-2: #ecff9e;
  --gold-ink: #0b0d04;
  --green: #c6ff3a;
  --green-bg: rgba(198, 255, 58, 0.12);
  --red: #ff8a78;
  --red-strong: #ff5d4a;
  --red-bg: rgba(255, 93, 74, 0.13);
  --blue: #b9c2b0;
  --blue-bg: rgba(140, 230, 60, 0.16);
  --amber-bg: rgba(255, 196, 87, 0.13);
  --focus: #ecff9e;
  --overlay: rgba(2, 2, 3, 0.78);

  /* Typographie */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.84rem;
  --fs-md: 0.95rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.45rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.6rem;
  --lh: 1.45;

  /* Espacements (base 4 px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;

  /* Rayons, ombres */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 24px 70px rgba(0, 0, 0, 0.7);
  --glow-green: 0 0 0 6px rgba(198, 255, 58, 0.1), 0 12px 44px rgba(198, 255, 58, 0.3);
  --glow-gold: 0 0 0 6px rgba(212, 255, 58, 0.1), 0 12px 44px rgba(212, 255, 58, 0.32);
  --glow-cyan: 0 0 24px rgba(212, 255, 58, 0.45), 0 0 80px rgba(140, 230, 60, 0.35);

  /* Mouvements */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-med: 220ms;
  --t-slow: 360ms;

  /* Mise en page */
  --tap: 44px;
  --max: 560px;
  --nav-h: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-med: 0ms;
    --t-slow: 0ms;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
