/* Card « Agence la plus proche » — pages locales (template Oxygen 149284).
   Maquette Gaëtan (16/11/2026) : fond navy, horaires en carte blanche (jour courant surligné), photo à droite.
   Couleurs du site : navy #172d52 (.navy-cta), cyan #00b0db (.blue-cta). */

.bap-agence-proche {
	--bap-navy: #172d52;
	--bap-cyan: #00b0db;
	--bap-cyan-dark: #0094b8;
	--bap-today: #e4f6fc;
	--bap-text: #1a1a1a;
	--bap-muted: #9aa3ad;
	--bap-line: #edf1f4;
	--bap-radius: 20px;
	width: 100%;
}

.bap-agence-proche .bap-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px;
}

.bap-agence-proche hr {
	display: block;
}

.bap-card {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 1fr);
	width: 100%;
	border-radius: var(--bap-radius);
	overflow: hidden;
	background: var(--bap-navy);
	color: #fff;
}

/* ---------- Colonne 1 : identité + coordonnées ---------- */
.bap-card__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
}

.bap-card__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
}

.bap-card__sep {
	width: 100%;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bap-card__agency {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bap-card__name {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.bap-card__infos {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.5;
}

.bap-agence-proche .bap-card__info {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.bap-card__icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--bap-cyan);
}

.bap-card__phone {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.bap-card__phone:hover,
.bap-card__phone:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.bap-card__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 13px 28px;
	border-radius: 30px;
	background-color: var(--bap-cyan);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.bap-card__cta:hover,
.bap-card__cta:focus-visible {
	background-color: var(--bap-cyan-dark);
	color: #fff;
}

/* ---------- Colonne 2 : horaires (carte blanche) ---------- */
.bap-card__hours {
	align-self: center;
	margin: 40px 36px 40px 0;
	padding: 22px 20px 16px;
	border-radius: 14px;
	background: #fff;
	color: var(--bap-text);
}

.bap-card__hours-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--bap-navy);
}

.bap-agence-proche .bap-hours,
.bap-agence-proche .bap-card__infos {
	list-style: none !important;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
}

.bap-agence-proche .bap-hours__row {
	display: flex !important;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 9px 6px;
	border-bottom: 1px solid var(--bap-line);
}

.bap-hours__row:last-child {
	border-bottom: 0;
}

.bap-hours__time {
	text-align: right;
}

.bap-hours__row.is-today {
	border-radius: 4px;
	background: var(--bap-today);
	color: var(--bap-navy);
	font-weight: 700;
}

.bap-hours__row.is-closed {
	color: var(--bap-muted);
}

/* Repli si les horaires sont un texte libre (WYSIWYG) */
.bap-card__hours-content {
	font-size: 14px;
	line-height: 1.6;
}

.bap-card__hours-content > :first-child {
	margin-top: 0;
}

.bap-card__hours-content > :last-child {
	margin-bottom: 0;
}

/* ---------- Colonne 3 : photo ---------- */
.bap-card__photo {
	position: relative;
	min-height: 320px;
	background: #2a3b70;
}

.bap-card__photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Tablette : photo en bandeau, infos + horaires côte à côte ---------- */
@media (max-width: 991px) {
	.bap-card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.bap-card__photo {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 0;
		aspect-ratio: 16 / 7;
	}

	.bap-card__main {
		padding: 32px;
	}

	.bap-card__hours {
		margin: 32px 32px 32px 0;
	}
}

/* ---------- Mobile : tout empilé ---------- */
@media (max-width: 767px) {
	.bap-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.bap-card__photo {
		aspect-ratio: 16 / 9;
	}

	.bap-card__main {
		gap: 16px;
		padding: 24px 16px;
	}

	.bap-card__title {
		font-size: 24px;
	}

	.bap-card__hours {
		margin: 0 16px 16px;
		padding: 18px 14px 12px;
	}

	.bap-agence-proche .bap-hours {
		font-size: 13px;
	}

	.bap-agence-proche .bap-hours__row {
		flex-wrap: nowrap;
		gap: 8px;
		padding-right: 4px;
		padding-left: 4px;
	}
}
