.content-header {
	--content-header-title-color: #fff;
	--content-header-mobile-color: #fff;
	--content-header-mobile-bg: #343a40;
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: clamp(150px, 18vw, 270px);
	overflow: hidden;
	background: var(--content-header-mobile-bg);
	text-align: center;
}

/* Le contenu principal chevauche volontairement le bas du header.
   Il doit rester au premier plan pour conserver sa bordure et son ombre. */
.content-header + .main {
	position: relative;
	z-index: 1;
}

.content-header__image {
	position: absolute;
	z-index: -1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.content-header__content {
	width: min(92%, 1100px);
	padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}

.content-header__title {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding: .2em .65em .25em;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, .3), rgba(0, 0, 0, .14) 58%, transparent 82%);
	color: var(--content-header-title-color);
	font-size: clamp(1.7rem, 4vw, 3.8rem);
	font-weight: 700;
	line-height: 1.08;
	text-shadow: 0 .035em .09em rgba(0, 0, 0, .55);
	text-wrap: balance;
}

.content-header__subtitle {
	display: table;
	max-width: 70ch;
	margin: .65rem auto 0;
	padding: .35em .8em;
	border-radius: 999px;
	background: rgba(0, 0, 0, .38);
	color: var(--content-header-title-color);
	font-size: clamp(.9rem, 1.3vw, 1.15rem);
	font-weight: 600;
	line-height: 1.4;
	text-wrap: balance;
}

@media (max-width: 991.98px) {
	.content-header {
		min-height: 112px;
		background: var(--content-header-mobile-bg);
	}

	.content-header__image {
		display: none;
	}

	.content-header__content {
		padding: 1.15rem 1rem;
	}

	.content-header__title,
	.content-header__subtitle {
		color: var(--content-header-mobile-color);
	}

	.content-header__title {
		padding: 0;
		background: none;
		font-size: clamp(1.45rem, 5vw, 2.2rem);
		text-shadow: none;
	}

	.content-header__subtitle {
		margin-top: .35rem;
		padding: 0;
		background: none;
		font-size: clamp(.85rem, 2.7vw, 1rem);
	}
}
