/* Importer une police moderne et élégante */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0e0e0; /* Changer en une teinte plus douce */
}

.portfolio {
    padding: 60px 20px; /* Espace autour de la section */
    background-color: #f9f9f9; /* Fond léger */
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne */
    justify-content: space-between; /* Espacement entre les éléments */
    max-width: 1200px; /* Largeur maximale de la grille */
    margin: auto; /* Centrer la grille */
}



.portfolio-wrap {
    margin-bottom: 20px; /* Espacement entre les lignes */
    flex: 0 0 24%; /* Quatre éléments par ligne (24% + 3% pour l'espacement) */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Ombre douce pour chaque élément */
    text-align: center; /* Centrer le texte à l'intérieur des cartes */
    cursor: pointer;
}

.portfolio-wrap img {
    border: none; /* Enlève le cadre autour des images */
    width: 100%; /* Pour s'assurer que les images occupent toute la largeur */
    height: auto; /* Pour maintenir le ratio d'aspect des images */
}

.portfolio-wrap:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée au survol */
}


.parc img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.parc:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Overlay avec fond dégradé bleu et jaune */
.overlay {
    backdrop-filter: blur(10px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: linear-gradient(135deg, #0000bc, #ffcf3d);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 500px;
    animation: zoomIn 0.5s ease;
    position: relative; /* Ajoutez cette ligne */
    color: #ffffff;
}

/* Animation subtile de zoom sur l'ouverture */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Boutons élégants et interactifs avec icônes */
.btn {
    display: inline-block;
    background-color: blueviolet; /* Dégradé de bleu à violet puis jaune */
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.btn:hover {
    background-color: #e6b800;
}

/* Animation douce pour le bouton de fermeture */
.close-btn {
    background: none;
    border: none;
    color: red; /* Couleur rouge pour la croix */
    font-size: 30px; /* Augmenter la taille de la croix */
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
    color: darkred; /* Couleur sombre au survol */
}

.close-btn::after {
    content: attr(title); /* Utilise le contenu de l'attribut title */
    position: absolute;
    top: -30px; /* Ajuste la position selon tes besoins */
    right: -10px;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre pour l'info-bulle */
    color: #fff; /* Couleur du texte */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px; /* Taille de la police */
    opacity: 0;
    visibility: hidden; /* Masquer par défaut */
    transition: opacity 0.3s ease;
    z-index: 1001; /* S'assurer qu'il est au-dessus */
}

/* Affichage des info-bulles au survol */
.close-btn:hover::after {
    opacity: 1;
    visibility: visible; /* Affiche l'info-bulle au survol */
}