/* =====================================================
   De Pierre en Pierre — Public Luxe Shell V45
   Header/footer premium fixes + harmonisation globale publique.
   ===================================================== */

body.dpep-public-luxe-v45 {
    --dpep-navy: #041C34;
    --dpep-navy-2: #071F39;
    --dpep-ink: #071D33;
    --dpep-gold: #C9A36A;
    --dpep-gold-dark: #A98243;
    --dpep-ivory: #FAF7F1;
    --dpep-stone: #F3EFE7;
    --dpep-line: rgba(7, 29, 51, .12);
    --dpep-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --dpep-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--dpep-ivory);
    color: var(--dpep-ink);
    padding-top: 138px;
}

/* Masquer les anciennes enveloppes publiques Houzez / footer enfant, sauf espaces exclus. */
body.dpep-public-luxe-v45 .header-main-wrap,
body.dpep-public-luxe-v45 .header-mobile-wrap,
body.dpep-public-luxe-v45 .mobile-header-wrap,
body.dpep-public-luxe-v45 .top-bar-wrap,
body.dpep-public-luxe-v45 .dpep-footer,
body.dpep-public-luxe-v45 .footer-wrap,
body.dpep-public-luxe-v45 .footer-top-wrap,
body.dpep-public-luxe-v45 .footer-bottom-wrap,
body.dpep-public-luxe-v45 .footer-wrap-stick {
    display: none !important;
}

/* Si la home V44 avait son propre header/footer, on évite les doublons. */
body.dpep-public-luxe-v45 .dpep-luxe-home > .dpep-luxe-header,
body.dpep-public-luxe-v45 .dpep-luxe-home > .dpep-luxe-footer {
    display: none !important;
}

body.dpep-public-luxe-v45.admin-bar {
    padding-top: 170px;
}

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

.dpep-public-header-v45 {
    position: fixed;
    z-index: 9990;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #03182D 0%, #061F39 100%);
    color: #fff;
    box-shadow: 0 12px 34px rgba(4, 28, 52, .18);
}

