/* ============================================
   CSS DÉDIÉ PAGE PROJETS
   ============================================ */

/* Section grille projets */
.projets-grid-section {
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 4vw, 4rem);
    background: white;
}

.projets-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 1.2fr 1fr;
    gap: 1.5rem;
    height: calc(100vh - clamp(4rem, 8vw, 6rem) - 4rem);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Image haut gauche - grande verticale */
.projets-top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Image haut droite - horizontale */
.projets-top-right {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

/* Image bas droite - prend toute la largeur restante */
.projets-bottom-right {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

/* Style des items */
.projets-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.projets-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projets-item:hover img {
    transform: scale(1.05);
}

/* Overlay texte */
.projets-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.projets-title {
    color: white;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.projets-subtitle {
    color: white;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .projets-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 0.5rem;
    }
    
    .projets-top-left {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        min-height: 350px;
    }
    
    .projets-top-right {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        min-height: 400px;
    }
    
    .projets-bottom-right {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .projets-grid-section {
        padding: 3rem 0 0 0;
    }
    
    .projets-grid {
        gap: 0.5rem;
    }
    
    .projets-top-left,
    .projets-top-right,
    .projets-bottom-right {
        min-height: 300px;
    }
    
    .projets-title {
        font-size: 0.9rem;
    }
    
    .projets-subtitle {
        font-size: 0.75rem;
    }
    
    .projets-overlay {
        padding: 1rem;
    }
}
