/*******************************************************************************************/
/* GLOBAL                                                                                  */
/*******************************************************************************************/

body{
    margin-top: 10px;
    margin-left: 0px;
    margin-right: 0px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    height: 100%;
}

main{
    flex:1;
}

/*******************************************************************************************/
/* HEADERS                                                                                 */
/*******************************************************************************************/

body > header img{
    width: 8rem;
    margin-left: 50px;
    margin-right: 0px;
    margin-top: 18px;
    margin-bottom: 15px;
    border: 2px solid white;
}

/*******************************************************************************************/
/* NAVIGATION                                                                              */
/*******************************************************************************************/

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #6C9380;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    
}

nav ul{
    display: flex;
    justify-content: space-evenly;
    width: 60%;
    flex-wrap: nowrap;
    margin-right: 2rem;
    z-index: 1001;
}

nav li{
    position: relative;
    cursor: pointer;
    list-style: none;
    margin-left: 1rem;
}

nav a.lien{
    color: white;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    text-decoration: none;
    white-space: nowrap;
}

nav img{
    width: 8rem;
    margin-left: 50px;
    margin-right: 0px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 2px solid white;
}

nav ul li a.actif::after {
    content: "";
    position: absolute;
    bottom: -0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: white;
}

header > nav ul > li::before {
    transition: 300ms;
    height: 3px;
    content: "";
    position: absolute;
    background-color: white;
    width: 0%;
    bottom: 0px;
}

header > nav ul > li:hover::before {
    width: 100%;
}

.menu-icon {
    cursor: pointer;
    display: none;
}

/*******************************************************************************************/
/* FOOTER                                                                                  */
/*******************************************************************************************/

footer{
    background-color: #e4edfa;
    margin-top: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 77px;
    margin-right: 0;
}

footer section a, footer section p{
    color: rgb(0, 0, 0);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

footer section p{
    margin-left: 7px;
    margin-right: 7px;
}

footer section li{
    list-style: none;
}

footer ul{
    display: flex;
    flex-direction: row;
    padding-left: 0;
    align-items: center;
    margin-left: 1.2rem;
    margin-bottom: 0;
    margin-top: 0;
    height: 50px;
}

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

@media (max-width: 1100px){

    /*******************************************************************************************/
    /* GLOBAL                                                                                  */
    /*******************************************************************************************/

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

    /*******************************************************************************************/
    /* NAVIGATION                                                                              */
    /*******************************************************************************************/

    nav{
        height: 102px;
    }


    .menu-icon{
        display: block;
        position: relative;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-right: 2rem;
        transition: transform 0.5s;
    }

    .menu-icon span{
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition: background 0.5s, transform 0.5s;
    }

    .menu-icon span::before,.menu-icon span::after{
        content:'';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 25px;
        height: 2px;
        transform: translateY(-8px);
        background-color: white;
        transition: transform 0.5s;
        transform-origin: 50% 50%;
    }

    .menu-icon span::after{
        transform: translateY(8px);
    }

    .menu-icon:hover span::before{
        transform: translateY(-10px);
    }

    .menu-icon:hover span::after{
        transform: translateY(10px);
    }

    .menu-icon.is-open span{
        background: transparent;
    }

    .menu-icon.is-open span::before{
        transform: translateY(0) rotate(45deg);
    }

    .menu-icon.is-open span::after{
        transform: translateY(0) rotate(-45deg);
    }

    .menu-icon.is-open{
        transform: rotate(180deg);
    }

    nav ul{
        position: fixed;
        right: -120%;
        top:102px;
        flex-direction: column;
        background-color: #bcd1d1; 
        width: 50%;
        height: 100%;
        text-align: center;
        transition: 0.40s;
        margin:0;
        padding: 3rem 0;
        justify-content: flex-start;
        z-index: 1001;
    }
    
    nav.is-open ul{
        right: 0;
    }

    nav li{
        padding: 1rem 0;
        margin: 0 12%;
        width: auto;
    }

    nav a.lien{
        font-size: 30px;
        color: rgb(0, 0, 0);
        font-weight: 300;
    }

    nav li:hover{
        background-color:#c7dada ;
    }

    nav ul li a.actif::after,
    header > nav ul > li::before {
        display: none;
    }
}

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

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

    body{
        margin-top: 8rem;
    }

    nav {
        height: 175px;
    }

    nav img{
        width: 14rem !important;
    }

    .menu-icon{
        display: block;
        position: relative;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-right: 4rem;
        transition: transform 0.5s;
    }

    .menu-icon span{
        display: block;
        width: 75px;
        height: 2px;
        background-color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition: background 0.5s, transform 0.5s;
    }

    .menu-icon span::before,.menu-icon span::after{
        content:'';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 75px;
        height: 2px;
        transform: translateY(-24px);
        background-color: white;
        transition: transform 0.5s;
        transform-origin: 50% 50%;
    }

    .menu-icon span::after{
        transform: translateY(24px);
    }

    .menu-icon:hover span::before{
        transform: translateY(-24px);
    }

    .menu-icon:hover span::after{
        transform: translateY(24px);
    }

    .menu-icon.is-open span{
        background: transparent;
    }

    .menu-icon.is-open span::before{
        transform: translateY(0) rotate(45deg);
    }

    .menu-icon.is-open span::after{
        transform: translateY(0) rotate(-45deg);
    }

    .menu-icon.is-open{
        transform: rotate(180deg);
    }

    nav ul{
        position: fixed !important;
        right: -550px;
        top:175px !important;
        flex-direction: column !important;
        background-color: #bcd1d1 !important; 
        width: 50% !important;
        height: 100% !important;
        text-align: center !important;
        transition: 0.40s !important;
        margin:0 !important;
        padding: 3rem 0 !important;
        justify-content: flex-start !important;
        z-index: 1001 !important;
    }
    
    nav.is-open ul{
        right: 0;
    }

    nav li{
        padding: 2.5rem 0 !important;
        margin: 0 12% !important;
        width: auto !important;
    }

    nav a.lien{
        font-size: 55px !important;
        color: rgb(0, 0, 0) !important;
        font-weight: 300 !important;
    }

    nav li:hover{
        background-color:#c7dada !important;
    }

    nav ul li a.actif::after,
    header > nav ul > li::before {
        display: none;
    }





    footer{
        height: 100px;
        margin-top: 5rem;
    }
    
    footer section a, footer section p{
        font-size: 26px;
    }
}
