/* Compléments MONAMA (même langage visuel que la maquette, palette du logo) */
:root{--navy:#17396b;--orange:#d9711c}
.logo-img{height:46px;width:auto;display:block}.topbar .logo-img{height:38px}
#splash{position:fixed;inset:0;background:#fff;z-index:100;display:grid;place-content:center;justify-items:center;gap:22px;transition:opacity .4s}
#splash img{width:min(300px,70vw)}#splash.hide{opacity:0;pointer-events:none}
.spin{width:30px;height:30px;border:3px solid #e2e9f4;border-top-color:var(--orange);border-radius:50%;animation:sp 1s linear infinite}@keyframes sp{to{transform:rotate(360deg)}}
.net{font-size:11px;padding:6px 11px;border-radius:20px;background:#e1efe6;color:#258570;font-weight:700}.net.off{background:#f9e3d6;color:#c0562b}
.sync{font-size:11px;color:#6b7a90;margin-top:12px}.sync b{color:var(--navy)}
.skeleton{background:linear-gradient(90deg,#fef5ec 25%,#e2e9f4 50%,#fef5ec 75%);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:18px;min-height:240px}@keyframes sk{to{background-position:-200% 0}}
.map{height:420px;border-radius:20px;overflow:hidden;border:1px solid var(--line);margin-bottom:20px}.map.small{height:240px}
.pano{height:340px;border-radius:18px;overflow:hidden;margin:14px 0}
.dist{font-size:11px;color:var(--orange);font-weight:700}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:12px 0}.cal span{font-size:11px;text-align:center;padding:8px 0;border-radius:8px;background:#fef5ec}.cal .busy{background:#f9e3d6;color:#c0562b;text-decoration:line-through}.cal .h{background:none;font-weight:700;color:#6b7a90}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:12px 0}.gallery img,.gallery video{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
.f label{display:block;font-size:12px;font-weight:700;margin:12px 0 5px}.f input,.f select,.f textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}.f textarea{min-height:80px}
.f .grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.svc{border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0}.svc.on{border-color:var(--navy);background:#e8eef8}.svc .opts{margin:8px 0 0 26px;font-size:13px}
.table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;border-radius:14px;overflow:hidden}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table th{font-size:11px;letter-spacing:1px;color:#6b7a90}
.scroll{overflow-x:auto;margin-bottom:24px}
.pill{display:inline-block;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;background:#e2e9f4;color:var(--navy)}
.pill.pending,.pill.queued,.pill.sync{background:#fbefd9;color:#8a5a1c}.pill.validated,.pill.confirmed,.pill.delivered,.pill.published,.pill.sent,.pill.active,.pill.completed{background:#e1efe6;color:#258570}.pill.refused,.pill.cancelled,.pill.rejected,.pill.failed,.pill.suspended,.pill.disabled{background:#f9e3d6;color:#c0562b}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0 26px}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.stat b{font-size:24px;color:var(--navy);display:block}.stat small{color:#6b7a90}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 20px}
.drop{border:2px dashed #cfdbeb;border-radius:16px;padding:22px;text-align:center;color:#6b7a90;cursor:pointer}.drop.over{border-color:var(--orange);background:#fbefd9}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.thumbs div{position:relative;width:86px}.thumbs img{width:86px;height:86px;object-fit:cover;border-radius:10px}.thumbs .main{outline:3px solid var(--orange)}.thumbs button{font-size:11px;padding:2px 4px}
.progress{height:6px;background:#e2e9f4;border-radius:6px;overflow:hidden;margin-top:6px}.progress i{display:block;height:100%;background:var(--orange);width:0;transition:width .2s}
.notif{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:8px}.notif.unread{border-left:4px solid var(--orange)}
.btn[disabled]{opacity:.55;pointer-events:none}
@media(max-width:700px){.f .grid2{grid-template-columns:1fr}.map{height:320px}}

.btn.navy{background:var(--navy);color:#fff}
.btn.navy:hover{background:#12305e}
#loader{position:fixed;inset:0;z-index:90;background:#ffffffcc;backdrop-filter:blur(2px);display:none;place-content:center;justify-items:center;gap:16px}#loader.show{display:grid}#loader img{width:min(220px,55vw)}

.install-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:88px;z-index:60;width:min(440px,calc(100% - 24px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #0f254726;padding:12px;display:flex;align-items:center;gap:12px}.install-banner img{width:44px;height:44px;border-radius:11px}.install-banner div{flex:1;min-width:0}.install-banner strong{display:block;font-size:14px}.install-banner small{color:var(--muted);font-size:11px}.install-banner .btn{min-height:38px;padding:8px 14px}.install-close{width:30px;height:30px;color:var(--muted)}@media(min-width:900px){.install-banner{bottom:24px}}
/* v5 : bannière d'installation stabilisée */
#installBanner.install-banner{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px;padding:10px 10px 10px 12px;text-align:left;line-height:1.3;bottom:calc(88px + env(safe-area-inset-bottom,0px))}
#installBanner>img{flex:0 0 44px;width:44px;height:44px;object-fit:cover;margin:0;display:block}
#installBanner>div{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;margin:0;padding:0}
#installBanner>div strong{display:block;font-size:14px;line-height:1.2;color:var(--ink,#17396b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#installBanner>div small{display:block;font-size:11px;line-height:1.3;color:var(--muted);margin:0;white-space:normal}
#installBanner>.btn{flex:0 0 auto;width:auto;min-height:38px;padding:8px 14px;white-space:nowrap;margin:0}
#installBanner>.install-close{flex:0 0 30px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border-radius:50%}
@media(min-width:900px){#installBanner.install-banner{bottom:24px}}
