/**
 * Campus — Single formation.
 */

.site-main--formation-single {
	padding-block: 0;
}


/* ——— Hero ——— */
.formation-hero {
	position: relative;
	color: var(--color-text, #3e342a);
}

.formation-hero--has-image {
	color: #fff;
}

.formation-hero__media {
	position: relative;
	min-height: 420px;
	height: 100vh;
	overflow: hidden;
}

.formation-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	object-position: center;
}

.formation-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.formation-hero__head {
	position: relative;
	z-index: 1;
}

.formation-hero--has-image .formation-hero__head {
	margin-top: -420px;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
}

.formation-hero__head > .container {
	padding-block: 24px 32px;
}

.formation-hero--has-image .campus-intro--hero {
	color: inherit;
}

.formation-hero__body {
	padding-block: 32px 40px;
	background: var(--color-background, #fdfcf7);
	color: var(--color-text, #3e342a);
}

.formation-hero__tags {
	margin-bottom: 20px;
}

.formation-hero__body .lead {
	margin-top: 40px;
}

.formation-panel__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 20px 0;
}

.formation-panel__row:first-child {
	padding-top: 0;
}

.formation-panel__content :first-child {
	margin-top: 0;
}

.formation-panel__content :last-child {
	margin-bottom: 0;
}

/* Partenaires */
.formation-partners-block__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.formation-partners-block__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 16px;
	background: rgba(0, 0, 0, 0.04);
}

.formation-partners-block__logo {
	display: block;
	max-width: 100%;
	/*max-height: 72px;*/
	width: auto;
	height: auto;
	object-fit: contain;
}

.formation-formateurs__grid {
	--formation-formateurs-border: var(--color-border, #b8b0a6);

	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--formation-formateurs-border);
	border-left: 1px solid var(--formation-formateurs-border);
	list-style: none;
}

.formation-formateurs__item {
	margin: 0;
	padding: 24px;
	border-right: 1px solid var(--formation-formateurs-border);
	border-bottom: 1px solid var(--formation-formateurs-border);
	box-sizing: border-box;
	min-width: 0;
}

@media (min-width: 768px) {
	.formation-formateurs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ——— Projets pédagogiques ——— */
.formation-projets {
	padding-block: 56px;
	background: var(--color-background, #fdfcf7);
	overflow: hidden;
}

.formation-projets .campus-slider-galerie-band__inner {
	overflow: visible;
}

.formation-projets__band {
	position: relative;
	width: 100%;
}

.formation-projets__slider {
	overflow: visible;
}

.formation-projets__slider .swiper-slide {
	height: auto;
}

/* Largeur slide = image uniquement ; la légende suit en dessous (pas de width: max-content). */
.formation-projets__slide {
	display: table;
	margin: 0;
	width: auto;
	max-width: 100%;
	border-spacing: 0;
}

.formation-projets__slider.campus-slider-galerie--simple .imgfit {
	height: 320px;
}

.formation-projets__slider.campus-slider-galerie--simple .imgfit img {
	width: auto;
	height: 100%;
	max-width: none;
}

.formation-projets__caption {
	display: table-caption;
	caption-side: bottom;
	margin: 16px 0 0;
	padding: 0;
	text-align: left;
	overflow-wrap: anywhere;
}

/* ——— Sticky CTA ——— */
.formation-sticky-cta {
	position: fixed;
	z-index: 90;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	max-width: min(100% - 32px, 320px);
}

.formation-sticky-cta__btn {
	justify-content: center;
	white-space: normal;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1024px) {
	.formation-hero__media {
		height: 85vh;
		min-height: 520px;
	}

	.formation-hero__img {
		min-height: 520px;
	}

	.formation-hero--has-image .formation-hero__head {
		margin-top: -520px;
		min-height: 520px;
	}

	.formation-hero__head > .container {
		padding-block: 40px 48px;
	}

	.formation-panel__row {
		grid-template-columns: minmax(180px, 280px) 1fr;
		gap: 32px;
		padding: 28px 0;
	}

	.formation-partners-block__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.formation-projets__slider.campus-slider-galerie--simple .imgfit {
		height: 500px;
	}

	.formation-sticky-cta {
		right: 24px;
		bottom: 24px;
	}
}
