/* MaN Digital — page CGV / CGU (/cgv). Texte clair sur zone blanche, sommaire à ancres, tableaux défilants. */

.pagehead__inner--wide { max-width: 56ch; }

/* ---- Lecture : texte encre sur blanc, liens bleu encre ---- */
.cgv { padding-block: clamp(40px, 6vw, 84px); }
.cgv__doc { max-width: 86ch; margin-inline: auto; }
.cgv .legal-body { max-width: none; }
.cgv .legal-body h2 { color: #0a1a2b; font-size: var(--step-3); margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line-2); scroll-margin-top: 90px; }
.cgv .legal-body h2:first-of-type { margin-top: 36px; }
.cgv .legal-body h3 { color: #0a1a2b; font-size: var(--step-1); margin-top: 36px; scroll-margin-top: 90px; }
.cgv .legal-body h4 { color: #0a1a2b; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; margin: 22px 0 8px; scroll-margin-top: 90px; }
.cgv .legal-body p,
.cgv .legal-body li { color: #1c3149; line-height: 1.72; }
.cgv .legal-body ul, .cgv .legal-body ol { margin: 0 0 16px; }
.cgv .legal-body ol { padding-left: 1.4em; display: grid; gap: 8px; list-style: decimal; }
.cgv .legal-body ol li { display: list-item; }
.cgv .legal-body ul li { display: block; position: relative; padding-left: 20px; }
.cgv .legal-body ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; margin: 0; background: #176aaf; }
.cgv .legal-body a,
.link-ink { color: #176aaf; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.cgv .legal-body a:hover, .link-ink:hover { color: #0a1a2b; }
.cgv .legal-body strong { color: #0a1a2b; }
.cgv .legal-body blockquote {
  margin: 14px 0 20px; padding: 16px 20px; border-left: 4px solid #176aaf;
  background: #f4f4f0; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.cgv .legal-body blockquote p:last-child { margin-bottom: 0; }

/* ---- Tableaux : défilement horizontal sur petit écran ---- */
.table-wrap { overflow-x: auto; margin: 10px 0 22px; border: 1px solid var(--line-2); border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2.5px solid #176aaf; outline-offset: 2px; }
.cgv table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.cgv th, .cgv td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #1c3149; }
.cgv th { background: #f4f4f0; color: #0a1a2b; font-weight: 800; }
.cgv tr:last-child td { border-bottom: 0; }

/* ---- Sommaire ---- */
.cgv-toc { background: #f4f4f0; border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px clamp(16px, 3vw, 28px); }
.cgv-toc summary {
  cursor: pointer; list-style: none; padding: 16px 0; min-height: 48px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: #0a1a2b;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cgv-toc summary::-webkit-details-marker { display: none; }
.cgv-toc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: #176aaf; }
.cgv-toc details[open] summary::after { content: "−"; }
.cgv-toc__quick { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.cgv-toc__chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line-2);
  color: #0a1a2b; font-weight: 700; font-size: 0.95rem;
}
.cgv-toc__chip:hover { border-color: #176aaf; color: #176aaf; }
.cgv-toc__cols { display: grid; grid-template-columns: 1fr; gap: 6px 36px; padding-bottom: 20px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.cgv-toc__h { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #3a516e; margin: 14px 0 6px; }
.cgv-toc__h a { color: inherit; }
.cgv-toc__list { list-style: none; display: grid; gap: 0; }
.cgv-toc__list a { display: block; padding: 7px 0; color: #176aaf; font-weight: 600; font-size: 0.96rem; line-height: 1.35; }
.cgv-toc__list a:hover { color: #0a1a2b; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .cgv-toc__cols { grid-template-columns: 1fr 1fr; } }

.cgv__sha { margin-top: 40px; font-size: 0.85rem; color: #3a516e; word-break: break-all; }
.cgv__sha code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: #0a1a2b; }
.cgv__back { margin-top: 18px; }
:target { scroll-margin-top: 90px; }

/* ---- Barre du haut : verre bleu nuit dès qu'on défile (le logo clair reste lisible sur la zone blanche) ---- */
body.page-light .topbar.is-scrolled::before {
  opacity: 1; background: rgba(8, 17, 29, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cgv-toc { margin-bottom: 28px; }
