/* Smelte — pages de texte de smelte.xyz (Confidentialité) : un bandeau en aplat aux couleurs du coloris choisi
   sur la page d'attente, le texte sur le fond clair de l'ambiance (D-011, D-015 ; couleurs dans ambiances.css).
   Titre en Affinik dessiné en SVG par scripts/construire.mjs, texte en Arial (D-013). */

:root {
  --font-text: Arial, Arimo, "Helvetica Neue", Helvetica, sans-serif;
  --gutter: 16px;
  --largeur: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--champ); }

body {
  margin: 0;
  background: var(--champ);
  color: var(--champ-texte);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- bandeau ---------- */

.bandeau {
  background: var(--fond);
  color: var(--texte);
  padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 44px;
}
.bandeau__interieur { max-width: var(--largeur); margin: 0 auto; }
.bandeau__retour {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.bandeau__retour:hover { text-decoration: underline; }
.bandeau h1 { margin: 44px 0 0; }
.bandeau h1 .texte { display: block; width: auto; height: clamp(34px, 8vw, 60px); fill: currentColor; }
.bandeau__chapo { margin: 18px 0 0; font-size: 19px; line-height: 1.45; }

/* ---------- texte ---------- */

.contenu {
  max-width: calc(var(--largeur) + 2 * var(--gutter)); /* même colonne que le bandeau, marges comprises */
  margin: 0 auto;
  padding: 32px var(--gutter) calc(72px + env(safe-area-inset-bottom));
}
.maj { margin: 0 0 8px; font-size: 14px; }
h2 { margin: 40px 0 10px; font-size: 20px; line-height: 1.3; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 1.2em; }
li + li { margin-top: 6px; }

.tableau { overflow-x: auto; margin: 8px 0 16px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid currentColor; }
th { font-weight: 700; border-top-width: 2px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  /* Tableaux empilés : une ligne = un bloc, chaque valeur précédée de son intitulé (data-label) */
  table { min-width: 0; font-size: 15px; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody, tr, td { display: block; }
  tr { padding: 12px 0; border-top: 1px solid currentColor; }
  td { padding: 2px 0; border: 0; }
  td::before { content: attr(data-label) " : "; font-weight: 700; }
  .bandeau { padding-bottom: 36px; }
  .bandeau h1 { margin-top: 36px; }
  .bandeau__chapo { font-size: 17px; }
}
