/**
 * Hero section accueil — Sophr'à Soi.
 * Shortcode : [wpcursor name="hero-accueil"]
 */

.wpcursor-hero-accueil {
	--wpcursor-hero-accent: #d99e82;
	--wpcursor-hero-cta-primary: #d17474;
	--wpcursor-hero-cta-primary-hover: #c46868;
	--wpcursor-hero-tagline: #d4c4b0;
	--wpcursor-hero-text: #ffffff;
	--wpcursor-hero-min-height: min(92vh, 860px);
	--wpcursor-hero-overlay-teal: #5e9fa3;
	--wpcursor-hero-overlay-milk: rgba(94, 159, 163, 0.24);

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

.wpcursor-hero-accueil__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background-color: #6f8f9a;
}

.wpcursor-hero-accueil__image {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	display: block;
	width: 100%;
	height: auto;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--wpcursor-hero-accueil-image-position, center bottom);
}

.wpcursor-hero-accueil__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(28, 18, 12, 0.5) 0%, rgba(28, 18, 12, 0.26) 42%, rgba(28, 18, 12, 0.08) 68%, rgba(28, 18, 12, 0.02) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(0, 0, 0, 0.1) 100%),
		var(--wpcursor-hero-overlay-milk);
	pointer-events: none;
}

.wpcursor-hero-accueil__bokeh {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.wpcursor-hero-accueil__bokeh-circle {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
	filter: blur(1px);
}

.wpcursor-hero-accueil__bokeh-circle--1 {
	top: -8%;
	right: 18%;
	width: min(42vw, 420px);
	height: min(42vw, 420px);
	opacity: 0.55;
}

.wpcursor-hero-accueil__bokeh-circle--2 {
	top: 6%;
	right: 4%;
	width: min(28vw, 280px);
	height: min(28vw, 280px);
	opacity: 0.35;
	background: radial-gradient(circle, rgba(230, 200, 220, 0.28) 0%, rgba(230, 200, 220, 0) 70%);
}

.wpcursor-hero-accueil__bokeh-circle--3 {
	top: 22%;
	left: 55%;
	width: min(18vw, 180px);
	height: min(18vw, 180px);
	opacity: 0.25;
}

.wpcursor-hero-accueil__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 5vw, 4.5rem) clamp(6rem, 14vh, 9rem);
	box-sizing: border-box;
}

.wpcursor-hero-accueil__content {
	max-width: 640px;
}

.wpcursor-hero-accueil__tagline {
	margin: 0 0 1.25rem;
	font-family: var(--wpcursor-font-sans);
	font-size: clamp(0.68rem, 1.1vw, 0.78rem);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.5;
	color: var(--wpcursor-hero-tagline);
}

