/* ========================================
   VARIABLES
======================================== */
:root {
    --gold: #C9A84C;
    --gold-light: #e0c068;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --dark-card: #161616;
    --border-gold: rgba(201, 168, 76, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --male-color: #4a9eda;
    --female-color: #da4a7a;
    --stud-color: #C9A84C;
}

/* ========================================
   HERO SECTION
======================================== */

.dog-detail-hero {
    position: relative;
    background: var(--dark-2);
    padding-bottom: 4rem;
}

/* Cover image */
.dog-detail-cover {
    position: relative;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.dog-detail-cover-default {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-bottom: 1px solid var(--border-gold);
}

.dog-detail-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(10, 10, 10, 0.7) 60%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

/* Card hero */
.dog-detail-hero-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    margin-top: -140px;
    position: relative;
    z-index: 2;
    background: var(--dark-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* Image profil */
.dog-detail-profile-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dog-detail-profile-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dog-detail-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dog-detail-profile-image:hover img {
    transform: scale(1.04);
}

/* Badge genre */
.dog-detail-gender-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dog-detail-gender-badge.male {
    background: linear-gradient(135deg, #4a9eda, #2980b9);
}

.dog-detail-gender-badge.female {
    background: linear-gradient(135deg, #da4a7a, #c2185b);
}

/* Infos hero */
.dog-detail-hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.dog-detail-hero-top {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
}

/* Nom + badges */
.dog-detail-name-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.dog-detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.dog-detail-badge-retired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(149, 165, 166, 0.15);
    border: 1px solid rgba(149, 165, 166, 0.4);
    color: #95a5a6;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.dog-detail-badge-stud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.dog-detail-other-name {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.dog-detail-breed-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.dog-detail-breed-row i {
    color: var(--gold);
    font-size: 0.9rem;
}

.dog-detail-breed-row a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dog-detail-breed-row a:hover {
    color: var(--gold-light);
}

.dog-detail-breed-dot {
    color: var(--border-gold);
    margin: 0 0.2rem;
}

/* Grille infos */
.dog-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.dog-detail-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--dark-3);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dog-detail-info-item:hover {
    border-color: var(--border-gold);
    background: var(--dark-4);
}

.dog-detail-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dog-detail-info-icon i {
    color: var(--gold);
    font-size: 0.85rem;
}

.dog-detail-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dog-detail-info-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dog-detail-info-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton saillie */
.dog-detail-stud-action {
    margin-top: -0.25rem;
}

.btn-dog-detail-stud {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0a0a0a;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-dog-detail-stud:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
    color: #0a0a0a;
}

/* Breadcrumb */
.dog-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.dog-detail-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dog-detail-breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-sep {
    color: var(--border-gold);
}

/* ========================================
   RESPONSIVE HERO
======================================== */

@media (max-width: 1199px) {
    .dog-detail-hero-card {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
        padding: 2.25rem;
    }

    .dog-detail-name {
        font-size: 2rem;
    }

    .dog-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .dog-detail-cover {
        height: 260px;
    }

    .dog-detail-hero-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        margin-top: -100px;
    }

    .dog-detail-profile-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .dog-detail-name {
        font-size: 1.85rem;
    }

    .dog-detail-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-dog-detail-stud {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.8rem;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .dog-detail-badge-stud {
        padding: 4px 12px;
        background: rgba(201, 168, 76, 0.15);
        font-size: 0.75rem;
        font-weight: 600;  
    }
}

@media (max-width: 767px) {
    .dog-detail-cover {
        height: 220px;
    }

    .dog-detail-hero-card {
        padding: 1.75rem;
        margin-top: -80px;
        gap: 1.75rem;
        border-radius: 16px;
    }

    .dog-detail-profile-image {
        max-width: 260px;
    }

    .dog-detail-name {
        font-size: 1.65rem;
    }

    .dog-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-dog-detail-stud {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.7rem;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .dog-detail-badge-stud {
        padding: 3.5px 10px;
        background: rgba(201, 168, 76, 0.15);
        font-size: 0.70rem;
        font-weight: 500;  
    }
 }

@media (max-width: 575px) {
    .dog-detail-cover {
        height: 180px;
    }

    .dog-detail-hero-card {
        padding: 1.5rem;
        margin-top: -60px;
        gap: 1.5rem;
        border-radius: 14px;
    }

    .dog-detail-profile-image {
        max-width: 240px;
    }

    .dog-detail-name {
        font-size: 1.5rem;
    }

    .dog-detail-name-row {
        gap: 0.6rem;
    }

    .dog-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .dog-detail-info-item {
        padding: 0.75rem 0.85rem;
    }

    .dog-detail-info-icon {
        width: 32px;
        height: 32px;
    }

    .dog-detail-info-value {
        font-size: 0.8rem;
    }

    .btn-dog-detail-stud {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.7rem;
        font-size: 0.7rem;
        font-weight: 600;
    }
}

@media (max-width: 399px) {
    .dog-detail-cover {
        height: 150px;
    }

    .dog-detail-hero-card {
        padding: 1.25rem;
        margin-top: -50px;
        border-radius: 12px;
    }

    .dog-detail-profile-image {
        max-width: 200px;
    }

    .dog-detail-name {
        font-size: 1.35rem;
    }

    .dog-detail-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

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

    .dog-detail-info-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .dog-detail-info-label {
        font-size: 0.62rem;
    }

    .dog-detail-info-value {
        font-size: 0.75rem;
    }
}


/* ========================================
   SECTION CONTENT : DESCRIPTION + GALERIE
======================================== */

.dog-detail-content-section {
    padding: 4rem 0;
    background: var(--dark-2);
}

.dog-detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ========================================
   BLOCS INFOS - COLONNE GAUCHE
======================================== */

.dog-detail-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dog-detail-block {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.dog-detail-block:hover {
    border-color: var(--border-gold);
}

.dog-detail-block-stud {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.04);
}

.dog-detail-block-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gold);
}

.dog-detail-block-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dog-detail-block-icon i {
    color: var(--gold);
    font-size: 0.9rem;
}

.dog-detail-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.dog-detail-block-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.dog-detail-block-content p {
    margin-bottom: 0.85rem;
}

.dog-detail-block-content p:last-child {
    margin-bottom: 0;
}

/* Pedigree items */
.dog-detail-pedigree-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--dark-3);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.65rem;
    transition: all 0.3s ease;
}

