@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#20352c;--muted:#89948c;--green:#287a54;--green2:#e9f2e9;--line:#e9ece7;--paper:#fff;--bg:#f7f8f5;--orange:#e9a563}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:relative;z-index:500}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);font:800 17px Manrope,sans-serif;letter-spacing:-.7px}.brand-icon{display:grid;place-items:center;background:#dceade;color:var(--green);width:35px;height:35px;border-radius:12px;font-size:24px;transform:rotate(-12deg)}.brand small{display:block;font:700 8px 'DM Sans';letter-spacing:1.6px;color:#8a988e;margin-top:1px}.header-actions{display:flex;align-items:center;gap:12px}.quiet,.text-button{background:none;color:#65746a;font-size:13px}.avatar{width:34px;height:34px;border-radius:50%;background:#f1e8db;color:#805a36;font-weight:700}main{height:calc(100dvh - 68px);display:flex}.sidebar{position:relative;z-index:400;width:385px;min-width:385px;background:#fff;border-right:1px solid var(--line);padding:27px 24px 54px;overflow:auto}.side-heading{display:flex;justify-content:space-between;align-items:start}.eyebrow{color:#96a098;font-size:10px;font-weight:700;letter-spacing:1.5px}.side-heading h1{font:700 23px Manrope,sans-serif;letter-spacing:-.9px;margin:7px 0 10px;max-width:290px}.trip-meta{font-size:12px;color:#87938a;margin:0 0 22px}.section-head{display:flex;justify-content:space-between;align-items:center;color:#95a098;font-size:10px;font-weight:700;letter-spacing:1.2px;margin:26px 0 12px}.text-button{font-size:11px;color:var(--green);padding:0}.trip-list{padding-top:35px}.sidebar.overview-mode .side-heading>div{display:none}.sidebar.overview-mode #tripMeta{display:none}.sidebar.overview-mode .trip-list{padding-top:0}.empty-state{text-align:center;padding:52px 16px}.empty-illustration{width:92px;height:92px;border-radius:50%;background:#eef4ed;display:grid;place-items:center;margin:0 auto 20px;font-size:40px;color:#6d9a79}.empty-state h3{font:700 17px Manrope;margin:0 0 7px}.empty-state p{color:#8d9991;line-height:1.6;margin:0 auto 20px;max-width:235px;font-size:13px}.primary{background:var(--green);color:white;border-radius:9px;padding:12px 15px;font-weight:600;box-shadow:0 3px 7px #287a541a}.primary:hover{background:#206744}.primary.small{padding:10px 13px;font-size:12px}.add-stage{background:transparent;border:1px dashed #cbd8cc;color:#5c8065;width:100%;padding:12px;border-radius:9px;margin-top:13px;font-size:12px;font-weight:600}.stage-card{position:relative;border:1px solid var(--line);border-radius:11px;padding:13px 14px;margin-bottom:9px;cursor:pointer;transition:.15s}.stage-card:hover{border-color:#9db9a1}.stage-card.active{background:#f2f7f1;border-color:#a6c4a9}.stage-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.stage-chip{font-size:10px;font-weight:700;letter-spacing:.6px;color:#6d8072}.stage-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.stage-distance{font-size:11px;color:#69766d}.stage-names{font-size:12px;color:#66736a;line-height:1.5}.stage-date{color:#95a098;font-size:11px;margin:2px 0 16px}.route-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.route-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.route-panel h2{font:700 16px Manrope;margin:4px 0 0}.icon-button{border:1px solid var(--line);background:#fff;width:29px;height:29px;border-radius:8px;color:#7e8981;font-size:17px}.point-row{display:flex;gap:11px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f1ef}.point-dot{width:9px;height:9px;border-radius:50%;margin:0 2px;flex-shrink:0}.point-dot.start{background:#54936a}.point-dot.end{background:#e28d56}.point-input{flex:1;min-width:0}.point-input label,.route-panel label,dialog label{display:block;font-size:9px;font-weight:700;letter-spacing:1px;color:#98a39b;margin-bottom:3px}.point-input input{border:0;outline:0;padding:0;width:100%;font-size:13px;color:var(--ink);background:transparent}.point-input input::placeholder{color:#b0b9b1}.point-label{font-size:10px;color:#748078;margin-top:3px}.map-pin{font-size:20px;background:none;color:#84958a;padding:4px}.hint{font-size:11px;color:#909b93;line-height:1.5;margin:12px 0}.route-button{width:100%;padding:11px;border-radius:8px;background:#edf4ed;color:#39744d;font-size:12px;font-weight:700}.route-button:disabled{opacity:.6}.stats{display:flex;justify-content:space-around;padding:14px 4px;margin-top:10px;background:#f7f9f6;border-radius:9px}.stats div{text-align:center}.stats strong{display:block;font:700 15px Manrope}.stats span{font-size:8px;letter-spacing:.8px;color:#99a39c}.panel-actions{display:flex;gap:8px;margin-top:12px}.outline{border:1px solid #dce4dd;border-radius:8px;background:#fff;padding:10px 12px;font-size:12px;font-weight:600}.outline:disabled{opacity:.45;cursor:not-allowed}.panel-actions .outline{width:78px}.panel-actions .primary{flex:1;padding:10px}.side-foot{position:fixed;bottom:0;left:0;width:384px;height:43px;border-top:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:8px;padding:0 25px;color:#97a198;font-size:10px;z-index:3}.online-dot{width:7px;height:7px;border-radius:50%;background:#72aa76}.map-wrap{position:relative;flex:1;min-width:0}#map{width:100%;height:100%;background:#e9ede5}.map-top{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:500;display:flex;gap:9px;width:min(500px,80%)}.map-search{height:44px;background:#fff;border-radius:11px;box-shadow:0 3px 14px #24352922;display:flex;align-items:center;gap:10px;padding:0 13px;flex:1;color:#758279}.map-search span{font-size:21px}.map-search input{border:0;outline:0;flex:1;min-width:0;color:var(--ink)}.map-search kbd{font:10px sans-serif;border:1px solid #e5e9e5;border-radius:4px;padding:3px 5px;color:#9ba49d}.map-control{height:44px;width:44px;background:#fff;border-radius:11px;box-shadow:0 3px 14px #24352922;font-size:22px;color:#5b7964}.map-legend{position:absolute;bottom:24px;left:20px;z-index:400;background:#ffffffed;border-radius:8px;padding:10px 13px;box-shadow:0 2px 9px #24352918;font-size:11px;color:#536259}.map-legend span{color:var(--green)}.toast{position:absolute;bottom:25px;left:50%;transform:translate(-50%,14px);opacity:0;transition:.2s;z-index:600;background:#20352c;color:#fff;border-radius:9px;padding:11px 16px;font-size:12px;pointer-events:none;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:18px;padding:28px;width:min(440px,calc(100vw - 30px));box-shadow:0 20px 80px #1e2f2550;color:var(--ink)}dialog::backdrop{background:#18251e77;backdrop-filter:blur(2px)}dialog form{position:relative}dialog h2{font:700 24px/1.2 Manrope;letter-spacing:-.6px;margin:8px 0 18px}dialog p{font-size:13px;line-height:1.6;color:#7e8981}dialog label{margin:14px 0 6px}dialog input{width:100%;border:1px solid #e0e6e0;border-radius:8px;padding:11px;outline:none;font-size:13px;color:var(--ink)}dialog input:focus{border-color:#80a887}dialog input[type=date]{color:#56665a}.modal-icon{width:40px;height:40px;background:#eaf3e9;color:#428056;border-radius:13px;display:grid;place-items:center;font-size:20px;margin-bottom:18px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.share-link{display:flex;gap:8px;margin:17px 0 22px}.share-link input{font-size:11px;min-width:0}.share-link button{white-space:nowrap;padding:9px 13px}.inline{display:flex;gap:7px}.inline input{flex:1;min-width:0}.inline .outline{white-space:nowrap}.full{width:100%;margin-top:15px}.friend-entry{font-size:12px;color:#66736a;padding:9px 0;border-top:1px solid var(--line)}.leaflet-control-attribution{font-size:9px!important}.leaflet-container{font-family:'DM Sans',sans-serif}.leaflet-div-icon{background:transparent;border:none}.map-marker{width:27px;height:27px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#fff;border:3px solid #378354;box-shadow:0 2px 7px #0003}.map-marker.end{border-color:#e28d56}.map-marker b{display:block;transform:rotate(45deg);font-size:9px;text-align:center;line-height:20px}.trip-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 10px 14px;border:1px solid var(--line);border-radius:10px;margin:8px 0;cursor:pointer}.trip-row-info{min-width:0;flex:1}.trip-row .delete-trip-button{color:#9a7777}.trip-row .delete-trip-button:hover{background:#faf0f0;color:#a33d3d}.trip-row:hover{background:#f4f8f3}.trip-row strong{font:600 14px Manrope}.trip-row small{display:block;color:#87938a;margin-top:4px}.search-results{position:absolute;top:50px;left:0;right:53px;background:white;border-radius:10px;box-shadow:0 5px 18px #20352c25;overflow:hidden}.search-result{padding:11px 14px;cursor:pointer;font-size:12px;border-bottom:1px solid #f1f2f0}.search-result:hover{background:#f2f7f1}
@media(max-width:760px){.topbar{height:58px;padding:0 14px}.brand{font-size:15px}.brand-icon{width:31px;height:31px}.quiet,.avatar{display:none}.header-actions{gap:7px}.primary.small{font-size:11px;padding:9px 10px}main{height:calc(100dvh - 58px);display:block;position:relative}.map-wrap{position:absolute;inset:0}#map{height:100%}.sidebar{position:absolute;z-index:450;left:0;right:0;bottom:0;width:100%;min-width:0;max-height:52%;padding:17px 17px 54px;border:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -5px 22px #20352c15;overflow:auto;transition:max-height .2s}.sidebar:has(#tripList .empty-state){max-height:40%}.side-heading h1{font-size:19px;margin:5px 0}.trip-list{padding-top:12px}.empty-state{padding:12px 5px 15px;display:flex;align-items:center;text-align:left;gap:14px}.empty-illustration{width:54px;height:54px;flex-shrink:0;font-size:27px;margin:0}.empty-state h3{font-size:14px}.empty-state p{font-size:11px;margin:4px 0 0}.empty-state .primary{display:none}.side-foot{display:none}.map-top{top:12px;width:calc(100% - 24px)}.map-search,.map-control{height:42px}.map-legend{bottom:calc(40% + 14px);left:12px}.route-panel{margin-top:13px}.section-head{margin:18px 0 9px}.trip-meta{margin:0 0 12px}.stats{padding:10px 4px}.panel-actions{margin-bottom:4px}dialog{padding:23px}.stage-card{padding:10px 12px}}
.map-legend{display:block;max-width:min(290px,calc(100vw - 28px));padding:10px 12px;line-height:1.3}.map-legend>strong{display:block;font-size:11px;margin-bottom:6px;color:#405247}.map-legend b{display:block;font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#8b968e;margin:6px 0 5px}.route-types-list,.stage-colors-list,#routeTypes,#stageColors{display:flex;flex-wrap:wrap;gap:5px 10px}.route-type{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#68756c;white-space:nowrap}.route-type i{display:inline-block;width:16px;height:4px;border-radius:3px;flex:none}.via-marker{display:grid;place-items:center;width:25px;height:25px;border:2px solid #378354;border-radius:50%;background:#fff;color:#378354;box-shadow:0 2px 8px #1d2a2040;font-size:15px;line-height:1;cursor:grab}.via-marker:active{cursor:grabbing}.trip-overview{padding:11px 0 20px}.overview-title h2{font:700 20px Manrope;letter-spacing:-.6px;margin:5px 0}.overview-title p{font-size:11px;color:#849087;margin:0 0 14px}.overview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#f5f8f4;border-radius:10px;padding:12px 8px}.overview-stats div{text-align:center;min-width:0}.overview-stats strong{display:block;font:700 14px Manrope;white-space:nowrap}.overview-stats span,.overview-estimate span{display:block;font-size:8px;letter-spacing:.65px;color:#8d9991;margin-top:3px}.overview-estimate{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin:10px 0 18px;padding:12px;background:#f5f8f4;border-radius:10px}.overview-estimate strong{display:block;font:700 13px Manrope;margin-top:5px;white-space:nowrap}.overview-estimate small{display:block;font-size:9px;color:#929b94;margin-top:3px}.overview-section-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;color:#8b968e;margin:16px 0 9px}.overview-section-head span{font-weight:400}.overview-stage{border:1px solid var(--line);border-left:3px solid var(--stage-color);border-radius:10px;padding:11px 12px;margin-bottom:8px}.overview-stage-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#718076}.overview-stage-head span{font-weight:700;letter-spacing:.5px}.overview-stage-head i{display:inline-block;width:7px;height:7px;background:var(--stage-color);border-radius:50%;margin-right:3px}.overview-route{font-size:12px;font-weight:600;margin:7px 0;color:#425148}.overview-route span{color:#9aa59c;margin:0 3px}.overview-stage-metrics{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#7c8980;font-size:10px}.overview-stage-metrics strong{color:#33443a;font-size:11px}.overview-stage .edit-stage{margin-top:7px;color:var(--green);font-size:10px}.overview-note{font-size:9px;color:#929b94;line-height:1.45;text-align:center;margin:10px 0}.empty-overview{padding:12px 0 17px;color:#839087;font-size:12px}.empty-overview .primary{padding:10px 12px;font-size:11px}
.map-data-banner{position:absolute;z-index:420;left:50%;bottom:20px;transform:translateX(-50%);width:min(740px,calc(100% - 36px));padding:13px 16px 14px;background:#fffffff2;border:1px solid #ffffffdd;border-radius:16px;box-shadow:0 7px 28px #20352c28;backdrop-filter:blur(12px);color:var(--ink)}.banner-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.banner-heading div{display:flex;align-items:baseline;gap:8px;min-width:0}.banner-heading span{font-size:9px;font-weight:700;letter-spacing:1px;color:#829087;white-space:nowrap}.banner-heading strong{font:700 14px Manrope;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.banner-heading #bannerDate{font-size:10px;color:#87938a}.banner-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.banner-stat{min-width:0;border-left:1px solid #e8ece7;padding-left:10px}.banner-stat:first-child{border-left:0;padding-left:0}.banner-stat strong{display:block;font:700 16px Manrope;white-space:nowrap}.banner-stat small{display:block;font-size:9px;color:#8d9991;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-legend{top:auto;bottom:20px}.map-legend #routeTypes{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}.map-legend #stageColors{display:flex;flex-wrap:wrap;gap:5px 9px}.map-legend .route-type{font-size:9px}.overview-estimate strong{font-variant-numeric:tabular-nums}
@media(max-width:760px){.sidebar:has(#editor:not([hidden])){max-height:40%}.map-data-banner{bottom:calc(52% + 10px);width:calc(100% - 20px);padding:10px 12px;border-radius:13px}.banner-heading{margin-bottom:7px}.banner-heading strong{font-size:12px}.banner-heading #bannerDate{font-size:9px}.banner-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.banner-stat{padding-left:7px}.banner-stat strong{font-size:12px}.banner-stat small{font-size:8px}.map-legend{top:61px;bottom:auto;left:12px;max-width:min(238px,calc(100vw - 24px));padding:8px 10px}.map-legend>strong{font-size:10px;margin-bottom:5px}.map-legend b{font-size:8px;margin:4px 0}.map-legend .route-type{font-size:8px}.map-legend #routeTypes{gap:4px 8px}}
.speed-config{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 11px;margin:10px 0;background:#f7f9f6;border:1px solid #edf0eb;border-radius:9px}.speed-config>span{font-size:9px;letter-spacing:.8px;font-weight:700;color:#87938a}.speed-config>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:10px;color:#78857b;white-space:nowrap}.speed-config>div small{flex-basis:100%;font-size:9px;color:#858e87;text-align:right}.speed-config input{width:48px;border:1px solid #dce5dc;border-radius:6px;padding:5px 4px;text-align:center;color:#2a4534;font-weight:700;background:#fff}.speed-config .text-button{font-size:10px;padding-left:3px}.overview-stage{cursor:pointer}.overview-stage:hover{background:#fbfcfa;border-color:#d8e1d8}.overview-stage .edit-stage{cursor:pointer}
/* La légende des voies fait partie du cartouche de données pour éviter tout chevauchement. */
.map-legend{top:82px;bottom:auto;left:20px;max-width:min(280px,calc(100% - 40px))}
.banner-route-legend{border-top:1px solid #e8ece7;margin-top:10px;padding-top:8px}
.banner-route-legend b{display:block;margin:0 0 6px;color:#829087;font-size:9px;letter-spacing:.8px;text-transform:uppercase}
.banner-route-legend #routeTypes{display:flex;flex-wrap:wrap;gap:5px 12px}
.banner-route-legend .route-type{font-size:9px}
@media(max-width:760px){.map-legend{top:61px;bottom:auto;left:12px;max-width:min(238px,calc(100vw - 24px));padding:8px 10px}.banner-route-legend{margin-top:7px;padding-top:6px}.banner-route-legend b{font-size:8px;margin-bottom:4px}.banner-route-legend #routeTypes{gap:4px 9px}.banner-route-legend .route-type{font-size:8px}}
.brand{gap:9px}.brand-icon{display:grid;place-items:center;background:#e8f1e8;color:#287a54;width:37px;height:37px;border-radius:12px;transform:none}.brand-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.brand-icon svg .brand-bolt{fill:#e9a563;stroke:#fff;stroke-width:1}.brand-name{display:block;line-height:1}.brand-jules{color:#287a54}.brand-bike{color:#e19a55}.brand-name small{display:block;line-height:1.2}
@media(max-width:760px){.brand-icon{width:32px;height:32px}.brand-icon svg{width:26px;height:26px}}
.brand-icon svg .bike-sign{fill:#287a54;stroke:#fff;stroke-width:1.5}.brand-icon svg .bike-wheel,.brand-icon svg .bike-lines{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.via-marker-pin{display:grid;place-items:center;width:27px;height:27px;border:2px solid var(--pin-color,#378354);border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#fff;color:var(--pin-color,#378354);box-shadow:0 2px 8px #1d2a2040;font-size:18px;line-height:1;cursor:grab}.via-marker-pin span{transform:rotate(45deg);margin-top:-2px}.via-marker-pin:active{cursor:grabbing}
.overview-title-row{display:flex;align-items:center;gap:8px}.overview-title-row h2{min-width:0;overflow-wrap:anywhere}.rename-icon-button{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#8a948c;transition:background .15s,color .15s}.rename-icon-button:hover{background:#f1f4f1;color:#34453a}.rename-icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icon-button{border-color:transparent;background:transparent;color:#7d887f;transition:background .15s,color .15s}.icon-button:hover{background:#f2f4f2;color:#34453a}
.route-mode-control{margin:12px 0 7px;padding:10px 11px;background:#f7f9f6;border:1px solid #edf0eb;border-radius:9px}.route-mode-control>label{display:block;font-size:9px;font-weight:700;letter-spacing:1px;color:#87938a;margin:0 0 6px}.route-mode-control select{width:100%;border:1px solid #dce5dc;border-radius:7px;background:#fff;padding:9px 30px 9px 10px;color:#2a4534;font-size:12px;font-weight:600}.route-mode-control small{display:block;margin-top:6px;color:#87938a;font-size:10px;line-height:1.4}
.route-mode-control .routing-note{font-size:9px;color:#9ba49d;margin-top:4px}
.poi-controls{position:absolute;top:73px;left:50%;transform:translateX(-50%);z-index:450;display:flex;align-items:center;gap:6px;padding:6px;background:#ffffffed;border:1px solid #e9ece7;border-radius:12px;box-shadow:0 3px 14px #24352918;white-space:nowrap}.poi-controls>span{padding:0 5px;color:#8a968d;font-size:8px;font-weight:700;letter-spacing:.9px}.poi-toggle{border:1px solid transparent;border-radius:8px;padding:6px 9px;background:transparent;color:#748078;font-size:10px}.poi-toggle.active{background:#edf4ed;color:#286943;border-color:#d8e7d9}.poi-notice{position:absolute;z-index:400;top:119px;left:50%;transform:translateX(-50%);padding:5px 9px;background:#ffffffdb;border-radius:7px;color:#68756c;font-size:9px;white-space:nowrap;pointer-events:none}.poi-marker{display:grid;place-items:center;width:28px;height:28px;border:2px solid white;border-radius:50%;box-shadow:0 2px 8px #1d2a2055;font-size:15px;background:#fff}.poi-marker.bakery{background:#fff7eb}.poi-marker.water{background:#eaf6ff}@media(max-width:760px){.poi-controls{top:68px;width:max-content;max-width:calc(100vw - 22px)}.poi-notice{top:111px;max-width:calc(100vw - 28px);overflow:hidden;text-overflow:ellipsis}}
.poi-controls[hidden],.poi-notice[hidden]{display:none}
.poi-marker.shop{background:#f1efff}
@media(max-width:760px){.poi-controls{gap:3px}.poi-toggle{padding:6px 7px;font-size:9px}.poi-controls>span{font-size:7px;padding:0 2px}}
#editor{display:flex;flex-direction:column}
#editor[hidden]{display:none}
#editor>.route-panel{order:-1;margin-top:0;margin-bottom:18px;border-top:0;padding-top:0}
#editor>.section-head{order:0;margin-top:8px}
#editor>#stages{order:1}
#editor>#addStageBtn{order:2}
.location-status{position:absolute;z-index:480;top:154px;right:16px;max-width:min(320px,calc(100vw - 32px));padding:10px 13px;border:1px solid #e3e9e5;border-radius:10px;background:#fffffff2;box-shadow:0 3px 14px #24352920;color:#405247;font-size:11px;line-height:1.45}
.location-status[hidden]{display:none}
@media(max-width:760px){.location-status{top:152px;right:10px;max-width:calc(100vw - 20px);font-size:10px}}
.map-control{display:grid;place-items:center;color:#303030}
.map-control svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.poi-toggle{display:inline-flex;align-items:center;gap:5px;color:#565656;background:transparent;border-color:transparent}
.poi-toggle.active{color:#151515;background:#f3f3f3;border-color:#e7e7e7}
.poi-toggle svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.poi-controls>span{color:#9a9a9a}
.poi-marker{color:#303030;background:#fff!important;border:1px solid #dedede;box-shadow:0 1px 5px #0002}
.poi-marker svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.poi-marker.bakery,.poi-marker.water,.poi-marker.shop{background:#fff}
.poi-toggle:focus-visible,.map-control:focus-visible{outline:2px solid #777;outline-offset:2px}
.point-dot.end{background:#d84b4b}
.stage-time-estimate{display:block;margin-top:3px;color:#828a83;font-size:10px;line-height:1.35;font-weight:400;letter-spacing:0}
.overview-stage-metrics .stage-time-estimate{flex-basis:100%;margin-top:2px}
.stats{justify-content:space-evenly}
.stage-speed-estimate{display:grid;grid-template-columns:1fr 1.2fr;gap:6px 10px;padding:11px 12px;margin-top:9px;border:1px solid #e8ece7;border-radius:10px;background:#fbfcfa}
.stage-speed-estimate>div{min-width:0}
.stage-speed-estimate span{display:block;color:#8d9991;font-size:8px;font-weight:700;letter-spacing:.7px}
.stage-speed-estimate strong{display:block;margin-top:4px;color:#2f4035;font:700 14px Manrope}
.stage-speed-estimate small{grid-column:1/-1;color:#929b94;font-size:9px}
.stage-speed-estimate[hidden]{display:none}
#tripTitle.trip-title-link{cursor:pointer;transition:color .15s}
#tripTitle.trip-title-link:hover{color:#287a54}
#tripTitle.trip-title-link:focus-visible{outline:2px solid #9ab89e;outline-offset:3px;border-radius:3px}
#legend{display:none!important}
.stage-speed-estimate{display:block}
.stage-speed-config{display:flex;align-items:end;justify-content:space-between;gap:8px}
.stage-speed-inputs{display:flex;align-items:center;gap:5px;margin-top:5px;color:#6f7971;font-size:11px}
.stage-speed-inputs input{width:49px;padding:5px 3px;border:1px solid #dfe5df;border-radius:6px;background:#fff;text-align:center;font-weight:700;color:#28392f}
.stage-speed-inputs small{font-size:9px;color:#858e87}
.stage-speed-config>.text-button{font-size:11px;padding:6px 0}
.stage-speed-time{margin-top:10px;padding-top:8px;border-top:1px solid #ecefeb}
.stage-speed-time span{display:block;color:#8d9991;font-size:8px;font-weight:700;letter-spacing:.7px}
.stage-speed-time strong{display:block;margin-top:4px;color:#2f4035;font:700 14px Manrope}
#editor:not([hidden]){border-top:1px solid #e9ece7;margin-top:-12px;padding-top:12px}

.route-hidden-during-recalc{opacity:0!important}.route-recalculating-halo{stroke-dasharray:7 9;animation:route-blink .9s linear infinite}.route-recalculating{stroke-dasharray:7 9;animation:route-blink .9s linear infinite;filter:drop-shadow(0 1px 2px #0003)}@keyframes route-blink{0%{stroke-dashoffset:0;opacity:.25}50%{opacity:1}100%{stroke-dashoffset:-16;opacity:.25}}
.auth-gate{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:20px;background:#f7f8f5ee;backdrop-filter:blur(14px)}.auth-gate[hidden]{display:none}.auth-card{width:min(100%,360px);padding:30px;border:1px solid #e8ece7;border-radius:18px;background:#fff;box-shadow:0 14px 45px #20352c18}.auth-icon{margin-bottom:22px}.auth-card .eyebrow{margin-bottom:6px}.auth-card h1{margin:0 0 8px;font:700 26px Manrope}.auth-card p{margin:0 0 20px;color:#79857c;line-height:1.5}.auth-card label{display:block;margin-bottom:6px;color:#66736a;font-size:12px}.auth-card input{width:100%;padding:11px 12px;margin-bottom:12px;border:1px solid #dce5dc;border-radius:8px}.auth-card .primary{width:100%;margin-top:3px}.auth-card small{display:block;min-height:18px;margin-top:12px;color:#9c4141;font-size:11px}.route-hidden-during-recalc{opacity:0!important}

.route-undo-action{display:flex;justify-content:flex-end;padding:2px 3px 5px}.route-undo-button{display:inline-flex;align-items:center;gap:5px;padding:4px 6px;border:0;border-radius:6px;background:transparent;color:#7f8982;font-size:9px;line-height:1.2}.route-undo-button:hover{background:#f2f4f2;color:#454d47}.route-undo-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.stage-title-line{display:flex;align-items:center;gap:6px}.stage-title-line h2{margin:0}.stage-name-summary{margin-top:3px;color:#7c877f;font-size:11px}.stage-name-summary:empty{display:none}.rename-stage-button{width:24px;height:24px}.stage-custom-name{color:#36473c;font-size:12px;font-weight:600}.overview-stage-title{margin:7px 0 3px;font:600 12px Manrope;color:#3c4c41}
.route-undo-action[hidden]{display:none}

.breaks-toggle{display:inline-flex;align-items:center;gap:4px;color:#6f7971;font-size:9px;white-space:nowrap;cursor:pointer}.speed-config .breaks-toggle input,.stage-speed-inputs .breaks-toggle input{width:12px;height:12px;margin:0;padding:0;accent-color:#454f48;border-radius:3px}.stage-speed-inputs{flex-wrap:wrap}.stage-speed-inputs .breaks-toggle{margin-left:4px}

/* Mobile map-first layout: a compact summary at the bottom and map controls on the right. */
.mobile-panel-toggle{display:none}
@media(max-width:760px){
 .sidebar{bottom:0;top:auto;left:0;right:0;width:100%;min-width:0;max-height:62dvh;padding:15px 16px calc(18px + env(safe-area-inset-bottom));border:1px solid #e9ece7;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -5px 22px #20352c18;transition:height .2s,max-height .2s,transform .2s;overflow:auto}
 .sidebar.mobile-collapsed{height:0;min-height:0;max-height:0;padding:0;border:0;box-shadow:none;overflow:visible;background:transparent}
 .sidebar.mobile-collapsed>*{display:none!important}
 .sidebar.mobile-collapsed>.side-heading{display:flex!important;position:static;min-height:0}
 .sidebar.mobile-collapsed .side-heading>div,.sidebar.mobile-collapsed #shareBtn{display:none!important}
 .sidebar.mobile-collapsed .mobile-panel-toggle{display:grid!important;position:fixed;z-index:570;left:12px;bottom:calc(106px + env(safe-area-inset-bottom));width:38px;height:38px;place-items:center;border:1px solid #e4e9e3;border-radius:50%;background:#ffffffed;box-shadow:0 2px 10px #20352c22;color:#53665a}
 .mobile-panel-toggle{display:grid;width:34px;height:34px;place-items:center;flex:0 0 34px;background:#f3f6f2;border-radius:50%;color:#506158}
 .mobile-panel-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .sidebar:not(.mobile-collapsed) .mobile-panel-toggle svg{transform:rotate(180deg)}
 .sidebar:not(.mobile-collapsed) .side-heading{align-items:center}
 .sidebar:not(.mobile-collapsed) .side-heading>div{min-width:0;flex:1}
 .sidebar:not(.mobile-collapsed) .trip-list{padding-top:10px}
 .sidebar:not(.mobile-collapsed) .section-head{margin-top:12px}
 .sidebar:not(.mobile-collapsed)+.map-wrap .map-data-banner{bottom:calc(62dvh + 8px)}
 .map-top{top:10px;right:10px;left:auto;transform:none;width:auto;display:flex;flex-direction:column;align-items:flex-end;gap:7px}
 .map-control{order:0;width:42px;height:42px;display:grid;place-items:center;border-radius:50%}
 .map-control svg{width:21px;height:21px}
 .map-search{order:1;flex:0 0 42px;width:42px;height:42px;gap:0;padding:0 10px;overflow:hidden;transition:width .18s ease;cursor:text}
 .map-search span{flex:0 0 21px;text-align:center}
 .map-search input{width:0;flex:0 0 0;opacity:0;padding:0;transition:opacity .15s,width .18s}
 .map-search kbd{display:none}
 .map-search:focus-within{width:min(245px,calc(100vw - 76px));padding:0 10px;gap:8px}
 .map-search:focus-within input{width:auto;min-width:0;flex:1;opacity:1}
 .poi-controls{top:108px;right:10px;left:auto;transform:none;width:42px;max-width:none;flex-direction:column;gap:5px;padding:5px;border-radius:22px}
 .poi-controls>span{display:none}
 .poi-toggle{width:32px;height:32px;display:grid;place-items:center;padding:5px;font-size:0;border-radius:50%}
 .poi-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .poi-notice{top:110px;right:60px;left:auto;transform:none;max-width:min(180px,calc(100vw - 80px));white-space:normal;text-align:right}
 .map-data-banner{left:8px;right:8px;bottom:8px;width:auto;transform:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-radius:14px}
 .banner-heading{margin-bottom:5px;gap:6px}
 .banner-heading div{gap:6px}
 .banner-heading span{font-size:8px}
 .banner-heading strong{font-size:12px}
 .banner-heading #bannerDate{font-size:9px}
 .banner-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 .banner-stat{padding-left:5px}
 .banner-stat strong{font-size:10px;letter-spacing:-.2px}
 .banner-stat small{margin-top:2px;font-size:7px;line-height:1.2;white-space:normal;max-height:2.4em}
 .map-legend{top:10px;bottom:auto;left:10px;max-width:calc(100vw - 72px)}
 .location-status{top:10px;right:60px;max-width:calc(100vw - 120px)}
 .toast{bottom:calc(100px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){.banner-stat strong{font-size:9px}.banner-stat small{font-size:6.5px}.map-data-banner{padding-left:8px;padding-right:8px}}

/* Cartouche actions and on-demand road legend. */
.map-data-banner .banner-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid #edf0ec}
.map-data-banner .poi-controls{position:static;top:auto;right:auto;bottom:auto;left:auto;transform:none;width:auto;max-width:100%;display:flex;align-items:center;gap:5px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;white-space:normal}
.map-data-banner .poi-controls>span{padding:0 4px 0 0;font-size:8px}
.map-data-banner .poi-toggle{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #e9ece7;border-radius:999px;background:#fff;color:#66736a;font-size:9px;white-space:nowrap}
.map-data-banner .poi-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.map-data-banner .poi-toggle.active{background:#edf4ed;color:#286943;border-color:#d8e7d9}
.banner-legend-details{margin-left:auto;color:#68756c;font-size:9px}
.banner-legend-details summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #e9ece7;border-radius:999px;background:#fff;white-space:nowrap}
.banner-legend-details summary::-webkit-details-marker{display:none}
.banner-legend-details summary::before{content:'i';display:grid;place-items:center;width:14px;height:14px;border:1px solid #819087;border-radius:50%;font:600 9px/1 sans-serif;color:#819087}.banner-legend-details summary::after{content:none}
.banner-legend-details[open]{flex-basis:100%;margin-left:0}
.banner-route-legend{position:static;margin-top:6px;padding-top:7px;border-top:1px solid #edf0ec}
.banner-route-legend #routeTypes{display:flex;flex-wrap:wrap;gap:5px 12px}
.map-data-banner .poi-notice{position:static;top:auto;right:auto;bottom:auto;left:auto;transform:none;max-width:none;padding:4px 0 0;background:transparent;border-radius:0;color:#68756c;font-size:9px;white-space:normal;text-align:left;pointer-events:none}
#poiControls[hidden],#poiNotice[hidden],#mapLegendDetails[hidden],#routeTypeLegend[hidden]{display:none!important}
@media(max-width:760px){
 .map-data-banner .banner-tools{justify-content:flex-start;gap:5px;margin-top:6px;padding-top:6px}
 .map-data-banner .poi-controls{flex:1 1 100%;gap:4px;flex-wrap:nowrap}
 .map-data-banner .poi-controls>span{font-size:7px;letter-spacing:.5px}
 .map-data-banner .poi-toggle{gap:3px;padding:5px 6px;font-size:8px}
 .map-data-banner .poi-toggle svg{width:14px;height:14px}
 .banner-legend-details{margin:0}
 .banner-legend-details summary{padding:4px 7px;font-size:8px}
 .banner-route-legend .route-type{font-size:8px}
 .map-data-banner .poi-notice{font-size:8px}
}

/* In the trip overview, place speed below the distance/elevation totals. */
.trip-overview{display:flex;flex-direction:column}
.trip-overview>.overview-title{order:0}
.trip-overview>.overview-stats,.trip-overview>.empty-overview{order:1}
.trip-overview>.speed-config{order:2}
.trip-overview>.overview-estimate{order:3}
.trip-overview>.overview-section-head{order:4}
.trip-overview>#stageListGlobal{order:5}
.trip-overview>.add-stage{order:6}
.trip-overview>#exportTripBtn{order:7}
.trip-overview>.overview-note{order:8}

/* Les chiffres détaillés sont regroupés dans le cartouche de la carte. */
.route-panel>#stats,.route-panel .stage-speed-time{display:none!important}
.stage-date-control{margin:12px 0 14px;padding-bottom:12px;border-bottom:1px solid #f0f1ef}.stage-date-control label{display:block;margin:0 0 6px;font-size:9px;font-weight:700;letter-spacing:1px;color:#98a39b}.stage-date-input{width:100%;border:1px solid #e8ece7;border-radius:8px;background:#fff;padding:9px 10px;color:var(--ink);font:12px 'DM Sans',sans-serif}.stage-date-input:focus{outline:2px solid #cfe2d2;border-color:#80a887}

/* Cartouche de carte plus compact et légèrement translucide. */
.map-data-banner{width:min(660px,calc(100% - 36px));padding:10px 13px 11px;background:rgba(255,255,255,.75);border-color:rgba(255,255,255,.78);border-radius:14px;box-shadow:0 5px 20px #20352c20;backdrop-filter:blur(9px)}
.map-data-banner .banner-heading{margin-bottom:7px}
.map-data-banner .banner-heading strong{font-size:13px}
.map-data-banner .banner-stat strong{font-size:14px}
.map-data-banner .banner-stat small{font-size:8px}
.map-data-banner .banner-tools{margin-top:6px;padding-top:6px}
@media(max-width:760px){
 .map-data-banner{width:auto;padding:7px 9px calc(7px + env(safe-area-inset-bottom));border-radius:12px}
 .map-data-banner .banner-heading{margin-bottom:4px}
 .map-data-banner .banner-heading strong{font-size:11px}
 .map-data-banner .banner-stat strong{font-size:9px}
 .map-data-banner .banner-stat small{font-size:6.5px}
 .map-data-banner .banner-tools{margin-top:5px;padding-top:5px}
}

@media(max-width:760px){
 .leaflet-control-zoom{display:none!important}
 .mobile-trips-button{position:absolute;top:10px;left:10px;z-index:560;display:inline-flex;align-items:center;gap:5px;height:38px;padding:0 11px;border:1px solid #e2e8e2;border-radius:999px;background:#ffffffed;box-shadow:0 2px 10px #20352c20;color:#53665a;font-size:11px;font-weight:600}
 .mobile-trips-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mobile-trips-button[hidden]{display:none!important}
}
@media(min-width:761px){.mobile-trips-button{display:none!important}}
