.bth-header,
.bth-header * {
	box-sizing: border-box;
}

.bth-header {
	position: relative;
	z-index: 20;
	width: 100%;
	background: #fff;
	color: #111;
	font-family: "Outfit", Arial, sans-serif;
}

.bth-header--full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.bth-header__inner {
	position: relative;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.bth-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 81px;
	padding: 24px 32px;
	border-bottom: 1px solid #eaeaea;
}

.bth-header__logo {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: #111;
	text-decoration: none;
}

.bth-header__logo:hover,
.bth-header__logo:focus {
	color: inherit;
}

.bth-header__logo-text {
	font-family: "Outfit", Arial, sans-serif;
	font-size: 26px;
	font-weight: 900;
	line-height: 33px;
	white-space: nowrap;
}

.bth-header__logo-image {
	display: block;
	width: 222px;
	max-width: 100%;
	height: auto;
}

.bth-header__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.bth-header__edition {
	color: #888;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-transform: uppercase;
	white-space: nowrap;
}

.bth-header__search-toggle,
.bth-header__search-link,
.bth-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #111;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
}

.bth-header__search-toggle:hover,
.bth-header__search-toggle:focus,
.bth-header__search-link:hover,
.bth-header__search-link:focus,
.bth-header__menu-toggle:hover,
.bth-header__menu-toggle:focus {
	background: transparent;
	color: inherit;
}

.bth-header__search-toggle:focus-visible,
.bth-header__search-link:focus-visible,
.bth-header__menu-toggle:focus-visible,
.bth-header__nav-link:focus-visible,
.bth-header__language-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.bth-header__search-icon {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bth-header__nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 18px 32px;
	border-bottom: 2px solid #111;
}

.bth-header__navigation {
	min-width: 0;
}

.bth-header__nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bth-header__nav-item {
	margin: 0;
	padding: 0;
}

.bth-header__nav-link {
	display: inline-flex;
	align-items: center;
	color: #111;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease;
}

.bth-header__nav-link:hover,
.bth-header__nav-link:focus-visible,
.bth-header__nav-link.is-active {
	color: #e03f54;
}

.bth-header__languages {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-left: 32px;
}

.bth-header__language-link {
	color: #888;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.bth-header__language-link.is-active {
	color: #111;
	font-weight: 700;
}

.bth-header__menu-toggle {
	display: none;
}

.bth-header__menu-lines {
	display: grid;
	gap: 4px;
	width: 20px;
}

.bth-header__menu-lines span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.bth-header.is-menu-open .bth-header__menu-lines span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.bth-header.is-menu-open .bth-header__menu-lines span:nth-child(2) {
	opacity: 0;
}

.bth-header.is-menu-open .bth-header__menu-lines span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.bth-header__search-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 30;
	padding: 18px 32px;
	border-bottom: 1px solid #eaeaea;
	background: #fff;
	box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.bth-header__search-panel[hidden] {
	display: none;
}

.bth-header__search-form {
	display: flex;
	align-items: center;
	max-width: 760px;
	margin-left: auto;
}

.bth-header__search-input {
	width: 100%;
	height: 46px;
	padding: 0 48px 0 16px;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #fff;
	color: #111;
	font: inherit;
	outline: none;
}

.bth-header__search-input:focus {
	border-color: #111;
}

.bth-header__search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-left: -46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	.bth-header__nav-link,
	.bth-header__menu-lines span {
		transition: none;
	}
}

/* Les trois variantes permettent de choisir le breakpoint depuis Elementor. */
@media (max-width: 1200px) {
	.bth-breakpoint-1200 .bth-header__top {
		padding-right: 32px;
		padding-left: 32px;
	}
	.bth-breakpoint-1200 .bth-header__menu-toggle { display: inline-flex; }
	.bth-breakpoint-1200 .bth-header__nav-row { display: none; padding: 8px 32px 24px; }
	.bth-breakpoint-1200.is-menu-open .bth-header__nav-row { display: flex; }
	.bth-breakpoint-1200 .bth-header__nav-row,
	.bth-breakpoint-1200 .bth-header__nav-list { flex-direction: column; align-items: flex-start; }
	.bth-breakpoint-1200 .bth-header__nav-list { width: 100%; gap: 0; }
	.bth-breakpoint-1200 .bth-header__navigation { width: 100%; }
	.bth-breakpoint-1200 .bth-header__nav-link { width: 100%; padding: 12px 0; }
	.bth-breakpoint-1200 .bth-header__languages { margin: 18px 0 0; }
	.bth-breakpoint-1200 .bth-header__search-panel { padding-right: 32px; padding-left: 32px; }
	.bth-breakpoint-1200.bth-header--hide-edition-mobile .bth-header__edition { display: none; }
}

