/* ════════════════════════════════════════════════════════════════════
   Pages légales du cabinet — « Chacun construit son Otium » (25/10/2026)
   Gabarit : templates/site_v2/legal_csn.html (drapeau chacun_son_otium
   seulement). Présentation seulement : les textes ne changent pas.
   Figtree, crème, or et encre. Lecture : environ 70 caractères.
   ════════════════════════════════════════════════════════════════════ */
.lx { --lx-encre: var(--s2-brun, #211A14); --lx-doux: var(--s2-doux, #6F6357); --lx-trait: var(--s2-filet, #E6DCCB);
      --lx-creme: var(--s2-fond-2, #EFE7DA); --lx-or: var(--s2-accent, #B58A3C); --lx-carte: var(--s2-carte, #fff);
      padding: 20px 0 56px; color: var(--lx-encre); }

/* ── Grille : sommaire collant, colonne de lecture centrée ── */
.lx-grille { display: grid; grid-template-columns: minmax(0, 1fr); }
.lx-cote { display: none; }
.lx-texte { min-width: 0; max-width: 70ch; margin: 0 auto; width: 100%; }

/* ── En-tête du document ── */
.lx-tete { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--lx-trait); }
.lx .lx-titre { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.lx-date { margin: 8px 0 0; font-size: 13px; color: var(--lx-doux); }

/* ── Sommaire (ordinateur) : gris, le chapitre lu en encre et gras, liseré or ── */
.lx-som { display: flex; flex-direction: column; }
.lx-som__t { margin: 0 0 10px; padding-left: 14px; font-size: 13px; font-weight: 700; color: var(--lx-doux); }
.lx-som__l { display: block; padding: 7px 12px 7px 14px; border-left: 2px solid var(--lx-trait); color: var(--lx-doux);
  font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.lx-som__l:hover { color: var(--lx-encre); }
.lx-som__l.is-on { color: var(--lx-encre); font-weight: 700; border-left-color: var(--lx-or); }
.lx-som__l:focus-visible { outline: 2px solid var(--lx-or); outline-offset: -2px; border-radius: 4px; }

/* ── Sommaire (téléphone) : menu déroulant collant en haut ── */
.lx-som-tel { position: sticky; top: 8px; z-index: 5; margin: 0 0 24px; background: var(--lx-carte);
  border: 1px solid var(--lx-trait); border-radius: 14px; box-shadow: 0 6px 18px rgba(33, 26, 20, .06); }
.lx-som-tel summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; }
.lx-som-tel summary::-webkit-details-marker { display: none; }
.lx-som-tel__t { flex: none; font-size: 13px; font-weight: 700; color: var(--lx-doux); }
.lx-som-tel__c { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-som-tel summary .bi { flex: none; color: var(--lx-doux); transition: transform .15s ease; }
.lx-som-tel[open] summary .bi { transform: rotate(180deg); }
.lx-som-tel nav { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; padding: 4px 8px 10px; border-top: 1px solid var(--lx-trait); }

/* ── Le texte : hiérarchie, chapitres espacés, listes aérées ── */
.lx-corps { font-size: 16.5px; line-height: 1.7; color: #2F2720; overflow-wrap: anywhere; }
.lx-corps .legal-page, .lx-corps section { all: unset; display: block; }
.lx-corps section + section { margin-top: 8px; }
.lx .lx-corps h2 { margin: 40px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--lx-encre); scroll-margin-top: 110px; }
.lx .lx-corps > h2:first-child, .lx .lx-corps section:first-of-type > h2 { margin-top: 4px; }
.lx .lx-corps h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 800; color: var(--lx-encre); }
.lx-corps p { margin: 0 0 14px; }
.lx-corps ul, .lx-corps ol { margin: 0 0 18px; padding-left: 22px; }
.lx-corps li { margin: 0 0 10px; padding-left: 4px; }
.lx-corps li::marker { color: var(--lx-or); }
.lx-corps strong, .lx-corps b { font-weight: 700; color: var(--lx-encre); }
.lx-corps a { color: var(--s2-accent-lien, #8A692E); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lx-corps em, .lx-corps i { font-style: normal; }
.lx-corps table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.lx-corps th, .lx-corps td { border-bottom: 1px solid var(--lx-trait); padding: 9px 10px; text-align: left; vertical-align: top; }
.lx-corps th { font-weight: 700; color: var(--lx-encre); }
.lx-corps .btn, .lx-corps .text-center { text-align: left; }
.lx-corps .mb-5 { margin-bottom: 0 !important; }

/* Encarts : notes, droits, données particulières, contact -> bloc crème discret. */
.lx-corps p.text-muted { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--lx-creme);
  color: #3B322A; font-size: 15px !important; line-height: 1.6; }
.lx-corps section:has(> h2[id*="droit"]),
.lx-corps section:has(> h2[id*="contact"]),
.lx-corps section:has(> h2[id*="sante"]),
.lx-corps section:has(> h2[id*="particuli"]) {
  margin: 32px 0 0; padding: 4px 22px 10px; border-radius: 18px; background: var(--lx-creme);
}
.lx .lx-corps section:has(> h2[id*="droit"]) > h2,
.lx-corps section:has(> h2[id*="contact"]) > h2,
.lx-corps section:has(> h2[id*="sante"]) > h2,
.lx-corps section:has(> h2[id*="particuli"]) > h2 { margin-top: 20px; }

/* ── « Remonter » ── */
.lx-haut { position: fixed; right: 20px; bottom: 24px; z-index: 30; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px; background: var(--lx-carte); border: 1px solid var(--lx-trait);
  color: var(--lx-encre); font-size: 13.5px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(33, 26, 20, .1); }
.lx-haut:hover { border-color: var(--lx-or); }
.lx-haut[hidden] { display: none; }

/* ── Ordinateur ── */
@media (min-width: 992px) {
  .lx { padding-top: 28px; }
  .lx-grille { grid-template-columns: 240px minmax(0, 70ch) 240px; gap: 56px; justify-content: center; align-items: start; }
  .lx-cote { display: block; position: sticky; top: 100px; }
  .lx-texte { margin: 0; }
  .lx-som-tel { display: none; }
  .lx .lx-titre { font-size: 36px; }
  .lx-haut { right: 32px; bottom: 32px; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .lx-grille { grid-template-columns: 220px minmax(0, 70ch); gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-som__l, .lx-som-tel summary .bi { transition: none; }
}

/* Documents dans la colonne de gauche, au-dessus des chapitres (25/10). */
.lx-som--docs { margin-bottom: 28px; }
.lx-som-tel nav + nav { border-top: 1px solid var(--lx-trait); }
.lx-som-tel nav .lx-som__t { margin: 10px 0 4px; }
.lx-som-tel__t { max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lx-encre); }
.lx-som-tel__c { font-weight: 600; color: var(--lx-doux); }
@media (min-width: 992px) {
  .lx { padding-top: 32px; }
  .lx-cote { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
}
