/* Design tokens — oeuvre d'art */
:root {
  /* Couleurs */
  --color-background: #FFFFFF;
  --color-surface: #F5F5F7;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #86868B;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-error: #DC2626;
  --color-success: #059669;
  --color-border: #E5E5EA;
  --color-focus: #2563EB;

  /* Typographie */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-xs-line: 1rem;
  --text-sm: 0.875rem;
  --text-sm-line: 1.25rem;
  --text-base: 1rem;
  --text-base-line: 1.5rem;
  --text-lg: 1.125rem;
  --text-lg-line: 1.5rem;
  --text-xl: 1.25rem;
  --text-xl-line: 1.75rem;
  --text-display: 2rem;
  --text-display-line: 2.5rem;

  /* Espacement */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* Formes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);

  /* Mouvements */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-base: 10;
  --z-dropdown: 20;
  --z-toast: 30;
  --z-modal: 40;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --ease: linear;
  }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

html {
  box-sizing: border-box;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-background);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
}

a, button {
  color: inherit;
  font: inherit;
}

button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus);
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
