* {
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}

/* ========================================== */


body {
    background-color: #ffffff;
    color: black;
    margin: 0%;
    font-family: 'Bai Jamjuree', sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

.redone {
    text-align: left;
    color: #e20612;
    font-family: 'Bai Jamjuree', sans-serif;
}


#slide-mobile {
    display: none;
}
.flex-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    justify-content: center;
}

.para-right {
    text-align: center;
    width: 100%;
}

#centrage {
    text-align: center;
}

#eclairlogo {
    text-align: center;
    padding-right: 100px;
    font-size: 1.5em;
}

#centering {
    text-align: center;
    padding-right: 100px;
}

.textcenter {
    text-align: center;
}

.box {
    max-width: 33%;
    padding: 10px;
    flex: 1 1 200px;
}

.smaller {
    flex-shrink: 5;
}

hr {
    border: 1px solid #e20612;
    align-content: center;
    width: 90%;
}

h2 {
    text-align: center;
}

h1 {
    text-align: center;
    font-size: 3em;
    
}

.pics-left {
    float: left;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    max-width: 100%;
    margin: 20px;
}

.card {
    flex: 1 0 500px;
    margin: 10px;
}

.card img {
    max-width: 100%;
}

.card .text {
    padding: 0 20px 20px;
}

.card .text>button {
    background: gray;
    border: 0;
    color: white;
    padding: 10px;
    width: 100%;
}

.textvtt {
    color: #e20612;
    text-align: left;
}

.btndemande {
    display: flex;
    background-color: #e20612;
    justify-content: center;
    align-items: center;
    color: white;
    width: 70%;
    
}

.btndemande:hover {
    display: flex;
    background-color: white;
    border: 2px solid #e20612;
    justify-content: center;
    align-items: center;
    color: #e20612;
    
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}



.btndemande {
    display: flex;
    background-color: #e20612;
    justify-content: center;
    align-items: center;
    color: white;
    width: 70%;
    padding: 5px 0;
    border: 2px solid transparent;
    
}

.btndemande:hover {
    display: flex;
    background-color: white;
    border: 2px solid #e20612;
    justify-content: center;
    align-items: center;
    color: #e20612;
   
}

button {
    background-color: #e20612;
    color: white;
}

.flexbox-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flexbox-one {
    width: 50%;
}

.flexbox-two {
    width: 50%;
}

.testfourtwo {
    width: 50%;
}

.conteneurpetit {
    width: 100%;
    align-items: center;
    justify-content: center;
}

.section_trois {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    background-color: #f4eeee;
}

