/* ===================================================================
   TOKENS & RESET — pejay theme
   =================================================================== */

:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #3d3d3d;
  --card: #f8f9f6;

  --primary: #8b9d83;
  --primary-foreground: #ffffff;
  --primary-hover: #6b7d63;
  --primary-dark: #5a7050;
  --primary-darker: #4a6040;

  /* CTA secondary : fond sauge claire (#8b9d83), texte blanc.
     Hover : --primary-hover (#6b7d63), légèrement assombri comme primary → primary-darker. */
  --cta-secondary: #8b9d83;
  --cta-secondary-hover: #6b7d63;

  --secondary: #f7f9f6;
  --secondary-foreground: #3d3d3d;

  --muted: #fafbf9;
  --muted-foreground: #6b6b6b;

  --accent: #d4ddd0;

  --border: rgba(139, 157, 131, 0.08);
  --border-visible: rgba(139, 157, 131, 0.22);
  --rule: rgba(139, 157, 131, 0.40);
  --input-background: #fafbf9;

  /* Containers */
  --container-narrow: 48rem;
  --container-medium: 64rem;
  --container-wide: 80rem;

  /* Transitions */
  --transition: 0.2s ease;

  /* Shadows (cf. DESIGN.md §4 — l'ombre est un événement, pas un décor) */
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== RESET ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--border);
}

:focus-visible {
  /* Sauge soutenue (#5a7050, 5.4:1) : l'anneau de focus doit lui-même
     passer l'AA non-text contrast (WCAG 1.4.11, 3:1). */
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION (global safety net) =====
   The hero breathing animation is also neutralised explicitly in layout.css.
   This baseline tames every remaining transition/animation (hover lifts,
   accordion, smooth scroll) for users who ask for less motion. */
@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;
  }
}
