@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Masque le header Astra quand le header Ubris est actif. */
body.wpcursor-has-header-site #masthead,
body.wpcursor-has-header-site .ast-mobile-header-wrap,
body.wpcursor-has-header-site .ast-above-header-bar,
body.wpcursor-has-header-site .ast-primary-header-bar,
body.wpcursor-has-header-site .ast-below-header-bar,
body.wpcursor-has-header-site .main-header-bar {
	display: none !important;
}

body.wpcursor-has-header-site {
	padding-top: 0;
}

body.wpcursor-has-header-site .wpcursor-header-site {
	--wpc-h-blue: #3d9be9;
	--wpc-h-blue-deep: #1d6fbe;
	--wpc-h-purple: #912cdc;
	--wpc-h-ink: #1c1c1c;
	--wpc-h-muted: #4a5568;
	--wpc-h-grad: linear-gradient(100deg, #3d9be9 0%, #7a3adf 55%, #912cdc 100%);
	position: sticky;
	top: 0;
	z-index: 1000;
	overflow: visible;
	background: #fff;
	font-family: Poppins, "Segoe UI", sans-serif;
	box-shadow: 0 1px 0 rgba(20, 40, 80, 0.06);
}

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

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

.wpcursor-header-site__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.7rem 1.25rem;
	overflow: visible;
}

.wpcursor-header-site__logo {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.wpcursor-header-site__logo img {
	display: block;
	width: auto;
	height: 52px;
}

.wpcursor-header-site__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.wpcursor-header-site__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.15rem 0.35rem;
	margin: 0;
	padding: 0;
}

.wpcursor-header-site__menu > li {
	position: relative;
}

.wpcursor-header-site__has-mega {
	position: static;
}

.wpcursor-header-site__menu > li > a,
.wpcursor-header-site__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.55rem 0.7rem;
	border: 0;
	background: transparent;
	color: var(--wpc-h-ink);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
}

.wpcursor-header-site__menu > li > a svg,
.wpcursor-header-site__trigger svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.wpcursor-header-site__menu > li > a:hover,
.wpcursor-header-site__trigger:hover,
.wpcursor-header-site__has-mega.is-open > .wpcursor-header-site__trigger,
.wpcursor-header-site__has-drop:hover > a {
	background-image: var(--wpc-h-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wpcursor-header-site__has-mega.is-open > .wpcursor-header-site__trigger {
	box-shadow: inset 0 -2px 0 #7a3adf;
	border-radius: 8px 8px 0 0;
}

.wpcursor-header-site__has-mega.is-open > .wpcursor-header-site__trigger svg,
.wpcursor-header-site__menu > li > a:hover svg,
.wpcursor-header-site__trigger:hover svg,
.wpcursor-header-site__has-drop:hover > a svg {
	color: var(--wpc-h-purple);
	stroke: var(--wpc-h-purple);
}

.wpcursor-header-site__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: var(--wpc-h-grad);
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(80, 70, 180, 0.22);
	white-space: nowrap;
}

.wpcursor-header-site__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 0;
	border-radius: 10px;
	background: #f3f6fb;
	color: var(--wpc-h-ink);
	cursor: pointer;
}

.wpcursor-header-site__toggle svg {
	width: 22px;
	height: 22px;
}

.wpcursor-header-site__toggle-close {
	display: none;
}

.wpcursor-header-site.is-nav-open .wpcursor-header-site__toggle-open {
	display: none;
}

.wpcursor-header-site.is-nav-open .wpcursor-header-site__toggle-close {
	display: block;
}

.wpcursor-header-site__mega {
	/* Collé à la barre + padding invisible = pont hover (évite la fermeture au sticky). */
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	width: min(1080px, calc(100vw - 2rem));
	padding: 0.55rem 0 0;
	z-index: 1200;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.wpcursor-header-site__has-mega.is-open > .wpcursor-header-site__mega,
.wpcursor-header-site__has-mega:hover > .wpcursor-header-site__mega,
.wpcursor-header-site__has-mega:focus-within > .wpcursor-header-site__mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media (min-width: 961px) {
	.wpcursor-header-site__has-mega:hover > .wpcursor-header-site__trigger,
	.wpcursor-header-site__has-mega:focus-within > .wpcursor-header-site__trigger {
		background-image: var(--wpc-h-grad);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		box-shadow: inset 0 -2px 0 #7a3adf;
		border-radius: 8px 8px 0 0;
	}
}

.wpcursor-header-site__mega-inner {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr minmax(280px, 1.15fr);
	gap: 1rem 1.1rem;
	padding: 1.2rem 1.2rem 1.1rem;
	border: 1px solid #d7e8f8;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(30, 50, 100, 0.14);
}

.wpcursor-header-site__mega--blog {
	width: min(980px, calc(100vw - 2rem));
}

.wpcursor-header-site__mega-inner--blog {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	padding: 1.25rem 1.25rem 1.05rem;
}

.wpcursor-header-site__blog-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem 0.9rem;
}

