/* ============================================================
   BASE — reset léger, typographie, accessibilité
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}
@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; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  margin: 0 0 var(--sp-2);
}

p { max-width: var(--measure); }

a { color: inherit; }

/* Lien d'évitement — accessibilité clavier */
.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  background: var(--brass);
  color: var(--ink);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-3); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
}

.section {
  padding-block: var(--sp-9);
}
@media (max-width: 768px) {
  .section { padding-block: var(--sp-7); }
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink p { color: var(--paper-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-meta);
  color: var(--brass);
  margin: 0 0 var(--sp-2);
  /* volontairement en casse de phrase : pas de MAJUSCULES espacées,
     c'est un tic de gabarit générique qu'on retire */
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
