/* Pages juridiques kilodelta.fr (mentions légales, confidentialité, CGU).
 * Complément de pages.css, préfixe lg-. Rien ici ne redéfinit une classe pg-.
 */

/* ── Sélecteur des trois documents (héro) ── */
.lg-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.lg-switch a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(10,22,40,.6);
  color: var(--text-muted); text-decoration: none; font: 600 13px Inter, sans-serif; transition: border-color .2s, color .2s, background .2s; }
.lg-switch a:hover { color: var(--text); border-color: var(--f); }
.lg-switch a[aria-current="page"] { color: #fff; border-color: var(--f); background: rgba(242,76,192,.1); }

/* ── Fiches d'identité (éditeur, hébergeurs) ── */
.lg-dl { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); margin: 4px 0 0; }
.lg-dl dt, .lg-dl dd { margin: 0; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 14.5px; line-height: 1.5; }
.lg-dl dt { color: var(--text-dim); padding-right: 18px; }
.lg-dl dd { color: var(--text); overflow-wrap: anywhere; }
.lg-dl dt:first-of-type, .lg-dl dt:first-of-type + dd { border-top: 0; }
.lg-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lg-card-h h3 { margin: 0; }

/* ── Cartes « flux » : donnée / pourquoi / base / durée / où ── */
.lg-flows { display: grid; gap: 14px; margin-top: 14px; }
.lg-flowcard { scroll-margin-top: calc(var(--top) + 20px); border-left: 3px solid color-mix(in srgb, var(--k, var(--f)) 70%, transparent); --c2: var(--k, var(--f)); }
.lg-flowcard .when { font-size: 13.5px; color: var(--text-dim); margin: 2px 0 0; }
.lg-kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; }
.lg-kv dt { font: 700 11px Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.lg-kv dd { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.lg-kv dd strong { color: var(--text); }
.lg-flowcard:target { border-color: var(--f); box-shadow: 0 0 0 1px var(--f), 0 16px 50px rgba(242,76,192,.16); }
.lg-grp { display: flex; align-items: center; gap: 10px; margin: 30px 0 4px; font: 700 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.lg-grp::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--k, var(--f)); box-shadow: 0 0 8px var(--k, var(--f)); }
[data-kind="choice"] { --k: var(--g); }
[data-kind="account"] { --k: var(--c); }
[data-kind="auto"] { --k: var(--a); }

/* ── Schéma téléphone → serveurs ── */
.lg-flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, .85fr); gap: 16px; align-items: start; margin-top: 18px; }
.lg-side { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 12px; }
.lg-side h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15.5px; }
.lg-side > p { margin: 0 0 10px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.lg-side ul { list-style: none; margin: 0; padding: 0 !important; }
.lg-side li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid rgba(255,255,255,.05); font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.lg-side li:first-child { border-top: 0; }
.lg-phone { border-color: rgba(52,211,153,.35); background: linear-gradient(180deg, rgba(52,211,153,.07), var(--card) 40%); }
.lg-phone h3 { color: #7ff0c4; }
.lg-phone li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 9px; height: 5px; border-left: 2px solid var(--g); border-bottom: 2px solid var(--g); transform: rotate(-45deg); }
.lg-lanes { display: grid; gap: 16px; }
.lg-lgroup > b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 11.5px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.lg-lgroup > div { display: grid; gap: 6px; }
.lg-lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 12px 8px; border-radius: 12px; border: 1px solid var(--border); background: rgba(10,22,40,.55); color: var(--text); font: inherit;
  transition: border-color .2s, background .2s, transform .2s; }
.lg-lane:hover { border-color: color-mix(in srgb, var(--k) 55%, transparent); }
.lg-lane:focus-visible { outline: 2px solid var(--f); outline-offset: 2px; }
.lg-lane.on { border-color: var(--k); background: color-mix(in srgb, var(--k) 9%, rgba(10,22,40,.7)); }
.lg-lane .n { font: 600 14px/1.3 Inter, sans-serif; }
.lg-lane .to { font: 600 11px 'JetBrains Mono', ui-monospace, monospace; color: var(--text-dim); white-space: nowrap; }
.lg-lane.on .to { color: var(--text); }
.lg-wire { grid-column: 1 / -1; position: relative; height: 2px; margin-top: 6px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, rgba(52,211,153,.45), color-mix(in srgb, var(--k) 60%, transparent)); opacity: .45; transition: opacity .2s; }
.lg-wire::after { content: ""; position: absolute; top: -2px; left: -8px; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px var(--k); animation: lg-run 3.4s linear infinite; animation-delay: var(--d, 0s); }
.lg-lane.on .lg-wire, .lg-lane:hover .lg-wire { opacity: 1; }
.lg-lane.on .lg-wire::after { animation-duration: 1.6s; }
@keyframes lg-run { from { left: -8px; } to { left: 100%; } }
.lg-dests { display: grid; gap: 6px; }
.lg-d { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(10,22,40,.55); transition: border-color .25s, background .25s, opacity .25s; }
.lg-d b { font: 600 13.5px/1.3 Inter, sans-serif; color: var(--text); }
.lg-d small { grid-column: 1; font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.lg-d i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 10.5px 'JetBrains Mono', monospace; font-style: normal; color: var(--text-muted);
  padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border); }
.lg-d i.out { color: #ffd39a; border-color: rgba(255,167,38,.4); }
.lg-flow.sel .lg-d { opacity: .5; }
.lg-flow.sel .lg-d.hit { opacity: 1; border-color: var(--f); background: rgba(242,76,192,.09); }
.lg-panel { margin-top: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(79,195,247,.05), rgba(242,76,192,.06)); }
.lg-panel h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; }
.lg-panel .lg-kv { margin-top: 10px; }
.lg-panel .more { display: inline-block; margin-top: 12px; font-size: 13.5px; }
.lg-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.lg-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ── Divers ── */
.lg-use .pg-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.lg-use .pg-card .ic { margin: 0; flex: none; }
.lg-use .pg-card p { color: var(--text); font-size: 15px; }
.lg-alert { margin: 14px 0 18px; padding: 16px 18px; border-left: 3px solid #ff5a3c; border-radius: 0 12px 12px 0; background: rgba(255,90,60,.09);
  color: var(--text); font-size: 15.5px; line-height: 1.7; font-weight: 600; }
.lg-rights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.lg-rights .pg-card { padding: 14px 16px; }
.lg-rights h3 { font-size: 15px; margin: 0 0 4px; }
.lg-rights p { font-size: 13.5px; }
.lg-table td:first-child { color: var(--text); font-weight: 600; }
.lg-table td small { display: block; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.lg-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.lg-docs .pg-card p { font-size: 13.5px; }
.lg-updated { font-size: 13px; color: var(--text-dim); margin-top: 26px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .lg-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .lg-dests { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lg-flow { grid-template-columns: minmax(0, 1fr); }
  .lg-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lg-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lg-kv dd { margin-bottom: 8px; }
  .lg-dl { grid-template-columns: minmax(0, 1fr); }
  .lg-dl dt { padding-bottom: 0; }
  .lg-dl dd { border-top: 0; padding-top: 2px; }
  .lg-rights { grid-template-columns: minmax(0, 1fr); }
  .lg-dests { grid-template-columns: minmax(0, 1fr); }
  .lg-lane .to { white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-wire::after { display: none; }
  .lg-lane, .lg-d { transition: none; }
}
