/* Orle Edge : pages de texte légal (mentions-legales.html, confidentialite.html). Agent « Pied et légal », 03/12/2026.
   Une colonne de lecture (68 caractères), un sommaire collant à gauche qui suit la section lue (page-legal.js),
   des fiches pour les informations de la société, des tableaux qui deviennent des fiches sur téléphone.
   « À compléter » : étiquette ambre, comme les chiffres « À confirmer » de l'accueil.
   Couleurs (04/12) : surfaces en aplat (--o-surface, --o-surface-2) sur le fond encre-indigo, aucune lueur ni couleur sombre en dur. */

.o-legal { padding: 72px var(--g) 0; }

/* Tête : onglets entre les pages légales, titre, chapeau, date */
.o-legal-tete { max-width: 760px; }
.o-legal-onglets { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 28px; border-radius: var(--o-r-2); background: var(--o-voile); box-shadow: inset 0 0 0 1px var(--o-filet); }
.o-legal-onglets a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--o-r-1); color: var(--o-texte-2); font: 460 13px/1 var(--o-texte-f); text-decoration: none; white-space: nowrap;
  transition: color var(--o-court) var(--o-courbe), background-color var(--o-court) var(--o-courbe); }
.o-legal-onglets a:hover { color: var(--o-texte); background: var(--o-voile); }
.o-legal-onglets a[aria-current="page"] { color: var(--o-texte); background: var(--o-surface-3); box-shadow: var(--o-reflet), 0 1px 2px rgba(0, 0, 0, .35); }
.o-legal-onglets a:focus-visible { outline: 2px solid var(--o-bleu-texte); outline-offset: 1px; }
.o-legal h1 { margin: 0; font: var(--o-titre-graisse) clamp(34px, 3.4cqw, 46px)/1.08 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.03em; text-wrap: balance; }
.o-legal-chapo { margin-top: 16px; max-width: 54ch; font-size: 16px; line-height: 1.65; color: var(--o-texte-2); text-wrap: pretty; }
.o-legal-maj { margin-top: 14px; font: 450 12.5px/1.4 var(--o-mono); letter-spacing: .01em; color: var(--o-texte-3); }

/* Grille : sommaire collant, puis le texte */
.o-legal-grille { display: grid; grid-template-columns: 232px minmax(0, 720px); gap: 72px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--o-filet); }
.o-legal-som { position: sticky; top: 96px; align-self: start; }
.o-legal-som .t { margin-bottom: 10px; font: 500 12px/1.3 var(--o-texte-f); letter-spacing: .01em; color: var(--o-texte-3); }
.o-legal-som ol { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: som; }
.o-legal-som ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--o-filet); }
.o-legal-som li { counter-increment: som; }
.o-legal-som a { position: relative; display: flex; gap: 10px; padding: 7px 8px 7px 16px; border-radius: 0 var(--o-r-1) var(--o-r-1) 0; color: var(--o-texte-3); font: 430 13.5px/1.4 var(--o-texte-f); text-decoration: none;
  transition: color var(--o-court) var(--o-courbe), background-color var(--o-court) var(--o-courbe); }
.o-legal-som a::before { content: counter(som, decimal-leading-zero); min-width: 16px; font: 450 11.5px/1.7 var(--o-mono); color: var(--o-texte-3); opacity: .7; }
.o-legal-som a::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--o-bleu-texte); transform: scaleY(0); transition: transform var(--o-moyen) var(--o-courbe); }
.o-legal-som a:hover { color: var(--o-texte); background: var(--o-voile); }
.o-legal-som a[aria-current="true"] { color: var(--o-texte); }
.o-legal-som a[aria-current="true"]::before { color: var(--o-bleu-texte); opacity: 1; }
.o-legal-som a[aria-current="true"]::after { transform: scaleY(1); }
.o-legal-som a:focus-visible { outline: 2px solid var(--o-bleu-texte); outline-offset: -2px; }

/* Texte */
.o-legal-txt { min-width: 0; }
.o-legal-txt section { padding-bottom: 44px; } /* le décalage sous l'en-tête vient de html { scroll-padding-top } (site-page.css) */
.o-legal-txt section + section { padding-top: 40px; border-top: 1px solid var(--o-filet); }
/* Chaque section est l'accordéon commun (details.o-repli, site.css). Grand écran (.o-legal--plat, posé par page-legal.js) :
   ouvert et figé, le résumé n'est qu'un titre numéroté. Téléphone : l'accordéon de la FAQ, signe plus/moins compris. */
.o-legal-txt h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; color: var(--o-texte); }
.o-legal-txt h2:focus { outline: none; }
.o-legal-sec > .o-repli > summary .n { width: auto; min-width: 22px; }
.o-legal--plat .o-legal-sec > .o-repli { border: 0; }
.o-legal--plat .o-legal-sec > .o-repli > summary { align-items: baseline; gap: 12px; min-height: 0; padding: 0 0 14px; cursor: default; pointer-events: none; }
.o-legal--plat .o-legal-sec > .o-repli > summary::before, .o-legal--plat .o-legal-sec > .o-repli > summary::after { display: none; }
.o-legal--plat .o-legal-sec > .o-repli > summary .n { font-size: 13px; transform: translateY(-2px); }
.o-legal--plat .o-legal-sec > .o-repli::details-content { block-size: auto; opacity: 1; transition: none; }
.o-legal-txt h3 { margin: 28px 0 12px; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.o-legal-txt p, .o-legal-txt li { max-width: 62ch; font-size: 15.5px; line-height: 1.7; color: var(--o-texte-2); text-wrap: pretty; } /* 62ch de Geist ≈ 75 signes */
.o-legal-txt p + p { margin-top: 12px; }
.o-legal-txt b { font-weight: 500; color: var(--o-texte); }
.o-legal-txt ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.o-legal-txt ul li { position: relative; padding-left: 20px; }
.o-legal-txt ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 6px; height: 1px; background: var(--o-texte-3); }
.o-legal-txt .o-lien { font-weight: 480; }
.o-legal-note { margin-top: 16px !important; padding: 12px 14px; border-radius: var(--o-r-2); background: var(--o-voile); font-size: 15px !important; }

