/* =========================================================
   ====== PAGE NAISSANCES — habillage aligné sur la charte ======
   ========================================================= */

/* =========================================================
   1️⃣ TITRE DE LA PAGE — géré par .page-header (style.css)
   ========================================================= */

/* =========================================================
   1️⃣bis FOND DE SECTION — fait ressortir les blocs de portées
   ========================================================= */
.naissances-section {
    background: var(--sable-fonce);
    padding: 3rem 1rem 4rem;
    flex: 1; /* etire le fond sable jusqu'au pied de page, meme quand le contenu est court */
}

/* =========================================================
   2️⃣ BLOC PORTÉE (portee-wrapper)
   ========================================================= */
.portee-wrapper {
    background-color: #fff;
    border: none;
    border-radius: var(--rayon-lg);
    padding: 2rem 2.25rem;
    text-align: center;
    box-shadow: 0 2px 20px var(--ombre);
    transition: box-shadow var(--transition);
}
.portee-wrapper:hover {
    box-shadow: 0 10px 36px var(--ombre-forte);
}

/* Titre de la portée */
.portee-wrapper h4 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vert-fonce);
}

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

/* Date et texte */
.portee-wrapper p {
    color: var(--texte-doux);
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-family: 'Jost', sans-serif;
}

.portee-wrapper p strong {
    color: var(--vert-moyen);
    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: var(--texte-doux);
    font-size: 0.95rem;
    line-height: 1.6;
}

.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.6));
}

.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: var(--blanc-casse);
    border-radius: var(--rayon-lg);
    box-shadow: 0 2px 20px var(--ombre);
    overflow: hidden;
    width: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--sable-fonce);
}

.chiot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--ombre-forte);
}

/* ----- Top / Avatar ----- */
.chiot-card-top {
    padding: 1.5rem 1.25rem 0.5rem 1.25rem;
    display: flex;
    justify-content: center;
    position: relative;
    background: var(--sable);
}

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

.chiot-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 6px 18px var(--ombre-forte);
    background: #fff;
    display: block;
}

/* Badge de disponibilité */
.chiot-badge {
    position: absolute;
    top: 6px;
    right: -6px;
    transform: translateX(30%);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 12px var(--ombre);
}
.chiot-badge.available { background: var(--vert-moyen); }
.chiot-badge.reserved  { background: #8a9e8b; }

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

.chiot-name {
    margin: 0.25rem 0 0.15rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vert-fonce);
}

.chiot-sub {
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: var(--texte-doux);
    margin-bottom: 0.75rem;
}

/* ----- Meta / informations ----- */
.chiot-meta {
    margin: 0.5rem 0 0.9rem;
    border-top: 1px solid var(--sable-fonce);
    padding-top: 0.9rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.36rem 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.92rem;
    color: var(--texte);
}

.meta-row .meta-label {
    color: var(--texte-doux);
}

.meta-row .meta-value {
    font-weight: 600;
    color: var(--vert-fonce);
}

.meta-row:first-child .meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cuivre);
}

/* ----- Description ----- */
.chiot-desc {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 10px;
    padding: 10px 12px;
    text-align: justify;
    border-radius: 10px;
    background: var(--sable);
    position: relative;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.chiot-desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(247,241,232,0), rgba(247,241,232,0.85));
}

.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,
.chiot-card-footer .btn + form,
.chiot-card-footer form + .btn {
    margin-top: 0.5rem;
}

/* Bouton "Je suis intéressé" : hérite du style global .btn-primary/.btn-custom (vert-moyen) */
.chiot-card .btn-primary {
    border-radius: var(--rayon);
}

.chiot-card .btn-outline-primary {
    border-radius: var(--rayon);
}

/* Bouton galerie : même famille que .btn-boutique (cuivre) */
.chiot-card-footer .btn-outline-gallery {
    background-color: var(--cuivre);
    color: #fff;
    border: none;
    border-radius: var(--rayon);
    padding: 0.5rem 0.9rem;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    width: 100%;
    transition: background-color var(--transition), transform var(--transition);
}

.chiot-card-footer .btn-outline-gallery:hover:not(:disabled) {
    background-color: var(--cuivre-clair);
    transform: translateY(-1px);
}

/* =========================================================
   4️⃣ MODAL GALERIE CHIOTS
   ========================================================= */
.modal-chiot-gallery .modal-content {
    background-color: var(--blanc-casse);
    border-radius: var(--rayon-lg);
    padding: 1rem;
    text-align: center;
    position: relative;
}

/* Zone image principale */
.modal-chiot-gallery .modal-gallery-main {
    background: var(--sable);
}

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

/* Navigation modal */
.modal-chiot-gallery .modal-gallery-prev,
.modal-chiot-gallery .modal-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: var(--vert-fonce);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.modal-chiot-gallery .modal-gallery-prev:hover,
.modal-chiot-gallery .modal-gallery-next:hover {
    background: var(--cuivre);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

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

/* Bandeau de miniatures */
.modal-gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 12px 4px;
    background: var(--blanc-casse);
}
.modal-gallery-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}
.modal-gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
.modal-gallery-thumb.active {
    opacity: 1;
    border-color: var(--cuivre);
}

.modal-chiot-gallery .btn-close {
    background-color: rgba(255,255,255,0.85);
    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: var(--rayon); }
    .chiot-desc { font-size: 0.88rem; }
    .portee-wrapper { padding: 1.5rem 1.25rem; }
}
