/* Étude solaire : adresse → vue satellite → simulateur plein écran */
.ea{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,20,20,.55);opacity:0;pointer-events:none;transition:opacity .2s ease;font-family:"Inter Tight",Helvetica Neue,Arial,sans-serif;color:#161616}
.ea.on{opacity:1;pointer-events:auto}
html.ea-open,html.sim-open{overflow:hidden}
.ea-card{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:24px;padding:30px 28px 24px;box-shadow:0 40px 90px -30px rgba(0,0,0,.45);transform:translateY(8px);transition:transform .2s ease}
.ea.on .ea-card{transform:none}
.ea-x{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:#f3eee6;color:#161616;font-size:24px;line-height:1;cursor:pointer}
.ea-k{margin:0 0 8px;font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#c46f00}
.ea h2{margin:0 0 8px;padding-right:40px;font-family:"Space Grotesk",system-ui,sans-serif;font-size:28px;line-height:1.1;font-weight:600;letter-spacing:-.03em}
.ea-p{margin:0 0 20px;font-size:15.5px;line-height:1.5;color:#5f5a52}
.ea-f{position:relative}
.ea-ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;color:#f39a1e;pointer-events:none}
.ea-ic svg{width:100%;height:100%}
#ea-in{width:100%;box-sizing:border-box;height:56px;padding:0 16px 0 46px;border:1.5px solid #e6dfd2;border-radius:14px;font-family:inherit;font-size:16px;color:#161616;background:#fbf8f3;outline:none}
#ea-in:focus{border-color:#f39a1e;background:#fff;box-shadow:0 0 0 4px rgba(243,154,30,.15)}
.ea-ls{list-style:none;margin:6px 0 0;padding:0;border:1px solid #e6dfd2;border-radius:14px;overflow:hidden;display:none}
.ea-ls.on{display:block}
.ea-ls li{display:flex;flex-direction:column;gap:2px;padding:11px 14px;cursor:pointer;border-top:1px solid #f0ebe2}
.ea-ls li:first-child{border-top:0}
.ea-ls li:hover{background:#fbf3e6}
.ea-ls b{font-weight:600;font-size:15px}.ea-ls span{font-size:13px;color:#5f5a52}
.ea-err{margin:10px 0 0;font-size:14px;color:#b3261e}
.ea-b{display:block;width:100%;margin:18px 0 0;height:54px;border:0;border-radius:999px;background:#f39a1e;color:#161616;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer}
.ea-b:hover{background:#ffab38}.ea-b:disabled{opacity:.6;cursor:wait}
.ea-l{display:block;margin:10px auto 0;border:0;background:none;color:#5f5a52;font:inherit;font-size:14.5px;text-decoration:underline;cursor:pointer}
.ea-n{margin:12px 0 0;text-align:center;font-size:12.5px;color:#8a8378}
.ea-a{font-weight:600;color:#161616}
.ea-map{height:min(300px,42dvh);border-radius:16px;overflow:hidden;background:#e9e4da;display:flex;align-items:center;justify-content:center}
.ea-map.leaflet-container,.ea-map.ea-3d{display:block}
.ea-map.ea-3d{height:min(340px,46dvh)}
.ea-pin{cursor:grab}
.ea-ld{margin:0;font-size:14px;color:#5f5a52;text-align:center;padding:0 16px}
.ea-h{margin:10px 0 0;font-size:13.5px;color:#5f5a52}
.ea-pin{color:#f39a1e;filter:drop-shadow(0 3px 4px rgba(0,0,0,.45))}
.ea-pin svg{width:40px;height:40px}
@media (max-width:560px){.ea{align-items:flex-end;padding:0}.ea-card{width:100%;border-radius:22px 22px 0 0;max-height:94dvh;padding:26px 20px calc(20px + env(safe-area-inset-bottom))}.ea h2{font-size:24px}}

/* Simulateur en plein écran */
#simulateur.sm-modal{position:fixed;inset:0;z-index:999;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-top:0}
#simulateur.sm-modal .sm-wrap{padding-top:28px}
.sm-top{display:none}
#simulateur.sm-modal .sm-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;margin:0 -24px;padding:12px 16px 12px 24px;background:rgba(247,242,234,.94);backdrop-filter:blur(8px);border-bottom:1px solid #e6dfd2}
.sm-top-a{display:flex;align-items:center;gap:8px;min-width:0;flex:1;font-size:14.5px}
.sm-top-a svg{width:20px;height:20px;flex:none;color:#f39a1e}
.sm-top-a b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-top-m{border:0;background:none;color:#5f5a52;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;flex:none}
.sm-top-x{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#161616;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.08)}
html.sim-open .hs-float,html.sim-open .board-header,html.sim-open #sq-btn,html.sim-open #luc-hello,html.sim-open .ce-project-sheet,html.ea-open .ce-project-sheet,html.ea-open #sq-btn,html.ea-open #luc-hello,html.ea-open .hs-float{visibility:hidden}
@media (max-width:900px){#simulateur.sm-modal .sm-top{margin:0 -16px;padding-left:16px}}
.ea-map.ea-3d{position:relative}
.ea-chip{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.94);font-size:13.5px;line-height:1.35;color:#161616;box-shadow:0 4px 14px rgba(0,0,0,.18);pointer-events:none}
.ea-chip b{font-weight:700}
.ea-3d .maplibregl-ctrl-bottom-right{bottom:auto;top:0}

/* PC : fiche « étude solaire » dans le héro (remplace « Parlons de votre projet ») */
.ec{display:none}
@media (min-width:861px){
 .ce-project-sheet{display:none!important}
 .has-ec .hs-cta,.has-ec .hs-sub{display:none!important}
 .ec{display:block;position:absolute;left:50%;bottom:56px;transform:translateX(-50%);z-index:6;width:min(1040px,82vw);box-sizing:border-box;padding:26px 30px 22px;border-radius:26px;
   background:rgba(255,255,255,.9);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 30px 70px -30px rgba(0,0,0,.55);font-family:"Inter Tight",Helvetica Neue,Arial,sans-serif;color:#161616;opacity:0}
 .hs-show .ec{animation:ecin .8s .3s cubic-bezier(.22,1,.36,1) both}
 .ec-h{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin:0 0 16px}
 .ec-k{margin:0;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#c46f00}
 .ec-t{margin:0;font-family:"Space Grotesk",system-ui,sans-serif;font-size:26px;line-height:1.15;font-weight:600;letter-spacing:-.025em}
 .ec-ls{position:absolute;left:0;right:0;bottom:calc(100% + 6px);z-index:3;background:#fff;box-shadow:0 18px 40px -16px rgba(0,0,0,.35)}
 .ec-row{position:relative;display:flex;align-items:center;gap:6px;padding:7px;border-radius:999px;background:#fff;border:1.5px solid #ebe3d5;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 12px 30px -18px rgba(60,40,10,.45);transition:border-color .2s,box-shadow .2s}
 .ec-row:focus-within{border-color:#f39a1e;box-shadow:0 0 0 5px rgba(243,154,30,.16),0 12px 30px -18px rgba(60,40,10,.45)}
 .ec-f{position:static;flex:1;min-width:0;display:flex;align-items:center}
 .ec-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;margin-left:4px;border-radius:50%;background:#fff3e2;color:#f39a1e}
 .ec-ic svg{width:22px;height:22px}
 .ec-in{flex:1;min-width:0;height:52px;padding:0 12px;border:0;background:transparent;font-family:inherit;font-size:17px;color:#161616;outline:none}
 .ec-in::placeholder{color:#8f877a}
 .ec-f .ea-loc{margin-right:4px}
 .ec-b{flex:none;display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 24px 0 26px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffad3d,#f39a1e);color:#161616;font-family:inherit;font-size:16.5px;font-weight:700;cursor:pointer;box-shadow:0 10px 24px -12px rgba(243,154,30,.95),inset 0 1px 0 rgba(255,255,255,.45);transition:transform .15s,filter .15s}
 .ec-b:hover{filter:brightness(1.05);transform:translateY(-1px)}
 .ec-b svg{width:20px;height:20px}
 .ec-err{margin:10px 0 0;font-size:14px;color:#b3261e}
 .ec-ok{display:flex;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:14px 0 0;padding:0;font-size:13.5px;color:#4a463f}
 .ec-ok li{display:flex;align-items:center;gap:7px}
 .ec-ok li::before{content:"";width:16px;height:16px;border-radius:50%;background:#1c8a4a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;flex:none}
}
@keyframes ecin{from{opacity:0;transform:translateX(-50%) translateY(20px)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.hs-show .ec{animation:none;opacity:1}}

/* Bouton « Me localiser » */
.ea-loc{flex:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px 0 11px;border:1px solid #ebe3d5;border-radius:999px;background:#faf6ef;color:#3a352e;font:600 14px/1 "Inter Tight",Helvetica Neue,Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.ea-loc:hover{background:#fff3e2;border-color:#f6d6a6;color:#c46f00}
.ea-loc svg{width:18px;height:18px;color:#f39a1e}
.ea-loc.busy svg{animation:ealoc 1s linear infinite}
.ea-loc.busy span::after{content:"…"}
@keyframes ealoc{to{transform:rotate(360deg)}}
.ea .ea-f{display:block}
.ea .ea-f .ea-loc{position:absolute;right:8px;top:8px}
.ea #ea-in{padding-right:150px}
@media (max-width:560px){.ea .ea-f .ea-loc{position:static;display:flex;justify-content:center;width:100%;height:48px;margin-top:10px;font-size:15px}.ea #ea-in{padding-right:16px}.ea .ea-ls{margin-top:6px}}
.ea .ea-f .ea-ic{top:28px}
@media (min-width:861px){
 .ea.ea-wide .ea-card{width:min(1000px,94vw)}
 .ea.ea-wide .ea-map.ea-3d{height:min(560px,58vh)}
 .ea.ea-wide .ea-chip{left:auto;right:14px;bottom:14px;max-width:440px}
 .ea.ea-wide .ea-b{max-width:420px;display:inline-block;margin-right:14px}
 .ea.ea-wide .ea-l{display:inline-block}
 .ec .ec-in:focus,.ec .ec-in:focus-visible{border:0!important;box-shadow:none!important;outline:none!important}
}
/* Boutons de rotation sur la vue 3D */
.ea-rot{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 6px 18px -6px rgba(0,0,0,.35)}
.ea-rot button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;min-width:38px;padding:0;border:0;border-radius:999px;background:transparent;color:#161616;font:700 14px/1 "Inter Tight",Helvetica Neue,Arial,sans-serif;cursor:pointer}
.ea-rot button:hover{background:#f6efe3}
.ea-rot svg{width:19px;height:19px}
.ea-rot .ea-rp{padding:0 16px 0 12px;background:#f39a1e}
.ea-rot .ea-rp:hover{background:#ffab38}
.ea-rot .i-pause{display:none}
.ea-rot.on .i-pause{display:block}.ea-rot.on .i-play{display:none}
@media (min-width:561px){.ea #ea-in{padding-right:230px}}
@media (max-width:560px){.ea-3d .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner{display:none}.ea-3d .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){padding:0;min-height:24px;min-width:24px}}

/* barre du haut du simulateur : logo bien visible, style Apple */
#simulateur.sm-modal .sm-top{background:rgba(255,255,255,.9)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid #e8e8ed!important;padding-top:10px!important;padding-bottom:10px!important;gap:14px!important}
.sm-top-logo{flex:none;display:block;height:46px;width:auto}
.sm-top-a{font-size:14px!important;color:#1d1d1f}.sm-top-a svg{color:#0071e3!important}
.sm-top-m{color:#0071e3!important;text-decoration:none!important;font-weight:500}
.sm-top-x{background:rgba(118,118,128,.12)!important;box-shadow:none!important;width:34px!important;height:34px!important;font-size:20px!important;color:#1d1d1f!important}
@media (max-width:520px){.sm-top-logo{height:40px}.sm-top-a{font-size:13px!important}.sm-top-a svg{display:none}#simulateur.sm-modal .sm-top{gap:10px!important}}
