/* =========================================
   PAGE HEADER COMPACT - MARKETPLACE
   ========================================= */

.marketplace-page-header {
    position: relative;
    padding: 200px 20px 22px;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.10), transparent 32%),
        linear-gradient(180deg, #f8faff 0%, #f3f4ff 100%);
    border-bottom: 1px solid #e8ecf5;
}

.marketplace-page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.marketplace-page-header-text {
    text-align: center;
}

.marketplace-page-title {
    margin: 0;
    color: #1e293b;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.marketplace-page-meta {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.marketplace-page-meta strong {
    color: #4f46e5;
    font-weight: 800;
}

@media (max-width: 768px) {
    .marketplace-page-header {
        padding: 10px 16px 8px;
    }

    .marketplace-page-title {
        font-size: 24px;
        line-height: 1.08;
    }

    .marketplace-page-meta {
        margin-top: 4px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .marketplace-page-header {
        padding: 8px 14px 6px;
    }

    .marketplace-page-title {
        font-size: 22px;
    }

    .marketplace-page-meta {
        font-size: 12px;
    }

}

/* =========================================
   MOBILE SEARCH BAR + CHIPS
   ========================================= */

@media (max-width: 768px) {
    #mobile-search-bar {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    #mobile-search-bar .msb-input-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 14px;
        background: #f3f4f6;
        border: 1px solid #dbe3ee;
        border-radius: 16px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }

    #mobile-search-bar .msb-input-wrap svg {
        flex-shrink: 0;
        color: #64748b;
        opacity: 0.95;
    }

    #mobile-search-bar .msb-input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 15px;
        font-weight: 600;
        color: #1e293b;
    }

    #mobile-search-bar .msb-input::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

    #mobile-search-bar .msb-filter-btn {
        position: relative;
        min-width: 56px;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid rgba(99, 102, 241, 0.14);
        border-radius: 16px;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
    }

    #mobile-search-bar .msb-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #f43f5e;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        display: none;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
    }

    #mobile-chips-bar {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 12px 12px;
        background: #ffffff;
        border-bottom: 1px solid #eef2f7;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #mobile-chips-bar::-webkit-scrollbar {
        display: none;
    }

    #mobile-chips-bar .m-chip {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 16px;
        border: 1px solid #dbe3ee;
        border-radius: 999px;
        background: #f8fafc;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    }

    #mobile-chips-bar .m-chip.active {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
    }
}

/* =========================================
   SUPPRIMER L'ESPACE ENTRE HEADER ET BANNER
   ========================================= */

.marketplace-page-header {
    margin-top: 0 !important;
}

#Header_wrapper + #Content .marketplace-page-header,
#Header + #Content .marketplace-page-header,
#Content .marketplace-page-header {
    margin-top: 0 !important;
}

.hero-page,
.marketplace-page-header,
.marketplace-section {
    margin-top: 0 !important;
}

.marketplace-page-header .section_wrapper,
.marketplace-page-header .items_group,
.marketplace-page-header .column.one {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#Header_wrapper,
#Header,
#Top_bar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#Content .sections_group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {

    #mobile-search-bar .msb-input-wrap {
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
    }

    #mobile-search-bar .msb-input {
        color: #0f172a !important; /* encore plus net */
        font-weight: 600;
    }

    #mobile-search-bar .msb-input::placeholder {
        color: #94a3b8;
    }

    #mobile-search-bar .msb-input-wrap:focus-within {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
        background: #ffffff;
    }

}
@media (max-width: 768px) {
    #mobile-search-bar {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    #mobile-search-bar .msb-input-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 14px;
        background: #f3f4f6 !important;
        border: 1px solid #dbe3ee !important;
        border-radius: 16px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }

    #mobile-search-bar .msb-search-icon {
        color: #64748b !important;
        flex-shrink: 0;
    }

    #mobile-search-bar .msb-input {
        width: 100%;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        color: #0f172a !important;
        font-size: 15px;
        font-weight: 600;
        caret-color: #6366f1;
        -webkit-text-fill-color: #0f172a !important;
    }

    #mobile-search-bar .msb-input::placeholder {
        color: #94a3b8 !important;
        opacity: 1;
        -webkit-text-fill-color: #94a3b8 !important;
    }

    #mobile-search-bar .msb-input-wrap:focus-within {
        background: #ffffff !important;
        border-color: #6366f1 !important;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    }

    #mobile-search-bar .msb-filter-btn {
        position: relative;
        min-width: 56px;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid rgba(99, 102, 241, 0.14) !important;
        border-radius: 16px;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
        white-space: nowrap;
    }

    #mobile-search-bar .msb-filter-icon,
    #mobile-search-bar .msb-filter-label {
        color: #ffffff !important;
    }
}