
/* Un seul univers, voulu par Mehdi : fond crème chaud, page ivoire, encre bleu nuit proche du logo,
   filets laiton comme une papeterie de voyage. Titres en serif, texte en sans-serif fine.
   Le seul moment fort reste la lecture de la zone codée du passeport. Pas de thème sombre, par choix. */
:root {
  color-scheme: light;
  --bleu: #1D2F5C;
  --bleu-doux: #EFE8DA;
  --rouge: #B8232A;
  --laiton: #9C7A42;
  --encre: #1D2333;
  --gris: #6A6457;
  --trait: #DCD2BF;
  --fond: #ECE4D4;
  --surface: #FBF8F1;
  --a-verifier: #8A4B0F;
  --a-verifier-fond: #F6E8D0;
  --ok: #2E6A45;
  --ok-fond: #E3EDDF;
  --refus: #A3261E;
  --refus-fond: #F6E1DB;
  --papier: #F4EEDC;
  --papier-trait: #D3C7A8;
  --titre: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --texte: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", "Consolas", "Courier New", monospace;
  --r: 12px;
}
h1, h2, .marque strong, .sejour b, .puce { font-variant-numeric: lining-nums; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.5 var(--texte);
  padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 6px; }

.scene {
  display: grid;
  gap: 24px;
  justify-content: center;
  grid-template-columns: minmax(0, 430px);
  align-items: start;
}
@media (min-width: 900px) {
  .scene { grid-template-columns: 430px 300px; }
}

/* Le téléphone */
.tel {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 60px -34px rgba(60, 44, 20, .45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 760px;
}
.entete {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--trait);
}
.marque { display: flex; align-items: center; gap: 12px; }
.marque svg { width: 36px; height: 36px; flex: none; }
.marque strong { font-family: var(--titre); font-weight: 600; font-size: 21px; letter-spacing: .01em; line-height: 1.1; color: var(--bleu); }
.marque span { display: block; color: var(--gris); font-size: 12.5px; letter-spacing: .02em; }
.sejour {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--papier);
  border: 1px solid var(--papier-trait);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.sejour b { font-family: var(--titre); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--bleu); }
.sejour .verrou { color: var(--gris); font-size: 12.5px; }
.progression { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--gris); }
.barre { height: 2px; background: var(--trait); overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--laiton); transition: width .4s ease; }

.ecran {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 22px 24px;
}
.ecran h1 { font-family: var(--titre); font-size: 31px; line-height: 1.12; font-weight: 600; color: var(--bleu); letter-spacing: -.005em; }
.ecran h2 { font-family: var(--titre); font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--bleu); }
.chapo { color: var(--gris); font-size: 15px; line-height: 1.6; }
.pile { display: flex; flex-direction: column; gap: 14px; }

