/* ===== Casa Energia · finition Apple pour tout le site =====
   Neutres (#1d1d1f, #6e6e73, #f5f5f7), un seul bleu pour l'action (#0071e3),
   vert pour l'argent gagné, orange gardé pour la marque (soleil, titre d'accueil). */
html body{--ap-ink:#1d1d1f;--ap-mut:#6e6e73;--ap-ter:#86868b;--ap-line:#e8e8ed;--ap-fill:#f5f5f7;--ap-blue:#0071e3;--ap-blue-h:#0077ed;--ap-green:#248a3d}

/* --- Boutons d'action : pilule bleue --- */
html body :is(.spd-b,.cf-btn,.ea-b,.cb-btn-orange,.ce-project a,.ce-brand-card a,.ce-hero-inquiry button[type=submit],.ce-project-sheet button[type=submit],.board-contact-dialog button[type=submit],.ce-project-send):not(#_a){
  background:var(--ap-blue)!important;border-color:var(--ap-blue)!important;color:#fff!important;font-weight:600!important;box-shadow:none!important;letter-spacing:-.01em}
html body :is(.spd-b,.cf-btn,.ea-b,.cb-btn-orange,.ce-project a,.ce-brand-card a,.ce-project-send):not(#_a):hover{background:var(--ap-blue-h)!important;border-color:var(--ap-blue-h)!important}
html body :is(.cb-btn-orange,.ce-project a,.ce-brand-card a,.ce-project-send):not(#_a) :is(svg,i,span){color:#fff!important;stroke:currentColor}
/* téléphone dans l'en-tête : sobre, bleu */
html body .ce-header-actions .ce-header-phone:not(#_a),html body .ce-subpage-header .ce-subpage-call:not(#_a){background:var(--ap-blue)!important;color:#fff!important;box-shadow:none!important;font-weight:600!important}
html body .ce-header-actions .ce-header-phone:not(#_a):hover{background:var(--ap-blue-h)!important}
html body .ce-header-actions .ce-header-phone:not(#_a) *,html body .ce-subpage-header .ce-subpage-call:not(#_a) *{color:#fff!important}
/* bulle flottante « Parlons de votre projet » */
html body .ce-project-launcher:not(#_a){background:var(--ap-blue)!important;color:#fff!important;box-shadow:0 10px 28px -10px rgba(0,113,227,.55)!important}
html body .ce-project-launcher:not(#_a) *{color:#fff!important}
html body .ce-project-launcher-icon:not(#_a){background:rgba(255,255,255,.18)!important}

/* --- Tuile « Aides & subventions » : carte claire, plus de bloc orange --- */
html body .cb-accent:not(#_a){background:var(--ap-fill)!important;color:var(--ap-ink)!important;border:0!important}
html body .cb-accent:not(#_a) h3{color:var(--ap-ink)!important}
html body .cb-accent:not(#_a) p{color:var(--ap-mut)!important}
html body .cb-accent:not(#_a) .cb-btn{background:var(--ap-blue)!important;color:#fff!important}
html body .cb-accent:not(#_a) .cb-btn *{color:#fff!important}

/* --- Sur-titres : texte gris discret, sans pastille orange --- */
html body :is(#qualifications,#inspirations,#entreprise,.ce-faq-section,#contact,.ce-content-page):not(#_z) :is(.ce-content-kicker,.ce-eyebrow,.ce-kicker){
  background:none!important;padding:0!important;color:var(--ap-mut)!important;font-weight:600!important}
html body :is(#qualifications,#inspirations,#entreprise,.ce-faq-section,#contact,.ce-content-page):not(#_z) :is(.ce-content-kicker,.ce-eyebrow,.ce-kicker):before{display:none!important}
html body #contact.ce-contact:not(#_z) .ce-eyebrow{color:#a1a1a6!important}
/* titres en deux temps : 2e ligne grise, à la Apple */
html body :is(#qualifications,#inspirations,#entreprise,.ce-faq-section,#contact):not(#_z) h2 :is(em,span){color:var(--ap-ter)!important;-webkit-text-fill-color:var(--ap-ter)!important}

/* --- FAQ : « + » neutre --- */
html body .ce-faq-list summary span:not(#_a){background:var(--ap-fill)!important;color:var(--ap-ink)!important;font-weight:500!important}
html body .ce-faq-section:not(#_z) .ce-faq-list details{background:var(--ap-fill)!important}
html body .ce-faq-section:not(#_z) .ce-faq-list details[open]{background:#fff!important;border-color:var(--ap-line)!important;box-shadow:0 12px 30px -24px rgba(0,0,0,.35)!important}

/* --- Fonds : blanc / gris Apple, plus de crème --- */
html body .ce-reviews:not(#_a){background:#fff!important}
html body .ce-site-footer:not(#_a){background:var(--ap-fill)!important;border-top:0!important}
html body .ce-site-footer:not(#_a) *{color:var(--ap-ink)!important;border-color:var(--ap-line)!important}
html body .ce-site-footer:not(#_a) :is(p,small,address,a){color:var(--ap-mut)!important}
html body .ce-site-footer:not(#_a) a:hover{color:var(--ap-ink)!important}
html body .ce-site-footer:not(#_a) h2{color:var(--ap-ink)!important}
html body #contact.ce-contact:not(#_z){background:#000!important}
html body :is(.ce-partner-card,.ce-company-panel,.ce-realization-card,.ce-inspiration-card,.ce-related-services a):not(#_a){border-color:var(--ap-line)!important}
html body #qualifications:not(#_z) .ce-partner-link{color:var(--ap-blue)!important}
html body .ce-content :is(a,summary):focus-visible{outline-color:var(--ap-blue)!important}
@media (min-width:861px){html body :is(#avis,#realisations,.ce-faq-section):not(#_a){background-color:#fff!important}}

/* --- Pages services --- */
html body .ce-content-page:not(#_a) :is(.spd-ch input:checked+span){background:var(--ap-blue)!important;border-color:var(--ap-blue)!important;color:#fff!important}
html body .spd :is(input:not([type=checkbox]),textarea):focus{border-color:var(--ap-blue)!important;box-shadow:0 0 0 4px rgba(0,113,227,.15)!important}
html body :is(.spd-ch span,.spd input:not([type=checkbox]),.spd textarea){background:#fff!important;border-color:#d2d2d7!important}

/* --- Fenêtre « Où se trouve votre maison ? » --- */
html body .ea-k:not(#_a){color:var(--ap-mut)!important}
html body .ea-loc:not(#_a){background:var(--ap-fill)!important;border-color:transparent!important;color:var(--ap-ink)!important}
html body .ea-loc:not(#_a) svg{color:var(--ap-blue)!important}
html body #ea-in:not(#_a){background:var(--ap-fill)!important;border-color:transparent!important}
html body #ea-in:not(#_a):focus{background:#fff!important;border-color:var(--ap-blue)!important;box-shadow:0 0 0 4px rgba(0,113,227,.15)!important}
html body .ea-f:focus-within{box-shadow:none!important}

/* --- Bandeau avis : les puces deviennent la rangée de badges --- */
html body .ce-hr-trust .cebr{margin-top:14px}
html body .ce-hr-badges:not(#_a){display:block!important;margin:8px 24px 0!important}
html body .ce-hr-badges:not(#_a) span{background:none!important;border:0!important;padding:0!important;position:static!important;border-radius:0!important}
html body .ce-hr-badges:not(#_a) span:before{display:none!important}
html body .ce-hr-badges:not(#_a) .cebr{margin:0!important}
html body .ce-hr-badges:not(#_a) .cebr-t{font-size:12px!important;color:var(--ap-ink)!important}
html body #contact.ce-contact:not(#_z):before{background:#1d1d1f!important;background-image:none!important}
html body #entreprise:not(#_z) .ce-company-panel dd a{color:var(--ap-blue)!important}
html body .ce-content .ce-faq-list summary span:not(#_q):not(#_r){background:#e8e8ed!important;color:#1d1d1f!important}

html body .ce-dark-link:not(#_a){background:var(--ap-blue)!important;border-color:var(--ap-blue)!important;color:#fff!important;box-shadow:none!important;font-weight:600!important}
html body .ce-dark-link:not(#_a) *{color:#fff!important}
html body .ce-dark-link:not(#_a):hover{background:var(--ap-blue-h)!important}
html body .ce-page-badges .cebr{max-width:440px;margin:22px 0 4px}
html:has(#page-content),html:has(#page-content) body,html body #page-content:not(#_a){background:#fff!important}
html body #page-content:not(#_a) :is(.ce-kicker,.ce-content-kicker){color:var(--ap-mut)!important}

/* --- « Lancer mon étude solaire gratuite » : pilule jaune dans un anneau de verre, comme « Recevoir mon étude » --- */
html body :is(.hs-cta,.hs-float,.sp-float,.ec-b):not(#_a){
  background:#ffb31f!important;color:#1d1d1f!important;border:0!important;border-radius:980px!important;
  font-weight:600!important;letter-spacing:-.01em!important;
  box-shadow:0 0 0 7px rgba(255,255,255,.92),0 0 0 7.5px rgba(0,0,0,.06),0 18px 38px -14px rgba(0,0,0,.45)!important;
  transition:background .2s,transform .2s cubic-bezier(.22,1,.36,1)!important}
html body :is(.hs-cta,.hs-float,.sp-float,.ec-b):not(#_a):hover{background:#ffbe3d!important}
html body :is(.hs-cta,.hs-float,.sp-float,.ec-b):not(#_a):active{transform:translateX(var(--tx,0)) scale(.97)}
html body :is(.hs-cta,.hs-float,.sp-float,.ec-b):not(#_a) :is(svg,span,i){color:#1d1d1f!important}
html body .hs-show .hs-cta:not(#_a){animation:hsupc .8s .3s cubic-bezier(.22,1,.36,1) both!important}
html body .hs-now .hs-cta:not(#_a){animation:none!important;opacity:1}
html body .hs-cta:not(#_a){--tx:-50%}
html body .sp-float:not(#_a){white-space:nowrap!important;font-size:15px!important}
html body .ec-b:not(#_a){box-shadow:0 0 0 5px rgba(255,255,255,.92),0 0 0 5.5px rgba(0,0,0,.06),0 10px 24px -12px rgba(0,0,0,.4)!important}
/* téléphone de l'en-tête : même jaune que « Lancer mon étude » */
html body .ce-header-actions .ce-header-phone:not(#_a),html body .ce-subpage-header .ce-subpage-call:not(#_a){background:#ffb31f!important;color:#1d1d1f!important;box-shadow:0 0 0 4px rgba(255,255,255,.9),0 0 0 4.5px rgba(0,0,0,.06),0 8px 20px -10px rgba(0,0,0,.4)!important}
html body .ce-header-actions .ce-header-phone:not(#_a):hover,html body .ce-subpage-header .ce-subpage-call:not(#_a):hover{background:#ffbe3d!important}
html body .ce-header-actions .ce-header-phone:not(#_a) *,html body .ce-subpage-header .ce-subpage-call:not(#_a) *{color:#1d1d1f!important}
/* tuile « Aides & subventions » coupée sur mobile : on lui donne la hauteur de son contenu */
@media (max-width:860px){html body .cb-grid .cb-h.cb-accent:not(#_q):not(#_r){grid-row:span 4!important;height:auto!important;justify-content:center}}
@media (max-width:860px) and (max-height:740px){html body .ce-hr-trust.ce-hr-badges:not(#_a){display:none!important}}
html body .cf-check circle{stroke:#34c759!important}html body .cf-check path{stroke:#34c759!important}
html body .cf-tel,html body .cf-box a[href^="tel"]{color:#0071e3!important}
html body .cf-check circle{fill:#eefbf1!important}
html body .cf-box a[href^="tel"],html body [class*=cf-] a[href^="tel"]{color:#0071e3!important}
