/* Artemis — Reproducteurs | La Forêt d'Artémis */
:root {
	--ar-vert:      #2d4a2d;
	--ar-vert-dark: #1e3520;
	--ar-creme:     #f7f4ef;
	--ar-blanc:     #ffffff;
	--ar-texte:     #2a2a2a;
	--ar-or:        #8c7240;
	--ar-radius:    10px;
	--ar-shadow:    0 4px 20px rgba(45, 74, 45, .12);
}

/* ── Titre de section ────────────────────────────── */
.ar-section-titre {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--ar-vert);
	text-align: center;
	margin: 48px 0 24px;
	position: relative;
}
.ar-section-titre::after {
	content: '';
	display: block;
	width: 50px;
	height: 2px;
	background: var(--ar-vert);
	opacity: .35;
	margin: 10px auto 0;
}

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

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

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

/* Badge sexe */
.ar-badge-sexe {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--ar-blanc);
}
.ar-badge-sexe.ar-sexe-femelle { background: #9b4d8c; }
.ar-badge-sexe.ar-sexe-male    { background: #4d7a9b; }

/* Corps */
.ar-card-body {
	padding: 16px 18px 8px;
	flex: 1;
}
.ar-nom {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ar-vert);
	margin: 0 0 4px;
}
.ar-race   { font-size: 13px; color: #999; margin: 0 0 4px; }
.ar-detail { font-size: 13px; color: #666; margin: 2px 0; }
.ar-titres {
	font-size: 12px;
	color: var(--ar-or);
	font-style: italic;
	margin: 5px 0 0;
}
.ar-sqr {
	font-size: 12px;
	color: #555;
	margin: 3px 0 0;
	font-family: monospace;
}

/* Footer */
.ar-card-footer { padding: 10px 18px 16px; }
.ar-btn-voir {
	width: 100%;
	padding: 9px 16px;
	background: var(--ar-vert);
	color: var(--ar-blanc);
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s;
}
.ar-btn-voir:hover { background: var(--ar-vert-dark); }

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

/* ── Modal ───────────────────────────────────────── */
.ar-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.ar-modal.ar-open { display: flex; }
.ar-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	cursor: pointer;
}
.ar-modal-box {
	position: relative;
	background: var(--ar-blanc);
	border-radius: 14px;
	max-width: 780px;
	width: 95%;
	max-height: 92vh;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
	z-index: 1;
	display: flex;
	flex-direction: row;
}
.ar-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: var(--ar-vert);
	color: var(--ar-blanc);
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 16px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Slider portrait */
.ar-modal-slider {
	position: relative;
	flex: 0 0 42%;
	background: #0a0a0a;
	border-radius: 14px 0 0 14px;
	overflow: hidden;
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ar-slider-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.ar-slider-prev,
.ar-slider-next {
	position: absolute;
	bottom: 14px;
	background: rgba(45, 74, 45, .85);
	color: var(--ar-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;
	top: auto;
	transform: none;
}
.ar-slider-prev:hover,
.ar-slider-next:hover { background: var(--ar-vert-dark); }
.ar-slider-prev { left: calc(50% - 44px); }
.ar-slider-next { left: calc(50% + 8px); }

/* Infos */
.ar-modal-info {
	flex: 1;
	padding: 36px 28px 28px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.ar-modal-nom {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2.4rem;
	color: var(--ar-vert);
	margin: 0 0 12px;
}
.ar-modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.ar-modal-tags span {
	font-size: 13px;
	padding: 3px 12px;
	border-radius: 20px;
	background: var(--ar-creme);
	color: var(--ar-texte);
}
.ar-modal-tags .ar-t-titres {
	color: var(--ar-or);
	font-style: italic;
	background: #faf7f0;
}
.ar-modal-tags .ar-t-sqr {
	font-family: monospace;
	font-size: 12px;
}
.ar-modal-desc {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
	margin: 0 0 20px;
}

/* Pedigree */
.ar-modal-pedigree-wrap { display: none; }
.ar-ped-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--ar-vert);
	border-top: 1px solid #e8e4dc;
	padding-top: 18px;
	margin: 0 0 10px;
}
.ar-modal-pedigree {
	width: 100%;
	border-radius: 8px;
	border: 1px solid #ddd;
}

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