/* Styles pour les live filters par tags - Réutilise les styles de tag-bar */

.live-filter-tag {
    /* Hérite des styles de .labl depuis tag-bar.css */
    cursor: pointer;
}

.live-filter-tag.active {
    /* Style pour l'état actif */
    background-color: var(--artge-text) !important;
    color: white !important;
}


.filter-post-type .btn.live-filter-tag {
    margin-right: 1rem !important;
}

.filter-post-type .btn.btn-jauneALT.live-filter-tag.active,
.filter-post-type .btn.btn-bleuALT.live-filter-tag.active {
    border-color: var(--artge-text) !important;
}

.filter-post-type .btn.live-filter-tag.active span {
    color: #fff;
}

/* États de chargement AJAX */
.masonry-grid.is-loading {
    position: relative;
    min-height: 200px;
}

.masonry-grid.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.masonry-grid.is-loading::after {
    content: 'Chargement...';
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Transition douce pour les résultats */
.masonry-grid {
    transition: opacity 0.2s ease;
}

.masonry-grid.is-loading {
    opacity: 0.6;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #666;
}

.no-results p {
    color: #999;
    font-size: 16px;
}

/* Responsive */
/*
@media (max-width: 767px) {
    .live-filters-tags {
        gap: 0.5rem;
    }
    
    .live-filter-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .live-filter-tag .count {
        margin-left: 0.25rem;
        font-size: 0.7rem;
    }
}
*/

/* Styles pour l'éditeur Gutenberg */
.wp-block-acf-posts-grid .live-filters-container {
    display: block !important;
}

/* Animation pour les nouveaux éléments */
.masonry-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton loader */
/*
.masonry-grid .masonry-item.skeleton-item {
    width: calc(100% + 8px) !important;
    width: calc(100% + 0px) !important;
    margin-right: -10px !important;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.masonry-grid .masonry-item.skeleton-item .imgfit {
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-line {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeletonShimmer 1.5s infinite;
}

h4.skeleton-line {
    height: 24px;
}

.skeleton-line-short {
    width: 60%;
}

@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
*/
