/* Améliorations d'ergonomie ajoutées après la sauvegarde du 22 juillet 2026. */
.community-menu{position:relative}
.community-menu summary{display:flex;align-items:center;gap:5px;padding:9px 14px;border:1px solid #294557;border-radius:22px;color:var(--text);cursor:pointer;list-style:none;white-space:nowrap}
.community-menu summary::-webkit-details-marker{display:none}
.community-menu[open] summary,.community-menu summary:hover{border-color:#3c6680;background:#102d40}
.community-menu>div{position:absolute;z-index:70;top:calc(100% + 9px);left:50%;display:grid;width:190px;padding:7px;gap:5px;transform:translateX(-50%);border:1px solid #31566f;border-radius:17px;background:#081c2af5;box-shadow:0 18px 45px #0009;backdrop-filter:blur(12px)}
.community-menu>div button{display:flex;align-items:center;width:100%;border:0;border-radius:11px;text-align:left}
.community-menu>div button:hover{background:#15394f}
html[data-display-mode="desktop"] .topbar .main-nav{overflow:visible}
html[data-display-mode="desktop"] .topbar .main-nav{align-items:center;gap:7px}
html[data-display-mode="desktop"] .main-nav>button,
html[data-display-mode="desktop"] .community-menu>summary{display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;padding:7px 11px;border-radius:20px;font-size:12px;line-height:1;white-space:nowrap}
html[data-display-mode="desktop"] .main-nav>.display-mode-switch{align-items:center;height:40px;padding:3px;border-radius:13px}
html[data-display-mode="desktop"] .display-mode-switch button{height:32px;min-height:32px;padding:4px 7px;font-size:9px}
html[data-display-mode="desktop"] .main-nav #account-button{height:40px;min-height:40px;max-width:155px;padding:4px 10px 4px 5px;gap:6px}
html[data-display-mode="desktop"] .account-button-avatar{flex-basis:30px;width:30px;height:30px}
html[data-display-mode="desktop"] .account-button-name{max-width:102px;font-size:12px}
html[data-display-mode="desktop"] .main-nav #admin-button{max-width:142px;overflow:hidden;text-overflow:ellipsis}
html[data-display-mode="desktop"] .main-nav button span{margin-right:2px}
@media(max-width:1200px){
  html[data-display-mode="desktop"] .topbar{grid-template-columns:175px minmax(0,1fr);gap-inline:10px}
  html[data-display-mode="desktop"] .topbar .main-nav{gap:5px}
  html[data-display-mode="desktop"] .main-nav>button,
  html[data-display-mode="desktop"] .community-menu>summary{padding-inline:9px}
  html[data-display-mode="desktop"] .main-nav #account-button{max-width:132px}
  html[data-display-mode="desktop"] .account-button-name{max-width:80px}
}
.actions.icon-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.icon-actions>button,.icon-actions>.button{align-content:center;gap:5px;min-height:61px;border-radius:15px}
.icon-actions>button>span,.icon-actions>.button>span{display:block;max-width:100%;overflow-wrap:anywhere;font-size:9px;font-weight:700;line-height:1.15;text-align:center}
.route-onboarding{padding:16px;border:1px solid #29495c;border-radius:18px;background:linear-gradient(145deg,#102d40,#0a1f2e)}
.route-onboarding>strong{display:block;margin-bottom:13px;font-size:13px}
.route-onboarding ol{display:grid;margin:0;padding:0;gap:9px;list-style:none}
.route-onboarding li{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:9px;color:#b8c9d4;font-size:11px}
.route-onboarding li b{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#f5b82e1c;color:#ffd05a}
.route-onboarding[hidden]{display:none}
.auth-locked>.topbar,.auth-locked>.layout,.auth-locked>#mobile-map-return{pointer-events:none;user-select:none;filter:blur(5px);opacity:.32}
.auth-locked{overflow:hidden}
.auth-locked #auth-dialog .dialog-close{display:none}
.auth-locked #auth-dialog{border-color:#3a6882;box-shadow:0 30px 100px #000e}
.auth-required-heading{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:13px;border:1px solid #31566f;border-radius:15px;background:#0d293c}
.auth-required-heading>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#f5b82e1c;font-size:21px}
.auth-required-heading strong,.auth-required-heading small{display:block}
.auth-required-heading small{margin-top:3px;color:#91a9b8;font-size:10px;line-height:1.4}
.help-dialog .help-sections{height:calc(100% - 205px)}
.help-support-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:11px 13px;border:1px solid #31566f;border-radius:14px;background:#0d293c}
.help-support-footer strong,.help-support-footer small{display:block}.help-support-footer small{margin-top:2px;color:#91a9b8;font-size:9px}.help-support-footer button{flex:0 0 auto;border-color:#2997ff;background:#1473e6;color:#fff;font-weight:700}
.support-dialog{position:relative;width:min(560px,calc(100vw - 24px));max-width:560px;padding:26px;border:1px solid #31566f;border-radius:22px;background:linear-gradient(150deg,#0c2638,#071824);color:#edf6fb}
.support-dialog>header{display:flex;align-items:center;gap:13px;margin-bottom:20px}.support-dialog>header>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#1473e625;font-size:23px}.support-dialog header p,.support-dialog header h2,.support-dialog header small{margin:0}.support-dialog header p{color:#56adff;font-size:9px;font-weight:900;letter-spacing:.18em}.support-dialog header h2{margin:3px 0}.support-dialog header small{color:#91a9b8}
.support-dialog form,.support-dialog label{display:grid;gap:7px}.support-dialog form{gap:15px}.support-dialog select,.support-dialog textarea{width:100%;padding:11px;border:1px solid #31566f;border-radius:12px;background:#061722;color:#edf6fb;font:inherit}.support-dialog textarea{resize:vertical}.support-dialog label>small{text-align:right;color:#91a9b8}.support-dialog form>button{border-color:#f5b82e;background:#f5b82e;color:#172033;font-weight:800}.support-dialog #support-status{min-height:20px;margin:0;color:#9fd4ff}
.support-admin-heading{display:flex;align-items:center;justify-content:space-between}.support-admin-heading span{padding:5px 9px;border-radius:10px;background:#f5b82e;color:#172033;font-size:10px;font-weight:800}.support-admin-list{display:grid;gap:10px;margin-top:12px}.support-admin-list article{padding:15px;border:1px solid #29495c;border-radius:14px;background:#091c29}.support-admin-list article.is-new{border-left:4px solid #f5b82e}.support-admin-list header,.support-admin-list footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.support-admin-list header small{display:block;margin-top:3px;color:#91a9b8}.support-admin-list header time{color:#91a9b8;font-size:10px}.support-admin-list article>p{white-space:pre-wrap;line-height:1.55}.support-admin-list footer{justify-content:flex-end}.support-admin-list a{color:#56adff}
.chat-dialog .chat-minimize-button{position:absolute;z-index:9;top:9px;right:52px;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:10px;background:#20263a;color:#cfd4e5;font-size:20px;line-height:1}
.chat-dialog .chat-minimize-button:hover{background:#2d354d;color:#fff}
.chat-dialog.minimized{position:fixed;z-index:1000;inset:auto 18px 18px auto;width:310px;height:58px;min-width:0;max-width:calc(100vw - 36px);min-height:0;max-height:58px;margin:0;padding:0;overflow:hidden;border-radius:15px;box-shadow:0 16px 45px #000b}
.chat-dialog.minimized .chat-layout{display:none}
.chat-dialog.minimized .chat-app-header{height:58px;padding:0 96px 0 13px;border:0;cursor:pointer}
.chat-dialog.minimized .chat-brand{min-width:0;font-size:13px}.chat-dialog.minimized .chat-brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-dialog.minimized .chat-brand span{width:32px;height:32px}
.chat-dialog.minimized .chat-header-status{display:none}
.chat-dialog.minimized .dialog-close{position:absolute;top:12px;right:10px;width:32px;height:32px}
.chat-dialog.minimized .chat-minimize-button{top:12px;right:47px;width:32px;height:32px}
.site-brand{display:flex;align-items:center;gap:10px;min-width:0}
.site-brand>img{flex:0 0 50px;width:50px;height:46px;object-fit:contain;filter:drop-shadow(0 4px 8px #0007)}
.site-brand>div{min-width:0}.site-brand small,.site-brand h1{display:block}
.auth-required-heading>img{flex:0 0 94px;width:94px;height:68px;object-fit:contain;filter:drop-shadow(0 6px 12px #0006)}
.auth-product-summary{margin:-7px 0 15px;padding:0 3px}.auth-product-summary h2{margin:0 0 5px;font-size:14px}.auth-product-summary p{margin:0;color:#91a9b8;font-size:10px;line-height:1.45}.auth-product-summary ul{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0 0;padding:0;list-style:none}.auth-product-summary li{padding:5px 7px;border-radius:8px;background:#1473e617;color:#a9cce4;font-size:8px}
.chat-brand span img{width:29px;height:27px;object-fit:contain}
@media(max-width:800px){
  html[data-display-mode="mobile"] .topbar{height:102px;min-height:102px;padding:6px 8px;grid-template-rows:34px 50px;gap:3px 7px}
  html[data-display-mode="mobile"] .topbar .main-nav{height:calc(64px + env(safe-area-inset-bottom));padding:5px 6px max(5px,env(safe-area-inset-bottom));gap:2px;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scroll-snap-type:x proximity}
  html[data-display-mode="mobile"] .main-nav>button{flex:0 0 62px;width:62px;min-width:62px;min-height:52px;padding:3px 2px;scroll-snap-align:start}
  html[data-display-mode="mobile"] .main-nav>.community-menu{position:relative;display:block;flex:0 0 70px;width:70px;min-width:70px;scroll-snap-align:start}
  html[data-display-mode="mobile"] .community-menu>summary{display:grid;place-items:center;align-content:center;width:100%;min-height:54px;padding:4px 2px;gap:2px;border:0;border-radius:12px;color:#a9bbc5;font-size:8px;line-height:1.1}
  html[data-display-mode="mobile"] .community-menu>summary>span{font-size:19px}
  html[data-display-mode="mobile"] .community-menu>div{position:fixed;right:8px;bottom:calc(70px + env(safe-area-inset-bottom));left:8px;top:auto;display:grid;width:auto;grid-template-columns:repeat(3,1fr);transform:none}
  html[data-display-mode="mobile"] .community-menu>div>button{display:grid;place-items:center;min-height:55px;text-align:center}
  html[data-display-mode="mobile"] .main-nav #account-button{flex:0 0 62px;width:62px;min-width:62px}
  html[data-display-mode="mobile"] .account-button-name{display:block;max-width:58px;overflow:hidden;font-size:0!important;text-overflow:clip;white-space:nowrap}
  html[data-display-mode="mobile"] .account-button-name::after{content:'Compte';font-size:8px}
  html[data-display-mode="mobile"] .main-nav #admin-button{font-size:0}
  html[data-display-mode="mobile"] .main-nav #admin-button::after{content:'Admin';font-size:8px}
  html[data-display-mode="mobile"] .main-nav:has(.community-menu[open]){overflow:visible}
  html[data-display-mode="mobile"] .header-map-menu .address-search{height:44px;padding:4px 5px 4px 10px;grid-template-columns:18px minmax(0,1fr) 38px;border-radius:14px}
  html[data-display-mode="mobile"] .address-search input{height:34px;min-width:0;font-size:14px;text-overflow:ellipsis}
  html[data-display-mode="mobile"] .address-search>button{width:34px;min-height:34px}
  html[data-display-mode="mobile"] .header-map-menu .map-tools{top:108px;right:6px;left:6px;padding:4px;gap:4px;border-radius:14px;scroll-padding-inline:4px;scroll-snap-type:x proximity}
  html[data-display-mode="mobile"] .map-tools button{min-height:36px;padding:6px 9px;border-radius:10px;font-size:9px;scroll-snap-align:start}
  html[data-display-mode="mobile"] .layout{height:calc(100dvh - 102px - 64px)}
  html[data-display-mode="mobile"] .panel{bottom:calc(64px + env(safe-area-inset-bottom))}
  html[data-display-mode="mobile"] .layer-switcher{top:55px;right:6px;gap:4px}
  html[data-display-mode="mobile"] .layer-switcher>button{width:38px;height:38px;padding:7px;border-radius:11px}
  html[data-display-mode="mobile"] .layer-switcher #terrain-button{width:48px}
  html[data-display-mode="mobile"] .maplibregl-ctrl-top-right{top:101px;right:5px}
  html[data-display-mode="mobile"] #mobile-fullscreen{top:max(7px,env(safe-area-inset-top));right:80px;width:32px;height:32px;min-height:32px;border-radius:10px;font-size:18px}
  html[data-display-mode="mobile"] .display-mode-switch{top:max(6px,env(safe-area-inset-top));right:6px;height:34px;padding:2px}
  html[data-display-mode="mobile"] .display-mode-switch button{width:32px;height:28px;min-height:28px;padding:2px;font-size:14px}
  html[data-display-mode="mobile"] .actions.icon-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .help-support-footer{align-items:stretch;flex-direction:column}.help-support-footer button{width:100%}
  .chat-dialog.minimized{right:8px;bottom:calc(74px + env(safe-area-inset-bottom));left:8px;width:auto;max-width:none}
  html[data-display-mode="mobile"] dialog.chat-dialog.minimized[open] .dialog-close{position:absolute;top:12px;right:10px;width:32px;height:32px;min-height:32px}
  html[data-display-mode="mobile"] body:has(#chat-dialog.minimized[open]) #mobile-map-return{display:none}
  html[data-display-mode="mobile"] .site-brand{gap:6px;padding-right:76px!important}
  html[data-display-mode="mobile"] .site-brand>img{flex-basis:35px;width:35px;height:32px}
  html[data-display-mode="mobile"] .site-brand small{font-size:7px!important;letter-spacing:.14em!important}
  html[data-display-mode="mobile"] .site-brand h1{margin-top:1px!important;font-size:12px!important}
  html[data-display-mode="mobile"] .auth-required-heading>img{flex-basis:76px;width:76px;height:58px}
  html[data-display-mode="mobile"] .auth-product-summary{margin-bottom:12px}
}
