/* Fondations : remise à plat, typographie, éléments de formulaire. */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--corps);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: var(--titre-1); }
h2 { font-size: var(--titre-2); }
h3 { font-size: var(--titre-3); font-weight: 400; }

p { margin: 0; text-wrap: pretty; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--encre); }

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

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Lien d'évitement : visible seulement au clavier. */
.flopo-evitement {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: var(--pas-2) var(--pas-3);
  background: var(--encre);
  color: var(--papier);
}
.flopo-evitement:focus { left: var(--pas-3); top: var(--pas-3); }

/* Boutons */
button, .button, input[type="submit"] {
  font-family: var(--sans);
  font-size: var(--corps-petit);
  cursor: pointer;
}

.flopo-wrap {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
