/* ==========================================================================
   Design tokens — MZ Bois & Compagnie
   Toutes les couleurs/typo/espacements du site doivent passer par ces
   variables : aucune valeur codée en dur ailleurs.
   ========================================================================== */

:root {
  /* --- Couleurs de marque --- */
  --color-brand: #846a57;
  --color-brand-dark: #6b5546;
  --color-brand-light: #a38b77;

  --color-ink: #414143;
  --color-ink-soft: #6b6b6d;
  --color-ink-faint: #9c9c9e;
  --color-bg-dark: #b4b4b4;

  --color-accent: #d4a574;
  --color-accent-dark: #be8b57;
  --color-accent-light: #e8c79a;

  --color-paper: #f5f1ec;
  --color-paper-alt: #ede7dd;
  --color-white: #ffffff;

  --color-border: #ded6c8;
  --color-border-on-dark: rgba(255, 255, 255, 0.16);

  --color-overlay: rgba(20, 18, 16, 0.55);
  --color-overlay-soft: rgba(20, 18, 16, 0.28);

  /* Rôles sémantiques */
  --color-bg: var(--color-paper);
  --color-bg-alt: var(--color-paper-alt);
  --color-text: var(--color-ink);
  --color-text-soft: var(--color-ink-soft);
  --color-text-on-dark: var(--color-paper);
  --color-link: var(--color-brand);
  --color-focus: var(--color-accent-dark);

  /* --- Typographie --- */
  --font-base: "Avenir Next Cyr", "Avenir Next", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.25rem + 0.75vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2.3rem, 1.8rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(2.8rem, 2rem + 4vw, 4.75rem);
  --text-5xl: clamp(3.2rem, 2.2rem + 5.5vw, 6.5rem);

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.55;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-label: 0.12em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-demi: 600;
  --weight-bold: 700;

  /* --- Espacements (échelle 4px) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 7.5rem;
  --space-10: 8rem;

  /* --- Mise en page --- */
  --container-max: 84rem;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --header-height: 4.5rem;

  /* --- Rayons & bordures --- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --border-width: 1px;

  /* --- Ombres --- */
  --shadow-sm: 0 1px 2px rgba(20, 18, 16, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 18, 16, 0.12);
  --shadow-lg: 0 24px 64px rgba(20, 18, 16, 0.18);

  /* --- Transitions ---
     Courbe "ease-out" prononcée : départ franc puis décélération longue et
     douce, plus fluide qu'une easing symétrique pour des révélations/hovers. */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 350ms;
  --duration-slow: 750ms;
  --duration-hero: 1000ms;

  /* --- Z-index --- */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-preloader: 400;
}
