:root {
    --main-color: linear-gradient(#213a8ebe, #A6CDEE);
    /* var(--main-color) */
    --second-color: linear-gradient(#A6CDEE, #213a8ebe);
    /* var(--second-color)*/
    --third-color: #A6CDEE;
    /* var(--third-color)*/
    --fourth-color: #213A8E;
    /*var(--fourth-color)*/
}

* {
    font-family: Merriweather;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

body {
    margin: 0;
    max-width: 100%;
}

header {
    background: white;
    height: 8.75rem;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

.img-bg {
    z-index: -10;
    position: fixed;
    top: 0;
    left: 0;

    /* Preserve aspet ratio */
    min-width: 100%;
    min-height: 100%;
}

footer {
    background: white;
}

.wrapper {
    max-width: 2560px;
    width: 100%;
    margin: 0;
}

.logo-div {
    float: left;
    height: 7rem;
    width: 15%;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
}

.logo-div img {
    object-fit: cover;
    box-sizing: border-box;
    border-style: solid;
    border-radius: 1rem;
    border-width: 0px;
    height: 100%;
    width: 100%;
}

ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
}

ul li {
    list-style: none;
    padding: 1.25rem 2.55rem;
    font-size: 1.15rem;
    text-align: center;
}

ul li a {
    padding-bottom: 2.5%;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    transition: all 0.1s;
}

ul li a:hover {
    border-bottom-width: 3px;
    border-color: var(--fourth-color);
    color: var(--fourth-color);
}

ul li span {
    font-weight: bold;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.title-div,
.main-content-div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-div {
    margin-top: 3%;
    margin-bottom: 7%;
}

.title-div h1 {
    font-size: 50px;
    color: #132253;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.accueil-info {
    margin: 0rem 0rem 10rem 10rem;
    padding: 1.5rem;
    width: 80%;
    height: auto;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.accueil-info p {
    font-size: large;
}

.main-content-div {
    padding-left: 20%;
    padding-right: 28%;
}

.main-content-div div {
    padding-bottom: 1%;
    margin-bottom: 6.5rem;
}

.main-content-border {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.main-content-border:before {
    content: '';
    width: 50px;
    height: 150px;
    position: absolute;
    transform: translateY(-10px);
    border-top: 1px solid #213A8E;
    border-left: 1px solid #213A8E;
}

.main-content-border img {
    width: 525px;
    height: 350px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.main-content-border .img-vertical {
    width: 350px;
    height: 425px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.img-div {
    position: absolute;
    z-index: -2;
    margin-top: 1rem;
    margin-left: 40rem;
}

.service-div {
    padding-left: 3.5%;
    width: 50%;
}

.service-div h2 {
    font-size: 35px;
}

.service-div p {
    padding-right: 15%;
    line-height: 1.75rem;
    margin: 0 0 1.25rem 0;
}

.fa-droplet {
    color: var(--fourth-color);
    margin-right: 0.25rem;
}

.service-bg {
    position: absolute;
    z-index: -1;
    width: 40rem;
    height: 20rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.horscontrat-div {
    margin-left: 42%;
    margin-bottom: 5%;
}

.horscontrat-div h2 {
    font-size: 40px;
    color: #132253;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

/*Service-bg ID pour chaque pages*/
#service-bg-misenservice {
    position: absolute;
    z-index: -1;
    width: 40rem;
    height: 25rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#service-bg-chaudiere {
    position: absolute;
    z-index: -1;
    width: 55rem;
    height: 88rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#service-div-chaudiere {
    width: 70%;
}

#service-bg-adoucisseur {
    position: absolute;
    z-index: -1;
    width: 47rem;
    height: 75rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#service-bg-Climatisation_PAC {
    position: absolute;
    z-index: -1;
    width: 51rem;
    height: 60rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#service-bg-PAC {
    position: absolute;
    z-index: -1;
    width: 51rem;
    height: 65rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}


#service-bg-chauffe-eau_bain {
    position: absolute;
    z-index: -1;
    width: 51rem;
    height: 60rem;
    margin-top: 0.2rem;
    margin-left: 0.75rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#main-content-border-adoucisseur,
#main-content-border-Climatisation_PAC,
#main-content-border-chauffe-eau_bain {
    margin-right: 40%;
}

#main-content-border-adoucisseur h2,
#main-content-border-adoucisseur p,
#main-content-border-Climatisation_PAC h2,
#main-content-border-Climatisation_PAC p,
#main-content-border-chauffe-eau_bain h2,
#main-content-border-chauffe-eau_bain p {
    padding-left: 1rem;
}

#main-content-border-adoucisseur .service-div,
#main-content-border-Climatisation_PAC .service-div,
#main-content-border-chauffe-eau_bain .service-div {
    width: 100%;
}

/*************************************/
.footer-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.footer-links {
    margin-right: 10%;
    margin-left: 10%;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0rem;
}

.footer-links h3 {
    font-size: 22px;
}

.footer-links p {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
}

.footer-map {
    margin: 2.5% 10% 2.5% 25%;
}

.footer-map iframe {
    width: 550px;
    height: 300px;
}

/*Gallery img*/

.gallery-container-clim img {
    width: 500px;
    height: 350px;
    margin: 10px;
    border: 10px solid #fefae0;
    -webkit-filter: sepia(100%);
    filter: sepia(100%);
    transition-duration: 1s;
}

.gallery-container,
.gallery-container-clim {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0% 10% 5% 10%;
}

.gallery-container-horscontrat_div {
    padding: 0% 0% 5% 0%;
}

.gallery-container img {
    width: 350px;
    height: 500px;
    margin: 10px;
    border: 10px solid #fefae0;
    -webkit-filter: sepia(100%);
    filter: sepia(100%);
    transition-duration: 1s;
}

.gallery-container img:hover,
.gallery-container-clim img:hover {
    border: 5px solid #fff;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-filter: none;
    filter: none;
}

.gallery-container-textdiv {
    width: 20rem;
    height: 2.5rem;
    margin-left: 0.65rem;
    background-color: white;
    opacity: 90%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.gallery-container-textdiv p {
    padding: 0.58rem;
}

/**/
/*Contact*/
.form-pretext p {
    margin-left: 10%;
}
.form-div {
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
}

.form-input {
    width: 38rem;
    height: 5rem;
    padding-left: 25px;
    padding-top: 5px;
    font-weight: 800;
    font-size: large;
    border-color: #132253;
    border-radius: 25px;
    margin: 1rem;
}

.form-button {
    width: 50%;
    height: 4rem;
    font-weight: bold;
    font-size: large;
    background-color: #A6CDEE;
    border-color: #132253;
    color: #132253;
    cursor: pointer;
    border-radius: 50px;
    margin-left: 25%;
    margin-top: 5%;
}

.invalid-feedback,
.empty-feedback {
    display: none;
}

.was-validated :placeholder-shown:invalid~.empty-feedback {
    display: block;
}

.was-validated :not(:placeholder-shown):invalid~.invalid-feedback {
    display: block;
}

.is-invalid,
.was-validated :invalid {
    border-color: #dc3545;
}

/**/
/*Page À Propos et Mentions Légales*/
.main-content-div-apropos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10rem;
}

.apropos-div {
    background-color: white;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    opacity: 95%;
    width: 50%;
    height: auto;
}

.apropos-div h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.apropos-div p {
    font-size: 1.25rem;
    padding: 2.5rem;
}

/**/
.service-div h2,
.service-div p,
.img-div {
    animation: fadein 1.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*****************/

/*Laptop Big*/
@media (max-width: 1490px) {
    .main-content-div {
        padding-left: 18%;
        padding-right: 28%;
    }

    .main-content-border img {
        width: 500px;
    }

    .service-div {
        padding-left: 3.5%;
        width: 90%;
    }

    #main-content-border-adoucisseur,
    #main-content-border-Climatisation_PAC,
    #main-content-border-chauffe-eau_bain {
        margin-right: 0%;
    }

    #service-bg-misenservice {
        height: 30rem;
    }

    #service-bg-chaudiere {
        height: 92rem;
    }

    #service-div-chaudiere {
        width: 90%;
    }

    #service-bg-adoucisseur {
        height: 65rem;
    }

    #service-bg-Climatisation_PAC {
        height: 50rem;
    }

    #service-bg-PAC {
        height: 55rem;
    }


}

