/* Layout de référence. Les styles historiques sont conservés par composant ;
   les anciens overrides « layout immersif » ont été retirés de community.css. */
:root{--local-top:0px;--front-nav:82px;--front-control:48px;--w-ink-3:#586b83;--front-shadow:0 3px 14px rgba(10,30,60,.08)}
:root.local-preview{--local-top:32px}
body{display:block!important;background:var(--w-storm);font-family:var(--w-font-body)}
body #map{position:fixed!important;inset:var(--local-top) 0 0!important;width:100%!important;height:calc(100dvh - var(--local-top))!important;margin:0!important;border:0!important;border-radius:0!important;transform:none!important;flex:none!important;background:#e8edf0}
body #header{position:fixed!important;top:calc(var(--local-top) + 12px)!important;left:24px!important;right:24px!important;padding:0!important;height:52px;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;display:flex!important;align-items:center;justify-content:space-between;pointer-events:none;z-index:1200!important}
body #header>*{pointer-events:auto}
body #header::before,body #header::after{display:none!important}
body #header>div:not(.menu-dropdown){background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
body #header h1{font-size:30px!important}
body #header #btn-account[hidden]{display:none!important}
body #header .hbtn{min-height:44px!important;min-width:44px!important;font-size:14px!important;border-radius:12px!important;background:var(--w-ocean)!important;border:1px solid var(--w-line)!important;box-shadow:var(--front-shadow)!important}
body #header .menu-dropdown{top:48px!important;right:0!important;left:auto!important;width:min(300px,calc(100vw - 32px));max-height:calc(100dvh - 180px);overflow:auto;background:var(--w-ocean)!important;backdrop-filter:none!important;border:1px solid var(--w-line)!important;padding:8px!important}
body #header .menu-item{min-height:46px;font-size:14px!important}
body #status-bar{display:none!important}
body #map-search{position:fixed!important;top:calc(var(--local-top) + 76px)!important;left:24px!important;right:auto!important;width:360px!important;max-width:calc(100vw - 48px)!important;transform:none!important;z-index:1300}
body #map-search .ms-box{height:50px!important;padding:0 12px!important;border:1px solid var(--w-line-hi)!important;border-radius:12px!important;background:var(--w-ocean)!important;box-shadow:var(--front-shadow)!important}
body #ms-input{font-size:16px!important;min-height:44px;color:var(--w-ink)!important}
body .ms-item{min-height:54px;font-size:14px}
body .ms-item-sub{font-size:12px}
body #ms-results{max-height:45dvh;overflow:auto}
body #first-hint{display:none!important}
#weather-state{position:fixed;top:calc(var(--local-top) + 136px);left:24px;max-width:calc(100vw - 48px);display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:40px;background:var(--w-ocean);border:1px solid var(--w-line);border-radius:10px;color:var(--w-ink-2);font-size:12px;z-index:1100;box-shadow:var(--front-shadow)}
#weather-state button{background:transparent;border:0;color:var(--w-flare);font:inherit;font-weight:700;min-height:32px;padding:0 6px;cursor:pointer}
#map-layers{position:fixed;top:calc(var(--local-top) + 194px);left:24px;z-index:1150;background:var(--w-ocean);border:1px solid var(--w-line);border-radius:12px;box-shadow:var(--front-shadow);min-width:110px}
#map-layers summary{font-size:14px;font-weight:650;padding:12px 16px;min-height:46px;cursor:pointer}
#map-layers .layer-options{display:flex;flex-direction:column;gap:8px;padding:4px 12px 12px;width:250px}
body #map-layers #map-view-toggle{position:static!important;transform:none!important;margin:0!important;display:flex!important;width:100%!important;box-shadow:none!important;border:1px solid var(--w-line)!important;border-radius:10px!important}
body #map-layers .mvt-btn{min-height:44px!important;flex:1;font-size:13px!important;box-shadow:none!important}
body #map-layers #wf-fab,body #map-layers #cf-fab{position:static!important;display:flex!important;align-items:center;gap:12px;width:100%!important;height:auto!important;min-height:46px!important;padding:10px!important;border:1px solid var(--w-line)!important;border-radius:10px!important;box-shadow:none!important;transform:none!important;font-size:13px!important;background:var(--w-storm)!important;color:var(--w-ink)!important}
#map-layers svg{flex-shrink:0;width:22px;height:22px}
body #help-fab{position:fixed!important;bottom:calc(var(--front-nav) + env(safe-area-inset-bottom,0px) + 16px)!important;right:20px!important;min-width:46px;min-height:46px;background:var(--w-ocean)!important;border:1px solid var(--w-line-hi)!important;box-shadow:var(--front-shadow)!important;color:var(--w-ink)!important}
body .leaflet-top.leaflet-left{top:auto!important;bottom:calc(var(--front-nav) + env(safe-area-inset-bottom,0px) + 16px)!important;left:14px!important}
body .leaflet-bottom.leaflet-right{bottom:calc(var(--front-nav) + env(safe-area-inset-bottom,0px) + 2px)!important;right:12px!important}
body .wbn{height:calc(var(--front-nav) + env(safe-area-inset-bottom,0px))!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;border:0!important}
body .wbn::before{display:none!important}
body .wbn-inner{max-width:560px!important;height:70px!important;margin:0 auto!important;padding:5px 8px!important;background:var(--w-ocean)!important;border:1px solid var(--w-line)!important;border-radius:18px!important;box-shadow:var(--front-shadow)!important;backdrop-filter:none!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))}
body .wbn-tab{min-width:0!important;min-height:58px!important;gap:4px!important;color:var(--w-ink-2)!important;padding:4px 2px!important}
body .wbn-lbl{font-size:12px!important;letter-spacing:0!important;line-height:1.3}
body .wbn-svg{width:23px!important;height:23px!important;padding:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;transform:none!important}
body .wbn-tab.active{color:var(--w-flare)!important}
body .wbn-tab.active .wbn-svg{color:var(--w-flare)!important;background:none!important;box-shadow:none!important;transform:none!important}
body #spot-panel{top:calc(var(--local-top) + 76px)!important;bottom:calc(var(--front-nav) + 12px)!important;right:24px!important;left:auto!important;width:440px!important;max-width:calc(100vw - 48px)!important;max-height:none!important;border-radius:18px!important;background:var(--w-ocean)!important;box-shadow:0 8px 30px rgba(10,30,60,.12)!important;border:1px solid var(--w-line)!important;overflow-y:auto!important}
body #panel-close{min-width:44px;min-height:44px;z-index:2}
body #spot-panel .pop-hdr{padding:22px 55px 16px 20px!important;background:var(--w-ocean)!important}
body #spot-panel .pop-title{font-size:25px!important;line-height:1.2!important;letter-spacing:-.03em}
body #spot-panel .pop-zone{font-size:11px!important;margin-bottom:8px}
body #spot-panel .pop-body{padding:0 16px 24px!important}
body #spot-panel .sf-card{border:1px solid var(--w-line)!important;border-radius:14px!important;box-shadow:none!important;margin:0 0 16px!important;overflow:hidden}
body #spot-panel .sf-hero{box-shadow:none!important;border:0!important;padding:18px!important;background:var(--qv)!important;color:var(--qfg)!important}
body #spot-panel .sf-kt{font-size:44px!important}
body #spot-panel .sf-hero-q{font-size:23px!important}
body #spot-panel .sf-hero-side{font-size:13px!important}
body #spot-panel .sf-stat{padding:12px 4px!important}
body #spot-panel .sf-stat b{font-size:19px!important}
body #spot-panel .sf-stat>span{font-size:11px!important}
body #spot-panel .updated-at{font-size:12px!important;line-height:1.5!important;text-align:left!important;color:var(--w-ink-2)!important;margin:0!important;padding:10px 14px!important;border-bottom:1px solid var(--w-line)}
body #spot-panel .sf-act{min-height:52px;font-size:12px}
body #spot-panel .sf-act-ic{box-shadow:none!important}
body #spot-panel .sf-act-lbl{font-size:12px!important}
body #spot-panel .sf-cta,body #spot-panel .fav-btn{min-height:48px!important;font-size:14px!important;box-shadow:none!important}
body #spot-panel .sf-fc-exp{min-height:44px;min-width:44px;font-size:13px}
.sf-account-note{margin-top:20px;padding:16px;background:var(--w-storm);border:1px solid var(--w-line);border-radius:12px;font-size:14px;line-height:1.6;color:var(--w-ink-2)}
.sf-account-note button{background:none;border:0;min-height:44px;color:var(--w-flare);font:inherit;font-weight:700;cursor:pointer}
.sf-weather-error{padding:24px 18px;color:var(--w-ink);line-height:1.6}
.sf-weather-error p{margin:8px 0 16px;color:var(--w-ink-2);font-size:14px}
.sf-weather-error button,.frontend-empty button{border:0;border-radius:10px;background:var(--w-flare);color:#fff;min-height:46px;padding:10px 18px;font:inherit;font-weight:700;cursor:pointer}
body .pm-sheet{box-shadow:0 8px 28px rgba(10,30,60,.12)!important}
body #account-modal .auth-inp{font-size:16px;min-height:46px}
body #account-modal .auth-btn{min-height:46px;font-size:16px}
body #account-modal .auth-tabs button{min-height:44px}
.frontend-list{padding:calc(var(--local-top) + 28px) max(24px,calc((100vw - 720px)/2)) 40px!important;background:var(--w-storm)!important;bottom:calc(var(--front-nav) + env(safe-area-inset-bottom,0px))!important}
.frontend-list h1{font:italic 700 30px var(--w-font-display);color:var(--w-ink);margin-bottom:10px}
.frontend-list p{font-size:15px;line-height:1.6;color:var(--w-ink-2);margin-bottom:20px}
.frontend-empty{margin-top:24px;padding:28px;background:var(--w-ocean);border:1px solid var(--w-line);border-radius:16px}
.frontend-empty>svg{width:36px;height:36px;color:var(--w-flare);margin-bottom:18px}
.frontend-empty h2{font-size:22px;line-height:1.3;margin-bottom:14px;color:var(--w-ink)}
.frontend-spot-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;margin:14px 0;width:100%;text-align:left;border:1px solid var(--w-line);border-radius:14px;background:var(--w-ocean);font:inherit;cursor:pointer}
.frontend-spot-row strong{display:block;font-size:17px;color:var(--w-ink)}
.frontend-spot-row small{display:block;font-size:12px;color:var(--w-ink-2);margin-top:5px}
.frontend-spot-row>b{white-space:nowrap;border-radius:9px;padding:10px;font-size:18px}
#local-preview-bar{height:32px;position:fixed;inset:0 0 auto;background:var(--w-ink);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;z-index:100001;font-size:11px;line-height:1.1}
#local-preview-bar a{color:#fff;text-decoration:underline;text-underline-offset:3px;padding:8px 0;white-space:nowrap}
body :is(button,a,input,summary,select,textarea):focus-visible{outline:3px solid var(--w-flare)!important;outline-offset:3px!important}
body .promo-banner,body .promo-banner.open{display:none!important}
@media(max-width:760px){
 body #header{left:16px!important;right:16px!important}
 body #map-search{left:16px!important;width:calc(100vw - 32px)!important;max-width:none!important}
 #weather-state{left:16px;max-width:calc(100vw - 32px);font-size:12px}
 #map-layers{left:16px}
 body #spot-panel{top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;height:74dvh!important;max-height:calc(100dvh - var(--local-top) - 64px)!important;border-radius:20px 20px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 body .wbn-inner{border-radius:16px 16px 0 0!important;width:100%!important;max-width:none!important;height:82px!important}
 body .wbn-lbl{font-size:11px!important}
 body #spot-panel .pop-title{font-size:24px!important}
 #local-preview-bar{padding:0 10px;font-size:9px}
 .frontend-list{padding-left:18px!important;padding-right:18px!important}
 body #header #btn-refresh{display:none!important}
}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
