/**
 * Titres de section avec cadre en L (::before / ::after)
 */

:root {
	--bcom-section-title-color: var(--hp-blue, #0073ba);
	--bcom-section-title-border: var(--hp-blue, #0073ba);
}

.bcom-section-title {
	position: relative;
	width: fit-content;
	max-width: 920px;
	margin: 0 auto 40px;
	padding: 18px 28px 0;
	color: var(--bcom-section-title-color);
	font-size: 36px;
	line-height: 1.35;
	text-align: center;
}

.bcom-section-title::before,
.bcom-section-title::after {
	content: "";
	position: absolute;
	top: 0;
	width: 50px;
	height: 50px;
	border-top: 5px solid var(--bcom-section-title-border);
}

.bcom-section-title::before {
	left: 0;
	border-left: 5px solid var(--bcom-section-title-border);
}

.bcom-section-title::after {
	right: 0;
	border-right: 5px solid var(--bcom-section-title-border);
}

.bcom-section-title--light {
	--bcom-section-title-color: var(--hp-primary, #004e90);
	--bcom-section-title-border: var(--hp-primary, #004e90);
}

.bcom-section-title--left {
	width: auto;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	text-align: left;
}

.bcom-section-title--left::before,
.bcom-section-title--left::after {
	display: none;
}

@media (max-width: 767px) {
	.bcom-section-title {
		width: 100%;
		max-width: none;
		margin-bottom: 28px;
		padding: 12px 12px 0;
		font-size: clamp(22px, 5.5vw, 28px);
	}

	.bcom-section-title::before,
	.bcom-section-title::after {
		width: 26px;
		height: 16px;
		border-top-width: 2px;
	}

	.bcom-section-title::before {
		border-left-width: 2px;
	}

	.bcom-section-title::after {
		border-right-width: 2px;
	}
}