.actions {
  position: sticky; bottom: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--trait);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  background: var(--bleu); color: var(--surface);
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover:not(:disabled) { background: #14223F; }
.btn.second:hover:not(:disabled) { background: var(--papier); }
.btn.second { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn.discret { background: transparent; color: var(--bleu); min-height: 40px; padding: 0 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { background: var(--trait); color: var(--gris); cursor: not-allowed; border-color: transparent; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; }
.rangee .btn { flex: 1 1 140px; }
.rangee.nav .btn { flex: 2 1 160px; }
.rangee.nav .btn.retour { flex: 1 1 100px; }

/* Listes et blocs */
.liste { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.liste li { display: flex; gap: 12px; align-items: flex-start; }
.puce { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--laiton); color: var(--laiton); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 16px; }
.encadre { border: 1px solid var(--trait); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.note { font-size: 14px; color: var(--gris); }

/* Champs */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .lib { font-weight: 600; font-size: 15px; }
.champ .aide { font-size: 13px; color: var(--gris); }
.saisie {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--trait);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}
textarea.saisie { min-height: 84px; resize: vertical; }
.saisie:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px var(--bleu-doux); }
.champ.erreur .saisie { border-color: var(--refus); }
.champ .msg-erreur { color: var(--refus); font-size: 13.5px; font-weight: 600; }
.source { font-size: 12.5px; color: var(--gris); }
.champ.douteux .saisie { border-color: var(--a-verifier); background: var(--a-verifier-fond); }
.champ.erreur .saisie, .champ.douteux.erreur .saisie { border-color: var(--refus); border-width: 2px; background: var(--refus-fond); }
.champ.douteux.erreur .verif { color: var(--refus); }
.champ.douteux.erreur .verif input { accent-color: var(--refus); }
.verif {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--a-verifier);
}
.verif input { width: 20px; height: 20px; accent-color: var(--a-verifier); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--trait); border-radius: 10px;
  padding: 10px 12px; font-weight: 500; cursor: pointer; min-height: 46px;
}
.choix input { accent-color: var(--bleu); width: 18px; height: 18px; }
.choix label:has(input:checked) { border-color: var(--bleu); background: var(--bleu-doux); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.case input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--bleu); }
.groupe { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.groupe + .groupe { border-top: 1px solid var(--trait); padding-top: 18px; }
.compteur {
  display: flex; gap: 10px; align-items: center;
  border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14.5px;
}
.compteur.attente { background: var(--a-verifier-fond); color: var(--a-verifier); }
.compteur.bon { background: var(--ok-fond); color: var(--ok); }

/* Dépôt d'un document */
.depot { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--trait); border-radius: var(--r); padding: 14px; }
.depot-tete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.depot-tete h2 { font-size: 16px; }
.etat { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.etat.ok { background: var(--ok-fond); color: var(--ok); }
.etat.refus { background: var(--refus-fond); color: var(--refus); }
.etat.attente { background: var(--a-verifier-fond); color: var(--a-verifier); }
.conseils { display: flex; gap: 12px; align-items: center; background: var(--bleu-doux); border-radius: 10px; padding: 10px 12px; }
.conseils svg { flex: none; width: 64px; height: 48px; }
.conseils ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.refus-msg { background: var(--refus-fond); color: var(--refus); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; }
.lu { font-size: 13.5px; color: var(--ok); font-weight: 600; }

/* La vue du document photographié */
.vue { position: relative; border-radius: 10px; overflow: hidden; background: #2A2722; padding: 16px; }
.vue.lecture::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: #7FB2FF; box-shadow: 0 0 14px 4px rgba(127, 178, 255, .7);
  animation: balayage 1.3s ease-in-out infinite;
}
@keyframes balayage { 0% { top: 4%; } 50% { top: 92%; } 100% { top: 4%; } }
.lecture-texte { position: absolute; inset: auto 0 10px 0; text-align: center; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.doc {
  background: var(--papier);
  color: #2C2A20;
  border: 1px solid var(--papier-trait);
  border-radius: 6px;
  padding: 10px 10px 8px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 10px;
  font-size: 10.5px;
  line-height: 1.3;
}
.doc .titre { grid-column: 1 / -1; display: flex; justify-content: space-between; font-weight: 700; font-size: 10px; letter-spacing: .02em; }
.doc .photo { grid-row: span 5; background: #C9C1A6; border-radius: 3px; display: grid; place-items: end center; overflow: hidden; height: 78px; }
.doc .photo i { width: 34px; height: 34px; border-radius: 50%; background: #9C937A; margin-bottom: -6px; box-shadow: 0 30px 0 12px #9C937A; }
.doc .cle { color: #6E6754; }
.doc .mrz {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.6px;
  letter-spacing: .045em;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.45;
}
.doc .mrz b { font-weight: 600; border-radius: 2px; transition: background .4s ease, color .4s ease; }
.doc.lue .mrz b { background: #17703A; color: #fff; }
.carte { grid-template-columns: 56px 1fr; }
.carte .photo { height: 66px; }
.recu { display: flex; flex-direction: column; gap: 4px; grid-template-columns: none; font-size: 11px; }
.defaut-flou .doc { filter: blur(2.6px); }
.defaut-coupe .doc { clip-path: inset(0 0 24% 0); }
.defaut-doigt::before {
  content: ""; position: absolute; z-index: 2; width: 92px; height: 150px; right: 26px; bottom: -52px;
  background: radial-gradient(ellipse at 50% 30%, #E7B892 0%, #D49C74 60%, #B97F5A 100%);
  border-radius: 46px 46px 30px 30px; transform: rotate(-14deg);
}
.cadre-rogne { font-size: 12.5px; color: #DCE3EE; margin-top: 8px; text-align: center; }

/* Récapitulatif et PDF */
.recap { display: flex; flex-direction: column; gap: 4px; }
.recap-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.recap dl { margin: 0; display: grid; grid-template-columns: minmax(0, 44%) 1fr; gap: 4px 12px; font-size: 14px; }
.recap dt { color: var(--gris); }
.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.recap dd.douteux { color: var(--a-verifier); }
.cg { max-height: 320px; overflow-y: auto; border: 1px solid var(--trait); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; }
.feuille {
  background: #fff; color: #1D1D1D; border: 1px solid #CCD3DE; border-radius: 4px;
  padding: 14px; font-size: 9.5px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.4);
}
.feuille .ft { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 11px; color: #20488D; border-bottom: 2px solid #CD1E25; padding-bottom: 6px; }
.feuille .ft svg { width: 22px; height: 22px; }
.feuille table { border-collapse: collapse; width: 100%; }
.feuille td { border: 1px solid #B9C2CF; padding: 3px 5px; vertical-align: top; }
.feuille td:first-child { width: 48%; color: #4A5468; }
.feuille .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.feuille .sign div { border: 1px solid #B9C2CF; height: 34px; padding: 3px 5px; color: #4A5468; }
.statut-grand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pastille { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-fond); color: var(--ok); }
.pastille.alerte { background: var(--refus-fond); color: var(--refus); }
.pastille svg { width: 28px; height: 28px; }

/* Le panneau de la maquette */
.panneau {
  background: var(--surface);
  border: 1px dashed var(--gris);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 14px;
}
@media (min-width: 900px) { .panneau { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); } }
.panneau h2 { font-family: var(--titre); font-size: 20px; font-weight: 600; color: var(--bleu); }
.panneau p { color: var(--gris); font-size: 13.5px; }
.panneau .champ label { font-size: 14px; }
.panneau .saisie { min-height: 42px; }
.panneau .rangee .btn { min-height: 42px; font-size: 14px; flex-basis: 100%; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--encre); color: var(--surface); padding: 12px 16px; border-radius: 12px;
  font-weight: 600; font-size: 14px; max-width: min(92vw, 420px); z-index: 20;
}
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Les onglets : la maquette, son mode d'emploi, le parcours d'un dossier */
.onglets {
  display: flex; gap: 4px; margin: 0 auto 26px; max-width: 620px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; padding: 5px;
}
.onglet {
  flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 999px;
  font-weight: 600; color: var(--gris); cursor: pointer; padding: 0 12px; letter-spacing: .01em;
}
.onglet:hover { color: var(--bleu); }
.onglet[aria-selected="true"] { background: var(--bleu); color: var(--surface); }

.doc-vue { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; font-size: 18px; }
.doc-vue .d-tete { display: flex; align-items: center; gap: 18px; }
.doc-vue .d-tete svg.logo-doc { width: 58px; height: 58px; flex: none; }
.doc-vue .d-tete h1 { font-family: var(--titre); font-weight: 600; font-size: 46px; line-height: 1.04; color: var(--bleu); }
.doc-vue .d-tete p { color: var(--gris); font-size: 18px; margin-top: 6px; }
.doc-vue section { display: flex; flex-direction: column; gap: 16px; }
.doc-vue .temps { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--laiton); padding-bottom: 8px; }
.doc-vue .temps b { font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--laiton); }
.doc-vue .temps h2 { font-family: var(--titre); font-weight: 600; font-size: 31px; color: var(--bleu); }
.doc-vue .grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.doc-vue .grille3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-vue .bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-vue .bloc h3 { font-family: var(--titre); font-weight: 700; font-size: 23px; line-height: 1.15; color: var(--bleu); }
.doc-vue .bloc p, .doc-vue .bloc li { font-size: 16.5px; color: #3F3B33; }
.doc-vue .bloc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.doc-vue .regle { font-size: 15px; color: var(--gris); }
.doc-vue .regle b { color: var(--encre); font-weight: 600; }
.doc-vue .zones { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 4px; }
.doc-vue .zones span { border-radius: 8px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; }
.doc-vue .zones .g { background: var(--papier); border: 1px solid var(--papier-trait); color: var(--bleu); }
.doc-vue .zones .d { border: 1.5px dashed var(--gris); color: var(--gris); }
.doc-vue .pas-liste { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; }
.doc-vue .pas { display: grid; grid-template-columns: 40px 140px 1fr; gap: 16px; align-items: center; padding: 13px 20px; }
.doc-vue .pas + .pas { border-top: 1px solid var(--trait); }
.doc-vue .rond { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--laiton); color: var(--laiton); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 19px; flex: none; }
.doc-vue .pas p { font-size: 16.5px; color: #3F3B33; }
.doc-vue .pas p strong { color: var(--encre); }
.role { justify-self: start; font-size: 13.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.r-parent { background: #E7ECF5; color: var(--bleu); }
.r-ia { background: var(--papier); color: #7A5B2A; border: 1px solid var(--papier-trait); }
.r-institut { background: #EFE3E1; color: #8A2A25; }
.doc-vue .fin { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--gris); font-size: 16px; }
.doc-vue .fin strong { color: var(--bleu); font-family: var(--titre); font-size: 24px; font-weight: 600; }

/* Le parcours : trois couloirs, les étapes descendent dans l'ordre réel du dossier */
.doc-vue .couloirs, .doc-vue .rang { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 22px; }
.doc-vue .couloirs div { text-align: center; padding: 12px 8px; border-bottom: 2px solid var(--laiton); font-family: var(--titre); font-weight: 600; font-size: 26px; color: var(--bleu); }
.doc-vue .couloirs small { display: block; font-family: var(--texte); font-size: 14.5px; font-weight: 500; color: var(--gris); }
.doc-vue .plan { position: relative; display: flex; flex-direction: column; gap: 26px; }
.doc-vue .fond-couloirs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 22px; pointer-events: none; }
.doc-vue .fond-couloirs i { background: rgba(251, 248, 241, .45); border-radius: 0 0 14px 14px; }
.doc-vue .etape { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 30px -24px rgba(60, 44, 20, .5); }
.doc-vue .etape.auto { background: var(--papier); border-color: var(--papier-trait); }
.doc-vue .etape.suite { background: transparent; border-style: dashed; box-shadow: none; }
.doc-vue .etape .num { display: flex; align-items: center; gap: 10px; }
.doc-vue .etape h3 { font-family: var(--titre); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--bleu); }
.doc-vue .etape p { font-size: 16px; color: #3F3B33; }
.doc-vue .etape .role { display: none; }
.doc-vue .marques { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.doc-vue .marques span { font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--trait); background: var(--surface); }
.m-gris { color: #5B5B5B; } .m-vert { color: var(--ok); } .m-orange { color: var(--a-verifier); } .m-rouge { color: var(--rouge); }
.doc-vue .separation { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; color: var(--gris); font-size: 16px; font-weight: 600; }
.doc-vue .separation::before, .doc-vue .separation::after { content: ""; flex: 1; height: 1px; background: var(--laiton); opacity: .6; }
.doc-vue .separation span { position: relative; z-index: 2; background: var(--fond); padding: 4px 16px; border: 1px solid var(--laiton); border-radius: 999px; }
.doc-vue svg.liens { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.doc-vue .legende { color: var(--gris); font-size: 15px; text-align: center; }

@media (max-width: 760px) {
  .doc-vue { font-size: 16px; gap: 26px; }
  .doc-vue .d-tete h1 { font-size: 33px; }
  .doc-vue .temps h2 { font-size: 26px; }
  .doc-vue .grille2, .doc-vue .grille3 { grid-template-columns: 1fr; }
  .doc-vue .pas { grid-template-columns: 34px 1fr; gap: 6px 12px; }
  .doc-vue .pas .role { grid-column: 2; }
  .doc-vue .pas p { grid-column: 2; }
  .doc-vue .couloirs, .doc-vue .fond-couloirs { display: none; }
  .doc-vue .rang { grid-template-columns: 1fr; }
  .doc-vue .rang .etape { grid-column: 1 !important; }
  .doc-vue .etape .role { display: inline-block; justify-self: start; align-self: flex-start; }
  .onglet { padding: 0 6px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}
/* Ajouts de la version adulte : lignes répétables (enfants, personnes à charge, voyages). */
.lignes { display: grid; gap: 10px; }
.ligne { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); }
.ligne .num-ligne { font-size: 13px; font-weight: 600; color: var(--laiton); letter-spacing: .04em; text-transform: uppercase; }
.ligne .sous { display: grid; gap: 4px; }
.ligne .sous label { font-size: 14px; color: var(--gris); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Outil réel : photo prise, bandeau de test, écrans de l'institut ---- */
.photo-prise { width: 100%; border-radius: 10px; border: 1px solid var(--trait); display: block; }
.bandeau-test { background: var(--a-verifier-fond); color: var(--a-verifier); font-size: 14px; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
input[type=file].cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.adm { max-width: 1180px; margin: 0 auto; padding-block: 24px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 22px; color: var(--encre); }
.adm-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-tete h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; color: var(--bleu); }
.carte-adm { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 18px; }
.grille-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.table-wrap { overflow-x: auto; }
table.suivi { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.suivi th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding: 8px 10px; border-bottom: 1px solid var(--trait); }
table.suivi td { padding: 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.pastille-s { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.s-rouge { background: var(--refus-fond); color: var(--refus); } .s-orange { background: var(--a-verifier-fond); color: var(--a-verifier); }
.s-vert { background: var(--ok-fond); color: var(--ok); } .s-attente { background: #E4E8F2; color: var(--bleu); }
.s-blanc { background: #fff; color: var(--gris); border: 1px solid var(--trait); } .s-gris { background: #E6E2D9; color: var(--gris); }
.motifs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--gris); }
.flash { background: var(--ok-fond); color: var(--ok); padding: 10px 14px; border-radius: 10px; }
.photos-dossier { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.photos-dossier img { width: 100%; border-radius: 8px; border: 1px solid var(--trait); }
dl.rep { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 6px 16px; margin: 0; font-size: 14.5px; }
dl.rep dt { color: var(--gris); } dl.rep dd { margin: 0; }
.actions-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-ligne form { margin: 0; }

/* Sur un vrai téléphone, la page occupe tout l'écran (la maquette dessinait un cadre de téléphone). */
@media (max-width: 520px) {
  body:has(.scene) { padding: 0 !important; }
  .scene { display: block; }
  .tel { border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
}
