/*
 * Accueil (maquette 2555:1531) : fond dégradé, titre, sections. Chargé seulement sur l'accueil.
 */

.chn-main--home {
	background: linear-gradient(to bottom, #fff 0, #fff 700px, var(--wp--preset--color--light-purple-500) 100%);
	padding-block: 90px 110px;
}

.chn-main--home > .wp-block-post-content {
	margin-top: 0;
}

.chn-main--home > .wp-block-post-content > * + * {
	margin-top: 110px;
}

.chn-main--home > .wp-block-post-content > .chn-hero + *,
.chn-main--home > .wp-block-post-content > .chn-scroll,
.chn-main--home > .wp-block-post-content > .chn-scroll + * {
	margin-top: 90px;
}

/* Titre */
.chn-hero {
	container-type: inline-size;
	position: relative;
}

.chn-hero__word {
	color: var(--wp--preset--color--light-purple-500);
	font-size: min(99px, 7.455cqi);
	font-weight: 900;
	line-height: 1.219;
	margin: 0;
	padding-bottom: min(65px, 4.9cqi);
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.chn-hero .chn-hero__title {
	font-size: min(43px, 3.238cqi);
	font-weight: 500;
	left: 5.873%;
	line-height: 1;
	margin: 0;
	position: absolute;
	top: min(76px, 5.72cqi);
	white-space: nowrap;
}

/* « Découvrir » */
.chn-scroll {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.219;
}

.chn-scroll a {
	align-items: center;
	display: inline-flex;
	gap: 20px;
	height: 83px;
	text-decoration: none;
	translate: 38px 0;
}

.chn-scroll a::before {
	align-self: stretch;
	background:
		linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
		conic-gradient(from 150deg at 50% 100%, currentColor 60deg, transparent 0) bottom / 7px 6px no-repeat;
	content: "";
	width: 7px;
}

/* Dire merci + Liens utiles */
.chn-useful {
	display: grid;
	gap: 64px;
	grid-template-columns: minmax(0, 612fr) minmax(0, 652fr);
}

.chn-useful > * {
	margin: 0;
}

.chn-photo-card {
	background: var(--wp--preset--color--dark-blue);
	border-radius: 30px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: flex-end;
	min-height: 450px;
	overflow: hidden;
	padding: 40px;
	position: relative;
}

.chn-photo-card > * {
	margin: 0;
	position: relative;
	z-index: 1;
}

.chn-photo-card > .wp-block-image {
	inset: 0;
	position: absolute;
	z-index: 0;
}

.chn-photo-card > .wp-block-image img {
	border-radius: 0;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.chn-photo-card > .wp-block-image::after {
	background: linear-gradient(to bottom, rgba(13, 13, 113, 0), var(--wp--preset--color--dark-blue));
	content: "";
	inset: 0;
	position: absolute;
}

.chn-photo-card :where(h2, h3, h4) {
	color: #fff;
	font-size: 24px;
	font-weight: 600;
}

.chn-useful__links > * {
	margin-block: 0;
}

.chn-useful__links > .wp-block-list {
	margin-top: 10px;
}

@media (max-width: 59.99em) {
	.chn-main--home {
		padding-block: 20px 60px;
	}

	.chn-main--home > .wp-block-post-content > * + *,
	.chn-main--home > .wp-block-post-content > .chn-hero + * {
		margin-top: 60px;
	}

	.chn-main--home > .wp-block-post-content > .chn-hero + * {
		margin-top: 20px;
	}

	.chn-hero__word {
		font-size: 10.6cqi;
		line-height: 1.5;
		padding: 0;
		white-space: normal;
	}

	.chn-hero .chn-hero__title {
		font-size: 5.4cqi;
		left: 0;
		right: 0;
		text-align: center;
		top: 50%;
		translate: 0 -50%;
	}

	.chn-scroll {
		display: none;
	}

	.chn-useful {
		gap: 40px;
		grid-template-columns: minmax(0, 1fr);
	}

	.chn-photo-card {
		min-height: 300px;
		padding: 20px;
	}

	.chn-useful__links {
		text-align: center;
	}

	.chn-useful__links .wp-block-list {
		text-align: left;
	}
}

/* Nos vocations */
.chn-vocations-head > * {
	margin: 0;
}

.chn-vocations {
	align-items: start;
	display: grid;
	gap: 25px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 30px;
}

.chn-vocations > * {
	margin: 0;
}

@media (max-width: 74.99em) {
	.chn-vocations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.99em) {
	.chn-vocations-head {
		text-align: center;
	}

	.chn-vocations {
		gap: 20px;
		grid-template-columns: minmax(0, 1fr);
		margin-top: 20px;
	}

	.chn-vocations .is-style-photo-card {
		min-height: 400px;
		padding: 20px;
	}
}
