@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    font-family: 'roboto';
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p{
    text-align: justify;
    
}

img {
    width: 70%;
    height: auto;
}

nav.header{
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #80C3ED; 
    padding: 1rem;
    z-index: 1;
}

nav #div-return{
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

nav #div-return a#return{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

nav a#return p{
    margin: 0;
}

#title{
    margin-left: 5rem;
    font-size: 1.5rem;
    color: white;
}

nav #div-center #div-timer{
    float: right;
}

nav #nav-module{
    display: none;
}

section#content{
    margin-top: 125px;

}

#div-module{
    position: fixed;
    top: 50%;
    right: 0;
    /* margin-top: 85px; */
    width: 70px;
    transform: translateY(-50%);
    transition: width 0.5s;
    /* height: 100%; */
    
}

.btn{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
    /* padding: 0; */
    background-color: transparent;
    border: none;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover{
    background-color: #5d867a63;
    /* height: 40px; */
    border-radius: 5px;
}

#div-module.width360:hover{
    width: 360px;
}

#div-module.width500:hover{
    width: 500px;
}

#div-module.width650:hover{
    width: 650px;
}

#div-module ul{
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    padding: 0.5rem;
    margin: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: #80C3ED;
    transform: translateY(-50%);
    /* height: 100%; */
}

#div-module .btn-module{
    position: relative;
    width: 100%;
    background-color: #5d867a;
    border: none;
    border-radius: 5px;
    color: #F2F1EC;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.5s;
}

#div-module .btn-module:focus,
#div-module .btn-module:focus-visible{
    /* outline: 1px solid #41C1BA; */
    border-radius: 3px;
}

#div-module .btn-module .module{
    position: relative;
    display: block;
    min-width: 66px;
    text-align: center;
    font-weight: bold;
}

#div-module .btn-module .titre{
    position: relative;
    display: block;
    padding-left: 15px;
    height: 60px;
    line-height: 60px;
    white-space: nowrap;
}

nav #div-timer h4{
    margin: 0;
    color: #F2F1EC;
}

nav #timer{
    margin-right: 4rem;
    padding: 0.5rem;
    background-color: #261745;
    border-radius: 5px;
    color: #F2F1EC;
    text-align: center;
    font-size: 1.5rem;
}

#background-module{
    display: none;
    position: fixed;
    top: 0;
    background-color: #5d867ae6;
    width: 100%;
    height: 100%;
}

#list-module{
    position: absolute;
    top: 75px;
    right: 0;
    padding-right: 10px;
    padding-bottom: 5px;
    background-color: #80C3ED;;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#list-module .btn-module{
    background-color: #261745;
    margin: 5px;
    padding: 15px;
    width: 91%;
    border: none;
    color: white;
    text-decoration: none;
    font-size: 1.25vh;
}

#content div.title{
    display: none;
}

#content div.title h1{
    margin: 0;
}

#module{
    margin: 0 15vw 2rem;
    padding: 1rem;
    background-color: white;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.section_change_module{
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    padding: 0 5rem;
}

.change_module {
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    padding: 1rem;
    background-color: #80C3ED;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.change_module i.icofont-arrow-left{
    margin-right: 10px;
}

.change_module i.icofont-arrow-right{
    margin-left: 10px;
}

.change_module a{
    color: white;
    text-decoration: none;
}

.change_module i{
    color: white;
    font-size: 1.30rem;
}

@media (max-width: 800px) {

    img{width: 300px;height: auto;}

    nav #div-return{
        margin-right: 15px;
        margin-left: 10px;
    }

    nav #div-return a#return{
        font-size: 1rem;
    }

    nav .nav-center{display: block;}

    nav #title{display: none;}

    nav #timer{margin-right: 0;margin-left: 1rem;}

    nav #nav-module{
        display: initial;
        margin-right: 35px;
        padding: 0.80rem;
        border-radius: 5px;
        background-color: #261745;
        color: white;
        cursor: pointer;
    }

    #div-module{
        display: none;
    }

    #content div.title{
        display: block;
        margin: 2rem 5vw 0;
        padding: 1rem;
        text-align: center;
        background-color: white;
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;
    }

    #module{
        margin: 0 5vw 2rem;
    }
}