/* Fichier construit à partir de source/styles/ : ne pas le modifier à la main. */
/* ===== Couleurs, mise en page, barre du haut, listes, boutons, champs. ===== */
:root {
  --fond: #F3F1EC; --papier: #FFFFFF; --encre: #141414; --encre2: #4A4946;
  --discret: #7A776F; --trait: #E2DED4; --rouille: #C9A227; --rouille-fonce: #8A6A0F;
  --acier: #1F1F1F; --acier-doux: #F1EAD3; --ok: #4C6444; --ok-doux: #E1E8DA;
  --danger: #A33B2B; --danger-doux: #F3DAD3; --nuit: #0D0D0D; --or: #C9A227; --or-clair: #E3C766;
  --toucher: 52px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.45; color: var(--encre); background: var(--fond);
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--acier); outline-offset: 2px; }

.appli { min-height: 100%; display: flex; flex-direction: column; }
.barre {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px;
  background: var(--nuit); color: #fff;
}
.barre-marque { font-weight: 800; font-size: 13px; letter-spacing: .02em; opacity: .75; }
.barre-titre { flex: 1; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-retour, .barre-action {
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; font-weight: 600; font-size: 15px;
}
.barre-retour { border: none; padding-left: 0; font-size: 17px; }
.barre-action:disabled { opacity: .5; }
.ligne-semaine-decalage { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.ligne-semaine-decalage .champ { width: 72px; text-align: center; font-weight: 800; font-size: 18px; }
.ligne-semaine-decalage .btn-secondaire { min-width: 48px; min-height: 44px; font-size: 22px; padding: 0; display: flex; align-items: center; justify-content: center; }
.choix-personnes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.puce-personne { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid #D8D3C8; background: #FFFFFF; font-size: 15px; }
.puce-personne input { width: 18px; height: 18px; margin: 0; }
.puce-personne.choisie { border-color: var(--or); background: #FBF6E6; font-weight: 700; }
.barre-tache { border-color: var(--or); color: var(--or); padding: 0 10px; white-space: nowrap; }

.une-colonne { flex: 1; padding: 12px 12px 24px; max-width: 820px; width: 100%; margin: 0 auto; }
.deux-colonnes { flex: 1; display: grid; grid-template-columns: minmax(300px, 38%) 1fr; min-height: 0; }
.gauche { border-right: 1px solid var(--trait); padding: 12px; overflow-y: auto; height: calc(100vh - 56px); position: sticky; top: 56px; }
.droite { padding: 16px 20px; overflow-y: auto; min-width: 0; }
.titre-zone { margin: 4px 0 12px; font-size: 22px; }
.retour-zone { min-height: 44px; border: none; background: none; color: var(--acier); font-weight: 600; padding: 0; margin-bottom: 6px; text-align: left; }

.filtres { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.recherche, select {
  width: 100%; min-height: var(--toucher); padding: 0 14px; font-size: 16px;
  border: 1px solid var(--trait); border-radius: 10px; background: var(--papier);
}

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ligne {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px;
  min-height: 64px; padding: 12px 14px; border-radius: 10px;
  background: var(--papier); border: 1px solid var(--trait); border-left: 5px solid var(--trait);
}
.ligne:active { background: var(--acier-doux); }
.ligne.active { border-left-color: var(--rouille); background: #FBF6E6; }
.ligne-titre { font-weight: 700; font-size: 17px; }
.ligne-sous { color: var(--encre2); font-size: 14px; }
.lots-resume { color: var(--discret); font-size: 13px; }
.pastille { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--acier); background: var(--acier-doux); padding: 3px 9px; border-radius: 999px; }
.pastille-vide { color: var(--discret); background: #F2F0EB; }

.vide { color: var(--encre2); padding: 24px 8px; text-align: center; }
.erreur { color: var(--danger); }
.bandeau-erreur { margin: 0; padding: 10px 14px; background: var(--danger-doux); color: var(--danger); font-size: 14px; }

.detail-tete { margin-bottom: 14px; }
.detail-tete h2 { margin: 0 0 2px; font-size: 24px; }
.detail-tete p { margin: 0 0 12px; color: var(--encre2); }
.btn-secondaire {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 10px;
  background: var(--papier); border: 1px solid var(--acier); color: var(--acier); font-weight: 700; text-decoration: none;
}
.bloc { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.bloc h3 { margin: 0 0 10px; font-size: 18px; color: var(--rouille-fonce); }
.bloc-general h3 { color: var(--acier); }
.groupe { padding: 10px 0; border-top: 1px solid #EFECE5; }
.groupe:first-of-type { border-top: none; padding-top: 0; }
.groupe-perso { background: #F7F3EC; border-radius: 8px; padding: 10px; border-top: none; margin-top: 8px; }
.groupe-titre { font-weight: 700; margin-bottom: 4px; }
.items { margin: 0 0 6px; padding-left: 20px; color: var(--encre2); font-size: 15px; }
.items-texte { margin: 0 0 6px; color: var(--encre2); }
.suivi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.conf { font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 6px; }
.conf-oui { color: var(--ok); background: var(--ok-doux); }
.conf-non { color: var(--danger); background: var(--danger-doux); }
.conf-vide { color: var(--discret); background: #F2F0EB; font-weight: 600; }
.texte-bloc { margin-top: 10px; }
.texte-bloc p { margin: 2px 0 0; white-space: pre-wrap; }
.etiquette { font-size: 13px; font-weight: 700; color: var(--encre2); }
.note { font-size: 13px; color: var(--discret); margin: 0 0 8px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.photo { position: relative; padding: 0; border: none; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: #E5E1D8; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-marque { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(13,13,13,.85); padding: 2px 6px; border-radius: 4px; }

.visionneuse { position: fixed; inset: 0; z-index: 100005; background: #000; display: flex; flex-direction: column; }
.visionneuse img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.visionneuse-barre { display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); color: #fff; }
.visionneuse-barre span { flex: 1; text-align: center; white-space: nowrap; }
.visionneuse-barre button[aria-label] { min-width: 56px; font-size: 26px; line-height: 1; }
.visionneuse-barre button { min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-weight: 600; }
.visionneuse-barre button:disabled { opacity: .35; }
.visionneuse-barre .fermer { background: #fff; color: #000; }

.pied { margin-top: 28px; padding: 14px 4px; border-top: 1px solid var(--trait); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; color: var(--discret); }
.lien { border: none; background: none; padding: 0; min-height: 44px; color: var(--acier); font-weight: 600; text-decoration: underline; font-size: 14px; }

.marque { font-weight: 800; font-size: 13px; color: var(--rouille); letter-spacing: .02em; }
.btn-principal { min-height: var(--toucher); border: none; border-radius: 10px; background: var(--rouille); color: #0D0D0D; font-weight: 700; font-size: 17px; }
.btn-principal:disabled { opacity: .6; }
.aide { margin: 0; font-size: 13px; color: var(--discret); }

/* ===== Saisie, photos, annotation, enregistrement. ===== */
/* ---- Saisie (étape 1b) ---- */
.btn-large { width: 100%; justify-content: center; min-height: var(--toucher); font-size: 16px; }
.btn-nouveau { margin-bottom: 14px; }
.carte-brouillon { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin-bottom: 14px; border-radius: 12px; background: #FBF6E6; border: 2px solid var(--rouille); }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille-brouillon { color: var(--rouille-fonce); background: #F3E7C2; }
.titre-acier { color: var(--acier) !important; }
.formulaire { padding-bottom: 110px; }
.deux-champs { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 560px) { .deux-champs { grid-template-columns: 1fr 1fr; } }
.champ-etiquete { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--encre2); margin-top: 10px; }
.champ, .zone-texte {
  width: 100%; min-height: var(--toucher); padding: 12px 14px; font-size: 16px; font-weight: 400; color: var(--encre);
  border: 1px solid var(--trait); border-radius: 10px; background: var(--papier);
}
.zone-texte { resize: vertical; line-height: 1.4; margin-top: 4px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: var(--toucher); padding: 8px 14px; border-radius: 10px;
  border: 2px solid var(--trait); background: var(--papier);
}
.puce.active { border-color: var(--rouille); background: #FBF6E6; }
.puce-nom { font-weight: 700; font-size: 15px; }
.puce-ent { font-size: 13px; color: var(--acier); font-weight: 600; }
.lot-saisie { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.lot-saisie.ouvert { border-color: var(--rouille); }
.lot-tete {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left;
  min-height: 64px; padding: 12px 14px; border: none; background: none;
}
.lot-nom { font-weight: 800; font-size: 17px; color: var(--rouille-fonce); }
.lot-entreprise { grid-column: 1; font-size: 14px; color: var(--acier); font-weight: 600; }
.lot-resume { grid-column: 1; font-size: 13px; color: var(--discret); }
.lot-chevron { grid-column: 2; grid-row: 1 / span 3; font-size: 28px; font-weight: 300; color: var(--encre2); width: 36px; text-align: center; }
.lot-corps { padding: 0 14px 14px; }
.groupe-saisie { padding: 12px 0; border-top: 1px solid #EFECE5; }
.groupe-saisie.groupe-perso { background: #F7F3EC; border: 1px dashed var(--acier); border-radius: 10px; padding: 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.ligne-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.champ-semaine { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--encre2); }
.champ-semaine input { width: 72px; min-height: 48px; padding: 0 10px; font-size: 17px; text-align: center; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); }
.choix-conf { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.choix { flex: 1; min-height: 48px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 2px solid var(--trait); background: var(--papier); color: var(--encre2); }
.choix-oui.actif { background: var(--ok); border-color: var(--ok); color: #fff; }
.choix-non.actif { background: var(--danger); border-color: var(--danger); color: #fff; }
.ligne-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.lien-discret { color: var(--discret); }
.lien-danger { color: var(--danger); }
.attente-photos { margin-top: 12px; padding: 14px; border: 2px dashed var(--trait); border-radius: 10px; color: var(--discret); font-size: 14px; text-align: center; }
.retires { margin-top: 14px; padding-top: 10px; border-top: 1px solid #EFECE5; }
.retire { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--discret); }
.abandon { display: block; margin: 18px auto 0; }
.barre-enregistrer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--papier); border-top: 1px solid var(--trait); box-shadow: 0 -2px 10px rgba(30,37,48,.08);
}
.barre-enregistrer .btn-principal { padding: 0 16px; font-size: 15px; white-space: nowrap; }
.etat-brouillon { flex: 1; font-size: 13px; color: var(--encre2); }



/* ---- Photos (étape 1c) ---- */
.zone-photos { margin-top: 6px; }
.photo-saisie { overflow: visible; }
.photo-ouvrir { display: block; width: 100%; height: 100%; padding: 0; border: none; border-radius: 8px; overflow: hidden; background: #E5E1D8; }
.photo-ouvrir img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-etat { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(13,13,13,.85); padding: 2px 6px; border-radius: 4px; pointer-events: none; }
.photo-etat-echec { background: rgba(163,59,43,.95); }
.photo-retirer { position: absolute; top: -8px; right: -8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--danger); color: #fff; font-size: 20px; line-height: 1; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0; }
.photo-absente { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; color: var(--discret); text-align: center; }
.boutons-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-photo { min-height: var(--toucher); justify-content: center; font-size: 15px; }


/* ---- Annotation (étape 1d) ---- */
.photo-carte { display: flex; flex-direction: column; gap: 4px; }
.photo-annoter { min-height: 40px; border-radius: 8px; border: 1px solid var(--acier); background: var(--papier); color: var(--acier); font-weight: 700; font-size: 14px; }
.annotateur { position: fixed; inset: 0; z-index: 100010; background: #0D0D0D; color: #fff; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.annot-haut, .annot-bas { flex: none; padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: var(--nuit); }
.annot-bas { flex-direction: column; align-items: stretch; }
.annot-espace { flex: 1; }
.annot-btn { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-weight: 600; font-size: 15px; }
.annot-btn:disabled { opacity: .35; }
.annot-enreg { min-height: 44px; padding: 0 18px; font-size: 16px; }
.annot-scene { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.annot-cadre { position: absolute; transform-origin: 0 0; }
.annot-cadre canvas { display: block; background: #1C1C1C; }
.annot-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; color: #C9CED6; }
.erreur-claire { color: #F3B2A6; }
.annot-outils { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.annot-outil { min-height: 52px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-weight: 700; font-size: 14px; padding: 0 4px; }
.annot-outil.actif { background: #E11D48; border-color: #E11D48; }
.annot-infos { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 13px; color: #C9CED6; }
.annot-suppr { border-color: #F3B2A6; color: #F3B2A6; }
.annot-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--papier); color: var(--encre); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -4px 16px rgba(0,0,0,.3); }
.annot-texte-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.annot-texte-boutons button { min-height: var(--toucher); justify-content: center; }


/* ---- Enregistrement (étape 1e) ---- */
.voile-enreg { position: fixed; inset: 0; z-index: 100000; background: #0D0D0D; display: flex; align-items: center; justify-content: center; padding: 20px; }
.voile-carte { width: 100%; max-width: 420px; background: var(--papier); border-radius: 14px; padding: 20px; }
.voile-carte h3 { margin: 0 0 8px; font-size: 19px; }
.voile-carte p { margin: 0 0 10px; }
.chrono { font-size: 28px; font-weight: 800; color: var(--acier); font-variant-numeric: tabular-nums; }

.message-reprise { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--acier-doux); color: var(--acier); }

/* ===== Accueil des comptes-rendus, planning, contacts, annuaire, zones, dictée, interventions. ===== */
/* ---- Accueil et actions (étape 1f) ---- */
.btn-accueil { min-height: 64px; font-size: 19px; margin: 6px 0 22px; }
.section-accueil { margin-bottom: 24px; }
.titre-section { font-size: 18px; margin: 0 0 10px; color: var(--encre2); }
.ligne-brouillon { border-left-color: var(--rouille); background: #FBF6E6; }
.pastille-ok { color: var(--ok); background: var(--ok-doux); }
.carte-reprise { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 14px; border-radius: 12px; background: var(--acier-doux); border: 2px solid var(--acier); }
.carte-reprise .ligne-sous { margin: 0; }
.actions-cr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.actions-cr .btn-action:first-child { grid-column: 1 / -1; }
.btn-action { min-height: var(--toucher); justify-content: center; text-decoration: none; display: inline-flex; align-items: center; font-weight: 700; }
.transmis { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--ok-doux); color: var(--ok); }
.zone-suppression { margin: 24px 0 0; text-align: center; }
.fenetre { max-height: 90vh; overflow-y: auto; }
.case-dest { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; }
.case-dest input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.espace-haut { margin-top: 12px; }
.boutons-fenetre { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.boutons-fenetre button { min-height: var(--toucher); justify-content: center; }


/* ---- Planning et plan EXE (étape 1g) ---- */
.doc-joint { padding: 10px 0; border-top: 1px solid #EFECE5; }
.doc-joint:first-of-type { border-top: none; padding-top: 0; }
.doc-nom { font-weight: 700; margin: 2px 0; word-break: break-word; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 6px; }
.doc-actions .btn-action { padding: 0 16px; }
.case-joindre { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.case-joindre input { width: 22px; height: 22px; }
.doc-joint select { margin-top: 6px; }
.doc-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.doc-ligne .btn-action { padding: 0 16px; flex: none; }


/* ---- Contacter (étape 1h) ---- */
.btn-contacter { grid-column: 1 / -1; }
.btn-contacter-saisie { min-height: 48px; padding: 0 16px; font-weight: 700; display: inline-flex; align-items: center; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 4px 0 10px; border: 2px solid var(--encre); border-radius: 10px; overflow: hidden; }
.onglet { min-height: 48px; border: none; background: var(--papier); font-weight: 700; font-size: 16px; }
.onglet.actif { background: var(--encre); color: var(--or); }
.contact-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #EFECE5; }
.contact-ligne .case-dest { flex: 1; min-width: 0; }
.contact-absent { opacity: .6; }
.btn-envoi { min-height: 44px; padding: 0 16px; flex: none; font-size: 15px; }

.pastille-test { margin-left: 8px; vertical-align: middle; font-size: 12px; color: var(--encre); background: var(--or-clair); }
.carte-test { background: #FBF6E6; border-color: var(--or); }
.carte-test .entete-repli.entete-test { border: none; background: transparent; padding: 0; min-height: 36px; }


/* ---- Annuaire du dossier ---- */
[hidden] { display: none !important; }
.onglets-dossier { margin: 0 0 14px; }
.liste-contacts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fiche-contact { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: 12px 14px; }
.fiche-nom { font-weight: 700; font-size: 17px; }
.fiche-role { font-size: 14px; color: var(--rouille-fonce); font-weight: 600; margin-top: 2px; }
.fiche-coord { font-size: 14px; color: var(--encre2); margin-top: 4px; word-break: break-word; }
.fiche-boutons { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn-appel { min-height: var(--toucher); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 10px; font-size: 16px; }
.btn-inactif { border: 1px dashed var(--trait); color: var(--discret); font-size: 14px; font-weight: 600; }


/* ---- Zones à remplir et corrections suivies (étape 1j) ---- */
.avertissement { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 6px; margin: 4px 0; color: #D00000; font-weight: 800; text-decoration: underline; text-align: center; }
.avertissement .lien { text-decoration: underline; font-weight: 600; font-size: 13px; min-height: 32px; }
.zones { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 8px; }
.zone { display: flex; flex-direction: column; gap: 4px; }
.zone-label { font-weight: 800; font-size: 14px; text-decoration: underline; }
.zone-ligne { display: flex; flex-direction: column; gap: 4px; margin-left: 14px; }
.zone-sous { font-weight: 700; font-style: italic; font-size: 14px; }
.zone-saisie { display: flex; align-items: center; gap: 8px; }
.zone-saisie .champ, .zone-saisie select { font-weight: 700; border: 2px solid var(--encre); }
.zone-unite { font-weight: 700; color: var(--encre2); min-width: 32px; }
.bandeau-gris { background: #E4E4E4; padding: 6px 8px; border-radius: 4px; text-decoration: underline; font-size: 12.5px; color: var(--encre); margin: 14px 0 8px; }
.corrections { margin-top: 6px; }
.correction { border: 1px solid var(--trait); border-left: 5px solid #9A968C; border-radius: 8px; padding: 8px; margin-bottom: 8px; background: var(--papier); }
.correction.statut-en_cours { border-left-color: #C98A00; }
.correction.statut-fait { border-left-color: var(--ok); background: #F6F9F3; }
.correction-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.choix-statut { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; min-width: 260px; }
.statut { min-height: 48px; border-radius: 10px; border: 2px solid var(--trait); background: var(--papier); font-weight: 700; font-size: 14px; color: var(--encre2); }
.statut-btn-a_faire.actif { background: #5A574F; border-color: #5A574F; color: #fff; }
.statut-btn-en_cours.actif { background: #C98A00; border-color: #C98A00; color: #fff; }
.statut-btn-fait.actif { background: var(--ok); border-color: var(--ok); color: #fff; }
.correction-date { display: flex; align-items: center; gap: 10px; }
.correction-date input { min-height: 44px; border: 1px solid var(--trait); border-radius: 8px; padding: 0 8px; background: var(--papier); }
.ajout-correction { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.correction-lue { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.pastille-statut { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EDEBE6; color: #5A574F; }
.correction-lue.statut-en_cours .pastille-statut { background: #F6E7C2; color: #8A5E00; }
.correction-lue.statut-fait .pastille-statut { background: var(--ok-doux); color: var(--ok); }
.zones-lues { list-style: none; padding-left: 0; }


/* ---- Dictée (étape 1k) ---- */
.zone-texte-cadre { display: flex; flex-direction: column; }
.dictee { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 6px; }
.btn-dicter { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--encre); background: var(--papier); font-weight: 700; font-size: 15px; }
.btn-dicter.en-ecoute { background: #D00000; border-color: #D00000; color: #fff; animation: pulsation 1.4s ease-in-out infinite; }
@keyframes pulsation { 0%, 100% { box-shadow: 0 0 0 0 rgba(208,0,0,.45); } 50% { box-shadow: 0 0 0 8px rgba(208,0,0,0); } }
.dictee-provisoire { align-self: stretch; padding: 8px 10px; border-radius: 8px; background: #FBF6E6; border: 1px dashed var(--or); font-style: italic; color: var(--encre2); }
.dictee-message { align-self: stretch; margin: 0; }

.info-partage { padding: 8px 10px; border-radius: 8px; background: var(--acier-doux); color: var(--encre); }
.photo-saisie img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

.onglets-petits .onglet { min-height: 44px; font-size: 14px; }


/* ---- Interventions (étape 1l) ---- */
.btn-interventions { margin: -10px 0 22px; }
.onglets-dossier { grid-template-columns: repeat(3, 1fr); }
.onglets-dossier .onglet { font-size: 13px; padding: 0 4px; white-space: nowrap; }
.compteurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 4px 0 14px; }
@media (min-width: 560px) { .compteurs { grid-template-columns: repeat(4, 1fr); } }
.compteur { padding: 8px 10px; border-radius: 8px; background: var(--papier); border: 1px solid var(--trait); font-size: 13px; color: var(--encre2); }
.compteur strong { display: block; font-size: 20px; color: var(--encre); }
.compteur-en_retard strong { color: #A33B2B; }
.compteur-semaine strong { color: #C98A00; }
.compteur-realisee strong { color: var(--ok); }
.section-interv { margin-bottom: 20px; }
.titre-interv { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 6px; padding-left: 10px; border-left: 4px solid var(--encre); }
.titre-interv .nb { font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #EDEBE6; }
.titre-interv .lien { margin-left: auto; font-size: 14px; }
.section-en_retard .titre-interv { border-color: #A33B2B; color: #A33B2B; }
.section-semaine .titre-interv { border-color: #C98A00; color: #8A5E00; }
.section-realisee .titre-interv { border-color: var(--ok); color: var(--ok); }
.groupe-semaine { margin: 10px 0 0; }
.titre-semaine { font-size: 13px; font-weight: 700; color: var(--encre2); text-transform: none; margin: 0 0 6px; }
.liste-interv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.interv { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--papier); border: 1px solid var(--trait); border-left: 5px solid var(--trait); color: var(--encre); }
.interv:disabled { opacity: 1; cursor: default; }
.interv-en_retard { border-left-color: #A33B2B; }
.interv-semaine { border-left-color: #C98A00; }
.interv-a_venir { border-left-color: var(--encre); }
.interv-realisee { border-left-color: var(--ok); background: #F8FAF6; }
.interv-chantier { font-weight: 800; font-size: 15px; }
.interv-lot { font-size: 13px; font-weight: 700; color: var(--rouille-fonce); }
.interv-titre { font-size: 15px; }
.interv-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; }
.interv-sem { font-size: 13px; color: var(--encre2); }
.etat { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.etat-ok { background: var(--ok-doux); color: var(--ok); }
.etat-non { background: var(--danger-doux); color: var(--danger); }
.etat-prevu { background: #EDEBE6; color: #5A574F; }


/* ---- Coche Conforme depuis Interventions (étape 1m) ---- */
.interv-ligne { display: flex; align-items: stretch; gap: 6px; }
.interv-ligne .interv { flex: 1; min-width: 0; }
.btn-cocher { flex: none; width: 92px; border-radius: 10px; border: 2px solid var(--ok); background: var(--papier); color: var(--ok); font-weight: 800; font-size: 14px; }
.btn-cocher:active { background: var(--ok); color: #fff; }
.btn-decocher { border-color: var(--trait); color: var(--discret); font-weight: 600; }

/* ===== Liste de vérification, photos des points, corrections, relances, avant / après. ===== */
/* ---- Liste de vérification de la visite (étape 1n) ---- */
.progression { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-size: 14px; color: var(--encre2); }
.progression-barre { flex: 1; height: 10px; border-radius: 5px; background: #E7E4DC; overflow: hidden; }
.progression-barre span { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.point { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--papier); border: 1px solid var(--trait); border-left: 5px solid #A33B2B; }
.point-verifie { border-left-color: var(--ok); background: #F8FAF6; flex-direction: row; align-items: center; }
.point-verifie.point-non { border-left-color: var(--danger); background: #FCF4F2; }
.point-avenir { border-left-color: var(--encre); }
.point-texte { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.etiquette-correction { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #8A5E00; background: #F6E7C2; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.boutons-verif { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verif-oui, .verif-non { min-height: 52px; border-radius: 10px; font-weight: 800; font-size: 15px; background: var(--papier); }
.verif-oui { border: 2px solid var(--ok); color: var(--ok); }
.verif-non { border: 2px solid var(--danger); color: var(--danger); }
.verif-oui:active { background: var(--ok); color: #fff; }
.verif-non:active { background: var(--danger); color: #fff; }
.verif-decale { min-height: 52px; border-radius: 10px; font-weight: 800; font-size: 15px; background: var(--papier); border: 2px solid #B8860B; color: #B8860B; }
.verif-decale:active { background: #B8860B; color: #fff; }
.point-verifie.point-decale { border-left-color: #B8860B; background: #FBF6E6; }
.etat-decale { background: #FBF1D6; color: #8A6508; }
.btn-annuler-verif { flex: none; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre2); font-weight: 600; }
.btn-generer { margin: 6px 0 22px; }
.pastille-averifier { color: #A33B2B; background: var(--danger-doux); }


/* ---- Photos des points à vérifier ---- */
.point-verifie { flex-direction: column; align-items: stretch; }
.point-haut { display: flex; align-items: flex-start; gap: 10px; }
.point-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.point-vignette { width: 84px; height: 63px; aspect-ratio: auto; }
.vignette-annoter { position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--encre); color: var(--or); font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.btn-photo-point { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--encre); background: var(--papier); font-weight: 700; font-size: 14px; }
.btn-photo-galerie { border-color: var(--trait); color: var(--encre2); font-weight: 600; }

.carte-test { margin-bottom: 22px; }

.carte-convoc { background: #FBF6E6; border-color: var(--or); }

.convoc-saisie { margin: 10px 0 4px; padding: 12px; border-radius: 10px; background: #FBF6E6; border: 1px solid var(--or); }
.convoc-saisie .note { margin: 8px 0 0; }


/* ---- Envoi des corrections par entreprise (étape 1s) ---- */
.envoi-corrections h3 { color: var(--encre); }
.envoi-entreprise { padding: 12px 0; border-top: 1px solid #EFECE5; }
.envoi-entreprise .items { margin: 6px 0 8px; }
.envoi-entreprise.envoye .fiche-nom::after { content: " ✓"; color: var(--ok); }
.envoi-ok { align-self: center; }


/* ---- Date limite des corrections ---- */
.correction-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.mini-champ { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--encre2); }
.mini-champ input { min-height: 44px; border: 1px solid var(--trait); border-radius: 8px; padding: 0 8px; background: var(--papier); font-size: 15px; }
.mini-limite { color: #A33B2B; }
.mini-limite input { border-color: #E6B9AF; }
.envoi-entreprise .mini-champ { margin: 0 0 8px; }
.a-part { padding: 8px 10px; border-radius: 8px; background: #FBF6E6; }
.corr-dest { display: block; }
.corr-dest .corr-ligne { display: flex; gap: 10px; align-items: flex-start; }
.corr-dest .mini-limite { margin: 6px 0 0 30px; }
.file-envoi { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.file-envoi li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #E4E0D6; border-radius: 10px; background: #FFFFFF; }
.file-envoi li.fait { background: #F1F6EF; border-color: #CFE0C9; }
.file-envoi li.fait strong::after { content: " ✓"; color: var(--ok); }
.btn-suivant { margin-bottom: 16px; }
.file-envoi .file-texte { min-width: 0; overflow-wrap: anywhere; }

.correction .point-photos, .ajout-correction .point-photos { margin: 8px 0 0; }


/* ---- Reste à faire / Fait (étape 1u) ---- */
.partie-titre { margin: 14px 0 6px; padding: 6px 10px; border-radius: 6px; font-weight: 800; font-size: 14px; letter-spacing: .02em; background: #EDEBE6; color: var(--encre); }
.partie-reste { margin-top: 4px; }
.partie-fait { margin-top: 18px; padding: 0 10px 10px; border-radius: 10px; background: #F6F9F3; border: 1px solid #D5E0CC; }
.partie-fait > .partie-titre { margin: 0 -10px 8px; border-radius: 10px 10px 0 0; background: var(--ok); color: #fff; }
.groupe-fait { border-top: 1px solid #E1E8DA; }


/* ---- Relances (étape 1v) ---- */
.btn-relances { margin: -10px 0 22px; border-radius: 10px; border: 2px solid #A33B2B; background: var(--danger-doux); color: #A33B2B; font-weight: 800; justify-content: center; }
.relances { border-color: #E6B9AF; }
.relances h3 { color: #A33B2B; }
.relances .items .etat { margin-left: 6px; }


/* ---- Zones repliables de « À vérifier » ---- */
.zone-repliable { margin-bottom: 8px; }
.entete-repli { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--trait); border-left: 5px solid #A33B2B; background: var(--papier); text-align: left; font-weight: 800; font-size: 15px; color: var(--encre); }
.entete-repli > span:first-child { flex: 1; min-width: 0; }
.entete-repli small { font-weight: 600; color: var(--rouille-fonce); }
.entete-repli .nb { font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: #EDEBE6; }
.entete-repli .chevron { font-size: 24px; font-weight: 300; width: 22px; text-align: center; }
.entete-repli.ouvert { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.entete-fait { border-left-color: var(--ok); }
.entete-relances { border-left-color: #A33B2B; background: var(--danger-doux); color: #A33B2B; }
.zone-repliable > .liste-interv { padding: 6px 0 0 8px; }
.zone-repliable > .relances { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }


/* ---- Avant / après, ajouts depuis « À vérifier » (étape 1y) ---- */
.phase-photo { flex-basis: 100%; font-size: 12px; font-weight: 800; color: var(--encre2); text-transform: uppercase; letter-spacing: .03em; }
.ajout-lot-visite { margin: 8px 0 4px 8px; }
.boutons-ajout-lot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.boutons-ajout-lot button { min-height: 48px; justify-content: center; font-weight: 700; }
.form-ajout-lot { padding: 10px; border-radius: 10px; background: var(--papier); border: 1px solid var(--trait); display: flex; flex-direction: column; gap: 8px; }
.form-ajout-lot .bandeau-gris { margin: 0; }
.infos-lot { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #F7F3EC; }
.entete-avenir { border-left-color: var(--encre); }

/* ===== Charte noir et or, bandeaux hors ligne, menu. ===== */
/* ---- Charte noir et or ---- */
.barre { border-bottom: 2px solid var(--or); }
input[type=checkbox] { accent-color: #0D0D0D; }
.barre-logo { height: 30px; width: auto; display: block; }
.barre-marque { color: var(--or); opacity: 1; }
.barre-retour { color: var(--or-clair); }
.btn-principal:active { filter: brightness(.92); }
.btn-secondaire { border-color: var(--encre); color: var(--encre); }
.lot-nom, .bloc h3 { color: var(--encre); }
.lot-saisie.ouvert { border-color: var(--or); box-shadow: inset 4px 0 0 var(--or); }
.ligne.active, .ligne-brouillon { border-left-color: var(--or); }
.titre-acier { color: var(--encre) !important; }
.pastille { color: var(--rouille-fonce); background: var(--acier-doux); }
.pastille-vide { color: var(--discret); background: #F0EEE9; }
.marque { color: var(--rouille-fonce); }
.annot-haut, .annot-bas { border-color: var(--or); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Hors ligne / envois (bandeaux et pastilles) */
.bandeau-hors-ligne { margin: 0; padding: 10px 14px; background: #FFF6DD; color: #7A5A0B; font-size: 14px; }
.bandeau-synchro { margin: 0; padding: 10px 14px; background: var(--ok-doux); color: var(--ok); font-size: 14px; }
.pastille-attente { background: #FFF6DD; color: #8A6A0F; margin-left: 6px; }
/* Menu (premier écran) : comptes-rendus ou visites techniques */
.menu-appli { background: var(--fond); }
.menu-entete { position: relative; background: radial-gradient(120% 90% at 100% 0%, #2A2416 0%, var(--nuit) 60%); color: #fff; padding: 22px 20px 64px; border-bottom: 3px solid var(--or); overflow: hidden; }
.menu-entete::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(201,162,39,.25); box-shadow: 0 0 0 28px rgba(201,162,39,.06), 0 0 0 64px rgba(201,162,39,.04); pointer-events: none; }
.menu-entete-interieur { max-width: 608px; margin: 0 auto; }
.menu-marque { min-height: 44px; display: flex; align-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.menu-logo { max-height: 48px; max-width: 200px; object-fit: contain; }
.menu-societe { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--or-clair); }
.menu-jour { margin: 0; color: var(--or); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; z-index: 1; }
.menu-salut { margin: 6px 0 4px; font-size: 32px; line-height: 1.1; font-weight: 800; position: relative; z-index: 1; }
.menu-question { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; position: relative; z-index: 1; }
.menu-infos { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.menu-info { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: 13.5px; }
.menu-info strong { color: #fff; }
.menu-anniversaire { position: relative; z-index: 1; margin: 10px 0 0; display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--or); color: var(--nuit); font-weight: 800; font-size: 14px; }
.menu-horsligne { position: relative; z-index: 1; margin: 14px 0 0; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(201,162,39,.16); color: var(--or-clair); font-size: 13px; }
.menu-corps { flex: 1; width: 100%; max-width: 640px; margin: -42px auto 0; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.carte-module { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 20px 16px; min-height: 112px; border: 1px solid var(--trait); border-radius: 18px; background: var(--papier); color: var(--encre); box-shadow: 0 10px 28px rgba(13,13,13,.10), 0 2px 6px rgba(13,13,13,.06); transition: transform .12s, box-shadow .12s; position: relative; }
.carte-module:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(13,13,13,.10); }
.carte-module-icone { flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.carte-module-cr .carte-module-icone { background: var(--nuit); color: var(--or); }
.carte-module-vt .carte-module-icone { background: var(--acier-doux); color: var(--rouille-fonce); }
.carte-module-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.carte-module-titre { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.carte-module-sous { font-size: 14px; color: var(--discret); }
.carte-module-info { margin-top: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fond); color: var(--encre2); }
.carte-module-info-fort { background: #FFF6DD; color: var(--rouille-fonce); }
.carte-module-compteur { position: absolute; top: 12px; right: 14px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--or); color: var(--nuit); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.carte-module-fleche { font-size: 30px; color: var(--trait); font-weight: 300; line-height: 1; }
.menu-pied { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; color: var(--discret); text-align: center; }
@media (min-width: 700px) { .menu-entete { padding: 32px 16px 80px; } .menu-salut { font-size: 40px; } }

/* ===== Visites techniques et lecteur de PDF. ===== */
/* Visites techniques */
.fiche-vt .bloc { margin-bottom: 12px; }
.vt-plan-image { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
/* ---- VT : anomalies à repasser en conforme ---- */
.vt-anomalies { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.vt-anomalie { background: var(--papier); border: 1px solid var(--danger-doux); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.btn-repasser { min-height: 48px; border: none; border-radius: 10px; background: var(--ok); color: #FFFFFF; font-weight: 700; font-size: 15px; }
.btn-repasser-tout { min-height: 48px; border: 2px solid var(--ok); border-radius: 10px; background: var(--papier); color: var(--ok); font-weight: 700; font-size: 15px; }
.vt-aller { align-self: flex-start; min-height: 40px; font-size: 14.5px; font-weight: 600; }
.btn-tous-chantiers.actif { border-color: var(--or); background: #FFF6DD; font-weight: 700; }
/* ---- Visionneuse PDF dans l'appli ---- */
.vpdf { position: fixed; inset: 0; z-index: 2000; background: #888; display: flex; flex-direction: column; }
.vpdf-barre { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: var(--nuit); color: #FFFFFF; }
.vpdf-fermer { min-height: var(--toucher); border: 1.5px solid var(--or); background: transparent; color: var(--or); border-radius: 10px; padding: 0 14px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.vpdf-partager { min-height: var(--toucher); border: 1px solid #FFFFFF; background: transparent; color: #FFFFFF; border-radius: 10px; padding: 0 12px; font-weight: 600; font-size: 15px; }
.vpdf-partager:disabled { opacity: .5; }
.vpdf-nom { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vpdf-defile { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px; }
.vpdf-pages { min-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.vpdf-page { width: 100%; height: auto; display: block; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.vpdf-info { background: var(--papier); border-radius: 10px; padding: 14px; margin: 10px 0; text-align: center; }
.vpdf-pied { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); background: var(--nuit); color: #FFFFFF; font-size: 13px; }
.vpdf-pied span { flex: 1; }
.vpdf-pied button { min-width: var(--toucher); min-height: var(--toucher); border: 1px solid #FFFFFF; background: transparent; color: #FFFFFF; border-radius: 10px; font-size: 20px; }
.vpdf-pied button:disabled { opacity: .4; }
.vt-aujourdhui { display: flex; flex-direction: column; gap: 6px; }
.vt-deverrouillee { background: #FFF6DD; color: #7A5A0B; border-radius: 10px; padding: 12px; margin-bottom: 12px; font-size: 14px; }
.vt-groupe-fige { border: 1px solid var(--trait); border-radius: 14px; background: var(--papier); margin-bottom: 14px; overflow: hidden; }
.vt-groupe-entete { display: flex; align-items: center; background: #FAF7F3; }
.vt-groupe-bouton { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px; border: none; background: transparent; text-align: left; min-height: 56px; color: var(--encre); font-family: inherit; }
.vt-cv-ligne { display: flex; align-items: center; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); }
.vt-cv-ligne-bouton { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; border: none; background: transparent; text-align: left; min-height: 52px; font-size: 14.5px; color: var(--encre); font-family: inherit; }
.vt-cv-photos { margin-top: 8px; }
.vt-cv-photos-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vt-cv-photo { border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; background: var(--papier); }
.vt-cv-photo-image { display: block; width: 100%; height: 100px; object-fit: cover; }
.vt-cv-plan { border-top: 1px solid var(--trait); padding-top: 10px; margin-top: 10px; }
.vt-cv-plan-joint { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--ok-doux); color: var(--ok); font-weight: 600; font-size: 14px; }
/* ---- VT : suite d'une non-conformité (plan à modifier / contrôle à refaire) ---- */
.vt-suites { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.vt-suite { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.vt-suite-plan { border: 2px solid var(--nuit); }
.vt-suite-titre { font-size: 15.5px; font-weight: 800; }
/* ---- VT : conclusion, date figée, contre-visites ---- */
.vt-synthese { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.vt-pastille { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.vt-pastille-ok { background: var(--ok-doux); color: var(--ok); }
.vt-pastille-non { background: var(--danger-doux); color: var(--danger); }
.vt-pastille-av { background: #FFF6DD; color: #8A6A0F; }
.vt-choix-conclusion { display: flex; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.vt-choix-conclusion > button { flex: 1 1 0; min-width: 0; min-height: var(--toucher); border: none; font-size: 14.5px; padding: 0 6px; }
.vt-choix-conclusion > button + button { border-left: 1px solid var(--trait); }
.vt-resume-fige { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.vt-resume-fige .vt-pastille { align-self: flex-start; }
.vt-resume-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-date-cadenas { border: 1px solid var(--trait); border-radius: 8px; padding: 8px 12px; font-size: 15px; background: var(--papier); }
.vt-cv { border: 1px solid var(--trait); border-radius: 12px; padding: 12px; background: var(--papier); display: flex; flex-direction: column; gap: 8px; }
.vt-cv-encours { border: 2px solid var(--danger); }
.vt-cv-titre { font-size: 15px; font-weight: 800; }
.vt-cv-encours .vt-cv-titre { color: var(--danger); }
.vt-cv-point { background: var(--fond); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.vt-cv-choix { display: flex; gap: 8px; }
.btn-cv { flex: 1 1 0; min-width: 0; min-height: 48px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); color: var(--encre); font-weight: 600; font-size: 14px; padding: 0 6px; }
.btn-cv:disabled { opacity: .5; }
.btn-cv-levee { border: 2px solid var(--ok); color: var(--ok); font-weight: 800; background: var(--ok-doux); }
.btn-cv-non { border: 2px solid var(--danger); color: var(--danger); font-weight: 800; background: var(--danger-doux); }
/* ---- Premier compte-rendu à faire ---- */
.carte-premier-cr { background: var(--papier); border: 2px solid var(--or); border-radius: 14px; padding: 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.premier-cr-entete { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; }
.premier-cr-entete .nb { font-size: 13px; background: var(--acier-doux); color: var(--rouille-fonce); border-radius: 999px; padding: 3px 10px; }
.premier-cr-ligne { border-top: 1px solid var(--trait); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.premier-cr-retard { color: var(--danger); font-weight: 600; }
.btn-premier-cr { min-height: var(--toucher); border: none; border-radius: 10px; background: var(--nuit); color: #FFFFFF; font-weight: 700; font-size: 16px; }
/* ---- Points à vérifier : étapes / corrections séparées ---- */
.compteurs-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.compteur-point { background: var(--papier); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; }
.compteur-point strong { font-size: 26px; font-weight: 800; line-height: 1.1; }
.compteur-etapes { border: 2px solid var(--or); }
.compteur-corr { border: 2px solid var(--danger); }
.compteur-corr strong { color: var(--danger); }
.bloc-points { margin-top: 14px; }
.entete-bloc-points { margin: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px 12px 0 0; font-size: 16px; font-weight: 800; }
.entete-bloc-points .nb { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.bloc-etapes .entete-bloc-points { background: var(--nuit); color: #FFFFFF; }
.bloc-etapes .entete-bloc-points .nb { background: var(--or); color: #0D0D0D; }
.bloc-corr .entete-bloc-points { background: var(--danger); color: #FFFFFF; }
.bloc-corr .entete-bloc-points .nb { background: #FFFFFF; color: var(--danger); }
.corps-bloc-points { background: var(--papier); border: 1px solid var(--trait); border-top: none; border-radius: 0 0 12px 12px; padding: 8px 10px 10px; }
.corps-bloc-points > .note { margin: 4px 2px 8px; }
.sous-titre-verifie { font-size: 13px; font-weight: 700; color: var(--encre2); margin: 8px 2px 4px; }
.pastille-correction { background: var(--danger-doux); color: var(--danger); }
.entete-repli.entete-corr > span:first-child { color: var(--danger); }
.bloc-etapes .entete-repli { border-left-color: var(--or); }
.bloc-etapes .point { border-left-color: var(--or); }

/* ===== Assistant IA facultatif. ===== */
/* ---- Assistant IA (mêmes couleurs que l'appli) ---- */
.aide-ia { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.aide-ia-boutons { display: flex; gap: 8px; }
.aide-ia-boutons > button { flex: 1 1 0; min-width: 0; }
.btn-ia, .btn-ia-sec { min-height: var(--toucher); border-radius: 10px; font-size: 16px; padding: 0 12px; }
.btn-ia { border: none; background: var(--or); color: #0D0D0D; font-weight: 700; }
.btn-ia-sec { border: 1px solid var(--trait); background: var(--papier); color: var(--encre); font-weight: 600; }
.btn-ia:disabled, .btn-ia-sec:disabled { opacity: .6; }
.btn-ia[aria-busy="true"] { background: var(--or-clair); opacity: .9; }
.btn-ia-plein { width: 100%; }
.btn-ia-ouvrir { align-self: flex-start; min-height: var(--toucher); border: 1px solid var(--trait); border-radius: 999px; background: var(--papier); color: var(--encre); font-weight: 600; font-size: 15px; padding: 0 16px; }
.aide-ia-panneau { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); padding: 10px; }
.aide-ia-proposition .btn-ia { min-height: 56px; font-size: 17px; }
.aide-ia-astuce { font-size: 12.5px; color: var(--encre2); margin: 0; }
.aide-ia-proposition { border: 2px solid var(--or); border-radius: 12px; background: var(--papier); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aide-ia-titre { font-size: 13px; font-weight: 700; color: var(--rouille-fonce); }
.aide-ia-texte { font-size: 16px; line-height: 1.45; white-space: pre-wrap; background: var(--acier-doux); border-radius: 8px; padding: 12px; }
.aide-ia-erreur { background: var(--danger-doux); color: var(--danger); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; margin: 0; }
.vt-aps-vignette { display: block; width: 100%; height: 110px; object-fit: contain; background: #f3f3f3; border-radius: 4px; }
.vt-photo-image { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; border: 1px solid var(--trait); }
.vt-photo .vignette-annoter { position: absolute; right: 8px; bottom: 8px; }
.fiche-vt details summary { padding: 8px 0; }

/* ===== Thème « noir et or » v2 appliqué à tous les écrans. ===== */
/* ================= Thème « noir et or » v2 : tous les écrans ================= */
:root { --ombre: 0 8px 24px rgba(13,13,13,.08), 0 1px 3px rgba(13,13,13,.06); --ombre-forte: 0 12px 30px rgba(13,13,13,.12), 0 2px 6px rgba(13,13,13,.06); --rayon: 16px; }
body { background: var(--fond); }
/* Barre du haut */
.barre { background: var(--nuit); border-bottom: none; box-shadow: 0 1px 0 rgba(201,162,39,.35); gap: 8px; }
.barre-titre { font-size: 16px; color: rgba(255,255,255,.85); font-weight: 600; }
.barre-retour { color: var(--or); font-weight: 700; }
.barre-action { border-radius: 999px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); font-size: 14px; padding: 0 14px; min-height: 40px; }
.barre-tache { border-color: rgba(201,162,39,.6); background: rgba(201,162,39,.12); color: var(--or-clair); }
/* En-tête des écrans */
.entete-ecran { position: relative; overflow: hidden; margin: -12px -12px 18px; padding: 18px 20px 24px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #2A2416 0%, var(--nuit) 62%); border-bottom: 3px solid var(--or); }
.entete-ecran::after { content: ""; position: absolute; right: -70px; top: -80px; width: 210px; height: 210px; border-radius: 50%; border: 1px solid rgba(201,162,39,.22); box-shadow: 0 0 0 26px rgba(201,162,39,.05), 0 0 0 60px rgba(201,162,39,.035); pointer-events: none; }
.entete-ecran-int { position: relative; z-index: 1; }
.entete-ecran.avec-chevauchement { padding-bottom: 54px; margin-bottom: 0; }
.chevauche { position: relative; z-index: 2; margin-top: -34px; }
.entete-sur { margin: 0; color: var(--or); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.entete-titre { margin: 6px 0 4px; font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.entete-sous { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }
.entete-petit { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: 13px; }
.entete-progression { margin-top: 14px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.entete-progression span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--or), var(--or-clair)); transition: width .3s; }
@media (min-width: 840px) { .entete-ecran { border-radius: 0 0 24px 24px; } }
/* Onglets du dossier, dans l'en-tête */
.entete-dossier { padding-bottom: 16px; }
.entete-dossier .entete-titre { font-size: 24px; }
.entete-dossier .onglets { margin: 16px 0 0; border: none; border-radius: 14px; background: rgba(255,255,255,.08); padding: 4px; gap: 4px; }
.entete-dossier .onglet { background: transparent; color: rgba(255,255,255,.75); border-radius: 10px; min-height: 44px; font-size: 14px; }
.entete-dossier .onglet.actif { background: var(--or); color: var(--nuit); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.onglets { border: none; background: #E9E5DA; padding: 4px; gap: 4px; border-radius: 14px; }
.onglet { border-radius: 10px; background: transparent; }
.onglet.actif { background: var(--nuit); color: var(--or); }
.titre-onglet { font-size: 20px; }
/* Titres */
.titre-zone { font-size: 22px; letter-spacing: -.01em; }
.titre-section { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--discret); margin: 0 0 10px 4px; }
.detail-tete h2 { font-size: 24px; letter-spacing: -.01em; }
/* Boutons */
.btn-principal { border-radius: 14px; background: linear-gradient(180deg, #D4AE34, var(--or)); color: var(--nuit); box-shadow: 0 6px 16px rgba(201,162,39,.35); font-weight: 800; }
.btn-secondaire { border-radius: 14px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); box-shadow: var(--ombre); }
.btn-secondaire:active, .ligne:active, .carte-module:active { transform: scale(.985); }
.btn-icone { display: inline-flex; margin-right: 10px; }
.btn-large { display: inline-flex; align-items: center; justify-content: center; }
.actions-accueil { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.actions-accueil .btn-accueil, .actions-accueil .btn-interventions, .actions-accueil .btn-relances { margin: 0; }
.btn-accueil { min-height: 68px; font-size: 18px; }
.btn-interventions { min-height: 58px; }
.btn-relances { min-height: 56px; border-radius: 14px; border: 1px solid #E6B9AF; background: #FBEDEA; box-shadow: var(--ombre); }
.lien { color: var(--rouille-fonce); }
/* Cartes et listes */
.liste { gap: 10px; }
.ligne { position: relative; border: 1px solid var(--trait); border-left: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 40px 14px 16px; box-shadow: var(--ombre); transition: transform .12s; }
.ligne::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: #CFC9BB; }
.ligne-brouillon, .ligne.active { border-color: #E8D7A0; background: #FFFBEF; box-shadow: inset 4px 0 0 var(--or), var(--ombre); }
.ligne-titre { font-size: 16.5px; }
.pastille { font-weight: 700; font-size: 12.5px; }
.bloc, .lot-saisie, .fiche-contact, .carte-reprise, .carte-brouillon, .carte-test, .form-ajout-lot, .voile-carte { border-radius: var(--rayon); box-shadow: var(--ombre); border-color: var(--trait); }
.bloc { padding: 16px; }
.carte-reprise { border: 1px solid #E8D7A0; background: #FFFBEF; }
.carte-test { border: 1px dashed var(--or); }
.lot-saisie.ouvert { border-color: #E8D7A0; box-shadow: inset 4px 0 0 var(--or), var(--ombre-forte); }
.entete-repli { border-radius: 14px; box-shadow: var(--ombre); border: 1px solid var(--trait); border-left: 5px solid #A33B2B; }
.entete-fait { border-left-color: var(--ok); }
.entete-avenir { border-left-color: var(--encre); }
.interv, .point, .correction { border-radius: 14px; box-shadow: 0 2px 8px rgba(13,13,13,.05); }
.compteur { border-radius: 14px; box-shadow: var(--ombre); border: none; }
.fiche-contact { padding: 14px 16px; }
.btn-appel { border-radius: 12px; }
.barre-enregistrer { border-top: none; box-shadow: 0 -8px 24px rgba(13,13,13,.10); border-radius: 18px 18px 0 0; }
/* Champs */
.recherche, select, .champ, .zone-texte { border-radius: 12px; border-color: var(--trait); background: var(--papier); box-shadow: 0 1px 2px rgba(13,13,13,.04); }
.chevauche .recherche, .chevauche select { box-shadow: var(--ombre); border-color: transparent; }
.recherche:focus, select:focus, .champ:focus, .zone-texte:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,162,39,.22); }
/* Bandeaux */
.bandeau-hors-ligne, .bandeau-synchro, .bandeau-erreur { text-align: center; font-weight: 600; }
.bandeau-hors-ligne { background: #2A2416; color: var(--or-clair); }
/* Pied */
.pied { align-items: center; text-align: center; border-top: none; color: #A39E92; font-size: 12px; margin-top: 32px; }
.pied .lien { color: var(--encre2); }
/* Visites techniques */
.vt-section { box-shadow: var(--ombre); border-color: var(--trait) !important; }
.fiche-vt > .bloc { margin-top: 0; }
.vt-controle { border-radius: 14px !important; }
.vt-photo { border-radius: 16px !important; box-shadow: var(--ombre); }
/* Connexion */

/* ===== Réception et levée des réserves. ===== */
/* ---- Réception et levée des réserves ---- */
.carte-module-reception .carte-module-icone { background: var(--nuit); color: var(--or); }
.carte-module-levee .carte-module-icone { background: var(--ok-doux); color: var(--ok); }
.etat-envoi-ops { font-size: 13.5px; color: var(--discret); margin: 0 0 10px; }
.etat-envoi-ops.erreur { color: var(--danger); }
.alerte-perdus { padding: 10px 12px; border-radius: 12px; background: #FFF6DD; color: #7A5A0B; }
.lot-reception { padding: 14px; }
.lot-reception.lot-pret { border-color: #CFE0C9; box-shadow: inset 4px 0 0 var(--ok), var(--ombre); }
.lot-reception-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lot-reception-tete .pastille { margin-top: 0; flex: none; }
.choix-presence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: #EFEBE1; margin-bottom: 8px; }
.presence { min-height: 48px; border: none; border-radius: 10px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--encre2); padding: 4px 6px; line-height: 1.2; }
.presence.actif { background: var(--papier); color: var(--encre); box-shadow: 0 2px 6px rgba(13,13,13,.12); }
.presence.presence-present { background: var(--ok); color: #fff; }
.presence.presence-absent_convoque { background: #C98A00; color: #fff; }
.presence.presence-absent { background: var(--danger); color: #fff; }
.liste-reserves { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reserve { padding: 12px; border-radius: 14px; background: #FCF6F4; border: 1px solid #EED3CC; display: flex; flex-direction: column; gap: 8px; }
.reserve-levee { background: #F4F8F1; border-color: #CFE0C9; }
.reserve-retard { border-color: #E2A396; box-shadow: inset 4px 0 0 var(--danger); }
.reserve-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.reserve-texte { font-weight: 600; font-size: 15px; white-space: pre-wrap; }
.reserve-levee .reserve-texte { color: var(--encre2); }
.reserve-haut .etat { flex: none; }
.reserve-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.boutons-photo-reserve { display: flex; flex-wrap: wrap; gap: 8px; }
.boutons-photo-reserve label { display: inline-flex; align-items: center; cursor: pointer; }
.boutons-photo-reserve .desactive { opacity: .6; }
.reserve-photos { margin: 0; }
.btn-corrigee { width: 100%; }
.form-reserve { margin-top: 10px; padding: 12px; border-radius: 14px; background: #FFFBEF; border: 1px solid #E8D7A0; display: flex; flex-direction: column; gap: 8px; }
.btn-ajout-reserve { margin-top: 6px; }
.bloc-envoi h3 { margin-bottom: 6px; }
.confirmation-envoi { padding: 12px; border-radius: 14px; background: #FFFBEF; border: 1px solid #E8D7A0; }
.confirmation-envoi p { margin: 0 0 6px; }
.filet-erreur h3 { margin-top: 0; }
.envoi-fait { padding: 12px; border-radius: 14px; background: var(--ok-doux); border: 1px solid #CFE0C9; }
.envoi-fait p { margin: 0 0 6px; }
.envoi-fait strong { color: var(--ok); }
.choix-presence-2 { grid-template-columns: 1fr 1fr; }
.convocation { margin: 0 0 8px; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.convocation.convoquee { background: var(--acier-doux); color: var(--rouille-fonce); }
.convocation.non-convoquee { background: #EFEBE1; color: var(--discret); }
.bascule-levee { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--trait); background: var(--papier); font-weight: 800; font-size: 16px; color: var(--encre); }
.bascule-levee.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.bascule { position: relative; width: 52px; height: 32px; border-radius: 16px; background: #D9D4C7; flex: none; transition: background .15s; }
.bascule span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.bascule-levee.on .bascule { background: rgba(255,255,255,.35); }
.bascule-levee.on .bascule span { left: 23px; }
.annonce-envoi { position: sticky; top: 56px; z-index: 4; }

/* ===== Tournée chantier. ===== */
/* ---- Tournée ---- */
.carte-module-tournee .carte-module-icone { background: #E7EEF8; color: #1F4E8C; }
.carte-tournee { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); margin-bottom: 12px; background: #e9edf1; }
.carte-indispo { padding: 12px; border-radius: 12px; background: #EFEBE1; }
.pin-tournee span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.onglets-tournee { margin-top: 14px; background: rgba(255,255,255,.08); border: none; }
.onglets-tournee .onglet { color: rgba(255,255,255,.75); background: transparent; }
.onglets-tournee .onglet.actif { background: var(--or); color: var(--nuit); }
.onglets-mode { margin: 0 0 8px; grid-template-columns: repeat(3, 1fr); }
.onglets-mode .onglet { font-size: 13.5px; }
.lien-clair { color: var(--or-clair); min-height: 0; font-size: 13px; }
.actions-tournee { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.actions-tournee a { text-decoration: none; }
.liste-arrets { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.arret { background: var(--papier); border: 1px solid var(--trait); border-radius: 16px; padding: 12px; box-shadow: var(--ombre); }
.arret-fait { background: #F4F8F1; border-color: #CFE0C9; }
.arret-reporte { background: #FBF6E6; }
.arret-haut { display: flex; gap: 12px; align-items: flex-start; }
.arret-num { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.arret-texte { flex: 1; min-width: 0; }
.arret-texte .pastille { margin-left: 6px; }
.arret-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.arret-actions .verif-oui, .arret-actions .btn-secondaire, .arret-actions .btn-annuler-verif { min-height: 46px; padding: 0 16px; text-decoration: none; display: inline-flex; align-items: center; }
.puce-couleur { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.liste-prep { margin-top: 12px; }
.ligne-prep { background: var(--papier); border: 1px solid var(--trait); border-radius: 16px; padding: 12px; box-shadow: var(--ombre); }
.ligne-prep.cochee { border-color: #E8D7A0; box-shadow: inset 4px 0 0 var(--or), var(--ombre); }
.ligne-prep-case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ligne-prep-case input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.ligne-prep-case > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.resultat-tournee h4 { margin: 12px 0 6px; }
.liste-courte { margin: 0 0 6px; padding-left: 20px; }
.liste-courte li { margin-bottom: 4px; }
.journee { border-top: 1px solid #EFECE5; padding-top: 8px; margin-top: 8px; }
.journee:first-of-type { border-top: none; }

/* ===== Écran de connexion. ===== */
/* ---- Écran de connexion (étape 6z10) : même présentation que l'appli web ---- */
.connexion { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 0; background: linear-gradient(160deg, #1D1E20 0%, #2A2B2E 55%, #3A352A 100%); }
.connexion-cadre { width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #F7F6F2; }
.connexion-vitrine { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 330px; padding: calc(26px + env(safe-area-inset-top)) 22px 40px; color: #fff; background: #1D1E20; }
.connexion-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.connexion-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.92) 0%, rgba(20,20,22,.7) 32%, rgba(20,20,22,.25) 55%, rgba(20,20,22,.6) 75%, rgba(20,20,22,.95) 100%); }
.connexion-vitrine > :not(.connexion-photo):not(.connexion-voile) { position: relative; }
.connexion-logo { align-self: flex-start; max-height: 58px; max-width: 200px; object-fit: contain; }
.connexion-nom { font-size: 19px; font-weight: 800; }
.connexion-vitrine h1 { margin: 14px 0 4px; font-size: 26px; font-weight: 800; color: #fff; }
.connexion-slogan { margin: 0; font-size: 14.5px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.connexion-fonctions { margin: auto 0 0; padding: 18px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 14px; letter-spacing: .05em; line-height: 1.75; color: #F1F1EE; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.connexion-fonctions li::before { content: "•"; margin-right: 6px; color: var(--or); }
.connexion-vitrine::after { content: ""; position: relative; width: 56px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--or); }
.connexion-zone { flex: 1; position: relative; margin-top: -22px; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #F7F6F2; }
.connexion-carte { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 13px; padding: 24px 20px; border-radius: 22px; background: #fff; color: #1F1F1F; box-shadow: 0 8px 30px rgba(30,30,30,.12); }
.connexion-carte h2 { margin: 0; text-align: center; font-size: 23px; font-weight: 800; }
.connexion-aide { margin: 0; text-align: center; font-size: 14px; color: #4A4A4A; }
.connexion-champ { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border: 1px solid #D8D5CA; border-radius: 14px; background: #fff; color: #3A3A3A; }
.connexion-champ:focus-within { border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,162,39,.22); }
.connexion-champ svg { flex: 0 0 22px; }
.connexion-champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #1F1F1F; }
.connexion-oubli { align-self: flex-end; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #4A4A4A; text-decoration: underline; cursor: pointer; }
.connexion-bouton { height: 54px; border: 0; border-radius: 14px; background: var(--or); color: var(--nuit); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.connexion-bouton:disabled { opacity: .7; }
.connexion-pied { margin: 2px 0 0; text-align: center; font-size: 13px; line-height: 1.45; color: #4A4A4A; }
/* Tablette / ordinateur : photo à gauche, carte à droite (comme l'appli web) */
@media (min-width: 820px) {
  .connexion { padding: 32px 16px; }
  .connexion-cadre { max-width: 1040px; min-height: 0; flex-direction: row; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
  .connexion-vitrine { flex: 1 1 50%; min-height: 620px; padding: 30px 34px; }
  .connexion-photo { object-position: 35% 50%; }
  .connexion-vitrine h1 { font-size: 30px; }
  .connexion-fonctions { display: block; font-size: 16px; line-height: 1.9; }
  .connexion-fonctions li::before { content: none; }
  .connexion-zone { flex: 1 1 50%; margin: 0; display: flex; align-items: center; justify-content: center; padding: 40px; border-radius: 0; }
}
.connexion-succes { margin: 0; font-size: 13.5px; color: #1F6B3A; }
.connexion-lien-fort { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #1F1F1F; text-decoration: underline; cursor: pointer; }

/* ===== Habillage avec photos (accueil, en-têtes des écrans). ===== */
/* ---- Habillage avec photos (étape 6z) : uniquement l'apparence, aucune fonction changée ---- */
/* Accueil : bandeau noir avec photo à droite */
.menu-entete { padding-bottom: 22px; }
.menu-entete::after { display: none; }
.menu-entete-photo { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%); }
.menu-salut, .menu-question { text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.menu-info { background: #2A2416; border-color: rgba(201,162,39,.25); color: var(--or-clair); }
.menu-info strong { color: var(--or-clair); }
.menu-info.menu-jour { margin: 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--or-clair); }
.menu-corps { margin-top: 14px; gap: 10px; }
/* Accueil : menus en cartes avec photo */
.carte-module { min-height: 112px; padding: 10px 14px 10px 10px; gap: 14px; border-radius: 18px; box-shadow: var(--ombre); }
.carte-module-photo { flex-shrink: 0; width: 132px; height: auto; border-radius: 13px; }
.carte-module-titre { font-size: 19px; }
.carte-module-sous, .carte-module-compteur { display: none; }
.carte-module-info { margin-top: 0; padding: 0; background: none; font-size: 14.5px; font-weight: 500; color: var(--discret); }
.carte-module-info-fort { background: none; color: var(--rouille-fonce); }
.carte-module-fleche { font-size: 26px; color: var(--discret); }
/* Écrans des modules : titre clair puis grande photo */
.entete-ecran.avec-photo { background: var(--fond); color: var(--encre); border-bottom: 0; padding: 12px 0 0; text-align: center; }
.entete-ecran.avec-photo::after { display: none; }
.avec-photo .entete-ecran-int { padding: 0 20px 12px; }
.avec-photo .entete-sur { color: var(--rouille-fonce); }
.avec-photo .entete-sous { color: var(--discret); }
.entete-ecran.avec-photo.avec-chevauchement { padding-bottom: 0; margin-bottom: 12px; }
.avec-photo + .chevauche { margin-top: 0; }
.entete-photo { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.entete-ecran-suite { padding: 12px 12px 4px; text-align: left; }
.entete-ecran-suite .entete-petit { color: var(--discret); text-align: center; }
.entete-ecran-suite .onglets-tournee { margin-top: 0; background: #E9E5DA; }
.entete-ecran-suite .onglet { color: var(--encre); }
.entete-ecran-suite .onglet.actif { background: var(--or); color: var(--nuit); }
.entete-ecran-suite .lien-clair { color: var(--rouille-fonce); }
.entete-ecran-suite .onglets { margin-top: 0; background: #E9E5DA; }
.entete-ecran-suite .entete-progression { margin-top: 0; background: #E9E5DA; }
/* Photos affichées en entier (jamais coupées), sauf le fond du bandeau de l'accueil */

/* ===== Fenêtres de confirmation et bandeaux de message (comme l'appli web) ===== */
/* Toujours au-dessus de tout, y compris l'annotation et le lecteur de PDF (z-index plus élevé). */
.bandeaux-appli { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 200000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(560px, calc(100vw - 24px)); }
.bandeau-appli { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; border-left: 5px solid var(--or); border-radius: 14px; background: var(--nuit); color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.28); font-size: 14px; font-weight: 600; line-height: 1.45; }
.bandeau-appli-erreur { border-left-color: var(--danger); }
.bandeau-appli-ok { border-left-color: var(--ok); }
.bandeau-appli-texte { flex: 1 1 auto; white-space: pre-line; word-break: break-word; }
.bandeau-appli-fermer { padding: 0; border: 0; background: transparent; color: #fff; font-size: 20px; line-height: 1; opacity: .8; cursor: pointer; }
.fenetre-appli-voile { position: fixed; inset: 0; z-index: 200001; display: flex; align-items: flex-start; justify-content: center; padding: calc(70px + env(safe-area-inset-top)) 12px 12px; overflow-y: auto; background: rgba(29,30,32,.55); }
.fenetre-appli { width: min(560px, 100%); overflow: hidden; border-radius: 22px; background: var(--papier); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.fenetre-appli-tete { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 4px solid var(--or); background: var(--nuit); color: #fff; }
.fenetre-appli-icone { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--or); font-size: 18px; }
.fenetre-appli-titre { font-size: 18px; font-weight: 800; }
.fenetre-appli-corps { padding: 18px 22px 20px; color: var(--encre); }
.fenetre-appli-question { margin: 0 0 16px; font-size: 15px; font-weight: 700; white-space: pre-line; }
.fenetre-appli-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.fenetre-appli-bouton { min-height: 46px; padding: 11px 18px; border: 1px solid var(--trait); border-radius: 14px; background: var(--papier); color: var(--encre); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.fenetre-appli-bouton-oui { border-color: var(--or); background: var(--or); color: var(--nuit); }
