/* Proposition 2 du 27.11.2026 pour les sites e- (couche posée après les autres feuilles).
   Haut de page clair, photos à droite sans voile, bandes de la couleur de la marque, boutons or. */
:root{--p2-main:#1c2f5c;--p2-main-line:#3d5287;--p2-gold:#d4af37;--p2-gold-ink:#8a6d12;--p2-ink:#0f172a;--p2-muted:#475569;--p2-line:#cbd5e1;--p2-grey:#f1f5f9}
body{background:#fff!important;color:var(--p2-ink)}

/* Barre du haut et en-tête */
.topbar{display:block!important;background:var(--p2-main)!important;color:#fff!important;border:0!important}
@media (min-width:901px){.topbar a[href*="whatsapp"]{display:none!important}}
.topbar p,.topbar a,.topbar .m-id{color:#fff!important}
header{background:#fff!important;border-bottom:1px solid #e2e8f0!important;box-shadow:none!important}
header nav a{color:var(--p2-ink)!important}
header .btn.btn-o{background:var(--p2-main)!important;border-color:var(--p2-main)!important;color:#fff!important;border-radius:0!important}

/* Haut de page : texte à gauche, photos à droite */
.oct-hero{position:relative!important;background:#fff!important;color:var(--p2-ink)!important;display:grid!important;grid-template-columns:minmax(0,46%) minmax(0,54%)!important;grid-template-rows:auto!important;gap:40px 48px;align-items:center;max-width:1280px;margin:0 auto!important;padding:56px 20px 48px!important;min-height:0!important;height:auto!important;overflow:visible!important;isolation:auto!important}
.oct-hero:before,.oct-hero:after{display:none!important;content:none!important}
.oct-hero .oct-bg{margin:0!important;aspect-ratio:auto!important;justify-self:stretch!important;align-self:center!important;width:auto!important;max-width:none!important;position:static!important;inset:auto!important;order:2;grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,250px)!important;grid-auto-rows:250px;gap:12px;width:auto!important;height:auto!important;filter:none!important;transform:none!important;opacity:1!important;background:none!important;z-index:auto!important}
.oct-hero .oct-bg:before,.oct-hero .oct-bg:after{display:none!important;content:none!important}
.oct-hero .oct-bg img{aspect-ratio:auto!important;min-height:0!important;max-height:none!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;filter:none!important;opacity:1!important;transform:none!important;border:0!important;box-shadow:none!important;margin:0!important;display:block!important}
.oct-hero .oct-bg img:first-child{grid-row:span 2}
.oct-hero .oct-bg img:only-child{grid-column:1/-1}
.oct-hero .oct-bg img:nth-child(2):last-child{grid-row:span 2}
.oct-hero .oct-in{order:1;grid-column:1!important;grid-row:1!important;justify-self:stretch!important;align-self:center!important;align-items:stretch!important;justify-content:flex-start!important;position:static!important;display:flex!important;grid-template-columns:none!important;flex-direction:column;gap:24px;padding:0!important;margin:0!important;max-width:none!important;width:auto!important;min-height:0!important;z-index:auto!important;background:none!important}
.oct-hero .oct-glass{width:auto!important;justify-self:stretch!important;background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;max-width:none!important;color:var(--p2-ink)!important;text-shadow:none!important}
.oct-hero .oct-glass:before,.oct-hero .oct-glass:after{display:none!important}
.oct-hero .oct-eyebrow{color:var(--p2-gold-ink)!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase;text-shadow:none!important}
.oct-hero .oct-eyebrow i{background:var(--p2-gold)!important}
.oct-hero h1{color:var(--p2-main)!important;font-weight:800!important;font-size:clamp(32px,4.4vw,56px)!important;line-height:1.06!important;letter-spacing:-.02em!important;text-shadow:none!important;font-family:inherit!important}
.oct-hero .oct-slogan{color:var(--p2-ink)!important;font-weight:700!important;font-size:clamp(17px,1.5vw,20px)!important;text-shadow:none!important;background:none!important;-webkit-text-fill-color:currentColor!important}
.oct-hero .oct-lead{color:#334155!important;font-size:17px!important;line-height:1.65!important;text-shadow:none!important}
.oct-hero .oct-btn{border-radius:0!important;box-shadow:none!important;min-height:50px}
.oct-hero .oct-btn1{background:var(--p2-gold)!important;border-color:var(--p2-gold)!important;color:#020617!important}
.oct-hero .oct-btn2{background:#fff!important;border:1px solid var(--p2-main)!important;color:var(--p2-main)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.oct-hero .oct-card{position:static!important;background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid #e2e8f0!important;box-shadow:none!important;color:var(--p2-ink)!important;border-radius:0!important;max-width:none!important;width:auto!important;margin:0!important}
.oct-hero .oct-card *{color:inherit;text-shadow:none!important}
.oct-hero .oct-card small{color:var(--p2-muted)!important}
.oct-hero .oct-card .oct-ic{background:var(--p2-grey)!important;color:var(--p2-main)!important}
.oct-hero .oct-card .oct-card-btn{background:var(--p2-main)!important;color:#fff!important;border-radius:0!important}

/* Les cadres photo carrés du site sont remplacés ici (sélecteurs renforcés pour passer devant). */
main .oct-hero .oct-bg img:not(#p2z):not(#p2y){aspect-ratio:auto!important;height:100%!important;width:100%!important;object-fit:cover!important}
main .metiers .tile.ph img:not(#p2z):not(#p2y){aspect-ratio:3/2!important;height:auto!important}
main .real .photos img:not(#p2z):not(#p2y){aspect-ratio:4/3!important;height:auto!important}

/* Placement du haut de page renforcé (certains sites posent leurs propres colonnes) */
main .oct-hero:not(#p2z):not(#p2y){display:grid!important;grid-template-columns:minmax(0,46%) minmax(0,54%)!important;grid-template-rows:auto!important}
main .oct-hero:not(#p2z):not(#p2y)>.oct-in{grid-column:1!important;grid-row:1!important;width:auto!important;max-width:none!important;min-width:0!important;justify-self:stretch!important}
main .oct-hero:not(#p2z):not(#p2y)>.oct-bg{margin:0!important;grid-column:2!important;grid-row:1!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;min-height:0!important;grid-template-rows:repeat(2,250px)!important;width:auto!important;max-width:100%!important;min-width:0!important;justify-self:stretch!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:900px){
  main .oct-hero:not(#p2z):not(#p2y){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important}
  main .oct-hero:not(#p2z):not(#p2y)>.oct-bg{grid-column:1!important;grid-row:1!important;grid-template-rows:repeat(2,150px)!important}
  main .oct-hero:not(#p2z):not(#p2y)>.oct-in{grid-column:1!important;grid-row:2!important}
}

/* Bande de présentation sous le haut de page */
.oct-after{background:var(--p2-main)!important;color:#fff!important;border:0!important}
.oct-after p{color:#e2e8f0!important;font-size:17px!important;line-height:1.75!important}
.oct-after .oct-mots,.oct-after p:first-child{color:#fff!important}

/* Titres et sections */
main .sec h2,main section h2,.faq-2026 h2{color:var(--p2-main)!important;font-weight:800!important;letter-spacing:-.01em}
.oct-after h2,#contact h2{color:#fff!important}
.sec.comm-alt,.faq-2026,.faq-2026 section{background:var(--p2-grey)!important}
.comm-card{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:0!important;box-shadow:none!important}
.comm-card h3{color:var(--p2-main)!important}

/* Métiers : cartes avec photo au-dessus */
.metiers .ph-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(max(150px,calc((100% - 60px) / 4)),1fr))!important;gap:28px 20px!important}
.metiers .tile.ph{position:static!important;display:flex!important;flex-direction:column;gap:10px;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-height:0!important;height:auto!important;overflow:visible!important;aspect-ratio:auto!important}
.metiers .tile.ph:before,.metiers .tile.ph:after{display:none!important}
.metiers .tile.ph img{position:static!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:3/2!important;object-fit:cover!important;filter:none!important;opacity:1!important;border:0!important;transform:none!important}
.metiers .tile.ph>div{position:static!important;background:none!important;padding:0!important;color:var(--p2-ink)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;inset:auto!important}
.metiers .tile.ph h3{color:var(--p2-ink)!important;font-size:20px!important;font-weight:700!important;text-shadow:none!important}
.metiers .tile.ph p{color:var(--p2-muted)!important;font-size:15px!important;text-shadow:none!important}

/* Réalisations */
.real{background:var(--p2-grey)!important}
.real .photos figure{background:#fff;margin:0}
.real .photos img{filter:none!important;opacity:1!important}
.real .photos figcaption{color:var(--p2-ink)!important;font-weight:600}

/* Étapes */
.steps ol li .n{display:inline-flex!important;align-items:center;justify-content:center;width:52px;height:52px;background:var(--p2-main)!important;color:#fff!important;font-weight:800!important;font-size:18px!important;border-radius:0!important}
.steps ol li:last-child .n{background:var(--p2-gold)!important;color:#020617!important}
.steps ol li h3{color:var(--p2-ink)!important}

/* Questions fréquentes */
.faq-2026 details{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:0!important;box-shadow:none!important}
.faq-2026 summary{color:var(--p2-ink)!important}

/* Contact et pied de page */
#contact.contact{background:var(--p2-main)!important;color:#fff!important}
#contact.contact p,#contact.contact li,#contact.contact label{color:#e2e8f0}
#contact.contact .form{background:#fff!important;color:var(--p2-ink)!important;border-radius:0!important}
#contact.contact .form label,#contact.contact .form p{color:var(--p2-ink)!important}
footer{background:var(--p2-main)!important;color:#e2e8f0!important;border-top:3px solid var(--p2-gold)!important}
footer b,footer a{color:#fff!important}
footer p{color:#e2e8f0!important}

/* Boutons dorés */
a.btn:not(.btn-o),.oct-card-btn{border-radius:0!important}

/* Pages au modèle crx (e-isolation-maison.ch) */
.crx-hero{background:#fff!important;color:var(--p2-ink)!important}
.crx-hero:before,.crx-hero:after{display:none!important}
.crx-hero h1{color:var(--p2-main)!important;font-weight:800!important;letter-spacing:-.02em!important;text-shadow:none!important}
.crx-hero-txt p{color:#334155!important;text-shadow:none!important}
main .crx-hero-ph img:not(#p2z):not(#p2y){aspect-ratio:4/3!important;height:auto!important;object-fit:cover!important;border:0!important;box-shadow:none!important}
.crx-sand{background:var(--p2-grey)!important}
.crx-cards li{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:0!important;box-shadow:none!important}
.crx-end{background:var(--p2-main)!important;color:#fff!important}
.crx-end h2,.crx-end p,.crx-end b{color:#fff!important}
.crx-end .btn.btn-o{background:var(--p2-gold)!important;border-color:var(--p2-gold)!important;color:#020617!important;border-radius:0!important}

/* Téléphone : la photo d’abord, le texte ensuite */
@media (max-width:900px){
  .oct-hero{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;padding:20px 16px 32px!important;gap:20px}
  .oct-hero .oct-bg{order:1;grid-column:1!important;grid-row:1!important;grid-template-rows:repeat(2,150px)!important;gap:8px}
  .oct-hero .oct-in{order:2;grid-column:1!important;grid-row:2!important}
  .oct-hero .oct-btn{width:100%}
}
@media (min-width:901px){.oct-hero .oct-wa{display:none!important}}
@layer msv-photos-accueil{main .oct-hero:not(#p2z):not(#p2y)>.oct-bg{height:auto!important;aspect-ratio:auto!important;min-height:0!important}main .oct-hero:not(#p2z):not(#p2y)>.oct-bg img{object-fit:cover!important;height:100%!important;aspect-ratio:auto!important}}
