/* Pages légales (mentions légales, confidentialité), 16/09 : la barre et le pied de la page contact, sombres ;
   le corps clair comme les sections de la home, un sommaire collant à gauche, les articles à filets à droite. */

@font-face { font-family: 'Uxum'; src: url('/UxumVF.woff2') format('woff2'); font-weight: 200 800; font-display: block; } /* block (24/09) : le texte attend Uxum plutôt que de s'afficher en police de secours puis de changer ; la police est préchargée dans le head */
:root {
  --dark-1: #12110c; --dark-2: #1a1913; --encre-sombre: 245,244,238; --on-dark: rgb(var(--encre-sombre)); --on-dark-muted: rgba(var(--encre-sombre),0.9); --filet: rgba(var(--encre-sombre),0.14);
  --bt-sombre-fond: #f5f4ee; --bt-sombre-texte: #12110c; --bt-sombre-survol: #ffffff;
  --fond: #fbfbf8; --surface: #f5f4ef; --surface-2: #ebe9e0; --trait: #e4e3de; --on-light: #161510; --muted: rgba(22,21,16,0.62); --brule: #772406;
  --marge: 40px; --font: 'Uxum', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--on-light); font-family: var(--font); font-weight: 400; -webkit-font-smoothing: antialiased; }
/* Sélection de texte « Inversion » (labo /selection.html, 23/09) : encre sous crème en zone claire, crème sous encre en zone sombre. Alpha 0,99 pour que Safari et Chrome n'atténuent pas l'aplat. */
::selection { background: rgba(22,21,16,0.99); color: #f5f4ee; }
.nav ::selection, .pied ::selection { background: rgba(245,244,238,0.99); color: #12110c; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================= LA BARRE · la même que la proposition, les ancres renvoient vers les sections de la home ================= */
.nav { height: 56px; display: flex; align-items: stretch; border-bottom: 1px solid var(--filet); background: var(--dark-1); color: var(--on-dark); }
html[data-nav="fixe"] .nav { position: sticky; top: 0; z-index: 8; }
.logo-wrap { display: flex; }
.logo-wrap a, .logo-wrap .icone { display: flex; align-items: center; height: 100%; padding: 0 18px; border-right: 1px solid var(--filet); }
.logo-wrap .logo { width: 80px; height: 28px; }
.logo-wrap .icone { width: auto; height: 21px; padding: 20px 20px 15px; box-sizing: content-box; } /* Calée sur le corps des lettres du logo : 21 px, du haut du « e » à la ligne de base, 20 px sous le haut de la barre (16 × 14 centrés avant, Theo, 25/09 : « icône et logo pas bien calés ») */
.liens { display: flex; margin: 0 auto; }
.liens a { position: relative; display: inline-flex; align-items: center; padding: 0 24px; border-right: 1px solid var(--filet); font-size: 17px; }
.liens a:first-child { border-left: 1px solid var(--filet); }
.liens a[aria-current], .liens a:hover { background: var(--dark-2); }
.liens a::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; background: var(--on-dark); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.liens a[aria-current]::after { transform: scaleX(1); }
.nav .cellule-bt { display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--filet); }
.nav .b { --bt-h: 40px; --bt-px: 18px; --bt-fs: 15px; --bt-fond: var(--bt-sombre-fond); --bt-texte: var(--bt-sombre-texte); --bt-filet: rgba(var(--encre-sombre),0.4); --bt-survol: var(--bt-sombre-survol); }
.nav .b .fleche { width: 14px; height: 14px; }

/* ================= LE CORPS · la tête (titre en grand, date de mise à jour), puis sommaire à gauche et articles à droite ================= */
.legal-page { min-height: calc(100vh - 56px); display: grid; grid-template-rows: 1fr auto; }
.legal-page .in { width: 100%; max-width: 1540px; margin: 0 auto; padding: 96px var(--marge) 120px; }
.tete { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 48px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--trait); }
h1 { margin: 0; font-size: clamp(44px, 5.4vw, 88px); font-weight: 400; line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; max-width: 14ch; }
.tete p { margin: 0; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.4; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.tete .maj { display: block; margin-top: 16px; font-size: 14px; color: var(--muted); }

.corps { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding-top: 48px; align-items: start; }
.sommaire { position: sticky; top: 80px; display: grid; gap: 0; }
.sommaire h2 { margin: 0 0 14px; font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sommaire a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--trait); font-size: 15px; line-height: 1.35; color: var(--muted); transition: color 0.2s; }
.sommaire a:last-child { border-bottom: 1px solid var(--trait); }
.sommaire a:hover, .sommaire a[aria-current] { color: var(--on-light); }
.sommaire a b { font-weight: 400; font-variant-numeric: tabular-nums; }

