body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
    font-size: 14px;
    background-image: url(https://i.pinimg.com/originals/31/59/c8/3159c88344197fad2feb95fe13f51963.jpg);
    background-size: cover;
}

header {
    background-color: #b4a7a7;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
}

header a {
    text-decoration: none;
    color: rgb(113, 104, 104);
    margin-right: 2%;
}

header a:hover {
    color: #ff3030;
}

h1 {
    margin-right: 5%;
    margin-right: 5%;
}

.cannard {
    width: 20px;
    height: auto;
    margin-right: 5%;
}

.produit {
    text-align: center;
    margin: 20px;
    border: 10px solid #746868;
    border-radius: 10px;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
}

img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s;
}

.produit:hover img {
    transform: scale(1.3);
}

p {
    background-color: #bd1919d4;
    padding: 10px;
    border-radius: 10px;
    width: 80%;
    margin: 0 auto;
    margin-top: 10px;
}

span {
    color: #b00020e3;
}
#HEAD {
display: flex;
flex-wrap: wrap; 
justify-content: space-between;
align-items: center;
}
.cannard{
    flex: 1;
    max-width: 10%;
}
#container-flex {

    width: 20%;
    display: flex;
    align-items: center;
    }

@media only screen and (max-width: 1038px) {
    .produit {
        width: 90%; 
    }
    h1{
        text-align: center;
    }
    display: flex-grow: .cannard
}

@media only screen and (max-width: 600px) {
    .produit {
        width: 100%;
    }
    h1{
        text-align: center;
    }
}
@media only screen and (max-width: 1038px) {
    .cannard{
        mask-image: none;
    } 
    h1{
        text-align: center;
    }
}
@media only screen and (max-width: 971px), (min-width: 716px) {
    h1{
        text-align: center;
    }    
    .cannard{
        mask-image: none;
    } 
    body{
        align-items: center;
        
    }
}