/* Pages de contenu : FAQ, pages légales, suppression de compte, mise à jour.
   Chargée après site.css, dont elle reprend les variables. */
.page-contenu main { padding-block: 40px 72px; }
.page-contenu footer .cadre { grid-template-columns: minmax(0, 1fr); }
.texte { max-width: 760px; }
.texte h1 { font-family: var(--f-titre); font-weight: 800; font-size: clamp(30px, 6vw, 48px); line-height: 1.08; margin: 0 0 12px; }
.texte h2 { font-family: var(--f-titre); font-weight: 600; font-size: clamp(21px, 3.4vw, 27px); line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: calc(var(--hbarre) + 16px); }
.texte h2 span:first-child:not(:only-child) { font-family: var(--f-mono); font-size: 13px; color: var(--or); margin-right: 12px; vertical-align: middle; }
.texte h3 { font-size: 18px; margin: 24px 0 8px; }
.texte section, .texte details { scroll-margin-top: calc(var(--hbarre) + 16px); }
.texte p, .texte ul, .texte ol, .texte dl { margin: 0 0 14px; }
.texte ul, .texte ol { padding-left: 22px; }
.texte li { margin-bottom: 6px; }
.texte a { color: var(--or); text-underline-offset: 3px; }
.texte a.btn { color: var(--creme); }
.texte a.btn-plein { color: #2a1208; }
.texte nav ol, .texte nav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.texte nav a { text-decoration: none; display: inline-flex; gap: 10px; min-height: 28px; align-items: center; }
.texte nav a span + span { color: var(--creme); }
.texte dl > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.texte dt { color: var(--sable); }
.texte dd { margin: 0; }
.texte table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ligne); }
.texte th { color: var(--sable); font-weight: 600; }
.texte details { border: 1px solid var(--ligne); border-radius: 14px; background: var(--brun); margin: 0 0 10px; }
.texte summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; min-height: 48px; display: flex; justify-content: space-between; gap: 12px; }
.texte summary::-webkit-details-marker { display: none; }
.texte summary::after { content: "+"; color: var(--or); font-family: var(--f-mono); }
.texte details[open] summary::after { content: "−"; }
.texte details > :not(summary) { padding: 0 16px; }
.texte details > :last-child { padding-bottom: 14px; }
.maj-numero { font-size: 20px; }

/* tableaux des pages légales sur téléphone : chaque ligne devient une carte (correctif I1) */
@media (max-width: 640px) {
  .texte table, .texte thead, .texte tbody, .texte tr, .texte th, .texte td { display: block; }
  .texte thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .texte tr { border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
  .texte td { border: 0; padding: 4px 0; }
  .texte td[data-col]::before { content: attr(data-col); display: block; font-size: 12px; font-weight: 600; color: var(--sable); }
  .texte dl > div { grid-template-columns: minmax(0, 1fr); }
}

/* ── pages portées du site actuel : puces d'état, captures, encarts ── */
.texte .puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.texte figure { margin: 18px 0 22px; }
.texte figure > img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--ligne); }
.texte figcaption { margin-top: 8px; font-size: 14px; color: var(--sable); }
.texte .encart { border: 1px solid var(--ligne); border-radius: 16px; background: var(--brun); padding: 16px 18px; }
.texte .encart p, .texte .encart li { margin: 0 0 6px; }
.texte .encart ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--sable); }
.texte .encart span + span { margin-left: 6px; }
.texte section > p:only-of-type { margin-bottom: 14px; }

.texte img { max-width: 100%; height: auto; }
.texte section > img { display: block; border-radius: 16px; border: 1px solid var(--ligne); margin: 18px 0; }
.texte p > a + a { margin-left: 18px; }

.texte .ecran { margin: 18px 0 22px; }
.texte .ecran figcaption { font: 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sauge); }
.texte .ecran p { margin: 0 0 6px; }

/* ── page « Cas d'usage » : six cartes image + libellé, et les articles ── */
.cas-bloc { margin-block: 28px 8px; }
.cas-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cas-carte { position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--ligne); background: var(--brun); color: var(--creme); text-decoration: none; aspect-ratio: 800 / 420; }
.cas-carte img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cas-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 13, 11, .94) 0%, rgba(20, 13, 11, .6) 40%, rgba(20, 13, 11, 0) 72%); }
.cas-carte:hover { border-color: var(--or); }
.cas-carte:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.cas-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 2px; padding: 12px 16px 14px; }
.cas-nom { font-family: var(--f-titre); font-weight: 800; font-size: 20px; line-height: 1.15; }
.cas-lib { font-size: 14px; line-height: 1.3; color: var(--creme); opacity: .9; }
.cas-puce { position: absolute; top: 10px; left: 10px; z-index: 1; }
/* cas pas encore ouverts : carte grisée, sans lien */
.cas-attente { cursor: default; }
.cas-attente img { filter: grayscale(1); opacity: .45; }
.cas-attente .cas-texte { opacity: .6; }
.cas-attente:hover { border-color: var(--ligne); }
.cas-note { margin: 14px 0 0; font-size: 14px; color: var(--sable); }
@media (max-width: 900px) { .cas-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cas-grille { grid-template-columns: minmax(0, 1fr); } }

.texte .fil-ariane { margin: 0 0 18px; font-size: 14px; }
.texte .chapo { font-size: 19px; color: var(--sable); margin-bottom: 18px; }
.texte .encart.paire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: transparent; border: 0; padding: 0; }
.texte .paire .etat { border: 1px solid var(--ligne); border-radius: 16px; background: var(--brun); padding: 16px 18px; }
.texte .paire figcaption { grid-column: 1 / -1; }
.texte caption { text-align: left; color: var(--sable); font-size: 14px; padding-bottom: 8px; }
@media (max-width: 560px) { .texte .encart.paire { grid-template-columns: minmax(0, 1fr); } }
