/* French Path Canada · les pages légales (conditions, terms, confidentialité, privacy), 21 nov. 2026.

   Le TEXTE ne change pas d'un mot : ce sont des engagements. Seule la présentation change
   (scripts/generer_pages_legales.py, presenter) :
     - un sommaire des sections numérotées : une grille de tuiles en haut au téléphone, une colonne collante à
       côté du texte à l'ordinateur, qui marque la section en cours de lecture ;
     - des intertitres repérables : le numéro dans sa tuile, un filet au-dessus ;
     - un texte plus serré (interlignes et marges), pour que la page reste plus courte malgré le sommaire.
   Tout le texte reste visible. Feuille posée après pages.css et blocs.css. */
.pg-main:has(> .lg) { padding-top: 1.5rem; padding-bottom: 2.6rem; }
@media (min-width: 1000px) { .pg-main:has(> .lg) { max-width: 1040px; } }
.pg-main:has(> .lg) > .crumbs { margin-bottom: 0.9rem; }
.pg-main:has(> .lg) > h1 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.pg-main:has(> .lg) > .lead { margin: 0 0 1.1rem; font-size: 0.98rem; }

/* ── Le sommaire ── */
.lg-som { margin: 0 0 1.4rem; }
.lg-som-t { margin: 0 0 8px !important; font-size: var(--fp-t-5); font-weight: 700; color: var(--fp-encre-2); }
.pg-main .lg-som ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pg-main .lg-som li { margin: 0; }
.pg-main .lg-som a { display: flex; align-items: center; gap: 9px; height: 100%; min-height: 44px; padding: 6px 10px 6px 6px;
  background: var(--fp-carte); border: 1px solid var(--fp-trait); border-radius: 12px; color: var(--fp-encre); text-decoration: none;
  font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.pg-main .lg-som a:hover { border-color: var(--fp-trait-fort); }
.lg-som-n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fp-creux);
  color: var(--fp-encre); font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* La section en cours de lecture (le petit script de la page) : un repère à l'encre. */
.pg-main .lg-som a[aria-current] { border-color: var(--fp-repere); box-shadow: inset 0 0 0 1px var(--fp-repere); }
.pg-main .lg-som a[aria-current] .lg-som-n { background: var(--fp-encre); color: var(--fp-papier); }

/* ── Le texte : plus serré, des intertitres repérables (numéro en tuile, filet au-dessus). ── */
.lg-texte { line-height: 1.6; }
.pg-main .lg-texte p { margin: 0 0 0.85rem; }
.pg-main .lg-texte ul { margin: 0 0 0.95rem 1.15rem; }
.pg-main .lg-texte li { margin-bottom: 0.4rem; }
.lg-texte li::marker { color: var(--fp-encre-2); }
.pg-main .lg-texte h2 { display: flex; align-items: center; gap: 10px; margin: 1.35rem 0 0.6rem; padding-top: 1rem; border-top: 1px solid var(--fp-trait);
  font-size: 1.2rem; line-height: 1.3; }
.lg-n { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--fp-creux); color: var(--fp-encre); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .lg-n { min-width: 32px; height: 32px; }
  .pg-main .lg-texte h2 { font-size: 1.12rem; }
}

/* ── À l'ordinateur : le sommaire collant à gauche, le texte à droite (sa largeur de lecture, 720 px environ). ── */
@media (min-width: 1000px) {
  .lg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
  .lg-som { position: sticky; top: calc(var(--entete-h, 64px) + 18px); margin: 0; }
  .pg-main .lg-som ol { grid-template-columns: 1fr; gap: 2px; }
  .pg-main .lg-som a { min-height: 38px; padding: 4px 8px 4px 4px; background: transparent; border-color: transparent; }
  .pg-main .lg-som a:hover { background: var(--fp-creux); border-color: transparent; }
  .lg-texte > p:first-child { margin-top: 0; }
}
@media print { .lg-som { display: none; } .lg { display: block; } }
