/* 3.1.340 — Fiches chiens (page-fiches-chiens.php, inc/fiches-chiens.php).
   Maquette validée par Alex. Préfixe .ucfas-fc ; quelques !important pour
   passer devant les règles génériques de .content-card (p, img). */

.ucfas-fc-wrap.content-card { padding: 1.5rem !important; }
.ucfas-fc { color: #1E293B; }
.ucfas-fc p { margin: 0; text-align: left !important; }
.ucfas-fc img { box-shadow: none !important; }
.ucfas-fc a { text-decoration: none; }

.ucfas-fc-glass {
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ucfas-fc-crumb { font-size: 12.5px; color: #64748b !important; margin-bottom: 14px !important; }
.ucfas-fc-crumb a { color: #64748b; }
.ucfas-fc-crumb a:hover { color: #F60B51; }
.ucfas-fc-crumb strong { color: #F60B51; font-size: inherit; font-weight: 700; }

/* En-tête */
.ucfas-fc-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 24px; }
.ucfas-fc-photo, .ucfas-fc-card-photo {
	border-radius: 18px; aspect-ratio: 1; overflow: hidden;
	background: linear-gradient(135deg, #cbd5e1, #94a3b8);
	display: flex; align-items: center; justify-content: center;
}
.ucfas-fc-photo img, .ucfas-fc-card-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; display: block; }
.ucfas-fc-photo svg, .ucfas-fc-card-photo svg { width: 42%; height: 42%; fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ucfas-fc-race { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #F60B51 !important; }
.ucfas-fc .ucfas-fc-name { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; font-size: 38px; line-height: 1.15; margin: 4px 0 6px; color: #1E293B; }
.ucfas-fc-sub { color: #64748b !important; font-size: 14px; margin-bottom: 16px !important; }
.ucfas-fc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px !important; }
.ucfas-fc-b { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; color: #1E293B; }
.ucfas-fc-b.is-accent { background: #F60B51; color: #fff; border-color: transparent; }
.ucfas-fc-b.is-green { background: #dcfce7; color: #166534; border-color: transparent; }
.ucfas-fc-id { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ucfas-fc-kv { background: rgba(255, 255, 255, 0.75); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ucfas-fc-kv span, .ucfas-fc-k { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.ucfas-fc-kv strong { display: block; font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }

/* Chiffres clés */
.ucfas-fc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 6px; }
.ucfas-fc-stat { padding: 16px 18px; }
.ucfas-fc-stat strong { display: block; font-size: 26px; line-height: 1.2; color: #F60B51; }
.ucfas-fc-stat span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

/* Palmarès / tests */
.ucfas-fc-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #64748b !important; margin: 24px 0 12px !important; }
.ucfas-fc-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.ucfas-fc-list { padding: 6px 22px; }
.ucfas-fc-ev { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.07); }
.ucfas-fc-ev:last-child { border-bottom: none; }
.ucfas-fc-medal { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.ucfas-fc-medal sup { font-size: 9px; }
.ucfas-fc-medal.m1 { background: linear-gradient(135deg, #f5c542, #d4a017); }
.ucfas-fc-medal.m2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.ucfas-fc-medal.m3 { background: linear-gradient(135deg, #e0a370, #b87333); }
.ucfas-fc-medal.m0 { background: #f1f5f9; color: #94a3b8; }
.ucfas-fc-ev-tx { display: flex; flex-direction: column; min-width: 0; }
.ucfas-fc-ev-tx strong { font-size: 14px; }
.ucfas-fc-ev-tx span { font-size: 12px; color: #64748b; margin-top: 2px; }
.ucfas-fc-q { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(246, 11, 81, 0.08); color: #F60B51; white-space: nowrap; }
.ucfas-fc-box { padding: 18px 20px; margin-bottom: 16px; }
.ucfas-fc-tcn { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ucfas-fc-ring { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ucfas-fc-ring span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.ucfas-fc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.07); font-size: 13px; }
.ucfas-fc-row:last-child { border-bottom: none; }
.ucfas-fc-row span { color: #94a3b8; font-size: 12px; }
.ucfas-fc-row strong { text-align: right; }
.ucfas-fc p.ucfas-fc-note { font-size: 11.5px; color: #94a3b8 !important; margin-top: 22px !important; text-align: center !important; }
.ucfas-fc-empty { color: #64748b !important; padding: 12px 0; }

/* Liste des fiches */
.ucfas-fc-search { display: flex; gap: 8px; margin-bottom: 18px; }
.ucfas-fc-search input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font: inherit; }
.ucfas-fc-search button { padding: 10px 18px; border-radius: 999px; border: none; background: #778ead; color: #fff; font-weight: 700; cursor: pointer; }
.ucfas-fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ucfas-fc-card {
	display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border-radius: 20px; color: #1E293B;
	background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ucfas-fc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); }
.ucfas-fc-card-photo { margin-bottom: 8px; }
.ucfas-fc-card-name { font-weight: 700; font-size: 14.5px; }
.ucfas-fc-card:hover .ucfas-fc-card-name { color: #F60B51; }
.ucfas-fc-card-meta { font-size: 12px; color: #64748b; }

@media (max-width: 781px) {
	.ucfas-fc-wrap.content-card { padding: 1rem !important; }
	.ucfas-fc-hero { grid-template-columns: 1fr; padding: 16px; }
	.ucfas-fc-photo { aspect-ratio: 16 / 10; }
	.ucfas-fc .ucfas-fc-name { font-size: 30px; }
	.ucfas-fc-id { grid-template-columns: 1fr 1fr; }
	.ucfas-fc-stats { grid-template-columns: 1fr 1fr; }
	.ucfas-fc-cols { grid-template-columns: 1fr; }
	.ucfas-fc-list { padding: 4px 16px; }
	.ucfas-fc-ev { grid-template-columns: 44px 1fr; }
	.ucfas-fc-ev .ucfas-fc-q { grid-column: 2; justify-self: start; }
	.ucfas-fc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
