/* Hide theme header, page title and separators on our custom-built pages */
body.page-id-11 header.wp-block-template-part,
body.page-id-12 header.wp-block-template-part,
body.home header.wp-block-template-part,
body.page-id-11 .wp-block-post-title,
body.page-id-12 .wp-block-post-title,
body.home .wp-block-post-title,
body.page-id-11 .wp-block-separator,
body.page-id-12 .wp-block-separator,
body.home .wp-block-separator,
body.page-id-11 .entry-header,
body.page-id-12 .entry-header,
body.home .entry-header {
  display: none !important;
}

/* Make our custom content full width (break out of theme's narrow content column) */
body.page-id-11 .entry-content,
body.page-id-12 .entry-content,
body.home .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.page-id-11 .wp-site-blocks,
body.page-id-12 .wp-site-blocks,
body.home .wp-site-blocks {
  padding-top: 0 !important;
}
body.page-id-11 main,
body.page-id-12 main,
body.home main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page-id-11, body.page-id-12, body.home {
  padding: 0 !important;
  margin: 0 !important;
}
body.page-id-11 .wp-site-blocks,
body.page-id-12 .wp-site-blocks,
body.home .wp-site-blocks,
body.page-id-11 #page,
body.page-id-12 #page,
body.home #page,
body.page-id-11 #content,
body.page-id-12 #content,
body.home #content,
body.page-id-11 main,
body.page-id-12 main,
body.home main,
body.page-id-11 .entry-content,
body.page-id-12 .entry-content,
body.home .entry-content,
body.page-id-11 .wp-block-post-content,
body.page-id-12 .wp-block-post-content,
body.home .wp-block-post-content,
body.page-id-11 .wp-block-group,
body.page-id-12 .wp-block-group,
body.home .wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-id-11 footer.wp-block-template-part,
body.page-id-12 footer.wp-block-template-part,
body.home footer.wp-block-template-part {
  display: none !important;
}

body.admin-bar .site-header,
body.admin-bar #site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar #site-header {
    top: 46px !important;
  }
}

body.page-id-11 .wp-site-blocks,
body.page-id-12 .wp-site-blocks,
body.home .wp-site-blocks {
  min-height: 0 !important;
}
body.page-id-11, body.page-id-12, body.home {
  background: #0a1420 !important;
}

