/* Styles spécifiques pour les projets */

/* Animation des cartes */
.project-item {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.project-item .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.project-item:hover .card {
    transform: scale(1.02);
}

/* Images des projets */
.project-item .card-img-top {
    transition: all 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.project-item:hover .card-img-top {
    transform: scale(1.05);
}

/* Badges améliorés */
.project-item .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barre de progression */
.project-item .progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.1);
}

.project-item .progress-bar {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Boutons d'action */
.project-item .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Filtres */
.filter-dropdown .dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.filter-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.filter-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

/* Statistiques */
.stats-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-card i {
    transition: all 0.3s ease;
}

.stats-card:hover i {
    transform: scale(1.1);
    color: #007bff !important;
}

/* Galerie photos */
.gallery-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Modal images */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px 15px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .project-item {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .filter-dropdown {
        margin-top: 1rem;
    }
}

/* Animations de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effets de focus */
.project-item:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Amélioration des couleurs par catégorie */
.badge.bg-education { background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important; }
.badge.bg-health { background: linear-gradient(45deg, #4ecdc4, #44a08d) !important; }
.badge.bg-social { background: linear-gradient(45deg, #a8e6cf, #7fcdcd) !important; }
.badge.bg-infrastructure { background: linear-gradient(45deg, #ffd93d, #ff6b6b) !important; }
.badge.bg-spiritual { background: linear-gradient(45deg, #667eea, #764ba2) !important; }
.badge.bg-environmental { background: linear-gradient(45deg, #56ab2f, #a8e6cf) !important; }
