/* Artemis — Chatons | La Forêt d'Artémis */
:root {
	--ac-vert:       #2d4a2d;
	--ac-vert-dark:  #1e3520;
	--ac-creme:      #f7f4ef;
	--ac-blanc:      #ffffff;
	--ac-texte:      #2a2a2a;
	--ac-dispo:      #3a6b3a;
	--ac-reserve:    #b06820;
	--ac-parti:      #888888;
	--ac-radius:     10px;
	--ac-shadow:     0 4px 20px rgba(45, 74, 45, .12);
}

/* ── Grille ─────────────────────────────────────── */
.ac-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 28px;
	margin: 32px 0;
}

/* ── Card ────────────────────────────────────────── */
.ac-card {
	background: var(--ac-blanc);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ac-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 36px rgba(45, 74, 45, .2);
}

/* Photo */
.ac-card-photo {
	position: relative;
	height: 280px;
	overflow: hidden;
	background: var(--ac-creme);
}
.ac-card-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .4s ease;
	display: block;
}
.ac-card:hover .ac-card-photo img { transform: scale(1.06); }
.ac-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 52px;
	height: 100%;
}

/* Badge statut */
.ac-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ac-blanc);
}
.ac-badge-disponible { background: var(--ac-dispo); }
.ac-badge-reserve    { background: var(--ac-reserve); }
.ac-badge-parti      { background: var(--ac-parti); }

/* Corps */
.ac-card-body {
	padding: 16px 18px 8px;
	flex: 1;
}
.ac-nom {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ac-vert);
	margin: 0 0 10px;
}
.ac-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.ac-tag,
.ac-tag-sexe {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--ac-creme);
	color: var(--ac-texte);
}
.ac-tag-sexe.ac-sexe-femelle { color: #9b4d8c; background: #f7edf5; }
.ac-tag-sexe.ac-sexe-male    { color: #4d7a9b; background: #edf3f7; }
.ac-detail {
	font-size: 13px;
	color: #666;
	margin: 3px 0;
}
.ac-portee { font-style: italic; }
.ac-prix {
	font-size: 16px;
	font-weight: 700;
	color: var(--ac-vert);
	margin: 8px 0 0;
}

/* Footer */
.ac-card-footer {
	padding: 10px 18px 16px;
	display: flex;
	gap: 10px;
}
.ac-btn-contact,
.ac-btn-galerie {
	flex: 1;
	text-align: center;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s;
	text-decoration: none;
	border: 2px solid var(--ac-vert);
	line-height: 1.2;
}
.ac-btn-contact {
	background: var(--ac-vert);
	color: var(--ac-blanc);
}
.ac-btn-contact:hover { background: var(--ac-vert-dark); color: var(--ac-blanc); }
.ac-btn-galerie {
	background: transparent;
	color: var(--ac-vert);
}
.ac-btn-galerie:hover { background: var(--ac-vert); color: var(--ac-blanc); }

.ac-empty {
	text-align: center;
	color: #999;
	font-style: italic;
	padding: 48px 0;
}

/* ── Modal ───────────────────────────────────────── */
.ac-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.ac-modal.ac-open { display: flex; }
.ac-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .68);
	cursor: pointer;
}
.ac-modal-box {
	position: relative;
	background: var(--ac-blanc);
	border-radius: 14px;
	max-width: 840px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
	z-index: 1;
}
.ac-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: var(--ac-vert);
	color: var(--ac-blanc);
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 16px;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ac-modal-inner {
	display: flex;
	flex-direction: row;
}
.ac-modal-slider {
	flex: 0 0 42%;
	position: relative;
	background: #0a0a0a;
	border-radius: 14px 0 0 14px;
	overflow: hidden;
	min-height: 480px;
}
.ac-slider-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.ac-slider-prev,
.ac-slider-next {
	position: absolute;
	bottom: 14px;
	top: auto;
	transform: none;
	background: rgba(45, 74, 45, .85);
	color: var(--ac-blanc);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.ac-slider-prev:hover,
.ac-slider-next:hover { background: var(--ac-vert-dark); }
.ac-slider-prev { left: calc(50% - 44px); }
.ac-slider-next { left: calc(50% + 8px); }
.ac-modal-info {
	flex: 1;
	padding: 36px 28px 28px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.ac-modal-nom {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2.4rem;
	color: var(--ac-vert);
	margin: 0 0 14px;
}
.ac-modal-desc {
	font-size: 14px;
	line-height: 1.75;
	color: #555;
	flex: 1;
	margin: 0 0 20px;
}
.ac-modal-lien { align-self: flex-start; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
	.ac-grille { grid-template-columns: 1fr; gap: 14px; }
	.ac-modal-inner { flex-direction: column; }
	.ac-modal-slider {
		flex: none;
		min-height: 260px;
		border-radius: 14px 14px 0 0;
	}
	.ac-slider-prev { left: calc(50% - 44px); }
	.ac-slider-next { left: calc(50% + 8px); }
	.ac-modal-nom { font-size: 1.6rem; }
}
