/* CNS Coach sportif à distance — csd-bandeau */

.cns-csd-bandeau {
	--cns-lime: #c8f000;
	--cns-green: #12281c;
	--cns-green-deep: #0c1c14;
	--cns-font: "Poppins", system-ui, sans-serif;
	background: #fff;
	font-family: var(--cns-font);
	color: #fff;
}

.cns-csd-bandeau__shell {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.75rem);
	box-sizing: border-box;
}

.cns-csd-bandeau__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 1.35rem;
	background:
		radial-gradient(ellipse 50% 80% at 8% 50%, rgba(200, 240, 0, 0.08), transparent 55%),
		radial-gradient(ellipse 35% 60% at 92% 40%, rgba(255, 255, 255, 0.04), transparent 50%),
		linear-gradient(165deg, #1a3a28 0%, var(--cns-green) 48%, var(--cns-green-deep) 100%);
	box-shadow: 0 14px 40px rgba(12, 28, 20, 0.22);
}

.cns-csd-bandeau__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.cns-csd-bandeau__leaves {
	position: absolute;
	inset: 0;
	opacity: 0.38;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23c8f000' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M20 48c22-28 52-22 66 6 10 18 6 38-8 50-18 16-44 10-54-10-8-16-10-32-4-46z'/%3E%3Cpath d='M108 112c16-20 40-14 50 6 8 14 4 30-8 40-16 14-36 8-44-10-6-12-6-24 2-36z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 200px 200px;
	mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.cns-csd-bandeau__dots {
	position: absolute;
	width: 140px;
	height: 100px;
	opacity: 0.32;
	background-image: radial-gradient(circle, rgba(200, 240, 0, 0.55) 1.1px, transparent 1.3px);
	background-size: 14px 14px;
}

.cns-csd-bandeau__dots--tl {
	top: 14px;
	left: 14px;
}

.cns-csd-bandeau__dots--br {
	right: 14px;
	bottom: 14px;
}

.cns-csd-bandeau__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
	padding: clamp(1.65rem, 3.5vw, 2.35rem) clamp(1.5rem, 3.5vw, 2.25rem);
	box-sizing: border-box;
}

.cns-csd-bandeau__copy {
	min-width: 0;
	max-width: 42rem;
}

.cns-csd-bandeau__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: #fff;
}

.cns-csd-bandeau__title-main {
	display: block;
	color: #fff;
}

.cns-csd-bandeau__title-accent {
	display: block;
	color: var(--cns-lime);
	margin-top: 0.15rem;
}

.cns-csd-bandeau__text {
	margin: 0 0 0.45rem;
	font-size: clamp(0.88rem, 1.2vw, 0.98rem);
	line-height: 1.55;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
}

.cns-csd-bandeau__text:last-child {
	margin-bottom: 0;
}

.cns-csd-bandeau__action {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex: 0 0 auto;
}

.cns-csd-bandeau__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.88rem 1.45rem;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111 !important;
	font-family: var(--cns-font);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid var(--cns-lime);
	white-space: nowrap;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.cns-csd-bandeau__cta:hover,
.cns-csd-bandeau__cta:focus {
	transform: translateY(-2px);
	filter: brightness(0.97);
	color: #111 !important;
	text-decoration: none !important;
}

/* Beat tokens.css on dark panel */
.wpcursor-component.wpcursor-csd-bandeau .cns-csd-bandeau__title,
.wpcursor-component.wpcursor-csd-bandeau .cns-csd-bandeau__title-main {
	color: #fff !important;
}

.wpcursor-component.wpcursor-csd-bandeau .cns-csd-bandeau__title-accent {
	color: var(--cns-lime) !important;
}

.wpcursor-component.wpcursor-csd-bandeau .cns-csd-bandeau__text {
	color: rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 900px) {
	.cns-csd-bandeau__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: left;
	}

	.cns-csd-bandeau__action {
		justify-content: center;
	}

	.cns-csd-bandeau__cta {
		width: 100%;
		max-width: 22rem;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.cns-csd-bandeau__panel {
		border-radius: 1.1rem;
	}

	.cns-csd-bandeau__dots--br {
		display: none;
	}

	.cns-csd-bandeau__title {
		overflow-wrap: anywhere;
	}
}