/* À compléter */
.o-afaire { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--o-r-1); background: rgba(242, 177, 74, .10); color: var(--o-ambre); font: 470 12.5px/1.3 var(--o-texte-f); white-space: nowrap; vertical-align: 1px; }

/* Fiche : libellé à gauche, valeur à droite, dans un panneau posé */
.o-fiche { margin: 18px 0 0; border-radius: var(--o-r-3); background: var(--o-surface); box-shadow: inset 0 0 0 1px var(--o-filet), var(--o-reflet); overflow: hidden; }
.o-fiche > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 20px; align-items: center; padding: 13px 18px; transition: background-color var(--o-court) var(--o-courbe); }
.o-fiche > div + div { border-top: 1px solid var(--o-filet); }
.o-fiche > div:hover { background: var(--o-voile); }
.o-fiche dt { font-size: 14px; color: var(--o-texte-3); }
.o-fiche dd { margin: 0; font-size: 14.5px; color: var(--o-texte); }

/* Tableaux */
.o-tableau { margin-top: 18px; border-radius: var(--o-r-3); box-shadow: inset 0 0 0 1px var(--o-filet); overflow: hidden; }
.o-tableau:focus-visible { outline: 2px solid var(--o-bleu-texte); outline-offset: 2px; }
.o-tableau table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.o-tableau thead th { padding: 11px 16px; background: var(--o-surface-2); color: var(--o-texte-3); font: 500 12.5px/1.3 var(--o-texte-f); text-align: left; }
.o-tableau tbody th, .o-tableau td { padding: 13px 16px; border-top: 1px solid var(--o-filet); vertical-align: top; text-align: left; color: var(--o-texte-2); }
.o-tableau tbody th { font-weight: 480; color: var(--o-texte); }
.o-tableau tbody tr { transition: background-color var(--o-court) var(--o-courbe); }
.o-tableau tbody tr:hover { background: var(--o-voile); }
.o-tableau code { font-size: 12.5px; color: var(--o-texte); padding: 2px 6px; border-radius: var(--o-r-1); background: var(--o-voile-appui); }

/* Conteneur moyen : le sommaire se resserre */
@container (max-width: 1100px) {
  .o-legal-grille { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}
/* Téléphone et tablette étroite : le sommaire passe au-dessus du texte, en liste compacte */
@container (max-width: 900px) {
  .o-legal { padding: 40px 16px 0; }
  .o-legal h1 { font-size: 32px; }
  .o-legal-chapo { font-size: 15.5px; }
  .o-legal-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; padding-top: 28px; }
  .o-legal-som { position: static; padding: 14px 12px 10px; border-radius: var(--o-r-3); background: var(--o-voile); }
  .o-legal-som .t { padding-left: 4px; }
  .o-legal-som ol { columns: 2; column-gap: 8px; }
  .o-legal-som ol::before, .o-legal-som a::after { display: none; }
  .o-legal-som li { break-inside: avoid; }
  .o-legal-som a { padding: 8px 6px; border-radius: var(--o-r-1); }
  .o-legal-txt section { padding-bottom: 36px; }
  .o-legal-txt section + section { padding-top: 32px; }
}
@container (max-width: 640px) {
  /* Téléphone : les sections deviennent des accordéons ; le sommaire n'a plus lieu d'être, les titres le remplacent */
  .o-legal-som { display: none; }
  .o-legal-grille { margin-top: 28px; padding-top: 0; border-top: 0; }
  .o-legal-txt { border-top: 1px solid var(--o-filet); }
  .o-legal-txt section, .o-legal-txt section + section { padding: 0; border-top: 0; }
  .o-legal-sec > .o-repli > summary h2 { font: inherit; letter-spacing: inherit; color: inherit; }
  .o-legal-c { padding: 2px 0 26px; }
  .o-legal-onglets { display: flex; width: 100%; }
  .o-legal-onglets a { flex: 1; justify-content: center; padding: 0 6px; }
  .o-legal-som ol { columns: 1; }
  .o-legal-txt h2 { font-size: 20px; }
  .o-legal-txt p, .o-legal-txt li { font-size: 15px; }
  .o-fiche > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; }
  .o-fiche dt { font-size: 13px; }
  /* Tableaux en fiches : une carte par ligne, l'intitulé de colonne en petit */
  .o-tableau { box-shadow: none; border-radius: 0; overflow: visible; }
  .o-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .o-tableau table, .o-tableau tbody, .o-tableau tr { display: block; }
  .o-tableau tbody { display: flex; flex-direction: column; gap: 8px; }
  .o-tableau tbody tr { padding: 6px 14px; border-radius: var(--o-r-3); background: var(--o-surface); box-shadow: inset 0 0 0 1px var(--o-filet); }
  .o-tableau tbody th, .o-tableau td { position: relative; display: block; min-height: 34px; padding: 7px 0 7px 104px; border-top: 0; }
  .o-tableau tbody tr > * + * { border-top: 1px solid var(--o-filet); }
  .o-tableau tbody th::before, .o-tableau td::before { content: attr(data-l); position: absolute; left: 0; top: 9px; width: 92px; font: 450 12px/1.5 var(--o-texte-f); color: var(--o-texte-3); }
  .o-tableau .o-afaire { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .o-legal-som a::after { transition: none; animation: none; }
}
