/*
 * Ad Fontes : sélecteur de langues « DE | EN | FR » (2026-11-17, S. Dumazert)
 * Chargé par adfontes_language_styles() dans functions.php.
 */

/* --- Commun ------------------------------------------------------------- */
.adf-lang a,
.adf-langs-header a {
	color: #d4d2e8 !important;           /* 9:1 sur #29265b */
	text-decoration: none;
	letter-spacing: 0.04em;
}
.adf-lang a:hover,
.adf-lang a:focus-visible,
.adf-langs-header a:hover,
.adf-langs-header a:focus-visible {
	color: #fff !important;
}
.adf-lang a > span,
.adf-langs-header a > span {
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	transition: border-color 0.2s ease;
}
.adf-lang a:hover > span,
.adf-langs-header a:hover > span {
	border-bottom-color: rgba(255, 255, 255, 0.6);
}
.adf-lang a[aria-current] ,
.adf-langs-header a[aria-current] {
	color: #fff !important;
}
.adf-lang a[aria-current] > span,
.adf-langs-header a[aria-current] > span {
	border-bottom-color: #ea504c;
}
.adf-lang a:focus-visible,
.adf-langs-header a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* --- En-tête ordinateur (menu #menuadf) --------------------------------- */
.sc_layouts_menu_nav > li.adf-lang--desktop > a {
	padding-left: 0.55em !important;
	padding-right: 0.55em !important;
}
.sc_layouts_menu_nav > li.adf-lang--desktop.adf-lang--first {
	margin-left: 0.9em;
	padding-left: 0.9em;
	position: relative;
}
.sc_layouts_menu_nav > li.adf-lang--desktop.adf-lang--first::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 1.2em;
	margin-top: -0.6em;
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

/* Le menu tient sur une ligne : la rangée n'utilise que 11 colonnes sur 12
 * (logo 3 + menu 6 + réseaux 2), on donne la colonne libre au menu. */
@media (min-width: 1280px) {
	header.top_panel .wpb_column.vc_col-sm-6:has(> .vc_column-inner #menuadf) {
		width: 58.3333%;
	}
	/* jamais de 2e ligne (au pire quelques px empiètent sur la marge de droite) */
	#menuadf > ul.sc_layouts_menu_nav {
		display: inline-flex;
		flex-wrap: nowrap;
		align-items: center;
	}
	#menuadf > ul.sc_layouts_menu_nav > li {
		float: none;
		flex: 0 0 auto;
	}
}
@media (min-width: 1280px) and (max-width: 1599px) {
	/* le logo (≈ 250 px) n'a pas besoin de ses 3 colonnes entières */
	header.top_panel .vc_row:has(#menuadf) > .wpb_column.vc_col-sm-3:first-child {
		width: 21%;
	}
	header.top_panel .wpb_column.vc_col-sm-6:has(> .vc_column-inner #menuadf) {
		width: 62.3333%;
	}
	#menuadf .sc_layouts_menu_nav > li:not(.adf-lang) > a {
		padding-left: 0.6em !important;
		padding-right: 0.6em !important;
	}
	.sc_layouts_menu_nav > li.adf-lang--desktop > a {
		padding-left: 0.4em !important;
		padding-right: 0.4em !important;
	}
	.sc_layouts_menu_nav > li.adf-lang--desktop.adf-lang--first {
		margin-left: 0.5em;
		padding-left: 0.5em;
	}
}

/* --- En-tête mobile / tablette (remplace « DE ⌄ ») ---------------------- */
/* Bloc compact encadré, dans l'esprit du bouton « Contact » :
 * langue en cours en blanc plein, les autres en simple texte. */
.adf-langs-header {
	display: inline-flex;
	align-items: stretch;
	margin-left: 18px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	font-family: "Fira Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.06em;
}
.adf-langs-header a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 38px;
	padding: 0 2px;
}
.adf-langs-header a + a {
	border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.adf-langs-header a > span,
.adf-langs-header a:hover > span,
.adf-langs-header a[aria-current] > span {
	border-bottom: 0;
	padding-bottom: 0;
}
.adf-langs-header a:hover {
	background: rgba(255, 255, 255, 0.1);
}
.adf-langs-header a[aria-current] {
	background: #fff;
	color: #29265b !important;
}
.adf-langs-header a:focus-visible {
	outline-offset: -4px;
	outline-color: #ea504c;
}

/* --- Menu burger -------------------------------------------------------- */
.menu_mobile_nav > li.adf-lang--burger {
	display: flex !important;
	align-items: center;
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.menu_mobile_nav > li.adf-lang--burger > a {
	display: inline-flex !important;
	align-items: center;
	min-height: 44px;
	padding: 0 0.9em !important;
}
.menu_mobile_nav > li.adf-lang--burger > a:first-child {
	padding-left: 0 !important;
}
.menu_mobile_nav > li.adf-lang--burger > a + a {
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* --- En-tête manquant entre 992 et 1279 px ------------------------------
 * La rangée ordinateur est masquée jusqu'à 1279 px (sc_layouts_hide_on_tablet)
 * mais la colonne mobile disparaît dès 992 px (vc_hidden-md / vc_hidden-lg) :
 * on garde la colonne mobile visible jusqu'à 1279 px. */
@media (min-width: 992px) and (max-width: 1279px) {
	header.top_panel > .vc_row > .wpb_column.vc_hidden-md.vc_hidden-lg {
		display: flex !important;
	}
}