.wpcursor-header-site__blog-cat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	min-height: 100%;
	padding: 0.85rem 0.8rem 0.9rem;
	border: 1px solid #e4eef8;
	border-radius: 16px;
	background: linear-gradient(180deg, #fbfcff 0%, #f5f9ff 100%);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wpcursor-header-site__blog-cat:hover {
	border-color: #c9def5;
	box-shadow: 0 10px 24px rgba(45, 90, 160, 0.1);
	transform: translateY(-1px);
}

.wpcursor-header-site__blog-cat .wpcursor-header-site__icon {
	margin-bottom: 0.15rem;
}

.wpcursor-header-site__blog-cat-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wpc-h-blue-deep);
}

.wpcursor-header-site__blog-cat-desc {
	flex: 1 1 auto;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wpc-h-muted);
}

.wpcursor-header-site__blog-cat-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	margin-top: 0.25rem;
	font-size: 0.78rem;
	font-weight: 600;
	background-image: var(--wpc-h-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wpcursor-header-site__blog-cat-cta svg {
	width: 14px;
	height: 14px;
	color: var(--wpc-h-purple);
	stroke: var(--wpc-h-purple);
}

.wpcursor-header-site__blog-feature {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem;
	border: 1px solid #e0ecf8;
	border-radius: 18px;
	background: linear-gradient(105deg, #f7fbff 0%, #eef6ff 48%, #f6efff 100%);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.wpcursor-header-site__blog-feature:hover {
	border-color: #c7daf3;
	box-shadow: 0 12px 28px rgba(45, 90, 160, 0.12);
}

.wpcursor-header-site__blog-feature-media {
	position: relative;
	display: block;
	overflow: hidden;
	width: 148px;
	height: 96px;
	border-radius: 12px;
	background: #dce9f7;
}

.wpcursor-header-site__blog-feature-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wpcursor-header-site__blog-feature-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--wpc-h-blue-deep);
}

.wpcursor-header-site__blog-feature-fallback svg {
	width: 28px;
	height: 28px;
}

.wpcursor-header-site__blog-feature-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
	background: var(--wpc-h-grad);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
}

.wpcursor-header-site__blog-feature-copy {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.wpcursor-header-site__blog-feature-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wpc-h-blue-deep);
}

.wpcursor-header-site__blog-feature-excerpt {
	font-size: 0.84rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wpc-h-muted);
}

.wpcursor-header-site__blog-feature-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #d7e8f8;
	color: var(--wpc-h-purple);
	box-shadow: 0 4px 12px rgba(80, 70, 180, 0.1);
}

.wpcursor-header-site__blog-feature-arrow svg {
	width: 16px;
	height: 16px;
}

.wpcursor-header-site__blog-all {
	margin: 0;
	text-align: right;
}

