/* ============================================================
   Triage MénageSimple — feuille unique.

   Deux directions, une par colonne :
   · à gauche, le widget en VERRE sur leur page — le verre
     n'existe que posé sur une photo, c'est la condition ;
   · à droite, la console en BENTO NUIT, dont le violet
     d'origine est remplacé par l'accent du produit.

   Accent = #0095CD, relevé sur menagesimple.com le 05/11/2026
   (bouton « Réserver », rgb(0,149,205), rayon 50 px).

   🔴 Aucun style en ligne, aucun script en ligne, aucune requête
   sortante : c'est ce qui permet la CSP stricte sans
   'unsafe-inline'. Leur police (Figtree) n'est pas chargée — la
   charger voudrait dire appeler Google Fonts. On garde la pile
   système, et on le dit.
   ============================================================ */

:root {
  /* nuit */
  --nuit: #04051F;
  --cellule: #0C0F26;
  --champ: #11152E;
  --ligne: rgba(160, 170, 230, 0.10);
  --ligne-forte: rgba(160, 170, 230, 0.22);

  --encre: #EEF1FF;
  --encre-2: rgba(238, 241, 255, 0.64);
  /* 0.40 donnait 3,43:1 sur le fond de page et 3,51:1 sur les cartes —
     sous les 4,5:1 exigés pour du petit texte. 0.50 mesure 4,79 à 4,84:1
     sur les quatre fonds réellement rencontrés, et laisse l'écart avec
     --encre-2 intact : la hiérarchie des trois encres ne bouge pas. */
  --encre-3: rgba(238, 241, 255, 0.50);

  /* leur accent, et sa dérive claire pour le petit texte sur nuit */
  --bleu: #0095CD;
  --bleu-clair: #5CC8F2;
  --bleu-voile: rgba(0, 149, 205, 0.14);
  /* le même bleu, assombri à 80 %, pour les surfaces qui PORTENT du texte
     blanc : #0095CD relevé chez eux ne donne que 3,4:1 avec du blanc, sous
     les 4,5:1 exigés. Celui-ci mesure 5,03:1 et garde leur teinte exacte.
     --bleu reste la couleur relevée, pour les accents qui ne portent rien. */
  --bleu-porteur: #0077A4;

  --vert: #46D69A;
  --ambre: #F5B544;
  --rouge: #FF7A7A;

  /* verre */
  --verre: rgba(16, 24, 34, 0.46);
  --verre-bord: rgba(255, 255, 255, 0.38);
  --verre-ombre: 0 30px 60px rgba(10, 20, 30, 0.34);

  --r-section: 28px;
  --r-cellule: 16px;
  --r-widget: 26px;
  --r-bulle: 18px;
  --r-pilule: 50px; /* le leur */

  --pile: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 48px 32px 64px;
  background: var(--nuit);
  color: var(--encre);
  font-family: var(--pile);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------------- en-tête ---------------- */

.entete {
  max-width: 1440px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
}

.sur-titre {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu-clair);
  margin-bottom: 14px;
}

.entete h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.chapeau {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--encre-2);
  font-size: 16px;
}

.chapeau strong { color: var(--encre); font-weight: 600; }

.jetons {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jeton {
  background: var(--cellule);
  border: 1px solid var(--ligne);
  border-radius: var(--r-cellule);
  padding: 16px;
}

.jeton dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-3);
}

.jeton dd {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.jeton .unite { font-size: 13px; font-weight: 400; color: var(--encre-3); letter-spacing: 0; }
.jeton-note { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--encre-3); }

/* ---------------- plateau ---------------- */

.plateau {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.titre-colonne {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 14px;
}

.colonne-scene { position: sticky; top: 24px; }

/* ---------------- la scène : leur page ---------------- */

.navigateur {
  position: relative;
  border-radius: var(--r-section);
  overflow: hidden;
  border: 1px solid var(--ligne-forte);
  background: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.barre-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #16182F;
  border-bottom: 1px solid var(--ligne);
}

.pastilles { display: flex; gap: 6px; }
.pastilles i { width: 9px; height: 9px; border-radius: 50%; background: var(--ligne-forte); }

.url {
  font-size: 12px;
  color: var(--encre-3);
  background: var(--nuit);
  padding: 3px 12px;
  border-radius: var(--r-pilule);
}

.capture { display: block; width: 100%; height: auto; }

.note-scene {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--encre-3);
}

.note-scene strong { color: var(--encre-2); font-weight: 500; }
.note-scene code { color: var(--bleu-clair); }

/* ---------------- le widget en verre ---------------- */

.widget {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 352px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-widget);
  background: var(--verre);
  border: 1px solid var(--verre-bord);
  box-shadow: var(--verre-ombre);
  backdrop-filter: blur(24px) saturate(1.3) brightness(0.9);
  -webkit-backdrop-filter: blur(24px) saturate(1.3) brightness(0.9);
  overflow: hidden;
}

