/*
 * FHC - Reset total du thème WordPress
 * Ce fichier annule TOUTES les marges des thèmes courants
 */

/* Corps de page */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Wrappers génériques de TOUS les thèmes WordPress */
#page, #content, #main, #primary, #secondary,
.site, .site-content, .site-inner,
.content-area, .site-main,
main[id], main[class], main,
article, .hentry, .entry, .post, .page,
.entry-content, .post-content, .page-content,
.entry-header, .post-header,
.wp-block-post-content,
.is-layout-flow, .is-layout-constrained,
.wp-site-blocks, .wp-block-group,
.elementor-section-wrap, .e-container, .elementor-container,
.elementor-widget-container,
#genesis-content, .genesis-content,
.ast-container, .ast-content-area, .ast-separate-container,
.generate-columns-container, .inside-article,
.fl-builder-content, .fl-row-content-wrap,
.fusion-main-container, .fusion-content-widget-area,
.uael-builder-msg, .container,
.et-boc, .et_pb_row, .et_pb_column,
[class*="container"], [class*="wrapper"],
[class*="content-wrap"], [class*="page-wrap"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
}

/* Padding vertical aussi */
.entry-content, .post-content, .page-content,
.wp-block-post-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Header et footer du THÈME : masquer si #fhc est présent */
body.fhc-page .site-header,
body.fhc-page header.site-header,
body.fhc-page #masthead,
body.fhc-page .site-footer,
body.fhc-page footer.site-info,
body.fhc-page #colophon,
body.fhc-page .site-branding,
body.fhc-page nav.site-navigation,
body.fhc-page .ast-masthead-custom-menu-items,
body.fhc-page .ast-site-header-wrap,
body.fhc-page #ast-desktop-header,
body.fhc-page .main-header-bar,
body.fhc-page #generate-header,
body.fhc-page .gen-has-sticky,
body.fhc-page .fl-page-bar,
body.fhc-page .fl-page-header,
body.fhc-page .fl-page-footer,
body.fhc-page .fusion-header-wrapper,
body.fhc-page .fusion-footer-widget-area,
body.fhc-page .fusion-footer {
    display: none !important;
}

/* Masquer aussi les marges du breadcrumb et titres de page du thème */
body.fhc-page .page-header,
body.fhc-page .entry-header,
body.fhc-page .ast-breadcrumbs-wrapper,
body.fhc-page .breadcrumb-trail,
body.fhc-page .rank-math-breadcrumb,
body.fhc-page .yoast-breadcrumbs {
    display: none !important;
}
