:root{font-family:Inter,system-ui,-apple-system,Roboto,Arial,sans-serif;color:#eaf1ff;background:#101d32}*{box-sizing:border-box}body{margin:0}header{height:65px;position:absolute;z-index:1000;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;background:#101d32f2;padding:10px 16px;box-shadow:0 3px 16px #0004}.brand{display:flex;gap:11px;align-items:center}.brand strong{font-size:17px;letter-spacing:.8px}.brand small,.panel-head small{display:block;font-size:10px;color:#a9b7d0;margin-top:3px}.logo{width:37px;height:37px;border:2px solid #ffae32;border-radius:12px;display:grid;place-items:center;font-size:29px;color:#ffae32}.icon-btn{color:#eaf1ff;border:0;background:#ffffff18;border-radius:11px;width:40px;height:40px;font-size:24px}#map{position:absolute;inset:65px 0 0;background:#192b39}#search-wrap{position:absolute;z-index:550;top:77px;left:12px;right:68px;max-width:520px}#search{width:100%;padding:14px 17px;border:0;border-radius:13px;background:#fff;color:#17223d;box-shadow:0 3px 12px #0003;font-size:15px;outline:none}#search-results{margin-top:5px;background:white;color:#17223d;border-radius:13px;max-height:245px;overflow:auto;box-shadow:0 5px 18px #0004}#search-results button{width:100%;text-align:left;padding:12px;border:0;background:transparent;border-bottom:1px solid #eee}#search-results button:hover{background:#edf3fd}.tools{position:absolute;z-index:600;right:12px;top:77px;display:grid;gap:9px}.tools button{border:0;border-radius:13px;background:#fff;color:#16213c;box-shadow:0 4px 15px #0004;font-size:25px;height:47px;width:47px}#location-card{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));z-index:600;left:12px;right:12px;max-width:560px;background:#101d32f5;border:1px solid #59708d;border-radius:15px;padding:12px 10px;display:flex;align-items:center;gap:12px;box-shadow:0 3px 16px #0006}#location-card .dot{flex-shrink:0;width:12px;height:12px;border-radius:50%;background:#5c95ec;box-shadow:0 0 0 5px #5c95ec33}#location-card div{flex:1;min-width:0}#location-card strong{display:block;font-size:14px}#location-card small{display:block;color:#abb9ce;font-size:11px;margin-top:4px;line-height:1.35}#dismiss-card{border:0;background:transparent;color:#abb9ce;font-size:20px}#overlay{position:fixed;inset:0;background:#020814a6;z-index:1090}#panel{position:fixed;top:0;bottom:0;right:0;width:min(390px,94vw);z-index:1100;background:#14223a;transform:translateX(103%);transition:.2s;overflow:auto;padding:18px;box-shadow:-6px 0 35px #0006}#panel.open{transform:translateX(0)}.panel-head{display:flex;justify-content:space-between;align-items:center}.tabs{display:flex;border-bottom:1px solid #34435d;margin:22px 0}.tabs button{flex:1;background:none;border:0;border-bottom:3px solid transparent;padding:11px 0;color:#c5d1e1;font-weight:600}.tabs .active{border-color:#ffad31;color:white}.tab-panel h3{font-size:15px;margin:25px 0 12px}.tab-panel p{color:#c4cfe0;font-size:13px;line-height:1.55}.tab-panel label{display:block;font-size:14px;margin:13px 0}.tab-panel input[type=text],.tab-panel label>input:not([type]){display:block;width:100%;margin-top:7px;padding:11px;border:1px solid #586881;border-radius:9px;background:#253654;color:white}.tab-panel button.primary,.tab-panel button.secondary,.tab-panel button.danger{width:100%;padding:12px 8px;border-radius:10px;border:1px solid transparent;font-weight:700;margin:6px 0}.primary{background:#ffb137;color:#14223a}.secondary{background:#294365;color:white}.danger{background:#522d39;color:#ffb7b7}.muted,.hint{font-size:12px!important;color:#98a9c1!important;margin:10px 0}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-grid>div{background:#233651;padding:16px 12px;border-radius:12px}.stats-grid strong{font-size:23px;display:block}.stats-grid small{font-size:11px;color:#b9c7d9}#toast{position:fixed;z-index:1200;left:50%;bottom:95px;transform:translateX(-50%);width:max-content;max-width:90vw;background:#19283f;color:white;border-radius:10px;box-shadow:0 4px 16px #0006;padding:10px 16px;opacity:0;pointer-events:none;transition:.2s;font-size:13px}#toast.visible{opacity:1}.leaflet-popup-content-wrapper{border-radius:12px}.leaflet-popup-content{font-size:14px;line-height:1.5}.pif-marker{background:#b6292b;border:2px solid white;color:white;box-shadow:0 1px 6px #0007;border-radius:50%;display:flex;align-items:center;justify-content:center;font:bold 11px system-ui;min-width:33px;height:33px;padding:2px;white-space:nowrap}.pif-marker.no-label{width:20px!important;min-width:20px;height:20px;font-size:0}.leaflet-control-attribution{font-size:9px!important}@media(min-width:700px){#search-wrap{top:78px;left:20px}#location-card{left:20px;bottom:24px}}

/* CARTZIS V1.3 : interface prioritairement mobile */
#map{inset:55px 0 0;touch-action:pan-x pan-y;}
header{height:55px;padding:7px 12px;}
.brand strong{font-size:16px}.brand small{font-size:9px}
#top-status{position:absolute;z-index:810;top:64px;left:10px;right:10px;max-width:560px;display:flex;gap:10px;align-items:center;background:#101d32f5;color:white;padding:11px 10px;border:1px solid #4a6382;border-radius:13px;box-shadow:0 4px 14px #0006}
.status-symbol{width:33px;height:33px;border-radius:50%;background:#1a4f88;display:grid;place-items:center;font-size:22px;color:#a9d9ff;flex:none}
.status-copy{flex:1;min-width:0}.status-copy strong{display:block;font-size:14px}.status-copy small{display:block;font-size:11px;color:#c0d1e5;line-height:1.4;margin-top:3px}
#locate-top{border:0;background:#276da3;color:#fff;border-radius:9px;font-size:23px;height:38px;width:40px;flex:none}
#search-wrap{top:137px;right:65px;left:10px;max-width:480px}
#search{padding:12px 14px;font-size:14px}
.tools{top:137px;right:10px;gap:8px}.tools button{width:42px;height:42px;font-size:23px}
#explore-btn{position:absolute;z-index:800;left:10px;bottom:max(18px,env(safe-area-inset-bottom));border:0;border-radius:14px;background:#102a43;color:white;font-weight:700;font-size:14px;padding:13px 16px;box-shadow:0 3px 12px #0008;border:1px solid #5d7186}
#browse-banner{position:absolute;z-index:820;bottom:max(74px,calc(env(safe-area-inset-bottom) + 74px));left:10px;right:10px;max-width:560px;background:#fff;color:#213147;border-radius:12px;padding:11px 12px;box-shadow:0 3px 13px #0005;display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px}
#browse-banner[hidden],#explore-sheet[hidden]{display:none!important}
#browse-name{flex:1;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#back-position{flex:none;border:0;background:#155890;color:#fff;border-radius:9px;padding:9px;font-weight:700}
#explore-sheet{position:absolute;z-index:880;bottom:0;left:0;right:0;max-height:70dvh;background:#17283e;color:#fff;border-radius:20px 20px 0 0;box-shadow:0 -5px 28px #0009;padding:15px 14px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;max-width:700px}
.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sheet-head strong{font-size:18px}.sheet-head button{border:0;background:#ffffff22;color:white;border-radius:9px;font-size:24px;width:37px;height:37px}
#zone-filter{width:100%;background:white;color:#1a2430;border:0;border-radius:11px;padding:13px;font-size:15px;margin-bottom:10px}
#zone-list{overflow:auto;min-height:0;display:grid;align-content:start;gap:5px}
#zone-list button{background:#263d57;color:white;text-align:left;border:1px solid #415674;border-radius:10px;padding:13px;font-weight:600}
#zone-list small{display:block;color:#bac9da;font-weight:400;margin-top:4px}
#zone-list .empty{color:#becbda;font-size:13px}
.gps-arrow{width:28px;height:28px;display:grid;place-items:center;border:3px solid white;border-radius:50%;background:#2875ed;box-shadow:0 2px 10px #0008;color:white;font-size:17px}
.leaflet-container{background:#e4e8ec!important}
@media(min-width:700px){#search-wrap{top:139px;left:15px}#top-status{top:67px;left:15px}#explore-btn{left:15px}#explore-sheet{left:12px;bottom:12px;border-radius:18px;max-height:60vh}#browse-banner{left:15px}}
