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

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

.wpcursor-component.wpcursor-cme-role.cns-cme-role,
.cns-cme-role {
	--cns-lime: #c8f000;
	--cns-green: #12281c;
	--cns-green-deep: #0c1c14;
	--cns-ink: #111;
	--cns-font: "Poppins", system-ui, sans-serif;
	--cns-script: "Caveat", cursive;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse 40% 50% at 78% 30%, rgba(200, 240, 0, 0.05), transparent 58%),
		radial-gradient(ellipse 35% 45% at 8% 80%, rgba(0, 0, 0, 0.22), transparent 55%),
		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-role *,
.cns-cme-role *::before,
.cns-cme-role *::after {
	box-sizing: border-box;
}

.cns-cme-role__inner {
	max-width: 1220px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(2.75rem, 5.5vw, 4.5rem) clamp(1.15rem, 3.5vw, 2.25rem);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.85fr);
	gap: clamp(1.25rem, 3vw, 2.35rem);
	align-items: center;
}

/* —— Left copy —— */
.cns-cme-role__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 34rem;
	animation: cns-cme-role-fade-up 0.7s ease both;
}

.cns-cme-role__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
}

.wpcursor-component.wpcursor-cme-role .cns-cme-role__title,
.cns-cme-role__title {
	margin: 0 0 1.1rem;
	font-size: clamp(1.65rem, 2.7vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #fff !important;
}

.wpcursor-component.wpcursor-cme-role .cns-cme-role__title-main,
.cns-cme-role__title-main {
	display: block;
	color: #fff !important;
}

.wpcursor-component.wpcursor-cme-role .cns-cme-role__title-accent,
.cns-cme-role__title-accent {
	display: block;
	color: var(--cns-lime) !important;
}

.cns-cme-role__lead {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.65;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.88);
}

.cns-cme-role__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.92rem 1.35rem;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111 !important;
	font-family: var(--cns-font);
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1.5px solid var(--cns-lime);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cns-cme-role__cta-ico {
	display: inline-flex;
	color: #111;
}

.cns-cme-role__cta:hover,
.cns-cme-role__cta:focus {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
	background: #d4f52a;
	color: #111 !important;
}

/* —— Center photo —— */
.cns-cme-role__photo {
	margin: 0;
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	max-height: 520px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
	animation: cns-cme-role-fade-up 0.8s ease 0.08s both;
	background: #0a1610;
}

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

/* —— Right quote card —— */
.cns-cme-role__quote {
	margin: 0;
	padding: clamp(1.35rem, 2.5vw, 1.85rem) clamp(1.2rem, 2.2vw, 1.65rem) clamp(1.25rem, 2.2vw, 1.7rem);
	border-radius: 22px;
	background: #fff;
	color: var(--cns-ink);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: center;
	animation: cns-cme-role-fade-up 0.85s ease 0.14s both;
}

.cns-cme-role__marks {
	display: block;
	margin: 0 0 0.35rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 0.7;
	color: var(--cns-lime);
}

.wpcursor-component.wpcursor-cme-role .cns-cme-role__quote-text,
.cns-cme-role__quote-text {
	margin: 0 0 1.25rem;
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	font-weight: 600;
	line-height: 1.45;
	color: #111 !important;
}

.wpcursor-component.wpcursor-cme-role .cns-cme-role__author,
.cns-cme-role__author {
	margin: 0;
	font-family: var(--cns-script);
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.1;
	color: #111 !important;
}

.cns-cme-role__brand {
	margin: 0.15rem 0 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #3a463f;
}

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

@media (max-width: 1024px) {
	.cns-cme-role__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 1.5rem;
	}

	.cns-cme-role__quote {
		grid-column: 1 / -1;
		max-width: 36rem;
	}

	.cns-cme-role__photo {
		max-height: 440px;
	}
}

@media (max-width: 720px) {
	.cns-cme-role__inner {
		grid-template-columns: 1fr;
		padding: 2.35rem 1.15rem 2.75rem;
		gap: 1.35rem;
	}

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

	.cns-cme-role__photo {
		max-height: none;
		aspect-ratio: 4 / 5;
		order: 0;
	}

	.cns-cme-role__quote {
		grid-column: auto;
		max-width: none;
	}

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

	.wpcursor-component.wpcursor-cme-role .cns-cme-role__title,
	.cns-cme-role__title {
		font-size: clamp(1.5rem, 6.5vw, 1.95rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cns-cme-role__copy,
	.cns-cme-role__photo,
	.cns-cme-role__quote,
	.cns-cme-role__cta {
		animation: none !important;
		transition: none !important;
	}
}