/**
 * Layout CSS — De Anciola
 * Grilles, conteneurs, reset global, marges body.
 *
 * @package deanciola
 * @version 3.0.0
 */

/* ========================================
   RESET GLOBAL
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body,
#page,
.site,
#content,
.site-content,
#primary,
.content-area,
main {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ========================================
   RESET LIENS
   ======================================== */

a {
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    outline: none;
}

/* ========================================
   RESET FORMULAIRES
   ======================================== */

input,
textarea,
select {
    border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ========================================
   RESET GENERATEPRESS
   ======================================== */

/* Header GP natif (sécurité — normalement absent car header.php est surchargé) */
.site-header,
.main-navigation,
.generate-back-to-top {
    display: none !important;
}

/* Sidebar */
#secondary,
.sidebar,
.widget-area {
    display: none !important;
}

/* Breadcrumbs GP */
.breadcrumb-trail,
.generate-breadcrumbs {
    display: none !important;
}

/* Hero titre de page */
.page-hero-section,
.generate-page-header-content {
    display: none !important;
}

/* Conteneurs */
.content-container,
.entry-content-wrap,
.alignwide,
.alignfull {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Box shadow */
.site-container {
    box-shadow: none !important;
}

.site {
    max-width: 100% !important;
}

.content-bg,
.site-content {
    border: none !important;
}

/* ========================================
   RESET ELEMENTOR
   ======================================== */

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 0 !important;
}

.elementor-widget {
    margin: 0 !important;
}

.elementor-container {
    max-width: 100% !important;
}

.elementor-section {
    margin: 0 !important;
}

.elementor-widget-wrap {
    padding: 0 !important;
}

/* ========================================
   RESET GUTENBERG
   ======================================== */

.wp-block-group,
.wp-block-column,
.wp-block-columns {
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   RESET WOOCOMMERCE
   ======================================== */

.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   RESET ADMIN BAR
   ======================================== */

body.admin-bar {
    padding-top: 0 !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 0 !important;
    }
}

/* ========================================
   BLOCAGE SCROLL (menu ouvert)
   ======================================== */

body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
}
