:root {
  --encre: #1a1411;
  --nuit: #120d0b;
  --papier: #f7f0e3;
  --papier-fonce: #ece2cf;
  --grenat: #9b1b32;
  --grenat-fonce: #6f1224;
  --or: #dcae3a;
  --or-fonce: #7a5a00;
  --filet: #cdbf9f;
  --creme: #fbf5e8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--nuit);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--grenat);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:visited {
  color: #5a1a4a;
}

a:hover {
  color: var(--grenat-fonce);
  text-decoration-thickness: 2px;
}

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

.evitement {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 10px 14px;
  background: var(--or);
  color: var(--nuit);
  font-weight: bold;
  transform: translateY(-200%);
  z-index: 10;
}

.evitement:focus {
  transform: none;
}

.enveloppe {
  max-width: 1120px;
  margin: 0 auto;
}

.entete {
  padding: 28px 32px 22px;
  background: var(--nuit);
  color: var(--creme);
  border-bottom: 1px solid var(--or-fonce);
}

.entete-marque {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.15;
}

.entete-marque a,
.entete-marque a:visited {
  color: var(--or);
  text-decoration: none;
}

.entete-marque a:hover {
  text-decoration: underline;
}

.entete-marque a:focus-visible {
  outline-color: var(--or);
}

.entete-sous-titre {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #e4d9bf;
}

.navigation {
  background: var(--grenat);
}

.navigation ul {
  margin: 0;
  padding: 0 22px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.navigation a,
.navigation a:visited {
  display: block;
  padding: 12px 14px;
  color: var(--creme);
  text-decoration: none;
  font-size: 0.95rem;
}

.navigation a:hover {
  background: var(--grenat-fonce);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.navigation a:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: -3px;
}

.navigation a[aria-current="page"] {
  background: var(--nuit);
  color: var(--or);
  font-weight: bold;
}

.feuille {
  background: var(--papier);
  padding: 36px 32px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 900px) {
  .feuille {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
  }
}

.article > :first-child {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: 2.15rem;
  color: var(--grenat);
}

h2 {
  margin: 2.4rem 0 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--filet);
  font-size: 1.5rem;
  color: var(--encre);
}

h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--grenat-fonce);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

figure {
  margin: 1.8rem 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #54463a;
}

table {
  width: 100%;
  margin: 1.2rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 1rem;
}

caption {
  padding-bottom: 8px;
  text-align: left;
  font-size: 0.9rem;
  color: #54463a;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--filet);
}

thead th {
  background: var(--nuit);
  color: var(--creme);
  font-weight: bold;
  border-bottom: 3px solid var(--or);
}

tbody th {
  font-weight: bold;
}

.note {
  margin: 1.8rem 0;
  padding: 1rem 1.3rem;
  background: var(--papier-fonce);
  border-left: 4px solid var(--or-fonce);
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.note + table,
table + .note,
figure + .note,
.note + figure,
.note + .note {
  margin-top: 1.8rem;
}

.repere {
  align-self: start;
  padding-top: 14px;
  border-top: 4px solid var(--grenat);
}

.repere h2 {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.repere dl {
  margin: 0;
}

.repere dt {
  margin-top: 0.9rem;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--grenat-fonce);
}

.repere dd {
  margin: 2px 0 0;
}

.repere > :last-child {
  margin-bottom: 0;
}

.pied {
  padding: 28px 32px 36px;
  background: var(--nuit);
  color: #e4d9bf;
  font-size: 0.9375rem;
}

.pied ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.pied a,
.pied a:visited {
  color: var(--or);
}

.pied a:hover {
  color: var(--creme);
}

.pied a:focus-visible {
  outline-color: var(--or);
}

.pied p {
  margin: 0 0 0.6rem;
}

.pied p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .entete {
    padding: 20px 16px 16px;
  }

  .entete-marque {
    font-size: 1.65rem;
  }

  .navigation ul {
    padding: 0 6px;
  }

  .navigation a,
  .navigation a:visited {
    padding: 11px 10px;
    font-size: 0.9rem;
  }

  .feuille {
    padding: 26px 16px 34px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  th,
  td {
    padding: 8px 6px;
    font-size: 0.95rem;
  }

  .pied {
    padding: 24px 16px 30px;
  }
}

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