/**
 * Design tokens — Musée Nelli WordPress Theme
 * Dérivés du projet Next.js de référence, reconstruits pour WordPress.
 */

:root {
  /* === Couleurs de base === */
  --color-background: #f5f4f1;
  --color-foreground: #1c1917;
  --color-primary: #8c3636;
  --color-accent: #d4b483;
  --color-surface: #e8e6e1;

  /* Background (échelle 100–900) */
  --color-background-100: #fbfaf8;
  --color-background-200: #f7f5f0;
  --color-background-300: #f3f0e8;
  --color-background-400: #eeeae0;
  --color-background-500: #e9e4d8;
  --color-background-600: #d3cfc4;
  --color-background-700: #bdb9b0;
  --color-background-800: #a7a39c;
  --color-background-900: #918d88;

  /* Surface */
  --color-surface-100: #f4f3ef;
  --color-surface-200: #eeece6;
  --color-surface-300: #e8e6dd;
  --color-surface-400: #e2e0d4;
  --color-surface-500: #dcdacc;
  --color-surface-600: #c6c4b8;
  --color-surface-700: #b0afa4;
  --color-surface-800: #9a998f;
  --color-surface-900: #84847b;

  /* Primary (rouge Nelli) */
  --color-primary-100: #f7e9e9;
  --color-primary-200: #eecfd0;
  --color-primary-300: #e6b6b8;
  --color-primary-400: #d98d90;
  --color-primary-500: #c86a6a;
  --color-primary-600: #b4564f;
  --color-primary-700: #8c3636;
  --color-primary-800: #6b2929;
  --color-primary-900: #4a1c1c;

  /* Accent (doré) */
  --color-accent-100: #f9f0dd;
  --color-accent-200: #f3e1bb;
  --color-accent-300: #edd399;
  --color-accent-400: #e7c577;
  --color-accent-500: #d4b483;
  --color-accent-600: #b49558;
  --color-accent-700: #8e7240;
  --color-accent-800: #68502d;
  --color-accent-900: #43311b;

  /* Foreground (texte) */
  --color-foreground-100: #f0ece9;
  --color-foreground-200: #d5cdc7;
  --color-foreground-300: #bab0a7;
  --color-foreground-400: #9f9388;
  --color-foreground-500: #847669;
  --color-foreground-600: #6a5d52;
  --color-foreground-700: #51443c;
  --color-foreground-800: #382d28;
  --color-foreground-900: #211a17;

  /* === Typographie === */
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  /* Échelle typographique */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  --text-9xl: 8rem;

  /* === Spacing === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* === Radius === */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* === Ombres (teintées avec la couleur foreground pour plus de chaleur) === */
  --shadow-sm: 0 1px 2px 0 rgb(28 25 23 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(28 25 23 / 0.08), 0 2px 4px -2px rgb(28 25 23 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(28 25 23 / 0.08), 0 4px 6px -4px rgb(28 25 23 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(28 25 23 / 0.08), 0 8px 10px -6px rgb(28 25 23 / 0.04);
  --shadow-2xl: 0 25px 50px -12px rgb(28 25 23 / 0.15);

  /* === Transitions === */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.7s;
  --ease-out-expo: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-quart: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-back: cubic-bezier(0, 0.55, 0.45, 1);

  /* === Layout === */
  --width-content: 80rem;   
  --width-wide: 100rem;     /* ~1600px */
  --width-narrow: 40rem;
  --header-height: 4rem;

  /* === Focus (accessibilité) === */
  --focus-outline: 2px solid var(--color-accent);
  --focus-offset: 2px;
}

/* Réduction des animations si demandé par l'utilisateur */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-normal: 0.01ms;
    --duration-slow: 0.01ms;
    --duration-slower: 0.01ms;
  }
}