.wpcursor-header-site__blog-all a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	background-image: var(--wpc-h-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wpcursor-header-site__blog-all a svg {
	width: 14px;
	height: 14px;
	color: var(--wpc-h-purple);
	stroke: var(--wpc-h-purple);
}

.wpcursor-header-site__col-title {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background-image: var(--wpc-h-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wpcursor-header-site__col ul,
.wpcursor-header-site__drop {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpcursor-header-site__col a {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.35rem;
	border-radius: 12px;
	color: var(--wpc-h-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
}

.wpcursor-header-site__col a:hover {
	background: #f3f8ff;
	color: var(--wpc-h-blue-deep);
}

.wpcursor-header-site__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #eaf4ff;
	color: var(--wpc-h-blue-deep);
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

.wpcursor-header-site__icon svg {
	width: 18px;
	height: 18px;
}

.wpcursor-header-site__item-chevron svg {
	width: 16px;
	height: 16px;
	color: var(--wpc-h-blue);
}

.wpcursor-header-site__promo {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(110px, 0.85fr);
	align-items: stretch;
	gap: 0.35rem;
	min-height: 240px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #d7e8f8;
	border-radius: 18px;
	background: linear-gradient(105deg, #f7fbff 0%, #eef6ff 42%, #f3e9ff 100%);
}

.wpcursor-header-site__promo::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 42px;
	z-index: 2;
	pointer-events: none;
	background:
		radial-gradient(ellipse 48px 28px at 18% 100%, rgba(255, 255, 255, 0.95) 60%, transparent 62%),
		radial-gradient(ellipse 56px 30px at 42% 100%, rgba(255, 255, 255, 0.92) 60%, transparent 62%),
		radial-gradient(ellipse 52px 28px at 68% 100%, rgba(255, 255, 255, 0.95) 60%, transparent 62%),
		radial-gradient(ellipse 44px 26px at 90% 100%, rgba(255, 255, 255, 0.9) 60%, transparent 62%);
}

.wpcursor-header-site__promo-copy {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.15rem 0.35rem 1.35rem 1.05rem;
}

.wpcursor-header-site__promo-title {
	margin: 0 0 0.35rem;
	color: #151515;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.wpcursor-header-site__promo-title-grad {
	display: inline;
	background-image: var(--wpc-h-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wpcursor-header-site__promo-copy > p:not(.wpcursor-header-site__promo-title) {
	margin: 0;
	color: #24365f;
	font-size: 0.88rem;
	line-height: 1.4;
}

.wpcursor-header-site__promo-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	align-self: flex-start;
	margin-top: 0.9rem;
	padding: 0.62rem 1rem;
	border-radius: 999px;
	background: var(--wpc-h-grad);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.wpcursor-header-site__promo-cta svg {
	width: 15px;
	height: 15px;
}

.wpcursor-header-site__promo-visual {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 100%;
	padding: 0.4rem 0.2rem 0;
	background:
		radial-gradient(ellipse 90% 80% at 70% 45%, rgba(186, 140, 255, 0.55) 0%, rgba(186, 140, 255, 0.22) 42%, transparent 72%),
		radial-gradient(ellipse 70% 60% at 55% 70%, rgba(120, 190, 255, 0.28) 0%, transparent 70%);
}

.wpcursor-header-site__mascot {
	position: relative;
	z-index: 1;
	display: block;
	width: min(132px, 100%);
	height: auto;
	max-height: 230px;
	object-fit: contain;
	object-position: bottom center;
	pointer-events: none;
}

.wpcursor-header-site__drop {
	position: absolute;
	left: 0;
	top: calc(100% + 0.35rem);
	min-width: 220px;
	padding: 0.45rem;
	border: 1px solid #d7e8f8;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(30, 50, 100, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 15;
}

.wpcursor-header-site__has-drop:hover .wpcursor-header-site__drop,
.wpcursor-header-site__has-drop:focus-within .wpcursor-header-site__drop {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.wpcursor-header-site__drop a {
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	color: var(--wpc-h-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.wpcursor-header-site__drop a:hover {
	background: #f3f8ff;
	color: var(--wpc-h-blue-deep);
}

.wpcursor-header-site .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 1100px) {
	.wpcursor-header-site__menu > li > a,
	.wpcursor-header-site__trigger {
		font-size: 0.84rem;
		padding: 0.5rem 0.45rem;
	}

	.wpcursor-header-site__logo img {
		height: 46px;
	}
}

@media (max-width: 960px) {
	.wpcursor-header-site__toggle {
		display: inline-flex;
	}

	.wpcursor-header-site__cta {
		display: none;
	}

	.wpcursor-header-site__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 0.6rem 1rem 1.1rem;
		background: #fff;
		border-bottom: 1px solid #e5eef8;
		box-shadow: 0 16px 28px rgba(20, 40, 80, 0.1);
	}

	.wpcursor-header-site.is-nav-open .wpcursor-header-site__nav {
		display: block;
	}

	.wpcursor-header-site__menu {
		flex-direction: column;
		align-items: stretch;
	}

	.wpcursor-header-site__menu > li > a,
	.wpcursor-header-site__trigger {
		width: 100%;
		justify-content: space-between;
	}

	.wpcursor-header-site__mega {
		position: static;
		transform: none;
		width: 100%;
		margin-top: 0.4rem;
	}

	.wpcursor-header-site__mega-inner {
		grid-template-columns: 1fr;
	}

	.wpcursor-header-site__mega--blog {
		width: 100%;
	}

	.wpcursor-header-site__blog-cats {
		grid-template-columns: 1fr 1fr;
	}

	.wpcursor-header-site__blog-feature {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 0.75rem;
	}

	.wpcursor-header-site__blog-feature-media {
		width: 112px;
		height: 84px;
	}

	.wpcursor-header-site__blog-feature-arrow {
		display: none;
	}

	.wpcursor-header-site__blog-all {
		text-align: left;
	}

	.wpcursor-header-site__drop {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 0.6rem;
		display: none;
	}

	.wpcursor-header-site__has-drop.is-open .wpcursor-header-site__drop {
		display: block;
	}

	.wpcursor-header-site__promo {
		grid-template-columns: minmax(0, 1.1fr) minmax(96px, 0.75fr);
		min-height: 210px;
	}

	.wpcursor-header-site__mascot {
		width: 96px;
		max-height: 190px;
	}
}

@media (max-width: 560px) {
	.wpcursor-header-site__blog-cats {
		grid-template-columns: 1fr;
	}

	.wpcursor-header-site__blog-feature {
		grid-template-columns: 1fr;
	}

	.wpcursor-header-site__blog-feature-media {
		width: 100%;
		height: 140px;
	}
}
