:root {
  --fond: #ffffff;
  --surface: #f4f6f9;
  --texte: #1a2233;
  --discret: #46505f;
  --accent: #1f4e79;
  --trait: #d5dbe3;
  --a-completer-fond: #fff3cd;
  --a-completer-texte: #4d3300;
  --a-completer-trait: #8a6100;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #10151f;
    --surface: #182030;
    --texte: #e8edf5;
    --discret: #b7c0cd;
    --accent: #9cc3ee;
    --trait: #2c3648;
    --a-completer-fond: #3a2e00;
    --a-completer-texte: #ffe7a3;
    --a-completer-trait: #d9b44a;
  }
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
}

.evitement:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--fond);
  color: var(--accent);
  outline: 3px solid var(--accent);
  z-index: 10;
}

.cadre {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.entete {
  border-bottom: 1px solid var(--trait);
}

header.entete .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.marque {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--texte);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.25rem;
}

p,
ul,
dl {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

.chapeau {
  font-size: 1.1875rem;
  color: var(--texte);
}

.encadre {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.encadre p:last-child,
.encadre ul:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

dl.fiche {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
}

dl.fiche dt {
  font-weight: 700;
  margin-top: 0.6rem;
}

dl.fiche dd {
  margin: 0;
}

@media (min-width: 40rem) {
  dl.fiche {
    grid-template-columns: 13rem 1fr;
  }

  dl.fiche dt {
    margin-top: 0;
  }
}

.a-completer {
  display: inline;
  background: var(--a-completer-fond);
  color: var(--a-completer-texte);
  border: 1px dashed var(--a-completer-trait);
  border-radius: 3px;
  padding: 0 0.25rem;
  font-weight: 600;
}

.discret {
  color: var(--discret);
  font-size: 0.95rem;
}

footer.pied {
  border-top: 1px solid var(--trait);
  color: var(--discret);
  font-size: 0.9375rem;
}

footer.pied .cadre {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

footer.pied p {
  margin-bottom: 0.5rem;
}

@media print {
  nav,
  .evitement {
    display: none;
  }
}