/*Laptop Small*/
@media (max-width: 1024px) {
    header {
        height: 12rem;
    }

    .logo-div {
        padding-top: 2rem;
    }

    .accueil-info {
        margin: 0rem 0rem 10rem 5rem;
    }

    .main-content-div {
        padding-left: 10%;
        padding-right: 0%;
    }

    .main-content-border img {
        width: 375px;
        height: 275px;
    }

    .img-div {
        margin-left: 30rem;
    }

    .service-div {
        padding-left: 3.5%;
        width: 50%;
    }

    .service-bg {
        width: 30rem;
        height: 22.5rem;
    }

    hr {
        width: 90%;
    }

    .apropos-div {
        width: 75%;
    }

    #service-bg-misenservice {
        width: 30rem;
        height: 30rem;
    }

    #service-bg-chaudiere {
        width: 47rem;
        height: 84rem;
    }

    #service-div-chaudiere {
        width: 90%;
    }

    #service-bg-adoucisseur {
        width: 51.5rem;
    }

    #service-bg-Climatisation_PAC {
        width: 47rem;
        height: 52rem;
    }
    #service-bg-PAC {
        width: 47rem;
    }

    .footer-map {
        margin: 2.5% 5% 2.5% 5%;
    }


}

/*Tablet*/
@media (max-width: 832px) {
    header {
        position: relative;
        height: 17rem;
    }

    .logo-div {
        padding-top: 4rem;
    }

    .title-div h1 {
        font-size: 35px;
    }

    .accueil-info {
        margin: 0rem 0rem 7.5rem 5rem;
    }

    .main-content-border img {
        width: 350px;
        height: 250px;
    }

    .main-content-border .img-vertical {
        width: 250px;
        height: 325px;
    }

    .img-div {
        margin-left: 20rem;
    }

    #img-div-vertical {
        margin-left: 25rem;
    }

    .service-div {
        padding-left: 3.5%;
        width: 75%;
    }

    .service-bg {
        width: 31rem;
        height: 20rem;
    }

    hr {
        width: 85%;
    }

    .apropos-div {
        width: 75%;
    }

    #service-bg-misenservice {
        height: 26rem;
    }

    #service-bg-chaudiere {
        width: 35.5rem;
        height: 96.5rem;
    }

    #service-bg-chauffe-eau_bain {
        width: 39.75rem;
    }

    #service-bg-adoucisseur {
        width: 39.75rem;
        height: 70rem;
    }

    #service-bg-Climatisation_PAC {
        width: 40rem;
        height: 52rem;
    }
    #service-bg-PAC {
        width: 40rem;
    }

    .horscontrat-div {
        margin-left: 40%;

    }

    .horscontrat-div h2 {
        font-size: 30px;
    }


    .footer-map {
        margin: 2.5% 2.5% 2.5% 2.5%;
    }

    .footer-map iframe {
        width: 350px;
        height: 225px;
    }

    /*****/
    .gallery-container img {
        width: 350px;
        height: 500px;
        margin: 10px;
        border: 10px solid #fefae0;
        -webkit-filter: none;
        filter: none;
        transition-duration: 1s;
    }

    .gallery-container-clim img {
        width: 500px;
        height: 350px;
        margin: 10px;
        border: 10px solid #fefae0;
        -webkit-filter: none;
        filter: none;
        transition-duration: 1s;
    }

    /*****/

    .form-input {
        width: 28rem;
    }
}

