@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #FBF7EC;
  --marine: #1C3446;
  --gris: #4F5B6B;
  --mirabelle: #EBA324;
  --feuille: #3F7A34;
  --lien: #8A5A00;
  --surface: #FFFFFF;
  --erreur: #B3261E;
  --fond-succes: #E6F0E3;
  --fond-erreur: #FBE9E7;
  --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 1rem;
  --ombre: 0 0.25rem 1rem rgb(28 58 94 / 0.08);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scroll-padding-bottom: 4.5rem;
}

body {
  font-family: var(--police-texte);
  line-height: 1.6;
  color: var(--marine);
  background-color: var(--creme);
}

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

h1,
h2,
h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p,
li,
dd {
  max-width: 70ch;
}

ul,
ol {
  padding-left: 1.25rem;
}

a {
  color: var(--lien);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

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

.lien-evitement {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background-color: var(--marine);
  color: var(--creme);
  font-weight: 600;
  text-decoration: none;
}

.lien-evitement:focus {
  top: 0;
}

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

[hidden] {
  display: none !important;
}

.flux > * + * {
  margin-top: 1rem;
}

.provisoire {
  outline: 2px dashed var(--feuille);
  outline-offset: 4px;
}

.provisoire::before {
  content: "À compléter";
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background-color: var(--feuille);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
