/**
 * J.A. RCR — Elementor Theme Builder header.
 *
 * Desktop measurements and artwork come from Figma node 4:3800. The CSS is
 * intentionally scoped to the template classes so WPML, Elementor Pro and
 * future page widgets keep their own defaults everywhere else.
 */

.elementor-location-header {
	position: relative;
	z-index: 1000;
}

.jfb-site-header,
.jfb-site-header * {
	box-sizing: border-box;
}

.jfb-site-header.e-con {
	--container-max-width: none;
	--display: flex;
	--flex-direction: column;
	--gap: 0;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	width: 100%;
	max-width: none;
	gap: 0;
	padding: 0;
	background: var(--jfb-color-white);
	box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
}

.jfb-site-header :is(p, ul) {
	margin: 0;
}

.jfb-site-header a {
	text-decoration: none;
}

.jfb-site-header__top.e-con,
.jfb-site-header__main.e-con {
	--container-max-width: none;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	width: 100%;
	max-width: none;
	padding: 0;
}

.jfb-site-header__top.e-con {
	min-height: 37px;
	background: var(--jfb-color-ink);
}

.jfb-site-header__main.e-con {
	min-height: 72px;
	background: var(--jfb-color-white);
}

.jfb-site-header__inner.e-con {
	--container-max-width: 80rem;
	--padding-top: 0;
	--padding-right: 1.5rem;
	--padding-bottom: 0;
	--padding-left: 1.5rem;
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding: 0 1.5rem;
}

.jfb-site-header__top-inner.e-con {
	--display: flex;
	--flex-direction: row;
	--justify-content: space-between;
	--align-items: center;
	min-height: 37px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.jfb-site-header__main-inner.e-con {
	--display: grid;
	--align-items: center;
	min-height: 72px;
	display: grid;
	grid-template-columns: 153.695px 506.484px 268.055px;
	align-items: center;
	justify-content: space-between;
}

.jfb-site-header__tagline.elementor-widget,
.jfb-site-header__contact.elementor-widget,
.jfb-site-header__logo.elementor-widget,
.jfb-site-header__nav.elementor-widget,
.jfb-site-header__profile-widget.elementor-widget,
.jfb-site-header__bag-widget.elementor-widget,
.jfb-site-header__lang.elementor-widget {
	width: auto;
	max-width: none;
	margin: 0;
}

.jfb-site-header__tagline .elementor-heading-title {
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--jfb-font-primary);
	font-size: 13px !important;
	font-weight: 500;
	line-height: 20.15px !important;
	white-space: nowrap;
}

.jfb-site-header__contact > .elementor-widget-container {
	display: flex;
	align-items: center;
	gap: 24px;
}

.jfb-site-header__phone {
	padding: 0 !important;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--jfb-font-primary);
	font-size: 13px;
	font-weight: 500;
	line-height: 20.15px;
	white-space: nowrap;
	transition: color var(--jfb-transition);
}

.jfb-site-header__phone:hover,
.jfb-site-header__phone:focus-visible {
	color: var(--jfb-color-white);
}

.jfb-site-header__social {
	display: inline-flex;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	opacity: 0.7;
	transition: opacity var(--jfb-transition);
}

.jfb-site-header__social:hover,
.jfb-site-header__social:focus-visible {
	opacity: 1;
}

.jfb-site-header__social img {
	display: block;
	width: 16px;
	height: 16px;
}

.jfb-site-header__logo-link {
	display: block;
	width: 153.695px;
	height: 48px;
	padding: 0 !important;
	border-radius: 4px;
}

.jfb-site-header__logo-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jfb-site-header__nav {
	justify-self: center;
	width: 506.484px !important;
}

.jfb-site-header__nav .elementor-widget-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.jfb-site-header__nav .elementor-nav-menu--main,
.jfb-site-header__nav .elementor-nav-menu--main > ul {
	width: auto;
}

.jfb-site-header__nav .elementor-nav-menu--main > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.jfb-site-header__nav .elementor-nav-menu--main .elementor-item {
	min-height: 40px;
	/* Elementor Pro adds 13px 20px on :hover; keep every menu box fixed. */
	padding: 8px 16px !important;
	border-radius: 8px;
	color: rgba(28, 28, 26, 0.7);
	fill: rgba(28, 28, 26, 0.7);
	font-family: var(--jfb-font-primary);
	font-size: 15px;
	font-weight: 400;
	line-height: 23.25px;
	white-space: nowrap;
	transition: color var(--jfb-transition), background-color var(--jfb-transition);
}

