/* Pages légales, design v2 — reprend la landing v2 : police système, noir
   #1d1d1f, gris #6e6e73 / #86868b, fonds #f5f5f7, cartes à 28 px, orange
   réservé aux repères. Autonome : ne dépend ni de landing.css ni de
   docuse-v2.css. Les noms de classes du contenu (.lg-*) sont ceux de la
   version précédente, pour que mentions_legales.html et confidentialite.html
   n'aient pas à changer.

   Un texte juridique se lit mal par nature : colonne étroite, sommaire
   toujours visible, sections numérotées. */

:root {
  --lg-noir: #1d1d1f;
  --lg-texte: #424245;
  --lg-gris: #6e6e73;
  --lg-gris-clair: #86868b;
  --lg-trait: #d2d2d7;
  --lg-fond: #f5f5f7;
  --lg-orange: #f97316;
  --lg-orange-fonce: #ea580c;
  --lg-orange-doux: #fff4ed;
  --lg-courbe: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body.lg2 {
  margin: 0; background: #fff; color: var(--lg-noir);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.lg2 a { color: var(--lg-noir); text-decoration: none; }
.lg2 a:hover { color: var(--lg-orange); }
::selection { background: rgba(249, 115, 22, .22); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── En-tête : identique à la landing v2 ────────────────────────────── */
.lg2-entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.lg2-entete-in {
  max-width: 1200px; margin: 0 auto; height: 52px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lg2-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 19px; letter-spacing: -.02em;
}
.lg2 .lg2-logo:hover { color: var(--lg-noir); }
.lg2-logo-point { width: 10px; height: 10px; border-radius: 50%; background: var(--lg-orange); }
.lg2-nav {
  flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px;
  height: 20px; overflow: hidden; font-size: 13px; line-height: 20px;
}
.lg2 .lg2-nav a, .lg2 .lg2-connexion { color: #424245; }
.lg2 .lg2-nav a:hover, .lg2 .lg2-connexion:hover { color: #000; }
.lg2-connexion { font-size: 13px; white-space: nowrap; margin-right: -8px; }
.lg2 .lg2-abonner {
  font-size: 13px; font-weight: 500; color: #fff; background: var(--lg-noir);
  padding: 7px 15px; border-radius: 980px; white-space: nowrap;
}
.lg2 .lg2-abonner:hover { background: #000; color: #fff; }
.lg2-progression {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--lg-orange); transform-origin: 0 50%; transform: scaleX(0);
}

/* ── Apparition au défilement (legal-v2.js) ─────────────────────────── */
html:not(.no-js) .lp-reveal {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity 1.2s var(--lg-courbe), transform 1.4s var(--lg-courbe);
}
html:not(.no-js) .lp-reveal.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Ouverture ───────────────────────────────────────────────────────── */
.lg-hero { padding: clamp(72px, 11vw, 136px) 24px clamp(48px, 7vw, 88px); }
/* 1200 px moins les marges de 24 px : aligné sur l'en-tête et le sommaire */
.lg-hero-in { max-width: 1152px; margin: 0 auto; }
.lg-fil {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--lg-gris-clair); margin-bottom: 32px;
}
.lg2 .lg-fil a { color: var(--lg-gris-clair); }
.lg2 .lg-fil a:hover { color: var(--lg-noir); }
.lg-fil svg { display: block; }
.lg-surtitre {
  margin: 0 0 18px; font-size: 17px; font-weight: 600;
  color: var(--lg-gris); letter-spacing: -.01em;
}
.lg-titre {
  margin: 0; max-width: 14ch;
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02;
  letter-spacing: -.045em; font-weight: 600; text-wrap: balance;
}
.lg-lead {
  margin: clamp(22px, 3vw, 32px) 0 0; max-width: 40ch;
  font-size: clamp(19px, calc(15px + .8vw), 26px); line-height: 1.4;
  color: var(--lg-gris); letter-spacing: -.012em; text-wrap: pretty;
}
.lg-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  margin-top: 40px; font-size: 14px; color: var(--lg-gris);
}
.lg-meta strong { color: var(--lg-noir); font-weight: 600; }
.lg-meta-pastille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 980px; background: var(--lg-fond);
}
.lg-meta-pastille::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lg-orange); flex: none;
}

/* ── Colonnes : sommaire + document ──────────────────────────────────── */
.lg-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px clamp(96px, 12vw, 160px);
  display: grid; gap: clamp(32px, 6vw, 88px);
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.lg-toc { position: sticky; top: 84px; }
.lg-toc-titre { font-size: 13px; font-weight: 600; color: var(--lg-gris-clair); margin: 0 0 14px; }
.lg-toc-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lg2 .lg-toc-liste a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0 8px 16px;
  border-left: 2px solid #e8e8ed;
  font-size: 14px; line-height: 1.4; color: var(--lg-gris);
  transition: color .3s var(--lg-courbe), border-color .3s var(--lg-courbe);
}
.lg2 .lg-toc-liste a:hover { color: var(--lg-noir); border-left-color: var(--lg-trait); }
.lg2 .lg-toc-liste a.est-actif { color: var(--lg-noir); font-weight: 600; border-left-color: var(--lg-orange); }
.lg-toc-num {
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--lg-gris-clair); flex: none;
}
.lg-toc-liste a.est-actif .lg-toc-num { color: var(--lg-orange); }