/*Mobile Large*/
@media (max-width: 425px) {
    header {
        position: relative;
        height: 17rem;
    }

    .logo-div {
        float: none;
        height: 7rem;
        width: 15%;
        padding-left: 30%;
        padding-top: 0.5rem;
    }

    .logo-div img {
        width: auto;
    }

    ul {
        margin: 0% 10% 0% 0%;
        justify-content: center;
    }

    ul li {
        font-size: 0.95rem;
        padding: 0.3rem 0.5rem;
    }

    .title-div h1 {
        font-size: 20px;
    }

    .accueil-info {
        margin: 0rem 0rem 2.5rem 1.25rem;
        width: 80%;
    }

    .accueil-info p {
        font-size: 0.8rem;
    }

    .main-content-border img {
        width: 250px;
        height: 150px;
    }

    .main-content-border .img-vertical {
        width: 150px;
        height: 225px;
    }

    .img-div {
        margin-left: 7rem;
        margin-top: 11.5rem;
    }

    #img-div-vertical {
        margin-left: 13.25rem;
        margin-top: 6.5rem;
    }

    .service-div {
        padding-left: 6.5%;
        width: 95%;
    }

    .service-div h2 {
        font-size: 18px;
    }

    .service-div p {
        padding-right: 15%;
        line-height: 1.25rem;
        margin: 0 0 1.25rem 0;
        font-size: 0.6rem;
    }

    .service-bg {
        width: 20rem;
        height: 13.2rem;
    }

    .apropos-div {
        width: 95%;
    }

    .apropos-div h2 {
        font-size: 1.25rem;
    }

    .apropos-div p {
        font-size: 0.9rem;
        padding: 2.5rem;
    }

    #service-bg-misenservice {
        height: 15rem;
        width: 20rem;
    }

    #service-bg-chaudiere {
        width: 20rem;
        height: 78.5rem;
    }

    #service-bg-chauffe-eau_bain {
        width: 21rem;
        height: 56rem;
    }

    #service-bg-adoucisseur {
        width: 21rem;
        height: 59rem;
    }

    #service-bg-Climatisation_PAC {
        width: 21rem;
        height: 45rem;
    }
    #service-bg-PAC{
        width: 21rem;
    }

    .horscontrat-div {
        margin-left: 35%;

    }

    .horscontrat-div h2 {
        font-size: 19px;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-map {
        margin: 0.25% 0.5% 0.25% 0.5%;
    }

    .footer-map iframe {
        width: 275px;
        height: 272px;
    }

    /*****/
    .gallery-container img {
        width: 250px;
        height: 400px;
        margin: 10px;
        border: 5px solid #fefae0;
    }

    .gallery-container-clim img {
        width: 325px;
        height: 175px;
        margin: 10px;
        border: 5px solid #fefae0;
    }

    .gallery-container-textdiv {
        font-size: 0.9rem;
        width: auto;
    }

    /*****/

    .form-input {
        width: 18rem;
        height: 3.75rem;
    }

}

