/* Pages de texte (règles, mentions légales, conditions, confidentialité, méthode, retrait), d'après la maquette 1a
   de Claude Design (« Pages de texte », 05/10/2026) : titre sur un bandeau nuit, sommaire collant à gauche, une carte
   blanche par section sur le fond crème. Sert aussi à l'état « fiche retirée » (pages/fiche-retiree.php).
   Jetons de app.css seulement : un arrondi, quatre graisses, aucune ombre. */

main:has(> .texte-page, > .retiree) { background: var(--cel); }
main:has(> .texte-page, > .retiree) + .pied { margin-top: 0; }

/* Le bandeau : fil d'Ariane, titre, et ce que la page dit avant sa première section */
.texte-tete { background: var(--nuit); color: var(--creme); }
.texte-tete-dedans { max-width: var(--largeur); margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.texte-tete .ariane, .texte-tete .ariane a { color: var(--creme); font-size: 0.875rem; }
.texte-tete .ariane a:hover { color: var(--or-clair); }
.texte-tete h1 { margin: 1rem 0 0; color: var(--neu); font-size: var(--t-page); font-weight: 600; line-height: 1.05; }
.texte-intro { max-width: 45rem; margin-top: 0.5rem; }
.texte-intro p { margin: 0 0 0.5rem; color: var(--creme); font-size: 1.1875rem; line-height: 1.5; }
.texte-intro p:last-child { margin-bottom: 0; }
.texte-intro a { color: var(--creme); }
.texte-intro a:hover { color: var(--or-clair); }

/* La grille : sommaire collant, sections en cartes */
.texte-grille { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); align-items: start; gap: 1.75rem; max-width: var(--largeur); margin: 0 auto; padding: 1.75rem 1rem 3rem; }
.texte-grille-seule { grid-template-columns: minmax(0, 1fr); }
.texte-sommaire { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem); overflow-y: auto; padding: 1rem 1rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); }
.texte-sommaire-titre { margin: 0 0 0.5rem; color: var(--gris); font-size: 0.8125rem; font-weight: 600; }
.texte-sommaire ol { margin: 0; padding: 0; list-style: none; }
.texte-sommaire a { display: block; padding: 0.5rem 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.texte-sections { display: flex; flex-direction: column; gap: 1rem; }

/* Une section : le titre en Literata, le texte en 17 px, une ligne de lecture de 680 px au plus */
.texte-carte { padding: 1.5rem 2rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); }
.texte-carte h2 { margin: 0 0 0.5rem; font-size: var(--t-section); font-weight: 600; scroll-margin-top: 3.25rem; }
.texte-carte p, .texte-carte li { max-width: 42.5rem; font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.texte-carte p { margin: 0 0 1rem; }
.texte-carte ul, .texte-carte ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.texte-carte li + li { margin-top: 0.375rem; }
.texte-carte > :last-child { margin-bottom: 0; }
.texte-carte pre { margin: 0 0 1rem; padding: 0.75rem 1rem; overflow-x: auto; background: var(--cel); border-radius: var(--rayon); font-size: 0.9375rem; }
.texte-carte code { font-size: 0.9375rem; overflow-wrap: anywhere; }
.texte-carte table { width: 100%; margin: 0.25rem 0 1rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.texte-carte th, .texte-carte td { padding: 0.5rem 0.5rem 0.5rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linia); }
.texte-carte th { color: var(--gris); font-size: 0.875rem; font-weight: 500; }

/* Fiche retirée (pages/fiche-retiree.php, maquette « États » 1c) : d'autres adresses, et la marche à suivre du gérant */
.retiree { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; align-items: start; gap: 1.75rem; max-width: var(--largeur); margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.retiree-carte { padding: 2rem 2rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); }
.retiree-carte h1 { margin: 0.75rem 0 0.5rem; font-size: var(--t-bandeau); font-weight: 600; line-height: 1.1; }
.retiree-chapo { max-width: 42.5rem; margin: 0; color: var(--gris); font-size: 1.0625rem; line-height: 1.55; }
.retiree-autres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.retiree-autres li { position: relative; display: flex; flex-direction: column; padding: 0.75rem 0; border-top: 1px solid var(--linia); }
.retiree-autres a { color: var(--tinta); font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; text-decoration-thickness: 1px; }
.retiree-autres a::after { content: ""; position: absolute; inset: 0; }
.retiree-autres a:focus-visible { outline: none; }
.retiree-autres a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: var(--rayon); }
.retiree-autres li:hover a { color: var(--sang); }
.retiree-autres span { color: var(--gris); font-size: 0.875rem; }
.retiree-tout { display: inline-block; margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 500; }
.retiree-gerant { margin: 0; padding: 1.25rem 1.5rem; background: var(--cel); border: 1px solid var(--linia); border-radius: var(--rayon); font-size: 0.9375rem; line-height: 1.55; }

@media (max-width: 48rem) {
  .texte-grille, .retiree { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .texte-sommaire { position: static; max-height: none; }
  .texte-sommaire a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.25rem 0; }   /* 44 px (VI-02 : 32 px) */
}
@media (max-width: 40rem) {
  .texte-tete-dedans { padding: 1.25rem 1rem 1.5rem; }
  .texte-intro p { font-size: 1.0625rem; }
  .texte-grille, .retiree { padding: 1rem 0.75rem 2rem; }
  .texte-carte, .retiree-carte { padding: 1rem; }
  .texte-carte p, .texte-carte li { font-size: 1rem; }
  .texte-carte table { display: block; overflow-x: auto; }
  .retiree-autres { grid-template-columns: minmax(0, 1fr); }
}
