/* ========================================
   PAGE RACES - ÉLEVAGE DE BEL AIR
======================================== */


.races-label-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem; 
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem; 
}


/* Section Introduction */
.races-intro-section {
    padding: 5rem 0;
    background: white;
}

.races-intro-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.races-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.races-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Section Grille des Races */
.races-grid-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Card Race Détaillée */
.race-card-detail {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.race-card-detail:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(101, 193, 120, 0.25);
}

/* Image de la race */
.race-card-detail-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.race-card-detail-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.race-card-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.race-card-detail:hover .race-card-detail-image img {
    transform: scale(1.15) rotate(2deg);
}

/* Badge position */
.race-position-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), #7ed492);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Overlay hover  */
.race-card-detail:hover .race-card-detail-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-discover-race {
    padding: 1.2rem 2.5rem;
    
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(101, 193, 120, 0.4);
}

.race-card-detail:hover .btn-discover-race {
    transform: translateY(0);
}

.btn-discover-race:hover {
    background: #7ed492;
    color: white;
    box-shadow: 0 15px 40px rgba(101, 193, 120, 0.5);
}

/* Corps de la carte */
.race-card-detail-body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Titre de la race */
.race-card-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.race-card-detail-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.race-card-detail-title a:hover {
    color: var(--primary-color);
}

/* Description */
.race-card-detail-description {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Aperçu du contenu */
.race-card-detail-preview {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    flex: 1;
}

/* Séparateur */
.race-card-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-bottom: 2rem;
}

/* Actions */
.race-card-detail-actions {
    display: flex;
    gap: 1rem;
}

.btn-race-detail-primary,
.btn-race-detail-secondary {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-race-detail-primary {
    background: linear-gradient(135deg, var(--primary-color), #7ed492);
    color: white;
    border: none;
}

.btn-race-detail-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(101, 193, 120, 0.4);
    color: white;
}

.btn-race-detail-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-race-detail-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Message aucune race */
.no-races-message {
    padding: 4rem 2rem;
}

.no-races-message h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Section CTA Contact */
.races-cta-section {
    padding: 5rem 0;
    background: white;
}

.races-cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2416 100%);
    padding: 5rem 3rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.races-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(101, 193, 120, 0.2) 0%, transparent 70%);
    animation: pulse-cta 4s ease-in-out infinite;
}

@keyframes pulse-cta {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.races-cta-content {
    position: relative;
    z-index: 2;
}

.races-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.races-cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-races-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(101, 193, 120, 0.4);
    transition: all 0.4s ease;
}

.btn-races-cta:hover {
    background: #7ed492;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(101, 193, 120, 0.5);
    color: white;
}

.btn-races-cta i {
    transition: transform 0.3s ease;
}

.btn-races-cta:hover i {
    transform: translateX(5px);
}

/* Section Chiots Disponibles */
.breed-puppies-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

/* Card Chiot */
.breed-puppy-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    height: 100%;
    border: 3px solid #e8e8e8;
}

.breed-puppy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(101, 193, 120, 0.35);
    border-color: var(--primary-color);
}

/* Image */
.breed-puppy-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.breed-puppy-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.breed-puppy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.breed-puppy-card:hover .breed-puppy-image img {
    transform: scale(1.1);
}

