/* Sobre, lisible d'abord sur téléphone. Les couleurs servent seulement à l'état. Thème clair et sombre. */
:root {
  --fond: #f6f7f9; --carte: #ffffff; --texte: #15181d; --doux: #5b6472; --trait: #dde1e7; --bouton: #e9ecf1;
  --verte: #1f9d55; --orange: #d97706; --rouge: #dc2626; --grise: #8a94a3; --lien: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #0f1216; --carte: #181c22; --texte: #e8ebef; --doux: #9aa4b2; --trait: #2a3039; --bouton: #252b34;
          --verte: #34c47c; --orange: #f59e0b; --rouge: #f87171; --grise: #7b8594; --lien: #8ab4ff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Zones sûres de l'iPhone (encoche, barre du bas) : le menu collé en haut porte lui-même la marge du haut, pour ne
   jamais passer sous l'encoche quand la page défile. Sans menu (page publique), c'est la page qui la porte. */
body { margin: 0; background: var(--fond); color: var(--texte); overflow-wrap: break-word;
       font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
       padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
main { max-width: 760px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 14px 80px; }
body.avec-menu main { padding-top: 12px; }
a { color: var(--lien); }
h1 { font-size: 1.35rem; margin: 10px 0; }
h2 { font-size: 1.1rem; margin: 22px 0 8px; }
h3 { font-size: 1rem; margin: 10px 0 4px; }
p { margin: 6px 0; }
.doux { color: var(--doux); font-size: .92rem; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
nav.haut { position: sticky; top: 0; z-index: 5; background: var(--fond); border-bottom: 1px solid var(--trait);
           display: flex; gap: 4px; overflow-x: auto; padding: env(safe-area-inset-top) 8px 0; white-space: nowrap;
           font-size: .95rem; -webkit-overflow-scrolling: touch; }
nav.haut a { text-decoration: none; color: var(--texte); display: inline-flex; align-items: center; min-height: 44px;
             padding: 0 6px; flex: none; }
nav.haut a.actif { font-weight: 700; }
.etat { display: flex; gap: 12px; align-items: center; }
.pastille { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--grise); }
.pastille.verte { background: var(--verte); } .pastille.orange { background: var(--orange); }
.pastille.rouge { background: var(--rouge); } .pastille.grise { background: var(--grise); }
.point { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--grise); margin-right: 6px; }
.point.verte { background: var(--verte); } .point.orange { background: var(--orange); } .point.rouge { background: var(--rouge); }
.phrase { font-size: 1.12rem; font-weight: 600; }
.bandeau { display: block; background: var(--rouge); color: #fff; border-radius: 10px; padding: 10px 14px; margin: 8px 0;
           text-decoration: none; font-weight: 600; }
/* Pas une panne (par exemple, notifications pas encore activées) : neutre, avec un trait orange. Le rouge reste
   réservé aux pannes. */
.bandeau.orange { background: var(--carte); color: var(--texte); border: 1px solid var(--trait);
                  border-left: 6px solid var(--orange); }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chiffre { text-align: center; }
.chiffre .grand { font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.chiffre .nom { font-size: .9rem; color: var(--doux); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--trait); vertical-align: top; }
td.n, th.n { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.barre { width: 100%; height: 14px; display: block; }
.barre rect.fond { fill: var(--trait); } .barre rect.plein { fill: var(--doux); }
button, .bouton { font: inherit; font-size: 1rem; border: 1px solid var(--trait); background: var(--bouton); color: var(--texte);
                  border-radius: 10px; padding: 10px 14px; min-height: 44px; cursor: pointer; text-decoration: none;
                  display: inline-block; }
button.principal { font-weight: 700; }
button[disabled] { opacity: .5; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.boutons form { margin: 0; }
input[type=text], input[type=url], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=search], textarea, select { font: inherit; font-size: 16px; width: 100%; padding: 9px 10px; border-radius: 9px;
  min-height: 44px;
  border: 1px solid var(--trait); background: var(--carte); color: var(--texte); }
textarea { min-height: 7em; }
input[type=file] { font: inherit; font-size: 16px; min-height: 44px; max-width: 100%; }
label { display: block; margin: 8px 0 3px; font-weight: 600; font-size: .95rem; }
.lettre { white-space: pre-wrap; }
.citation { border-left: 3px solid var(--trait); padding-left: 10px; color: var(--doux); font-style: italic; margin: 4px 0; }
.fil li { margin: 3px 0; }
ul.simple { list-style: none; padding: 0; margin: 0; }
.coche { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--trait); }
.coche .case { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--doux); text-align: center;
               line-height: 20px; font-weight: 700; }
.coche.fait .case { background: var(--verte); border-color: var(--verte); color: #fff; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; max-width: 92%;
         background: var(--texte); color: var(--fond); padding: 12px 16px; border-radius: 12px; white-space: pre-line;
         box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.cache { display: none !important; }
details > summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details > summary::before { content: "▸"; margin-right: 6px; }
details[open] > summary::before { content: "▾"; }
details > summary::-webkit-details-marker { display: none; }
code.cle { word-break: break-all; font-size: 1.05rem; }
.centre { text-align: center; }
.public { min-height: 80vh; min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.etiquette { display: inline-block; font-size: .8rem; border: 1px solid var(--trait); border-radius: 6px; padding: 1px 6px; color: var(--doux); }
@media (min-width: 800px) { body { font-size: 16px; } .chiffre .grand { font-size: 2.6rem; } }
.col-barre { width: 50%; }
.capture { width: 100%; height: auto; border: 1px solid var(--trait); border-radius: 8px; }
.phrase a { color: inherit; }
/* Les mots à copier d'un toucher (page des critères des alertes). */
button.mot { font-weight: 600; padding: 8px 12px; margin: 2px 0; text-align: left; white-space: normal; }
ul.criteres li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--trait); }
ul.criteres li:last-child { border-bottom: none; }
.numero { flex: none; width: 1.6em; text-align: right; color: var(--doux); font-variant-numeric: tabular-nums; padding-top: 11px; }
/* Un refus avec sa liste (GO refusé) : une carte qui reste à l'écran jusqu'à ce qu'on la ferme. */
.carte.refus { border-left: 6px solid var(--orange); }
.carte.refus ul { margin: 6px 0; padding-left: 20px; }
.carte.refus li { margin: 4px 0; }
img.preuve { display: block; max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--trait); border-radius: 6px; }

/* Lot 19 : l'aperçu du CV du nouveau domicile, et les questions des formulaires. */
img.apercu-cv { display: block; width: 100%; max-width: 640px; height: auto; border: 1px solid var(--trait); border-radius: 6px; margin: 4px 0 10px; background: #fff; }
.question { border-top: 1px solid var(--trait); margin-top: 10px; padding-top: 8px; }
