*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #ececec;
}

.wrapper{
    width: 90%;
    margin: 0 auto;
}

.slide{
    width: 100%;
    min-height: 100vh;
}

.title{
    text-decoration: underline;
}

.date{
    font-size: 20px;
    font-style: italic;
}

.description{
    font-size: 18px;
}

.products{
    display: block;
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.products img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.prod-title{
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 2em;
    transition: all 0.8s;
}

.products:hover .prod-title{
    top: 0;
}


#container-products{
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#contact{
    background-color: silver;
}

#contact form{
    width: 80%;
    margin: 0 auto;
}

.form-group{
    width: 100%;
    margin: 20px 0;
}

.form-group label{
    display: block;
}

.form-group input, .form-group textarea{
    width: 100%;
    font-size: 1.2em;
}

.form-group textarea{
    resize: none;
    height: 300px;
}

.form-group input[type=submit]
{
    width: auto;
    padding: 3px 50px;
}
/****** validation de formulaire ******/

.is-invalid{
    border-color: red;
}

.is-invalid:focus{
    border: none;
    outline:none;
    outline: solid red 1px;
}

.invalid-feedback{
    color: red;
    display: none;
}
/* select frère adjacent */
.is-invalid + .invalid-feedback{
    display: block;
}



/** pour PHP (GET error et GET add = success) **/
.error{
    width: 100%;
    text-align: center;
    background-color: red;
    padding: 20px 0;
}

.success{
    width: 100%;
    text-align: center;
    background-color: green;
    padding: 20px 0;  
}

/****** fin ----- validation de formulaire ******/