/* =====================================================
   De Pierre en Pierre — Sticky Header V51
   Correction structurelle : plus de fixed + padding artificiel.
   ===================================================== */

/* Header public dans le flux + sticky au scroll */
body.dpep-public-luxe-v45,
body.dpep-public-luxe-v45.admin-bar {
    padding-top: 0 !important;
    overflow-x: hidden !important;
}

body.dpep-public-luxe-v45 .dpep-public-header-v45 {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 99999 !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
}

body.dpep-public-luxe-v45.admin-bar .dpep-public-header-v45 {
    top: 32px !important;
}

/* Suppression définitive de la bande claire / compensation concurrente */
body.dpep-public-luxe-v45 .dpep-luxe-home,
body.dpep-public-luxe-v45.admin-bar .dpep-luxe-home,
body.dpep-public-luxe-v45 .dpep-luxe-main,
body.dpep-public-luxe-v45.admin-bar .dpep-luxe-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.dpep-public-luxe-v45 #main-wrap,
body.dpep-public-luxe-v45 .main-wrap,
body.dpep-public-luxe-v45 .page-wrap,
body.dpep-public-luxe-v45 .content-wrap,
body.dpep-public-luxe-v45 .site-main,
body.dpep-public-luxe-v45 main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le premier vrai bloc commence directement après le menu */
body.dpep-public-luxe-v45 .dpep-luxe-hero,
body.dpep-public-luxe-v45 .dpep-v46-hero,
body.dpep-public-luxe-v45 .dpep-acheter-hero,
body.dpep-public-luxe-v45 .dpep-mag-hero,
body.dpep-public-luxe-v45 main > :first-child,
body.dpep-public-luxe-v45 .dpep-v46-buy-main > :first-child,
body.dpep-public-luxe-v45 .dpep-v46-mag-main > :first-child,
body.dpep-public-luxe-v45 .dpep-v46-archive-main > :first-child,
body.dpep-public-luxe-v45 .dpep-v46-single-main > :first-child {
    margin-top: 0 !important;
}

/* On remet seulement le padding interne des héros, pas une bande externe */
body.dpep-public-luxe-v45 .dpep-v46-hero {
    padding-top: 92px !important;
}

body.dpep-public-luxe-v45 .dpep-luxe-hero-inner {
    padding-top: 92px !important;
}

/* Menu homogène */
body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    font-synthesis: none !important;
}

/* CTA recherche doré */
body.dpep-public-luxe-v45 .dpep-v46-search button,
body.dpep-public-luxe-v45 .dpep-v46-search input[type="submit"],
body.dpep-public-luxe-v45 .dpep-luxe-search button,
body.dpep-public-luxe-v45 .dpep-acheter-search-btn,
body.dpep-public-luxe-v45 .advanced-search-btn,
body.dpep-public-luxe-v45 .search-btn {
    background: linear-gradient(135deg, #C9A36A, #B58A43) !important;
    border-color: #B58A43 !important;
    color: #fff !important;
}

/* Mobile : header visible, sticky, menu entier visible */
body.dpep-public-luxe-v45 .dpep-public-mobile-menu-v49,
body.dpep-public-luxe-v45 .dpep-public-mobile-account-v49 {
    display: none;
}

@media (max-width: 782px) {
    body.dpep-public-luxe-v45.admin-bar .dpep-public-header-v45 {
        top: 46px !important;
    }
}

@media (max-width: 767px) {
    body.dpep-public-luxe-v45,
    body.dpep-public-luxe-v45.admin-bar {
        padding-top: 0 !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-header-v45 {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 26px rgba(4, 28, 52, .22) !important;
    }

    body.dpep-public-luxe-v45.admin-bar .dpep-public-header-v45 {
        top: 46px !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-header-top-v45 {
        width: 100% !important;
        min-height: 66px !important;
        padding: 0 10px !important;
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) 72px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-social-v45,
    body.dpep-public-luxe-v45 .dpep-public-actions-v45 {
        display: none !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-mobile-menu-v49 {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 38px !important;
        color: #fff !important;
        border: 1px solid rgba(255,255,255,.24) !important;
        text-decoration: none !important;
        font-size: 20px !important;
        line-height: 1 !important;
        pointer-events: auto !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-mobile-account-v49 {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 62px !important;
        height: 38px !important;
        padding: 0 8px !important;
        color: #fff !important;
        border: 1px solid rgba(255,255,255,.24) !important;
        text-decoration: none !important;
        font: 700 10px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
        letter-spacing: .04em !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 2 !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-logo-v45 {
        min-width: 0 !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-logo-v45 span {
        font-size: 22px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-logo-v45 small {
        margin-top: 3px !important;
        font-size: 7px !important;
        letter-spacing: .13em !important;
        white-space: nowrap !important;
    }

    /* Tous les liens visibles sur l'écran : 4 colonnes, pas de scroll obligatoire */
    body.dpep-public-luxe-v45 .dpep-public-nav-v45 {
        min-height: 50px !important;
        height: 50px !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
        width: 100% !important;
        height: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 2px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: .07em !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-hero {
        padding-top: 46px !important;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-hero-inner {
        padding-top: 46px !important;
    }
}