@media (max-width: 1024px) {
	.bth-breakpoint-1024 .bth-header__top {
		padding-right: 24px;
		padding-left: 24px;
	}
	.bth-breakpoint-1024 .bth-header__menu-toggle { display: inline-flex; }
	.bth-breakpoint-1024 .bth-header__nav-row { display: none; padding: 8px 24px 24px; }
	.bth-breakpoint-1024.is-menu-open .bth-header__nav-row { display: flex; }
	.bth-breakpoint-1024 .bth-header__nav-row,
	.bth-breakpoint-1024 .bth-header__nav-list { flex-direction: column; align-items: flex-start; }
	.bth-breakpoint-1024 .bth-header__nav-list { width: 100%; gap: 0; }
	.bth-breakpoint-1024 .bth-header__navigation { width: 100%; }
	.bth-breakpoint-1024 .bth-header__nav-link { width: 100%; padding: 12px 0; }
	.bth-breakpoint-1024 .bth-header__languages { margin: 18px 0 0; }
	.bth-breakpoint-1024 .bth-header__search-panel { padding-right: 24px; padding-left: 24px; }
	.bth-breakpoint-1024.bth-header--hide-edition-mobile .bth-header__edition { display: none; }
}


/* Keep the brand against the left edge and the mobile actions against the right edge. */
.bth-header__top {
	width: 100%;
}

.bth-header__logo {
	margin-right: auto;
}

.bth-header__meta {
	margin-left: auto;
}

@media (max-width: 767px) {
	.bth-header__top {
		min-height: 68px;
	}

	.bth-header__logo-text {
		font-size: 21px;
		line-height: 1.2;
	}

	.bth-header__meta {
		gap: 8px;
	}

	.bth-breakpoint-767 .bth-header__top {
		padding: 18px 16px;
	}
	.bth-breakpoint-767 .bth-header__menu-toggle { display: inline-flex; }
	.bth-breakpoint-767 .bth-header__nav-row { display: none; padding: 8px 16px 20px; }
	.bth-breakpoint-767.is-menu-open .bth-header__nav-row { display: flex; }
	.bth-breakpoint-767 .bth-header__nav-row,
	.bth-breakpoint-767 .bth-header__nav-list { flex-direction: column; align-items: flex-start; }
	.bth-breakpoint-767 .bth-header__nav-list { width: 100%; gap: 0; }
	.bth-breakpoint-767 .bth-header__navigation { width: 100%; }
	.bth-breakpoint-767 .bth-header__nav-link { width: 100%; padding: 12px 0; }
	.bth-breakpoint-767 .bth-header__languages { margin: 18px 0 0; }
	.bth-breakpoint-767 .bth-header__search-panel { padding: 16px; }
	.bth-breakpoint-767.bth-header--hide-edition-mobile .bth-header__edition { display: none; }
}

/* Mobile header hardening: keep the logo and action buttons in separate,
 * predictable areas and make the navigation state visible when JavaScript
 * toggles .is-menu-open. */
.bth-header__logo {
	flex: 1 1 auto;
	overflow: hidden;
}

.bth-header__meta {
	flex: 0 0 auto;
	margin-left: auto;
}

@media (max-width: 767px) {
	.bth-breakpoint-1200 .bth-header__top,
	.bth-breakpoint-1024 .bth-header__top,
	.bth-breakpoint-767 .bth-header__top {
		min-height: 68px;
		padding: 14px 16px !important;
	}

	.bth-header__logo-image {
		width: 180px;
		max-width: calc(100vw - 112px) !important;
	}

	.bth-header__logo-text {
		display: block;
		overflow: hidden;
		font-size: 20px;
		line-height: 1.2;
		text-overflow: ellipsis;
	}

	.bth-header__meta {
		gap: 4px;
	}

	.bth-header__search-toggle,
	.bth-header__search-link,
	.bth-header__menu-toggle {
		width: 36px;
		height: 36px;
	}

	.bth-header__search-icon {
		width: 18px;
		height: 18px;
	}

	.bth-breakpoint-1200 .bth-header__nav-row,
	.bth-breakpoint-1024 .bth-header__nav-row,
	.bth-breakpoint-767 .bth-header__nav-row {
		width: 100%;
		padding: 8px 16px 20px !important;
	}

	.bth-breakpoint-1200 .bth-header__search-panel,
	.bth-breakpoint-1024 .bth-header__search-panel,
	.bth-breakpoint-767 .bth-header__search-panel {
		padding: 16px !important;
	}
}
