/* Pages légales (mentions légales, confidentialité) : une colonne de texte, sobre,
   aux couleurs du site. Pas de fond animé ici : ces pages se lisent, elles ne
   s'admirent pas. */
:root {
  --bg: #080706;
  --text: #eef0f3;
  --dim: #b8bec6;
  --faint: #9ca3ab;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #d99657;
  --accent-hi: color-mix(in srgb, var(--accent) 62%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 50%, transparent);
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent-line) transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  display: flex; flex-direction: column;
}
body.is-ready { opacity: 1; transform: none; }
body.is-leaving { opacity: 0; transform: translateY(-10px); }
a { color: inherit; }
::selection { background: var(--accent-line); color: #fff; }
.mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { margin: 0 auto; max-width: 760px; padding: 0 5vw; width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  align-items: center;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(11, 9, 8, .72);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark { font-size: .88rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: color .25s ease; }
.wordmark:hover { color: var(--accent-hi); }
.back { color: var(--dim); text-decoration: none; transition: color .25s ease; }
.back:hover { color: var(--accent); }

/* ---------- Texte ---------- */
main { flex: 1; padding: 11vh 0 8vh; }
.eyebrow { color: var(--accent); margin: 0; }
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 18px 0 0;
}
.maj { color: var(--faint); margin: 18px 0 0; }
.intro { color: var(--dim); font-size: 1.05rem; line-height: 1.75; margin: 30px 0 0; }

.legal h2 {
  border-top: 1px solid var(--line-strong);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 56px 0 0;
  padding-top: 20px;
  position: relative;
}
.legal h2::before {
  background: var(--accent);
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 40px;
}
.legal h3 { color: var(--text); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; margin: 30px 0 0; }
.legal p, .legal li { color: var(--dim); font-size: .98rem; line-height: 1.75; }
.legal p { margin: 14px 0 0; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; }
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--accent-line); }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: .25em; transition: color .2s ease; }
.legal a:hover { color: var(--accent-hi); }

/* Fiche d'identité : libellé à gauche, valeur à droite. */
dl.fiche { border-top: 1px solid var(--line); display: grid; gap: 0; grid-template-columns: 11rem minmax(0, 1fr); margin: 20px 0 0; }
dl.fiche dt, dl.fiche dd { border-bottom: 1px solid var(--line); margin: 0; padding: 12px 0; }
dl.fiche dt { color: var(--faint); padding-right: 16px; }
dl.fiche dd { color: var(--text); font-size: .98rem; line-height: 1.6; }

/* Tableau des traitements de données. */
.table-wrap { margin: 20px 0 0; overflow-x: auto; }
table { border-collapse: collapse; min-width: 640px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
th { color: var(--faint); font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--dim); font-size: .92rem; line-height: 1.6; }
td strong { color: var(--text); }

/* Champ que l'éditeur doit renseigner avant mise en ligne : volontairement
   voyant, pour qu'on ne publie pas une page à moitié remplie sans s'en rendre
   compte. Chercher « à compléter » dans le fichier pour les retrouver tous. */
mark.todo {
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  border-radius: 4px;
  color: var(--accent-hi);
  font-family: var(--mono);
  font-size: .82em;
  padding: .05em .45em;
}

/* ---------- Pied de page ---------- */
.site-footer {
  align-items: center; border-top: 1px solid var(--line); color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 22px 5vw 36px;
}
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer [aria-current="page"] { color: var(--text); }

@media (max-width: 560px) {
  dl.fiche { grid-template-columns: 1fr; }
  dl.fiche dt { border-bottom: 0; padding-bottom: 0; }
  dl.fiche dd { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Toucher, appui, réglages du système ----------
   Principes d'interface d'Apple : réponse dès l'appui, cibles de 44 px, et
   respect des réglages « moins de transparence » et « plus de contraste ».
   Aucune couleur ni aucun style ne change pour les autres. */
body.is-leaving { transition-duration: .18s; }   /* accordé à assets/navigation.js */
a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (pointer: coarse) {
  .wordmark, .back, .site-footer a { position: relative; }
  .wordmark::before, .back::before, .site-footer a::before { content: ''; inset: -12px -6px; position: absolute; }
}
.wordmark:active, .back:active, .site-footer a:active, .legal a:active { opacity: .6; }
@media (prefers-reduced-transparency: reduce) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --dim: #dde1e6; --faint: #c4cad1; --line: rgba(255, 255, 255, .3); --line-strong: rgba(255, 255, 255, .5); }
}
