/* ========================================
   PROJECTS SECTION
   ======================================== */


/* Message d'erreur */
.projects-error {
    padding: 40px 20px;
    text-align: center;
    color: #d32f2f;
}

/* État de chargement */
#projects-container.loading,
#projects-pagination.loading {
    pointer-events: none;
    position: relative;
}

#projects-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top-color: #0a1116;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filters-wrapper {
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

