/* Section Projets */
.projects {
    padding: 8rem 2rem;
    position: relative;
    background: var(--color-bg); /* Fond noir solide */
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Carte Projet */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(15px);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card:hover::before {
    opacity: 0.5;
}

/* Image du Projet */
.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Contenu du Projet */
.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
    transition: color 0.3s ease;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .projects {
        padding: 4rem 1rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }
}