/* ============================================
   Reset moderne + Base typographique
   ============================================ */

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

* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: var(--color-olive-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-olive);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-brown);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--fs-6xl)); }
h2 { font-size: clamp(1.875rem, 4vw, var(--fs-5xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--fs-3xl)); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p { line-height: var(--lh-relaxed); }

p + p { margin-top: var(--space-4); }

strong { font-weight: var(--fw-semibold); color: var(--color-brown); }

em { font-style: italic; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--color-brown);
  border-left: 3px solid var(--color-olive);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--color-olive);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Accessibilité — sauter au contenu */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-brown);
  color: white;
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-modal);
  font-weight: var(--fw-medium);
}

.skip-link:focus {
  top: 0;
}
