/* ============================================================================
   UNMUTE — charte des pages légales (conditions, confidentialité)
   Reprend le design system de la landing page : palette lavande, Outfit pour
   les titres, Lexend pour le texte. Feuille partagée par les deux documents —
   ne jamais dupliquer ces règles en inline dans les pages.

   Autorité des sources, arbitrée avec l'équipe :
   - typographie → frame Figma « 04 - APPROVED DESIGNS » (Outfit + Lexend,
     PAS Inter, malgré la planche du design system) ;
   - couleurs    → planche design system, y compris les deux neutres qui
     n'existaient pas sur la landing (--muted, --bg-neutral).
   ========================================================================== */

:root {
  /* Primaire & accent */
  --brand: #5F4EBD;
  --brand-soft: #C4B4FA;
  --canvas: #F5F2FF;
  --coral: #F5A98B;

  /* Neutres & texte */
  --ink: #2D2D3A;
  --body: #6B6B80;
  --muted: #9E9EAB;      /* légendes, méta — token ajouté du design system  */
  --bg-neutral: #F8F9FA; /* blocs de rappel, entêtes de tableau — idem      */
  --paper: #FFFFFF;

  --line: rgba(95, 78, 189, 0.14);
  --line-footer: rgba(255, 255, 255, 0.1);

  --r-pill: 999px;
  --r-card: 16px;

  --display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Lexend', ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
strong { font-weight: 600; color: var(--ink); }

/* Le document reste en colonne étroite : la landing fait 1120 px, mais un texte
   juridique se lit mal au-delà de ~780 px. */
.container { max-width: 828px; margin: 0 auto; padding: 0 24px; }

/* ============================== EN-TÊTE ============================== */
header {
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 828px; margin: 0 auto; padding: 0 24px;
  min-height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* On affiche logo-glyph.svg (fond transparent, recadré sur la marque) et non
   logo-mark.svg : le fond crème de ce dernier découperait un carré visible sur
   le blanc de l'en-tête comme sur le sombre du pied de page. La hauteur est
   calée sur le wordmark, la largeur reste libre (ratio 509:611). */
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 30px; color: var(--brand);
  text-decoration: none; white-space: nowrap;
}
.brand-mark { height: 26px; width: auto; flex: none; }
.back-link {
  font-size: 15px; font-weight: 500; color: var(--body);
  text-decoration: none; transition: color .18s ease;
}
.back-link:hover { color: var(--brand); }

/* ============================== DOCUMENT ============================== */
main { padding: 64px 0 80px; }

.doc-title {
  font-family: var(--display); font-weight: 800;
  font-size: 40px; line-height: 48px; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 12px;
}
.doc-meta { color: var(--muted); font-size: 13px; line-height: 17px; margin-bottom: 40px; }

h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 32px; letter-spacing: -0.01em;
  color: var(--ink); margin: 48px 0 16px; scroll-margin-top: 104px;
}
h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; line-height: 25px; color: var(--ink); margin: 28px 0 10px;
}
p { margin-bottom: 16px; font-size: 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 10px; font-size: 16px; }

/* Marqueur des champs juridiques encore à compléter — volontairement voyant. */
.todo {
  background: var(--coral); color: #6b2d15; font-weight: 600;
  padding: 1px 8px; border-radius: 6px; font-size: 0.94em;
}

/* ============================== SOMMAIRE ============================== */
.toc {
  background: var(--paper); border-radius: var(--r-card);
  padding: 24px 28px; margin-bottom: 40px;
}
.toc h2 {
  margin: 0 0 14px; font-family: var(--sans); font-size: 13px; font-weight: 600;
  line-height: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.toc ol { margin: 0 0 0 18px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ============================== TABLEAUX ============================== */
.table-wrap {
  overflow-x: auto; margin: 0 0 24px;
  border-radius: var(--r-card); background: var(--paper);
}
table { border-collapse: collapse; width: 100%; min-width: 420px; }
th, td {
  text-align: left; padding: 14px 18px; font-size: 15px; line-height: 22px;
  vertical-align: top; border-bottom: 1px solid var(--bg-neutral);
}
th { background: var(--bg-neutral); color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ============================== ENCARTS ============================== */
/* Avertissement fort (médical, sécurité) — bordure corail, pas de fond saturé :
   le texte reste lisible sur de longs paragraphes. */
.callout {
  background: var(--paper); border-left: 4px solid var(--coral);
  border-radius: var(--r-card); padding: 24px 28px; margin: 0 0 24px;
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Rappel secondaire (à vérifier avant publication). */
.note {
  background: var(--bg-neutral); border-radius: var(--r-card);
  padding: 16px 20px; margin: 0 0 24px; font-size: 15px; line-height: 22px;
}

/* ============================== PIED DE PAGE ============================== */
footer { background: var(--ink); color: #fff; padding: 48px 0; margin-top: 80px; }
.footer-inner {
  max-width: 828px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 26px; color: #fff;
}
.footer-brand .brand-mark { height: 22px; width: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: rgba(255, 255, 255, .55); font-size: 15px; text-decoration: none; transition: color .18s ease; }
.footer a:hover { color: #fff; }
.footer a:focus-visible { outline-color: #fff; }
footer p { font-size: 13px; color: rgba(255, 255, 255, .55); }

@media (max-width: 700px) {
  .header-inner { min-height: 72px; }
  main { padding: 40px 0 64px; }
  .doc-title { font-size: 30px; line-height: 38px; }
  h2 { font-size: 20px; line-height: 28px; margin-top: 36px; }
  .toc ol { columns: 1; }
  .footer-inner { justify-content: center; text-align: center; }
}
