/* Styles Générales */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
    background-color: whitesmoke; 
    font-family: Arial, Helvetica, sans-serif;
}
nav {
    background-color: white; 
    width: 18%; 
    height: 200vh; 
    text-wrap: nowrap;
    padding: 10px;
    position: sticky;
    transition: width 0.3s;
}
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 > ul {
    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-type: 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;}
.fa-circle {font-size: 10px;}
/* Animations des menus déroulants */
.deroulant:hover .caret /*Chevron Right*/{transform: rotate(90deg); transition-duration: 0.2s;}

/*________________________________________________________________________________________________*/

/* 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;
}


/*_________________________________________________________________________________________________*/
/*Style barre de réduction de la navigation*/
.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;
}
#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 .john, main .link, main #info, main #password {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;}
/*_________________________________________________________________________________________________*/

 
input {
    position: relative;
    top: 5px;
    height: 35px;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background-color: rgb(0, 151, 123);
}
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);}

/*______________________________________________________________________________________________*/

/* Position Contenu Principal */
main {
    position: absolute;
    top: 120px;
    left: 20%;
    line-height: 30px;
}
main > a {color: black; text-decoration: none;}
main > a:hover {text-decoration: underline; color: rgb(0, 151, 123);}

/* Contenu Principal */
.john {
    width: 1050px;
    background-color: #f0eeee;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
}
.john img {
    width: 120px; 
    height: 120px; 
    border-radius: 100px;
    margin-right: 25px;
}

/* Petite Navigation */
.link {
    width: 1050px;
    background-color: rgb(252, 252, 252);
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 20px;
    list-style-type: none;
}
.link li > a {
    padding: 10px;
    text-decoration: none;
    color: black;
    margin-right: 20px;
}
.link li > a:hover {opacity: 0.7; ;transition-duration: 0.4s;}
.link li > a[href="#info"] {
    background: rgb(0, 151, 123);
    color: white;
}

/* Style informations personnelles */
#info {
    display: none;
    width: 1050px;
    background-color: rgb(252, 252, 252);
    align-items: center;
    padding: 20px;
    margin-top: 30px;
}
#info > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#info div a {
    text-decoration: none; 
    color: black;
}
#info div a:hover {color: rgb(0, 151, 123);}
#info > table {
    margin: 25px 0 0 250px;
}
#info > table td {
    padding: 0 25px 0 0;
}
#info > table td a {text-decoration: none;}
#info > table td a:hover {text-decoration: underline;}

/* Affichage des infos persos et mot de passe */
#info:target, #password:target {display: block; transition-duration: 0.5s;}
body:not(:has(:target)) #info {display: block;}

/* Style formulaire mot de passe */
#password {
    display: none;
    width: 1050px;
    background-color: rgb(252, 252, 252);
    padding: 20px;
    margin-top: 30px;
}
#password form > input {
    display: block;
    width: 60%;
    height: 40px;
    border-radius: 5px;
    background-color: initial;
    border: 1px solid gainsboro;
    margin-bottom: 20px;
    color: black !important;
}
#password form > input[type=submit] {
    background-color: rgb(0, 151, 123);
    width: 20%;
    color: white !important;
}
#password form > input[type=submit]:hover {opacity: 0.8;}
#password p {font-size: 18px;}

/* JUMBOTRON */
.jumbotron-container {
    background-color: rgba(230, 230, 230, 0.5);
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}
.jumbotron {
    background-color: white;
    margin: auto;
    margin-top: 150px;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation-name: start;
    animation-duration: 0.5s;
}
.jumbotron > div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid gainsboro;
    align-items: center;
    padding: 15px;
}
.jumbotron form {padding: 15px;}
.jumbotron input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    background-color: initial;
    border: 1px solid gainsboro;
    margin-bottom: 20px;
    color: black !important;
}
.jumbotron input[type=submit] {
    background-color: rgb(0, 151, 123);
    display: block;
    width: 100%;
    margin: auto;
    color: white !important;
}
.jumbotron input[type=submit]:hover {opacity: 0.6;}
.jumbotron form > div {
    display: flex;
    justify-content: space-around;
}
.close {cursor: pointer;} 
.close:hover {opacity: 0.5;}
/* Animation du jumbotron*/
@keyframes start {
    from {margin-top: 0;}
    to {margin-top: 150px;}    
}

/*_____________________________________________________________________________________________________*/
/* 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: 550px) {
    nav {display: none;}
    header {
        width: 100%;
        margin-left: -100px;
    }
    .john {width: 100%;}
    #info > table {
        margin: 25px 0 0 25px;
    }
    main {
        width: 90%;
        left: 5%;
    }
    .dropdown {width: 40%;}
    #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: block;
        width: 50%;
        height: 255vh;
        position: absolute;
        z-index: 1;
        top: 65px;
        border-top: 2px solid rgb(0, 151, 123);
    }
    .sousMenu {display: none !important;} 
    .deroulant:hover .sousMenu {display: block !important;}
} 
/*_____________________________________________________________________________________________________*/