/**
 * Hero section — page Sophrologie.
 * Shortcode : [wpcursor name="hero-sophrologie"]
 */

.wpcursor-hero-sophrologie {
	--wpcursor-sophro-bg: #ffffff;
	--wpcursor-sophro-heading: #4a2d5c;
	--wpcursor-sophro-accent: #e8a598;
	--wpcursor-sophro-body: #5f5f6a;
	--wpcursor-sophro-cta: #5e3a71;
	--wpcursor-sophro-cta-hover: #8f689a;
	--wpcursor-sophro-cta-secondary-hover: #5e9fa3;
	--wpcursor-sophro-deco: #f3ebe4;

	box-sizing: border-box;
	width: 100%;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
	background: var(--wpcursor-sophro-bg);
	color: var(--wpcursor-sophro-body);
	overflow: hidden;
}

.wpcursor-hero-sophrologie__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-hero-sophrologie__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.wpcursor-hero-sophrologie__heading {
	margin: 0;
	max-width: 34rem;
	font-family: var(--wpcursor-font-title);
	font-size: clamp(1.85rem, 3.6vw, 2.75rem);
	font-weight: var(--wpcursor-title-weight, 700);
	line-height: 1.18;
	letter-spacing: var(--wpcursor-title-letter-spacing, -0.027em);
	color: var(--wpcursor-sophro-heading);
}

@keyframes wpcursor-hero-sophrologie-image-in {
	from {
		opacity: 0;
		transform: rotate(-3deg) translateY(14px);
	}

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

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

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

.wpcursor-hero-sophrologie__media {
	animation: wpcursor-hero-sophrologie-image-in 0.6s ease-out 0.1s both;
}

.wpcursor-hero-sophrologie__heading {
	animation: wpcursor-hero-sophrologie-fade-left 0.55s ease-out 0.3s both;
}

.wpcursor-hero-sophrologie[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-sophrologie__media,
.wpcursor-hero-sophrologie[data-wpcursor-runtime="admin_preview"] .wpcursor-hero-sophrologie__heading {
	animation: none;
	opacity: 1;
	transform: none;
}

.wpcursor-hero-sophrologie__divider {
	width: 3.25rem;
	height: 2px;
	margin: 1.35rem 0 1.5rem;
	border-radius: 999px;
	background: var(--wpcursor-sophro-accent);
}

.wpcursor-hero-sophrologie__description {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	font-family: var(--wpcursor-font-body);
	font-size: clamp(0.92rem, 1.4vw, 1.02rem);
	font-weight: 400;
	line-height: 1.72;
	color: var(--wpcursor-sophro-body);
}

.wpcursor-hero-sophrologie__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem;
}

.wpcursor-hero-sophrologie__cta {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.82rem 1.2rem;
	border-radius: 999px;
	font-family: var(--wpcursor-font-body);
	font-size: clamp(0.78rem, 1.1vw, 0.86rem);
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.wpcursor-hero-sophrologie__cta--primary {
	border: none;
	background: var(--wpcursor-sophro-cta);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(94, 58, 113, 0.22);
}

.wpcursor-hero-sophrologie__cta--primary:hover,
.wpcursor-hero-sophrologie__cta--primary:focus-visible {
	background: var(--wpcursor-sophro-cta-hover);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.wpcursor-hero-sophrologie__cta--secondary {
	border: 2px solid var(--wpcursor-sophro-cta);
	background: transparent;
	color: var(--wpcursor-sophro-cta);
}

.wpcursor-hero-sophrologie__cta--secondary:hover,
.wpcursor-hero-sophrologie__cta--secondary:focus-visible {
	border-color: var(--wpcursor-sophro-cta-secondary-hover);
	background: rgba(94, 159, 163, 0.06);
	outline: none;
	transform: translateY(-1px);
}

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

.wpcursor-hero-sophrologie__visual {
	position: relative;
	min-width: 0;
	max-width: 520px;
	margin: 0 0 0 auto;
}

.wpcursor-hero-sophrologie__visual-deco {
	position: absolute;
	top: 8%;
	right: -6%;
	z-index: 0;
	width: min(78%, 360px);
	aspect-ratio: 1;
	border-radius: 58% 42% 45% 55% / 52% 48% 55% 45%;
	background: var(--wpcursor-sophro-deco);
	pointer-events: none;
}

.wpcursor-hero-sophrologie__media {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 58% 42% 48% 52% / 48% 52% 45% 55%;
	box-shadow: 0 20px 50px rgba(74, 45, 92, 0.14);
	isolation: isolate;
}

.wpcursor-hero-sophrologie__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 58% 42% 48% 52% / 48% 52% 45% 55%;
	object-fit: cover;
}

.wpcursor-hero-sophrologie__overlay {
	position: absolute;
	top: 8%;
	right: -14%;
	z-index: 3;
	width: min(38%, 155px);
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 4px 12px rgba(74, 45, 92, 0.08));
}

@media (max-width: 960px) {
	.wpcursor-hero-sophrologie__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.wpcursor-hero-sophrologie__visual {
		order: -1;
		max-width: 420px;
		margin: 0 auto;
	}

	.wpcursor-hero-sophrologie__heading,
	.wpcursor-hero-sophrologie__description {
		max-width: none;
	}
}

@media (max-width: 720px) {
	.wpcursor-hero-sophrologie__actions {
		flex-wrap: wrap;
	}

	.wpcursor-hero-sophrologie__cta {
		white-space: normal;
		text-align: center;
	}

	.wpcursor-hero-sophrologie__overlay {
		right: -8%;
		width: min(34%, 120px);
	}
}

@media (max-width: 480px) {
	.wpcursor-hero-sophrologie__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.wpcursor-hero-sophrologie__cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-hero-sophrologie__media,
	.wpcursor-hero-sophrologie__heading {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
