@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  --papier: #f6f3ec;
  --blanc: #ffffff;
  --encre: #171412;
  --encre-douce: #2d2925;
  --ligne: #8f8578;
  --accent: #6f2f20;
  --vert: #1f4533;
  --max: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--encre);
  background: var(--papier);
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--encre);
}

.doc {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.doc__retour {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.doc__retour a {
  text-decoration: none;
  font-weight: 600;
}

.doc__titre {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.doc__soustitre {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--encre-douce);
}

.doc h2 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vert);
  margin: 2.25rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ligne);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.doc p,
.doc li {
  margin: 0 0 0.75rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc .encadre {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem 0.35rem;
  border-left: 4px solid var(--accent);
  background: var(--blanc);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 6px 20px rgba(34, 31, 28, 0.06);
}

.doc .liste-compacte {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.doc .liste-compacte li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ligne);
  padding-left: 0;
}

.doc .liste-compacte li strong {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--encre);
}

.doc__hint {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--encre);
  margin-top: 1.5rem !important;
}

.doc kbd {
  font-family: inherit;
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--ligne);
  border-radius: 3px;
  background: var(--blanc);
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .doc__retour {
    display: none;
  }

  a {
    color: var(--encre);
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.82em;
    color: var(--encre-douce);
  }
}
