/* Styles pour la page des projets */

/* Forcer le navbar à rester blanc sur cette page */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
}

.navbar * {
    text-shadow: none !important;
}

.navbar .nav-logo img {
    filter: none !important;
}

.navbar .nav-menu a {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

.navbar .hamburger span {
    background: var(--text-dark) !important;
}

.projects-main {
    padding-top: 90px;
    min-height: 100vh;
    background: var(--background-light);
}

/* Hero Section */
.projects-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.projects-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.projects-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Statistiques */
.projects-stats {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 242, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Section tous les projets */
.all-projects {
    padding: 80px 0;
}

.all-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
}

/* Catégories de projets */
.projects-category {
    margin-bottom: 80px;
}

.projects-category h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.projects-category h3 i {
    color: var(--primary-blue);
}

/* Liste des projets */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    display: grid;
    grid-template-columns: auto 200px 1fr;
    gap: 30px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: center;
}

.project-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(74, 158, 242, 0.15);
}

.project-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 10px 20px;
    background: rgba(74, 158, 242, 0.1);
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.project-image {
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-details {
    flex: 1;
}

.project-details h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(74, 158, 242, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.project-info i {
    color: var(--primary-blue);
}

.project-amount {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #2e7d32 !important;
    font-weight: 600;
}

.project-amount i {
    color: #2e7d32;
}

.project-partner {
    background: rgba(255, 152, 0, 0.1) !important;
    color: #e65100 !important;
}

.project-partner i {
    color: #ff9800;
}

.project-status {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #1565c0 !important;
}

.project-status i {
    color: #2196f3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu mobile pour cette page */
.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 90px;
    width: 100%;
    background: white;
    padding: 20px 0;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 999;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-year {
        width: fit-content;
        margin: 0 auto;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
    }
    
    .project-info {
        justify-content: center;
    }
    
    .projects-category h3 {
        font-size: 1.4rem;
    }
    
    .project-details h4 {
        font-size: 1.2rem;
    }
}