/*Mobile Medium*/
@media (max-width: 375px) {
    header {
        position: relative;
        height: 20rem;
    }

    .logo-div {
        float: none;
        height: 7rem;
        width: 15%;
        padding-left: 22%;
        padding-top: 0.5rem;
    }

    .logo-div img {
        width: auto;
    }

    ul {
        margin: 0% 10% 0% 0%;
        justify-content: center;
    }

    ul li {
        font-size: 0.95rem;
        padding: 0.3rem 0.5rem;
    }

    .title-div h1 {
        font-size: 19px;
    }

    .accueil-info {
        margin: 0rem 0rem 2.5rem 0.85rem;
        width: 80%;
    }

    .accueil-info p {
        font-size: 0.73rem;
    }

    .main-content-border img {
        width: 250px;
        height: 150px;
    }

    .main-content-border .img-vertical {
        width: 150px;
        height: 225px;
    }

    .img-div {
        margin-left: 4rem;
        margin-top: 12.5rem;
    }

    #img-div-vertical {
        margin-left: 10.25rem;
        margin-top: 6.5rem;
    }

    .service-div {
        padding-left: 6.5%;
        width: 95%;
    }

    .service-div h2 {
        font-size: 14px;
    }

    .service-div p {
        padding-right: 15%;
        line-height: 1.25rem;
        margin: 0 0 1.25rem 0;
        font-size: 0.6rem;
    }

    .service-bg {
        width: 18rem;
        height: 13.2rem;
    }

    .apropos-div {
        width: 95%;
    }

    .apropos-div p {
        font-size: 0.98rem;
        padding: 2.5rem;
    }

    #service-bg-misenservice {
        height: 16rem;
        width: 18rem;
    }

    #service-bg-chaudiere {
        width: 18rem;
        height: 78.5rem;
    }

    #service-bg-chauffe-eau_bain {
        width: 18rem;
        height: 56rem;
    }

    #service-bg-adoucisseur {
        width: 18.5rem;
        height: 62rem;
    }

    #service-bg-Climatisation_PAC {
        width: 18rem;
        height: 48rem;
    }
    #service-bg-PAC {
        width: 18rem;
    }

    .horscontrat-div {
        margin-left: 35%;
    }

    .horscontrat-div h2 {
        font-size: 18px;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-map {
        margin: 0.25% 0.5% 0.25% 0.5%;
    }

    .footer-map iframe {
        width: 275px;
        height: 272px;
    }
}

