/* Documents juridiques, alignés sur la landing page : trois couleurs (ciel, crème, bleu nuit). */
@font-face {
  font-family: Fredoka;
  src: url("assets/fredoka-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("assets/lexend-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky: #beeafa;
  --cream: #fffaf0;
  --ink: #17234f;
}

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

body {
  font: 400 16px/1.75 Lexend, Arial, sans-serif;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  padding: 32px 16px;
}

/* Un seul encart crème pour tout le document. */
.page-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 3rem 2.5rem;
  background: var(--cream);
  border-radius: 32px;
}

h1, h2, h3 {
  font-family: Fredoka, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

/* ── En-tête ── */
.doc-header { margin-bottom: 1.5rem; }

.doc-header .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

.doc-header h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.doc-header .meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Introduction ── */
.doc-intro {
  font-size: 1.02rem;
  margin-bottom: 2.5rem;
}

/* ── Sommaire ── */
#sommaire { margin-bottom: 3rem; }

#sommaire p {
  font-family: Fredoka, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#sommaire ol { padding-left: 1.4rem; }

#sommaire li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ── Sections ── */
section { margin-bottom: 2.75rem; }

section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}

section h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
}

section p,
section ul li { font-size: 0.95rem; }

section p { margin-bottom: 0.85rem; }

section ul {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

section ul li { margin-bottom: 0.35rem; }

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.6;
  text-decoration: none;
  margin-top: 0.25rem;
}

.back-link:hover { opacity: 1; }

/* ── Tableaux ── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid rgba(23, 35, 79, 0.15);
}

th {
  font-weight: 600;
  white-space: nowrap;
}

/* ── Pied de page ── */
footer {
  margin-top: 3.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 650px) {
  body { padding: 16px; }
  .page-wrapper {
    padding: 2rem 1.25rem;
    border-radius: 26px;
  }
}