body.page-id-11 .wp-block-template-part,
body.page-id-12 .wp-block-template-part,
body.home .wp-block-template-part {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Devis page: add a visible bordered card affordance to each clickable contact row so it reads as a link */
.side-contact-row {
  border: 1.5px solid #e7ecf2;
  border-radius: 12px;
  padding: 12px 14px;
  margin: -12px -14px;
  transition: border-color .2s ease, background .2s ease;
}
.side-contact-row:hover {
  border-color: #3d86e8;
  background: #f6f9ff;
}

body.page-id-11 .page-banner {
  padding-top: 150px;
}

.sharedaddy,
.sd-sharing-enabled,
.sd-block,
#jp-post-flair,
.jetpack-sharing-buttons__services-list,
div.sharedaddy.sd-sharing-enabled {
  display: none !important;
}

body.page-id-11 .wp-block-spacer, body.page-id-12 .wp-block-spacer, body.home .wp-block-spacer { display:none !important; height:0 !important; }

/* Force-remove the theme's spacer block everywhere, no scoping, maximum specificity */
div.wp-block-spacer[aria-hidden="true"],
.wp-block-spacer {
  display: none !important;
  height: 0px !important;
  min-height: 0px !important;
  max-height: 0px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide the featured image the theme auto-renders at the top of the page (kept only for SEO/social sharing, not shown on-page) */
body.page-id-11 .wp-block-post-featured-image,
body.page-id-12 .wp-block-post-featured-image,
body.home .wp-block-post-featured-image,
body.page-id-11 .post-thumbnail,
body.page-id-12 .post-thumbnail,
body.home .post-thumbnail,
body.page-id-11 img.wp-post-image,
body.page-id-12 img.wp-post-image,
body.home img.wp-post-image,
body.page-id-11 img.attachment-post-thumbnail,
body.page-id-12 img.attachment-post-thumbnail,
body.home img.attachment-post-thumbnail,
body.page-id-11 figure.wp-block-post-featured-image,
body.page-id-12 figure.wp-block-post-featured-image,
body.home figure.wp-block-post-featured-image {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- WPWriter addition --- */
/* Extra-specific rule targeting the exact title+featured-image+separator wrapper block */
body.page-id-11 .entry-content > .wp-block-group.is-layout-constrained:has(> .wp-block-post-title),
body.page-id-12 .entry-content > .wp-block-group.is-layout-constrained:has(> .wp-block-post-title),
body.home .entry-content > .wp-block-group.is-layout-constrained:has(> .wp-block-post-title) {
  display: none !important;
}
h1.wp-block-post-title,
figure.wp-block-post-featured-image,
hr.wp-block-separator {
  display: none !important;
}

/* --- WPWriter addition --- */
/* Apply the same custom-page treatment to the new FAQ page (id 139) */
body.page-id-139 .wp-block-template-part,
body.page-id-139 .wp-block-post-title,
body.page-id-139 .wp-block-separator,
body.page-id-139 .entry-header,
body.page-id-139 .wp-block-post-featured-image,
body.page-id-139 .post-thumbnail,
body.page-id-139 img.wp-post-image,
body.page-id-139 img.attachment-post-thumbnail,
body.page-id-139 figure.wp-block-post-featured-image,
body.page-id-139 .wp-block-spacer {
  display: none !important;
}
body.page-id-139 {
  padding: 0 !important;
  margin: 0 !important;
  background: #0d1a29 !important;
}
body.page-id-139 .wp-site-blocks,
body.page-id-139 #page,
body.page-id-139 #content,
body.page-id-139 main,
body.page-id-139 .entry-content,
body.page-id-139 .wp-block-post-content,
body.page-id-139 .wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 0 !important;
}

/* --- WPWriter addition --- */

/* --- Igor 30/09/2026 --- */
/* Même traitement que la FAQ pour les nouvelles pages (Dépannage 228, Rénovation 232, Mise aux normes 234, Tableau 236, Confidentialité 240, Mentions 243, À propos 245, Réalisations 247) */
body.page-id-228 .wp-block-template-part, body.page-id-232 .wp-block-template-part, body.page-id-234 .wp-block-template-part, body.page-id-236 .wp-block-template-part, body.page-id-240 .wp-block-template-part, body.page-id-243 .wp-block-template-part, body.page-id-245 .wp-block-template-part, body.page-id-247 .wp-block-template-part,
body.page-id-228 .wp-block-post-title, body.page-id-232 .wp-block-post-title, body.page-id-234 .wp-block-post-title, body.page-id-236 .wp-block-post-title, body.page-id-240 .wp-block-post-title, body.page-id-243 .wp-block-post-title, body.page-id-245 .wp-block-post-title, body.page-id-247 .wp-block-post-title,
body.page-id-228 .wp-block-separator, body.page-id-232 .wp-block-separator, body.page-id-234 .wp-block-separator, body.page-id-236 .wp-block-separator, body.page-id-240 .wp-block-separator, body.page-id-243 .wp-block-separator, body.page-id-245 .wp-block-separator, body.page-id-247 .wp-block-separator,
body.page-id-228 .wp-block-post-featured-image, body.page-id-232 .wp-block-post-featured-image, body.page-id-234 .wp-block-post-featured-image, body.page-id-236 .wp-block-post-featured-image, body.page-id-240 .wp-block-post-featured-image, body.page-id-243 .wp-block-post-featured-image, body.page-id-245 .wp-block-post-featured-image, body.page-id-247 .wp-block-post-featured-image {
  display: none !important;
}
body.page-id-228, body.page-id-232, body.page-id-234, body.page-id-236, body.page-id-240, body.page-id-243, body.page-id-245, body.page-id-247 {
  padding: 0 !important;
  margin: 0 !important;
  background: #0d1a29 !important;
}
body.page-id-228 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-232 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-234 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-236 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-240 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-243 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-245 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group),
body.page-id-247 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 0 !important;
}


/* --- WPWriter addition --- */

/* --- Agent B 30/09/2026 --- */
/* Même traitement que la FAQ pour la page Tarifs (250) */
body.page-id-250 .wp-block-template-part,
body.page-id-250 .wp-block-post-title,
body.page-id-250 .wp-block-separator,
body.page-id-250 .wp-block-post-featured-image {
  display: none !important;
}
body.page-id-250 {
  padding: 0 !important;
  margin: 0 !important;
  background: #0d1a29 !important;
}
body.page-id-250 :is(.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 0 !important;
}
