/**
 * Hero section — pages d'offre type protocole.
 * Shortcode : [wpcursor name="hero-offre-2"]
 */

.wpcursor-hero-offre-2 {
	--wpcursor-offre2-text: #ffffff;
	--wpcursor-offre2-accent: #e8b89a;
	--wpcursor-offre2-cta: #5a3f62;
	--wpcursor-offre2-cta-hover: #4a334f;
	--wpcursor-offre2-badge-bg: rgba(30, 18, 38, 0.48);
	--wpcursor-offre2-min-height: min(82vh, 680px);

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--wpcursor-offre2-min-height);
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	color: var(--wpcursor-offre2-text);
}

.wpcursor-hero-offre-2--purple {
	--wpcursor-offre2-accent: #e8b89a;
	--wpcursor-offre2-cta: #8f689a;
	--wpcursor-offre2-cta-hover: #8f689a;
}

.wpcursor-hero-offre-2--orange {
	--wpcursor-offre2-accent: #f0c4a8;
	--wpcursor-offre2-cta: #6b4e81;
	--wpcursor-offre2-cta-hover: #5a4069;
}

.wpcursor-hero-offre-2--teal {
	--wpcursor-offre2-accent: #b8dde0;
	--wpcursor-offre2-cta: #3d6f6a;
	--wpcursor-offre2-cta-hover: #35625e;
}

.wpcursor-hero-offre-2--neutral {
	--wpcursor-offre2-accent: #e6e0da;
	--wpcursor-offre2-cta: #6d4b76;
	--wpcursor-offre2-cta-hover: #5e3f66;
}

.wpcursor-hero-offre-2__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	min-height: 100%;
}

.wpcursor-hero-offre-2__image {
	position: absolute;
	top: -9%;
	left: 0;
	display: block;
	width: 100%;
	height: 118%;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

@keyframes wpcursor-hero-offre-2-fade-left {
	from {
		opacity: 0;
		transform: translateX(-32px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.wpcursor-hero-offre-2__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(45, 26, 58, 0.82) 0%, rgba(45, 26, 58, 0.62) 40%, rgba(45, 26, 58, 0.18) 68%, rgba(30, 18, 38, 0.35) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.32) 100%);
	pointer-events: none;
}

.wpcursor-hero-offre-2__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(4.5rem, 11vh, 6.5rem) clamp(1.5rem, 5vw, 4.5rem);
	box-sizing: border-box;
}

.wpcursor-hero-offre-2__content {
	max-width: 580px;
	text-align: left;
}

.wpcursor-hero-offre-2__breadcrumb {
	margin: 0 0 1.25rem;
}

.wpcursor-hero-offre-2__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
}

.wpcursor-hero-offre-2__breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.wpcursor-hero-offre-2__breadcrumb-item:not(:last-child)::after {
	content: "/";
	margin: 0 0.45rem;
	color: rgba(255, 255, 255, 0.5);
}

.wpcursor-hero-offre-2__breadcrumb-link {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wpcursor-hero-offre-2__breadcrumb-link:hover,
.wpcursor-hero-offre-2__breadcrumb-link:focus-visible {
	color: #ffffff;
	outline: none;
}

.wpcursor-hero-offre-2__breadcrumb-current {
	color: rgba(255, 255, 255, 0.95);
}

.wpcursor-hero-offre-2__tag {
	margin: 0 0 1rem;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.wpcursor-hero-offre-2__title {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0 0 1.25rem;
	font-family: var(--wpcursor-font-serif);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wpcursor-offre2-text);
}

.wpcursor-hero-offre-2__title-line--primary {
	font-size: clamp(2.35rem, 5.2vw, 3.6rem);
	letter-spacing: -0.01em;
	animation: wpcursor-hero-offre-2-fade-left 0.55s ease-out 0.35s both;
}

.wpcursor-hero-offre-2__title-line--accent {
	font-size: clamp(1.65rem, 3.5vw, 2.35rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1.15;
	color: var(--wpcursor-offre2-accent);
	animation: wpcursor-hero-offre-2-fade-left 0.55s ease-out 0.5s both;
}

.wpcursor-hero-offre-2__description {
	margin: 0 0 1.65rem;
	max-width: 540px;
	font-family: var(--wpcursor-font-sans);
	font-size: clamp(0.92rem, 1.4vw, 1rem);
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
}

.wpcursor-hero-offre-2__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
}

.wpcursor-hero-offre-2__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpcursor-hero-offre-2__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	background: var(--wpcursor-offre2-badge-bg);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-family: var(--wpcursor-font-sans);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wpcursor-offre2-text);
	white-space: nowrap;
	animation: wpcursor-hero-offre-2-fade-left 0.55s ease-out both;
}

