/* ============================================================
   SPA Animaux — liste animaux filtrée (shortcodes [spa-chiens/chats/nac/animaux])
   ============================================================ */

.animal-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
    transition: .3s all ease;
    margin-bottom: 30px;
}
.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

/* === Photo (wrapper pour badge urgence) === */
.animal-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
}
.animal-card-img-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.animal-card:hover .animal-card-img-wrap img { transform: scale(1.04); }
.animal-card-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #ccc;
}

/* === Badge urgence — coin supérieur gauche === */
.animal-urgence-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: none;
}
   .animal-urgence-sos { background: #dc3545; }

/* === Corps de la carte === */
.animal-card-body {
    padding: 14px 16px 16px;
}
.animal-card-body h5 {
    font-weight: 700;
    margin-bottom: 0;
    color: #000;
    font-size: 1rem;
}

/* Badge statut — fond pâle + texte coloré pour lisibilité maximale */
.animal-statut-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    margin-left: 8px;
}
.animal-statut-dispo   { background: #e8f5e9; color: #2e7d32; }
.animal-statut-encours { background: #fff3e0; color: #e65100; }

/* === Bloc infos + compatibilités (deux colonnes) === */
.animal-info-col .animal-meta {
    font-size: .82rem;
    color: #868e96;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Colonne compatibilités */
.animal-compat-col {
    border-left: 1px solid #f0f0f0;
    padding-left: 10px;
}
.animal-compat-title {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #bbb;
    margin: 0 0 6px;
}
.compat-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}
.compat-row i { width: 14px; text-align: center; }
.compat-row.compat-ok    { color: #2e7d32; }
.compat-row.compat-nok   { color: #c62828; }
.compat-row.compat-maybe { color: #f57f17; }

/* Compteur de résultats */
.spa-compteur {
    font-size: .88rem;
    color: #666;
    margin-bottom: 18px;
    font-style: italic;
}

/* Bouton CTA */
.animal-btn-more {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 7px 12px;
    border: 1.5px solid var(--color-primary, #52bfdc);
    border-radius: 4px;
    color: var(--color-primary, #52bfdc);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.animal-btn-more:hover {
    background: var(--color-primary, #52bfdc);
    color: #fff;
    text-decoration: none;
}

/* Sentinel infinite scroll */
.spa-animaux-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}
