/* --- STYLE PORTFOLIO HARMONISÉ --- */

.page-projets {
    background-color: #d6d4d4 !important; /* Harmonisé avec ta page Équipe */
    padding-top: 120px; /* Dégage le titre du menu fixe */
    font-family: 'Montserrat', sans-serif;
}

.projets-header h1 {
    font-size: 2.2rem;
    letter-spacing: 8px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #000;
    text-transform: uppercase;
}

/* --- FILTRES --- */
.filter-container {
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: none;
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin: 10px 20px;
    padding: 0 0 8px 0;
    color: #777;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    color: #000;
}

/* Petite ligne sous le filtre actif */
.filter-btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: #000;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.filter-btn.active::after {
    width: 30px;
}

/* --- GRILLE DE PROJETS --- */
.project-img-wrapper {
    position: relative;
    overflow: hidden;
    line-height: 0;
    background-color: #eee;
}

.project-img-wrapper img {
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    width: 100%;
    height: 450px; /* Hauteur fixe pour une grille régulière */
    object-fit: cover;
}

/* Overlay au survol (Voile léger pour lire le texte) */
.project-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.project-info h3 {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
    transform: translateY(30px);
    transition: transform 0.6s ease;
}

.project-info p {
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    transform: translateY(30px);
    transition: transform 0.6s ease 0.1s;
}

/* Animations au survol */
.project-item:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-info h3, 
.project-item:hover .project-info p {
    transform: translateY(0);
}

/* RESPONSIVITÉ */
@media (max-width: 991.98px) {
    .project-img-wrapper img { height: 350px; }
}

@media (max-width: 767.98px) {
    .projets-header h1 { font-size: 1.6rem; letter-spacing: 4px; }
    .filter-btn { margin: 10px; font-size: 0.65rem; }
    .project-img-wrapper img { height: 300px; }
}
