/**
 * Pages Fiches chiens / Fiches chats
 */

.mc-fiches-page .back-to-shop {
	display: none;
}

.mc-fiches-page #main-content {
	background: #fff;
	padding-bottom: 3rem;
}

.mc-fiches-page .entry-content {
	max-width: none;
	padding: 0;
	margin: 0;
}

.mc-fiches {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem 1rem 1rem;
}

.mc-fiches__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.mc-fiches-card {
	margin: 0;
}

.mc-fiches-card__inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mc-fiches-card__inner:hover {
	box-shadow: 0 8px 28px rgba(34, 116, 3, 0.12);
	transform: translateY(-2px);
}

.mc-fiches-card__media {
	display: block;
	line-height: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f4f9ee;
}

.mc-fiches-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.mc-fiches-card__inner:hover .mc-fiches-card__media img {
	transform: scale(1.03);
}

.mc-fiches-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8f5e0 0%, #d4ebc8 100%);
}

.mc-fiches-card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mc-fiches-card__heading {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.mc-fiches-card__heading a {
	color: #222;
	text-decoration: none;
}

.mc-fiches-card__heading a:hover {
	color: #227403;
}

.mc-fiches-card__excerpt {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	color: #555;
	line-height: 1.55;
	flex: 1;
}

.mc-fiches-card__more {
	margin: 0;
}

.mc-fiches-card__link {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	font-size: 0.9rem;
	color: #227403 !important;
	text-decoration: none !important;
}

.mc-fiches-card__link:hover {
	text-decoration: underline !important;
}

.mc-fiches-card__link::after {
	content: " →";
}

.mc-fiches__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
	font-size: 1.05rem;
}

/* Pagination */
.mc-fiches-pagination {
	margin-top: 2.5rem;
	text-align: center;
}

.mc-fiches-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	margin: 0 0.2rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	border: 1px solid #ddd;
	color: #333 !important;
	text-decoration: none !important;
	font-weight: 600;
}

.mc-fiches-pagination .page-numbers.current,
.mc-fiches-pagination .page-numbers:hover {
	background: #227403;
	border-color: #227403;
	color: #fff !important;
}

.mc-fiches-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.mc-fiches-pagination li {
	margin: 0;
}

@media (max-width: 991px) {
	.mc-fiches__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.mc-fiches__grid {
		grid-template-columns: 1fr;
	}

	.mc-fiches {
		padding-top: 1.5rem;
	}
}
