/* =========================================================
   ====== PAGE NAISSANCES - CSS ULTRA DÉTAILLÉ ======
   ========================================================= */

/* =========================================================
   1️⃣ TITRE DE LA PAGE ("Nos Portées")
   ========================================================= */
.container-custom h2 {
    font-size: 2rem;             
    font-weight: 700;
    color: #3a2f23;              
    text-align: center;
    margin-bottom: 2rem;         
    position: relative;
    letter-spacing: 1px;         
    text-transform: capitalize;  
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.container-custom h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #b6c9b4, #7a8f78);
    border-radius: 2px;
    margin: 8px auto 0;       
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.container-custom h2:hover::after {
    width: 80px;                       
    transition: width 0.3s ease;
}

/* Responsive titre page */
@media (max-width: 767px) {
    .container-custom h2 {
        font-size: 1.6rem;
    }
}

/* =========================================================
   2️⃣ BLOC PORTÉE (portee-wrapper)
   ========================================================= */
.portee-wrapper {
    /* Fond et bordure */
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(186, 209, 183, 0.6);
    border-radius: 12px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Titre de la portée */
.portee-wrapper h4 {
    display: inline-flex;        
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
    color: #3a2f23;
}

/* Petite barre décorative à gauche */
.portee-wrapper h4::before {
    content: "";
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, #b6c9b4, #7a8f78);
    border-radius: 3px;
    display: inline-block;
}

/* Date et texte */
.portee-wrapper p {
    color: #4e4336;
    margin-bottom: 6px;
    font-size: 15px;
}

.portee-wrapper p strong {
    color: #6a7c62;
    font-weight: 600;
}

/* Description de la portée */
.portee-wrapper .portee-desc {
    max-width: 600px;
    margin: 10px auto 20px auto;
    text-align: center;
    max-height: 100px;
    overflow-y: auto;
    position: relative;
    padding: 0 10px;
    color: #4e4336;
    font-size: 15px;
    line-height: 1.5;
}

.portee-wrapper .portee-desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.3));
}

.portee-wrapper .portee-desc::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.portee-wrapper .portee-desc {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================================
   3️⃣ FICHES CHIOTS (chiot-card)
   ========================================================= */

/* ----- Card principale ----- */
.chiot-card {
    display: flex;
    flex-direction: column;
    background: #f1ede7;
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 3px 3px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(18, 38, 30, 0.06);
    overflow: hidden;
    width: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(15, 23, 20, 0.03);
}

.chiot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 42px rgba(18, 38, 30, 0.09);
}

/* ----- Top / Avatar ----- */
.chiot-card-top {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    display: flex;
    justify-content: center;
    position: relative;
    background: #f1ede7;
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 3px 3px;
}

.chiot-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chiot-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 6px 18px rgba(18,38,30,0.10);
    background: #f8f6f3;
    display: block;
}

/* Badge de disponibilité */
.chiot-badge {
    position: absolute;
    top: 8px;
    right: -4px;
    transform: translateX(40%);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.chiot-badge.available { background: #2e8b57; }
.chiot-badge.reserved  { background: #8a8a8a; }

/* ----- Body / Nom et sous-titre ----- */
.chiot-card-body {
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    text-align: center;
}

.chiot-name {
    margin: 0.25rem 0 0.15rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #213826;
}

.chiot-sub {
    margin: 0;
    font-size: 0.95rem;
    color: #566656;
    margin-bottom: 0.75rem;
}

/* ----- Meta / informations ----- */
.chiot-meta {
    margin: 0.5rem 0 0.9rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.9rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.36rem 0;
    font-size: 0.98rem;
    color: #344a3a;
}

/* ----- Description ----- */
.chiot-desc {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 10px;
    padding: 10px;
    text-align: justify;
    border-radius: 8px;
    background: linear-gradient(to bottom, #fff8f0, #fff2e6);
    position: relative;
    line-height: 1.4;
}

.chiot-desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 248, 240, 0), rgba(255, 242, 230, 0.7));
}

.chiot-desc::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.chiot-desc {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----- Footer / Boutons ----- */
.chiot-card-footer {
    padding: 0.9rem 1.25rem 1.25rem;
    margin-top: auto;
}

.chiot-card-footer .btn + .btn {
    margin-top: 0.5rem;
}

/* Boutons principaux */
.chiot-card .btn-primary {
    background: linear-gradient(180deg,#87a37c,#6f8f66);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
}

.chiot-card .btn-outline-primary {
    border-radius: 10px;
    padding: 8px 12px;
}

/* Bouton galerie */
.chiot-card-footer .btn-outline-gallery {
    background-color: #c48f65;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    width: 100%;
    transition: background-color 0.2s ease;
}

.chiot-card-footer .btn-outline-gallery:hover:not(:disabled) {
    background-color: #b07b52;
}

/* =========================================================
   4️⃣ MODAL GALERIE CHIOTS
   ========================================================= */
.modal-chiot-gallery .modal-content {
    background-color: #fefcf9;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
}

/* Images de la galerie */
.modal-chiot-gallery .modal-gallery-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Navigation modal */
.modal-chiot-gallery .modal-gallery-prev,
.modal-chiot-gallery .modal-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.modal-chiot-gallery .modal-gallery-prev { left: 10px; }
.modal-chiot-gallery .modal-gallery-next { right: 10px; }

.modal-chiot-gallery .btn-close {
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

/* Masquer images non actives */
.modal-chiot-gallery .modal-gallery-image.d-none {
    display: none !important;
}

/* Responsive modal images */
@media (max-width: 767px) {
    .modal-chiot-gallery .modal-gallery-image {
        max-width: 90%;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-chiot-gallery .modal-gallery-image {
        max-width: 95%;
        height: 220px;
    }
}

/* =========================================================
   5️⃣ RESPONSIVE GLOBAL
   ========================================================= */
@media (max-width: 767px) {
    .chiot-avatar-wrap { width: 120px; height: 120px; }
    .chiot-avatar { width: 110px; height: 110px; border-width: 4px; }
    .chiot-card { border-radius: 12px; }
    .chiot-desc { font-size: 0.92rem; }
}
