#fa-results {
    position: relative;
    min-height: 180px;
}

/* Loader */
#fa-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    color: #333;
    z-index: 999;
}

/* Image spinner */
.fa-spinner-img {
    width: 36px;
    height: auto;
    animation: fa-spin 1s linear infinite;
}

/* CONTENEUR RÉSULTATS */

#fa-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    will-change: transform;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#fa-results.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

#fa-results.is-resetting {
    opacity: 0;
}

@media (max-width: 1080px) {
    #fa-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    #fa-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 667px) {
    #fa-results {
        grid-template-columns: 1fr;
    }
}

/* WRAPPER FILTRE */
.filtre-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* CARTE ARTICLE */
.article-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
}

.article-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height:100%;
    transition: 
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease;
}

.article-card:hover {
    background-color:#FFFCF5;
    transform: translateY(-8px);
    box-shadow: 0 0px 40px rgba(0,0,0,0.32);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation stagger */
.article-item:nth-child(1) { animation-delay: 0.02s; }
.article-item:nth-child(2) { animation-delay: 0.04s; }
.article-item:nth-child(3) { animation-delay: 0.06s; }
.article-item:nth-child(4) { animation-delay: 0.08s; }
.article-item:nth-child(5) { animation-delay: 0.10s; }
.article-item:nth-child(6) { animation-delay: 0.12s; }

@media (max-width: 667px) {
    .article-item {
        animation-duration: 0.3s;
    }
}

.article-item img {
    width: 100%;
    display: block;
}

/* TITRE / CONTENU */
.article-title {
    padding: 10px 20px 20px;
    font-size: 18px;
    line-height: 1.3em;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
}

/* SELECT FILTRE */
#fa-categories {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 30px;
}

/* TEXTE INFO / ERREUR */
#fa-results > p {
    grid-column: 1 / -1;
    text-align: center;
    font-style: italic;
    opacity: 0.6;
}

/* LOAD MORE */
.fa-load-more {
    grid-column: 1 / -1;
    opacity: 1;
    pointer-events: none;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: transparent;
}

/* LOADER VISUEL */
#fa-results.is-loading::after {
    content: "";
    grid-column: 1 / -1;
    margin: 20px auto;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #dbb25e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */

@keyframes fa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

