/* Page location (/location/, page-location.php) : cartes d'agence de la même
   famille que les cartes de la gamme (vn.css) et de l'encadré des articles. */
/* Trois, deux ou une agence par rangée, la dernière rangée incomplète
   centrée (2026-11-24 : la cinquième agence restait seule à gauche). */
.loc-agences {
	--loc-colonnes: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.loc-agence {
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: var(--white);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15,49,76,.06), 0 4px 16px rgba(15,49,76,.06);
}
.loc-agence__nom {
	margin: 0 0 8px;
	font-size: 1.2rem;
	color: var(--navy);
	text-wrap: balance;
}
/* Textes d'interface : ni justification ni césure (règle des petits textes, main.css). */
.loc-agence p {
	margin: 0;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.loc-agence__offre { font-size: 1rem; color: var(--g600); text-wrap: pretty; }
.loc-agence .loc-agence__adresse {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 14px;
	font-size: .92rem;
	color: var(--text);
}
.loc-agence__adresse svg { flex-shrink: 0; margin-top: 4px; color: var(--pink-dark); }
.loc-agence__horaires {
	margin: 12px 0 0;
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
}
/* Comme sur les fiches concession (main.css, .horaires__creneaux) : dans une
   carte étroite, une plage horaire par ligne, alignée à droite du jour. */
.loc-agence { container-type: inline-size; }
.loc-agence__horaires div { display: flex; justify-content: space-between; align-items: flex-start; column-gap: 12px; padding: 4px 0; }
.loc-agence__horaires dt, .loc-agence__horaires dd { white-space: nowrap; }
.loc-agence__horaires div + div { box-shadow: inset 0 1px 0 var(--g100); }
.loc-agence__horaires dt { color: var(--g600); font-weight: 600; }
.loc-agence__horaires dd { margin: 0 0 0 auto; color: var(--text); text-align: right; }
.loc-agence__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 20px;
}
/* Boutons de même largeur quand ils passent l'un sous l'autre. */
.loc-agence__actions .btn { flex: 1 1 150px; justify-content: center; }
.loc-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }

.loc-agences > * { flex: 0 0 calc((100% - (var(--loc-colonnes) - 1) * 20px) / var(--loc-colonnes)); min-width: 0; }
@media (max-width: 1000px) { .loc-agences { --loc-colonnes: 2; } }
@media (max-width: 660px) { .loc-agences { --loc-colonnes: 1; } }
