/**
 * layout.css — Reset ciblé + compatibilité Elementor
 * Hors-Champ Studio 3.0
 */

/* ──────────────────────────────────────────────
   BASE RESET MINIMAL
────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* ──────────────────────────────────────────────
   RESET HEADER GENERATEPRESS
────────────────────────────────────────────── */

#site-header,
.site-header,
#masthead,
.site-header-wrap,
.main-nav,
.gen-sidebar-nav,
.generate-menu-icon,
.navigation-branding,
.site-logo,
.slideout-navigation,
.mobile-menu-control-wrapper {
    display: none !important;
}

/* ──────────────────────────────────────────────
   RESET PAGE HEADER IMAGE GENERATEPRESS
   (bloc "featured image" vide 2000×1200 en haut)
────────────────────────────────────────────── */

.featured-image,
.page-header-image,
.featured-image.page-header-image,
.inside-page-hero,
.page-hero-section,
.entry-hero-container-inner,
.entry-hero {
    display: none !important;
}

/* ──────────────────────────────────────────────
   RESET SIDEBAR GENERATEPRESS
────────────────────────────────────────────── */

.widget-area.sidebar,
#right-sidebar,
#left-sidebar,
.generate-sidebar {
    display: none !important;
}

/* ──────────────────────────────────────────────
   RESET ÉLÉMENTS GP DÉCORATIFS
────────────────────────────────────────────── */

.generate-breadcrumbs,
.breadcrumb-trail {
    display: none !important;
}

.site-content {
    box-shadow: none !important;
    border: none !important;
    padding: 0px !important;
}

/* ──────────────────────────────────────────────
   MARGES GENERATEPRESS — CORRECTION DOUCE
────────────────────────────────────────────── */

.inside-site-inner {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

#page,
.site {
    margin: 0;
    max-width: 100%;
}

.site-inner,
.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ──────────────────────────────────────────────
   ELEMENTOR — CORRECTIONS SPÉCIFIQUES
────────────────────────────────────────────── */

.elementor-section.elementor-section-full_width,
.elementor-section.elementor-section-stretched,
.e-con.e-con--full-width {
    width: 100% !important;
    max-width: 100% !important;
}

.page-template-elementor_canvas body,
.page-template-elementor_canvas #content,
.page-template-elementor_canvas main {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-popup-modal,
.dialog-widget-content {
    z-index: 10000 !important;
}

.elementor-sticky--effects,
.elementor-section.elementor-sticky {
    z-index: 100 !important;
}

/* ──────────────────────────────────────────────
   RESET GUTENBERG
────────────────────────────────────────────── */

.alignwide,
.alignfull {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ──────────────────────────────────────────────
   ADMIN BAR
────────────────────────────────────────────── */

body.admin-bar .header {
    top: calc(var(--header-top) + 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: calc(var(--header-top) + 46px) !important;
    }
}

/* ──────────────────────────────────────────────
   IMAGES & MÉDIAS
────────────────────────────────────────────── */

img {
    max-width: 100%;
    height: auto;
}