/*Mobile Small*/
@media (max-width: 320px) {
    header {
        position: relative;
        height: 20rem;
    }

    .logo-div {
        float: none;
        height: 7rem;
        width: 15%;
        padding-left: 22%;
        padding-top: 0.5rem;
    }

    .logo-div img {
        width: auto;
    }

    ul {
        margin: 0% 10% 0% 0%;
        justify-content: center;
    }

    ul li {
        font-size: 0.95rem;
        padding: 0.3rem 0.5rem;
    }

    .title-div h1 {
        font-size: 16px;
    }

    .accueil-info {
        margin: 0rem 0rem 2.5rem 0.5rem;
        width: 80%;
    }

    .accueil-info p {
        font-size: 0.7rem;
    }

    .main-content-border img {
        width: 250px;
        height: 150px;
    }

    .main-content-border .img-vertical {
        width: 150px;
        height: 225px;
    }

    .img-div {
        margin-left: 2rem;
        margin-top: 12.5rem;
    }

    #img-div-vertical {
        margin-left: 8.25rem;
        margin-top: 6.5rem;
    }

    .service-div {
        padding-left: 6.5%;
        width: 95%;
    }

    .service-div h2 {
        font-size: 14px;
    }

    .service-div p {
        padding-right: 15%;
        line-height: 1.25rem;
        margin: 0 0 1.25rem 0;
        font-size: 0.6rem;
    }

    .service-bg {
        width: 16rem;
        height: 14.2rem;
    }

    .apropos-div {
        width: 95%;
    }

    .apropos-div p {
        font-size: 0.9rem;
        padding: 2.5rem;
    }

    #service-bg-misenservice {
        height: 17rem;
        width: 16rem;
    }

    #service-bg-chaudiere {
        width: 16rem;
        height: 94.5rem;
    }

    #service-bg-chauffe-eau_bain {
        width: 16rem;
        height: 62rem;
    }

    #service-bg-adoucisseur {
        width: 16rem;
        height: 67rem;
    }

    #service-bg-Climatisation_PAC {
        width: 16rem;
        height: 52rem;
    }
    #service-bg-PAC {
        width: 16rem;
    }

    .horscontrat-div {
        margin-left: 35%;

    }

    .horscontrat-div h2 {
        font-size: 16px;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-map {
        margin: 0.25% 0.5% 0.25% 0.5%;
    }

    .footer-map iframe {
        width: 275px;
        height: 272px;
    }

    /*****/

    .form-input {
        width: 15rem;
        height: 2.75rem;
    }

}