.wpcursor-hero-offre-2__badge:nth-child(1) {
	animation-delay: 0.65s;
}

.wpcursor-hero-offre-2__badge:nth-child(2) {
	animation-delay: 0.73s;
}

.wpcursor-hero-offre-2__badge:nth-child(3) {
	animation-delay: 0.81s;
}

.wpcursor-hero-offre-2__badge:nth-child(4) {
	animation-delay: 0.89s;
}

.wpcursor-hero-offre-2__badge-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	opacity: 0.95;
}

.wpcursor-hero-offre-2__badge-glyph {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
}

.wpcursor-hero-offre-2__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.9rem 1.75rem;
	border: none;
	border-radius: 999px;
	background: var(--wpcursor-offre2-cta);
	color: var(--wpcursor-offre2-text);
	font-family: var(--wpcursor-font-sans);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	transition: background 0.2s ease, transform 0.15s ease;
}

.wpcursor-hero-offre-2__cta:hover,
.wpcursor-hero-offre-2__cta:focus-visible {
	background: var(--wpcursor-offre2-cta-hover);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.wpcursor-hero-offre-2__cta-arrow {
	display: inline-block;
	font-size: 1.05em;
	line-height: 1;
}

@media (max-width: 768px) {
	.wpcursor-hero-offre-2 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		min-height: auto;
	}

	.wpcursor-hero-offre-2__media {
		position: relative;
		inset: auto;
		grid-column: 1;
		grid-row: 1;
		align-self: stretch;
		width: 100%;
		min-height: 100%;
	}

	.wpcursor-hero-offre-2__inner {
		grid-column: 1;
		grid-row: 1;
		align-self: stretch;
		padding-top: clamp(3.5rem, 10vh, 5rem);
		padding-bottom: clamp(2.5rem, 8vh, 3.5rem);
	}

	.wpcursor-hero-offre-2__image {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		object-fit: cover;
		object-position: center 28%;
		transform: none !important;
	}

	.wpcursor-hero-offre-2__content {
		max-width: none;
	}

	.wpcursor-hero-offre-2__description {
		max-width: none;
	}

	.wpcursor-hero-offre-2__badge {
		white-space: normal;
	}

	.wpcursor-hero-offre-2__cta {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.wpcursor-hero-offre-2__inner {
		padding-top: clamp(3rem, 9vh, 4.25rem);
		padding-bottom: clamp(2.25rem, 7vh, 3rem);
	}

	.wpcursor-hero-offre-2__badges {
		gap: 0.45rem;
	}

	.wpcursor-hero-offre-2__badge {
		font-size: 0.76rem;
		padding: 0.45rem 0.75rem;
	}
}

.wpcursor-hero-offre-2[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre-2__image,
.wpcursor-hero-offre-2[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre-2__title-line,
.wpcursor-hero-offre-2[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre-2__badge {
	animation: none;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-hero-offre-2__image {
		height: 100%;
		transform: none;
	}

	.wpcursor-hero-offre-2__title-line,
	.wpcursor-hero-offre-2__badge {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