/* ── Corps du document ───────────────────────────────────────────────── */
.lg-doc { max-width: 72ch; min-width: 0; }

.lg-sec { padding: clamp(40px, 4.5vw, 56px) 0; border-top: 1px solid var(--lg-trait); }
.lg-sec:first-of-type, .lg-alerte + .lg-sec { padding-top: 0; border-top: 0; }

.lg-sec-num {
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: var(--lg-orange);
  font-variant-numeric: tabular-nums;
}
.lg-sec > h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  letter-spacing: -.035em; font-weight: 600;
}
.lg-sec h3 { margin: 36px 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.lg-sec p {
  margin: 0 0 18px; font-size: 17px; line-height: 1.65;
  color: var(--lg-texte); text-wrap: pretty;
}
.lg-sec p:last-child { margin-bottom: 0; }
.lg-sec strong { color: var(--lg-noir); font-weight: 600; }
.lg-sec em { font-style: normal; color: var(--lg-noir); }
.lg2 .lg-sec a, .lg2 .lg-fin a:not(.lg2-btn) { color: var(--lg-orange-fonce); }
.lg2 .lg-sec a:hover, .lg2 .lg-fin a:not(.lg2-btn):hover { color: var(--lg-noir); text-decoration: underline; text-underline-offset: 3px; }

/* Chapeau : la phrase qui doit rester si on ne lit rien d'autre. */
.lg-sec .lg-chapeau {
  font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45;
  color: var(--lg-noir); letter-spacing: -.015em; font-weight: 500;
}

/* ── Listes ──────────────────────────────────────────────────────────── */
.lg-liste { list-style: none; margin: 0 0 20px; padding: 0; }
.lg-liste li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 17px; line-height: 1.6; color: var(--lg-texte);
}
.lg-liste li::before {
  content: ''; position: absolute; left: 5px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lg-noir);
}
.lg-liste li:last-child { margin-bottom: 0; }
.lg-liste--check li { padding-left: 32px; }
.lg-liste--check li::before {
  left: 0; top: .3em; width: 20px; height: 20px; background: var(--lg-fond);
}
.lg-liste--check li::after {
  content: ''; position: absolute; left: 6.5px; top: .62em;
  width: 7px; height: 3.5px;
  border-left: 1.8px solid var(--lg-orange); border-bottom: 1.8px solid var(--lg-orange);
  transform: rotate(-45deg);
}

/* ── Encarts ─────────────────────────────────────────────────────────── */
.lg-note {
  margin: 0 0 28px; padding: 24px 28px;
  background: var(--lg-orange-doux); border-radius: 20px;
}
.lg-sec .lg-note p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.lg-sec .lg-note p:last-child { margin-bottom: 0; }
.lg-note strong { color: #c2410c; }

.lg-alerte {
  margin: 0 0 48px; padding: 24px 28px;
  border: 1px solid var(--lg-trait); border-radius: 20px;
  font-size: 15px; line-height: 1.6; color: var(--lg-gris);
}
.lg-alerte strong { color: var(--lg-noir); }
.lg-alerte code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--lg-fond); padding: 2px 7px; border-radius: 6px;
  color: var(--lg-noir);
}

/* Deux rôles côte à côte : la distinction structure toute la page. */
.lg-duo { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 0 0 28px; }
.lg-role { background: var(--lg-fond); border-radius: 28px; padding: 28px; }
.lg-role-tag {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 980px;
  font-size: 12px; font-weight: 600; background: var(--lg-noir); color: #fff;
}
.lg-role-tag--orange { background: var(--lg-orange); }
.lg-sec .lg-role h3 { margin: 0 0 10px; font-size: 19px; }
.lg-sec .lg-role p { font-size: 15px; line-height: 1.6; color: var(--lg-gris); margin: 0; }

/* ── Fiche d'identité ────────────────────────────────────────────────── */
.lg-fiche { margin: 0 0 28px; background: var(--lg-fond); border-radius: 28px; padding: 8px 28px 16px; }
.lg-fiche-tete { display: flex; align-items: center; gap: 12px; padding: 20px 0 12px; }
.lg-sec .lg-fiche-tete h3 { margin: 0; font-size: 17px; font-weight: 600; }
.lg-fiche dl { margin: 0; }
.lg-fiche dl > div {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding: 14px 0; border-top: 1px solid var(--lg-trait);
}
.lg-fiche dt { flex: 0 0 200px; font-size: 14px; color: var(--lg-gris); }
.lg-fiche dd {
  flex: 1 1 220px; margin: 0; font-size: 15px; font-weight: 500;
  color: var(--lg-noir); overflow-wrap: anywhere;
}

