/* Lumelle — pages légales (design « Halo » : sombre profond + azur) */
:root {
  --bg: #070b14;
  --bg-soft: #0d1322;
  --panel: #111a2e;
  --border: #1f2c47;
  --text: #c9d3e6;
  --text-dim: #8493b0;
  --title: #f2f6ff;
  --azur: #3f86ff;
  --azur-soft: #9cc0ff;
  --maxw: 760px;
  --radius: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(63, 134, 255, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* Grille animée discrète (respecte reduced-motion) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(63, 134, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 134, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 50% 0, #000, transparent 75%);
  animation: drift 32s linear infinite;
}
@keyframes drift { to { background-position: 44px 44px, 44px 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 96px; }

/* En-tête */
header.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 22px 8px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--title);
  font-weight: 650; letter-spacing: 0.2px; font-size: 19px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--azur);
  box-shadow: 0 0 0 4px rgba(63, 134, 255, 0.16), 0 0 22px rgba(63, 134, 255, 0.65);
}

h1 {
  color: var(--title);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin: 30px 0 6px;
}
.updated {
  color: var(--text-dim);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  margin: 0 0 26px;
}

h2 {
  color: var(--title);
  font-size: 21px;
  letter-spacing: -0.2px;
  margin: 42px 0 12px;
  padding-top: 10px;
  scroll-margin-top: 18px;
}
h2 .num { color: var(--azur); font-variant-numeric: tabular-nums; margin-right: 10px; }
h3 { color: var(--title); font-size: 17.5px; margin: 26px 0 8px; }

p { margin: 0 0 14px; }
a { color: var(--azur-soft); text-decoration: none; border-bottom: 1px solid rgba(156, 192, 255, 0.32); }
a:hover { color: #fff; border-bottom-color: var(--azur); }
strong { color: #e7eeff; font-weight: 620; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 6px 0; }

/* Carte (préambule, contact) */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 26px;
}
.card.tight { padding: 15px 18px; }

/* Sommaire */
nav.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 34px;
}
nav.toc p { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 10px; }
nav.toc ol { columns: 2; column-gap: 26px; margin: 0; padding-left: 18px; font-size: 15.5px; }
nav.toc a { border: 0; color: var(--text); }
nav.toc a:hover { color: var(--azur-soft); }
@media (max-width: 560px) { nav.toc ol { columns: 1; } }

/* Tableau (sous-traitants, finalités) */
.table-scroll { overflow-x: auto; margin: 0 0 18px; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); color: var(--azur-soft); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.6px; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #e7eeff; font-weight: 560; white-space: nowrap; }

/* Champ à compléter par l'éditeur avant déploiement */
.fill {
  color: var(--azur-soft);
  border-bottom: 1px dashed rgba(63, 134, 255, 0.6);
  padding: 0 2px;
  font-style: italic;
}

/* Pied de page */
footer.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px 60px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14.5px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
}
footer.site a { color: var(--text); border: 0; }
footer.site a:hover { color: var(--azur-soft); }
footer.site .sep { color: var(--border); }
.ai-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(63, 134, 255, 0.12);
  border: 1px solid rgba(63, 134, 255, 0.4);
  color: var(--azur-soft);
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600;
}
.back-home { margin-top: 30px; }
