/* Accueil fixe : uniquement la vue maison + panneaux + voiture, sans film */
.ce-film .scroll-scrub__story{display:none!important}
.ce-film .scroll-scrub__stage{position:relative!important;height:100svh!important;min-height:560px}
.ce-film [data-scroll-scrub-layer]:not(:first-child){display:none!important}
.ce-film [data-scroll-scrub-layer]:first-child{opacity:1!important;visibility:visible!important}
.ce-film .ce-service-caption,.ce-film .ce-auto-dots,.ce-film .scroll-scrub__route,.ce-film .scroll-scrub__progress,.ce-film .ce-view-controls,.ce-film .ce-loop-video,.ce-film video{display:none!important}
.hs-cta{position:absolute;left:50%;bottom:clamp(110px,16vh,170px);transform:translateX(-50%);z-index:5;display:inline-flex;align-items:center;gap:12px;padding:18px 30px;border:0;border-radius:999px;background:#f39a1e;color:#141414;font:700 17px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap;box-shadow:0 18px 40px -12px rgba(243,154,30,.75),0 0 0 6px rgba(255,255,255,.35);animation:hsin .8s .3s cubic-bezier(.3,1.5,.5,1) both,hspulse 2.6s 1.4s ease-in-out infinite}
.hs-cta svg{width:22px;height:22px;animation:hssun 8s linear infinite}
.hs-cta:hover{background:#ffab38}
.hs-sub{position:absolute;left:50%;bottom:calc(clamp(110px,16vh,170px) - 34px);transform:translateX(-50%);z-index:5;color:#fff;font-size:13.5px;font-weight:600;text-shadow:0 1px 8px rgba(0,0,0,.6);white-space:nowrap}
@keyframes hsin{from{opacity:0;transform:translateX(-50%) translateY(24px) scale(.9)}to{opacity:1;transform:translateX(-50%)}}
@keyframes hspulse{0%,100%{box-shadow:0 18px 40px -12px rgba(243,154,30,.75),0 0 0 6px rgba(255,255,255,.35)}50%{box-shadow:0 18px 40px -12px rgba(243,154,30,.75),0 0 0 14px rgba(255,255,255,0)}}
@keyframes hssun{to{transform:rotate(360deg)}}
@media (max-width:860px){.ce-film .scroll-scrub__stage{height:auto!important;min-height:0}.hs-cta{font-size:15.5px;padding:16px 24px}.hs-sub{color:#666;text-shadow:none;font-size:12.5px}}
/* PC : plus aucun mouvement, uniquement l'image de départ */
.ce-film{height:auto!important;min-height:0!important}
.ce-film .scroll-scrub__stage{position:relative!important;top:auto!important}
.ce-film:after,.ce-film-story .scroll-scrub:after,.ce-film .scroll-scrub__story:after{content:none!important;display:none!important;height:0!important}
/* Mobile : vue maison + carport + borne, avec le flux lumineux (hero-fx suit le recadrage) */
@media (max-width:860px){
 .ce-film .scroll-scrub__media{position:relative!important;inset:auto!important;height:min(86vw,360px)!important;min-height:0!important;overflow:hidden!important}
 .ce-film [data-scroll-scrub-layer]:first-child{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important}
 .ce-film [data-scroll-scrub-layer]:first-child picture{position:absolute;inset:0;display:block}
 .ce-film [data-scroll-scrub-layer]:first-child .scroll-scrub__poster{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:76% 50%!important;visibility:visible!important;transform:none!important}
}
@media (max-width:860px),(hover:none) and (pointer:coarse){
 html body .ce-film .scroll-scrub__layer:first-child .scroll-scrub__poster:not(#_z):not(#_y):not(#_x){transform:none!important;animation:none!important;object-fit:cover!important;object-position:76% 50%!important;-webkit-mask-image:linear-gradient(#000 82%,transparent)!important;mask-image:linear-gradient(#000 82%,transparent)!important}
}
@media (max-width:860px){.ce-film .scroll-scrub__media{margin-top:66px!important;height:min(80vw,320px)!important}
 html body .ce-film .scroll-scrub__layer:first-child .scroll-scrub__poster:not(#_z):not(#_y):not(#_x){object-position:72% 50%!important}}
@media (max-width:860px){.ce-film .scroll-scrub__media{height:min(74vw,290px)!important}
 html body .ce-film .scroll-scrub__layer:first-child .scroll-scrub__poster:not(#_z):not(#_y):not(#_x){object-position:84% 50%!important}}

/* Mobile : pas de fiche projet au chargement + phrase d'accroche dans le héro */
.hs-pitch{display:none}
@media (max-width:860px){
 .hs-pitch{display:block;position:absolute;left:20px;right:20px;z-index:5;margin:0;text-align:center}
 .hs-pitch .hs-t{display:block;font:700 27px/1.12 "Space Grotesk",system-ui,sans-serif;letter-spacing:-.03em;color:#141414}
 .hs-pitch .hs-t em{font-style:normal;color:#f39a1e}
 .hs-pitch .hs-s{display:block;margin-top:8px;font-size:14px;line-height:1.45;color:#555}
}
@media (max-width:860px){html:not([data-hs-sheet]) .ce-project-sheet{display:none!important}}
@media (max-width:860px){
 .hs-pitch{left:14px;right:14px;padding:18px 14px;border-radius:24px;background:radial-gradient(closest-side,rgba(10,14,22,.42),rgba(10,14,22,0));pointer-events:none}
 .hs-pitch .hs-t{color:#fff;font-size:30px;text-shadow:0 2px 14px rgba(0,0,0,.55),0 1px 2px rgba(0,0,0,.6)}
 .hs-pitch .hs-t em{color:#ffb23d}
 .hs-pitch .hs-s{color:#fff;font-weight:600;font-size:13.5px;text-shadow:0 1px 8px rgba(0,0,0,.7)}
}
/* Mobile : icône mail visible dans l'en-tête (renvoie vers la section contact) */
@media (max-width:760px){
 html body .ce-pill-header .ce-header-email{display:flex!important;width:40px!important;height:40px!important;flex-shrink:0}
 html body .ce-pill-header .ce-header-email svg{width:18px;height:18px}
}
/* Logo Corse : un peu plus grand dans l'en-tête PC pour que le contour de l'île reste lisible */
@media (min-width:761px){html body .ce-pill-header .board-nav-brand img{height:56px!important;width:auto!important}html body .ce-pill-header .board-nav-brand{width:auto!important}}
/* Bouton flottant étude solaire, à la place de « Parlons de votre projet » */
html body .ce-project-launcher{display:none!important}
.hs-float{position:fixed;z-index:66;right:max(24px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:10px;padding:14px 22px 14px 16px;border:0;border-radius:999px;background:#f39a1e;color:#141414;font:700 15px/1 "Inter Tight",Helvetica Neue,Arial,sans-serif;cursor:pointer;white-space:nowrap;box-shadow:0 14px 34px -10px rgba(120,60,0,.55),0 0 0 4px rgba(255,255,255,.6);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .25s,transform .25s,background .2s}
.hs-float.on{opacity:1;transform:none;pointer-events:auto}
.hs-float:hover{background:#ffab38}
.hs-float:focus-visible{outline:3px solid #141414;outline-offset:3px}
.hs-float svg{width:20px;height:20px;flex:none}
@media (max-width:760px){.hs-float{right:auto;left:50%;transform:translate(-50%,16px);bottom:max(14px,env(safe-area-inset-bottom));padding:13px 18px 13px 14px;font-size:14px}.hs-float.on{transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.hs-float{transition:none}}

/* Apparition douce du haut de page (titre → sous-titre → bouton → mention) */
.hs-pitch .hs-t,.hs-pitch .hs-s,.hs-cta,.hs-sub{opacity:0}
.hs-cta{animation:none}
.hs-show .hs-pitch .hs-t{animation:hsup .8s cubic-bezier(.22,1,.36,1) both}
.hs-show .hs-pitch .hs-s{animation:hsup .8s .14s cubic-bezier(.22,1,.36,1) both}
.hs-show .hs-cta{animation:hsupc .8s .3s cubic-bezier(.22,1,.36,1) both,hspulse 2.6s 1.8s ease-in-out infinite}
.hs-show .hs-sub{animation:hsupc .7s .45s cubic-bezier(.22,1,.36,1) both}
.hs-now .hs-pitch .hs-t,.hs-now .hs-pitch .hs-s,.hs-now .hs-sub{animation:none!important;opacity:1}
.hs-now .hs-cta{animation:hspulse 2.6s ease-in-out infinite!important;opacity:1}
@keyframes hsup{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes hsupc{from{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.hs-pitch .hs-t,.hs-pitch .hs-s,.hs-cta,.hs-sub{opacity:1!important;animation:none!important}}

/* Mobile : calque du haut (titre, bouton, mention) posé hors de la page React, aux mêmes coordonnées que la photo */
#hs-layer{display:none}
@media (max-width:860px){
 #hs-layer{display:block;position:absolute;top:0;left:0;right:0;height:0;z-index:6;--hsT:66px;--hsH:min(74vw,290px)}
 #hs-layer .hs-pitch{top:calc(var(--hsT) + var(--hsH) / 2)!important;transform:translateY(-50%)}
 #hs-layer .hs-cta{top:calc(var(--hsT) + var(--hsH) + 16px)!important;bottom:auto!important}
 #hs-layer .hs-sub{top:calc(var(--hsT) + var(--hsH) + 16px + 55px + 12px)!important;bottom:auto!important}
 .ce-film .hs-pitch,.ce-film .hs-cta,.ce-film .hs-sub{display:none!important}
}
@media (max-width:860px){ #hs-layer .hs-sub{margin:0} }
/* Les avis Google arrivent en fondu au lieu d'apparaître d'un coup */
.ce-hero-reviews{animation:hsfade .7s ease both}
@keyframes hsfade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ce-hero-reviews{animation:none}}
/* Mobile : logo Casa Energia plus grand dans l'en-tête */
@media (max-width:760px){html body .ce-pill-header .board-nav-brand img:not(#_z){height:48px!important;width:auto!important;max-width:150px}html body .ce-pill-header .board-nav-brand{width:auto!important;padding-left:12px!important;padding-right:12px!important}}

/* Titres du héro : vrais H1 / H2, aussi sur PC */
.hs-pitch .hs-t,.hs-pitch .hs-s{margin:0}
@media (min-width:861px){
 .ce-film .hs-pitch{display:block;position:absolute;left:50%;transform:translateX(-50%);width:min(980px,86vw);z-index:5;margin:0;text-align:center;pointer-events:none;
   padding:26px 30px;border-radius:32px;background:radial-gradient(closest-side,rgba(10,14,22,.38),rgba(10,14,22,0))}
 .ce-film .hs-pitch .hs-t{display:block;font:700 clamp(46px,5.2vw,76px)/1.02 "Space Grotesk",system-ui,sans-serif;letter-spacing:-.04em;color:#fff;text-shadow:0 3px 22px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.45);text-wrap:balance}
 .ce-film .hs-pitch .hs-t em{font-style:normal;color:#ffb23d}
 .ce-film .hs-pitch .hs-s{display:block;margin-top:14px;font:600 19px/1.45 "Inter Tight",Helvetica Neue,Arial,sans-serif;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.65)}
}

.hs-t .hs-k{display:block;margin:0 0 .55em;font-size:clamp(12px,1.1vw,15px);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.88);-webkit-text-fill-color:rgba(255,255,255,.88);text-shadow:0 1px 8px rgba(0,0,0,.45)}
