/* KommIA : pages légales (mentions légales, CGUV, confidentialité, cookies, DPA), chargées après site.css.
   Le texte juridique est repris mot pour mot ; seul le balisage suit le design du site : haut de page sobre,
   sommaire à gauche qui suit la lecture, texte en une colonne lisible, fiches et tableaux en filets sans encadré. */
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--violet-ink); }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #876AFF, #168EFF); box-shadow: 0 0 0 4px rgba(135, 106, 255, 0.14); }

/* ────── Haut de page ────── */
.lhero { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(40px, 5vw, 72px); }
.lhero__title { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.8rem); font-weight: 620; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.lhero__lead { margin-top: 22px; max-width: 44rem; font-size: 1.08rem; line-height: 1.65; color: var(--ink-70); text-wrap: pretty; }
.lhero__lead strong { font-weight: 600; color: var(--ink); }
/* Pages anglaises : la version française fait foi (avertissement repris des anciennes pages, 2026-09-29) */
.lhero__note { margin-top: 16px; max-width: 44rem; padding-left: 14px; border-left: 2px solid rgba(135, 106, 255, 0.45); font-size: 14px; line-height: 1.6; color: var(--ink-60); text-wrap: pretty; }
.lhero__note strong { font-weight: 600; color: var(--ink); }
.lhero__meta { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-60); }
.lhero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.lhero__meta li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: 0.6; }

/* ────── Le document : le sommaire à gauche, le texte à droite ────── */
.legal {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) var(--section-y);
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 760px); gap: clamp(40px, 6vw, 112px); align-items: start;
}
.ltoc { position: sticky; top: calc(var(--nav-h) + 32px); max-height: calc(100vh - var(--nav-h) - 64px); overflow-y: auto; scrollbar-width: none; }
.ltoc::-webkit-scrollbar { display: none; }
.ltoc__label { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-60); }
.ltoc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.ltoc__list a {
  position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; text-decoration: none;
  font-size: 14.5px; line-height: 1.4; color: var(--ink-60); transition: color 200ms var(--ease-out);
}
/* La partie en cours : texte en noir et trait au dégradé de la marque, comme le sommaire des autres pages */
.ltoc__list a::before {
  content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #168EFF, #876AFF, #5AD3FF); transform: scaleY(0); transition: transform 350ms var(--ease-out);
}
.ltoc__list a:hover { color: var(--ink); }
.ltoc__list a[aria-current="true"] { color: var(--ink); }
.ltoc__list a[aria-current="true"]::before { transform: scaleY(1); }
.ltoc__num { flex: none; min-width: 1.6em; font-size: 12.5px; font-weight: 600; line-height: 1.6; color: var(--violet); font-variant-numeric: tabular-nums; }
/* Sur téléphone, le sommaire se replie en tête du document */
.ltoc-m { display: none; }