.jfb-site-header__nav .elementor-nav-menu--main .elementor-item::before,
.jfb-site-header__nav .elementor-nav-menu--main .elementor-item::after {
	display: none;
}

.jfb-site-header__nav .elementor-nav-menu--main .elementor-item:hover,
.jfb-site-header__nav .elementor-nav-menu--main .elementor-item:focus-visible {
	color: var(--jfb-color-brand);
	fill: var(--jfb-color-brand);
	background: var(--jfb-color-surface-pale);
}

.jfb-site-header__nav .elementor-nav-menu--main .elementor-item.elementor-item-active,
.jfb-site-header__nav .elementor-nav-menu--main .current-menu-item > .elementor-item,
.jfb-site-header__nav .elementor-nav-menu--main .current_page_parent > .elementor-item,
.jfb-site-header__nav .elementor-nav-menu--main .current-menu-ancestor > .elementor-item,
.jfb-site-header__nav .elementor-nav-menu--main .jfb-menu-current > .elementor-item {
	color: var(--jfb-color-brand-dark);
	fill: var(--jfb-color-brand-dark);
	background: transparent;
}

.jfb-site-header__actions.e-con {
	--display: flex;
	--flex-direction: row;
	--align-items: center;
	--justify-content: flex-start;
	--gap: 12px;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	width: 268.055px;
	height: 40px;
	min-height: 40px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 0;
}

/* WPML Elementor widget — horizontal, code-only pill from the Figma header. */
.jfb-site-header__lang {
	width: 81.055px !important;
	height: 34.148px;
}

.jfb-site-header__lang > .elementor-widget-container,
.jfb-site-header__lang .wpml-elementor-ls,
.jfb-site-header__lang .wpml-ls,
.jfb-site-header__lang .wpml-ls > ul {
	width: 100%;
	height: 100%;
}

.jfb-site-header__lang .wpml-elementor-ls {
	overflow: hidden;
	border: 1px solid var(--jfb-color-border);
	border-radius: var(--jfb-radius-pill);
	background: var(--jfb-color-white);
}

.jfb-site-header__lang .wpml-ls {
	display: block;
	padding: 0;
	border: 0;
}

.jfb-site-header__lang .wpml-ls > ul {
	display: flex;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.jfb-site-header__lang .wpml-ls-item {
	display: flex;
	flex: 1 1 50%;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
}

.jfb-site-header__lang .wpml-ls-link {
	display: flex;
	width: 100%;
	min-width: 39px;
	height: 33px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 6px 12px !important;
	border: 0;
	background: transparent;
	color: rgba(28, 28, 26, 0.6);
	font-family: var(--jfb-font-primary);
	font-size: 0;
	font-weight: 400;
	line-height: 20.15px;
	text-align: center;
	white-space: nowrap;
	transition: color var(--jfb-transition), background-color var(--jfb-transition);
}

.jfb-site-header__lang .wpml-ls-link > * {
	display: none !important;
}

.jfb-site-header__lang .wpml-ls-item-fr .wpml-ls-link::after {
	content: "FR";
}

.jfb-site-header__lang .wpml-ls-item-en .wpml-ls-link::after {
	content: "EN";
}

.jfb-site-header__lang .wpml-ls-link::after {
	font-size: 13px;
	line-height: 20.15px;
}

.jfb-site-header__lang .wpml-ls-current-language .wpml-ls-link {
	background: var(--jfb-color-ink);
	color: var(--jfb-color-white);
}

.jfb-site-header__lang .wpml-ls-item:not(.wpml-ls-current-language) .wpml-ls-link:hover,
.jfb-site-header__lang .wpml-ls-item:not(.wpml-ls-current-language) .wpml-ls-link:focus-visible {
	background: var(--jfb-color-surface-pale);
	color: var(--jfb-color-brand-dark);
}

.jfb-site-header__profile {
	display: inline-flex;
	height: 40px;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--jfb-color-border);
	border-radius: 8px;
	background: var(--jfb-color-white);
	color: var(--jfb-color-ink);
	font-family: var(--jfb-font-primary);
	font-size: 14px;
	font-weight: 400;
	line-height: 21.7px;
	white-space: nowrap;
	transition: color var(--jfb-transition), border-color var(--jfb-transition), background-color var(--jfb-transition);
}

