/* ==========================================================================
   Petites Annonces — Frontend
   ========================================================================== */

/* --------------------------------------------------------------------------
   Filtres catégories
   -------------------------------------------------------------------------- */
.mn-ann-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
}
.mn-ann-filter {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	border: 2px solid #D5D0C8;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	color: #142C39;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mn-ann-filter:hover {
	border-color: #1D6A45;
	color: #1D6A45;
}
.mn-ann-filter[aria-current="true"] {
	background: #1D6A45;
	border-color: #1D6A45;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   Grille des annonces
   -------------------------------------------------------------------------- */
.mn-ann-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	align-items: start;
}

/* --------------------------------------------------------------------------
   Carte annonce
   -------------------------------------------------------------------------- */
.mn-ann-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #E6E0D5;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(20, 44, 57, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.mn-ann-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(20, 44, 57, .13);
}
.mn-ann-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none !important;
	color: inherit;
}
.mn-ann-card__img {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #1B3A4B 0%, #142C39 60%, #1D6A45 100%);
	overflow: hidden;
	flex: 0 0 auto;
}
.mn-ann-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.mn-ann-card:hover .mn-ann-card__img img {
	transform: scale(1.04);
}
.mn-ann-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 7px;
}
.mn-ann-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.mn-ann-card__cat {
	display: inline-block;
	padding: 3px 10px;
	background: #EAF4EE;
	color: #1D6A45;
	font-size: 11px;
	font-weight: 800;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.mn-ann-card__date {
	font-size: 13px;
	color: #7A8591;
}
.mn-ann-card__title {
	font-size: 17px;
	font-weight: 800;
	color: #142C39;
	margin: 0;
	line-height: 1.35;
}
.mn-ann-card__excerpt {
	font-size: 14px;
	color: #4a5159;
	line-height: 1.55;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* --------------------------------------------------------------------------
   Message vide
   -------------------------------------------------------------------------- */
.mn-ann-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 24px;
	color: #7A8591;
	font-style: italic;
	font-size: 16px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.mn-ann-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.mn-ann-pagination a,
.mn-ann-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 2px solid #D5D0C8;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #142C39;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mn-ann-pagination a:hover,
.mn-ann-pagination .current {
	background: #1D6A45;
	border-color: #1D6A45;
	color: #fff !important;
}
.mn-ann-pagination .dots {
	border-color: transparent;
	color: #7A8591;
	cursor: default;
}

/* --------------------------------------------------------------------------
   Page unique — annonce
   -------------------------------------------------------------------------- */
.mn-ann-single__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	flex-wrap: wrap;
}
.mn-ann-single__cover {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	margin: 0 0 30px;
	box-shadow: 0 8px 30px rgba(20, 44, 57, .12);
}
.mn-ann-single__content {
	font-size: 16px;
	line-height: 1.7;
	color: #2b3742;
	margin: 0 0 12px;
}

/* Galerie de la page single */
.mn-ann-single__gallery {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 2px solid #E6E0D5;
}
.mn-ann-single__gallery > h2 {
	font-size: 20px;
	font-weight: 800;
	color: #142C39;
	margin: 0 0 16px;
}
.mn-ann-gal {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}
.mn-ann-gal a {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	text-decoration: none;
}
.mn-ann-gal img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s ease;
}
.mn-ann-gal a:hover img {
	transform: scale(1.06);
}
.mn-ann-back {
	margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
	.mn-ann-grid {
		grid-template-columns: 1fr;
	}
	.mn-ann-gal {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mn-ann-card,
	.mn-ann-card__img img,
	.mn-ann-filter,
	.mn-ann-gal img {
		transition: none !important;
		transform: none !important;
	}
}
