/* ✅ Section titre "Nos Réalisations" */
.intro {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.3em;
    color: #555;
    line-height: 1.6;
}

/* ✅ Texte décoratif "Voici un échantillon de nos réalisations" */
.realisation-intro {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #003366;
    margin: 30px auto;
    padding: 10px 20px;
    background-color: #ffcc00;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

/* ✅ Galerie des réalisations */
.realisations-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 20px;
}

/* ✅ Cartes des réalisations */
.realisation {
    width: 300px;
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.realisation:hover {
    transform: scale(1.05);
}

/* ✅ Images des réalisations */
.realisation img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.realisation img:hover {
    transform: scale(1.1);
}

/* ✅ Texte sous chaque image */
.realisation p {
    margin-top: 10px;
    font-size: 16px;
    color: #003366;
    font-weight: bold;
}

/* ✅ Effet plein écran pour les images zoomables */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

/* ✅ Image agrandie en plein écran */
.fullscreen-overlay img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease-in-out;
}

/* ✅ Effet de zoom supplémentaire au survol */
.fullscreen-overlay img:hover {
    transform: scale(1.1);
}

/* ✅ Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ✅ Boutons de navigation pour défiler entre les images */
#prev-image, #next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: #003366;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

#prev-image {
    left: 20px;
}

#next-image {
    right: 20px;
}

#prev-image:hover, #next-image:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ✅ Miniatures sous l'image affichée */
.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

/* ✅ Style des miniatures */
.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, border 0.3s;
    border: 2px solid transparent; /* Par défaut */
}

/* ✅ Effet au survol des miniatures */
.thumbnail:hover {
    transform: scale(1.1);
}

/* ✅ Miniature active (celle en cours d'affichage) */
.thumbnail.active {
    border: 3px solid yellow;
}

/* ✅ Responsivité */
@media screen and (max-width: 600px) {
    .realisations-gallery {
        flex-direction: column;
        align-items: center;
    }

    .realisation {
        width: 90%;
    }

    .thumbnail {
        width: 40px;
        height: 40px;
    }

    .thumbnail-container {
        gap: 5px;
    }
}
