/* =========================================
   LOCAL OVERRIDES — remap page IDs + hide theme chrome
   Original site: page-id-16 (Accueil), page-id-93 (App), page-id-95 (Compte)
   Local site:    page-id-6  (Accueil), page-id-7  (App), page-id-8  (Compte)
========================================= */

/* Hide TwentyTwentyFive header nav + footer on all FundGuide pages */
body.page-id-6 .wp-block-navigation,
body.page-id-7 .wp-block-navigation,
body.page-id-8 .wp-block-navigation,
body.page-id-9 .wp-block-navigation {
  display: none !important;
}

body.page-id-6 .wp-block-template-part:last-child,
body.page-id-7 .wp-block-template-part:last-child,
body.page-id-8 .wp-block-template-part:last-child,
body.page-id-9 .wp-block-template-part:last-child,
footer.wp-block-template-part,
.wp-block-template-part[data-type="footer"],
.has-global-padding > .wp-block-template-part:last-of-type {
  display: none !important;
}

/* Remap page-id-16 (Accueil) -> page-id-6 */
body.page-id-6 .wp-site-blocks,
body.page-id-6 .wp-block-post-content,
body.page-id-6 .entry-content {
  background: transparent !important;
}

body.page-id-6 {
  --fg-text: #595A78;
  --fg-muted: #767496;
}

/* Remove default theme padding/margins */
.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > header {
  display: none !important;
}

/* Hide page title "Accueil" etc. generated by theme */
.wp-block-post-title {
  display: none !important;
}

/* Hide all theme template parts (header + footer) */
.wp-block-template-part {
  display: none !important;
}

/* Make sure fg-root takes full width/height without theme interference */
#fg-root {
  width: 100%;
  min-height: 100vh;
}

/* Kill all WP block default colors/backgrounds that leak without global-styles */
.wp-site-blocks,
.wp-block-post-content,
.entry-content,
.wp-site-blocks > * {
  background: transparent !important;
  color: inherit !important;
}

/* Reset WP container padding that shifts content right */
.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}

.has-global-padding {
  padding: 0 !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
