/* Bloc « Nos annonces de l'agence <Ville> » — template Oxygen agence 140009. */

.baa-annonces {
	--baa-navy: #172d52;
	--baa-cyan: #00b0db;
	--baa-cyan-dark: #0a7fa3;
	--baa-light: #e4f6fc;
	--baa-text: #1a1a1a;
	--baa-muted: #5b6573;
	--baa-line: #e9eef2;
	width: 100%;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

/*
 * Template agence 140009 : la bande de réassurance au-dessus (code_block-189) est remontée de 100px
 * (position:relative; top:-100px) et le bloc avis en dessous (div_block-192) compense par margin-top:-99px.
 * Le bloc annonces s'insère entre les deux : on reprend ce décalage pour ne rien chevaucher.
 */
#code_block-216-140009,
.ct-code-block:has(> .baa-annonces) {
	margin-top: -100px;
	margin-bottom: 100px;
}

.baa-annonces .baa-inner {
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 20px 40px;
}

.baa-annonces .baa-title {
	display: inline-block;
	margin: 0 0 40px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--baa-cyan);
	font-size: 36px;
	line-height: 1.2;
	font-weight: 600;
	color: #1e1e1e;
}

.baa-annonces .baa-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.baa-annonces .baa-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(23, 45, 82, 0.08);
	color: var(--baa-text);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.baa-annonces .baa-card:hover,
.baa-annonces .baa-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px rgba(23, 45, 82, 0.14);
}

.baa-annonces .baa-card__img {
	position: relative;
	aspect-ratio: 4 / 2.5;
	overflow: hidden;
	background: #e6ebf0;
}

.baa-annonces .baa-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.baa-annonces .baa-card__img--contain img {
	object-fit: contain;
	background: #fff;
}

.baa-annonces .baa-card:hover .baa-card__img img {
	transform: scale(1.06);
}

.baa-annonces .baa-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5b6573;
}

.baa-annonces .baa-card__placeholder svg {
	width: 44px;
	height: 44px;
}

.baa-annonces .baa-card__band {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px 22px;
	margin-bottom: -14px;
	background: var(--baa-light);
	color: var(--baa-cyan-dark);
	font-size: 15px;
	font-weight: 700;
}

.baa-annonces .baa-card__band svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.baa-annonces .baa-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 22px 22px;
	border-radius: 16px 16px 0 0;
	background: #fff;
}

.baa-annonces .baa-card__body p {
	margin: 0;
}

.baa-annonces .baa-card__surface {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--baa-text);
}

.baa-annonces .baa-card__pill {
	padding: 3px 12px;
	border-radius: 20px;
	background: var(--baa-light);
	color: var(--baa-cyan-dark);
	font-weight: 700;
	white-space: nowrap;
}

.baa-annonces .baa-card__city {
	margin-top: 10px !important;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--baa-line);
	font-size: 18px;
	font-weight: 700;
	color: var(--baa-navy);
}

.baa-annonces .baa-card__price {
	margin-top: 12px !important;
	font-size: 18px;
	font-weight: 700;
	color: var(--baa-navy);
}

/* Bouton vers le département */
.baa-annonces .baa-more {
	display: flex;
	justify-content: center;
	margin: 36px 0 0;
}

.baa-annonces .baa-more__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 30px;
	background: var(--baa-navy);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.baa-annonces .baa-more__btn:hover,
.baa-annonces .baa-more__btn:focus-visible {
	background: var(--baa-cyan);
	color: #fff;
}

/* Tablette */
@media (max-width: 1024px) {
	.baa-annonces .baa-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.baa-annonces .baa-title {
		font-size: 32px;
	}
}

/* Mobile : 2 colonnes, comme la maquette */
@media (max-width: 767px) {
	.baa-annonces .baa-inner {
		padding: 40px 16px 24px;
	}

	.baa-annonces .baa-title {
		margin-bottom: 24px;
		font-size: 28px;
		border-bottom-width: 1px;
	}

	.baa-annonces .baa-grid {
		gap: 14px;
	}

	.baa-annonces .baa-card {
		border-radius: 16px;
	}

	.baa-annonces .baa-card__band {
		padding: 8px 12px 18px;
		font-size: 13px;
	}

	.baa-annonces .baa-card__body {
		padding: 12px 12px 14px;
		border-radius: 12px 12px 0 0;
	}

	.baa-annonces .baa-card__surface {
		gap: 4px 6px;
		font-size: 13px;
	}

	.baa-annonces .baa-card__pill {
		padding: 2px 8px;
	}

	.baa-annonces .baa-card__city,
	.baa-annonces .baa-card__price {
		font-size: 14px;
	}
}

/* Carte isolée (sliders, listes des pages) : le wrapper remplace .baa-annonces du bloc agence. */
.baa-annonces--card {
	display: flex;
	width: 100%;
}

.baa-annonces--card .baa-card {
	width: 100%;
}
