
    /* Styles pour le slider Glide (flèches au survol) */
.glide-container { touch-action: pan-y pinch-zoom; }
.glide, .glide__track, .glide__slides, .glide__slide { width: 100%; height: 100%; }

.glide__arrows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}
.card-image-wrapper .glide__arrow {
    pointer-events: all;
    position: absolute;
    top: 50%;
    opacity: 0;
    transform: translateY(-50%) scale(0.78);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    width: 32px;
    height: 52px;
    border-radius: 10px;
    background: rgba(8, 8, 18, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.card-image-wrapper .glide__arrow--left  { left: 10px; }
.card-image-wrapper .glide__arrow--right { right: 10px; }
.card-image-wrapper:hover .glide__arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.glide__arrow:hover {
    background: rgba(8,8,18,0.8);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05) !important;
}
.glide__arrow:active {
    transform: translateY(-50%) scale(0.94) !important;
}
.glide__arrow svg { display: block; flex-shrink: 0; }

.glide__bullets {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 20;
    padding: 5px 10px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    border-radius: 30px;
}
.glide__bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}
.glide__bullet:hover { background: rgba(255,255,255,0.7); }
.glide__bullet--active {
    background: #ffffff;
    width: 20px;
    border-radius: 4px;
}


        .image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
}
.image-error i {
    font-size: 32px;
    margin-bottom: 8px;
}
     
    #active-filters {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        margin-top: 2rem;
        max-width: 72rem;
        margin-left: auto;
        margin-right: auto;
        z-index: 10;
        position: relative;
        overflow:auto;
   /* Scroll invisible mais fonctionnel */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* anciens Edge/IE */
}


/* Chrome, Safari, Edge modernes — règle séparée obligatoire */
#active-filters::-webkit-scrollbar {
    display: none;
}


    /* 🔥 WRAPPER - COMPORTEMENT ADAPTATIF */
    #filters-wrapper {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        position: relative;
    }

    /* 📱 MOBILE : Slider horizontal */
    @media (max-width: 1023px) {
        #filters-wrapper {
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-right: 1rem;
        }

        #filters-wrapper::-webkit-scrollbar {
            display: none;
        }

        .filter-pill {
            scroll-snap-align: start;
        }
    }

    /* 💻 DESKTOP : Flex wrap normal */
    @media (min-width: 1024px) {
        #filters-wrapper {
            flex-wrap: wrap;
            overflow: visible;
        }
    }

    /* 🔥 BOUTON FILTRES MOBILE - AVEC ANIMATION DE RÉTRÉCISSEMENT */
    #filters-button {
        background: #3b82f6;
        color: white;
        font-weight: 600;
        padding: 0.625rem 1rem;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        border: none;
        font-size: 0.875rem;
        white-space: nowrap;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: auto;
    }

    /* État rétréci (icon only) */
    #filters-button.shrink {
        padding: 0.625rem;
        gap: 0;
    }

    #filters-button.shrink .filter-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
    }

   #filters-button.shrink .badge-count {
    /* position: absolute;
    top: -6px;
    right: -6px; */
     background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(4px);
        padding: 0.125rem 0.375rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        min-width: 18px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 8px;
  margin-right: 5px;
}

    .filter-text {
        max-width: 100px;
        opacity: 1;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .badge-count {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(4px);
        padding: 0.125rem 0.375rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        min-width: 18px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @media (min-width: 1024px) {
        #filters-button {
            display: none !important;
        }
    }

    /* Pills - Style sobre */
    .filter-pill {
        background: #f3f4f6 !important;
        border: 1px solid #d1d5db !important;
        padding: 0.5rem 0.875rem !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        color: #374151 !important;
        white-space: nowrap !important;
    }

    .filter-pill-label {
        color: #6b7280;
        font-weight: 500;
        font-size: 0.8125rem;
    }

    .filter-pill-value {
        color: #111827;
        font-weight: 600;
        font-size: 0.8125rem;
    }

    .filter-pill-remove {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: #e5e7eb;
        color: #6b7280;
        border: none;
        cursor: pointer;
    }

    .filter-pill-remove i {
        font-size: 0.875rem;
    }

    /* Bouton "Tout effacer" - Sobre */
    .clear-all-filters-btn {
        color: #dc2626;
        font-weight: 600;
        font-size: 0.875rem;
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        flex-shrink: 0;
        padding: 0.5rem 0.875rem;
        border-radius: 8px;
        border: 1px solid #fecaca;
        margin-left: 0.5rem;
        background: #fef2f2;
        white-space: nowrap;
        cursor: pointer;
    }

    .clear-all-filters-btn i {
        font-size: 0.875rem;
    }

    /* État vide */
    /* État vide - version élégante */
#empty-filters {
    transition: all 0.2s ease;
}

.empty-filters-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    color: #6b7280;
}

.empty-filters-state i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.empty-filters-state p:first-of-type {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.empty-filters-state .empty-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.empty-filters-state button {
    margin-top: 1rem;
    background: #e5e7eb;
    border: none;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: 0.2s;
}

.empty-filters-state button:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}
    /* 📱 RESPONSIVE ADJUSTMENTS */
    @media (max-width: 640px) {
        #active-filters {
            padding: 0.625rem 0.875rem;
        }

        .filter-pill {
            padding: 0.5rem 0.75rem;
            font-size: 0.8125rem;
        }

        .clear-all-filters-btn {
            padding: 0.5rem 0.75rem;
            font-size: 0.8125rem;
        }
    }

    #filter-badge-separate {
    background-color: #ef4444;       /* rouge vif */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
    line-height: 1;
    display: inline-block;
    transition: all 0.2s ease;
}



/* ===== SHIMMER GLOBAL ===== */
@keyframes shimmer-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.sk {
    background: #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.7) 50%,
        transparent 100%
    );
    animation: shimmer-slide 1.4s infinite;
}

/* Overlay page entière */
#page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f9fafb;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.4s ease;
}


#page-skeleton.hiding {
    opacity: 0;
    pointer-events: none;
}


#real-content {
    position: relative;
    z-index: 1;
}


.clear-all-filters-btn {
    display: none;
}

#active-filters {
    min-height: 72px;
    display: flex;
    align-items: center;
}

#filters-wrapper {
    min-height: 40px;
    width: 100%;
}


/* ============================================================
   PAGE ENTIÈRE — scrollbar invisible mais scroll fonctionnel
   ============================================================ */
html, body {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* anciens Edge/IE */
}

/* Chrome, Safari, Edge modernes — règle séparée obligatoire */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}