/* 🌟 Grid de 3 colonnes */
#entreprise-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* 🌟 Style des images */
.gallery-image {
    width: 250px;
    height: 300px;
    object-fit: cover; /* 🔥 Garde le ratio et coupe l'excédent */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* 🌟 Lightbox Overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

/* 🌟 Image affichée dans la Lightbox */
.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

/* 🌟 Bouton pour fermer la Lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-wrapper.open {
    display: flex;
}

.modal-card {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.modal-img-wrap img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .modal-content-wrapper {
        flex-direction: row;
    }

    .c-left {
        flex: 1;
        width: 100%;
    }

    .c-right {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .modal-card.project {
        width: 95%;
        padding: 15px;
    }
}


.biz-img-wrapper img {
    width: 100%;
    max-width: 600px; /* Pour limiter la taille */
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ Animation des cards en slide-up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entreprise-card {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.entreprise-card:nth-child(1) {
    animation-delay: 0.6s;
}
.entreprise-card:nth-child(2) {
    animation-delay: 0.9s;
}
.entreprise-card:nth-child(3) {
    animation-delay: 1.2s;
}

/* ✅ Effet hover sur les boutons */
.button.reverse {
    transition: opacity 0.3s ease-in-out;
}

.button.reverse:hover {
    opacity: 0.8;
}

/* ✅ Effet hover sur le bouton Voir tout */
.button.reverse.w-button {
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.button.reverse.w-button:hover {
    background-color: #d5d5d5;
    transform: scale(1.05);
}

/* ✅ Animation des cards en slide-up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entreprise-card {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

/* ✅ Effet hover sur les boutons */
.button.reverse {
    transition: opacity 0.3s ease-in-out, transform 0.2s;
}

.button.reverse:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ✅ Animation des cards en slide-up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ✅ Effet hover sur les images */
.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.realisation-card {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}



