/* Fondations du site : polices, couleurs, base. Sombre seulement. */

/* Switzer (Fontshare, licence ITF FFL 2.0) : fichiers officiels, jamais modifiés. */
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #000;
  --blanc: #fff;
  --texte-2: rgba(255, 255, 255, .7);
  --texte-p: rgba(255, 255, 255, .78);
  --carte: #141414;
  --filet: rgba(255, 255, 255, .07);
  --pied: #212121;

  /* Palette du ciel */
  --nuit: #1E2C7A;
  --vif: #3A6FE0;
  --clair: #8CB6F6;
  --rose: #F6C4D6;
  --lumiere: #EEF1FF;
  --abricot: #F9C398; /* seulement pour un écart à justifier dans un fragment */

  --courbe: cubic-bezier(.4, 0, .2, 1);
  --largeur: 1280px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Jamais de graisse au-delà de 600 : les titres sont en 500. */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }

a { color: inherit; }

.contenant {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 28px;
}

/* Lu par les lecteurs d'écran, invisible à l'écran. */
.visuellement-cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* « Aller au contenu » : premier arrêt du clavier, caché au-dessus de l'écran tant qu'il n'a pas le focus. */
.lien-evitement {
  position: fixed; top: 10px; left: 12px; z-index: 100;
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: #F9F9F9; color: #0D0D0D; font: 500 14px/1 'Switzer', system-ui, sans-serif; letter-spacing: -.01em; text-decoration: none;
  outline: 2px solid #0D0D0D; outline-offset: 2px;
  transform: translateY(-120px);
}
.lien-evitement:focus-visible { transform: none; }
/* La barre du haut est fixe : une cible d'ancre ne passe pas dessous. */
:target, #contenu { scroll-margin-top: 80px; }
