











.projetContainer{
    display: flex;
}

#grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    grid-auto-rows: 400px;
    gap: 5px;
    width: 90vw;
    height: 50vh;
    overflow-y: scroll;
    padding-right: 10px;
    margin-left: 4%;
    grid-auto-flow: dense;
   
}
#grid::-webkit-scrollbar{
    background-color: #dedede;
    width: 10px;
}
#grid::-webkit-scrollbar-thumb{
    background-color: #757575;
}
.grid-item{
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.grid-item:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    z-index: 2;
}
.grid-img:hover{
    transform: scale(1.02);
}
#projet-5{
    grid-column:span 2; /*sur 2 colonnes*/
}
#projet-9{
    grid-row:span 2; /*sur 2 lignes*/
}