.articles { display: grid; gap: 0; max-width: 760px; }
.article { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 36px 0 40px; border-top: 1px solid var(--trait); scroll-margin-top: 80px; }
.article:first-child { border-top: 0; padding-top: 0; }
.article .num { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.article h2 { margin: 0 0 18px; font-size: clamp(24px, 2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.article h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.article p, .article li { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(22,21,16,0.86); text-wrap: pretty; }
.article p + p { margin-top: 12px; }
.article ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--brule); }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22,21,16,0.3); }
.article a:hover { text-decoration-color: currentColor; }

/* La fiche : des lignes à filets, libellé à gauche, valeur à droite (identité de l'éditeur, hébergeur) */
.fiche { display: grid; margin: 16px 0 0; border-top: 1px solid var(--trait); }
.fiche > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 16px; line-height: 1.45; }
.fiche dt { margin: 0; color: var(--muted); }
.fiche dd { margin: 0; }

/* Le tableau des traitements : quatre colonnes à filets, en cellules empilées sur mobile */
.tableau { margin: 16px 0 0; border: 1px solid var(--trait); border-radius: 4px; overflow: hidden; }
.tableau .rangee { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 0.8fr; border-top: 1px solid var(--trait); }
.tableau .rangee:first-child { border-top: 0; background: var(--surface); }
.tableau .rangee > * { padding: 12px 14px; font-size: 15px; line-height: 1.45; border-left: 1px solid var(--trait); }
.tableau .rangee > *:first-child { border-left: 0; }
.tableau .rangee:first-child > * { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tableau .rangee > * small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Ce qui reste à compléter avant mise en ligne : une plaque crème à filet, visible tant que le texte n'est pas rempli */
.a-completer { display: inline-block; padding: 1px 8px; border: 1px solid var(--brule); border-radius: 4px; color: var(--brule); font-size: 14px; white-space: nowrap; }

@media (max-width: 1100px) {
  :root { --marge: 20px; }
  .liens { display: none; } .logo-wrap .icone { display: none; }
  .nav .cellule-bt { margin-left: auto; }
  .legal-page .in { padding: 56px var(--marge) 80px; }
  .tete { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  h1 { font-size: 38px; }
  .corps { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .sommaire { position: static; }
  .article { grid-template-columns: 1fr; gap: 6px; padding: 28px 0 32px; }
  .article .num { padding-top: 0; }
  .fiche > div { grid-template-columns: 1fr; gap: 2px; }
  .tableau .rangee { grid-template-columns: 1fr; }
  .tableau .rangee:first-child { display: none; }
  .tableau .rangee > * { border-left: 0; border-top: 1px solid var(--trait); }
  .tableau .rangee > *:first-child { border-top: 0; font-weight: 500; }
  .tableau .rangee > *::before { content: attr(data-col); display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .tableau .rangee > *:first-child::before { display: none; }
}

/* Le lien d'opposition à la mesure d'audience (02/10). Le script de Meleï Analyze réécrit son texte quand la mesure est coupée,
   avec un tiret cadratin que le site n'emploie pas : le texte affiché vient d'ici, en français et en anglais. */
.article a[data-mesure-etat="oppose"], .article a[data-mesure-etat="gpc"] { font-size: 0; }
.article a[data-mesure-etat="oppose"]::after, .article a[data-mesure-etat="gpc"]::after { font-size: 17px; }
.article a[data-mesure-etat="oppose"]::after { content: "mesure désactivée sur ce navigateur, cliquer pour la réactiver"; }
.article a[data-mesure-etat="gpc"]::after { content: "mesure désactivée par votre navigateur (Global Privacy Control)"; }
:lang(en) .article a[data-mesure-etat="oppose"]::after { content: "measurement turned off in this browser, click to turn it back on"; }
:lang(en) .article a[data-mesure-etat="gpc"]::after { content: "measurement turned off by your browser (Global Privacy Control)"; }
