/* Studrix Publication : une page lisible sur un telephone de chantier, au soleil.
   Contraste fort, gros boutons (48 px de haut), aucune police externe. */
:root {
  --fond: #f6f4ef;
  --carte: #ffffff;
  --texte: #1b1a17;
  --discret: #5f5b52;
  --trait: #e2ddd2;
  --accent: #1f3d2b;
  --accent-texte: #ffffff;
  --or: #9a7a2e;
  --ok-fond: #e7f3ea;
  --ok-texte: #1f5a33;
  --alerte-fond: #fbe9e7;
  --alerte-texte: #8a2a1b;
  --attention-fond: #fdf3dc;
  --attention-texte: #6b4d0c;
  --rayon: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121210;
    --carte: #1c1b18;
    --texte: #f1eee7;
    --discret: #b3ad9f;
    --trait: #34322c;
    --accent: #c9a54a;
    --accent-texte: #121210;
    --or: #c9a54a;
    --ok-fond: #18301f;
    --ok-texte: #a8dcb6;
    --alerte-fond: #3a1a14;
    --alerte-texte: #f3b4a8;
    --attention-fond: #3a2e10;
    --attention-texte: #f1d68d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.entete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--trait); background: var(--carte);
}
.marque { font-weight: 700; text-decoration: none; color: var(--texte); letter-spacing: .02em; }
.marque span { color: var(--or); font-weight: 600; }
.lien-espace { font-size: 15px; }

.page { max-width: 720px; margin: 0 auto; padding: 16px; }
.carte {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 18px 16px; margin: 0 0 16px;
}
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
h2 { font-size: 19px; margin: 18px 0 8px; }
.carte > h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
.discret { color: var(--discret); font-size: 15px; }
.texte-long ul, .texte-long ol { padding-left: 20px; }
.texte-long li { margin-bottom: 6px; }
.etapes { padding-left: 22px; }
.etapes li { margin-bottom: 8px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-texte);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.bouton[disabled] { opacity: .45; cursor: not-allowed; }
.bouton.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--trait); }
.bouton.petit { min-height: 40px; padding: 0 14px; font-size: 15px; }
.lien-bouton { background: none; border: 0; color: var(--discret); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.en-ligne { display: inline; }
.refus { text-align: center; margin-bottom: 24px; }

.champ { display: block; font-weight: 600; margin: 0 0 14px; }
.champ input, .champ textarea, .validation textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  font: inherit; font-weight: 400; color: var(--texte); background: var(--fond);
  border: 1px solid var(--trait); border-radius: 10px;
}
.validation textarea { min-height: 160px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.case input { width: 24px; height: 24px; margin-top: 2px; flex: none; }

.ok, .bandeau.ok { background: var(--ok-fond); color: var(--ok-texte); padding: 10px 12px; border-radius: 10px; }
.alerte, .bandeau.alerte { background: var(--alerte-fond); color: var(--alerte-texte); padding: 10px 12px; border-radius: 10px; }
.bandeau.attention { background: var(--attention-fond); color: var(--attention-texte); padding: 10px 12px; border-radius: 10px; }
.bandeau { margin: 0 0 16px; }
.alerte-texte { color: var(--alerte-texte); }

.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 0 0 14px; }
.vignettes img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.grille-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .grille-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo { position: relative; display: block; border: 2px solid var(--accent); border-radius: 10px; overflow: hidden; background: var(--fond); }
.photo.ecartee { border-color: var(--trait); opacity: .6; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-bas { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; gap: 8px; }
.photo-bas input[type=checkbox] { width: 24px; height: 24px; }
.photo-bas input[type=number] { width: 58px; min-height: 36px; padding: 4px 6px; font: inherit; border: 1px solid var(--trait); border-radius: 8px; background: var(--carte); color: var(--texte); }
.motif { display: block; padding: 0 8px 8px; font-size: 13px; color: var(--alerte-texte); }

.apercu-ig { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.apercu-ig img { width: 140px; flex: none; border-radius: 8px; border: 1px solid var(--trait); }

.liste-posts { list-style: none; padding: 0; margin: 0; }
.liste-posts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.liste-posts li:last-child { border-bottom: 0; }
.etiquette { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: var(--fond); border: 1px solid var(--trait); white-space: nowrap; }
.etiquette.publie { background: var(--ok-fond); color: var(--ok-texte); border-color: transparent; }
.etiquette.erreur { background: var(--alerte-fond); color: var(--alerte-texte); border-color: transparent; }
.resultats { padding-left: 20px; margin: 0; }
.liste-choix .choix { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.liste-choix .choix input { width: 22px; height: 22px; margin-top: 3px; }
.liste-choix .bouton { margin-top: 14px; }

.pied { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--discret); }
.pied a { color: var(--discret); }
