/* CSS PROJETS IA - VERSION FINALE */

.projets-ia-container {
    width: 100%;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

.projets-ia-header {
    text-align: center;
    margin-bottom: 80px;
}

.projets-ia-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin: 0;
    letter-spacing: -0.02em;
}

.projets-ia-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 30px;
    align-items: start;
    width: 100%;
    margin: 0 auto;
 
}

.projet-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.projet-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.projet-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.projet-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f5f5f5;
}

.projet-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(0px);
}

.projet-thumbnail .no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #999;
    font-size: 0.9rem;
}

.projet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projet-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.projet-item:hover .projet-thumbnail img {
    transform: scale(1.05);
    filter: blur(2px);
}

.projet-item:hover .projet-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.projet-item:hover .projet-title {
    transform: translateY(0);
    opacity: 1;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-projects p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .projets-ia-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 35px;
    }
    
    .projets-ia-container {
        padding: 140px 20px 80px 20px;
    }
    
    .projets-ia-header h1 {
        font-size: 2.2rem;
    }
    
    .projet-title {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .projets-ia-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 40px;
    }
    
    .projets-ia-container {
        padding: 160px 20px 100px 20px;
    }
    
    .projets-ia-header h1 {
        font-size: 2.5rem;
    }
    
    .projet-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .projets-ia-container {
        padding: 100px 15px 60px 15px;
    }
    
    .projets-ia-grid {
        grid-gap: 25px;
    }
    
    .projets-ia-header h1 {
        font-size: 1.8rem;
    }
    
    .projet-title {
        font-size: 1.2rem;
    }
    
    .projet-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .projet-title {
        transform: translateY(0);
        opacity: 1;
    }
}