/* ==================================================
PAGE HERO
================================================== */
.page-hero {
	position: relative;
	width: 100%;
	min-width: 0;
	padding-top: 96px;
}

.page-hero__main {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 32px;
	width: 100%;
}

.page-hero__heading {
	width: fit-content;
	max-width: 70%;
}

.page-hero__title {
	margin: 0;
}

/* ==================================================
PAGE HERO — TITLE COLORS
================================================== */
.page-hero--default .page-hero__title,
.page-hero--event .page-hero__title {
	color: var(--wp--preset--color--dark-violet);
}

/* ==================================================
OPTIONAL GUEST
================================================== */
.page-hero__guest {
	margin: 18px 0 0;
	font-family: var(--wp--preset--font-family--geist);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
}

.page-hero__guest strong {
	font-weight: 800;
}

/* ==================================================
OPTIONAL FILTERS
================================================== */
.page-hero__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

/* ==================================================
THORN
================================================== */
.page-hero__thorn {
	position: absolute;
	z-index: 1;
	width: 500px;
	aspect-ratio: 500 / 180;
	background-color: currentColor;
	-webkit-mask-image: url("../../images/epines.svg");
	mask-image: url("../../images/epines.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.page-hero__thorn {
		display: none;
	}

}

/* ==================================================
VARIANTS
================================================== */
/* Single événement */
.page-hero--event {
	color: var(--wp--preset--color--black);
}

.page-hero--event .page-hero__thorn {
	right: 0;
	bottom: -55px;
	color: var(--wp--preset--color--primary);
	transform: rotate(-35deg);
}

/* Agenda */
.page-hero--agenda {
	color: var(--wp--preset--color--yellow);
}

.page-hero--agenda .page-hero__thorn {
	right: 0;
	bottom: -55px;
	color: var(--wp--preset--color--yellow);
	transform: rotate(-4deg);
}

/* Pages classiques */
.page-hero--default {
	color: var(--wp--preset--color--black);
}

.page-hero--default .page-hero__thorn {
	right: 0;
	bottom: -55px;
	rotate : -35deg;
	color: var(--wp--preset--color--primary);
}

/* ==================================================
TABLET
================================================== */
@media (min-width: 783px) and (max-width: 1024px) {
	.page-hero__heading {
		max-width: 100%;
	}

	.page-hero__thorn {
		width: 400px;
	}

}

/* ==================================================
MOBILE
================================================== */
@media (max-width: 782px) {
	.page-hero__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.page-hero__heading {
		width: 100%;
		max-width: 100%;
	}

	.page-hero__guest {
		margin-top: 14px;
		font-size: 1rem;
	}

	.page-hero__filters {
		justify-content: flex-start;
	}

	.page-hero__thorn {
		width: 350px;
	}

	.page-hero--event .page-hero__thorn {
		right: -20px;
		bottom: -30px;
	}

	.page-hero--agenda .page-hero__thorn {
		right: -20px;
		bottom: -40px;
		width: 170px;
	}

}
