.swh-root {
	--swh-shadow: 0 8px 30px rgba(23, 32, 51, .08);
	--swh-border: rgba(23, 32, 51, .09);
	--swh-max-width: 1440px;
	position: relative;
	z-index: 999;
	color: var(--swh-color-text);
	font-family: inherit;
}

.swh-root *,
.swh-root *::before,
.swh-root *::after {
	box-sizing: border-box;
}

.swh-is-sticky {
	position: sticky;
	top: 0;
}

/* Dans le Theme Builder, le conteneur du widget est trop court pour porter un
 * enfant sticky. Les navigateurs modernes appliquent donc le sticky à la
 * location globale, ce qui inclut aussi un éventuel bandeau placé dessous. */
.elementor-location-header:has(.swh-is-sticky) {
	position: sticky;
	top: 0;
	z-index: 999;
}

.elementor-location-header:has(.swh-is-sticky) .swh-is-sticky {
	position: relative;
	top: auto;
}

.admin-bar .swh-is-sticky {
	top: 32px;
}

.admin-bar .elementor-location-header:has(.swh-is-sticky) {
	top: 32px;
}

.swh-bar {
	position: relative;
	z-index: 3;
	background: var(--swh-color-bg);
	border-bottom: 1px solid var(--swh-border);
	box-shadow: 0 1px 0 rgba(23, 32, 51, .02);
}

.swh-shell {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 1fr);
	align-items: center;
	gap: 28px;
	width: min(100%, var(--swh-max-width));
	min-height: 92px;
	margin: 0 auto;
	padding: 0 32px;
}

.swh-brand {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	width: min(100%, var(--swh-logo-width, 365px));
	color: var(--swh-color-text);
	line-height: 1;
	text-decoration: none;
}

.swh-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 62px;
	object-fit: contain;
	object-position: left center;
}

.swh-site-name {
	font-size: clamp(24px, 2.3vw, 40px);
	font-weight: 700;
}

.swh-nav {
	justify-self: center;
}

.swh-menu {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.swh-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swh-menu a {
	display: flex;
	align-items: center;
	min-height: 92px;
	color: var(--swh-color-text);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease;
}

.swh-menu--desktop > li > a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--swh-color-primary);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.swh-menu--desktop > li:hover > a,
.swh-menu--desktop > li:focus-within > a,
.swh-menu--desktop > .current-menu-item > a,
.swh-menu--desktop > .current-menu-ancestor > a {
	color: var(--swh-color-primary);
}

.swh-menu--desktop > li:hover > a::after,
.swh-menu--desktop > li:focus-within > a::after,
.swh-menu--desktop > .current-menu-item > a::after,
.swh-menu--desktop > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.swh-menu .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 50%;
	visibility: hidden;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	background: var(--swh-color-bg);
	border: 1px solid var(--swh-border);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--swh-shadow);
	list-style: none;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.swh-menu li:hover > .sub-menu,
.swh-menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
}

.swh-menu .sub-menu a {
	min-height: auto;
	padding: 11px 13px;
	border-radius: 8px;
	font-size: 14px;
}

.swh-menu .sub-menu a:hover,
.swh-menu .sub-menu a:focus-visible {
	background: color-mix(in srgb, var(--swh-color-primary) 8%, transparent);
	color: var(--swh-color-primary);
}

.swh-account {
	display: flex;
	align-items: center;
	justify-self: end;
	min-width: 44px;
}

.swh-account > * {
	margin: 0;
}

.swh-account a {
	color: var(--swh-color-text);
	text-decoration: none;
}

.swh-account-warning,
.swh-menu-missing {
	font-size: 12px;
}

.swh-mobile-only {
	display: none;
}

.swh-menu-toggle,
.swh-drawer-close {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--swh-color-text);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.swh-menu-toggle:hover,
.swh-menu-toggle:focus-visible,
.swh-drawer-close:hover,
.swh-drawer-close:focus-visible {
	background: rgba(23, 32, 51, .06);
	outline: none;
}

.swh-menu-toggle span {
	position: absolute;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.swh-menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.swh-menu-toggle span:nth-child(3) { transform: translateY(7px); }

.swh-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.swh-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.swh-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.swh-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: block;
	background: rgba(13, 20, 33, .52);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .25s ease;
}

.swh-drawer {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: min(88vw, 390px);
	height: 100dvh;
	padding: 0 24px 30px;
	background: var(--swh-color-bg);
	box-shadow: 20px 0 60px rgba(13, 20, 33, .22);
	overflow-y: auto;
	transform: translateX(-105%);
	transition: transform .28s cubic-bezier(.2, .75, .25, 1);
}

.swh-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	border-bottom: 1px solid var(--swh-border);
}

.swh-drawer-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: 700;
}

.swh-drawer-close svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.swh-drawer-nav {
	padding: 20px 0;
}

.swh-menu--mobile {
	display: block;
}

.swh-menu--mobile > li {
	border-bottom: 1px solid var(--swh-border);
}

.swh-menu--mobile a {
	min-height: 56px;
	font-size: 18px;
}

.swh-menu--mobile > .current-menu-item > a,
.swh-menu--mobile > .current-menu-ancestor > a {
	color: var(--swh-color-primary);
}

.swh-menu--mobile .sub-menu {
	position: static;
	visibility: visible;
	min-width: 0;
	padding: 0 0 12px 16px;
	background: transparent;
	border: 0;
	box-shadow: none;
	opacity: 1;
	transform: none;
}

.swh-menu--mobile .sub-menu a {
	min-height: 42px;
	padding: 8px 0;
	font-size: 15px;
}

.swh-drawer-actions {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
}

.swh-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.swh-action svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.swh-action--primary {
	color: #fff;
	background: var(--swh-color-primary);
	border: 1px solid var(--swh-color-primary);
}

.swh-action--outline {
	color: var(--swh-color-primary);
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--swh-color-primary) 45%, transparent);
}

.swh-action--text {
	min-height: 42px;
	padding: 8px 4px;
	color: var(--swh-color-primary);
}

.swh-root.swh-open .swh-backdrop {
	opacity: 1;
}

.swh-root.swh-open .swh-drawer {
	transform: translateX(0);
}

body.swh-scroll-locked {
	overflow: hidden;
}

@media (max-width: 782px) {
	.admin-bar .swh-is-sticky { top: 46px; }
	.admin-bar .elementor-location-header:has(.swh-is-sticky) { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.swh-root *,
	.swh-root *::before,
	.swh-root *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
