/* CNS Coach musculation en ligne — cme-cta */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

.wpcursor-component.wpcursor-cme-cta.cns-cme-cta,
.cns-cme-cta {
	--cns-lime: #c8f000;
	--cns-lime-hover: #d4f73a;
	--cns-green: #12281c;
	--cns-green-deep: #0c1c14;
	--cns-ink: #111;
	--cns-font: "Poppins", system-ui, sans-serif;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse 42% 55% at 12% 40%, rgba(200, 240, 0, 0.06), transparent 58%),
		radial-gradient(ellipse 35% 45% at 88% 70%, rgba(255, 255, 255, 0.035), transparent 52%),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.015) 0,
			rgba(255, 255, 255, 0.015) 1px,
			transparent 1px,
			transparent 14px
		),
		linear-gradient(165deg, #163224 0%, var(--cns-green) 48%, var(--cns-green-deep) 100%);
	color: #fff;
	font-family: var(--cns-font);
	box-sizing: border-box;
}

.cns-cme-cta *,
.cns-cme-cta *::before,
.cns-cme-cta *::after {
	box-sizing: border-box;
}

.cns-cme-cta__inner {
	max-width: 1220px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.15rem, 3.5vw, 2.25rem);
	display: grid;
	grid-template-columns: minmax(140px, 0.72fr) minmax(0, 1.45fr) auto;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
}

/* —— Photo —— */
.cns-cme-cta__photo {
	margin: 0;
	min-width: 0;
	border-radius: 1.15rem;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	max-height: 280px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
	animation: cns-cme-cta-fade-up 0.65s ease both;
}

.cns-cme-cta__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
}

/* —— Copy —— */
.cns-cme-cta__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	animation: cns-cme-cta-fade-up 0.7s ease 0.06s both;
}

.cns-cme-cta__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88) !important;
}

.cns-cme-cta__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff !important;
	max-width: 22ch;
}

.cns-cme-cta__subtitle {
	margin: 0.35rem 0 0.55rem;
	font-size: clamp(1.05rem, 1.9vw, 1.35rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--cns-lime) !important;
}

.cns-cme-cta__lead {
	margin: 0;
	max-width: 38rem;
	font-size: clamp(0.92rem, 1.2vw, 1.02rem);
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9) !important;
}

/* —— CTA —— */
.cns-cme-cta__action {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	animation: cns-cme-cta-fade-up 0.7s ease 0.12s both;
}

.cns-cme-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.95rem 1.35rem;
	border-radius: 999px;
	background: var(--cns-lime);
	color: var(--cns-ink) !important;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.18s ease, transform 0.18s ease;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.cns-cme-cta__btn:hover,
.cns-cme-cta__btn:focus {
	background: var(--cns-lime-hover);
	color: var(--cns-ink) !important;
	text-decoration: none !important;
	transform: translateY(-2px);
}

.cns-cme-cta__btn-ico,
.cns-cme-cta__btn-chev {
	display: inline-flex;
	flex: 0 0 auto;
	color: inherit;
}

.cns-cme-cta__btn-ico svg,
.cns-cme-cta__btn-chev svg {
	display: block;
}

/* Force against theme overrides */
.wpcursor-component.wpcursor-cme-cta .cns-cme-cta__title,
.wpcursor-component.wpcursor-cme-cta h2 {
	color: #fff !important;
}

.wpcursor-component.wpcursor-cme-cta .cns-cme-cta__subtitle {
	color: var(--cns-lime) !important;
}

.wpcursor-component.wpcursor-cme-cta a.cns-cme-cta__btn,
.wpcursor-component.wpcursor-cme-cta a.cns-cme-cta__btn:visited,
.wpcursor-component.wpcursor-cme-cta a.cns-cme-cta__btn:hover,
.wpcursor-component.wpcursor-cme-cta a.cns-cme-cta__btn:focus {
	text-decoration: none !important;
}

@keyframes cns-cme-cta-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.cns-cme-cta__inner {
		grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.4fr);
		grid-template-areas:
			"photo copy"
			"action action";
		gap: 1.35rem 1.5rem;
	}

	.cns-cme-cta__photo {
		grid-area: photo;
		max-height: 240px;
	}

	.cns-cme-cta__copy {
		grid-area: copy;
	}

	.cns-cme-cta__action {
		grid-area: action;
		justify-content: stretch;
	}

	.cns-cme-cta__btn {
		width: 100%;
	}

	.cns-cme-cta__title {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.cns-cme-cta__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"photo"
			"copy"
			"action";
		gap: 1.25rem;
		padding: 2rem 1.1rem 2.25rem;
	}

	.cns-cme-cta__photo {
		max-width: 280px;
		max-height: none;
		aspect-ratio: 4 / 5;
		margin: 0 auto;
		width: 100%;
	}

	.cns-cme-cta__copy {
		align-items: flex-start;
		text-align: left;
	}

	.cns-cme-cta__btn {
		width: 100%;
		padding: 0.95rem 1.1rem;
		font-size: 0.95rem;
	}
}