/* ==================================Style général============================= */

*,
*:before,
*:after {
    /* Chrome 9-, Safari 5-, iOS 4.2-, Android 3-, Blackberry 7- */
    -webkit-box-sizing: border-box;

    /* Firefox (desktop or Android) 28- */
    -moz-box-sizing: border-box;

    /* Firefox 29+, IE 8+, Chrome 10+, Safari 5.1+, Opera 9.5+, iOS 5+, Opera Mini Anything, Blackberry 10+, Android 4+ */
    box-sizing: border-box;
}


h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.1em;
}

h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2em;
}

body {
    font-family: 'Lato', sans-serif;
    color: #46484A
}

.bouton {
    border-radius: 46px;
    border: none;
    width: 486px;
    height: 90px;
    background-image: linear-gradient(to right, #224F22 30%, #55BF55);
    color: white;
    font-size: 1.6em;
}

.bouton:hover {
    background-image: linear-gradient(to left, #224F22 25%, #55BF55);
}

.bouton a {
    color: white;
    text-decoration: none;
    padding: 20px 40px;
}

/* ================ Responsive style =============*/

@media screen and (max-width: 480px) {
    .bouton {
        width: auto;
        padding: 0 5rem;
        font-size: 1em;
        height: 70px;
    }

    #wholeContent img {
        display: none;
    }

    #wholeContent {
        height: 100%;
    }

    h1 {
        font-size: 2.1em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .bouton {
        width: auto;
        padding: 0 5rem;
        font-size: 1em;
        height: 70px;
    }

    #wholeContent {
        height: auto;
    }

    h1 {
        font-size: 2.1em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }
}

/* =============================Style Header ========================================*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #687F7B;
}

/*------- Style Logo et Nom Cabinet -------*/

#logoNom {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#logoTivoli {
    height: 80px;
    width: 80px;
}

header h1 {
    padding-left: 20px;
}

/*----------Syle du menu de navigation ---------*/

nav {
    width: 55%;
}

#iconeMenu {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    text-align: center;
}

nav li ul li {
    font-size: 1.4em;
    padding-right: 25px;
    margin: auto;
}

header a {
    text-decoration: none;
    color: #46484A
}

header a:hover {
    text-decoration: underline;
    color: #058205
}

/* ========Responsive header =========== */

@media screen and (max-width: 480px) {
    header {
        width: 100%;
        height: 50px;
        background-color: white;
        position: fixed;
        top: 0;
        z-index: 1;
    }

    #logoTivoli {
        height: 40px;
        width: 40px;
    }

    #logoNom h1 {
        font-size: 1.7em;
    }

    nav {
        width: auto;
        margin-right: 1rem;
    }


    #iconeMenu {
        display: inherit;
        height: 20px;
    }

    #mainMenu,
    #mainMenu ul {
        padding: 10px 0 0 0;
        margin: 0;
    }

    nav li ul {
        list-style: none;
        display: inherit;
        text-align: center;
    }

    nav li ul li {
        font-size: 1.6em;
        padding: 5px;
        margin: 0;
    }

    #mainMenu ul {
        position: absolute;
        z-index: 1000;
        max-height: 0;
        left: 0;
        right: 0;
        overflow: hidden;
        -moz-transition: .8s all .3s;
        -webkit-transition: .8s all .3s;
        transition: .8s all .3s;
    }

    #mainMenu li:hover ul {
        max-height: 25em;
    }

    #mainMenu li {
        background-color: white;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    header {
        width: 100%;
        height: 50px;
        background-color: white;
        position: fixed;
        top: 0;
        z-index: 1;
    }

    #logoTivoli {
        height: 40px;
        width: 40px;
    }

    nav {
        width: auto;
        margin-right: 1rem;
    }


    #iconeMenu {
        display: inherit;
        height: 20px;
    }

    #mainMenu,
    #mainMenu ul {
        padding: 10px 0 0 0;
        margin: 0;
    }

    nav li ul {
        list-style: none;
        display: inherit;
        text-align: center;
    }

    nav li ul li {
        font-size: 1.6em;
        padding: 5px;
        margin: 0;
    }

    #mainMenu ul {
        position: absolute;
        z-index: 1000;
        max-height: 0;
        left: 0;
        right: 0;
        overflow: hidden;
        -moz-transition: .8s all .3s;
        -webkit-transition: .8s all .3s;
        transition: .8s all .3s;
    }

    #mainMenu li:hover ul {
        max-height: 25em;
    }

    #mainMenu li {
        background-color: white;
    }
}




/* ==========================================Style Footer =========================================*/

footer {
    background-color: #46484A;
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 40px;
}

.footer1 {
    height: 160px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: none;
    color: #058205;
}


.colFooter {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.colFooter p {
    line-height: 1.5;
    margin: 0 0 0 0;
}

.colFooter h3 {
    margin: 10px 0 0 0;
}

.copyright {
    align-self: center;
}

/*================== Responsive footer ============*/

@media screen and (max-width: 480px) {
    footer {
        background-color: #46484A;
        display: flex;
        flex-direction: column;
        color: white;
        font-size: 0.8em;
        text-align: center;
        margin: auto;
        height: auto;
    }

    .footer1 {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-around
    }

    footer a {
        text-decoration: none;
        color: white;
    }

    footer a:hover {
        text-decoration: none;
        color: #058205;
    }


    .colFooter {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .colFooter:last-child {
        padding: 0;
    }

    .colFooter p {
        line-height: normal;
        margin: 0;
        padding: 0;
    }

    .colFooter h3 {
        margin: 0;
        padding: 0;
    }

    .copyright {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    footer {
        background-color: #46484A;
        display: flex;
        flex-direction: column;
        color: white;
        margin-top: 40px;
        font-size: 0.6em;
        width: 100%;
    }

    .footer1 {
        height: 100px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    footer a {
        text-decoration: none;
        color: white;
    }

    footer a:hover {
        text-decoration: none;
        color: #058205;
    }


    .colFooter {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }


    .colFooter p {
        line-height: 1.5;
        margin: 0 0 0 0;
    }

    .colFooter h3 {
        margin: 10px 0 0 0;
    }

    .copyright {
        align-self: center;
    }

}