.jfb-site-header__profile:hover,
.jfb-site-header__profile:focus-visible {
	border-color: var(--jfb-color-brand);
	background: var(--jfb-color-surface-pale);
	color: var(--jfb-color-brand-dark);
}

.jfb-site-header__profile img {
	display: block;
	width: 16px;
	height: 16px;
}

.jfb-site-header__bag {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 8px;
	color: var(--jfb-color-ink);
	transition: background-color var(--jfb-transition), transform var(--jfb-transition);
}

.jfb-site-header__bag:hover,
.jfb-site-header__bag:focus-visible {
	background: var(--jfb-color-surface-pale);
	transform: translateY(-1px);
}

.jfb-site-header__bag img {
	display: block;
	width: 24px;
	height: 24px;
}

/* Keep Elementor's accessible dropdown, while aligning it to the header grid. */
.jfb-site-header__nav .elementor-menu-toggle {
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 8px;
	background: transparent;
	color: var(--jfb-color-ink);
}

.jfb-site-header__nav .elementor-menu-toggle:hover,
.jfb-site-header__nav .elementor-menu-toggle:focus-visible {
	background: var(--jfb-color-surface-pale);
	color: var(--jfb-color-brand-dark);
}

.jfb-site-header__nav .elementor-nav-menu--dropdown {
	border: 1px solid var(--jfb-color-border);
	border-radius: 12px;
	background: var(--jfb-color-white);
	box-shadow: 0 16px 40px rgba(28, 28, 26, 0.14);
}

.jfb-site-header__nav .elementor-nav-menu--dropdown .elementor-item {
	min-height: 46px;
	padding: 11px 16px !important;
	border: 0;
	background: transparent;
	color: rgba(28, 28, 26, 0.78);
	font-family: var(--jfb-font-primary);
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
}

.jfb-site-header__nav .elementor-nav-menu--dropdown .elementor-item:hover,
.jfb-site-header__nav .elementor-nav-menu--dropdown .elementor-item:focus,
.jfb-site-header__nav .elementor-nav-menu--dropdown .current_page_parent > .elementor-item,
.jfb-site-header__nav .elementor-nav-menu--dropdown .jfb-menu-current > .elementor-item {
	background: var(--jfb-color-surface-pale);
	color: var(--jfb-color-brand-dark);
}

@media (max-width: 1279px) {
	.jfb-site-header__main-inner.e-con {
		grid-template-columns: 153.695px 506.484px 268.055px;
	}
}

@media (max-width: 1024px) {
	.jfb-site-header__main-inner.e-con {
		position: relative;
		grid-template-areas: "logo actions nav";
		grid-template-columns: minmax(140px, 1fr) auto 40px;
		gap: 12px;
	}

	.jfb-site-header__logo {
		grid-area: logo;
	}

	.jfb-site-header__nav {
		grid-area: nav;
		width: 40px !important;
		justify-self: end;
	}

	.jfb-site-header__actions {
		grid-area: actions;
		width: auto !important;
		justify-self: end;
	}

	.jfb-site-header__profile-widget,
	.jfb-site-header__bag-widget {
		display: none;
	}

	.jfb-site-header__nav .elementor-nav-menu--dropdown {
		position: absolute;
		top: 48px;
		right: 0;
		width: min(360px, calc(100vw - 48px));
		margin-top: 8px;
		overflow: hidden;
	}
}

@media (max-width: 767px) {
	.jfb-site-header__inner.e-con {
		--padding-right: 1rem;
		--padding-left: 1rem;
		padding-inline: 1rem;
	}

	.jfb-site-header__tagline {
		display: none;
	}

	.jfb-site-header__top-inner.e-con {
		justify-content: flex-end;
	}

	.jfb-site-header__contact > .elementor-widget-container {
		gap: 18px;
	}

	.jfb-site-header__logo-link {
		width: 130px;
		height: auto;
		aspect-ratio: 153.695 / 48;
	}

	.jfb-site-header__main-inner.e-con {
		grid-template-columns: minmax(114px, 1fr) auto 40px;
		gap: 8px;
	}

	.jfb-site-header__nav .elementor-nav-menu--dropdown {
		width: calc(100vw - 32px);
	}
}

@media (max-width: 380px) {
	.jfb-site-header__logo-link {
		width: 114px;
	}

	.jfb-site-header__lang {
		width: 74px !important;
	}

	.jfb-site-header__lang .wpml-ls-link {
		min-width: 36px;
		padding-inline: 9px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jfb-site-header *,
	.jfb-site-header *::before,
	.jfb-site-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
