/* CNS Objectif Se muscler — /objectifs/se-muscler/ — csm-programmes */

.cns-csm-prog {
	--cns-ink: #111;
	--cns-muted: #5a5a5a;
	--cns-green: #12281c;
	--cns-bg: #f7f6f3;
	--cns-font: "Poppins", system-ui, sans-serif;
	background: var(--cns-bg);
	font-family: var(--cns-font);
	color: var(--cns-ink);
}

.cns-csm-prog__inner {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(2.75rem, 5.5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.cns-csm-prog__header {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.cns-csm-prog__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--cns-green) !important;
}

.cns-csm-prog__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: #111 !important;
}

.cns-csm-prog__lead {
	margin: 0;
	font-size: clamp(0.95rem, 1.25vw, 1.05rem);
	font-weight: 400;
	line-height: 1.5;
	color: var(--cns-muted) !important;
}

.cns-csm-prog__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.2rem);
	align-items: stretch;
}

.cns-csm-prog__card {
	min-width: 0;
	background: #fff;
	border-radius: 1.1rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.07);
}

.cns-csm-prog__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	transition: transform 0.2s ease;
}

.cns-csm-prog__link:hover,
.cns-csm-prog__link:focus {
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit;
	transform: translateY(-2px);
}

.cns-csm-prog__link:focus-visible {
	outline: 2px solid var(--cns-green);
	outline-offset: 3px;
}

.cns-csm-prog__media {
	display: block;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e6e1;
}

.cns-csm-prog__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cns-csm-prog__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.45rem;
	padding: 1.1rem 1.1rem 1.15rem;
	box-sizing: border-box;
	position: relative;
	padding-bottom: 3.25rem;
}

.cns-csm-prog__card-title {
	display: block;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #111 !important;
	text-decoration: none !important;
}

.cns-csm-prog__card-text {
	display: block;
	font-size: 0.9rem;
	line-height: 1.5;
	font-weight: 400;
	color: var(--cns-muted) !important;
	text-decoration: none !important;
}

.cns-csm-prog__btn {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid #d8d8d8;
	color: var(--cns-ink);
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cns-csm-prog__btn svg {
	display: block;
	width: 16px;
	height: 16px;
}

.cns-csm-prog__link:hover .cns-csm-prog__btn,
.cns-csm-prog__link:focus .cns-csm-prog__btn {
	border-color: var(--cns-green);
	color: var(--cns-green);
}

/* Beat theme / tokens underlines on card links */
.wpcursor-component.wpcursor-csm-programmes a.cns-csm-prog__link,
.wpcursor-component.wpcursor-csm-programmes a.cns-csm-prog__link:visited,
.wpcursor-component.wpcursor-csm-programmes a.cns-csm-prog__link:hover,
.wpcursor-component.wpcursor-csm-programmes a.cns-csm-prog__link:focus,
.wpcursor-component.wpcursor-csm-programmes a.cns-csm-prog__link * {
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.wpcursor-component.wpcursor-csm-programmes .cns-csm-prog__title,
.wpcursor-component.wpcursor-csm-programmes .cns-csm-prog__card-title {
	color: #111 !important;
}

.wpcursor-component.wpcursor-csm-programmes .cns-csm-prog__eyebrow {
	color: var(--cns-green) !important;
}

.wpcursor-component.wpcursor-csm-programmes .cns-csm-prog__lead,
.wpcursor-component.wpcursor-csm-programmes .cns-csm-prog__card-text {
	color: var(--cns-muted) !important;
}

@media (max-width: 1024px) {
	.cns-csm-prog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem;
	}
}

@media (max-width: 600px) {
	.cns-csm-prog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.cns-csm-prog__title {
		overflow-wrap: anywhere;
	}
}