/* Réinitialisation minimale et éléments de base. */

@font-face {
  font-family: "Figtree";
  /* Variable 300-900, un seul fichier de 20 Ko, hébergé ici plutôt
     qu'appelé chez Google. Remplace Manrope, qui plafonnait à 800 : le
     titre demandait un vrai Black. */
  src: url("../fonts/figtree-latin.392aed3eb142.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: var(--corps);
  line-height: var(--corps-inter);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: var(--gras); letter-spacing: -0.02em; }
h1 { font-size: var(--h1); line-height: var(--h1-inter); }
h2 { font-size: var(--h2); line-height: var(--h2-inter); }
h3 { font-size: var(--h3); line-height: var(--h3-inter); }
p  { margin: 0; }

a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-survol); text-decoration: underline; }

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

/* §86 : le focus clavier doit rester visible partout, sans exception. */
:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 4px;
}

.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.secondaire { color: var(--texte-secondaire); }
.petit      { font-size: var(--petit); line-height: var(--petit-inter); }
.minuscule  { font-size: var(--minuscule); line-height: var(--minuscule-inter); }

/* Visible pour les lecteurs d'écran, invisible à l'œil. */
.hors-ecran {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* §86 : premier lien de la page, pour sauter la navigation au clavier. */
.saut-navigation {
  position: absolute;
  left: var(--e3);
  top: -4rem;
  z-index: 100;
  padding: var(--e2) var(--e3);
  background: var(--surface);
  border: var(--trait);
  border-radius: var(--rayon-bouton);
  transition: top var(--transition);
}
.saut-navigation:focus { top: var(--e3); }
