h2 {
    margin-top: clamp(36px, 8vw, 100px);
    margin-bottom: clamp(20px, 3vw, 40px);
    padding-bottom: 10px;   
    position: relative;
    display: flex;
    justify-content: center;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
}

h2::after {
    content: "";
    background-color: #DB6161;
    position: absolute;
    width: 100px;
    height: 2px;
    bottom: 0;
    left: -10;
}

.projets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: clamp(24px, 8vw, 100px);
    margin-bottom: clamp(40px, 8vw, 100px);
}

.photo {
    margin: 10px;
}

.photo img {
    height: clamp(140px, 20vw, 250px);
    width: auto;
    max-width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid white;
    border-radius: clamp(14px, 2.5vw, 30px);
}

.photo img:hover{
    opacity: 0.6;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid white;
    height: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    opacity: 0;
}

.lightbox.active img {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {

    .projets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 10px;
    }

    .photo img {
        width: 100%;
        object-fit: cover;
    }
}