.container-all {
    margin: auto;
    height: 100vh;
    width: 100%;
}

.container {
    width: calc(33% - 6px);
    overflow: hidden;
    height: fit-content;
    margin: 3px;
    padding: 0;
    display: block;
    position: relative;
    float: left;
    background-color: #000;
    border-radius: 10px;
}

h1 {
    text-align: center;
}

.build {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .img {
    background-image: url(../images/img_projets/AfficheCD.png);
    background-size: cover;
    width: 100%;
    height: 400px;
} */

img {
    width: 100%;
    transition-duration: .3s;
    max-width: 100%;
    display: block;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

.title {
    position: absolute;
    display: block;
    cursor: pointer;
    top: 35%;
    display: none;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.6em;
    text-shadow: 1px 5px 10px black;
    transition-duration: .3s;
}

.text {
    position: absolute;
    top: 70%;
    cursor: pointer;
    max-width: 80%;
    text-align: center;
    left: 50%;
    text-shadow: 1px 5px 10px black;
    font-size: 1em;
    display: none;
    margin-right: -50%;
    transition-duration: .3s;
    transform: translate(-50%, -50%)
}

.container:hover img {
    transform: scale(1.2);
    transition-duration: .3s;
    filter: grayscale(50%);
    opacity: .7;
}

.container:hover span {
    color: white;
    display: block;
    transition-duration: .3s;
}

@media only screen and (max-width: 900px) {
    .container {
        width: calc(50% - 6px);
    }
}

@media only screen and (max-width: 750px) {
    .container-all {
        margin-top: 80px;
    }
}

@media only screen and (max-width: 400px) {
    .container {
        width: 100%;
    }
}