/* Layout A (placeholder clean)
   - Layout A reste géré par style.css pour l’instant
   - Ce fichier existe juste pour isoler le routing A/B sans casser le rendu
*/

/* ===== HERO 3 IMAGES (Services / A propos / Espace client) ===== */
body.construction-page {
  position: relative;
}


/* Prevent flash of global body background (style.css) on construction pages */
body.construction-page {
  background: none !important;
  background-image: none !important;
}

body.construction-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.06);
  animation: petzBgZoomTransform 3s ease-out forwards;
  background-repeat: no-repeat;
}

body.construction-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,0.25);
}

body.construction-page.page-syndic::before,
body.construction-page.page-property::before,
body.construction-page.page-services::before {
  background-image: image-set(
    url("../img/pfaffenthal.webp") type("image/webp"),
    url("../img/pfaffenthal.jpg") type("image/jpeg")
  );
}

body.construction-page.page-about::before,
body.construction-page.page-approche::before,
body.construction-page.page-transparence::before {
  background-image: image-set(
    url("../img/grund.webp") type("image/webp"),
    url("../img/grund.jpg") type("image/jpeg")
  );
}

body.construction-page.page-client::before {
  background-image: image-set(
    url("../img/cathedrale.webp") type("image/webp"),
    url("../img/cathedrale.jpg") type("image/jpeg")
  );
}

/* Background zoom (same spirit as index, single-layer safe) */
@keyframes petzBgZoomTransform {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* --- Blog / Newsletter hero background --- */
body.construction-page.page-blog::before {
  background-image: image-set(
    url("../img/blog.avif") type("image/avif"),
    url("../img/blog.webp") type("image/webp"),
    url("../img/blog.jpg")  type("image/jpeg")
  );
}

/* --- FAQ hero background (sprint-05 : nouvelle photo Arnaud Colin) --- */
body.construction-page.page-faq::before {
  background-image: image-set(
    url("../img/background_faq.avif") type("image/avif"),
    url("../img/background_faq.webp") type("image/webp"),
    url("../img/background_faq.jpg") type("image/jpeg")
  );
}

/* --- Change syndic hero background --- */
body.construction-page.page-change::before {
  background-image: image-set(
    url("../img/bridge.webp") type("image/webp"),
    url("../img/bridge.jpg") type("image/jpeg")
  );
}
