/* Pages légales — mentions légales et politique de confidentialité (6 novembre 2026)
   Chargé seulement sur ces deux pages, après style.css et pages.css.
   Une ouverture sur bleu pâle avec la fiche du document, dessinée comme le cartouche d’un plan ;
   un sommaire collant à gauche ; des articles numérotés dans une colonne de lecture d’environ 70 signes.
   Espacements sur la grille de 4 px ; le citron reste un aplat (texte encre dessus). */

/* Les ancres et le focus clavier s’arrêtent sous l’en-tête collant (88 px + filet) ;
   sur ces deux pages, le glissement vers une ancre est celui du navigateur (voir legal.js) */
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
html[data-suit="0"] { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lien d’évitement : invisible jusqu’au premier Tab */
.lx-skip { position: absolute; left: 16px; top: -64px; z-index: 40; padding: 12px 16px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease); }
.lx-skip:focus-visible { transform: translateY(80px); outline: 2px solid var(--lemon); outline-offset: 2px; }

/* ═════ Ouverture ═════ */
.lx-band { background: var(--sky-pale); }
.lx-band-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: end; padding-top: 80px; padding-bottom: 72px; }
.page .lx-band h1 { margin-top: 16px; max-width: 16ch; font: 400 60px/1.02 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.lx-band h1 span { display: block; margin-top: 8px; font-size: 32px; font-style: italic; line-height: 1.15; letter-spacing: -.01em; color: var(--text); }
.lx-lead { margin-top: 24px; max-width: 52ch; font-size: 19px; line-height: 1.6; color: var(--text); }
.lx-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
.lx-print { gap: 8px; background: transparent; cursor: pointer; }
.lx-print svg { width: 18px; height: 18px; flex: none; }
.lx-print:hover { background: #fff; border-color: var(--ink); }
.lx-print:active { background: #fff; }

/* La fiche du document : un cartouche de plan (cadre épais, filets fins, la date sur aplat citron) */
.lx-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; background: #fff; border: 2px solid var(--ink); font-family: var(--sans); }
.lx-cart > div { padding: 12px 16px 16px; border-top: 1px solid rgba(31, 51, 64, .3); }
.lx-cart > div:first-child { border-top: 0; }
.lx-cart .lx-cart-w { grid-column: 1 / -1; }
.lx-cart .lx-cart-r { border-left: 1px solid rgba(31, 51, 64, .3); }
.lx-cart dt { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.lx-cart dd { margin: 4px 0 0; font-size: 16px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.lx-cart-head { padding-top: 16px; }
.lx-cart-head dd { margin: 0; }
.lx-cart-head b { display: block; font: 400 24px/1.1 var(--serif); letter-spacing: -.01em; }
.lx-cart-head span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.lx-cart .lx-cart-date { background: var(--lemon); border-top-color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lx-cart-date dt { color: var(--ink); }
.lx-cart-date dd { font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }

/* ═════ Corps : sommaire + document ═════ */
.lx-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 96px; padding-top: 80px; }

/* Sommaire : ouvert et collant sur ordinateur, repliable sur téléphone */
.lx-toc { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 152px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 8px 0; font-size: 15px; }
html[data-suit="0"] .lx-toc { top: 32px; max-height: calc(100vh - 64px); }
.lx-toc summary { display: block; list-style: none; font: 500 15px/1.4 var(--sans); color: var(--ink); pointer-events: none; }
.lx-toc summary::-webkit-details-marker { display: none; }
.lx-toc summary svg { display: none; }
.lx-toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 1px solid var(--line); }
.lx-toc li a { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; padding: 8px 0 8px 16px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .16s var(--ease); }
.lx-toc li a::before { content: ""; position: absolute; left: -1px; top: 4px; bottom: 4px; width: 2px; background: var(--ink); transform: scaleY(0); transition: transform .2s var(--ease); }
.lx-toc li a b { font-weight: 500; color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.lx-toc li a:hover, .lx-toc li a:active, .lx-toc li a[aria-current] { color: var(--ink); }
.lx-toc li a:hover::before { transform: scaleY(.5); }
.lx-toc li a[aria-current]::before { transform: scaleY(1); }
.lx-toc li a:focus-visible { outline-offset: -2px; }
.lx-toc-more { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.lx-toc-more p { font-size: 13px; font-weight: 500; color: var(--muted); }
.lx-toc-more a { display: block; margin-top: 8px; padding-block: 4px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(31, 51, 64, .3); text-underline-offset: 5px; transition: text-decoration-color .16s var(--ease); }
.lx-toc-more a:hover { text-decoration-color: currentColor; }

/* Document */
.lx-doc { min-width: 0; max-width: 880px; overflow-wrap: break-word; }
.lx-sec { position: relative; padding: 48px 0 56px 64px; border-top: 1px solid var(--line); }
.lx-doc > .lx-sec:first-child { padding-top: 0; border-top: 0; }
.lx-doc h2 { position: relative; max-width: 30ch; font: 400 32px/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.lx-doc h3 { position: relative; font: 500 19px/1.4 var(--sans); letter-spacing: -.005em; color: var(--ink); }
/* les numéros d’article forment une colonne à gauche du texte, alignés à droite */
.lx-n { position: absolute; right: calc(100% + 24px); top: 0; color: var(--sky-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-doc h3 .lx-n { top: .15em; font-size: 15px; }
.lx-sub { margin-top: 32px; }
.lx-sec p, .lx-sec li { font-size: 17px; line-height: 1.7; color: var(--text); }
.lx-sec > p, .lx-sub > p { max-width: 66ch; margin-top: 16px; }
.lx-sec > h2 + p { margin-top: 20px; }
.lx-sub > h3 + p { margin-top: 8px; }
.lx-sec ul { max-width: 66ch; margin: 16px 0 0; padding-left: 20px; }
.lx-sec li + li { margin-top: 8px; }
.lx-sec li::marker { color: var(--sky); }
.lx-doc strong { font-weight: 600; color: var(--ink); }
.lx-doc a:not(.btn):not(.text-link) { color: var(--sky-ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(35, 98, 143, .45); text-underline-offset: 3px; transition: text-decoration-color .16s var(--ease); }
.lx-doc a:not(.btn):not(.text-link):hover { text-decoration-color: currentColor; }
.lx-note { max-width: 66ch; margin-top: 12px; font-size: 14px !important; line-height: 1.55 !important; color: var(--muted) !important; }

/* Fiches d’identité (éditeur, hébergeur, crédits, droits) : libellé à gauche, valeur à droite */
.lx-fiche { max-width: 720px; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.lx-fiche > div { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lx-fiche dt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.lx-fiche dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.lx-fiche dd small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.lx-fiche--rights dt { font-weight: 500; color: var(--ink); }
.lx-fiche--rights dd { color: var(--text); }

/* L’essentiel : même cadre que le cartouche, en tête de la politique de confidentialité */
.lx-key { margin-bottom: 64px; border: 2px solid var(--ink); background: #fff; }
.lx-key-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 24px 32px; }
.lx-key-head p { font-size: 15px; color: var(--muted); }
.lx-key dl { margin: 0; }
.lx-key dl > div { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 24px; padding: 16px 32px; border-top: 1px solid rgba(31, 51, 64, .3); }
.lx-key dt { font: 400 20px/1.35 var(--serif); color: var(--ink); }
.lx-key dd { max-width: 62ch; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }

/* Tableau des traitements : peut déborder de la colonne de texte, jamais de la page */
.lx-table-wrap { margin-top: 24px; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lx-table caption { caption-side: top; padding-bottom: 12px; text-align: left; font-size: 14px; color: var(--muted); }
.lx-table thead th { padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: bottom; font: 500 14px/1.4 var(--sans); color: var(--ink); }
.lx-table tbody th, .lx-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lx-table tbody th { width: 24%; font: 500 15px/1.45 var(--sans); color: var(--ink); }
.lx-table td { color: var(--text); }
.lx-table :is(th, td):last-child { padding-right: 0; }
.lx-table small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Fin de document : la question et le contact */
.lx-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: 8px; padding: 40px 48px; background: var(--sky-pale); }
.lx-cta h2 { max-width: none; font-size: 28px; }
.lx-cta p { max-width: 52ch; margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text); }
.lx-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lx-cta .btn-dark:active { background: #16262f; }

/* ═════ Mouvement : l’ouverture se compose, comme sur les autres pages intérieures ═════ */
html.mv-first .lx-band-copy > * { animation: mv-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
html.mv-first .lx-band-copy > :nth-child(2) { animation-delay: .1s; }
html.mv-first .lx-band-copy > :nth-child(3) { animation-delay: .2s; }
html.mv-first .lx-band-copy > :nth-child(4) { animation-delay: .3s; }
html.mv-first .lx-cart { animation: mv-rise-s .8s cubic-bezier(.22, 1, .36, 1) .35s both; }
@media (prefers-reduced-motion: reduce) {
  .lx-skip, .lx-toc li a, .lx-toc li a::before, .lx-toc summary svg { transition: none; }
}

/* ═════ Tablette et téléphone ═════ */
@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  /* le lien « Nos métiers » est masqué sur téléphone : son menu, invisible, élargissait quand même la page */
  .nav-menu { display: none; }
  .lx-band-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .page .lx-band h1 { font-size: 40px; line-height: 1.05; }
  .lx-band h1 span { font-size: 24px; }
  .lx-lead { font-size: 17px; }
  .lx-band-actions { gap: 12px 24px; margin-top: 24px; }
  .lx-cart-date dd { font-size: 22px; }

  .lx-main { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .lx-toc { position: static; max-height: none; overflow: visible; margin-bottom: 40px; padding: 0; }
  .lx-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border: 1px solid rgba(31, 51, 64, .3); cursor: pointer; pointer-events: auto; transition: border-color .16s var(--ease); }
  .lx-toc summary:hover { border-color: var(--ink); }
  .lx-toc summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
  .lx-toc summary svg { display: block; width: 16px; height: 16px; transition: transform .2s var(--ease); }
  .lx-toc details[open] summary svg { transform: rotate(180deg); }
  .lx-toc ol { margin-top: 8px; }
  .lx-toc-more { margin-top: 24px; }

  .lx-sec { padding: 40px 0; }
  .lx-n, .lx-doc h3 .lx-n { position: static; margin-right: .3em; }
  .lx-doc h2 { font-size: 27px; }
  .lx-doc h3 { font-size: 18px; }
  .lx-sec p, .lx-sec li { font-size: 16px; }
  .lx-fiche > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .lx-key { margin-bottom: 40px; }
  .lx-key-head { padding: 20px; }
  .lx-key dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 20px; }

  /* le tableau devient une suite de fiches : chaque cellule porte son libellé */
  .lx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lx-table, .lx-table tbody, .lx-table tr, .lx-table th, .lx-table td { display: block; width: auto; }
  .lx-table caption { display: block; }
  .lx-table tr { padding: 16px 0; border-top: 2px solid var(--ink); }
  .lx-table tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 16px; }
  .lx-table td { padding: 8px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .lx-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted); }

  .lx-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 20px; }
  .lx-cta h2 { font-size: 24px; }
}

/* ═════ Impression : le document seul ═════ */
@media print {
  .nav, .lx-skip, .lx-toc, .lx-band-actions, .lx-cta, .end { display: none !important; }
  html.mv-first *, html.mv-first *::before { animation: none !important; }
  body { font-size: 11pt; }
  .lx-band { background: none; }
  .lx-band-in, .lx-main { display: block; padding: 0; }
  .page .lx-band h1 { font-size: 30pt; }
  .lx-cart { max-width: 420px; margin-top: 24px; }
  .lx-main { margin-top: 24px; }
  .lx-sec { padding: 20px 0 20px 48px; }
  .lx-doc { max-width: none; }
  .lx-doc h2, .lx-doc h3 { break-after: avoid; }
  .lx-key, .lx-table tr, .lx-fiche > div { break-inside: avoid; }
}

/* ───── Présentation classique demandée par Jérémie : aucun design, seulement un texte bien écrit, lisible ───── */
.lx-band { background: #fff; padding: 72px 0 0; border: 0; }
.lx-band::before, .lx-band::after { display: none; }
.lx-band-in { display: block; }
.lx-band-copy { max-width: 760px; }
.page .lx-band h1 { font-size: 40px; line-height: 1.15; color: var(--ink); }
.lx-lead { margin-top: 16px; max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--text); }
.lx-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lx-main { display: block; padding-top: 24px; padding-bottom: 96px; }
.lx-doc { max-width: 760px; }
.lx-sec { padding: 28px 0 0; border: 0; background: none; }
.lx-doc h2 { font: 400 24px/1.3 var(--serif); color: var(--ink); }
.lx-doc h3 { margin-top: 16px; font: 500 16px/1.4 var(--sans); color: var(--ink); }
.lx-n { color: var(--ink); }
.lx-sec p, .lx-sec li { font-size: 16px; line-height: 1.65; color: var(--text); }
.lx-note, .lx-key, .lx-fiche { background: none; border: 0; padding: 0; box-shadow: none; }
.lx-fiche > div, .lx-key dl > div { border-top: 1px solid var(--line); }
.lx-key-head { background: none; padding: 0; }

/* ───── Pleine largeur (Jérémie, 6 novembre) : le texte occupe toute la largeur de la page, le titre monte sous l’en-tête ───── */
.lx-band { padding: 0; }
.lx-band-in { padding-top: 48px; padding-bottom: 0; }
.page .lx-band h1 { margin-top: 0; max-width: none; }
.lx-band-copy, .lx-lead, .lx-doc, .lx-doc h2, .lx-sec > p, .lx-sub > p, .lx-sec ul, .lx-note, .lx-fiche, .lx-key dd, .lx-cta p { max-width: none; }
/* les numéros d’article restent dans le texte, alignés sur le bord gauche comme le reste */
.lx-n, .lx-doc h3 .lx-n { position: static; margin-right: .4em; }
/* « L’essentiel » de la politique de confidentialité : aligné sur le bord gauche, sans grand vide avant l’article 1 */
.lx-key { margin-bottom: 24px; }
.lx-key-head { padding-bottom: 12px; }
.lx-key dl > div { padding: 16px 0; }
.lx-key dl > div { grid-template-columns: 216px minmax(0, 1fr); }
/* Coordonnées en lignes simples, comme sur une page de mentions légales classique */
.lx-lines { margin-top: 16px; }
