/* =============================================================================
   STYLES COMPACTS POUR L'AFFICHAGE DES DÉTAILS D'UNE PORTÉE
   ============================================================================= */

/* Conteneur principal */
.portee-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header avec bouton + titre */
.portee-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.portee-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(152, 70, 70, 0.8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portee-back-button:hover {
    background: rgba(152, 70, 70, 1);
    transform: translateX(-5px);
}

.portee-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'Georgia', serif;
}

/* Carte info avec les parents */
.portee-info-card {
    background: linear-gradient(135deg, rgba(152, 70, 70, 0.9) 0%, rgba(122, 53, 53, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    padding: 0;
}

/* Section parents (à gauche) */
.portee-parents-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px;
}

.parent-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.parent-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.parent-info {
    color: #fff;
}

.parent-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-weight: 700;
    margin-bottom: 5px;
}

.parent-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.parent-details {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

.parent-details p {
    margin: 3px 0;
}

/* Section infos complémentaires (à droite) */
.portee-info-sidebar {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portee-info-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portee-info-item-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portee-info-label-sidebar {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    font-weight: 700;
}

.portee-info-value-sidebar {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.portee-age-highlight {
    color: #984646;
    font-size: 18px !important;
}

/* Bouton demander des informations */
.portee-contact-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a229 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portee-contact-button:hover {
    background: linear-gradient(135deg, #c9a229 0%, #b8941f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Section chiots - COMPACTE */
.chiots-section {
    margin-bottom: 35px;
}

.chiots-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #984646;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sexe-icon {
    font-size: 22px;
    color: #984646;
}

/* Grille des chiots - 4 PAR LIGNE + COMPACT */
.chiots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Carte chiot COMPACTE */
.chiot-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chiot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Image COMPACTE */
.chiot-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* Fond flouté */
.chiot-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.8;
}

/* Image principale non recadrée */
.chiot-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.chiot-card-image.chiot-no-photo {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-photo-icon {
    font-size: 50px;
    opacity: 0.3;
}

.chiot-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
    z-index: 1;
}

/* Contenu COMPACT */
.chiot-card-content {
    padding: 15px;
}

.chiot-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-family: 'Georgia', serif;
}

/* Détails COMPACTS */
.chiot-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.chiot-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.chiot-detail-label {
    font-size: 11px;
    color: #777;
    font-weight: 600;
}

.chiot-detail-value {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

/* Badge statut COMPACT */
.chiot-statut-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chiot-statut-badge.statut-disponible {
    background: #e8f5e9;
    color: #2e7d32;
}

.chiot-statut-badge.statut-reserve {
    background: #fff3e0;
    color: #e65100;
}

.chiot-statut-badge.statut-adopte {
    background: #e3f2fd;
    color: #1565c0;
}

.chiot-statut-badge.statut-elevage {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Bouton COMPACT */
.chiot-card-button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #984646;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.chiot-card-button:hover {
    background: #7a3535;
    color: #fff;
    text-decoration: none;
}

/* Message d'erreur */
.error-message {
    text-align: center;
    padding: 30px;
    font-size: 15px;
    color: #d63638;
    background: #fee;
    border: 1px solid #d63638;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .portee-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .portee-main-title {
        font-size: 24px;
    }
    
    .portee-info-card {
        grid-template-columns: 1fr;
    }
    
    .portee-parents-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .parent-photo {
        width: 100px;
        height: 100px;
    }
    
    .portee-info-sidebar {
        padding: 20px;
    }
    
    .chiots-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chiots-section-title {
        font-size: 18px;
    }
    
    .chiot-card-image {
        height: 160px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portee-info-card {
        grid-template-columns: 1fr 300px;
    }
    
    .portee-parents-section {
        grid-template-columns: 1fr;
    }
    
    .chiots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1300px) {
    .chiots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1301px) {
    .chiots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}