.widget-tete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pastille-agent {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bleu-porteur);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}

.mode {
  flex: none;
  margin-left: auto;
  padding: 4px 11px;
  border-radius: var(--r-pilule);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.mode[disabled] { cursor: default; opacity: 0.68; }
.mode.direct { background: var(--bleu); border-color: var(--bleu); }

.widget-noms { display: flex; flex-direction: column; min-width: 0; }
.widget-noms strong { font-size: 13.5px; color: #fff; }
.widget-statut { font-size: 11px; color: rgba(255, 255, 255, 0.72); }

.fil {
  position: relative; /* pour que offsetTop d'une bulle se mesure ICI */
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* les deux opaques de la DA : la bulle cliente et la bulle agent */
.bulle {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--r-bulle);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.bulle-client {
  align-self: flex-end;
  background: var(--bleu-porteur);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bulle-agent {
  align-self: flex-start;
  background: #fff;
  color: #14202B;
  border-bottom-left-radius: 6px;
}

.bulle-agent .posee {
  display: block;
  margin-top: 6px;
  color: #4A5C6B;
  font-size: 12.5px;
}

.tampon {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--r-bulle);
  border-bottom-left-radius: 6px;
}

.tampon i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9BB0BF;
  animation: tape 1.1s infinite ease-in-out;
}
.tampon i:nth-child(2) { animation-delay: 0.14s; }
.tampon i:nth-child(3) { animation-delay: 0.28s; }

@keyframes tape {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tampon i { animation: none; }
}

/* ---- suggestions : à portée, dans le widget ---- */
/* 🔴 Elles étaient sous la capture : il fallait faire défiler la page
   à chaque essai. Une suggestion qu'on ne voit pas ne sert à rien. */

.suggestions {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.suggestions::-webkit-scrollbar { display: none; }

.sugg {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pilule);
  border: 1px solid rgba(255, 255, 255, 0.28);
  /* 🔴 Un voile blanc sur du verre prend la clarté de la PHOTO qui est
     dessous : les puces mesuraient 3,0 à 4,05:1 selon l'endroit du
     cliché qu'elles recouvraient — un contraste qui dépend de l'image
     n'est pas un contraste, c'est un hasard. Un fond sombre propre le
     rend stable : 9:1 avec du blanc, où qu'elles tombent. */
  background: rgba(8, 12, 20, 0.55);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  white-space: nowrap;
  cursor: pointer;
}

.sugg:hover { background: rgba(8, 12, 20, 0.72); border-color: rgba(255, 255, 255, 0.45); }
.sugg.piege { border-color: rgba(255, 170, 170, 0.6); color: #FFD9D9; }

/* ---- le formulaire de devis, posé dans le fil ---- */

.formulaire-devis {
  align-self: stretch;
  padding: 14px;
  border-radius: var(--r-bulle);
  border-bottom-left-radius: 6px;
  background: #fff;
  color: #14202B;
  font-size: 12.5px;
}

.form-titre { font-weight: 600; font-size: 13px; margin-bottom: 10px; }

.form-ligne { display: flex; gap: 8px; }

.formulaire-devis label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #5A6B78;
}

.formulaire-devis input[type="number"],
.formulaire-devis select {
  font: inherit;
  font-size: 13px;
  color: #14202B;
  padding: 7px 10px;
  border: 1px solid #D4DDE4;
  border-radius: 10px;
  background: #fff;
  width: 100%;
}

.formulaire-devis input:focus-visible,
.formulaire-devis select:focus-visible,
.formulaire-devis button:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 1px;
}

.form-champ { margin-top: 8px; }

.form-options { margin: 12px 0 0; padding: 0; border: 0; }
.form-options legend { padding: 0 0 6px; font-size: 11px; color: #5A6B78; }

.form-options .case {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #14202B;
  padding: 3px 0;
}

.form-options .case input { accent-color: var(--bleu); width: auto; }

.formulaire-devis button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-pilule);
  background: var(--bleu);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.formulaire-devis button:hover { background: #007CAC; }
.formulaire-devis button[disabled] { background: #C3CED6; cursor: not-allowed; }

.form-note {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #6B7B88;
}

.form-erreur { margin-top: 8px; font-size: 11.5px; color: #C0392B; }

/* le récapitulatif chiffré, dans la bulle de l'agent */
.devis-bulle { font-variant-numeric: tabular-nums; }
.devis-bulle .somme { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.devis-bulle .ligne { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.devis-bulle .ligne span:last-child { color: #4A5C6B; }

.saisie-pilule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  border-radius: var(--r-pilule);
}

.saisie-pilule input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: #14202B;
  padding: 7px 0;
}

/* #8A9AA8 ne donnait que 2,89:1 sur le blanc de la pilule. Un texte
   d'invite est du texte : 5,17:1. Les sondes qui lisent les nœuds de
   texte ne le voient pas — un placeholder est un attribut. */
.saisie-pilule input::placeholder { color: #5F6F7E; }
.saisie-pilule input:focus { outline: none; }
.saisie-pilule:focus-within { box-shadow: 0 0 0 3px rgba(0, 149, 205, 0.4); }

.saisie-pilule button {
  flex: none;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bleu);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.saisie-pilule button svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saisie-pilule button:hover { background: #007CAC; }

/* ---------------- le rail des exemples ---------------- */

.rail { margin-top: 28px; }

.rail-note { font-size: 12.5px; color: var(--encre-3); margin-bottom: 12px; max-width: 70ch; }

.exemples { display: flex; flex-wrap: wrap; gap: 8px; }

.ex {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: var(--r-pilule);
  border: 1px solid var(--ligne-forte);
  background: var(--cellule);
  color: var(--encre-2);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}

.ex code { color: var(--bleu-clair); flex: none; }
.ex span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex:hover { border-color: var(--bleu); color: var(--encre); }
.ex.rouge code { color: var(--rouge); }
.ex.actif { border-color: var(--bleu); background: var(--bleu-voile); color: var(--encre); }

/* ---------------- la console en bento nuit ---------------- */

.console {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #06081E;
  border: 1px solid var(--ligne);
  border-radius: var(--r-section);
}

.cellule {
  background: var(--cellule);
  border: 1px solid var(--ligne);
  border-radius: var(--r-cellule);
  padding: 16px;
  min-width: 0;
}

.large, .pleine { grid-column: span 2; }

/* le geste signature de la DA : la pastille d'icône et ses lignes de guide */
.cellule-tete {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rond {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--champ);
  border: 1px solid var(--ligne-forte);
  color: var(--bleu-clair);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.cellule-tete::after {
  content: '';
  position: absolute;
  left: 40px; right: 0; top: 15px;
  height: 1px;
  background: var(--ligne);
}

.cellule-tete .nom {
  position: relative;
  z-index: 1;
  padding-right: 10px;
  background: var(--cellule);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-3);
}

.verdict {
  position: relative;
  z-index: 1;
  flex: none;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
  padding: 3px 10px 3px 20px;
  background: var(--cellule);
  border-radius: var(--r-pilule);
  font-size: 11.5px;
  color: var(--encre-2);
}

.verdict::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.v-ok { color: var(--vert); }
.v-non { color: var(--rouge); }
.v-neutre { color: var(--ambre); }

.valeur {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cellule p { font-size: 12.5px; line-height: 1.5; color: var(--encre-2); }
.cellule p strong { color: var(--encre); font-weight: 600; }
.cellule p + p { margin-top: 10px; }
.cellule em { color: var(--bleu-clair); font-style: normal; }

/* paires clé/valeur */
.paires { margin: 0; display: grid; gap: 1px; background: var(--ligne); border-radius: 10px; overflow: hidden; }
/* Quand l'extraction prend toute la largeur — le message ne porte
   aucun jour, donc la cellule « la date » ne s'affiche pas — les
   paires se mettent sur deux colonnes. Étirées sur 1 100 px, elles
   laissaient l'étiquette et la valeur aux deux bouts du vide. */
.pleine .paires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paire { display: flex; justify-content: space-between; gap: 12px; padding: 7px 11px; background: var(--champ); }
.paire dt { font-size: 11.5px; color: var(--encre-3); }
.paire dd { margin: 0; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* étiquettes */
.famille, .langue {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 2px 9px;
  border-radius: var(--r-pilule);
  font-size: 11px;
  background: var(--champ);
  border: 1px solid var(--ligne-forte);
  color: var(--encre-2);
}

.famille { color: var(--rouge); border-color: rgba(255, 122, 122, 0.3); }
.langue.absente { opacity: 0.45; text-decoration: line-through; }

/* citations : ce que le modèle écrivait, ce qui est affiché */
.citation {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--champ);
  border: 1px solid var(--ligne);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Ce qui distingue les deux, c'est la surface et la rature — pas un
   liseré posé sur le flanc. */
.retiree {
  background: rgba(255, 122, 122, 0.07);
  border-color: rgba(255, 122, 122, 0.24);
  color: var(--encre-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 122, 122, 0.7);
}

.gardee {
  background: rgba(70, 214, 154, 0.07);
  border-color: rgba(70, 214, 154, 0.24);
  color: var(--encre);
}

/* tableaux */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
thead th {
  text-align: left;
  padding: 0 8px 7px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--encre-3);
  border-bottom: 1px solid var(--ligne);
}
tbody td { padding: 9px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.rang { color: var(--encre-3); font-variant-numeric: tabular-nums; }
.score { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.id { font-size: 11px; color: var(--encre-3); }
.detail-score { font-size: 11px; color: var(--encre-3); line-height: 1.5; font-variant-numeric: tabular-nums; }

/* les motifs de rejet */
.motifs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.legende { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 8px; font-weight: 500; }
.motif-ligne { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.combien {
  flex: none;
  min-width: 28px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--bleu-clair);
}
.motif-ligne .qui { margin-left: auto; font-size: 10.5px; color: var(--encre-3); font-family: ui-monospace, Menlo, monospace; }

/* le devis */
.devis-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.devis-total .nombre { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.devis-total .unite { font-size: 12.5px; color: var(--encre-3); }
.lignes td { padding: 6px 0; }
.lignes .h { text-align: right; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.total-h { font-weight: 600; color: var(--encre); }
.listes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.listes h3 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 6px; }
.listes ul { margin: 0; padding-left: 16px; font-size: 12px; color: var(--encre-2); line-height: 1.6; }

/* les fragments qui se fondent dans la nuit */
.fragment {
  margin-top: 12px;
  max-height: 104px;
  overflow: hidden;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--encre-3);
  white-space: pre;
  mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
}

details { margin-top: 10px; }
summary { cursor: pointer; font-size: 11.5px; color: var(--bleu-clair); }
details pre {
  margin: 8px 0 0;
  padding: 12px;
  background: var(--champ);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 11px;
  line-height: 1.6;
  color: var(--encre-2);
  white-space: pre-wrap;
}

.avert {
  color: var(--ambre);
  font-size: 11.5px;
}

.avert-bloc {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 181, 68, 0.08);
  border: 1px solid rgba(245, 181, 68, 0.22);
}

.vide {
  grid-column: span 2;
  padding: 48px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--encre-3);
}

/* utilitaires — ils existent parce que la CSP interdit style="" */
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.encre-2 { color: var(--encre-2); }
.encre-3 { color: var(--encre-3); }

/* ---------------- pied ---------------- */

.pied {
  max-width: 1440px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  font-size: 12px;
  color: var(--encre-3);
}

.pied code { color: var(--encre-2); }

/* ---------------- adaptation ---------------- */

@media (max-width: 1180px) {
  .plateau { grid-template-columns: minmax(0, 1fr); }
  .colonne-scene { position: static; }
  .entete { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
}

@media (max-width: 900px) {
  body { padding: 28px 18px 48px; }
  .console { grid-template-columns: minmax(0, 1fr); }
  .large, .pleine, .vide { grid-column: span 1; }
  /* la cellule ne fait plus toute la largeur : les paires reviennent
     sur une colonne, sinon l'étiquette et la valeur se chevauchent. */
  .pleine .paires { grid-template-columns: minmax(0, 1fr); }
  .jetons { grid-template-columns: minmax(0, 1fr); }
  .listes { grid-template-columns: 1fr; }
  /* le verre n'a plus de photo derrière lui à cette taille :
     le widget descend sous la capture et devient opaque. */
  .widget {
    position: static;
    width: auto;
    margin-top: 12px;
    background: var(--cellule);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--ligne-forte);
  }
  .fil { max-height: none; }
  .ex { max-width: 100%; }
}

/* ---------------- ce que l'IA a fait, ce que j'ai vérifié ----------------
   Demandé par la grille : « utilisation de l'IA et vérification humaine ».
   C'était dans le README et nulle part à l'écran. */
.partage { margin-top: 48px; }
.partage-grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.part {
  padding: 16px;
  background: var(--cellule);
  border: 1px solid var(--ligne);
  border-radius: 14px;
}
.part h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu-clair);
}
.part p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--encre-2); }

/* Le volet des limites est le cinquième, et il ne tient pas dans la
   grille : une colonne de plus écraserait les quatre autres. Il passe
   sous elles, pleine largeur, en deux colonnes de puces. C'est aussi
   plus juste — ce qu'on ne sait pas mérite sa propre ligne. */
.part-large { margin-top: 12px; }
.part-large ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.part-large li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--encre-2);
}
.part-large li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bleu-clair);
}
@media (max-width: 760px) { .part-large ul { grid-template-columns: minmax(0, 1fr); } }
.partage-note {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--champ);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--encre-3);
}
@media (max-width: 1100px) { .partage-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .partage-grille { grid-template-columns: minmax(0, 1fr); } }

/* ---- ouvert sans serveur ---- */
/* Ce bandeau est dans le HTML, visible par défaut, et app.js le retire
   dès qu'il s'exécute. En file://, app.js ne s'exécute jamais : il reste.
   Barre fixe en bas, donc aucun décalage de mise en page quand il part. */
.sans-serveur {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px 20px;
  background: #3B1D1D;
  border-top: 1px solid #A8534F;
  color: #FFE8E6;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.sans-serveur code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #FFD9D9;
}
