
    /* =========================================================
   MARCHÉ APCZANDO — interface marketplace moderne
   ========================================================= */

body{
    font-family: Arial, Helvetica, sans-serif;
}

    .market-hero {
        position: relative;
        overflow: hidden;
        padding: 34px 28px 26px;
        border-radius: 24px;
        background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #fff8ef 100%);
        border: 1px solid #e9eef5;
        box-shadow: 0 14px 40px rgba(20, 35, 60, .07);
    }

    .market-hero::after {
        content: "";
        position: absolute;
        width: 190px;
        height: 190px;
        right: -75px;
        top: -85px;
        border-radius: 50%;
        background: rgba(255, 165, 0, .10);
    }

    .market-eyebrow {
        font-size: .75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: #16834b;
    }

    .market-title {
        margin: 5px 0 6px;
        font-size: clamp(1.75rem, 3vw, 2.45rem);
        font-weight: 800;
        letter-spacing: -.035em;
        color: #172033;
    }

    .market-subtitle {
        color: #6b7280;
        margin: 0;
    }

    .market-filter {
        margin-top: 22px;
        padding: 8px;
        background: #fff;
        border: 1px solid #e7ebf0;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(20, 35, 60, .06);
    }

    .market-filter .form-control,
    .market-filter .form-select {
        min-height: 48px;
        border: 0;
        box-shadow: none !important;
        background: #f7f8fa;
        border-radius: 12px;
    }

    .market-filter .btn-filter {
        min-height: 48px;
        border: 0;
        border-radius: 12px;
        font-weight: 700;
        padding-inline: 22px;
    }

    .market-filter .btn-reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 10px;
        color: #f7f8fa;
        text-decoration: none;
        font-size: .85rem;
    }

    .market-filter .btn-reset:hover {
        color: #dc3545;
    }

    .mk-section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 15px;
        margin: 30px 0 14px;
    }

    .mk-section-head h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
        color: #182235;
    }

    .mk-result-count {
        color: #8a93a2;
        font-size: .82rem;
        font-weight: 600;
    }

    .mk-category-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: thin;
    }

    .mk-category-chip {
        flex: 0 0 auto;
        border: 1px solid #e5e9ef;
        background: #fff;
        color: #4d5665;
        border-radius: 999px;
        padding: 8px 13px;
        font-size: .78rem;
        font-weight: 700;
        text-decoration: none;
        transition: .18s ease;
    }

    .mk-category-chip:hover,
    .mk-category-chip.active {
        color: #fff;
        background: #16834b;
        border-color: #16834b;
        transform: translateY(-1px);
    }

    .mk-all-categories {
        margin-top: 8px;
    }

    .mk-all-categories select {
        max-width: 280px;
        border-radius: 12px;
        min-height: 42px;
        font-size: .82rem;
        font-weight: 600;
        border: 1px solid #e3e7ed;
    }

    .market-product-col {
        margin-bottom: 22px;
    }

    .mk-product-card {
        height: 100%;
        overflow: hidden;
        background: #fff;
        border: 1px solid #edf0f4;
        border-radius: 17px;
        box-shadow: 0 7px 22px rgba(20, 35, 60, .055);
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .mk-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 32px rgba(20, 35, 60, .11);
        border-color: #e1e6ed;
    }

    .mk-product-media {
        position: relative;
        aspect-ratio: 1 / 1.02;
        background: #f4f5f7;
        overflow: hidden;
    }

    .mk-product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

    .mk-product-card:hover .mk-product-image {
        transform: scale(1.035);
    }

    .mk-category-badge {
        position: absolute;
        left: 10px;
        top: 10px;
        max-width: 70%;
        padding: 5px 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .94);
        color: #3f4754;
        font-size: .64rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    }

    .mk-share {
        right: 10px;
        top: 10px;
        z-index: 6;
    }

    .mk-share-btn {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .95);
        color: #344054;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    }

    .mk-share-btn:hover {
        background: #fff;
        color: #16834b;
    }

    .mk-video-btn {
        position: absolute;
        right: 10px;
        bottom: 10px;
        z-index: 5;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(220, 53, 69, .94);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
    }

    .mk-video-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
        color: transparent;
        z-index: 3;
        pointer-events: none;
    }

    .mk-video-overlay i {
        display: none;
    }

    .mk-product-body {
        display: flex;
        flex-direction: column;
        min-height: 142px;
        padding: 12px 13px 13px;
    }

    .mk-product-title {
        margin: 0 0 7px;
        color: #1b2433;
        font-size: .94rem;
        font-weight: 800;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mk-location {
        display: flex;
        align-items: center;
        gap: 5px;
        color: green;
        font-size: .69rem;
        margin-bottom: 7px;
    }

    .mk-location i {
        color: green;
        font-size: .68rem;
    }

    .mk-location span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mk-product-description {
        color: #7a8492;
        font-size: 13px;
        line-height: 1.35;
        margin: 0 0 9px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mk-product-bottom {
        margin-top: auto;
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 8px;
    }

    .mk-product-price {
        color: red;
        font-size: 1rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .mk-product-price small {
        font-size: .58rem;
        font-weight: 800;
    }

    .mk-view-link {
        color: blue;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    .mk-view-link i {
        font-size: .58rem;
    }

    .mk-load-more {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 85px;
        margin: 8px 0 30px;
        color: #8992a0;
        font-size: .82rem;
    }

    .mk-spinner {
        width: 26px;
        height: 26px;
        border: 3px solid #e7ebef;
        border-top-color: #16834b;
        border-radius: 50%;
        animation: mkspin .7s linear infinite;
        margin-bottom: 9px;
    }

    @keyframes mkspin {
        to {
            transform: rotate(360deg);
        }
    }

    .mk-caught-up {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 10px 16px;
        border-radius: 999px;
        background: #f3faf6;
        color: #16834b;
        font-weight: 800;
        font-size: .78rem;
    }

    .mk-empty {
        padding: 60px 20px;
        text-align: center;
        color: #8992a0;
    }

    .mk-empty .icon {
        font-size: 2.3rem;
        margin-bottom: 8px;
    }

    /* Compatibilité avec l'ancien système de colonnes */
    @media (min-width: 1200px) {
        .col-lg-2-4 {
            width: 20%;
        }
    }

    @media (max-width: 767.98px) {
        .container.market-container {
            margin-top: 22px !important;
        }

        .market-hero {
            padding: 24px 16px 18px;
            border-radius: 18px;
        }

        .market-filter {
            padding: 7px;
        }

        .mk-section-head {
            margin-top: 24px;
        }

        .mk-product-body {
            padding: 10px 10px 11px;
            min-height: 132px;
        }

        .mk-product-title {
            font-size: .84rem;
        }

        .mk-product-price {
            font-size: .88rem;
        }

        .mk-view-link {
            display: none;
        }
    }


    

    /* Badges de disponibilité — ajout uniquement */
    .mk-product-media {
        position: relative;
    }

    .az-stock-badge {
        position: absolute;
        z-index: 8;
        top: 9px;
        left: 9px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: calc(100% - 18px);
        padding: 6px 9px;
        border: 1px solid rgba(255, 255, 255, .45);
        border-radius: 999px;
        background: #dc2626;
        color: #fff;
        font-size: 9px;
        line-height: 1.15;
        font-weight: 850;
        letter-spacing: .025em;
        box-shadow: 0 4px 12px rgba(127, 29, 29, .22);
        white-space: nowrap;
        pointer-events: none;
    }

    .az-stock-badge.reserved {
        background: #b45309;
    }

    .az-stock-badge.occupied {
        background: #991b1b;
    }

    @media (max-width: 767px) {
        .az-stock-badge {
            top: 7px;
            left: 7px;
            padding: 5px 7px;
            font-size: 8px;
        }
    }
