        /* Couleurs */
        :root {
            --dark-purple: rgb(89, 27, 68);
            --light-pink: rgb(252, 239, 239);
            --peach: rgb(249, 169, 143);
            --light-blue: rgb(212, 240, 253);
            --mint-green: rgb(191, 226, 202);
            --black: #000;
            --white: #fff;
        }

        /* Mise en page de la galerie */
        body {
    font-family: Arial, sans-serif;
    background-color: var(--light-pink);
    display: flex;
    flex-direction: column; /* Ajouté pour permettre un agencement vertical */
    justify-content: flex-start; /* Aligne le contenu en haut */
    min-height: 100vh; /* Assure que le body occupe au moins la hauteur de la fenêtre */
    margin: 0;
    color: var(--black);
}

        .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            width: 90%;
            max-width: 1000px;
            margin: 20px auto;
        }

        /* Superposition de texte pour chaque image */
        .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(89, 27, 68, 0.6);
            color: var(--white);
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 10px;
            text-align: center;
            font-size: 1em;
        }

        .gallery-item:hover .overlay {
            opacity: 1;
        }

       


        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            background-color: var(--mint-green);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
            border-radius: 8px;
        }

        /* Effet au survol */
        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        

        /* Entête de la page */
        .entete {
            background-color: var(--dark-purple);
            color: var(--white);
            padding: 10px 0;
            text-align: center;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            border-radius: 0px 0px 15px 15px;
        }

        .entete h1 {
            margin: 0;
            font-size: 1.8em;
            color: var(--light-blue);
        }

        .entete a {
            display: inline-block;
            padding: 10px;
            text-decoration: none;
            color: var(--white);
            font-weight: bold;
        }

        /* Style des liens dans l'entête */
        .entete a {
            color: var(--white);
            text-decoration: none;
        }
        
        .entete a:hover {
            color: var(--peach);
        }
        
        /* Espacement des sections */
        h2 {
            text-align: center;
            color: var(--dark-purple);
            margin-top: 5%;
        }

        .btn-retour {
            background-color: var(--dark-purple);
            color: var(--white);
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            font-weight: bold;
            border-radius: 5px;
            margin: 20px;
            display: inline-block;
            margin-top: 7%;
        }

         /* Media queries pour rendre la galerie responsive */
         @media (max-width: 768px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr); /* 2 images par ligne sur les écrans moyens */
            }
            .overlay {
                opacity: 1; /* Affiche le texte superposé en permanence */
            }

            .btn-retour {
                margin-top: 25%;
            }
        }

        @media (max-width: 480px) {
            .gallery {
                grid-template-columns: repeat(1, 1fr); /* 1 image par ligne sur les petits écrans */
            }
            .overlay {
                opacity: 1; /* Affiche le texte superposé en permanence */
            }
            .btn-retour {
                margin-top: 25%;
            }
        }

        .btn-retour:hover {
            background-color: var(--peach);
        }

        .btn {
            background-color: var(--dark-purple);
            color: var(--white);
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1rem;
        }
        
        .btn:hover {
            background-color: var(--peach);
            color: var(--black);
        }
        
        .zoom-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 20;
        }

        .zoom-overlay img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        }

        .section {
            margin-top: 20px;
        }
        footer {
    background-color: var(--dark-purple);
    color: var(--white);
    text-align: center;
    margin-top: auto; /* Cela pousse le footer vers le bas */
}
.social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: var(--light-blue);
}

        footer a {
        color: var(--light-pink);
        text-decoration: none;
        }

        footer a:hover {
        text-decoration: underline;
        }

        /* Styles pour les icônes */
        .icon {
        width: 30px; /* Largeur */
        height: 30px; /* Hauteur */
        margin-right: 10px; /* Espace à droite */
        vertical-align: middle; /* Alignement vertical */
        }
        /* Section des autres galeries */
#autres-galleries {
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Un peu d'espace au-dessus */
    text-align: center;
}

.btn-container {
    display: flex;
    gap: 20px; /* Espacement entre les boutons */
    margin-bottom: 5%;
}

.gallery-nav {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.gallery-nav:hover {
    background-color: var(--peach);
    transform: scale(1.05);
}

.gallery-nav:active {
    transform: scale(0.98); /* Effet d'activation pour un clic plus dynamique */
}

/* Si vous voulez ajouter des icônes à vos boutons, voici une manière de le faire */
.gallery-nav i {
    margin-right: 10px;
    vertical-align: middle;
}

.carte {
    position: relative; /* Nécessaire pour positionner l'overlay */
    width: 90%; /* Réduit légèrement la taille, ajustable */
    max-width: 400px; /* Taille maximum pour les écrans plus grands */
    margin: 0 auto; /* Centré sur la page */
    overflow: hidden; /* Empêche le débordement de l'overlay */
    border: 1px solid #ccc; /* Bordure classique */
    border-radius: 8px; /* Coins légèrement arrondis pour un style classique */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce pour un effet soigné */
}

/* Image */
.carte img {
    width: 100%; /* L'image prend toute la largeur du conteneur */
    height: auto; /* Maintient les proportions de l'image */
    display: block; /* Élimine les espaces blancs en dessous de l'image */
    transition: transform 0.3s ease; /* Effet de zoom doux au survol */
}

.carte:hover .overlay {
    opacity: 1;
}

