/* propos debut ----------------*/
.histoireImge {
    height: 15rem;
    width: auto;
    border-radius: 1rem;
}

/* propos fin ----------------*/

.imgNoel {
    height: 20rem;
    width: auto;
    border-radius: 1rem;
}

/*img footer ----------------------------------------*/

.custom-imgFooter {
    width: 100%;
    height: 50px !important; /* plus petit pour footer */
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.85; /* léger effet discret */
    transition: all 0.3s ease;
}

.custom-imgFooter:hover {
    opacity: 1;
    transform: scale(1.05); /* petit zoom au hover */
}

/*---------------------------------------------*/
/* overlay */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    direction: flex-column;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.9);
    z-index: 9999;
}

/* image */
#lightbox img {
    display: block;

    margin: auto;

    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);

    animation: zoomIn 0.3s ease; /* ✅ conservé */
}

/* bouton fermer */
#lightbox .close {
    position: fixed; /* 🔥 change ici */
    top: 20px;
    right: 30px;

    font-size: 38px;
    font-weight: bold;
    color: #fff;

    cursor: pointer;
    z-index: 10000;

    transition: 0.3s;
}

/* navigation */
#lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: 0.3s;
}

#lightbox .prev {
    left: 20px;
}

#lightbox .next {
    right: 20px;
}

#lightbox .nav:hover {
    color: #e00b0b;
    transform: translateY(-50%) scale(1.2);
}

#lightbox .close:hover {
    color: #e00b0b;
    transform: scale(1.1);
}

/* animation conservée */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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