:root {
  --encre: #1a1a18;
  --gris: #5f5e58;
  --dore: #C2B66E;
  --trait: #e9e7de;
  --fond: #fcfcfa;
}

* { box-sizing: border-box; }

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

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

.page {
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--dore);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--dore);
  outline-offset: 3px;
}

p { margin: 0 0 1.1em; }

/* En-tête */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2.25rem 0;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { display: block; width: auto; height: 4rem; }
header nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; }
header nav a { color: var(--gris); text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--encre); }

/* Pied de page */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--trait);
  font-size: 0.875rem;
  color: var(--gris);
}
footer .liens { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.lien {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--dore);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
.lien:hover { text-decoration-color: currentColor; }

/* Bandeau de consentement */
.cookies {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fond);
  border-top: 1px solid var(--dore);
  font-size: 0.875rem;
  line-height: 1.5;
}
.cookies[hidden] { display: none; }
.cookies .page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.cookies p { margin: 0; }
.cookies .choix { display: flex; gap: 0.75rem; }
.cookies button {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--encre);
  border-radius: 0;
  background: none;
  font: inherit;
  color: var(--encre);
  cursor: pointer;
}

@media (max-width: 44rem) {
  .page { padding: 0 1.5rem; }
  header { padding: 1.75rem 0; }
  .logo img { height: 3.25rem; }
  header nav { gap: 1.25rem; }
}

/* Articles et page « Articles » */
.article { max-width: 36rem; padding: 2rem 0 5rem; }

.fil { margin: 0 0 1.5rem; font-size: 0.875rem; color: var(--gris); }

.article h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.chapo { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: var(--gris); }
.tete { margin: 0 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--dore); }

.contenu h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.contenu h3 { margin: 2rem 0 0.6rem; font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.contenu h4, .contenu h5 { margin: 1.5rem 0 0.4rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.contenu ul, .contenu ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
.contenu li { margin: 0.3em 0; }
.contenu strong, .contenu b { font-weight: 600; }

/* Encadrés : un simple filet doré à gauche */
.contenu div {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--dore);
}
.contenu div div { margin: 1rem 0; padding-left: 0; border-left: 0; }
.contenu div > :first-child { margin-top: 0; }
.contenu div > :last-child { margin-bottom: 0; }

/* Tableaux */
.contenu .defilement { padding-left: 0; border-left: 0; overflow-x: auto; }
.contenu table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.contenu th, .contenu td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-top: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}
.contenu th { font-weight: 500; }

/* Fin d'article */
.suite { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--dore); }
.suite h2 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.suite p { margin: 0 0 0.75rem; }
.suite .contact { margin-top: 1.5rem; color: var(--gris); }

.voir { margin-top: 3rem; }
.voir h2 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 500; color: var(--gris); }
.voir ul { margin: 0; padding: 0; list-style: none; }
.voir li { padding: 0.6rem 0; border-top: 1px solid var(--trait); }
.voir a { text-decoration: none; }
.voir a:hover { text-decoration: underline; text-decoration-color: var(--dore); }

/* Page « Articles » */
.liste { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.liste li { padding: 1.25rem 0; border-top: 1px solid var(--trait); }
.liste a { font-size: 1.15rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.liste a:hover { text-decoration: underline; text-decoration-color: var(--dore); }
.liste p { margin: 0.3rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--gris); }
