/* Serveurs du Peuple — prototype du site public. Palette reprise de l'offre client (2026-08-19). */
:root {
  --encre: #22201c;
  --sourd: #6b6355;
  --creme: #faf6ec;
  --creme2: #f3ecdd;
  --fond: #fffdf7;
  --teal: #2f6f6a;
  --teal-doux: #e4f0ee;
  --or: #a8791f;
  --or-doux: #f6eed8;
  --brun: #7c6a4a;
  --trait: #ddd3bf;
  --futur: #8e8676;
  --largeur: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --encre: #ece6d8;
    --sourd: #b3aa97;
    --creme: #1f1d19;
    --creme2: #2a2722;
    --fond: #171511;
    --teal: #7fc2bb;
    --teal-doux: #1f3634;
    --or: #d9b15c;
    --or-doux: #3a3120;
    --brun: #c6b28e;
    --trait: #3d382f;
    --futur: #9b9382;
  }
}
:root[data-theme="dark"] {
  --encre: #ece6d8;
  --sourd: #b3aa97;
  --creme: #1f1d19;
  --creme2: #2a2722;
  --fond: #171511;
  --teal: #7fc2bb;
  --teal-doux: #1f3634;
  --or: #d9b15c;
  --or-doux: #3a3120;
  --brun: #c6b28e;
  --trait: #3d382f;
  --futur: #9b9382;
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: Georgia, "Noto Serif", "DejaVu Serif", "Times New Roman", serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
h1, h2, h3, .sans, .nav, .marque, .etiquette, .pied, .palier strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", sans-serif;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--or); }
.saut { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: .5rem 1rem; }
.saut:focus { left: 1rem; z-index: 10; }

/* En-tête */
.entete {
  background: var(--creme);
  border-bottom: 2.5px solid var(--teal);
  padding: 1.25rem 16px 1rem;
}
.entete > * { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.marque { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.marque .nom { font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; color: var(--teal); }
.marque .quoi { font-size: .82rem; color: var(--sourd); }
.interne { margin: .9rem auto 0; }
.interne span {
  display: inline-block; padding: .15rem .6rem;
  background: var(--or-doux); color: var(--or); border: 1px solid var(--or);
  border-radius: 3px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
h1 { font-size: clamp(1.7rem, 4.5vw + .5rem, 2.4rem); line-height: 1.12; letter-spacing: -.015em; margin: 1.1rem auto .3rem; font-weight: 900; }
.sous { font-size: 1.08rem; color: var(--brun); margin: 0 auto 1rem; }
.sous, h1 { max-width: var(--largeur); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .9rem; margin-top: .75rem; }
.nav a { color: var(--sourd); text-decoration: none; border-bottom: 1px solid transparent; padding: .15rem 0; }
.nav a:hover, .nav a:focus { color: var(--teal); border-bottom-color: var(--teal); }

/* Contenu */
/* 32px added so the text column lines up with the header, which has no inner padding. */
.contenu { max-width: calc(var(--largeur) + 32px); margin: 0 auto; padding: 1.5rem 16px 3rem; }
.ouverture {
  font-size: 1.12rem; line-height: 1.6; max-width: 56ch;
  border-left: 4px solid var(--or); padding: .35rem 0 .35rem 1rem; margin: .25rem 0 2rem;
}
.ouverture p { margin: 0; }
.ouverture strong { color: var(--teal); }
h2 {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em;
  margin: 2.4rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1.5px solid var(--trait);
}
h3 { font-size: 1.02rem; font-weight: 700; margin: 1.4rem 0 .4rem; color: var(--brun); }
p { margin: .6rem 0; }
ul { padding-left: 1.2rem; }
li { margin: .4rem 0; }
li::marker { color: var(--or); }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; }

/* Étiquettes d'état */
.etiquette {
  display: inline-block; vertical-align: middle; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .05rem .45rem; border-radius: 3px; margin-left: .15rem; border: 1px solid currentColor;
}
.etiquette.ok { color: var(--teal); background: var(--teal-doux); }
.etiquette.plus { color: var(--or); background: var(--or-doux); }
.etiquette.futur { color: var(--futur); background: transparent; border-style: dashed; }

/* Paliers de prix */
.paliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.palier {
  background: var(--creme); border: 1px solid var(--trait); border-top: 3px solid var(--teal);
  border-radius: 4px; padding: .75rem .9rem;
}
.palier h3 { margin: 0 0 .3rem; color: var(--encre); font-size: .95rem; }
.palier p { margin: .25rem 0; font-size: .92rem; }
.palier strong { font-size: 1.35rem; color: var(--teal); letter-spacing: -.01em; }
.palier:nth-child(1) { border-top-color: var(--or); }
.palier:nth-child(4) { border-top-color: var(--brun); }

/* Codes QR */
.qr { display: block; width: min(100%, 18rem); margin: 1rem auto; background: #fff; padding: .5rem; border: 1px solid var(--trait); image-rendering: pixelated; }
figure { margin: 1rem 0; }
figcaption { text-align: center; font-size: .85rem; color: var(--sourd); }

/* Pied */
.pied {
  border-top: 1px solid var(--trait); background: var(--creme);
  padding: 1.25rem 16px 2rem; font-size: .82rem; color: var(--sourd);
}
.pied p { max-width: var(--largeur); margin: .3rem auto; }

@media (max-width: 420px) {
  html { font-size: 16px; }
  .paliers { grid-template-columns: 1fr; }
}
@media print {
  .nav, .saut { display: none; }
  body { background: #fff; color: #000; }
}
