/**
 * Sol Air Services — page hub « Nos communes »
 * Ouinet.fr — 2026-08-06
 */

.sa-com {
	--sa-com-primary: var(--primary, #E98744);
	--sa-com-base: var(--base, #202045);
	color: var(--sa-com-base);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* ---------- bande de chiffres ---------- */

.sa-com-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	background: var(--sa-com-base);
	border-radius: 18px;
	padding: 28px 20px;
	margin: 0 0 46px;
	text-align: center;
	color: #fff;
}

.sa-com-stats div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px 10px;
}

.sa-com-stats div + div {
	border-left: 1px solid rgba(255, 255, 255, .18);
}

.sa-com-stats strong {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 800;
	line-height: 1;
	color: var(--sa-com-primary);
}

.sa-com-stats span {
	font-size: 13px;
	letter-spacing: .04em;
	opacity: .82;
}

/* ---------- sommaire d'ancres ---------- */

.sa-com-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 60px;
}

.sa-com-nav a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid rgba(32, 32, 69, .14);
	border-radius: 999px;
	background: #fff;
	color: var(--sa-com-base);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sa-com-nav a span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: #eceaf3;
	color: var(--sa-com-base);
	font-size: 12px;
	font-weight: 700;
}

.sa-com-nav a:hover {
	background: var(--sa-com-base);
	border-color: var(--sa-com-base);
	color: #fff;
}

.sa-com-nav a:hover span {
	background: var(--sa-com-primary);
	color: #fff;
}

/* ---------- une partie service ---------- */

.sa-com-svc {
	scroll-margin-top: 140px;
}

.sa-com-svc + .sa-com-svc {
	margin-top: 70px;
	padding-top: 60px;
	border-top: 1px solid rgba(32, 32, 69, .1);
}

.sa-com-secteur + .sa-com-secteur {
	margin-top: 34px;
}

.sa-com-secteur-titre {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sa-com-base);
	opacity: .62;
}

/* ---------- grille de communes ---------- */

.sa-com-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sa-com-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sa-com-item a {
	display: flex;
	flex-direction: column;
	gap: 3px;
	height: 100%;
	padding: 13px 16px;
	background: #fff;
	border: 1px solid rgba(32, 32, 69, .12);
	border-left: 3px solid var(--sa-com-primary);
	border-radius: 10px;
	text-decoration: none;
	color: var(--sa-com-base);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sa-com-item a:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(32, 32, 69, .12);
	border-color: rgba(233, 135, 68, .55);
	border-left-color: var(--sa-com-primary);
}

.sa-com-ville {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
}

.sa-com-sub {
	font-size: 12.5px;
	line-height: 1.3;
	opacity: .6;
}

/* ---------- lien vers la page service ---------- */

.sa-com-cta {
	margin: 26px 0 0;
	text-align: center;
}

.sa-com-cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--sa-com-primary);
	text-decoration: none;
}

.sa-com-cta a:hover {
	text-decoration: underline;
}

/* ---------- écrans étroits ---------- */

@media (max-width: 900px) {
	.sa-com-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 22px;
	}

	.sa-com-stats div:nth-child(odd) {
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.sa-com-grid {
		grid-template-columns: 1fr;
	}

	.sa-com-nav {
		margin-bottom: 40px;
	}
}

/* ---------- neutralisation des styles de liste du thème (ACSS) ---------- */

.sa-com ul.sa-com-grid {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding-inline: 0;
}

.sa-com ul.sa-com-grid > li {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

.sa-com ul.sa-com-grid > li::marker {
	content: none;
}

/* ---------- le thème met les <section> en flex/centré : on repasse en bloc ---------- */

.sa-com .sa-com-svc {
	display: block;
	width: 100%;
	max-width: 100%;
}

.sa-com .sa-com-secteur {
	width: 100%;
}
