:root { --rouge: #b3141b; --fond: #fff; --texte: #111; --gris: #e9e9e9; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); overscroll-behavior: none; }
#carte { position: fixed; inset: 0; }
.bouton { font-size: 22px; border: 0; background: var(--fond); color: var(--texte); box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
.bouton.rond { width: 56px; height: 56px; border-radius: 50%; font-size: 26px; }
.bouton.actif { background: var(--rouge); color: #fff; }
.bouton.large { min-height: 56px; padding: 0 22px; border-radius: 28px; font-weight: 700; }
#barre { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 10px; z-index: 5; }
#recherche { flex: 1; height: 56px; font-size: 20px; border: 0; border-radius: 28px; padding: 0 22px; box-shadow: 0 2px 8px rgba(0,0,0,.35); min-width: 0; }
#resultats { position: fixed; top: calc(76px + env(safe-area-inset-top)); left: 10px; right: 10px; max-height: 55vh; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.4); z-index: 6; }
#resultats .res { display: block; width: 100%; text-align: left; padding: 14px 18px; min-height: 56px; border: 0; border-bottom: 1px solid var(--gris); background: #fff; font-size: 18px; }
#resultats .res small { display: block; color: #666; font-size: 14px; }
#boutons { position: fixed; left: 10px; right: 10px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: row; justify-content: center; gap: 10px; z-index: 5; pointer-events: none; }
#boutons .bouton.rond { pointer-events: auto; flex: 0 1 56px; width: auto; min-width: 0; height: auto; aspect-ratio: 1 / 1; }
#fiche { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.4); z-index: 7; max-height: 60vh; overflow: auto; }
#fiche h2 { margin: 0 40px 4px 0; font-size: 22px; }
#fiche .sous { color: #555; margin-bottom: 10px; font-size: 16px; }
#fiche .fermer { position: absolute; top: 8px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gris); font-size: 22px; }
#fiche .plan { display: block; width: 100%; margin: 8px 0; min-height: 60px; border: 0; border-radius: 14px; background: var(--rouge); color: #fff; font-size: 20px; font-weight: 700; }
#fiche .plan.second { background: #444; }
#fiche h3 { margin: 14px 0 6px; font-size: 16px; }
#fiche .pei { padding: 8px 0; border-top: 1px solid var(--gris); font-size: 17px; }
#visionneuse, #liste-plans { position: fixed; inset: 0; background: #222; z-index: 20; display: flex; flex-direction: column; }
#visionneuse[hidden], #liste-plans[hidden], #fiche[hidden], #resultats[hidden] { display: none; }
#vis-barre, #lp-barre { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: #111; color: #fff; }
#vis-titre { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vis-zone { flex: 1; overflow: hidden; touch-action: none; background: #555; position: relative; }
#vis-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; user-select: none; -webkit-user-drag: none; max-width: none; }
#vis-pages { display: flex; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: #111; }
#vis-pages button { min-height: 44px; min-width: 56px; border-radius: 10px; border: 0; font-size: 18px; }
#lp-filtre { flex: 1; height: 52px; border-radius: 26px; border: 0; padding: 0 20px; font-size: 18px; min-width: 0; }
#lp-corps { flex: 1; overflow: auto; background: #fff; }
#lp-corps button { display: block; width: 100%; text-align: left; padding: 14px 18px; min-height: 56px; border: 0; border-bottom: 1px solid var(--gris); background: #fff; font-size: 18px; }
.marqueur { width: 30px; height: 30px; border-radius: 50%; background: #ffd400; border: 3px solid #b3141b; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.marqueur-pei { width: 22px; height: 22px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }

#verrou { position: fixed; inset: 0; z-index: 100; background: #0b57d0; color: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; overflow: auto; }
#verrou[hidden] { display: none; }
.v-boite { max-width: 440px; width: 100%; }
.v-boite h1 { margin: 12px 0 0; font-size: 30px; } .v-sous { margin: 4px 0 28px; opacity: .85; font-size: 18px; }
.v-gros { width: 100%; min-height: 76px; font-size: 24px; border-radius: 38px; }
#v-msg { min-height: 48px; font-size: 18px; font-weight: 600; background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px; margin-top: 18px; } #v-msg:empty { background: none; }
#v-install { margin-top: 18px; text-align: left; background: rgba(0,0,0,.2); border-radius: 12px; padding: 12px 16px; font-size: 16px; } #v-install summary { font-weight: 700; cursor: pointer; min-height: 40px; }
#v-cam { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 101; }
#v-cam[hidden] { display: none; } #v-video { width: 100%; max-height: 75vh; object-fit: cover; }
.v-cadre { position: absolute; width: 62vmin; height: 62vmin; border: 4px solid #ffd400; border-radius: 18px; pointer-events: none; }

.v-sec { width: 100%; min-height: 60px; margin-top: 14px; font-size: 20px; background: rgba(255,255,255,.18); color: #fff; box-shadow: none; border: 2px solid #fff; }
#bandeau-demo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: #ffd400; color: #111; font-weight: 700; font-size: 15px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#bandeau-demo button { min-height: 40px; border: 0; border-radius: 20px; padding: 0 14px; font-weight: 700; background: #111; color: #fff; }
#bandeau-demo ~ #fiche, body:has(#bandeau-demo) #fiche { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
body:has(#bandeau-demo) #boutons { bottom: calc(70px + env(safe-area-inset-bottom)); }

#fiche button.pei { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--gris); min-height: 56px; }
#fiche .pei small { display: block; color: #555; font-size: 14px; }
#fiche .adr { font-size: 19px; margin: 6px 0 8px; padding: 10px 12px; background: #f6f0c8; border-radius: 12px; }

#fiche .signal { display: block; width: 100%; margin: 14px 0 4px; min-height: 52px; border: 2px solid #b3141b; border-radius: 14px; background: #fff; color: #b3141b; font-size: 17px; font-weight: 700; }
#dlg-signal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
#dlg-signal .boite { background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
#dlg-signal h3 { margin: 0 0 4px; font-size: 22px; } #dlg-signal textarea { width: 100%; font-size: 18px; border: 2px solid #ccc; border-radius: 12px; padding: 10px; margin: 10px 0; font-family: inherit; }
#dlg-signal .ligne { display: flex; gap: 10px; } #dlg-signal .ligne button, #dlg-signal .rouge { flex: 1; min-height: 56px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 700; } #dlg-signal .rouge { background: #b3141b; color: #fff; width: 100%; margin-top: 10px; } #dlg-signal .gris { background: #e9e9e9; }
#dlg-signal #sig-msg { color: #b3141b; font-weight: 600; margin-top: 8px; }

#aide, #nouv, #annu { position: fixed; inset: 0; z-index: 30; background: #fff; display: flex; flex-direction: column; } #aide[hidden], #nouv[hidden], #annu[hidden] { display: none; }
#aide-barre, #nouv-barre, #annu-barre { display: flex; align-items: center; gap: 14px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: #b3141b; color: #fff; font-size: 20px; }
#aide-corps, #nouv-corps, #annu-corps { flex: 1; overflow: auto; padding: 4px 18px 40px; font-size: 18px; line-height: 1.45; max-width: 720px; margin: 0 auto; width: 100%; }
#aide-corps h2, #nouv-corps h2 { color: #b3141b; font-size: 21px; margin: 22px 0 6px; } #aide-corps li { margin: 6px 0; }
#aide-corps .conf { background: #fcecec; border: 2px solid #b3141b; border-radius: 12px; padding: 10px 14px; }
#aide-corps .pdf { display: block; text-align: center; background: #b3141b; color: #fff; text-decoration: none; padding: 16px; border-radius: 14px; font-weight: 700; }
.v-aide { margin: 16px 0 0; } .v-aide a { color: #fff; font-size: 18px; font-weight: 700; }

#viseur { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: flex; align-items: center; justify-content: center; } #viseur[hidden] { display: none; }
#viseur .croix { width: 54px; height: 54px; border: 4px solid #b3141b; border-radius: 50%; background: rgba(179,20,27,.12); position: relative; } #viseur .croix::before, #viseur .croix::after { content: ''; position: absolute; background: #b3141b; } #viseur .croix::before { left: 50%; top: -14px; bottom: -14px; width: 3px; margin-left: -1.5px; } #viseur .croix::after { top: 50%; left: -14px; right: -14px; height: 3px; margin-top: -1.5px; }
#barre-viseur { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: #fff; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 12px rgba(0,0,0,.35); font-size: 17px; font-weight: 700; } #barre-viseur[hidden] { display: none; }
#barre-viseur div { display: flex; gap: 10px; margin-top: 8px; } #barre-viseur button { flex: 1; min-height: 56px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 700; } #barre-viseur .rouge { background: #b3141b; color: #fff; } #barre-viseur .gris { background: #e9e9e9; }
#dlg-signal select { width: 100%; font-size: 18px; padding: 12px; border: 2px solid #ccc; border-radius: 12px; margin-top: 10px; background: #fff; }

.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 17px; color: #fff; font-size: 17px; font-weight: 700; margin-right: 6px; vertical-align: middle; padding: 0 6px; }

#toast { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40; background: #111; color: #fff; border-radius: 16px; padding: 14px 18px; font-size: 17px; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
#btn-maj.tourne { animation: tourne 1s linear infinite; } @keyframes tourne { to { transform: rotate(360deg); } }

#nouv-corps .nv { border-bottom: 1px solid #ddd; padding-bottom: 10px; } #nouv-corps small { color: #666; } #nouv-corps p { white-space: pre-wrap; margin: 6px 0; } #nouv-corps .vide { color: #666; margin-top: 24px; text-align: center; }

#v-tel { margin-top: 14px; } #v-tel[hidden] { display: none; } #v-tel input { width: 100%; box-sizing: border-box; font-size: 22px; text-align: center; padding: 14px; border-radius: 12px; border: 0; margin-bottom: 10px; color: #111; }

#v-ext { margin-top: 12px; text-align: left; background: rgba(0,0,0,.2); border-radius: 12px; padding: 12px 16px; } #v-ext[hidden] { display: none; } #v-ext input { display: block; width: 100%; font-size: 18px; min-height: 52px; margin: 8px 0; border: 0; border-radius: 12px; padding: 0 14px; }

#dlg-signal #sig-sug { border: 2px solid #0a7a3b; border-top: 0; border-radius: 0 0 10px 10px; background: #fff; max-height: 190px; overflow: auto; margin-bottom: 6px; }
#dlg-signal #sig-sug[hidden] { display: none; }
#dlg-signal #sig-sug button { display: block; width: 100%; text-align: left; min-height: 48px; padding: 8px 12px; border: 0; border-top: 1px solid #e3e3e3; background: #fff; font-size: 17px; }
#dlg-signal #sig-sug button small { color: #666; }

#btn-infos { font-size: 24px; }
#barre-infos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: #fff; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 12px rgba(0,0,0,.35); font-size: 17px; font-weight: 700; } #barre-infos div { display: flex; gap: 10px; margin-top: 8px; } #barre-infos button { flex: 1; min-height: 56px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 700; } #barre-infos .rouge { background: #b3141b; color: #fff; } #barre-infos .gris { background: #e9e9e9; }
#dlg-signal input[type=date] { width: 100%; box-sizing: border-box; font-size: 17px; padding: 10px; border: 2px solid #ccc; border-radius: 12px; margin: 4px 0 8px; font-family: inherit; }
#dlg-signal label.tr { display: block; margin: 8px 0; font-size: 18px; }
#infos-menu { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; } #infos-menu .boite { background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); } #infos-menu button { display: block; width: 100%; min-height: 60px; border: 0; border-radius: 14px; margin-top: 10px; font-size: 19px; font-weight: 700; background: #b3141b; color: #fff; } #infos-menu button.gris { background: #e9e9e9; color: #111; }

.tr-sug { border: 2px solid #b3141b; border-top: 0; border-radius: 0 0 10px 10px; background: #fff; max-height: 190px; overflow: auto; margin-bottom: 4px; } .tr-sug[hidden] { display: none; } .tr-sug button { display: block; width: 100%; text-align: left; min-height: 48px; padding: 8px 12px; border: 0; border-top: 1px solid #e3e3e3; background: #fff; font-size: 17px; } .tr-sug button small { color: #666; }
/* mode TRAVAUX (QR spécial) : on ne garde que ⛔, 🔄 (actualiser les travaux), GPS et quadrillage */
body.part #btn-signal, body.part #btn-aide, body.part #btn-nouv, body.part #btn-admin, body.part #btn-controle, body.part #btn-plans { display: none !important; }

/* application TRAVAUX : cadre et bandeau BLEUS, pas de GPS */
body.part #btn-gps { display: none !important; }
body.part::after { content: ''; position: fixed; inset: 0; border: 7px solid #0b57d0; pointer-events: none; z-index: 45; }
body.part::before { content: '🚧 APPLICATION TRAVAUX'; position: fixed; top: calc(72px + env(safe-area-inset-top)); left: 12px; z-index: 46; background: #0b57d0; color: #fff; font: 700 13px system-ui; letter-spacing: .4px; padding: 5px 12px; border-radius: 14px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
body.part #btn-grille.actif { background: #0b57d0; }

/* application des utilisateurs : ⚠️ à gauche de la barre de recherche, ⛔ juste dessous, ? sous le micro ; en bas : GPS, 🔄, ▦, 🏢 (pastilles ERP), 🚒 (rues interdites à l'échelle) */
body:not(.part) #barre { left: 10px; }
/* rangée du haut, de gauche à droite : 📞 📄 ⚠️ ⛔ 🏆 ? */
body:not(.part) #btn-fdi-tel, body:not(.part) #btn-fdi, body:not(.part) #btn-signal, body:not(.part) #btn-infos, body:not(.part) #btn-miss, body:not(.part) #btn-sat, body:not(.part) #btn-exo, body:not(.part) #btn-aide { position: fixed; width: 48px !important; height: 48px !important; aspect-ratio: auto !important; min-width: 48px !important; flex: none; font-size: 22px; top: calc(76px + env(safe-area-inset-top)); right: auto; }
body:not(.part) #btn-fdi-tel { left: 10px; }
body:not(.part) #btn-fdi[hidden] { display: none !important; }
body:not(.part) #btn-fdi { left: 64px; }
body:not(.part) #btn-signal { left: 64px; }
body:not(.part) #btn-infos { display: none !important; }
body:not(.part) #btn-miss { left: 118px; }
body:not(.part) #btn-sat { left: 172px; top: calc(76px + env(safe-area-inset-top)); bottom: auto; }
body:not(.part) #btn-exo { left: 226px; top: calc(76px + env(safe-area-inset-top)); bottom: auto; }
body:not(.part) #btn-aide { left: auto; right: 10px; }
body:not(.part) #btn-fdi-tel { background: #1b7a2b; }
body.part #btn-fdi, body.part #btn-fdi-tel { display: none !important; }
#boutons { gap: 7px; }
body.part #btn-erp, body.part #btn-epc, body.part #btn-sat { display: none !important; }
.res-titre { padding: 8px 18px 2px; font-size: 14px; color: #666; font-weight: 700; }

#aide-corps ul.btns { list-style: none; padding: 0; margin: 6px 0 14px; } #aide-corps ul.btns li { padding: 12px 14px; margin: 6px 0; background: #f4f4f4; border-radius: 12px; font-size: 19px; }

/* menu administrateur : damier de symboles */
#menu-admin .grille-adm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#menu-admin .adm-case { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; font-size: 34px; line-height: 1; background: #f1f1f1; border: 0; border-radius: 16px; text-decoration: none; color: #000; padding: 0; cursor: pointer; }
#menu-admin .adm-case .nb { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 11px; background: #e11d2e; color: #fff; font: bold 13px/22px system-ui; text-align: center; padding: 0 5px; border: 2px solid #fff; }

/* 🏆 missions */
body.part #btn-miss { display: none !important; }
#miss-panneau { position: fixed; inset: 0; z-index: 55; background: #fff; display: flex; flex-direction: column; } #miss-panneau[hidden] { display: none; }
#miss-panneau .miss-haut { display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px) 12px; background: #b3141b; color: #fff; padding-top: calc(10px + env(safe-area-inset-top)); } #miss-panneau .miss-haut b { font-size: 20px; }
#miss-panneau .miss-corps { padding: 16px; overflow: auto; font-size: 18px; }
#miss-panneau .miss-carte { display: block; width: 100%; text-align: left; background: #f6f1e3; border: 2px solid #e0c36b; border-radius: 16px; padding: 16px; margin: 10px 0; font-size: 20px; } #miss-panneau .miss-carte small { display: block; font-size: 15px; color: #555; margin-top: 6px; }
#miss-panneau .miss-msg { background: #fff8e1; border-radius: 14px; padding: 14px; white-space: pre-wrap; line-height: 1.4; margin-bottom: 14px; }
.miss-go { display: block; width: 100%; min-height: 60px; border: 0; border-radius: 14px; background: #2e7d32; color: #fff; font-size: 20px; font-weight: 700; margin: 8px 0; } .miss-autre { min-height: 52px; border: 0; border-radius: 14px; background: #e9e9e9; font-size: 17px; font-weight: 700; padding: 0 16px; }
#miss-panneau textarea { width: 100%; box-sizing: border-box; font-size: 18px; border: 2px solid #ccc; border-radius: 12px; padding: 10px; margin: 8px 0; font-family: inherit; }
#miss-barre { position: fixed; left: 8px; right: 8px; top: calc(76px + env(safe-area-inset-top)); z-index: 12; background: #1b5e20; color: #fff; border-radius: 16px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.4); } #miss-barre[hidden], #miss-feuille[hidden] { display: none; } #miss-barre span { flex: 1; } #miss-barre button { border: 0; border-radius: 12px; min-height: 44px; padding: 0 12px; font-weight: 700; background: #fff; }
#miss-feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: 13; background: #fff; border-radius: 20px 20px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.4); max-height: 62vh; overflow: auto; } #miss-feuille h3 { margin: 0 0 4px; font-size: 20px; } #miss-feuille .sous { color: #555; margin-bottom: 8px; font-size: 16px; }
.miss-ligne { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid #ddd; background: #fff; min-height: 58px; padding: 8px 6px; font-size: 18px; } .miss-ligne small { display: block; color: #666; font-size: 14px; }
.miss-rep { display: block; width: 100%; min-height: 66px; border: 0; border-radius: 16px; font-size: 22px; font-weight: 800; margin: 8px 0; color: #fff; } .miss-rep.rouge { background: #e53935; } .miss-rep.bleu { background: #1e88e5; } .miss-rep.gris { background: #616161; }
.miss-bas { display: flex; gap: 10px; margin-top: 6px; } .miss-bas button { flex: 1; } .miss-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; } .miss-chip { border: 2px solid #999; background: #fff; border-radius: 22px; padding: 10px 14px; font-size: 16px; font-weight: 600; } .miss-chip.on { background: #616161; color: #fff; border-color: #616161; } .miss-err { color: #b3141b; font-weight: 700; min-height: 20px; }

.miss-tab { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; } .miss-tab th { background: #eee; padding: 6px 4px; font-size: 13px; } .miss-tab td { padding: 8px 4px; text-align: center; border-bottom: 1px solid #eee; } .miss-tab td.nom { text-align: left; } .miss-tab tr.miss-moi td { background: #fff3c4; } .miss-expl { font-size: 14px; color: #444; line-height: 1.4; } #miss-classe-zone h3 { margin: 14px 0 6px; }
/* Mission : interface réduite pour garder la carte visible */
#miss-barre { display: none !important; }
#miss-feuille { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); max-height: 34vh; border-radius: 16px 16px 0 0; }
#miss-feuille .miss-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; } #miss-feuille h3 { margin: 0; font-size: 17px; } #miss-feuille .sous { font-size: 14px; margin: 2px 0 6px; }
#miss-feuille .miss-x { border: 0; background: #e9e9e9; border-radius: 50%; width: 34px; height: 34px; font-size: 16px; font-weight: 700; flex: none; }
#miss-feuille .miss-3 { display: flex; gap: 6px; } #miss-feuille .miss-rep { flex: 1; min-height: 56px; margin: 0; font-size: 22px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; } #miss-feuille .miss-rep span { font-size: 13px; font-weight: 700; }
#miss-feuille .miss-ligne { min-height: 44px; padding: 4px 6px; font-size: 16px; } #miss-feuille .miss-ligne small { font-size: 12px; }
#miss-feuille .miss-auto { display: block; font-size: 13px; margin: 6px 0 2px; color: #333; } #miss-feuille .miss-auto small { color: #b3141b; } #miss-feuille .miss-auto input { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
#miss-feuille .miss-bas { margin-top: 4px; } #miss-feuille .miss-autre, #miss-feuille .miss-go { min-height: 40px; font-size: 15px; margin: 0; }
#miss-feuille .miss-chips { gap: 6px; margin: 4px 0; } #miss-feuille .miss-chip { padding: 6px 10px; font-size: 14px; } #miss-feuille textarea { font-size: 15px; padding: 6px; margin: 2px 0; width: 100%; box-sizing: border-box; }

/* 🔚 efface le trait vert (dans la barre de recherche) ; menu d'adresse abaissable */
#btn-guidage { position: absolute; right: 66px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0b57d0; color: #fff; font-size: 20px; padding: 0; z-index: 2; }
body:not(.part) #recherche { padding-right: 56px; } body.part #btn-guidage { display: none !important; }
#fiche::before { content: '▾ abaisser'; display: block; position: sticky; top: -16px; margin: -16px auto 8px; width: 140px; text-align: center; padding: 8px 0 4px; color: #666; font-size: 14px; font-weight: 700; background: #fff; z-index: 1; pointer-events: none; }
#fiche.basse::before { content: '▴ remonter'; }
#fiche.basse { max-height: 92px; overflow: hidden; }


/* bouton appareil photo sur l'écran d'accueil (à droite, au-dessus de la pastille des points d'eau) */
body:not(.part) #btn-photo { position: fixed !important; right: 10px; bottom: calc(168px + env(safe-area-inset-bottom)); width: 58px !important; height: 58px !important; flex: none; background: #b3141b; color: #fff; font-size: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.45); z-index: 26; }
body.part #btn-photo { display: none !important; }

/* mode exercice ✈️ */
body.part #btn-exo { display: none !important; }
body.exercice::after { content: ''; position: fixed; inset: 0; border: 6px solid #f9a825; pointer-events: none; z-index: 99998; }
#exo-pill { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 99999; background: #f9a825; color: #222; font: 800 12px system-ui; padding: 2px 12px; border-radius: 0 0 10px 10px; border: 0; }
#btn-exo.actif { background: #f9a825; }

#annu-corps .ct { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ddd; padding: 10px 0; } #annu-corps .ct .t { flex: 1; } #annu-corps .ct small { color: #666; display: block; } #annu-corps .ct a.app { background: #1b7a2b; color: #fff; text-decoration: none; border-radius: 24px; padding: 10px 14px; font-weight: 700; white-space: nowrap; } #annu-corps .vide { color: #666; margin-top: 24px; text-align: center; } #annu-corps .fdi { width: 100%; margin: 12px 0 4px; padding: 14px; font-size: 18px; border: 0; border-radius: 10px; background: #b3141b; color: #fff; font-weight: 700; }
/* Rangée du niveau de la pastille « Points d'eau proche de moi » : 📷 à gauche, SOS à droite */
body:not(.part) #btn-photo { left: 8px !important; right: auto !important; bottom: calc(91px + env(safe-area-inset-bottom)) !important; width: 50px !important; height: 50px !important; font-size: 22px !important; }
#btn-sos { left: auto !important; right: 8px !important; bottom: calc(91px + env(safe-area-inset-bottom)) !important; width: 50px !important; height: 50px !important; font-size: 15px !important; }
/* TOUS LES BOUTONS EN BAS : rangée 1 = #boutons (🔄 ◎ ▦ 🏢 🚒 📰 🛠️) ; rangée 2 juste au-dessus = ☎️ 🇺🇸 🏆 🛰️ ✈️ ? ; rangée 3 = 📷 pastille bleue SOS */
body:not(.part) #btn-fdi-tel, body:not(.part) #btn-signal, body:not(.part) #btn-miss, body:not(.part) #btn-sat, body:not(.part) #btn-exo, body:not(.part) #btn-aide { top: auto !important; right: auto !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important; width: 44px !important; height: 44px !important; min-width: 44px !important; font-size: 20px !important; }
body:not(.part) #btn-fdi-tel { left: 8px !important; }
body:not(.part) #btn-signal { left: 58px !important; }
body:not(.part) #btn-miss { left: 108px !important; }
body:not(.part) #btn-sat { left: auto !important; right: 108px !important; }
body:not(.part) #btn-exo { left: auto !important; right: 58px !important; }
body:not(.part) #btn-aide { left: auto !important; right: 8px !important; }
body:has(#bandeau-demo):not(.part) #btn-fdi-tel, body:has(#bandeau-demo):not(.part) #btn-signal, body:has(#bandeau-demo):not(.part) #btn-miss, body:has(#bandeau-demo):not(.part) #btn-sat, body:has(#bandeau-demo):not(.part) #btn-exo, body:has(#bandeau-demo):not(.part) #btn-aide { bottom: calc(122px + env(safe-area-inset-bottom)) !important; }
body:not(.part) #btn-photo { bottom: calc(124px + env(safe-area-inset-bottom)) !important; }
#btn-sos { bottom: calc(124px + env(safe-area-inset-bottom)) !important; }

/* 🏆 et ✈️ sont désormais dans le menu du drapeau 🇺🇸 (les boutons restent en place, cachés, pour que le menu les déclenche) */
body:not(.part) #btn-miss, body:not(.part) #btn-exo { display: none !important; }

/* ❓ l'aide est dans le Journal de bord ; 📰 passe en rangée 2 à droite (hors démonstration, où ? reste visible) */
body:not(.part):not(:has(#bandeau-demo)) #btn-aide { display: none !important; }
body:not(.part) #btn-nouv { position: fixed !important; top: auto !important; left: auto !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important; right: 58px !important; width: 44px !important; height: 44px !important; min-width: 44px !important; font-size: 20px !important; flex: none; }
body:not(.part) #btn-sat { right: 8px !important; }
body:has(#bandeau-demo):not(.part) #btn-nouv { bottom: calc(122px + env(safe-area-inset-bottom)) !important; }

/* 📍 ◎ ma position : en haut à gauche de la barre de recherche ; 🛠️ administrateur : dans le Journal de bord */
body:not(.part) #barre { left: 66px; }
body:not(.part) #btn-gps { position: fixed !important; top: calc(10px + env(safe-area-inset-top)) !important; left: 10px !important; bottom: auto !important; right: auto !important; width: 48px !important; height: 48px !important; min-width: 48px !important; z-index: 6; }
body:not(.part) #btn-admin { display: none !important; }
body:not(.part) #barre { left: 74px; }
body:not(.part) #btn-gps { width: 56px !important; height: 56px !important; min-width: 56px !important; }

/* 🎤 et 🧭 ne sont plus dans la barre de recherche : ils sont dans le menu du Journal de bord */
body:not(.part) #micro { display: none !important; }
body:not(.part) #recherche { padding-right: 22px; }
/* 🛰️ sous le bouton ◎ position (à gauche, sous la barre de recherche) */
body:not(.part) #btn-sat, body:has(#bandeau-demo):not(.part) #btn-sat { position: fixed !important; top: calc(74px + env(safe-area-inset-top)) !important; left: 10px !important; right: auto !important; bottom: auto !important; width: 56px !important; height: 56px !important; min-width: 56px !important; font-size: 24px !important; z-index: 6; }
/* ☎️ dans la barre de recherche (à droite) */
body:not(.part) #btn-fdi-tel, body:has(#bandeau-demo):not(.part) #btn-fdi-tel { position: fixed !important; top: calc(16px + env(safe-area-inset-top)) !important; right: 16px !important; left: auto !important; bottom: auto !important; width: 44px !important; height: 44px !important; min-width: 44px !important; font-size: 22px !important; z-index: 7; box-shadow: none; }
body:not(.part) #recherche { padding-right: 66px; }
/* SOS en haut à droite, sous la barre de recherche */
body #btn-sos { top: calc(74px + env(safe-area-inset-top)) !important; right: 10px !important; left: auto !important; bottom: auto !important; }
/* 🇺🇸 à droite de la pastille bleue « Points d'eau proche de moi » */
body:not(.part) #btn-signal, body:has(#bandeau-demo):not(.part) #btn-signal { left: calc(50% + 118px) !important; right: auto !important; top: auto !important; bottom: calc(124px + env(safe-area-inset-bottom)) !important; width: 48px !important; height: 48px !important; min-width: 48px !important; font-size: 22px !important; }
/* 📰 Journal de bord : en bas à droite */
body:not(.part) #btn-nouv, body:has(#bandeau-demo):not(.part) #btn-nouv { bottom: calc(18px + env(safe-area-inset-bottom)) !important; right: 10px !important; left: auto !important; top: auto !important; width: 48px !important; height: 48px !important; min-width: 48px !important; font-size: 22px !important; }
body:not(.part) #btn-nouv, body:has(#bandeau-demo):not(.part) #btn-nouv { width: 56px !important; height: 56px !important; min-width: 56px !important; font-size: 26px !important; }
/* Rangée du bas équilibrée : 🔄 ▦ 🏢 🚒 📰, même taille, régulièrement espacés et centrés */
#boutons { justify-content: space-evenly !important; gap: 8px !important; left: 14px !important; right: 14px !important; }
body:not(.part) #btn-nouv, body:has(#bandeau-demo):not(.part) #btn-nouv { position: relative !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; width: auto !important; height: auto !important; min-width: 0 !important; aspect-ratio: 1 / 1; flex: 0 1 56px !important; font-size: 26px !important; pointer-events: auto; }
/* 📷, pastille points d'eau et 🇺🇸 : juste au-dessus de la rangée du bas */
body:not(.part) #btn-photo, body:not(.part) #btn-nav-pei, body:not(.part) #btn-signal, body:has(#bandeau-demo):not(.part) #btn-signal { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
body:not(.part) #recherche { padding-right: 112px !important; } body:not(.part) #btn-guidage { right: 62px !important; display: block !important; }

/* Pendant un guidage GPS en cours (classe posée par guid/guidage.js) : tous les boutons de la carte disparaissent ; ils reviennent à l'arrivée ou à la fermeture du guidage.
   Le bouton SOS reste volontairement visible (sécurité). */
body.guid-nav :is(#barre, #resultats, #boutons, #btn-fdi-tel, #btn-fdi, #btn-signal, #btn-infos, #btn-miss, #btn-sat, #btn-exo, #btn-aide, #btn-photo, #btn-nouv, #btn-nav-pei, #btn-stat, #btn-interv, #btn-gps, #btn-maj, #btn-grille, #btn-erp, #btn-epc, #btn-plans, #btn-admin, #btn-dispo, #btn-guidage, #chip-etare, #btn-feuille) { display: none !important; }
