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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gs-ink);
  background: var(--gs-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}

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

/* Variantes de couleur de titre - toujours issues de la charte, jamais de
   nouvelle teinte. A utiliser avec parcimonie pour rythmer la page. */
.title--red { color: var(--gs-red-dp); }
.title--navy { color: var(--gs-navy); }

/* Utilitaires - remplacent les style="" en ligne, incompatibles avec la
   CSP style-src 'self' (docs/05-securite-backup.md B.7). */
.u-text-center { text-align: center; }
.u-items-center { align-items: center; }
.u-rounded { border-radius: var(--radius-lg); }
.u-rounded-spaced { border-radius: var(--radius-lg); margin-block: var(--sp-6); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-8 { margin-top: var(--sp-8); }
.u-mt-16 { margin-top: var(--sp-16); }
.uni-logo { height: 64px; width: auto; margin-inline: auto; margin-bottom: var(--sp-3); }
.u-w-full { width: 100%; }
.u-inline { display: inline; }
.u-btn-sm { padding: 4px 10px; font-size: 12px; }
.u-cta-outline { border-color: var(--gs-white); color: var(--gs-white); }
.article-container { max-width: 760px; }
.avatar-centered { max-width: 280px; margin-inline: auto; }
.cover-crop { max-height: 480px; width: 100%; object-fit: cover; }

p {
  margin: 0 0 var(--sp-4);
  max-width: 62ch;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

:focus-visible {
  outline: 2px solid var(--gs-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