.box-one {
    background-image: url(../images/index-logo-coupe.png);
    width: 20%;
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.box-two {
    width: 40%;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.box-tree {
    width: 40%;
    display: flex;
    background-image: url(../images/garage-mecanique-serge-brault.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.container_four {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    width: 100%;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.testsectfourone {
    height: 100%;
}

.container_four>img {
    max-height: 100%;
    max-width: 100%;
    margin-left:-20px ;
    object-fit: cover;
}

.four_two {
    padding-right: 60px;
}

/*-----------------------début mediaquery ecran maximum jusqua 1674 px ----------*/

@media only screen and (min-width: 1674px) {
    .headcontainer {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        /* height: 900px; */
        background: url(../images/index-slider-header.jpg);
        /* background-position: top left; */
        background-repeat: no-repeat;
        padding-bottom: 45%;
        width: 100%;
        background-size: cover;
        background-attachment: fixed;
    }

}

/*--------------------début media query maximum d'ecran de 1674px et moin ----------*/

@media only screen and (max-width: 1674px) {
    
    .headcontainer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
        /* height: 900px; */
        background: url(../images/index-slider-header.jpg);
        background-position: center; 
        background-repeat: no-repeat;
        padding-bottom: 38%;
        width: 100%;
        background-size: contain;
        background-attachment: fixed;
    }
    .anglenav {
        display: none;
    }

    .card {
        margin: 10px;
        width: 100%;
        text-align: left;
    }

    .card .text {
        padding: 0 20px 20px;
        text-align: left;
    }
    .box-one {
        display: none;
        padding: 20px;
    }
    .box-two {
        width: 100%;
        margin: 40px;
        justify-content: center;
        align-content: center;
        align-items: center;
    }
    .redone {
        text-align: left;
        color: #e20612;
        font-family: 'Bai Jamjuree', sans-serif;
    }

    .pics-left {
        float: left;
    }
    .mailer {
        text-decoration: none;
        color: black;
    }
}


@media only screen and (max-width: 1350px) {


    .headcontainer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        /* height: 900px; */
        background: url(../images/index-slider-header.jpg);
        background-position:  center; 
        background-repeat: no-repeat;
        padding-bottom: 41%;
        width: 100%;
        background-size: contain;
        background-attachment: fixed;
    }

    .section_trois {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: flex-start;
        justify-content: flex-end;
        background-color: #f4eeee;
    }
    .box-one {
        display: none;
        padding: 20px;
    }
    .box-two {
        width: auto;
        margin-top: 40px;
        margin-bottom: 40px;
        text-align: left;
        justify-content: center;
        align-content: center;
        align-items: center;
    }
    .pics-left {
        float: left;
    }
    .container_four > img {
        width: 499px;
    }
}


@media only screen and (max-width: 1048px ){ 

    .headcontainer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding-bottom: 54%;
        width: 100%;
        background-size: contain;
        background-attachment: fixed;
        background: unset;
        padding-bottom: unset;
        position: fixed;
    }
    #slide-mobile {
        display: block;
        width: 100%;
        padding-top: 38px;
    }
    .slider {
        display: block;
        background-image: url(../images/index-slider-header-sm.jpg);
        background-position-y: 78px ; 
        width: 100%;
        padding-bottom: 55%;
        background-size: contain;
        background-repeat: no-repeat;
        /*background-attachment: fixed;*/
        margin-top: 48px;
    }
} 


@media only screen and (max-width: 768px) {


    h1 {
        font-size: 1.6em;
    }

    article {
       
        background-position: left;
        background-repeat: no-repeat;
        background-size: contain;
    }
    .container_four {
        display: flex;
        flex-direction: column;
        text-align: left;
        flex-grow: 1;
        align-items: flex-start;
        width: 100%;
        margin: auto;
        padding-left: 20px;
        padding-top: 50px;
        padding-bottom: 50px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .container_four > img {
        width: unset;
    }
    .container {
        align-items: center;
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
    }

   
    #centrage {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    #eclairlogo {
        text-align: center;
        padding-right: 0px;
      
        font-size: 1.5em;
    }

    #centering {
        text-align: center;
        padding-right: 0px; 
    }
    #slide-mobile {
        padding-top: 100px;
    }
    .flex-container {
        margin-top: unset;
    }
}
/* Extra small devices (phones, 600px and down) */

@media only screen and (max-width: 600px) {



    .iconediagnostique{
        display: none;
    }

    div.para-right h1 {
       
        font-size: 2em;
    }

    #centering {
        text-align: center;
        padding-right: 0px; 
    }
    .btndemande {
        text-align: center;
        padding: 10px;
        
    }

}


@media  (min-width: 1px) and (max-width: 536px) {


    .headcontainer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        /* height: 900px; */
        /*background: url(../images/index-slider-header.jpg);*/
        background-position:  center; 
        background-repeat: no-repeat;
       /* padding-bottom: 61%;*/
        width: 100%;
        background-size: contain;
        background-attachment: fixed;
    }

    .slider {
        margin-top: 59px;
    }

    div.para-right h1 {
       margin: 20px;
        font-size: 1.5em;
    }

    #eclairlogo {
        text-align: left;
        padding-right: 0px;
        margin: 20px;
        font-size: 1em;
    }

    #centering {
        text-align: left;
        margin: 20px;
        padding-right: 0px; 
    }

    .textcenter {
        text-align: left;
        margin: 20px;
    }

    .cards {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-end;
    padding: 0px;
    padding-left: 0px;
    /* flex-wrap: wrap; */
    /* align-items: stretch; */
    /* justify-content: left; */
    max-width: 100%;
    margin: 0px;
}

.card {
    margin: 10px;
    width: 100%;
    text-align: left;
}

}

/*-------------------------------------------fin de media query--------------------------------*/