.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(../media/layers.3muxcl8sz6330.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(../media/layers-2x.23wrxu3xxu9-i.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(../media/marker-icon.1le94j_pe_ih1.png)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
:root{--ink:#18212f;--muted:#657084;--line:#dfe4ec;--surface:#fff;--canvas:#f4f6f9;--brand:#214d75;--brand-dark:#183a59;--accent:#df8a28;--danger:#b42318;--success:#177245;color:var(--ink);background:var(--canvas);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--canvas);margin:0}a{color:inherit}button,input,textarea,select{font:inherit}.app-shell{grid-template-columns:245px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#fff;background:var(--brand-dark);flex-direction:column;height:100vh;padding:28px 20px 20px;display:flex;position:sticky;top:0}.sidebar-brand{align-items:baseline;gap:10px;margin:0 8px 28px;text-decoration:none;display:flex}.sidebar-brand span{letter-spacing:.06em;font-size:2rem;font-weight:850}.sidebar-brand small{color:#c6d5e4}.sidebar nav{gap:6px;display:grid}.sidebar nav a{color:#e9f0f7;border-radius:8px;padding:11px 12px;text-decoration:none}.sidebar nav a:hover{background:#ffffff1a}.sidebar-user{color:#c6d5e4;overflow-wrap:anywhere;border-top:1px solid #ffffff2e;gap:8px;margin-top:auto;padding:16px 8px 0;font-size:.78rem;display:grid}.nav-sign-out{color:#fff;cursor:pointer;background:0 0;border:0;width:fit-content;padding:0;text-decoration:underline}.app-content{min-width:0}.page-content{max-width:1240px;margin:0 auto;padding:36px 40px 64px}.page-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;display:flex}.page-header h1{margin:0 0 6px;font-size:1.8rem}.page-header p{color:var(--muted);margin:0}.page-header.compact{margin-bottom:16px}.page-header.compact h2{margin-bottom:4px}.card{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:22px;box-shadow:0 1px 2px #1420300a}.card h2{margin:0 0 16px;font-size:1.05rem}.grid{gap:18px;display:grid}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.stat-card{padding:18px 20px}.stat-card strong{margin-top:7px;font-size:1.8rem;display:block}.stat-card span{color:var(--muted);font-size:.88rem}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.stack{gap:14px;display:grid}.button{border:1px solid var(--line);min-height:40px;color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;padding:9px 15px;font-weight:650;text-decoration:none;display:inline-flex}.button:hover{filter:brightness(.97)}.button-primary{color:#fff;border-color:var(--brand);background:var(--brand)}.button-danger{color:var(--danger);border-color:#f2c7c3}.button-large{min-height:48px;padding-inline:22px}.table-wrap{border:1px solid var(--line);background:#fff;border-radius:12px;overflow-x:auto}.data-table{border-collapse:collapse;width:100%}.data-table th,.data-table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:13px 15px}.data-table th{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;background:#f9fafc;font-size:.78rem}.data-table tr:last-child td{border-bottom:0}.data-table a{color:var(--brand);font-weight:700}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.field{gap:6px;display:grid}.field-full{grid-column:1/-1}.field label{font-size:.84rem;font-weight:700}.field input,.field textarea,.field select{background:#fff;border:1px solid #cbd3df;border-radius:8px;width:100%;padding:10px 11px}.field textarea{resize:vertical;min-height:90px}.form-intro{margin:-8px 0 18px}.suggestion-field small{min-height:1.2em;color:var(--muted)}.suggestions{background:#fff;border:1px solid #b8c4d3;border-radius:8px;margin-top:-2px;display:grid;overflow:hidden;box-shadow:0 8px 24px #1420301a}.suggestions button{border:0;border-bottom:1px solid var(--line);min-height:48px;color:var(--ink);cursor:pointer;text-align:left;background:#fff;gap:3px;padding:10px 12px;display:grid}.suggestions button:last-child{border-bottom:0}.suggestions button:hover,.suggestions button:focus-visible{background:#edf3f8;outline:none}.suggestions span{color:var(--muted);font-size:.82rem}.form-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.search-form{gap:8px;display:flex}.search-form input{border:1px solid #cbd3df;border-radius:8px;min-width:260px;padding:9px 11px}.badge{color:#425066;background:#edf2f7;border-radius:999px;align-items:center;width:fit-content;padding:4px 8px;font-size:.76rem;font-weight:750;display:inline-flex}.badge-danger{color:#8d2118;background:#fee9e7}.badge-warning{color:#85520a;background:#fff2d5}.badge-success{color:#12603a;background:#e2f5ea}.empty-state{text-align:center;color:var(--muted);padding:36px 20px}.muted{color:var(--muted)}.error-box{color:#8d2118;background:#fee9e7;border-radius:8px;margin-bottom:16px;padding:12px 14px}.success-box{color:#12603a;background:#e2f5ea;border-radius:8px;margin-bottom:16px;padding:12px 14px}.section-gap{margin-top:20px}.wide-page{max-width:1440px}.contract-summary dl{grid-template-columns:max-content 1fr;gap:10px 18px;margin:0;display:grid}.contract-summary dt{color:var(--muted)}.contract-summary dd{margin:0;font-weight:700}.installation-map-shell{gap:7px;margin-top:18px;display:grid;position:relative}.installation-map-shell>a{width:fit-content;color:var(--brand);font-size:.82rem;font-weight:700}.installation-map{border:1px solid var(--line);background:#d9e2ec;border-radius:9px;width:100%;height:300px;overflow:hidden}.installation-map>*{width:100%;height:100%;display:block}.map-status{z-index:1;color:var(--muted);white-space:nowrap;background:#ffffffeb;border-radius:7px;padding:8px 10px;font-size:.82rem;position:absolute;top:100px;left:50%;translate:-50%}.equipment-editor{grid-template-columns:1fr 1.4fr 1fr auto;align-items:end;gap:10px;display:grid}.money-input{background:#fff;border:1px solid #cbd3df;border-radius:8px;align-items:center;display:flex;overflow:hidden}.money-input input{border:0;min-width:0}.money-input span{color:var(--muted);padding:0 12px}.inline-actions{flex-wrap:wrap;gap:8px;display:flex}.inline-actions form{gap:6px;display:flex}.inline-actions input{border:1px solid #cbd3df;border-radius:8px;min-height:40px;padding:8px}.alert-row{border:1px solid var(--line);border-radius:9px;justify-content:space-between;align-items:center;gap:16px;padding:12px;text-decoration:none;display:flex}.alert-row span:first-child{gap:3px;display:grid}.alert-row small{color:var(--muted)}.alert-row .overdue{color:var(--danger);font-weight:800}.contract-preview-shell{border:1px solid var(--line);background:#dfe4ea;border-radius:12px;overflow:hidden}.preview-toolbar{color:#fff;background:#26394c;justify-content:space-between;align-items:center;gap:14px;padding:12px 16px;display:flex}.contract-frame{background:#fff;border:0;width:100%;height:min(78vh,980px);display:block}.document-version{border:1px solid var(--line);border-radius:9px;justify-content:space-between;align-items:center;gap:16px;padding:12px;display:flex}.document-version>span:first-child{gap:3px;display:grid}.document-version small{color:var(--muted)}.document-version-expand{border:1px solid var(--line);border-radius:9px;overflow:hidden}.document-version-expand summary{cursor:pointer;justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:12px;list-style:none;display:flex}.document-version-expand summary::-webkit-details-marker{display:none}.document-version-expand summary:after{content:"Afficher";color:var(--brand);font-size:.82rem;font-weight:750}.document-version-expand[open] summary:after{content:"Réduire"}.document-version-expand .document-version{border:0;padding:0}.document-frame{border:0;border-top:1px solid var(--line);background:#e8ebef;width:100%;height:min(72vh,900px);display:block}.login-page{background:linear-gradient(145deg,#183a59,#2d628f);place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{text-align:center;background:#fff;border-radius:18px;width:min(440px,100%);padding:42px;box-shadow:0 24px 70px #03132147}.brand-mark{color:var(--brand);letter-spacing:.08em;margin-bottom:10px;font-size:2.7rem;font-weight:900}.login-card h1{margin:0 0 10px}.login-card p{color:var(--muted);margin:0 0 28px}@media (max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;padding:16px 20px;position:static}.sidebar-brand{margin:0 0 12px}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav a{white-space:nowrap}.sidebar-user{display:none}.page-content{padding:28px 20px 48px}.stats-grid,.two-columns,.form-grid{grid-template-columns:1fr}.field-full{grid-column:auto}.equipment-editor{border:1px solid var(--line);border-radius:10px;grid-template-columns:1fr;padding:14px}.equipment-editor .button-danger{width:44px}.contract-frame{height:68vh}}@media (max-width:600px){.sidebar{padding-inline:14px}.sidebar nav{margin-inline:-4px;padding-bottom:4px}.sidebar nav a{align-items:center;min-height:44px;display:inline-flex}.page-content{padding:22px 14px 40px}.page-header{flex-direction:column;align-items:stretch;margin-bottom:20px}.page-header>.button{width:100%}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:1.45rem}.card{border-radius:10px;padding:16px}.search-form{flex-direction:column}.search-form input{width:100%;min-width:0;min-height:44px}.button{min-height:44px}.form-actions{flex-direction:column-reverse}.form-actions .button{width:100%}.inline-actions,.inline-actions form{flex-direction:column;align-items:stretch}.inline-actions .button,.inline-actions input{width:100%}.preview-toolbar{flex-direction:column;align-items:stretch}.preview-toolbar .button{width:100%}.contract-frame{height:62vh}.contract-summary dl{grid-template-columns:1fr;gap:3px}.contract-summary dd{margin-bottom:9px}.alert-row{align-items:flex-start}.document-version{flex-direction:column;align-items:flex-start}.document-version-expand summary{align-items:flex-start}.document-frame{height:62vh}}