.wpcursor-hero-accueil__title {
	margin: 0 0 1.5rem;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(2.4rem, 5.5vw, 4.25rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.wpcursor-hero-accueil__title-line {
	display: block;
}

.wpcursor-hero-accueil__title-line--primary {
	color: var(--wpcursor-hero-text);
}

.wpcursor-hero-accueil__title-line--accent {
	color: var(--wpcursor-hero-accent);
}

.wpcursor-hero-accueil__description {
	margin: 0 0 2rem;
	max-width: 520px;
	font-family: var(--wpcursor-font-sans);
	font-size: clamp(0.95rem, 1.6vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.wpcursor-hero-accueil__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

.wpcursor-hero-accueil__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.9rem 1.85rem;
	border-radius: 999px;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.wpcursor-hero-accueil__cta--primary {
	border: none;
	background: var(--wpcursor-hero-cta-primary);
	color: var(--wpcursor-hero-text);
	box-shadow: 0 2px 12px rgba(209, 116, 116, 0.35);
}

.wpcursor-hero-accueil__cta--primary:hover,
.wpcursor-hero-accueil__cta--primary:focus-visible {
	background: var(--wpcursor-hero-cta-primary-hover);
	color: #ffffff;
	outline: none;
}

.wpcursor-hero-accueil__cta--secondary {
	border: 1px solid rgba(255, 255, 255, 0.9);
	background: transparent;
	color: var(--wpcursor-hero-text);
}

.wpcursor-hero-accueil__cta--secondary:hover,
.wpcursor-hero-accueil__cta--secondary:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
	color: #ffffff;
	outline: none;
}

.wpcursor-hero-accueil__cta-arrow {
	display: inline-block;
	font-size: 1.05em;
	line-height: 1;
	transform: translateY(-0.02em);
}

.wpcursor-hero-accueil__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(1.25rem, 4vh, 2.5rem);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	transform: translateX(-50%);
	color: var(--wpcursor-hero-text);
	font-family: var(--wpcursor-font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.wpcursor-hero-accueil__scroll:hover,
.wpcursor-hero-accueil__scroll:focus-visible {
	opacity: 1;
	outline: none;
}

.wpcursor-hero-accueil__scroll-line {
	display: block;
	width: 1px;
	height: 2.5rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

@keyframes wpcursor-hero-accueil-image-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes wpcursor-hero-accueil-fade-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

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

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

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

.wpcursor-hero-accueil__image {
	animation: wpcursor-hero-accueil-image-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.wpcursor-hero-accueil__tagline,
.wpcursor-hero-accueil__title {
	animation: wpcursor-hero-accueil-fade-in 0.55s ease-out 0.5s both;
}

.wpcursor-hero-accueil__description {
	animation: wpcursor-hero-accueil-fade-in 0.55s ease-out 0.8s both;
}

.wpcursor-hero-accueil__cta--primary {
	animation: wpcursor-hero-accueil-scale-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.wpcursor-hero-accueil__cta--secondary {
	animation: wpcursor-hero-accueil-scale-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}

.wpcursor-hero-accueil[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-accueil__image,
.wpcursor-hero-accueil[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-accueil__tagline,
.wpcursor-hero-accueil[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-accueil__title,
.wpcursor-hero-accueil[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-accueil__description,
.wpcursor-hero-accueil[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-accueil__cta {
	animation: none;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-hero-accueil__image,
	.wpcursor-hero-accueil__tagline,
	.wpcursor-hero-accueil__title,
	.wpcursor-hero-accueil__description,
	.wpcursor-hero-accueil__cta {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.wpcursor-hero-accueil__image {
		transform: translateX(-50%);
	}
}

@media (max-width: 768px) {
	.wpcursor-hero-accueil {
		/* Hauteur fixe : évite le shift lié à la barre d'adresse mobile (vh). */
		--wpcursor-hero-min-height: 640px;
		min-height: 640px;
	}

	.wpcursor-hero-accueil__inner {
		padding-top: 4.5rem;
		padding-bottom: 5.5rem;
	}

	/* Animations d'entrée désactivées sur mobile (CLS agentique). */
	.wpcursor-hero-accueil__image,
	.wpcursor-hero-accueil__tagline,
	.wpcursor-hero-accueil__title,
	.wpcursor-hero-accueil__description,
	.wpcursor-hero-accueil__cta {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.wpcursor-hero-accueil__image {
		transform: translateX(-50%);
	}

	.wpcursor-hero-accueil__image {
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		width: 100%;
		height: auto;
		min-width: 100%;
		min-height: 100%;
		object-position: var(--wpcursor-hero-accueil-image-position, center bottom);
	}

	.wpcursor-hero-accueil__overlay {
		background:
			linear-gradient(180deg, rgba(28, 18, 12, 0.48) 0%, rgba(28, 18, 12, 0.22) 45%, rgba(28, 18, 12, 0.28) 100%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
			var(--wpcursor-hero-overlay-milk);
	}

	.wpcursor-hero-accueil__content {
		max-width: 100%;
	}

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

	.wpcursor-hero-accueil__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
	}

	.wpcursor-hero-accueil__cta {
		justify-content: center;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.wpcursor-hero-accueil {
		--wpcursor-hero-min-height: 580px;
		min-height: 580px;
	}

	.wpcursor-hero-accueil__inner {
		padding-top: 3.5rem;
		padding-bottom: 4.75rem;
	}

	.wpcursor-hero-accueil__title {
		font-size: clamp(1.85rem, 9vw, 2.35rem);
	}

	.wpcursor-hero-accueil__cta {
		width: 100%;
		padding: 0.85rem 1.1rem;
		font-size: 0.9rem;
	}
}