.dog-detail-pedigree-item:last-child {
    margin-bottom: 0;
}

.dog-detail-pedigree-item:hover {
    border-color: var(--border-gold);
    transform: translateX(4px);
}

.pedigree-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.pedigree-item-icon.male {
    background: linear-gradient(135deg, #4a9eda, #2980b9);
}

.pedigree-item-icon.female {
    background: linear-gradient(135deg, #da4a7a, #c2185b);
}

.pedigree-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pedigree-item-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pedigree-item-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

/* Health tests */
.dog-detail-health-text {
    margin: 0;
    white-space: pre-line;
    padding: 1rem 1.25rem;
    background: var(--dark-3);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Bloc saillie */
.dog-detail-stud-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--dark-3);
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gold);
}

.dog-detail-stud-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dog-detail-stud-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dog-detail-stud-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dog-detail-stud-status {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

.btn-dog-detail-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-dog-detail-contact:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}


/* ========================================
   VIDÉOS YOUTUBE
   ======================================== */

.dog-video-item {
    width: 100%;
}

.dog-video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9a84c;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.dog-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.dog-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}




/* ========================================
   GALERIE - COLONNE DROITE
======================================== */

/* Image principale */
.dog-detail-gallery-main {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.dog-detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dog-detail-gallery-main:hover img {
    transform: scale(1.04);
}

.dog-detail-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dog-detail-gallery-main:hover .dog-detail-gallery-overlay {
    opacity: 1;
}

.dog-detail-gallery-overlay i {
    color: var(--gold);
    font-size: 2.5rem;
}

/* Compteur photos */
.dog-detail-gallery-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.dog-detail-gallery-counter i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* Miniatures */
.dog-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.dog-detail-thumb {
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dog-detail-thumb:hover,
.dog-detail-thumb.active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.dog-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-detail-content-right {
    position: sticky;
    top: 100px; 
    align-self: flex-start;
}

.dog-detail-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    grid-column: 1 / -1;
}

.dog-detail-keyword-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dog-detail-keyword-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
    }
}

/* ========================================
   RESPONSIVE CONTENT SECTION
======================================== */

@media (max-width: 1199px) {
    .dog-detail-content-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 991px) {
    .dog-detail-content-section {
        padding: 3rem 0;
    }

    .dog-detail-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dog-detail-content-right {
        position: static;
    }

    .dog-detail-gallery-slide {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 767px) {
    .dog-detail-content-section {
        padding: 2.5rem 0;
    }

    .dog-detail-block {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .dog-detail-block-title {
        font-size: 1.05rem;
    }

    .dog-detail-gallery-slide {
        aspect-ratio: 4/3;
    }

    .dog-detail-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .dog-detail-content-section {
        padding: 2rem 0;
    }

    .dog-detail-block {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .dog-detail-block-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.85rem;
    }

    .dog-detail-block-icon {
        width: 34px;
        height: 34px;
    }

    .dog-detail-block-title {
        font-size: 1rem;
    }

    .dog-detail-block-content {
        font-size: 0.85rem;
    }

    .dog-detail-gallery-slide {
        aspect-ratio: 1;
    }

    .dog-detail-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .dog-detail-thumb {
        border-radius: 8px;
    }
}

@media (max-width: 399px) {
    .dog-detail-block {
        padding: 1rem;
    }

    .dog-detail-pedigree-item {
        padding: 0.75rem;
    }

    .pedigree-item-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .dog-detail-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

/* ========================================
   SECTION PEDIGREE
======================================== */

/* bloc arbre généalogique */
.dog-detail-pedigree-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gold);
}

.pedigree-header-label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pedigree-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}

