/* Mobile Menu Styles */

/* Media queries */
@media (max-width: 768px) {
	.main-navigation,
	.header-right-element {
		display: none;
	}
}

/* Styles du menu mobile */
.mobile-menu-button {
	display: none;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 1000;
	color: #fff;
}

.mobile-menu-button span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: currentColor;
	margin: 5px 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

.mobile-menu-button.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0);
	z-index: 9999;
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
	backdrop-filter: blur(0px);
}

.mobile-menu-modal.active {
	display: block;
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.5);
	pointer-events: auto;
	backdrop-filter: blur(8px);
}

.mobile-menu-content {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 400px;
	height: 100vh;
	background-color: #1a1a1a;
	padding: 20px;
	transition: all 0.4s ease-out;
	overflow-y: auto;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
	transform: translateX(100%);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mobile-menu-modal.active .mobile-menu-content {
	right: 0;
	transform: translateX(0);
}

/* Style de la scrollbar pour Chrome/Safari */
.mobile-menu-content::-webkit-scrollbar {
	width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
	background: transparent;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-header {
	position: sticky;
	top: 0;
	background-color: #1a1a1a;
	z-index: 2;
	padding-top: 20px;
	margin-top: -20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
	max-width: 120px;
	height: auto;
}

.mobile-menu-logo img {
	width: 100%;
	height: auto;
}

.mobile-menu-close {
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	color: #fff;
	z-index: 10000;
}

.mobile-navigation {
	margin-top: 20px;
}

.mobile-primary-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-primary-menu li {
	margin: 15px 0;
	opacity: 0;
	transform: translateX(20px);
	transition: all 0.3s ease;
}

.mobile-menu-modal.active .mobile-primary-menu li {
	opacity: 1;
	transform: translateX(0);
}

.mobile-primary-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-primary-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-primary-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-primary-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-primary-menu li:nth-child(5) { transition-delay: 0.3s; }
.mobile-primary-menu li:nth-child(6) { transition-delay: 0.35s; }

.mobile-primary-menu a {
	color: #fff;
	text-decoration: none;
	font-size: 1.2em;
	display: block;
	padding: 10px 0;
	transition: all 0.3s ease;
	position: relative;
}

.mobile-primary-menu a:hover {
	color: #ccc;
	transform: translateX(5px);
}

.mobile-primary-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #fff;
	transition: width 0.3s ease;
}

.mobile-primary-menu a:hover::after {
	width: 100%;
}

@media (max-width: 768px) {
	.mobile-menu-button {
		display: block;
	}
}
