/* =====================================================
   De Pierre en Pierre — Public Final Fixes V50
   Chargé après les autres CSS publics.
   CSS uniquement.
   ===================================================== */

body.dpep-public-luxe-v45 {
    --dpep-v50-header-h: 138px;
    --dpep-v50-adminbar-h: 0px;
    padding-top: var(--dpep-v50-header-h) !important;
    overflow-x: hidden !important;
}

body.dpep-public-luxe-v45.admin-bar {
    --dpep-v50-adminbar-h: 32px;
    padding-top: calc(var(--dpep-v50-header-h) + var(--dpep-v50-adminbar-h)) !important;
}

body.dpep-public-luxe-v45 .dpep-public-header-v45 {
    position: fixed !important;
    top: var(--dpep-v50-adminbar-h) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    margin: 0 !important;
}

body.dpep-public-luxe-v45 .dpep-public-header-top-v45 {
    min-height: 84px !important;
}

body.dpep-public-luxe-v45 .dpep-public-nav-v45 {
    min-height: 54px !important;
}

/* Suppression de la bande claire : le premier bloc public colle au header compensé par le body. */
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 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.dpep-public-luxe-v45 .dpep-luxe-home,
body.dpep-public-luxe-v45 .dpep-luxe-main,
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;
    padding-top: 0 !important;
}

/* On remet un padding interne uniquement dans les héros V46 qui en ont besoin. */
body.dpep-public-luxe-v45 .dpep-v46-hero {
    padding-top: 92px !important;
}

/* Home : le hero commence directement sous le menu, mais garde son contenu respirant. */
body.dpep-public-luxe-v45 .dpep-luxe-hero-inner {
    padding-top: 92px !important;
}

/* Menu : graisse stable sur toutes les pages publiques. */
body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

/* CTA recherche : même couleur que Créer une annonce. */
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;
}

/* Doubles filtres : éviter la seconde barre moche sous le bloc premium. */
body.dpep-public-luxe-v45 .dpep-v46-search ~ .advanced-search-v1,
body.dpep-public-luxe-v45 .dpep-v46-search ~ .advanced-search-v2,
body.dpep-public-luxe-v45 .dpep-v46-search ~ .advanced-search-v3,
body.dpep-public-luxe-v45 .dpep-v46-search ~ .search-filter-wrap,
body.dpep-public-luxe-v45 .dpep-v46-search ~ .half-map-search-filters-wrap {
    display: none !important;
}

/* Mobile */
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-v50-adminbar-h: 46px;
    }
}

@media (max-width: 767px) {
    body.dpep-public-luxe-v45 {
        --dpep-v50-header-h: 122px;
        padding-top: calc(var(--dpep-v50-header-h) + var(--dpep-v50-adminbar-h)) !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-header-top-v45 {
        width: 100% !important;
        min-height: 70px !important;
        padding: 0 14px !important;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 42px !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,
    body.dpep-public-luxe-v45 .dpep-public-mobile-account-v49 {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !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;
    }

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

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

    body.dpep-public-luxe-v45 .dpep-public-nav-v45 {
        min-height: 52px !important;
        height: 52px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-nav-v45::-webkit-scrollbar {
        display: none !important;
    }

    body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 52px !important;
        padding: 0 15px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: .10em !important;
        white-space: nowrap !important;
    }

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

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