/* =========================================================
   FLEUR SAUVAGE — Base
   Reset, typographie de base, accessibilité.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-cream-050);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-forest-700);
  margin: 0 0 var(--space-s);
}
h1 { font-size: var(--fs-display-xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-display-l); }
h3 { font-size: var(--fs-display-m); }
h4 { font-size: var(--fs-display-s); font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 var(--space-m); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
}

a { color: inherit; }
.prose a {
  color: var(--color-forest-600);
  text-decoration-color: var(--color-sage-300);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--color-forest-600); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--space-2xs); }

em.latin, .latin, .sci-name { font-style: italic; }

button { font-family: inherit; }

/* Accessibilité : focus visible clavier */
:focus-visible {
  outline: 2px solid var(--color-forest-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-forest-700);
  color: var(--color-cream-050);
  padding: var(--space-xs) var(--space-s);
  z-index: 1000;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus {
  left: 0;
}

.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;
}

::selection {
  background: var(--color-honey-400);
  color: var(--color-forest-900);
}

/* Contenu éditorial long (guides, articles, fiches) */
.prose {
  max-width: var(--content-max);
}
.prose h2 { margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-l); }
.prose ul, .prose ol { margin: 0 0 var(--space-m); }
.prose blockquote {
  margin: var(--space-l) 0;
  padding: var(--space-s) var(--space-m);
  border-left: 3px solid var(--color-honey-400);
  background: var(--color-sand-200);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-style: italic;
  color: var(--color-forest-700);
}
