/* ============ BASE RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* ============ DESIGN TOKENS ============ */
:root {
  /* Couleurs - Frais & dynamique (bleu/cyan) */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9fd;
  --color-bg-dark: #0a1628;
  --color-surface: #ffffff;
  --color-border: #e3ecf3;
  --color-text: #0a1628;
  --color-text-muted: #5a6b7d;
  --color-text-light: #8294a6;

  --color-accent: #00b2ff;
  --color-accent-2: #0066ff;
  --color-accent-deep: #003d9e;
  --color-accent-soft: #e0f4ff;

  --gradient-brand: linear-gradient(135deg, #00b2ff 0%, #0066ff 100%);
  --gradient-brand-soft: linear-gradient(135deg, #e0f4ff 0%, #d0e8ff 100%);

  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --text-hero: clamp(2.75rem, 2rem + 3.5vw, 5rem);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,22,40,0.06), 0 1px 4px rgba(10,22,40,0.04);
  --shadow-md: 0 4px 12px rgba(10,22,40,0.06), 0 2px 4px rgba(10,22,40,0.04);
  --shadow-lg: 0 12px 32px rgba(10,22,40,0.08), 0 4px 12px rgba(10,22,40,0.04);
  --shadow-xl: 0 24px 60px rgba(0,102,255,0.18), 0 8px 24px rgba(0,102,255,0.08);

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 280ms var(--ease);
}

/* Typography defaults */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-base); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
