/**
 * Surcharges GTranslate — header Blog Beauty.
 *
 * Ne pas cibler #gt-wrapper-XXXX ni .gt_container-XXXX (IDs/classes dynamiques).
 * Toujours scoper sous .bb-header__lang-widget.
 */

.bb-header__lang,
.bb-header__actions,
.site-header.bb-header {
	overflow: visible;
}

.bb-header__lang-widget {
	position: relative;
	z-index: 120;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher {
	position: relative !important;
	width: auto !important;
	font-size: 0 !important;
	line-height: 1 !important;
	overflow: visible !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected {
	background: none !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	border: none !important;
	background: transparent !important;
	width: auto !important;
	padding: 0 !important;
	color: inherit !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected a:hover {
	background: transparent !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected a img {
	opacity: 1 !important;
	margin: 0 !important;
}

/* Drapeaux parfaitement ronds (masque le PNG carré/arrondi de GTranslate) */
.bb-header__lang-widget [class*="gt_container"] .gt_switcher a img {
	display: block !important;
	flex-shrink: 0 !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center center !important;
	clip-path: circle(50% at 50% 50%) !important;
	-webkit-clip-path: circle(50% at 50% 50%) !important;
	box-shadow: none !important;
}

/* Flèche du sélecteur */
.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected a:after {
	position: static !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
	margin: 0 !important;
	vertical-align: middle !important;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_selected a.open:after {
	transform: rotate(-180deg) !important;
}

/* Dropdown — panneau flottant */
.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option {
	position: absolute !important;
	top: calc(100% + 10px) !important;
	right: 0 !important;
	left: auto !important;
	width: auto !important;
	min-width: 180px !important;
	max-height: 280px !important;
	margin: 0 !important;
	padding: 6px !important;
	background: #fff !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 14px !important;
	box-shadow: 0 14px 36px rgba(17, 17, 17, 0.14) !important;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition:
		height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.22s ease,
		transform 0.22s ease !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher:has(.gt_selected a.open) .gt_option {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option::-webkit-scrollbar {
	width: 6px;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 999px;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option a {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 12px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	color: #333 !important;
	font-size: 0.875rem !important;
	font-family: var(--bb-header-font, system-ui, sans-serif) !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	transition: background-color 0.15s ease, color 0.15s ease !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option a:hover {
	background: #fff0f7 !important;
	color: var(--bb-pink, #e71e62) !important;
}

.bb-header__lang-widget [class*="gt_container"] .gt_switcher .gt_option a img {
	vertical-align: middle !important;
}

