
/*******************************************************************************************/
/* SERVICES                                                                                */
/*******************************************************************************************/

body.services{
    background-image: url('../img/fond-Services-Informations.png'); 
    background-size: cover;
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center;
}

main.services {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    margin-top: 170px;
    margin-bottom: 170px;
}

main.services img{
    width: calc(90% + 2.9vw);
    height: auto;
    margin: 0 ;
    border-radius: 10px;
    z-index: 100;
    border:3px solid black;
}

main.services img.servicesImg1Mobile, main.services img.servicesImg2Mobile{
    display: none;
}

main.services section{
    margin:0;
    position: relative
}

main.services h2{
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translate(-50%);
    background-color: rgba(255, 255, 255, 0);
    padding: 5px 20px;
    text-align: center;
    border-radius: 5px;
    white-space: nowrap; 
    max-width: 100%; 
    color: rgb(255, 255, 255);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: calc(18px + 0.5vw);
    z-index: 101;
    border:2px solid#ffffff;
    box-shadow: 0 0 15px 1px rgba(255, 255, 255, 0.274);
}

main.services button {
    position: absolute;
    top: 85%;
    left: 50%; 
    transform: translateX(-50%); 
    background-color: rgba(0, 0, 0, 0.205); 
    padding: 5px 20px; 
    text-align: center; 
    border: none; 
    border-radius: 5px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: calc(16px + 0.5vw);
    z-index: 101;
}

main.services button:hover{
    font-size: calc(18px + 0.5vw);
    box-shadow: 0 0 10px 2px white;
    z-index: 101;
}

main.services section > a{
    margin-left: 0px;
    margin-right: 0px;
}

main.services section.serviceParticulier{
   margin-left: 4%;
}

main.services section.serviceProfessionnel{
    margin-right: 4%;
}

/***************************************************************************************************************************************/
/***************************************************************************************************************************************/
/* MOBILE                                                                                                                              */
/***************************************************************************************************************************************/
/***************************************************************************************************************************************/

@media (max-width: 1100px){
    main.services {
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    main.services img{
        max-width: calc(100% - 18vw);
        height: auto;
        margin: 0;
        border-radius: 10px;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    main.services img.servicesImg1{
        margin-bottom: 1.5rem;
    }

    main.services img.servicesImg2{
        margin-bottom: 1.5rem;
    }

    main.services section.serviceParticulier{
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    main.services section.serviceProfessionnel{
        display: flex;
        justify-content: center;
        margin: 0;
    }

    main.services button {
        position: absolute;
        top: calc(77% + 1vw);
        left: 50%;
    }

    main.services button:hover{
        font-size: calc(19px + 0.4vw);
    }
}

/****************************************************************************************************************************/

@media (max-device-width: 768px) {

    /*body.services{
        background-image: url('../img/fond-Mobile.png');
        background-size: cover;
        background-repeat: no-repeat; 
        background-attachment: fixed; 
        background-position: center;
    }*/

    body.services{
        background-image: none;
    }

    main.services {
        margin-top: 5rem ;
    }

    main.services img.servicesImg1, main.services img.servicesImg2{
        display: none;
    }

    main.services img.servicesImg1Mobile, main.services img.servicesImg2Mobile{
        display: flex;
    }

    main.services img{
        width: 750px;
        
    }

    main.services section.serviceParticulier{
        margin-bottom: 8rem;
    }

    main.services h2{
        font-size: 45px;
        top: 4%;
        margin-top: 1rem;
    }

    main.services button {
        position: absolute;
        top: 85%;
        left: 50%;
        font-size: 40px;
    }
}
