@media screen and (max-width: 1049px) {
    #salles_defi {
        flex-direction: column;
        width: 95%;
    }

    #salles_defi section {
        margin-bottom: 5%;
    }

    #salles_defi section a {
        display: flex;
        flex-direction: column;
    }

    #salles_defi section a img {
        width: 100%;
        border-radius: 15px 15px 0 0px;
    }
}

@media screen and (min-width: 1050px) {
    #salles_defi section {
        display:flex;
        width: 45%;
    }

    #salles_defi section {
        transition: .3s;
    }

    #salles_defi section:hover {
        transform: scale(1.1);
    }

    #salles_defi section a img {
        width: 50%;
        border-radius: 15px 0 0 15px;
    }
}

#salles_defi {
    display:flex;
    padding:1%;
}

#salles_defi section {
    background-color:rgba(0,0,0,.4);
    border-radius:15px;
}

#salles_defi section a {
    display:flex;
    text-decoration:none;
}

#salles_defi section a p {
        color: white;
        padding: 2%; 
        text-align: center;
}