/**
 * Section accueil — CTA appel découverte (Sophr'à Soi).
 * Shortcode : [wpcursor name="accueil-cta"]
 */

.wpcursor-accueil-cta {
	--wpcursor-cta-bg: #df7b79;
	--wpcursor-cta-bg-hover: #d46f6d;
	--wpcursor-cta-text: #ffffff;
	--wpcursor-cta-button-bg: #ffffff;
	--wpcursor-cta-button-text: #df7b79;

	box-sizing: border-box;
	width: 100%;
	padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
	background: var(--wpcursor-cta-bg);
	color: var(--wpcursor-cta-text);
	text-align: center;
}

.wpcursor-accueil-cta__inner {
	max-width: 720px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-accueil-cta__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wpcursor-cta-text);
}

.wpcursor-accueil-cta__heading {
	margin: 0 0 1.25rem;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--wpcursor-cta-text);
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.wpcursor-accueil-cta.is-inview .wpcursor-accueil-cta__heading {
	opacity: 1;
	transform: scale(1);
}

@keyframes wpcursor-accueil-cta-pulse {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.04);
	}
}

.wpcursor-accueil-cta__description {
	margin: 0 0 2rem;
	font-family: var(--wpcursor-font-sans);
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.95);
}

.wpcursor-accueil-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.95rem 1.85rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--wpcursor-cta-button-bg);
	color: var(--wpcursor-cta-button-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 18px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.wpcursor-accueil-cta.is-inview .wpcursor-accueil-cta__button {
	animation: wpcursor-accueil-cta-pulse 2s ease-in-out infinite;
}

.wpcursor-accueil-cta__button:hover,
.wpcursor-accueil-cta__button:focus-visible {
	background: transparent;
	border-color: #ffffff;
	color: #ffffff;
	animation: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	outline: none;
}

.wpcursor-accueil-cta__button:hover .wpcursor-accueil-cta__button-label,
.wpcursor-accueil-cta__button:hover .wpcursor-accueil-cta__button-arrow,
.wpcursor-accueil-cta__button:focus-visible .wpcursor-accueil-cta__button-label,
.wpcursor-accueil-cta__button:focus-visible .wpcursor-accueil-cta__button-arrow {
	color: #ffffff;
}

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

@media (max-width: 560px) {
	.wpcursor-accueil-cta__button {
		width: 100%;
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-accueil-cta__heading {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-accueil-cta.is-inview .wpcursor-accueil-cta__button {
		animation: none;
	}
}