.lg-manquant {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px; border-radius: 980px;
  background: var(--lg-orange-doux); color: #c2410c;
  font-size: 12.5px; font-weight: 600;
}
.lg-manquant::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lg-orange); }

/* ── Tableau des traitements ─────────────────────────────────────────── */
.lg-tab-hote { margin: 0 0 28px; background: var(--lg-fond); border-radius: 28px; overflow: hidden; }
.lg-tab-defil { overflow-x: auto; }
.lg-tab { width: 100%; border-collapse: collapse; min-width: 640px; }
.lg-tab th, .lg-tab td { text-align: left; padding: 16px 20px; vertical-align: top; }
.lg-tab thead th {
  padding-top: 22px; font-size: 13px; font-weight: 600;
  color: var(--lg-gris-clair); white-space: nowrap;
}
.lg-tab tbody tr { border-top: 1px solid var(--lg-trait); }
.lg-tab tbody th { font-size: 15px; font-weight: 600; color: var(--lg-noir); width: 27%; }
.lg-tab td { font-size: 14.5px; line-height: 1.55; color: var(--lg-gris); }
.lg-tab th:first-child, .lg-tab td:first-child { padding-left: 28px; }
.lg-tab th:last-child, .lg-tab td:last-child { padding-right: 28px; }

/* ── Pied de document ────────────────────────────────────────────────── */
.lg-fin {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px;
  border-top: 1px solid var(--lg-trait);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.lg-fin p { margin: 0; font-size: 14px; color: var(--lg-gris); flex: 1 1 240px; }
.lg2 .lg2-btn {
  display: inline-block; padding: 11px 22px; border-radius: 980px;
  border: 1px solid var(--lg-trait); font-size: 15px; font-weight: 500; color: var(--lg-noir);
  transition: border-color .2s;
}
.lg2 .lg2-btn:hover { border-color: var(--lg-noir); color: var(--lg-noir); }

/* ── Pied de page : identique à la landing v2 ───────────────────────── */
.lg2-pied { padding: 40px 24px; background: var(--lg-fond); font-size: 12px; color: var(--lg-gris); }
.lg2-pied-in {
  max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--lg-trait);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.lg2-pied nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lg2 .lg2-pied a { color: #424245; }
.lg2 .lg2-pied a:hover { color: var(--lg-orange); }

/* ── Sommaire replié sur petit écran ─────────────────────────────────── */
.lg-toc-bascule { display: none; }

/* Téléphone et tablette : comme sur la landing, les liens du menu (coupés
   faute de place) laissent seuls Connexion et S'abonner, à droite. */
@media (max-width: 959px) {
  .lg2-entete-in { padding: 0 16px; gap: 14px; }
  .lg2-nav { display: none; }
  .lg2-connexion { margin-left: auto; margin-right: 0; }
}

@media (max-width: 1000px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; background: var(--lg-fond); border-radius: 20px; overflow: hidden; }
  .lg-toc-titre { display: none; }
  .lg-toc-bascule {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 18px 22px; background: none; border: 0;
    font-family: inherit; font-size: 15px; font-weight: 600; color: var(--lg-noir);
    cursor: pointer; text-align: left;
  }
  .lg-toc-bascule svg { transition: transform .35s var(--lg-courbe); flex: none; }
  .lg-toc-bascule[aria-expanded="true"] svg { transform: rotate(180deg); }
  .lg-toc-boite { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--lg-courbe); }
  .lg-toc-boite.est-ouvert { grid-template-rows: 1fr; }
  .lg-toc-boite > div { overflow: hidden; }
  .no-js .lg-toc-boite { grid-template-rows: 1fr; }
  .lg-toc-liste { padding: 0 22px 18px; }
}

@media (max-width: 640px) {
  .lg-hero { padding-top: 48px; }
  .lg-titre { max-width: none; }
  .lg-fiche { padding: 4px 20px 12px; border-radius: 22px; }
  .lg-fiche dt { flex-basis: 100%; }
  .lg-note, .lg-alerte { padding: 20px 22px; }
  .lg-role { padding: 24px; border-radius: 22px; }
  .lg-tab-hote { border-radius: 22px; }
  .lg-sec p, .lg-liste li { font-size: 16px; }
}

/* ── Impression : un document juridique finit souvent sur papier ─────── */
@media print {
  .lg2-entete, .lg2-pied, .lg-toc, .lg-fin, .lg-fil { display: none !important; }
  .lg-layout { display: block; padding: 0; }
  .lg-doc { max-width: none; }
  .lg-sec { page-break-inside: avoid; padding: 24px 0; }
  .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lg-tab { min-width: 0; }
  .lg2 a { color: #000 !important; }
}
