/* ====================================
   Section Derniers Chiens Enregistrés
   ==================================== */

.section-derniers-chiens {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .section-derniers-chiens {
    background-color: #1a1d21;
}

.underline-chiens {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #4a90e2);
    border-radius: 2px;
}

/* --- Card --- */
.dog-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

[data-bs-theme="dark"] .dog-card {
    background: #2b2f36;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .dog-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* --- Badge Vérifié --- */
.dog-verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #0066cc, #4a90e2);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

/* --- Badge Sexe --- */
.dog-sex-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dog-sex-male {
    background: #1a73e8;
    color: #ffffff;
}

.dog-sex-female {
    background: #e91e8c;
    color: #ffffff;
}

/* --- Image --- */
.dog-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #e9ecef;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .dog-image-wrapper {
    background: #3a3f47;
}

.dog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dog-card:hover .dog-image {
    transform: scale(1.07);
}

/* --- Overlay hover --- */
.dog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 102, 204, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dog-card:hover .dog-overlay {
    opacity: 1;
}

.dog-overlay i {
    color: #ffffff;
    font-size: 2.4rem;
}

/* --- Infos --- */
.dog-info {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-grow: 1;
}

.dog-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1d21;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.3s ease;
}

.dog-card:hover .dog-name {
    color: #0066cc;
}

[data-bs-theme="dark"] .dog-name {
    color: #e9ecef;
}

[data-bs-theme="dark"] .dog-card:hover .dog-name {
    color: #4a90e2;
}

.dog-breed {
    font-size: 0.78rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

[data-bs-theme="dark"] .dog-breed {
    color: #9aa0a8;
}

/* --- Badge couleur --- */
.dog-color-badge {
    display: inline-flex;
    align-items: center;
    background: #f0f4ff;
    color: #0066cc;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 0.3rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-bs-theme="dark"] .dog-color-badge {
    background: #1e3a5f;
    color: #4a90e2;
}

/* --- Mobile --- */
@media (max-width: 575px) {
    .dog-card {
        border-radius: 12px;
    }

    .dog-image-wrapper {
        padding-top: 100%;
    }

    .title-index{
        font-size: 0.9rem;
    }

    .prime-title-index{
        font-size: 1.3rem;
    }

    .dog-info {
        padding: 0.65rem 0.6rem 0.75rem;
    }

    .dog-name {
        font-size: 0.82rem;
    }

    .dog-breed {
        font-size: 0.7rem;
    }

    .dog-verified-badge {
        font-size: 0.62rem;
        padding: 3px 7px;
    }

    .dog-sex-badge {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .dog-color-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .dog-overlay i {
        font-size: 1.8rem;
    }
}