/* Reset + base typo + layout helpers */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* compense le header sticky pour les ancres */
}

body {
  font-family: var(--font-corps);
  font-weight: var(--fw-regular);
  font-size: var(--fs-corps);
  line-height: 1.55;
  color: var(--foret);
  background-color: var(--beige);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: inherit;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 65ch; }

/* === Layout helpers === */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.container-narrow { max-width: var(--maxw-narrow); }

.section {
  padding-block: var(--space-16);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-20); }
}

.section--beige     { background: var(--beige); }
.section--lime      { background: var(--lime); }
.section--vert-deau { background: var(--vert-deau); color: var(--beige); }
.section--foret     { background: var(--foret); color: var(--beige); }

/* === Typographie utilitaire === */
.notes {
  font-family: var(--font-notes);
  font-size: var(--fs-notes);
  line-height: 1.5;
}

.eyebrow {
  font-family: var(--font-notes);
  font-size: var(--fs-notes);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brun);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

/* === A11y === */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--foret);
  color: var(--beige);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 100;
  font-family: var(--font-titre);
  font-weight: var(--fw-medium);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--vert-neon);
  outline-offset: 3px;
  border-radius: 2px;
}

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