/* Styles Générales */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
    background-color: whitesmoke; 
    font-family: Arial, sans-serif;
    text-wrap: nowrap;
    overflow-x: hidden;
}
nav {
    background-color: white; 
    width: 18%; 
    height: 143vh; 
    text-wrap: nowrap;
    padding: 10px;
}
img:hover {opacity: 0.7;}

/* Style du nom et du photo de l'utilisateur */
li img {
    width: 60px; 
    height: 60px; 
    border-radius: 100px;
}
.person {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: rgb(0, 151, 123);
} 

/* Boutons Dashboard */
.dashboard a{
    background: rgb(0, 151, 123);
    color: white;
    border-radius: 5px;
    margin: 15px 10px;
    box-shadow: 0px 5px 10px 0 rgb(0, 0, 0, 0.2), 0px 5px 10px 0 rgb(0, 0, 0, 0.19);
}
.dashboard:hover {opacity: 0.8; transition-duration: 0.4s;}

/*Styles de navigations et menus déroulants*/
nav > .menu {
    display: block;
    list-style-type: none;
}
ul .first #one {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
nav li a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px 20px;
}
.sousMenu {
    list-style: none;
    display: none;
} 
.sousMenu li a:hover {color: rgb(0, 151, 123);}
.deroulant:hover .sousMenu {display: block;} /*Affichage des menus déroulants*/
.menu > li a[target]:hover {
    background: rgb(0, 151, 123);
    color: white;
    border-radius: 5px;
    box-shadow: 2px 2px 4px gainsboro, 2px 2px 4px gainsboro;
    transition-duration: 0.4s;
}
.sousMenu li {margin-left: 10px;}

/* Animations des menus déroulants */
.deroulant:hover .caret /*Chevron Right*/{transform: rotate(90deg); transition-duration: 0.2s;}


/*_________________________________________________________________________________________________*/
/*Style barre de réduction de la navigation*/
#menu-toggle {display: none;}
#menu-toggle:checked ~ nav{width: 5.5%;}
#menu-toggle:checked ~ header{width: 94.5%;}
#menu-toggle:checked ~ main{width: 90%; left: 7.5%;}
#menu-toggle:checked ~ main .grid, main table {width: 100%;}
#menu-toggle:checked ~ nav #clear {display: none;}
#menu-toggle:checked ~ nav .dashboard {margin-left: -4px;}
#menu-toggle:checked ~ nav .dashboard a i {margin-left: -7px;}
/*_________________________________________________________________________________________________*/


/* Header */
header {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    background-color: rgb(252, 252, 252);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
}
header img {
    width: 40px; 
    height: 40px; 
    border-radius: 100px;
    position: relative;
    top: 2px;
}
.fa-bars-staggered {
    color: rgb(0, 151, 123);
    cursor: pointer;
}
.fa-bars-staggered:hover {
    background-color: rgb(0, 151, 123);
    color: white;
    padding: 5px;
    transition-duration: 0.4s;
}
input {
    position: relative;
    top: 5px;
    height: 35px;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background-color: rgb(0, 151, 123);
    color: white;
}
input::placeholder {color: white;}
.fa-search {
    position: relative;
    top: 13px;
    right: 31px;
    color: white;
}
.fa-chevron-down {
    position: relative;
    top: 15px;
    padding-left: 10px;
}
header > ul {
    display: flex;
    list-style: none;
}
.dropdown {
    list-style: none;
    border: 1px solid gainsboro;
    width: 20%;
    position: absolute;
    right: 5px;
    top: 60px;
    display: none;
    z-index: 1;
}
.dropdown li:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px;
    background-color: whitesmoke;
    border-bottom: 1px solid gainsboro;
}
.dropdown li a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid gainsboro;
    background-color: white;
}
.dropdown li a:hover {background-color: whitesmoke; color: rgb(0, 151, 123);}
.drop:hover .dropdown {display: block;}
.fa-chevron-down:hover {transform: rotateX(180deg);}

/*______________________________________________________________________________________________*/

/* Contenu Principal */
main {
    position: absolute;
    top: 120px;
    left: 20%;
    right: 2%;
    line-height: 30px;
}
main > a {color: black; text-decoration: none;}
main > a:hover {text-decoration: underline; color: rgb(0, 151, 123);}
.grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 40px;
    max-width: 1500px;
}
.grid div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
    width: 30%;
    align-items: center;
    padding: 20px;
    margin: 0 20px 0 0;
    color: rgb(0, 151, 123);
}
.grid div:hover {
    background-color: rgb(0, 151, 123);
    color: white;
    transition-duration: 0.4s;
}
table {
    background-color: white;
    background-size: cover;
    margin-top: 30px;
    border-collapse: collapse;
}
td {padding: 15px;}
.bold {
    background-color: whitesmoke;
    font-weight: bold;
}
.bold > td {
    border-bottom: 1px solid rgb(231, 231, 231);
    border-top: 1px solid rgb(231, 231, 231);
}
td span {
    background-color: rgb(0, 151, 123);
    color: white;
    border-radius: 20px;
    padding: 8px;
}
.a {text-align: right;}
.a a {
    text-decoration: none;
    color: white;
    padding: 10px;
    background-color: rgb(0, 151, 123);
    border-radius: 5px;
}
.a a:hover {
    background-color: rgb(5, 187, 154);
}

/*_____________________________________________________________________________________________________*/
/* Style Responsive */
@media screen and (max-width: 1200px) {
    nav {width: 20%;}
    header {width: 80%;}
    main {left: 22%;}
    #menu-toggle:checked ~ nav{width: 7%;}
    #menu-toggle:checked ~ header{width: 93%;}
    #menu-toggle:checked ~ main{width: 90%; left: 8.5%;}
    #menu-toggle:checked ~ main .grid, main table {width: 100%;}
    #menu-toggle:checked ~ nav .person img {margin-left: 10px;}
}
@media screen and (max-width: 1000px) {
    nav {width: 28%; height: 200vh;}
    header {width: 72%;}
    main {left: 30%;}
    .grid {
        display: block;
        width: 400%;
    }
    .grid div {margin-bottom: 20px;}
    #menu-toggle:checked ~ nav{width: 8%;}
    #menu-toggle:checked ~ header{width: 92%;}
    #menu-toggle:checked ~ main{width: 90%; left: 10%;}
    #menu-toggle:checked ~ main table {width: 97%;}
    #menu-toggle:checked ~ main .grid {width: 1500px;}
    #menu-toggle:checked ~ nav .person img {margin-left: 10px;}
    .dropdown {width: 30%;}
}
@media screen and (max-width: 800px) {
    #menu-toggle:checked ~ nav{width: 12%;}
    #menu-toggle:checked ~ header{width: 88%;}
    #menu-toggle:checked ~ main{width: 84%; left: 14%;}
}
@media screen and (max-width: 600px) {
    nav {display: none;}
    header {
        width: 100%;
        margin-left: -100px;
    }
    main {
        width: 90%;
        left: 5%;
    }
    .dropdown {width: 40%;}
    .sousMenu {display: none !important;} 
    .deroulant:hover .sousMenu {display: block !important;}
    #menu-toggle:checked ~ header {width: 100%;}
    #menu-toggle:checked ~ main {
        width: 100%;
        left: 5%;
    }
    #menu-toggle:checked ~ nav #clear {display: initial;}
    #menu-toggle:checked ~ nav {
        display: initial;
        width: 50%;
        height: 255vh;
        position: absolute;
        z-index: 1;
        top: 65px;
        border-top: 2px solid rgb(0, 151, 123);
    }
    body {overflow-x: hidden;}
}
/*_____________________________________________________________________________________________________*/