/**
 * Racine Vita — Design tokens
 * Site vitrine : découverte de produits (pas de vente en ligne)
 */
:root {
  /* Couleurs principales */
  --primary: #72C040;
  --primary-light: #B5E08A;
  --primary-dark: #509A28;
  --primary-gold: var(--primary);
  --primary-gold-light: var(--primary-light);
  --primary-gold-dark: var(--primary-dark);

  /* Surfaces */
  --soft-pink: #F0F8EC;
  --soft-peach: #F4FAF0;
  --soft-cream: #F2FAF0;
  --soft-lavender: #EAF5E4;
  --soft-mint: #E4F5DC;
  --white: #FFFFFF;
  --off-white: #FAFDFB;
  --surface: var(--off-white);
  --surface-elevated: var(--white);

  /* Texte */
  --text-dark: #1E3A1E;
  --text-medium: #4A6640;
  --text-light: #7A9A70;
  --border-light: #D0E8C8;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(72, 160, 40, 0.06);
  --shadow-md: 0 10px 40px rgba(72, 160, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(72, 160, 40, 0.16);
  --shadow-soft: var(--shadow-sm);
  --shadow-medium: var(--shadow-md);

  /* Typographie */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Layout */
  --section-padding: 30px;
  --container-max-width: 1320px;
  --container-padding: 20px;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;
  --radius-small: var(--radius-sm);
  --radius-medium: var(--radius-md);
  --radius-large: var(--radius-lg);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Images produits — limite le CLS */
  --product-image-ratio: 4 / 5;
  --product-image-height: 280px;
}

/* Mode sombre (optionnel) */
[data-theme="dark"] {
  --off-white: #141a14;
  --white: #1e2a1e;
  --surface: #141a14;
  --surface-elevated: #1e2a1e;
  --text-dark: #e8f0e4;
  --text-medium: #b8ccb0;
  --text-light: #8aa882;
  --border-light: #2d3d2d;
  --soft-cream: #1a241a;
  --soft-lavender: #1a2218;
  --soft-pink: #1a241a;
  --soft-peach: #1a2218;
  --soft-mint: #1e2a1e;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
