.box {
    position: relative;

}

.box img {
    display: block;
    width: 100%;
    height: auto;
    height: auto;
    border-radius: 8px;
    width: 100%;

    transition: transform 0.3s ease-in-out;

}

.gray-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92%;
    height: 50%;
    /* La moitié inférieure de l'image */
    background-color: #0000000c;
    /* Fond gris semi-transparent */
    z-index: -1;
    border-radius: 8px;
    margin: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gray-overlay-accueil {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92%;
    height: 50%;
    /* La moitié inférieure de l'image */
    background-color: #ffffffe8;
    /* Fond gris semi-transparent */
    z-index: 0;
    border-radius: 8px;
    margin: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




.gray-overlay2 {

    bottom: 0;
    left: 0;
    width: 42%;
    height: 50%;
    /* La moitié inférieure de l'image */
    background-color: #4a4a4a0b;
    /* Fond gris semi-transparent */
    z-index: -1;
    border-radius: 8px;
    margin: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




.gallery img:hover {
    transform: scale(1.1);
}



.gallery2 img {
    width: 100%;

    border-radius: 8px;


    transition: transform 0.3s ease-in-out;

}

.gallery3 {

    background-color: #FFF;

    padding: 20px;
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery4 {
    background-color: #FFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Ajout de position relative pour que les positions absolues des éléments enfants soient relatives à cette div */
}

.gallery4 img {
    position: absolute;
    /* Positionnement absolu pour pouvoir ajuster la position de l'image */
    bottom: 0;
    /* Coller l'image en bas */
    left: 0;
    /* Coller l'image sur le côté gauche */
    right: 0;
    /* Coller l'image sur le côté droit */
}