/* CTA final des articles HYROX : reprise du design clair de la page d'accueil. */
body.postid-4750 {
	--bfn-hyrox-content-width: min(1100px, calc(100vw - 140px));
}
body.postid-4750 .bf-related-wrapper {
	box-sizing: border-box;
	width: var(--bfn-hyrox-content-width) !important;
	max-width: none !important;
	margin-left: calc((100% - var(--bfn-hyrox-content-width)) / 2) !important;
	margin-right: calc((100% - var(--bfn-hyrox-content-width)) / 2) !important;
}

@media (max-width: 1100px) {
	body.postid-4750 {
		--bfn-hyrox-content-width: calc(100vw - 60px);
	}
}
@media (max-width: 767px) {
	body.postid-4750 {
		--bfn-hyrox-content-width: calc(100vw - 32px);
	}
}

body.postid-4750 #bfn-hyrox-final-cta,
body.postid-4690 #bfn-hyrox-final-cta {
	position: relative !important;
	box-sizing: border-box !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 28px calc(50% - 50vw) !important;
	padding: 46px max(24px, calc((100vw - 1100px) / 2)) !important;
	overflow: hidden !important;
	border-left: 7px solid #f47d42 !important;
	background: #fffaf6 !important;
	color: #252321 !important;
	text-align: left !important;
}

#bfn-hyrox-final-cta .bfn-hyrox-final-cta__inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 36px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	text-align: left;
}

#bfn-hyrox-final-cta .bfn-hyrox-final-cta__badge {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #bf5727 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
}

#bfn-hyrox-final-cta h2 {
	grid-column: 1;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #252321 !important;
	font-size: clamp(30px, 4.5vw, 48px);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.04em;
}

#bfn-hyrox-final-cta h2 span {
	color: #f47b3f !important;
}

#bfn-hyrox-final-cta h2 > .bfn-hyrox-final-cta__line {
	color: #252321 !important;
}

#bfn-hyrox-final-cta h2 > .bfn-hyrox-final-cta__line span {
	color: #f47b3f !important;
}

#bfn-hyrox-final-cta .bfn-hyrox-final-cta__button {
	grid-column: 2;
	grid-row: 1 / span 2;
	position: relative;
	z-index: 1;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 248px;
	min-height: 62px;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #f47b3f !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgb(170 78 37 / 14%);
	transition: transform .18s ease, background-color .18s ease;
}

#bfn-hyrox-final-cta .bfn-hyrox-final-cta__button:is(:hover, :focus-visible) {
	background: #e96e34 !important;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
}

#bfn-hyrox-final-cta .bfn-hyrox-final-cta__button:focus-visible {
	outline: 3px solid #252321;
	outline-offset: 4px;
}

@media (max-width: 700px) {
	body.postid-4750 #bfn-hyrox-final-cta,
	body.postid-4690 #bfn-hyrox-final-cta {
		margin: 22px calc(50% - 50vw) !important;
		padding: 34px 26px 38px !important;
	}

	#bfn-hyrox-final-cta .bfn-hyrox-final-cta__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	#bfn-hyrox-final-cta h2 {
		font-size: clamp(29px, 8vw, 39px);
	}

	#bfn-hyrox-final-cta .bfn-hyrox-final-cta__line {
		display: block;
		white-space: nowrap;
	}

	#bfn-hyrox-final-cta .bfn-hyrox-final-cta__button {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
		max-width: 330px;
		min-height: 58px;
		margin-top: 10px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	#bfn-hyrox-final-cta .bfn-hyrox-final-cta__button {
		transition: none;
	}
}
