/* Container des cartes de réalisations */
.cardRealisations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte de réalisation */
.cardRealisations {
    width: 300px;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardRealisations:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Animation sur hover */
}

/* Carrousel des images */
.cardRealisations-carousel {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Ajout du border-radius pour les images */
}

.cardRealisations-carousel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: none;
    border-radius: 10px; /* Ajouter un border-radius aux images */
}

.cardRealisations-carousel img.active {
    display: block;
}

/* Indicateurs du carrousel en bas */
.cardRealisations-indicators {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Boutons pour les indicateurs */
.cardRealisations-indicators button {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.cardRealisations-indicators button.active {
    background-color: #007bff;
    width: 18px;
    height: 18px;
}

/* Description de la réalisation */
.cardRealisations-description {
    padding: 15px;
    font-size: 14px;
    color: #333;
    max-height: 155px; /* Hauteur maximale fixe pour la description */
    overflow: hidden;
    position: relative;
}

/* Ajouter une gradation pour le texte tronqué */
.cardRealisations-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); /* Effet de gradation pour le texte */
    display: none; /* Masquer par défaut */
}

.cardRealisations.show-full .cardRealisations-description {
    max-height: none; /* Agrandir pour montrer toute la description */
}

.cardRealisations.show-full .cardRealisations-description::after {
    display: none; /* Masquer la gradation */
}

/* Bouton "Voir plus" */
.cardRealisations-more {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 0;
    text-decoration: underline;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.cardRealisations-more:hover {
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .cardRealisations {
        margin-top: 10%;
        width: 100%;
    }

    .cardRealisations-carousel img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .cardRealisations-carousel img {
        height: 120px;
    }
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination-button:hover {
    background-color: #0056b3;
}

.pagination-button.active, .pagination-button.disabled {
    background-color: #6c757d; /* Gris pour indiquer que le bouton est désactivé */
    cursor: default;
}

.pagination-button.disabled {
    pointer-events: none; /* Désactive les interactions */
}


@media (max-width: 768px) {

.lightbox-image {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
}

/* Bouton de fermeture centré au-dessus de l'image */
.close {
    position: absolute;
    bottom: 10%;
    left: 49%;
    right: 49%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
}

 

.lightbox-controls button:hover {
    background-color: rgba(255, 255, 255, 1); /* Change la couleur au survol */
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%); /* Centrer verticalement */
}

.lightbox-controls button {
    background-color: rgba(255, 255, 255, 0.7); /* Fond semi-transparent */
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%; /* Boutons arrondis */
    margin: 0 10px;
}

.lightbox-controls button:hover {
    background-color: rgba(255, 255, 255, 1); /* Change la couleur au survol */
}

.prev {
    left: 0;
}

.next {
    right: 0;
}