.pedigree-header-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .dog-detail-pedigree-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .pedigree-header-title {
        font-size: 1.65rem;
    }

    .pedigree-header-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .dog-detail-pedigree-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
    }

    .pedigree-header-label {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .pedigree-header-title {
        font-size: 1.4rem;
    }

    .pedigree-header-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 399px) {
    .pedigree-header-title {
        font-size: 1.25rem;
    }

    .pedigree-header-text {
        font-size: 0.8rem;
    }
}

/* généalogie */
.dog-detail-pedigree-section {
    padding: 4rem 0;
    background: var(--dark);
    border-top: 1px solid var(--border-gold);
}

.dog-detail-pedigree-header {
    margin-bottom: 3rem;
}

/* Niveaux */
.pedigree-level-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pedigree-level-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Cards */
.pedigree-card {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pedigree-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.pedigree-card-sm {
    border-radius: 12px;
}

/* Image */
.pedigree-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--dark-3);
}

.pedigree-card-sm .pedigree-card-image {
    aspect-ratio: 1;
}

.pedigree-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.pedigree-card:hover .pedigree-card-image img {
    transform: scale(1.04);
}

/* Placeholder sans image */
.pedigree-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.pedigree-card-sm .pedigree-card-placeholder {
    font-size: 2rem;
}

.pedigree-card-placeholder.male {
    background: linear-gradient(135deg, rgba(74, 158, 218, 0.1), rgba(41, 128, 185, 0.05));
    color: #4a9eda;
}

.pedigree-card-placeholder.female {
    background: linear-gradient(135deg, rgba(218, 74, 122, 0.1), rgba(194, 24, 91, 0.05));
    color: #da4a7a;
}

/* Badge genre */
.pedigree-gender-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pedigree-card-sm .pedigree-gender-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    top: 8px;
    right: 8px;
}

.pedigree-gender-badge.male {
    background: linear-gradient(135deg, #4a9eda, #2980b9);
}

.pedigree-gender-badge.female {
    background: linear-gradient(135deg, #da4a7a, #c2185b);
}

/* Body */
.pedigree-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pedigree-card-sm .pedigree-card-body {
    padding: 1rem;
}

.pedigree-card-label {
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.pedigree-card-name {
    font-size: 1rem;
    color: white;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.pedigree-card-sm .pedigree-card-name {
    font-size: 0.9rem;
}

.pedigree-card-breed {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pedigree-card-register,
.pedigree-card-country {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pedigree-card-register i,
.pedigree-card-country i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* Card inconnue */
.pedigree-card-unknown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 0.75rem;
    min-height: 120px;
}

.pedigree-card-unknown i {
    font-size: 1.5rem;
    color: var(--border-gold);
}

.pedigree-card-unknown span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   RESPONSIVE PEDIGREE
======================================== */

@media (max-width: 1199px) {
    .pedigree-level-2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 991px) {
    .dog-detail-pedigree-section {
        padding: 3rem 0;
    }

    .pedigree-level-1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .pedigree-level-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .dog-detail-pedigree-section {
        padding: 2.5rem 0;
    }

    .dog-detail-pedigree-header {
        margin-bottom: 2rem;
    }

    .pedigree-level-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pedigree-card-image {
        aspect-ratio: 4/3;
    }

    .pedigree-level-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 575px) {
    .dog-detail-pedigree-section {
        padding: 2rem 0;
    }

    .pedigree-card-body {
        padding: 1rem;
    }

    .pedigree-card-name {
        font-size: 0.95rem;
    }

    .pedigree-level-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .pedigree-card-sm .pedigree-card-body {
        padding: 0.85rem;
    }

    .pedigree-card-sm .pedigree-card-name {
        font-size: 0.82rem;
    }
}

@media (max-width: 399px) {
    .pedigree-level-1,
    .pedigree-level-2 {
        grid-template-columns: 1fr;
    }

    .pedigree-card-image {
        aspect-ratio: 4/3;
    }
}




/* ========================================
   BLOC RETRAITE
======================================== */

.dog-retreat-section {
    padding: 0 0 2rem;
    background: #0d0d0d;
}

.dog-retreat-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: #111111;
    border: 1px solid rgba(201,168,76,0.2);
    border-left: 4px solid #c9a84c;
    border-radius: 12px;
}

.dog-retreat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: retreat-heartbeat 2s ease-in-out infinite;
}

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

.dog-retreat-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dog-retreat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c9a84c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dog-retreat-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0;
}

.dog-retreat-text strong { color: rgba(255,255,255,0.9); }

/* Responsive */
@media (max-width: 767px) {
    .dog-retreat-box { padding: 1.5rem; gap: 1rem; }
    .dog-retreat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .dog-retreat-text { font-size: 0.83rem; }
}

@media (max-width: 575px) {
    .dog-retreat-box { padding: 1.25rem; flex-direction: column; gap: 0.85rem; }
    .dog-retreat-icon { width: 36px; height: 36px; font-size: 0.9rem; }
}