/* Badge Genre */
.breed-puppy-gender {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.breed-puppy-gender.male {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.breed-puppy-gender.female {
    background: linear-gradient(135deg, #ec407a, #f06292);
}

/* Corps de la card */
.breed-puppy-body {
    padding: 1.5rem;
    text-align: center;
}

.breed-puppy-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.breed-puppy-name a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breed-puppy-name a:hover {
    color: var(--primary-color);
}

.breed-puppy-type {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.breed-puppy-type i {
    font-size: 0.8rem;
}

/* Bouton chiot (même style) */
.btn-breed-puppy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #384738;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-breed-puppy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 62, 40, 0.4);
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-breed-puppy i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-breed-puppy:hover i {
    transform: translateX(3px);
}

/* Bouton voir tous les chiots */
.btn-see-all-breed-chiots {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #384738;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(101, 193, 120, 0.4);
    transition: all 0.4s ease;
    border: 3px solid var(--primary-color);
}

.btn-see-all-breed-chiots:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(101, 193, 120, 0.5);
    color: white;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-see-all-breed-chiots i {
    transition: transform 0.3s ease;
}

.btn-see-all-breed-chiots:hover i {
    transform: translateX(5px);
}

/* Responsive - IDENTIQUE aux reproducteurs */
@media (max-width: 767px) {
    /* FIX LARGEUR MOBILE CHIOTS */
    .breed-puppies-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .breed-puppies-section .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .breed-puppies-section .row > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .breed-puppy-card {
        margin-bottom: 25px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .breed-puppy-image {
        aspect-ratio: 1/1;
        border-radius: 16px 16px 0 0;
        width: 100% !important;
    }
    
    .breed-puppy-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    
    .breed-puppy-body {
        padding: 18px;
    }
    
    .breed-puppy-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .breed-puppy-type {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .breed-puppy-gender {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-breed-puppy {
        width: 100%;
        font-size: 0.8rem;
        padding: 9px 18px;
        justify-content: center;
    }
    
    .btn-see-all-breed-chiots {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.9rem 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .breed-puppies-section {
        padding: 2.5rem 0;
    }
    
    .breed-puppy-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .breed-puppies-section {
        padding: 2rem 0;
    }
    
    .breed-puppy-image {
        height: 240px;
    }
}

/* ========================================
   RESPONSIVE - PAGE NOS RACES
======================================== */

/* ========================================
   TABLETTES (< 992px)
======================================== */
@media (max-width: 991px) {
    
    .races-label-tag {
        font-size: 0.7rem;
        padding: 8px 18px;
    }
    
    /* Section Introduction */
    .races-intro-section {
        padding: 50px 0;
    }
    
    .races-intro-box {
        padding: 35px 28px;
    }
    
    .races-intro-title {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }
    
    .races-intro-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Grille des races */
    .races-grid-section {
        padding: 50px 0;
    }
    
    .race-card-detail-body {
        padding: 28px;
    }
    
    .race-card-detail-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }
    
    .race-card-detail-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Badge position */
    .race-position-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Boutons */
    .btn-discover-race {
        font-size: 0.9rem;
        padding: 11px 26px;
    }
    
    .btn-race-detail-primary,
    .btn-race-detail-secondary {
        font-size: 0.85rem;
        padding: 11px 22px;
    }
    
    /* CTA Section */
    .races-cta-section {
        padding: 50px 0;
    }
    
    .races-cta-box {
        padding: 45px 35px;
    }
    
    .races-cta-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .races-cta-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .btn-races-cta {
        font-size: 0.95rem;
        padding: 14px 36px;
    }
}

/* ========================================
   MOBILES (< 768px)
======================================== */
@media (max-width: 767px) {

    
    .races-label-tag {
        font-size: 0.65rem;
        padding: 0.35rem 1rem;
        margin-bottom: 12px;
    }
    
    /* Section Introduction */
    .races-intro-section {
        padding: 40px 0;
    }
    
    .races-intro-box {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .races-intro-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .races-intro-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Grille des races */
    .races-grid-section {
        padding: 40px 0;
    }
    
    .race-card-detail {
        margin-bottom: 25px;
    }
    
    .race-card-detail-image {
        border-radius: 16px 16px 0 0;
    }
    
    .race-card-detail-body {
        padding: 25px;
    }
    
    .race-card-detail-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .race-card-detail-title a {
        font-size: 1.4rem;
    }
    
    .race-card-detail-description {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    /* Badge position */
    .race-position-badge {
        font-size: 0.7rem;
        padding: 6px 11px;
        top: 12px;
        right: 12px;
    }
    
    /* Divider */
    .race-card-divider {
        margin: 18px 0;
    }
    
    /* Overlay toujours visible sur mobile */
    .race-card-detail-overlay {
        display: none !important;
    }
    
    .btn-discover-race {
        transform: translateY(0);
        font-size: 0.85rem;
        padding: 10px 22px;
    }
    
    /* Actions */
    .race-card-detail-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-race-detail-primary,
    .btn-race-detail-secondary {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 20px;
        justify-content: center;
    }
    
    /* Message aucune race */
    .no-races-message h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .no-races-message p {
        font-size: 0.9rem;
    }
    
    .no-races-message i {
        font-size: 2.5rem !important;
    }
    
    /* CTA Section */
    .races-cta-section {
        padding: 40px 0;
    }
    
    .races-cta-box {
        padding: 35px 28px;
        border-radius: 16px;
    }
    
    .races-cta-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
        line-height: 1.3;
    }
    
    .races-cta-text {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .btn-races-cta {
        font-size: 0.9rem;
        padding: 13px 32px;
    }

    /* FIX LARGEUR MOBILE - AJOUTEZ CECI */
    .breed-animals-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .breed-animals-section .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .breed-animals-section .row > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cartes animaux - FORCER 100% */
    .breed-animal-card {
        margin-bottom: 25px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .breed-animal-image {
        aspect-ratio: 1/1;
        border-radius: 16px 16px 0 0;
        width: 100% !important;
    }
    
    .breed-animal-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

/* ========================================
   PETITS MOBILES (< 576px)
======================================== */
@media (max-width: 575px) {
    
    .races-label-tag {
        font-size: 0.6rem;
        padding: 6px 14px;
        margin-bottom: 10px;
        letter-spacing: 1.2px;
    }
    
    /* Section Introduction */
    .races-intro-section {
        padding: 35px 0;
    }
    
    .races-intro-box {
        padding: 25px 20px;
        border-radius: 14px;
    }
    
    .races-intro-title {
        font-size: 1.4rem;
        margin-bottom: 14px;
        line-height: 1.3;
    }
    
    .races-intro-text {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    /* Grille des races */
    .races-grid-section {
        padding: 35px 0;
    }
    
    .race-card-detail {
        margin-bottom: 20px;
    }
    
    .race-card-detail-image {
        border-radius: 14px 14px 0 0;
    }
    
    .race-card-detail-body {
        padding: 22px;
    }
    
    .race-card-detail-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .race-card-detail-title a {
        font-size: 1.3rem;
    }
    
    .race-card-detail-description {
        font-size: 0.8rem;
        line-height: 1.7;
        margin-bottom: 14px;
    }
    
    /* Badge position */
    .race-position-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
        border-radius: 8px;
    }
    
    /* Divider */
    .race-card-divider {
        margin: 16px 0;
    }
    
    .btn-discover-race {
        font-size: 0.8rem;
        padding: 9px 20px;
    }
    
    .btn-discover-race i {
        font-size: 0.85rem;
    }
    
    /* Actions */
    .race-card-detail-actions {
        gap: 8px;
    }
    
    .btn-race-detail-primary,
    .btn-race-detail-secondary {
        width: 100%;
        font-size: 0.75rem;
        padding: 9px 18px;
        justify-content: center;
    }
    
    .btn-race-detail-primary i,
    .btn-race-detail-secondary i {
        font-size: 0.8rem;
    }
    
    /* Message aucune race */
    .no-races-message h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .no-races-message p {
        font-size: 0.85rem;
    }
    
    .no-races-message i {
        font-size: 2rem !important;
    }
    
    /* CTA Section */
    .races-cta-section {
        padding: 35px 0;
    }
    
    .races-cta-box {
        padding: 30px 24px;
        border-radius: 14px;
    }
    
    .races-cta-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .races-cta-text {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .btn-races-cta {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 12px 28px;
    }
    
    .btn-races-cta i {
        font-size: 0.9rem;
    }
}

/* ========================================
   TRÈS PETITS MOBILES (< 400px)
======================================== */
@media (max-width: 399px) {
    .races-label-tag {
        font-size: 0.55rem;
        padding: 5px 12px;
    }
    
    /* Section Introduction */
    .races-intro-section {
        padding: 30px 0;
    }
    
    .races-intro-box {
        padding: 22px 18px;
    }
    
    .races-intro-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .races-intro-text {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    /* Grille des races */
    .races-grid-section {
        padding: 30px 0;
    }
    
    .race-card-detail-body {
        padding: 20px;
    }
    
    .race-card-detail-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .race-card-detail-title a {
        font-size: 1.2rem;
    }
    
    .race-card-detail-description {
        font-size: 0.75rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    /* Badge position */
    .race-position-badge {
        font-size: 0.6rem;
        padding: 4px 9px;
    }
    
    .btn-discover-race {
        font-size: 0.75rem;
        padding: 8px 18px;
    }
    
    /* Actions */
    .btn-race-detail-primary,
    .btn-race-detail-secondary {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
    
    /* Message aucune race */
    .no-races-message h3 {
        font-size: 1.1rem;
    }
    
    .no-races-message p {
        font-size: 0.8rem;
    }
    
    .no-races-message i {
        font-size: 1.8rem !important;
    }
    
    /* CTA Section */
    .races-cta-section {
        padding: 30px 0;
    }
    
    .races-cta-box {
        padding: 25px 20px;
    }
    
    .races-cta-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .races-cta-text {
        font-size: 0.8rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .btn-races-cta {
        font-size: 0.8rem;
        padding: 11px 24px;
    }
}

/* ------------------------------------------------------------------------------------------------------ */


/* ========================================
   PAGES DETAILS DE RACES
======================================== */
/* Section Introduction */
.breed-intro-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.breed-intro-box {
    max-width: 1140px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 6px solid var(--primary-color);
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.breed-intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    white-space: pre-line;
}

/* Section Contenu Détaillé */
.breed-content-section {
    padding: 3rem 0;
    background: white;
}

.breed-content-block {
    max-width: 1140px;
    margin: 0 auto 2.5rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.breed-content-block:last-child {
    margin-bottom: 0;
}

.breed-content-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.breed-content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
    margin-top:-30px;
}

/* Style des liens dans le contenu */
.breed-content-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breed-content-text a:hover {
    color: #7ed492;
    text-decoration: underline;
}


/* Navigation Rapide */
.breed-nav-section {
    padding: 0.65rem 0;
    background: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 65px;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.breed-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.breed-nav-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.breed-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(101, 193, 120, 0.4);
}

.breed-nav-btn i {
    font-size: 0.8rem;
}



/* Section Galerie Photos */
.breed-gallery-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

/* En-tête de section */
.breed-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breed-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.breed-section-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Items de la galerie */
.breed-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 3px solid white;
}

.breed-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(101, 193, 120, 0.3);
    border-color: var(--primary-color);
}




.breed-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.breed-gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay hover */
.breed-gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 62, 40, 0.85) 0%, rgba(101, 193, 120, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.breed-gallery-item:hover .breed-gallery-hover {
    opacity: 1;
}

.breed-gallery-hover i {
    font-size: 3rem;
    color: white;
    animation: zoomPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Section Reproducteurs */
.breed-animals-section {
    padding: 3rem 0;
    background: white;
}

/* Card Animal */
.breed-animal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    height: 100%;
    width:100%;
    border: 3px solid #f8f9fa;
}

.breed-animal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(101, 193, 120, 0.35);
    border-color: var(--primary-color);
}

/* Image */
.breed-animal-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

/* .breed-animal-image a {
    display: block;
    width: 100%;
    height: 100%;
} */

.breed-animal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.breed-animal-card:hover .breed-animal-image img {
    transform: scale(1.1);
}

/* Badge Genre */
.breed-animal-gender {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.breed-animal-gender.male {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.breed-animal-gender.female {
    background: linear-gradient(135deg, #ec407a, #f06292);
}

/* Corps de la card */
.breed-animal-body {
    padding: 1.5rem;
    text-align: center;
}

.breed-animal-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.breed-animal-name a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breed-animal-name a:hover {
    color: var(--primary-color);
}

.breed-animal-type {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.breed-animal-type i {
    font-size: 0.8rem;
}

/* Bouton */
.btn-breed-animal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #384738;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-breed-animal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 62, 40, 0.4);
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-breed-animal i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-breed-animal:hover i {
    transform: translateX(3px);
}

/* Offset de scroll pour les sections avec ancres */
#description,
#photos,
#reproducteurs,
#chiots {
    scroll-margin-top: 150px;
}


/* ========================================
   RESPONSIVE - PAGE RACE DÉTAILLÉE
======================================== */

/* ========================================
   TABLETTES (< 992px)
======================================== */

@media (max-width: 991px) {
    /* Ancres de navigation */
    #description,
    #photos,
    #reproducteurs,
    #chiots {
        scroll-margin-top: 170px;
    }
    
    /* Section Intro Description */
    .breed-intro-section {
        padding: 50px 0;
    }
    
    .breed-intro-box {
        padding: 35px 28px;
    }
    
    .breed-intro-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .breed-content-title {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .breed-content-text {
        font-size: 0.8rem;
        line-height: 1.8;
    }
    
    /* Navigation Rapide */
    .breed-nav-section {
        padding: 20px 0;
        top: 60px;
    }
    
    .breed-nav-buttons {
        gap: 12px;
    }
    
    .breed-nav-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .breed-nav-btn i {
        font-size: 0.7rem;
    }

    /* Section Reproducteurs */
    .breed-animals-section {
        padding: 60px 0;
    }
    
    /* Header section (fusionné - plus de doublons) */
    .breed-section-header {
        margin-bottom: 35px;
    }
    
    .breed-section-title {
        font-size: 1.9rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .breed-section-subtitle {
        font-size: 0.95rem;
        color: #777;
        margin: 0;
    }
    
    /* Cartes animaux */
    .breed-animal-image {
        aspect-ratio: 4/5;
    }
    
    .breed-animal-body {
        padding: 20px;
    }
    
    .breed-animal-name {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .breed-animal-name a {
        font-size: 1.3rem;
    }
    
    .breed-animal-type {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    
    /* Badge genre */
    .breed-animal-gender {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    /* Bouton */
    .btn-breed-animal {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .btn-breed-animal i {
        font-size: 0.8rem;
    }
}

/* ========================================
   MOBILES (< 768px)
======================================== */
@media (max-width: 767px) {
    /* Ancres de navigation */
    #description,
    #photos,
    #reproducteurs,
    #chiots {
        scroll-margin-top: 230px;
    }
    
    /* Section Intro Description */
    .breed-intro-section {
        padding: 40px 0;
    }
    
    .breed-intro-box {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .breed-intro-text {
        font-size: 0.7rem;
        line-height: 1.6;
        text-align: justify;
    }
    
    /* Navigation Rapide */
    .breed-nav-section {
        padding: 25px 0;
    }
    
    .breed-nav-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .breed-nav-btn {
        font-size: 0.6rem;
        padding: 8px 14px;
        text-align: center;
        justify-content: center;
    }
    
    .breed-nav-btn i {
        font-size: 0.65rem;
    }

    /* Section Reproducteurs */
    .breed-animals-section {
        padding: 50px 0;
    }
    
    /* Header section (fusionné - plus de doublons) */
    .breed-section-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .breed-section-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .breed-section-subtitle {
        font-size: 0.8rem;
        color: #777;
        margin: 0;
        padding: 0 15px;
    }
    
    /* Cartes animaux */
    .breed-animal-card {
        margin-bottom: 25px;
    }
    
    .breed-animal-image {
        aspect-ratio: 1/1;
        border-radius: 16px 16px 0 0;
    }
    
    .breed-animal-body {
        padding: 18px;
    }
    
    .breed-animal-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .breed-animal-name a {
        font-size: 1.2rem;
    }
    
    .breed-animal-type {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .breed-animal-type i {
        font-size: 0.85rem;
    }
    
    /* Badge genre */
    .breed-animal-gender {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
    
    /* Bouton */
    .btn-breed-animal {
        width: 100%;
        font-size: 0.8rem;
        padding: 9px 18px;
        justify-content: center;
    }
    
    .btn-breed-animal i {
        font-size: 0.75rem;
    }
}

/* ========================================
   PETITS MOBILES (< 576px)
======================================== */
@media (max-width: 575px) {
    
    /* Section Intro Description */
    .breed-intro-section {
        padding: 35px 0;
    }
    
    .breed-intro-box {
        padding: 25px 20px;
        border-radius: 14px;
    }
    
    .breed-intro-text {
        font-size: 0.85rem;
        line-height: 1.8;
        text-align: justify;
    }
    
    /* Navigation Rapide */
    .breed-nav-section {
        padding: 15px 0;
    }
    
    .breed-nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .breed-nav-btn {
        width: 100%;
        font-size: 0.55rem;
        padding: 10px 16px;
        text-align: center;
        justify-content: center;
    }
    
    .breed-nav-btn i {
        font-size: 0.6rem;
        margin-right: 6px;
    }

    /* Section Reproducteurs */
    .breed-animals-section {
        padding: 40px 0;
    }
    
    /* Header section */
    .breed-section-header {
        margin-bottom: 25px;
    }
    
    .breed-section-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .breed-section-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    /* Cartes animaux */
    .breed-animal-card {
        margin-bottom: 20px;
    }
    
    .breed-animal-image {
        border-radius: 14px 14px 0 0;
    }
    
    .breed-animal-body {
        padding: 16px;
    }
    
    .breed-animal-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .breed-animal-name a {
        font-size: 1.1rem;
    }
    
    .breed-animal-type {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .breed-animal-type i {
        font-size: 0.8rem;
    }
    
    /* Badge genre */
    .breed-animal-gender {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        top: 10px;
        right: 10px;
    }
    
    /* Bouton */
    .btn-breed-animal {
        width: 100%;
        font-size: 0.75rem;
        padding: 8px 16px;
        justify-content: center;
    }
    
    .btn-breed-animal i {
        font-size: 0.7rem;
    }
}

/* ========================================
   TRÈS PETITS MOBILES (< 400px)
======================================== */
@media (max-width: 399px) {
    
    /* Section Intro Description */
    .breed-intro-section {
        padding: 30px 0;
    }
    
    .breed-intro-box {
        padding: 22px 18px;
    }
    
    .breed-intro-text {
        font-size: 0.8rem;
        line-height: 1.8;
    }
    
    /* Navigation Rapide */
    .breed-nav-section {
        padding: 15px 0;
    }
    
    .breed-nav-buttons {
        gap: 7px;
    }
    
    .breed-nav-btn {
        font-size: 0.5rem;
        padding: 7px 12px;
    }
    
    .breed-nav-btn i {
        font-size: 0.55rem;
        margin-right: 5px;
    }

    /* Section Reproducteurs */
    .breed-animals-section {
        padding: 35px 0;
    }
    
    /* Header section */
    .breed-section-header {
        margin-bottom: 20px;
    }
    
    .breed-section-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .breed-section-subtitle {
        font-size: 0.8rem;
    }
    
    /* Cartes animaux */
    .breed-animal-card {
        margin-bottom: 18px;
    }
    
    .breed-animal-body {
        padding: 14px;
    }
    
    .breed-animal-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .breed-animal-name a {
        font-size: 1rem;
    }
    
    .breed-animal-type {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .breed-animal-type i {
        font-size: 0.75rem;
    }
    
    /* Badge genre */
    .breed-animal-gender {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Bouton */
    .btn-breed-animal {
        font-size: 0.7rem;
        padding: 7px 14px;
    }
    
    .btn-breed-animal i {
        font-size: 0.65rem;
    }
}