/* ═══════════════════════════════════════════════════════════════════
   PAGES LÉGALES — Termes & conditions / Politique de confidentialité
   Préfixe lg-.  Le hero (.pm-hero) et le conteneur (.pm-container)
   viennent de maison.css : cette feuille n'habille que le contenu.
═══════════════════════════════════════════════════════════════════ */

.lg-page .pm-container { max-width: 90%; padding-bottom: 96px; }

/* Le hero des pages légales n'a pas de photo : on lui donne le dégradé
   bleu de la marque plutôt que l'ambiance orangée par défaut de maison.css. */
.lg-page .pm-hero__inner {
  background:
    radial-gradient(45% 65% at 16% 45%, rgba(242,186,63,.38), transparent 70%),
    radial-gradient(45% 65% at 82% 60%, rgba(21,121,190,.55), transparent 70%),
    linear-gradient(160deg, #1b3f78 0%, #13294B 100%);
}
.lg-page .pm-hero__welcome { letter-spacing: .01em; }

/* ─── Fil d'Ariane ─── */
.lg-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin: 18px 0 4px;
  font-family: var(--pm-font); font-size: 14px; color: var(--pm-muted);
}
.lg-breadcrumb a { color: var(--pm-muted); text-decoration: none; }
.lg-breadcrumb a:hover { color: var(--pm-blue); }
.lg-breadcrumb .sep { color: var(--pm-chip); }
.lg-breadcrumb .current {
  background: #EDF1F7; color: var(--pm-blue); font-weight: 500;
  border-radius: 999px; padding: 4px 14px;
}

/* ─── Grille : sommaire collant + corps ─── */
.lg-layout {
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: 40px; align-items: start; margin-top: 28px;
}
@media (max-width: 991px) { .lg-layout { grid-template-columns: 1fr; gap: 24px; } }

.lg-toc {
  position: sticky; top: 104px; align-self: start;
  background: var(--pm-soft2); border: 1px solid #E4E8ED;
  border-radius: 18px; padding: 20px 18px;
  max-height: calc(100vh - 140px); overflow-y: auto;
}
@media (max-width: 991px) { .lg-toc { position: static; max-height: none; } }
.lg-toc__title {
  margin: 0 0 12px; font-family: var(--pm-font);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pm-blue);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.lg-toc__title::-webkit-details-marker { display: none; }   /* Safari */
/* Chevron : visible seulement là où le sommaire se replie (mobile). */
.lg-toc__title::after {
  content: ""; display: none; flex: 0 0 auto;
  width: 8px; height: 8px; margin-right: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}
@media (max-width: 991px) {
  .lg-toc__title { margin-bottom: 0; cursor: pointer; }
  .lg-toc__title::after { display: block; }
  .lg-toc[open] .lg-toc__title { margin-bottom: 12px; }
  .lg-toc[open] .lg-toc__title::after { transform: rotate(-135deg) translate(-2px, -2px); }
}
@media (min-width: 992px) { .lg-toc__title { cursor: default; pointer-events: none; } }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lgtoc; }
.lg-toc li { margin: 0 0 2px; }
.lg-toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 10px; border-radius: 10px;
  font-family: var(--pm-font); font-size: 13.5px; line-height: 1.35;
  color: #445061; text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.lg-toc a::before {
  counter-increment: lgtoc; content: counter(lgtoc);
  flex: 0 0 auto; min-width: 18px;
  font-size: 11px; font-weight: 700; color: var(--pm-chip);
}
.lg-toc a:hover { background: #fff; color: var(--pm-blue); }
.lg-toc a.is-active { background: var(--pm-blue); color: #fff; }
.lg-toc a.is-active::before { color: rgba(255,255,255,.7); }

/* ─── Corps ─── */
.lg-body { font-family: var(--pm-font); color: var(--pm-ink); min-width: 0; }

.lg-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px; font-size: 13.5px; color: var(--pm-muted);
}
.lg-meta__pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(24,66,128,.07); color: var(--pm-blue);
  border-radius: 999px; padding: 6px 14px; font-weight: 500;
}
.lg-meta__pill svg { width: 15px; height: 15px; }

.lg-section {
  padding: 26px 0;
  border-bottom: 1px solid #E8EBEF;
  scroll-margin-top: 110px;   /* le header est fixe : sans ça l'ancre passe dessous */
}
.lg-section:last-child { border-bottom: 0; }
.lg-section > h2 {
  margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700;
  line-height: 1.25; color: var(--pm-blue); letter-spacing: -.01em;
}
.lg-section__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 10px; vertical-align: 2px;
  border-radius: 9px; background: var(--pm-yellow); color: #1a1a1a;
  font-size: 13px; font-weight: 700;
}
.lg-section p {
  margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: #3a4453;
}
.lg-section p:last-child { margin-bottom: 0; }
.lg-section b, .lg-section strong { color: var(--pm-ink); font-weight: 600; }
.lg-section a, .lg-section .LienReplaceTxt {
  color: var(--pm-blue); text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.lg-section blockquote {
  margin: 0 0 14px; padding: 12px 18px;
  border-left: 3px solid var(--pm-yellow); background: var(--pm-soft2);
  border-radius: 0 12px 12px 0;
}
.lg-section blockquote p { margin: 0; }

/* ─── Encart d'aide en fin de page ─── */
.lg-help {
  margin-top: 36px; padding: 26px 28px;
  background: var(--pm-soft2); border: 1px solid #E4E8ED; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.lg-help h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--pm-blue); }
.lg-help p  { margin: 0; font-size: 14.5px; color: var(--pm-muted); }
.lg-help__btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--pm-blue); color: #fff !important; text-decoration: none !important;
  border-radius: 999px; padding: 12px 22px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background 140ms ease;
}
.lg-help__btn:hover { background: var(--pm-blue-h); color: #fff !important; }
.lg-help__btn svg { width: 16px; height: 16px; }

/* ─── Aucun contenu ─── */
.lg-empty {
  padding: 60px 20px; text-align: center;
  color: var(--pm-muted); font-size: 15px; font-family: var(--pm-font);
}
