/*
===================================
>>>>>>>>>>>>>>>NAVBAR<<<<<<<<<<<<<<
===================================
*/

/* TYPOGRAPHIEs */
nav li {
    font-family: 'discordtext', 'sans-serif';
    font-size: 1.1em;
    letter-spacing: 0.1em;
}

nav p {
    font-family: 'discordtext', 'sans-serif';
    font-size: 1.1em;
    line-height: inherit;
}

nav a {
    color: rgba(153, 199, 98, 0.75);
}

nav p>img {
    position: relative;
    top: 8px;
    background-color: rgba(30,30,30,0.5);
    border-radius: 50%;
    width: 30px;
}

/* I) BASE NAV CONFIG */
nav {
    display: flex;
    align-items: center;
    height: auto;
    background-color: rgba(37, 37, 38, 1);
    border-bottom: 3px solid rgba(4, 151, 5, 1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
}

nav>div {
    flex: 1 15%;
    display: flex;
    align-items: center;
}

nav>div:nth-of-type(1) {
    justify-content: flex-end;
    margin: 0.15em 0.15em 0em 0.15em;
    padding-top: 2px;
}

nav>div:nth-of-type(2) {
    flex: 2 70%;
    margin: 0em 0.15em 0em 0.15em;
}

nav>div:nth-of-type(3) {
    justify-content: flex-start;
    margin: 0.15em 0.15em 0em 0.15em;
    padding-top: 2px;
}

nav #medianav {
    display: none;
    line-height: 45px;
}

nav>div>div {
    float: right;
    width: 100%;
}

nav>div>div>ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    width: 100%;
}

nav ul ul {
    display: flex;
    flex-direction: column;
}

nav ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 auto;
    background-color: rgba(37, 37, 38, 1);
	line-height: 46px;
}

/* BORDER CATEGORIE */
nav .categorie {
    border: 3px solid rgba(4, 151, 5, 1);
}

nav .categorie li {
    border-bottom: 2px dashed rgba(4, 151, 5, 1);
}

nav .categorie li:last-child {
    border-bottom: 0px;
}

nav .souscategorie li {
    border-left: 3px solid rgba(4, 151, 5, 1);
    border-right: 3px solid rgba(4, 151, 5, 1);
}

nav .souscategorie li:first-child {
    border-left: 3px solid rgba(4, 151, 5, 1);
    border-top: 3px solid rgba(4, 151, 5, 1);
    border-right: 3px solid rgba(4, 151, 5, 1);
}

nav .souscategorie li:last-child {
    border-left: 3px solid rgba(4, 151, 5, 1);
    border-bottom: 3px solid rgba(4, 151, 5, 1);
    border-right: 3px solid rgba(4, 151, 5, 1);
}

/* II) LOGO GAUCHE */
nav>div:nth-of-type(1)>a>img {
    max-height: 40px;
    width: 100%;
    object-fit: contain;
}

/* III) LOGO DROITE */
nav>div:nth-of-type(3)>a>img {
    max-height: 40px;
    width: 100%;
    object-fit: contain;
}

/* FONT AJUST */
nav p {
    margin-block-start: 0em;
    margin-block-end: 0em;
}

nav ul {
    padding-inline-start: 0px;
    list-style: none;
}

nav ul a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}

/* V) ARROW */
nav i.down {
    position: relative;
    top: -3px;
}

nav i.right {
    position: relative;
    top: -1px;
}

.arrow {
    border: solid rgba(153, 199, 98, 0.75);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/* ANIMATION */
nav p:hover {
    cursor: default;
}

nav ul li {
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    transition: 0.5s;
}

nav ul li:hover {
    background-color: rgba(153, 199, 98, 0.75);
}

nav ul li:hover>p {
    color: rgba(43, 106, 17, 1) !important;
    font-size: 1.1em;
}

nav ul li:hover>a {
    color: rgba(43, 106, 17, 1) !important;
    text-decoration: none !important;
}

nav ul li:hover>p i {
    border: solid rgba(253, 209, 96, 0.75);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

nav ul ul li:hover p i {
    border: solid rgba(253, 209, 96, 0.75);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

nav ul ul {
	display: none;
	position: absolute;
    top: 45px;
}

nav ul li:hover > ul {
	display: inherit;
}

nav ul ul li {
    width: 170px;
	float: none;
	position: relative;
}

nav ul ul ul li {
	position: relative;
    top: -37.5px;
	left:173px;
}

nav ul li:hover>p i {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    top: 1px;
}

nav ul ul li:hover>p i {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    top: -1px;
}
