/* MagHaïti Translate — styles publics. Personnalisez les couleurs via les variables. */
.mht-switcher,
.mht-float,
.mht-notice {
	--mht-accent: #00209f;      /* bleu du drapeau haïtien */
	--mht-accent-2: #d21034;    /* rouge du drapeau haïtien */
	--mht-radius: 999px;
}

.mht-switcher {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4em .6em;
	margin-top: 0;
	margin-bottom: 1.25em;
	font-size: .875rem;
	line-height: 1.4;
}
.mht-switcher__label {
	font-weight: 600;
	opacity: .75;
}
.mht-switcher ul {
	display: flex;
	flex-wrap: wrap;
	gap: .35em;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}
.mht-switcher li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.mht-switcher li::before,
.mht-switcher li::marker {
	content: none !important;
}
.mht-switcher a {
	display: inline-block;
	padding: .28em .8em;
	border: 1px solid rgba(127, 127, 127, .35);
	border-radius: var(--mht-radius);
	color: inherit;
	text-decoration: none !important;
	background: transparent;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mht-switcher a:hover,
.mht-switcher a:focus-visible {
	border-color: var(--mht-accent);
	color: var(--mht-accent);
}
.mht-switcher a[aria-current="true"] {
	background: var(--mht-accent);
	border-color: var(--mht-accent);
	color: #fff;
}
.mht-switcher--compact {
	margin: 0;
}
.mht-switcher--compact a {
	padding: .2em .6em;
	font-size: .8125rem;
}

.mht-notice {
	box-sizing: border-box;
	margin-top: 0 !important;
	margin-bottom: 1.5em !important;
	padding: .75em 1em;
	border-left: 3px solid var(--mht-accent-2);
	background: rgba(127, 127, 127, .08);
	font-size: .9rem;
	line-height: 1.55;
}
.mht-notice a {
	font-weight: 600;
	white-space: nowrap;
}
.mht-notice--missing {
	border-left-color: var(--mht-accent);
}

.mht-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99990;
	font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mht-float summary {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 15px;
	border-radius: var(--mht-radius);
	background: var(--mht-accent);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.mht-float summary::-webkit-details-marker {
	display: none;
}
.mht-float summary:focus-visible {
	outline: 3px solid var(--mht-accent-2);
	outline-offset: 2px;
}
.mht-float ul {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .2);
}
.mht-float li {
	margin: 0;
	list-style: none;
}
.mht-float a {
	display: block;
	padding: 9px 12px;
	border-radius: 9px;
	color: #111 !important;
	text-decoration: none !important;
}
.mht-float a:hover,
.mht-float a:focus-visible {
	background: #f1f3f9;
}
.mht-float a[aria-current="true"] {
	font-weight: 700;
	color: var(--mht-accent) !important;
}

@media print {
	.mht-switcher,
	.mht-float {
		display: none !important;
	}
}

/* Confort de lecture du chinois. */
:lang(zh) .mht-notice,
.mht-lang-zh .entry-content {
	line-height: 1.85;
}
