/**
 * Hero section — pages d'offre (Sophr'à Soi).
 * Shortcode : [wpcursor name="hero-offre"]
 * Variantes : orange | purple | teal | neutral
 */

.wpcursor-hero-offre {
	--wpcursor-offre-text: #ffffff;
	--wpcursor-offre-cta: #6b4e81;
	--wpcursor-offre-cta-hover: #5a4069;
	--wpcursor-offre-badge-bg: rgba(20, 12, 10, 0.42);
	--wpcursor-offre-min-height: min(82vh, 680px);
	--wpcursor-offre-ken-duration: 8s;
	--wpcursor-offre-ken-scale: 1.05;
	--wpcursor-offre-badge-base-delay: 650ms;
	--wpcursor-offre-badge-stagger: 150ms;

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

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

.wpcursor-hero-offre--purple {
	--wpcursor-offre-cta: #8f689a;
	--wpcursor-offre-cta-hover: #8f689a;
}

.wpcursor-hero-offre--teal {
	--wpcursor-offre-cta: #5e9fa3;
	--wpcursor-offre-cta-hover: #528f93;
}

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

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

.wpcursor-hero-offre__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	transform-origin: center center;
	will-change: transform;
	animation: wpcursor-hero-offre-ken-burns var(--wpcursor-offre-ken-duration) ease-out forwards;
}

@keyframes wpcursor-hero-offre-ken-burns {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(var(--wpcursor-offre-ken-scale));
	}
}

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

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

@keyframes wpcursor-hero-offre-scale-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wpcursor-hero-offre__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(12, 8, 10, 0.78) 0%, rgba(12, 8, 10, 0.55) 42%, rgba(12, 8, 10, 0.2) 68%, rgba(12, 8, 10, 0.35) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.3) 100%);
	pointer-events: none;
}

.wpcursor-hero-offre__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__content {
	max-width: 560px;
	text-align: left;
}

.wpcursor-hero-offre__breadcrumb {
	margin: 0 0 1.25rem;
}

.wpcursor-hero-offre__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__breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

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

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

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

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

.wpcursor-hero-offre__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__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-offre-text);
}

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

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

.wpcursor-hero-offre__description {
	margin: 0 0 1.65rem;
	max-width: 520px;
	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__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
}

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

.wpcursor-hero-offre__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	background: var(--wpcursor-offre-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-offre-text);
	white-space: nowrap;
	animation: wpcursor-hero-offre-fade-left 0.55s ease-out both;
}

.wpcursor-hero-offre__badge:nth-child(1) {
	animation-delay: calc(var(--wpcursor-offre-badge-base-delay) + 0 * var(--wpcursor-offre-badge-stagger));
}

.wpcursor-hero-offre__badge:nth-child(2) {
	animation-delay: calc(var(--wpcursor-offre-badge-base-delay) + 1 * var(--wpcursor-offre-badge-stagger));
}

.wpcursor-hero-offre__badge:nth-child(3) {
	animation-delay: calc(var(--wpcursor-offre-badge-base-delay) + 2 * var(--wpcursor-offre-badge-stagger));
}

.wpcursor-hero-offre__badge:nth-child(4) {
	animation-delay: calc(var(--wpcursor-offre-badge-base-delay) + 3 * var(--wpcursor-offre-badge-stagger));
}

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

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

.wpcursor-hero-offre__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.9rem 1.75rem;
	border: none;
	border-radius: 999px;
	background: var(--wpcursor-offre-cta);
	color: var(--wpcursor-offre-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);
	animation: wpcursor-hero-offre-scale-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
	transition: background 0.2s ease, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.wpcursor-hero-offre__cta:hover,
.wpcursor-hero-offre__cta:focus-visible {
	background: var(--wpcursor-offre-cta-hover);
	color: #ffffff;
	outline: none;
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

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

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

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

	.wpcursor-hero-offre__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__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		object-fit: cover;
		object-position: center 32%;
		animation: none;
		transform: none;
	}

	.wpcursor-hero-offre__content {
		max-width: none;
	}

	.wpcursor-hero-offre__description {
		max-width: none;
	}

	.wpcursor-hero-offre__badge {
		white-space: normal;
	}

	.wpcursor-hero-offre__cta {
		width: 100%;
		justify-content: center;
	}
}

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

	.wpcursor-hero-offre__badges {
		gap: 0.45rem;
	}

	.wpcursor-hero-offre__badge {
		font-size: 0.76rem;
		padding: 0.45rem 0.75rem;
	}
}

.wpcursor-hero-offre[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre__image,
.wpcursor-hero-offre[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre__title-line,
.wpcursor-hero-offre[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre__badge,
.wpcursor-hero-offre[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-offre__cta {
	animation: none;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-hero-offre__image {
		animation: none;
		transform: none;
	}

	.wpcursor-hero-offre__title-line,
	.wpcursor-hero-offre__badge,
	.wpcursor-hero-offre__cta {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.wpcursor-hero-offre__cta:hover,
	.wpcursor-hero-offre__cta:focus-visible {
		transform: translateY(-3px);
	}
}
