/**
 * Ubris Builder WP
 *
 * @author     Complianz System
 * @copyright  2025-2026 Complianz System
 * @license    GPL-2.0-or-later
 * @link       https://ubris-wordpress.fr/
 * @link       https://github.com/pierrecodeur/cursorwordpress
 */
.wpcursor-component.wpcursor-header-site {
	--wpc-header-pad: max(1.15rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--wpc-header-logo-h: 3.15rem;
	--wpc-header-logo-w: 13.5rem;
	background: #ffffff;
	border-bottom: 1px solid #f9f7f5;
	box-sizing: border-box;
	color: var(--wpcursor-ink, #210000);
	font-family: var(--wpcursor-font-body, "Poppins", system-ui, sans-serif);
	isolation: isolate;
	left: 0;
	position: sticky;
	right: 0;
	top: 0;
	width: 100%;
	z-index: 100000;
}

.wpcursor-component.wpcursor-header-site *,
.wpcursor-component.wpcursor-header-site *::before,
.wpcursor-component.wpcursor-header-site *::after {
	box-sizing: border-box;
}

@media (min-width: 1100px) {
	.wpcursor-component.wpcursor-header-site {
		--wpc-header-pad: clamp(1.5rem, 4vw, 3.5rem);
	}
}

body.admin-bar .wpcursor-component.wpcursor-header-site {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .wpcursor-component.wpcursor-header-site {
		top: 46px;
	}
}

html.wpcursor-has-header-site {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

/* Flex + resets : résiste aux styles WooCommerce/Astra (shop, columns-*, ul/img). */
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__bar {
	align-items: center;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 1rem 1.25rem;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 80rem;
	min-height: 4.75rem;
	padding: 0.7rem var(--wpc-header-pad);
	width: 100%;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__logo {
	align-items: center;
	color: inherit;
	display: inline-flex !important;
	flex: 0 0 auto;
	line-height: 0;
	max-width: var(--wpc-header-logo-w);
	text-decoration: none;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__logo:focus-visible {
	outline: 2px solid var(--wpcursor-orange, #f98700);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__logo-img {
	display: block !important;
	float: none !important;
	height: var(--wpc-header-logo-h) !important;
	max-height: var(--wpc-header-logo-h) !important;
	max-width: min(var(--wpc-header-logo-w), 46vw) !important;
	object-fit: contain !important;
	object-position: left center;
	width: auto !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__nav {
	display: flex !important;
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__list {
	align-items: center;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	float: none !important;
	gap: 0.15rem 1.1rem;
	justify-content: center;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__item {
	float: none !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	width: auto !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link {
	color: var(--wpcursor-ink, #210000);
	display: inline-flex !important;
	float: none !important;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.2;
	padding: 0.55rem 0;
	text-decoration: none;
	white-space: nowrap;
	width: auto !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link:hover,
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link:focus-visible {
	color: var(--wpcursor-red, #ab1a19);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link:focus-visible {
	outline: 2px solid var(--wpcursor-orange, #f98700);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__actions {
	align-items: center;
	display: flex !important;
	flex: 0 0 auto;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 0.65rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__actions--mobile {
	display: none !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta {
	align-items: center;
	border-radius: 999px;
	display: inline-flex !important;
	font-size: 0.8125rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: -0.01em;
	line-height: 1;
	padding: 0.72rem 1.05rem;
	text-decoration: none;
	white-space: nowrap;
	width: auto !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--ghost {
	background: #ffffff;
	border: 1px solid #d8d4d0;
	color: var(--wpcursor-ink, #210000);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--ghost:hover,
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--ghost:focus-visible {
	background: var(--wpcursor-cream, #f9f7f5);
	border-color: var(--wpcursor-burgundy, #5b0504);
	color: var(--wpcursor-ink, #210000);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--primary {
	background: var(--wpcursor-gradient, linear-gradient(90deg, #f98700 0%, #ab1a19 100%));
	border: 1px solid transparent;
	color: #ffffff;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--primary:hover,
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta--primary:focus-visible {
	color: #ffffff;
	filter: brightness(1.06);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta:focus-visible {
	outline: 2px solid var(--wpcursor-ink, #210000);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart {
	align-items: center;
	color: var(--wpcursor-ink, #210000);
	display: inline-flex !important;
	flex: 0 0 auto;
	height: 2.5rem;
	justify-content: center;
	position: relative;
	text-decoration: none;
	width: 2.5rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__tools {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.15rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__account {
	align-items: center;
	color: var(--wpcursor-ink, #210000);
	display: inline-flex !important;
	flex: 0 0 auto;
	height: 2.5rem;
	justify-content: center;
	position: relative;
	text-decoration: none;
	width: 2.5rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__account-icon {
	display: inline-flex;
	line-height: 0;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__account:hover,
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__account:focus-visible {
	color: var(--wpcursor-red, #ab1a19);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__account:focus-visible {
	outline: 2px solid var(--wpcursor-orange, #f98700);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__tools--bar {
	display: none !important;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart-icon {
	display: inline-flex;
	line-height: 0;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart-badge {
	align-items: center;
	background: var(--wpcursor-gradient, linear-gradient(90deg, #f98700 0%, #ab1a19 100%));
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.65rem;
	font-weight: 700;
	height: 1.1rem;
	justify-content: center;
	letter-spacing: -0.02em;
	line-height: 1;
	min-width: 1.1rem;
	padding: 0 0.28rem;
	position: absolute;
	right: -0.1rem;
	top: -0.05rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart:hover,
.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart:focus-visible {
	color: var(--wpcursor-red, #ab1a19);
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cart:focus-visible {
	outline: 2px solid var(--wpcursor-orange, #f98700);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: none !important;
	flex: 0 0 auto;
	height: 2.5rem;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	width: 2.5rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger:focus-visible {
	outline: 2px solid var(--wpcursor-orange, #f98700);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger-box {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 1.35rem;
}

.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger-box span {
	background: currentColor;
	border-radius: 99px;
	display: block;
	height: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
	width: 100%;
}

.wpcursor-component.wpcursor-header-site.is-nav-open .wpcursor-header-site__burger-box span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.wpcursor-component.wpcursor-header-site.is-nav-open .wpcursor-header-site__burger-box span:nth-child(2) {
	opacity: 0;
}

.wpcursor-component.wpcursor-header-site.is-nav-open .wpcursor-header-site__burger-box span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.wpcursor-header-site__overlay {
	background: rgb(33 0 0 / 0.35);
	bottom: 0;
	display: none;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

body.wpcursor-header-open .wpcursor-header-site__overlay,
.wpcursor-header-site__overlay:not([hidden]) {
	display: block;
}

html.wpcursor-has-header-site #masthead,
html.wpcursor-has-header-site .ast-mobile-header-wrap,
html.wpcursor-has-header-site .main-header-bar-wrap,
html.wpcursor-has-header-site .ast-above-header-wrap,
html.wpcursor-has-header-site .ast-below-header-wrap,
body.wpcursor-has-header-site #masthead,
body.wpcursor-has-header-site .ast-mobile-header-wrap,
body.wpcursor-has-header-site .main-header-bar-wrap,
body.wpcursor-has-header-site .ast-above-header-wrap,
body.wpcursor-has-header-site .ast-below-header-wrap {
	display: none !important;
}

body.home {
	overflow-x: clip;
}

body.home #content,
body.home #primary,
body.home .site-main,
body.home .site-content,
body.home .ast-article-single,
body.home .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
}

.entry-content > .wpcursor-component.wpcursor-header-site {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

@media (max-width: 1099px) {
	.wpcursor-component.wpcursor-header-site {
		--wpc-header-logo-h: 2.65rem;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__bar {
		display: flex !important;
		justify-content: flex-start;
		min-height: 4rem;
		position: relative;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__logo-img {
		height: var(--wpc-header-logo-h) !important;
		max-height: var(--wpc-header-logo-h) !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger {
		display: inline-flex !important;
		margin-left: 0;
		order: 3;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__tools--bar {
		display: inline-flex !important;
		margin-left: auto;
		margin-right: 0.15rem;
		order: 2;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__actions--desktop {
		display: none !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__tools--in-actions {
		align-self: flex-end;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__nav {
		background: #ffffff;
		border-top: 1px solid #f9f7f5;
		box-shadow: 0 16px 32px rgb(33 0 0 / 0.08);
		display: none !important;
		flex: none;
		flex-direction: column !important;
		left: 0;
		padding: 0.5rem var(--wpc-header-pad) 1.25rem;
		position: absolute;
		right: 0;
		top: 100%;
		width: 100%;
		z-index: 2;
	}

	.wpcursor-component.wpcursor-header-site.is-nav-open .wpcursor-header-site__nav {
		display: flex !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__list {
		align-items: stretch;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 0;
		width: 100% !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__item {
		border-bottom: 1px solid #f9f7f5;
		width: 100% !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link {
		padding: 0.95rem 0;
		width: 100% !important;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__actions--mobile {
		display: flex !important;
		flex-direction: column !important;
		gap: 0.65rem;
		margin-top: 1rem;
		width: 100%;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta {
		width: 100% !important;
	}
}

.wpcursor-component.wpcursor-header-site .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	html.wpcursor-has-header-site {
		scroll-behavior: auto;
	}

	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__cta,
	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__link,
	.wpcursor-component.wpcursor-header-site .wpcursor-header-site__burger-box span {
		transition: none;
	}
}
