#menu {
	overflow: hidden;
}

.menuBtnV2 {
	position: relative;

	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: center;

	gap: 5px;

	height: 40px;

	margin: 2px;

	border-radius: 8px;

	cursor: pointer;
	transition-duration: 250ms;

	color: #6B7280;

	font-size: 14px;

	/* text overflow, ellipsis, nowrap */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#menu .menuSep {
	display: flex;
	align-items: center;
	justify-content: left;
	margin-top: 16px;
	font-size: 12px;
	color: #777c81;

	cursor: pointer;
}

#menu .menuSep span {
	height: 1px;
	background-color: #cbd5e1;
	margin: 0 5px;
	flex-grow: 1;

	&:first-child {
		width: 10px;
		flex-grow: 0;
	}
}

#menu .menuSep div {
	/* text overflow, ellipsis, nowrap */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	max-width: 50%;

	/* remove selection from text */
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Tout les separateur du menu sauf le dernier */
#menu.active .menuSep:not(:last-child) {
	div {
		display: none;
	}
	span {
		&:first-child {
			flex-grow: 1;
			display: none;
		}
	}
}

.menuBtnV2 i {
	font-size: 16px;
}

.menuBtnV2 > div.icon {
	background-color: #e0e7ff77;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	margin-left: 5px;
}

.menuBtnV2.active > div.icon {
	background-color: #3E97FF22;
}

.menuBtnV2.active {
	background: #E8F2FF;
	color: #3E97FF;
}

.menuBtnV2:hover {
	background: #E8F2FF;
	color: #3E97FF;
}

.menuBtnV2:hover > div.icon {
	background-color: #3E97FF22;
}

/* mettre une transition a tous les enfant et lui meme a #menu*/
#menu, #menu .menuBtnV2, #menu .menuBtnV2 nav, #menu .menuBtnV2 div.icon {
	transition-duration: 250ms;
}

#menu.active {
	width: 45px;

	.menuBtnV2 {
		justify-content: center;
		width: fit-content;
	}

	.menuBtnV2 nav {
		display: none;
	}

	.menuBtnV2 div.icon {
		margin-left: auto;
		margin-right: auto;

		width: 40px;
		height: 40px;
	}

	#menuSettings nav {
		display: none;
	}
}

.mainMenu.active {
	width: fit-content;
}

.mainMenu.editmode {
	border: 2px dashed red;
}