/* ==== Sélecteur de langue Stellio ==== */
.lang-switcher-item {
	position: relative;
	display: flex;
	align-items: center;
}

.lang-switcher {
	position: relative;
	display: inline-block;
}

.lang-switcher-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	font-family: inherit;
}

.lang-switcher-btn:hover,
.lang-switcher-btn[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
}

.lang-switcher-btn .lang-caret {
	font-size: 10px;
	opacity: 0.7;
	transition: transform 0.2s ease;
}

.lang-switcher-btn[aria-expanded="true"] .lang-caret {
	transform: rotate(180deg);
}

.lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	max-height: 320px;
	overflow-y: auto;
	background: #1a1d24;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	padding: 6px;
	display: none;
	flex-direction: column;
	gap: 2px;
	z-index: 1000;
}

.lang-menu.open {
	display: flex;
}

.lang-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: none;
	background: transparent;
	color: #e5e7eb;
	font-size: 14px;
	text-align: left;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
}

.lang-option:hover {
	background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
	background: rgba(99, 179, 237, 0.18);
	color: #63b3ed;
	font-weight: 600;
}

.lang-option .lang-code {
	font-size: 11px;
	font-weight: 700;
	opacity: 0.7;
	min-width: 24px;
}

.lang-option.active .lang-code {
	opacity: 1;
}

/* Sur mobile, le switcher reprend toute la largeur dans le menu déroulant */
@media (max-width: 900px) {
	.lang-switcher-item {
		width: 100%;
		justify-content: center;
		margin-top: 8px;
	}
	.lang-switcher {
		width: 100%;
	}
	.lang-switcher-btn {
		width: 100%;
		justify-content: center;
	}
	.lang-menu {
		position: static;
		width: 100%;
		margin-top: 6px;
		box-shadow: none;
	}
}
