/* Bandeau (hero) des pages formation. Voir includes/course-hero.php. */
.cefac-chero {
	--chero-bg: #0B2A4A;
	position: relative;
	overflow: hidden;
	background: var(--chero-bg);
	color: #fff;
	isolation: isolate;
}
/* Collé au header : pas d’espace de bloc (blockGap) au-dessus. */
.wp-site-blocks > .cefac-chero { margin-block-start: 0; }
.cefac-chero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	background: var(--chero-img) center / cover no-repeat;
	z-index: -2;
}
.cefac-chero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--chero-bg) 38%, rgba(11, 42, 74, .82) 52%, rgba(11, 42, 74, .25) 75%, rgba(11, 42, 74, 0) 100%);
	z-index: -1;
}
.cefac-chero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 56px;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cefac-chero__inner > * { max-width: 620px; }
.cefac-chero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.cefac-chero__crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.cefac-chero__crumbs a:hover { color: #fff; text-decoration: underline; }
.cefac-chero__crumbs a:last-child { color: #fff; }
.cefac-chero__title {
	margin: 0;
	font: 700 clamp(2rem, 4vw, 3rem)/1.1 'Public Sans', sans-serif;
	letter-spacing: -.02em;
	color: #fff;
	text-wrap: balance;
}
.cefac-chero__intro { margin: 16px 0 0; font-size: 1.15rem; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.cefac-chero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #fff; }
.cefac-chero__facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.cefac-chero__facts .cefac-chero__icon { width: 20px; height: 20px; background: #5FD4DC; }
.cefac-chero__icon {
	display: inline-block;
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}
.cefac-chero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.cefac-chero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 9999px;
	background: radial-gradient(120% 140% at 50% 12%, rgba(255,255,255,.24), rgba(255,255,255,0) 55%), linear-gradient(135deg, #00B4C5, #008999);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 8px rgba(0,0,0,.14), 0 8px 18px -8px rgba(0,120,135,.55);
	font: 700 1rem/1.2 'Public Sans', sans-serif;
	text-decoration: none;
	transition: background-color .2s, transform .2s;
}
.cefac-chero__cta:hover, .cefac-chero__cta:focus-visible { background: radial-gradient(120% 140% at 50% 12%, rgba(255,255,255,.32), rgba(255,255,255,0) 55%), linear-gradient(135deg, #00C2D4, #009AAC); color: #fff; transform: translateY(-1px); }
.cefac-chero__play { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; text-decoration: none; }
.cefac-chero__playicon { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; transition: background-color .2s; }
.cefac-chero__playicon .cefac-chero__icon { margin-left: 2px; }
.cefac-chero__play:hover { color: #fff; }
.cefac-chero__play:hover .cefac-chero__playicon { background: rgba(255, 255, 255, .14); }
.cefac-chero a:focus-visible { outline: 2px solid #5FD4DC; outline-offset: 3px; }

/* La photo est dans le bandeau : pas de doublon en haut de la colonne (la vidéo, elle, reste). */
.tutor-course-details-page main > .tutor-course-thumbnail { display: none; }
.tutor-course-details-page main > .tutor-course-details-tab { margin-top: 0 !important; }

@media (max-width: 782px) {
	.cefac-chero::before { width: 100%; }
	.cefac-chero::after { background: linear-gradient(180deg, rgba(11, 42, 74, .78) 0%, rgba(11, 42, 74, .92) 55%, var(--chero-bg) 100%); }
	.cefac-chero__inner { min-height: 0; padding: 28px 16px 36px; }
	.cefac-chero__intro { font-size: 1.05rem; }
	.cefac-chero__cta { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.cefac-chero__cta { transition: none; }
	.cefac-chero__cta:hover { transform: none; }
}
