/* DragonflyCats – Fiche santé */
.dfcs-raised {
	position: relative;
	z-index: 60 !important;
	overflow: visible !important;
}
.dfcs {
	--dfcs-gold: #ab8c52;
	--dfcs-gold-soft: rgba(171, 140, 82, .35);
	--dfcs-bg: #0d0d0d;
	--dfcs-line: rgba(255, 255, 255, .1);
	--dfcs-text: #fff;
	--dfcs-muted: rgba(255, 255, 255, .62);
	position: relative;
	display: inline-block;
	margin: 12px 0 4px;
	font-family: "Work Sans", sans-serif;
}

.dfcs-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	border: 1px solid var(--dfcs-gold);
	border-radius: 999px;
	background: transparent;
	color: var(--dfcs-gold);
	font: 500 15px/1 "Work Sans", sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.dfcs-toggle:hover,
.dfcs-toggle[aria-expanded="true"] {
	background: var(--dfcs-gold);
	color: #000;
}
.dfcs-toggle:focus-visible {
	outline: 2px solid var(--dfcs-gold);
	outline-offset: 3px;
}
.dfcs-icon { width: 20px; height: 20px; flex: none; }

.dfcs-panel {
	position: absolute;
	z-index: 999;
	top: calc(100% + 12px);
	left: 0;
	width: min(440px, 92vw);
	max-height: min(70vh, 640px);
	overflow-y: auto;
	padding: 26px 26px 20px;
	border: 1px solid var(--dfcs-gold-soft);
	border-radius: 14px;
	background: var(--dfcs-bg);
	color: var(--dfcs-text);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
	text-align: left;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}
.dfcs-panel.is-open { opacity: 1; transform: none; }
.dfcs-panel[hidden] { display: none; }

.dfcs-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	color: var(--dfcs-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.dfcs-close:hover { color: var(--dfcs-gold); }

.dfcs-name {
	margin: 0 36px 4px 0;
	font-family: "Abril Fatface", serif;
	font-size: 28px;
	line-height: 1.15;
	color: var(--dfcs-gold);
}
.dfcs-badge {
	display: inline-block;
	margin: 4px 0 6px;
	padding: 3px 10px;
	border: 1px solid var(--dfcs-gold-soft);
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--dfcs-gold);
}
.dfcs-heading,
.dfcs-subheading {
	margin: 18px 0 6px;
	font-family: "Yesteryear", cursive;
	font-size: 24px;
	line-height: 1.2;
	color: var(--dfcs-gold);
}
.dfcs-subheading { font-size: 20px; margin-top: 14px; }

.dfcs-list { list-style: none; margin: 0; padding: 0; }
.dfcs-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--dfcs-line);
	font-size: 15px;
	line-height: 1.4;
	margin: 0;
}
.dfcs-list li:last-child { border-bottom: 0; }
.dfcs-label { color: var(--dfcs-muted); }
.dfcs-value { color: var(--dfcs-text); font-weight: 600; text-align: right; }

.dfcs-more { margin-top: 16px; border-top: 1px solid var(--dfcs-gold-soft); }
.dfcs-more summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0 4px;
	font-weight: 600;
	font-size: 15px;
	color: var(--dfcs-text);
	cursor: pointer;
	list-style: none;
}
.dfcs-more summary::-webkit-details-marker { display: none; }
.dfcs-more summary::after {
	content: "+";
	font-size: 22px;
	color: var(--dfcs-gold);
	transition: transform .2s;
}
.dfcs-more[open] summary::after { transform: rotate(45deg); }

.dfcs-note {
	margin: 18px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--dfcs-muted);
	font-style: italic;
}

/* Mobile : la fiche s'ouvre en panneau centré */
@media (max-width: 600px) {
	.dfcs-panel {
		position: fixed;
		top: auto;
		left: 50%;
		bottom: 16px;
		width: calc(100vw - 32px);
		max-height: 80vh;
		transform: translate(-50%, 12px);
	}
	.dfcs-panel.is-open { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.dfcs-panel, .dfcs-toggle, .dfcs-more summary::after { transition: none; }
}

/* Pages Mâles / Femelles : bouton sous le bloc de l'animal */
.dfcs-adult-wrap { margin: 4px 0 18px; }
.dfcs-adult-wrap .dfcs { margin-top: 0; }