.dpep-public-header-top-v45 {
    min-height: 84px;
    width: min(1320px, calc(100vw - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.dpep-public-social-v45,
.dpep-public-actions-v45 {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dpep-public-social-v45 a,
.dpep-public-login-v45 {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--dpep-sans);
}

.dpep-public-logo-v45 {
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.dpep-public-logo-v45 span {
    display: block;
    font-family: var(--dpep-serif);
    font-size: 34px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.02em;
}

.dpep-public-logo-v45 small {
    display: block;
    margin-top: 7px;
    font-family: var(--dpep-sans);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.dpep-public-actions-v45 {
    justify-content: flex-end;
}

.dpep-public-create-v45 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 26px;
    background: var(--dpep-gold);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--dpep-sans);
}

.dpep-public-nav-v45 {
    min-height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 74px;
}

.dpep-public-nav-v45 a {
    color: #fff;
    text-decoration: none;
    font-family: var(--dpep-sans);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* V47: home spacing handled by fixed body padding and V47 CSS. */

/* Home : boutons et recherche plus proches du draft validé. */
body.dpep-public-luxe-v45 .dpep-luxe-search {
    bottom: -58px;
    border: 1px solid rgba(201, 163, 106, .22);
}

body.dpep-public-luxe-v45 .dpep-luxe-search button,
body.dpep-public-luxe-v45 .dpep-luxe-create,
body.dpep-public-luxe-v45 .dpep-public-create-v45 {
    background: linear-gradient(135deg, #C9A36A, #B58A43) !important;
    color: #fff !important;
}

body.dpep-public-luxe-v45 .dpep-luxe-search select {
    border: 1px solid rgba(255,255,255,.16);
}

/* Pages publiques existantes : fondation commune luxe */
body.dpep-public-luxe-v45 h1,
body.dpep-public-luxe-v45 h2,
body.dpep-public-luxe-v45 h3,
body.dpep-public-luxe-v45 .page-title,
body.dpep-public-luxe-v45 .entry-title,
body.dpep-public-luxe-v45 .property-title,
body.dpep-public-luxe-v45 .item-title {
    font-family: var(--dpep-serif) !important;
    color: var(--dpep-ink);
    font-weight: 500;
    letter-spacing: -.025em;
}

body.dpep-public-luxe-v45 p,
body.dpep-public-luxe-v45 li,
body.dpep-public-luxe-v45 input,
body.dpep-public-luxe-v45 select,
body.dpep-public-luxe-v45 textarea,
body.dpep-public-luxe-v45 button,
body.dpep-public-luxe-v45 .btn {
    font-family: var(--dpep-sans);
}

body.dpep-public-luxe-v45 .btn,
body.dpep-public-luxe-v45 button,
body.dpep-public-luxe-v45 input[type="submit"],
body.dpep-public-luxe-v45 .btn-primary {
    border-radius: 0 !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

body.dpep-public-luxe-v45 .btn-primary,
body.dpep-public-luxe-v45 button[type="submit"],
body.dpep-public-luxe-v45 input[type="submit"] {
    background: var(--dpep-navy) !important;
    border-color: var(--dpep-navy) !important;
    color: #fff !important;
}

body.dpep-public-luxe-v45 input[type="text"],
body.dpep-public-luxe-v45 input[type="email"],
body.dpep-public-luxe-v45 input[type="search"],
body.dpep-public-luxe-v45 input[type="number"],
body.dpep-public-luxe-v45 input[type="tel"],
body.dpep-public-luxe-v45 select,
body.dpep-public-luxe-v45 textarea,
body.dpep-public-luxe-v45 .form-control,
body.dpep-public-luxe-v45 .bootstrap-select > .dropdown-toggle {
    border-radius: 0 !important;
    border-color: rgba(7, 29, 51, .18) !important;
    background: #fff !important;
    color: var(--dpep-ink) !important;
    box-shadow: none !important;
}

/* Acheter */
body.dpep-public-luxe-v45 .dpep-acheter {
    background: var(--dpep-ivory);
}

body.dpep-public-luxe-v45 .dpep-acheter-hero {
    background: linear-gradient(135deg, rgba(4,28,52,.06), rgba(201,163,106,.06));
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

body.dpep-public-luxe-v45 .dpep-acheter-hero h1 {
    color: var(--dpep-ink) !important;
    font-size: clamp(44px, 4.6vw, 72px) !important;
    line-height: 1.02 !important;
}

body.dpep-public-luxe-v45 .dpep-acheter-eyebrow,
body.dpep-public-luxe-v45 .dpep-mag-kicker {
    color: var(--dpep-gold-dark) !important;
    letter-spacing: .20em !important;
}

body.dpep-public-luxe-v45 .dpep-acheter-search {
    border: 1px solid rgba(7,29,51,.08);
    box-shadow: 0 22px 54px rgba(7,29,51,.08);
}

body.dpep-public-luxe-v45 .dpep-acheter-search-btn {
    background: var(--dpep-navy) !important;
}

/* Magazine */
body.dpep-public-luxe-v45 .dpep-magazine-clean {
    background: var(--dpep-ivory);
}

body.dpep-public-luxe-v45 .dpep-mag-hero {
    background: linear-gradient(135deg, rgba(4,28,52,.08), rgba(201,163,106,.07)) !important;
    padding-top: 110px !important;
    padding-bottom: 94px !important;
}

body.dpep-public-luxe-v45 .dpep-mag-hero h1 {
    color: var(--dpep-ink) !important;
    font-size: clamp(44px, 4.6vw, 72px) !important;
    line-height: 1.02 !important;
}

/* Cartes / listings publics */
body.dpep-public-luxe-v45 .item-wrap,
body.dpep-public-luxe-v45 .property-item,
body.dpep-public-luxe-v45 .dpep-acheter-type-card,
body.dpep-public-luxe-v45 .dpep-acheter-region-card,
body.dpep-public-luxe-v45 .dpep-mag-card,
body.dpep-public-luxe-v45 article.post {
    border-radius: 0 !important;
}

body.dpep-public-luxe-v45 .item-title a,
body.dpep-public-luxe-v45 .property-title a,
body.dpep-public-luxe-v45 .listing-title a,
body.dpep-public-luxe-v45 .dpep-mag-card h2 a {
    font-family: var(--dpep-serif) !important;
    color: var(--dpep-ink) !important;
}

/* Résultats / fiches Houzez */
body.dpep-public-luxe-v45 .listing-view,
body.dpep-public-luxe-v45 .grid-view,
body.dpep-public-luxe-v45 .property-detail-wrap,
body.dpep-public-luxe-v45 .property-description-wrap,
body.dpep-public-luxe-v45 .block-wrap,
body.dpep-public-luxe-v45 .article-wrap {
    border-radius: 0 !important;
}

body.dpep-public-luxe-v45 .item-price,
body.dpep-public-luxe-v45 .property-price,
body.dpep-public-luxe-v45 .price {
    color: var(--dpep-ink) !important;
    font-family: var(--dpep-serif) !important;
    font-weight: 500 !important;
}

/* Footer global */
.dpep-public-footer-v45 {
    background: linear-gradient(135deg, #04182C, #062541);
    color: rgba(255,255,255,.78);
    padding: 56px 0 22px;
}

.dpep-public-footer-grid-v45 {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.35fr;
    gap: 46px;
}

.dpep-public-footer-brand-v45 strong {
    display: block;
    color: #fff;
    font-family: var(--dpep-serif);
    font-size: 31px;
    line-height: .95;
    font-weight: 500;
}

.dpep-public-footer-brand-v45 span {
    display: block;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.dpep-public-footer-brand-v45 p,
.dpep-public-footer-v45 p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.65;
}

.dpep-public-footer-v45 h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dpep-public-footer-v45 a {
    display: block;
    margin: 0 0 10px;
    color: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: 13px;
}

.dpep-public-newsletter-v45 form {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 42px;
    border: 1px solid rgba(201,163,106,.45);
}

.dpep-public-newsletter-v45 input {
    min-height: 42px;
    padding: 0 14px;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    outline: 0;
}

.dpep-public-newsletter-v45 button {
    border: 0 !important;
    background: transparent !important;
    color: var(--dpep-gold) !important;
    font-size: 20px;
}

.dpep-public-footer-bottom-v45 {
    width: min(1180px, calc(100vw - 48px));
    margin: 38px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
    color: rgba(255,255,255,.42);
    font-size: 12px;
}

/* Mobile */
@media (max-width: 782px) {
    body.dpep-public-luxe-v45.admin-bar .dpep-public-header-v45 {
        top: 46px;
    }
    body.dpep-public-luxe-v45.admin-bar {
        padding-top: 184px;
    }
}

@media (max-width: 767px) {
    body.dpep-public-luxe-v45 {
        padding-top: 126px;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-home {
        margin-top: -126px;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-main {
        padding-top: 126px;
    }

    .dpep-public-header-top-v45 {
        width: calc(100vw - 28px);
        min-height: 74px;
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .dpep-public-social-v45,
    .dpep-public-actions-v45 {
        display: none;
    }

    .dpep-public-logo-v45 span {
        font-size: 28px;
    }

    .dpep-public-nav-v45 {
        min-height: 52px;
        gap: 26px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 18px;
    }

    .dpep-public-nav-v45 a {
        font-size: 12px;
        white-space: nowrap;
    }

    .dpep-public-footer-grid-v45 {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* DPEP V47 — hauteur header fixe propre */
body.dpep-public-luxe-v45 .dpep-public-header-v45 {
    transform: translateZ(0);
}

body.dpep-public-luxe-v45 .dpep-luxe-main,
body.dpep-public-luxe-v45 .dpep-v46-buy-main,
body.dpep-public-luxe-v45 .dpep-v46-archive-main,
body.dpep-public-luxe-v45 .dpep-v46-mag-main,
body.dpep-public-luxe-v45 .dpep-v46-single-main {
    margin-top: 0 !important;
}

/* =====================================================
   DPEP V48 — stabilisation header public / espacement / CTA
   ===================================================== */

/*
 * 1. Suppression de la bande claire entre le menu fixe et le premier bloc.
 * Le body possède déjà le padding nécessaire pour compenser le header fixe.
 * On ne rajoute donc plus de padding/marge interne sur la home.
 */
body.dpep-public-luxe-v45 .dpep-luxe-home {
    margin-top: 0 !important;
}

body.dpep-public-luxe-v45 .dpep-luxe-main,
body.dpep-public-luxe-v45.admin-bar .dpep-luxe-main {
    padding-top: 0 !important;
}

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 {
    margin-top: 0 !important;
}

/*
 * 2. Menu : éviter l'effet "gras" constaté sur Acheter.
 * On stabilise la navigation sur une graisse moins lourde et identique
 * sur toutes les pages publiques.
 */
.dpep-public-nav-v45 a,
body.dpep-public-luxe-v45 .dpep-public-nav-v45 a,
body.dpep-public-luxe-v45 .dpep-luxe-nav a {
    font-weight: 650 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    font-synthesis: none;
}

/*
 * 3. Hauteur réelle du header fixe.
 * On conserve le header fixe, mais on évite tout décalage parasite.
 */
body.dpep-public-luxe-v45 {
    padding-top: 138px !important;
}

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

/*
 * 4. Boutons de recherche : même couleur que "Créer une annonce".
 * On doit passer après les règles globales button[type=submit] du shell.
 */
body.dpep-public-luxe-v45 .dpep-v46-search button,
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,
body.dpep-public-luxe-v45 form button[type="submit"].dpep-v46-search-submit {
    background: linear-gradient(135deg, #C9A36A, #B58A43) !important;
    border-color: #B58A43 !important;
    color: #fff !important;
}

/*
 * 5. Mobile : header compact, pas de bande parasite.
 */
@media (max-width: 767px) {
    body.dpep-public-luxe-v45 {
        padding-top: 126px !important;
    }

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

    body.dpep-public-luxe-v45 .dpep-luxe-home {
        margin-top: 0 !important;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-main,
    body.dpep-public-luxe-v45.admin-bar .dpep-luxe-main {
        padding-top: 0 !important;
    }

    .dpep-public-nav-v45 a,
    body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
        font-weight: 650 !important;
        letter-spacing: .10em !important;
    }
}

/* =====================================================
   DPEP V49 — header fixe sans bande + mobile complet + filtres
   ===================================================== */

/*
 * Problème observé : bande claire entre le menu et le premier bloc.
 * Solution : le header fixe n'utilise plus de compensation approximative.
 * On place le site directement sous le header via une variable unique.
 */
body.dpep-public-luxe-v45 {
    --dpep-public-header-height-v49: 138px;
    padding-top: var(--dpep-public-header-height-v49) !important;
}

body.dpep-public-luxe-v45.admin-bar {
    --dpep-public-header-height-v49: 170px;
    padding-top: var(--dpep-public-header-height-v49) !important;
}

body.dpep-public-luxe-v45 .dpep-public-header-v45 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

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

/* On neutralise les compensations concurrentes qui créaient la bande blanche. */
body.dpep-public-luxe-v45 .dpep-luxe-home,
body.dpep-public-luxe-v45.admin-bar .dpep-luxe-home {
    margin-top: 0 !important;
}

body.dpep-public-luxe-v45 .dpep-luxe-main,
body.dpep-public-luxe-v45.admin-bar .dpep-luxe-main {
    padding-top: 0 !important;
}

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 > section:first-child,
body.dpep-public-luxe-v45 .dpep-v46-buy-main > section:first-child,
body.dpep-public-luxe-v45 .dpep-v46-mag-main > section:first-child,
body.dpep-public-luxe-v45 .dpep-v46-archive-main > section:first-child,
body.dpep-public-luxe-v45 .dpep-v46-single-main > section:first-child {
    margin-top: 0 !important;
}

/* Si WordPress/Houzez ajoute un wrap avec padding au-dessus, on le supprime sur les pages publiques. */
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 {
    padding-top: 0 !important;
}

/*
 * Mobile : vrai header utilisable.
 * - fixe au scroll ;
 * - menu visible en horizontal scroll propre ;
 * - bouton espace utilisateur visible ;
 * - pas de débordement.
 */
.dpep-public-mobile-menu-v49,
.dpep-public-mobile-account-v49 {
    display: none;
}

@media (max-width: 767px) {
    body.dpep-public-luxe-v45 {
        --dpep-public-header-height-v49: 122px;
        padding-top: var(--dpep-public-header-height-v49) !important;
        overflow-x: hidden;
    }

    body.dpep-public-luxe-v45.admin-bar {
        --dpep-public-header-height-v49: 168px;
        padding-top: var(--dpep-public-header-height-v49) !important;
    }

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

    .dpep-public-header-v45 {
        box-shadow: 0 10px 26px rgba(4, 28, 52, .22);
    }

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

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

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

    .dpep-public-logo-v45 {
        min-width: 0;
        text-align: center;
    }

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

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

    .dpep-public-nav-v45 {
        min-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;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        border-top: 1px solid rgba(255,255,255,.10);
    }

    .dpep-public-nav-v45::-webkit-scrollbar {
        display: none;
    }

    .dpep-public-nav-v45 a {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        padding: 0 16px !important;
        height: 52px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: .10em !important;
        white-space: nowrap !important;
        scroll-snap-align: start;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-home,
    body.dpep-public-luxe-v45.admin-bar .dpep-luxe-home {
        margin-top: 0 !important;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-main,
    body.dpep-public-luxe-v45.admin-bar .dpep-luxe-main {
        padding-top: 0 !important;
    }

    body.dpep-public-luxe-v45 .dpep-luxe-hero {
        min-height: auto !important;
    }

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

/*
 * Filtres résultats : masquer les barres secondaires Houzez disgracieuses
 * sur les pages publiques de résultats, sans toucher au dashboard.
 * On garde le bloc premium V46 et les filtres avancés pourront être replacés
 * proprement dans ce format.
 */
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .advanced-search-v1,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .advanced-search-v2,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .advanced-search-v3,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .advanced-search-half-map,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .half-map-search-filters-wrap,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .search-expandable,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .search-filter-wrap,
body.dpep-public-luxe-v45:not(.page-template-template-user_dashboard) .listing-tools-wrap {
    border-radius: 0 !important;
}

/* On ne masque que les filtres Houzez immédiatement sous une recherche premium V46 pour éviter la double recherche. */
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 {
    display: none !important;
}

/* Bouton recherche premium toujours doré. */
body.dpep-public-luxe-v45 .dpep-v46-search button,
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;
}

/* =====================================================
   DPEP V51 — direct sticky fallback
   Même correctif dans le CSS shell déjà chargé par le header.
   ===================================================== */
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;
}
body.dpep-public-luxe-v45.admin-bar .dpep-public-header-v45 {
    top: 32px !important;
}
body.dpep-public-luxe-v45 .dpep-luxe-home,
body.dpep-public-luxe-v45 .dpep-luxe-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
@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 .dpep-public-header-top-v45 {
        grid-template-columns: 54px minmax(0, 1fr) 72px !important;
    }
    body.dpep-public-luxe-v45 .dpep-public-mobile-account-v49 {
        display: inline-flex !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 3 !important;
    }
    body.dpep-public-luxe-v45 .dpep-public-mobile-menu-v49 {
        display: inline-flex !important;
    }
    body.dpep-public-luxe-v45 .dpep-public-nav-v45 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        overflow: hidden !important;
    }
    body.dpep-public-luxe-v45 .dpep-public-nav-v45 a {
        font-size: 10px !important;
        letter-spacing: .07em !important;
        padding: 0 2px !important;
    }
}