/* ────── Les parties ────── */
.lsec + .lsec { margin-top: clamp(44px, 5vw, 64px); padding-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); }
.lsec h2 { font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.9rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.lsec__num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--violet); }
.lprose { margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--ink-70); }
.lprose > * + * { margin-top: 14px; }
.lprose p, .lprose li { text-wrap: pretty; }
.lprose strong { font-weight: 600; color: var(--ink); }
.lprose em { font-style: italic; }
.lprose a { color: var(--violet-ink); text-decoration: underline; text-decoration-color: rgba(91, 63, 224, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lprose a:hover { text-decoration-color: currentColor; }
.lprose ul, .lprose ol { margin-left: 0; padding-left: 0; list-style: none; }
.lprose li { position: relative; padding-left: 20px; }
.lprose li + li { margin-top: 8px; }
.lprose ul > li::before { content: ''; position: absolute; left: 3px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: 0.65; }
.lprose code { padding: 1px 6px; border-radius: 6px; background: rgba(135, 106, 255, 0.08); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; color: var(--ink); }
.lsub { margin-top: 30px; }
.lprose h3, .lsub h3 { margin-top: 30px; font-size: 1.1rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.4; color: var(--ink); }
.lsub h3 { margin-top: 0; }
.lsub__num { margin-right: 10px; font-size: 0.9em; font-weight: 600; color: var(--violet); font-variant-numeric: tabular-nums; }
.lsub > * + * { margin-top: 12px; }

/* Fiche d'identité : des lignes séparées par des filets, sans encadré */
.lcard { margin-top: 18px; border-top: 1px solid var(--line); }
.lcard__row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.lcard__row:last-child { border-bottom: 0; }
.lcard__label { color: var(--ink-60); }
.lcard__value { font-weight: 600; }

/* Définitions : le terme en gras, sa définition dessous, séparés par des filets */
.ldefs { margin-top: 18px; border-top: 1px solid var(--line); }
.ldefs dt { padding-top: 14px; font-weight: 600; color: var(--ink); }
.ldefs dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ldefs dd:last-child { border-bottom: 0; }

/* Tableaux : en-tête discret, lignes en filets ; défilement horizontal sur téléphone */
.ltable-wrap { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ltable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.ltable th { padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(14, 14, 20, 0.14); text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-60); white-space: nowrap; }
.ltable td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-70); }
.lpill { display: inline-flex; align-items: center; margin: 0 4px 2px 0; padding: 2px 10px; border-radius: 999px; background: rgba(135, 106, 255, 0.1); color: var(--violet-ink); font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
h3 .lpill { margin-left: 8px; }
.lsmall { font-size: 12.5px; color: var(--ink-60); }
.lcopy { margin-top: 26px !important; font-size: 13px; color: var(--ink-60); }

/* À savoir : un filet violet à gauche, comme les conclusions des comparatifs */
.lnote { margin-top: 20px !important; padding: 2px 0 2px 18px; border-left: 2px solid rgba(135, 106, 255, 0.45); color: var(--ink); }
/* Mention encore à compléter : repérable, sans crier */
.lph { padding: 1px 6px; border-radius: 4px; background: rgba(135, 106, 255, 0.08); font-style: italic; font-weight: 500; color: var(--violet-ink); }
/* Bouton des préférences cookies (ouvre la fenêtre de consentement) */
.lcta {
  display: inline-flex !important; align-items: center; height: 48px; margin-top: 18px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: #fff !important; text-decoration: none !important; font-size: 15px; font-weight: 600;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.lcta:hover { background: #26262E; }
.lcta:active { transform: scale(0.98); }

/* ────── Les autres documents légaux, en fin de page : des lignes à filets, une flèche qui avance au survol ────── */
.ldocs { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.ldocs__label { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-60); }
.ldocs__list { list-style: none; margin: 0; padding: 0; }
.ldocs__list li + li { border-top: 1px solid var(--line); }
.ldocs__list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.ldocs__text { display: flex; flex-direction: column; gap: 3px; }
.ldocs__name { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; transition: color 200ms var(--ease-out); }
.ldocs__desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-60); }
.ldocs__arrow {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(135, 106, 255, 0.12); color: var(--violet);
  transition: transform 300ms var(--ease-spring), background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
@media (hover: hover) {
  .ldocs__list a:hover .ldocs__name { color: var(--violet-ink); }
  .ldocs__list a:hover .ldocs__arrow { transform: translateX(3px); background: linear-gradient(135deg, #168EFF, #876AFF); color: #fff; }
}

/* ────── Tablette et téléphone ────── */
@media (max-width: 899px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ltoc { display: none; }
  .ltoc-m { display: block; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ltoc-m summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding-right: 36px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--ink); }
  .ltoc-m summary::-webkit-details-marker { display: none; }
  .ltoc-m__count { font-size: 14px; font-weight: 500; color: var(--ink-60); }
  .ltoc-m .qa__icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .ltoc-m[open] .qa__icon::after { transform: rotate(0deg); }
  .ltoc-m__list { list-style: none; margin: 0; padding: 0 0 14px; }
  .ltoc-m__list a { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--ink-70); }
  .lcard__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ltoc__list a::before, .ldocs__arrow { transition: none; }
}
