/* Background video enhancement: existing image remains the poster/fallback. */
.v3-video-host,.hero-img.sc-video-host{position:relative;isolation:isolate;overflow:hidden}
.v3-video-host>.sc-background-video,.hero-img.sc-video-host>.sc-background-video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;opacity:0;z-index:1!important;pointer-events:none;transition:opacity .35s ease}
.v3-video-host.sc-video-playing>.sc-background-video,.hero-img.sc-video-host.sc-video-playing>.sc-background-video{opacity:1!important}
.v3-video-host>img:not(.sc-background-video),.hero-img.sc-video-host>img{position:relative;z-index:0}
.v3-video-host>.v3-photo-tag,.v3-video-host>.v3-badge{z-index:3!important}
.v3-video-host::after,.hero-img.sc-video-host::after{z-index:2!important;pointer-events:none}
.hero-img.sc-video-host>.hero-caption,.hero-img.sc-video-host>.hero-stamp{z-index:3!important}
@media(prefers-reduced-motion:reduce){.sc-background-video{display:none!important}}

/* Full-bleed hero background, with foreground copy above the moving image. */
.site-v3 .v3-hero,.brand-v3 .hero{position:relative;isolation:isolate;overflow:hidden;background:#173a34!important;padding:0!important}
.site-v3 .v3-hero-layout,.brand-v3 .hero-grid{position:static!important;display:flex!important;align-items:center;min-height:650px;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.site-v3 .v3-hero-photo.sc-video-host,.brand-v3 .hero-img.sc-video-host{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;z-index:-1!important;border-radius:0!important}
.sc-video-host>img{width:100%!important;height:100%!important;object-fit:cover!important}
.site-v3 .v3-hero-photo.sc-video-host:after,.brand-v3 .hero-img.sc-video-host:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,24,20,.88),rgba(8,24,20,.40))!important;z-index:2!important}
.site-v3 .v3-hero-copy,.brand-v3 .hero-copy{position:relative;z-index:4;background:transparent!important;width:100%;max-width:800px;padding:80px 32px!important}
.site-v3 .v3-hero h1,.brand-v3 .hero h1,.site-v3 .v3-hero h1 span,.brand-v3 .hero h1 span{color:#fff!important;text-shadow:0 2px 18px #0006}
.site-v3 .v3-hero-lead,.brand-v3 .hero-copy p,.site-v3 .v3-hero-note,.site-v3 .v3-breadcrumb,.site-v3 .v3-breadcrumb a,.site-v3 .v3-eyebrow,.brand-v3 .hero .kicker{color:#fff!important}
.sc-video-host .v3-badge,.sc-video-host .v3-photo-tag,.sc-video-host .hero-stamp{display:none!important}
@media(max-width:860px){.site-v3 .v3-hero-layout,.brand-v3 .hero-grid{min-height:620px!important;justify-content:center;align-items:center}.site-v3 .v3-hero-copy,.brand-v3 .hero-copy{padding:65px 12px!important}.site-v3 .v3-hero-photo.sc-video-host:after,.brand-v3 .hero-img.sc-video-host:after{background:rgba(8,24,20,.64)!important}}

/* Persistent viewport background: one video, outside all scrolling containers. */
html{background:#102c26}
body.sc-fixed-active{background:transparent!important;isolation:isolate}
.sc-fixed-layer{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#102c26 url('/images/canape-ai.jpg') center/cover no-repeat}
.sc-fixed-layer .sc-background-video{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;opacity:0;transition:opacity .35s}
.sc-fixed-layer.sc-video-playing .sc-background-video{opacity:1}
.sc-fixed-layer:after{content:"";position:absolute;inset:0;background:rgba(8,24,20,.48);pointer-events:none}
.sc-fixed-active .hero,.sc-fixed-active .v3-hero,.sc-fixed-active main{background:transparent!important}
.sc-fixed-active .hero-img.sc-video-host,.sc-fixed-active .v3-hero-photo.sc-video-host{display:none!important}
.sc-fixed-active main>section:not(.hero):not(.v3-hero){background:rgba(247,245,240,.82)!important}
.sc-fixed-active main>section.v3-dark,.sc-fixed-active main>section.v3-featureline,.sc-fixed-active main>section.district,.sc-fixed-active main>section.sc-landing-strip{background:rgba(16,44,38,.80)!important}
.sc-fixed-active .v3-split-content,.sc-fixed-active .showcase-copy{background:transparent!important}
.sc-fixed-active .v3-card,.sc-fixed-active .option-card,.sc-fixed-active .estimate-card{background:rgba(255,255,255,.92)!important}
.sc-fixed-active .v3-footer,.sc-fixed-active .footer{background:rgba(16,44,38,.86)!important}
.sc-fixed-active .v3-head{background:rgba(250,249,245,.91)!important}
@media(prefers-reduced-motion:reduce){.sc-fixed-layer video{display:none!important}}

/* Clear cinema glass: keep the moving image visible between content panels. */
body.sc-fixed-active{margin:0;color:#fff!important}
.sc-fixed-layer:after{background:rgba(5,18,16,.22)!important}
.sc-fixed-layer video{filter:none!important}
body.sc-fixed-active main>section,body.sc-fixed-active .section,body.sc-fixed-active .showcase,body.sc-fixed-active .sc-proof,body.sc-fixed-active .bottom-cta,body.sc-fixed-active .sc-landing-strip,body.sc-fixed-active .v3-closing,body.sc-fixed-active .v3-featureline,body.sc-fixed-active .marquee{background:transparent!important;box-shadow:none!important}
.sc-fixed-active :is(.titlebar,.v3-section-head,.estimate-text,.showcase-copy,.v3-split-content,.hero-copy,.v3-hero-copy,.sc-proof-lead,.guide-prose){color:#fff!important;text-shadow:0 1px 5px #000,0 2px 12px #0009}
.sc-fixed-active :is(h1,h2,h3,.kicker,.v3-eyebrow,.sc-eyebrow,.section-sub,.v3-section-desc,.v3-gallery-note,.seo-helper,.sc-price-note,.hero-meta,.guide-prose,.guide-prose h2,.guide-links a){color:#fff!important;text-shadow:0 1px 5px #000,0 2px 12px #0009}
.sc-fixed-active :is(.v3-card,.option-card,.estimate-card,.step,.v3-step,.seo-service-links>a,.areas>a,.v3-areas>a,.faq details,.v3-faq details,.sc-photo figcaption,.v3-featureline-grid>div,.mini-stat){background:rgba(9,28,25,.66)!important;border:1px solid rgba(255,255,255,.32)!important;color:#fff!important;box-shadow:0 8px 24px #0002!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.sc-fixed-active :is(.v3-card,.option-card,.estimate-card,.step,.v3-step,.seo-service-links>a,.faq details,.v3-faq details,.sc-photo figcaption,.v3-featureline-grid>div) :is(h2,h3,p,span,strong,small,b,summary,label,.legal,.v3-price,.v3-card-no){color:#fff!important}
.sc-fixed-active :is(.v3-price,.v3-card-no,.step-index,.seo-service-links>a b){color:#ffe1a1!important}
.sc-fixed-active .estimate-card :is(input,select,textarea){background:#fff!important;color:#173a34!important}
.sc-fixed-active .estimate-card :is(.estimate-row,.totalbar,.counter){background:rgba(9,28,25,.48)!important;color:#fff!important}
.sc-fixed-active .estimate-card .counter button{background:#fff!important;color:#173a34!important}
.sc-fixed-active .v3-btn-outline{background:rgba(9,28,25,.65)!important;color:#fff!important;border-color:#ffffff80!important}
.sc-fixed-active .v3-head{background:rgba(9,28,25,.82)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sc-fixed-active .v3-head :is(.v3-brand-text strong,.v3-brand-text small,.v3-nav-links a,.v3-hamb){color:#fff!important}
.sc-fixed-active .v3-topline,.sc-fixed-active .v3-footer,.sc-fixed-active .footer{background:rgba(9,28,25,.70)!important}
.sc-fixed-active .guide-table{background:rgba(9,28,25,.72)!important;color:#fff!important}
.sc-fixed-active .guide-table td{color:#fff!important}
@media(max-width:860px){.sc-fixed-active .v3-nav-links{background:#102c26!important}.sc-fixed-layer:after{background:rgba(5,18,16,.25)!important}}

/* Estimator: clear unit prices and compact mobile controls. */
body.sc-fixed-active #tarifs .estimate-card{background:rgba(9,28,25,.83)!important;padding:22px 16px!important}
body.sc-fixed-active #tarifs .estimate-card .estimate-row{background:transparent!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 0!important;border-bottom:1px solid #ffffff40!important}
body.sc-fixed-active #tarifs .estimate-row strong{font-size:16px!important;line-height:1.35;color:#fff!important}
body.sc-fixed-active #tarifs .estimate-card .estimate-row small{display:block!important;width:max-content;max-width:100%;margin-top:6px;padding:3px 9px;border-radius:6px;background:#ffe1a1!important;color:#142d27!important;font-size:17px!important;font-weight:800!important;line-height:1.4;text-shadow:none!important}
body.sc-fixed-active #tarifs .estimate-row .counter{display:flex!important;align-items:center;gap:7px;background:transparent!important}
body.sc-fixed-active #tarifs .counter button{width:38px!important;height:38px!important;flex:0 0 38px;border-radius:10px!important;font-size:21px!important}
body.sc-fixed-active #tarifs .counter output{min-width:25px;text-align:center;color:white!important;font-size:18px!important;font-weight:800}
body.sc-fixed-active #tarifs .counter input{width:48px!important;min-width:0!important;padding:4px!important;text-align:center}
body.sc-fixed-active #tarifs .totalbar{background:transparent!important}
body.sc-fixed-active #tarifs #total{color:#ffe1a1!important;font-weight:900!important}
body.sc-fixed-active #tarifs #sendEstimate{background:#087a43!important;color:#fff!important;white-space:normal!important}
@media(max-width:420px){body.sc-fixed-active #tarifs .estimate-card{padding:18px 12px!important}body.sc-fixed-active #tarifs .estimate-row{gap:8px}body.sc-fixed-active #tarifs .counter{gap:5px!important}body.sc-fixed-active #tarifs .counter button{width:34px!important;height:36px!important;flex-basis:34px}body.sc-fixed-active #tarifs .estimate-row strong{font-size:14px!important}}
