* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Animation d'apparition en fondu vers le bas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appliquer l'animation aux images avec un décalage progressif */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.gallery-block .photo:nth-child(1) { animation-delay: 0.2s; }
.gallery-block .photo:nth-child(2) { animation-delay: 0.4s; }

/* Effet de grossissement au survol */
.photo {
    display: block;
    width: 90%; /* Taille réduite */
    height: auto;
    max-width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
}

.photo:hover {
    filter: grayscale(0%);
    transform: scale(1.05); /* Légère augmentation de taille */
}

/* Conteneur général de la galerie */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Espacement légèrement réduit entre les blocs */
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Bloc de galerie (une ligne) */
.gallery-block {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px; /* Espacement ajusté entre les images */
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

/* Ajustement spécial pour Bloc 1 (Paysage + Portrait) */
.block-mixed {
    align-items: center;
}

.block-mixed .landscape {
    width: 70%; /* Taille réduite légèrement */
    max-width: 700px;
    height: auto;
}

.block-mixed .portrait {
    width: 31%; /* Réduction de la taille pour s'aligner */
    max-width: 310px;
    height: auto;
    object-fit: cover;
}

.gallery-block.duo-landscape .photo{
    width: 50.5%; /* Deux images côte à côte dans la même largeur que les autres blocs */
    max-width: 505px;
    height: auto;
    object-fit: cover;
}



/* LIGHTBOX */

/* Désactive le scroll quand la lightbox est ouverte */
body.no-scroll {
    overflow: hidden;
}

/* Lightbox - Affichage plein écran AU-DESSUS de tout */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Ne s'affiche pas au chargement */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Met au-dessus de la barre de navigation */
    padding: 20px;
}

/* Conteneur de la lightbox */
.lightbox-content {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacement entre l'image et le texte */
    max-width: 90%;
}

/* Image affichée en grand */
.lightbox img {
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
    animation: fadeInUp 0.5s ease-in-out;
}

/* Conteneur du texte */
.lightbox-text {
    color: white;
    text-align: left;
    max-width: 30%;
    opacity: 0; /* Caché au début */
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Effet d'apparition du texte */
.lightbox.show .lightbox-text {
    opacity: 1;
    transform: translateY(0);
}

/* Titre */
.lightbox-text h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

/* Trait blanc sous le titre */
.lightbox-text hr {
    width: 100%;
    border: 1px solid white;
    margin-bottom: 8px;
}

/* Description */
.lightbox-text p {
    font-size: 14px;
    line-height: 1.4;
}



/* TITRE DES PAGES */

/* Importation de la police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

/* Titre de la galerie */
.gallery-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-family: "Poppins", sans-serif;
}

/* Style du titre */
.gallery-title h1 {
    font-size: 28px;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 300;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 2px;
}

/* Appliquer l'effet aux lettres individuellement */
.gallery-title h1 span {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* Effet de rebond */
.gallery-title h1:hover span {
    animation: bounce 0.5s ease-in-out forwards;
}

/* Animation rebond */
@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Délai progressif pour chaque lettre */
.gallery-title h1:hover span:nth-child(1) { animation-delay: 0s; }
.gallery-title h1:hover span:nth-child(2) { animation-delay: 0.1s; }
.gallery-title h1:hover span:nth-child(3) { animation-delay: 0.2s; }
.gallery-title h1:hover span:nth-child(4) { animation-delay: 0.3s; }
.gallery-title h1:hover span:nth-child(5) { animation-delay: 0.4s; }
.gallery-title h1:hover span:nth-child(6) { animation-delay: 0.5s; }
.gallery-title h1:hover span:nth-child(7) { animation-delay: 0.6s; }
.gallery-title h1:hover span:nth-child(8) { animation-delay: 0.7s; }


/* Trait blanc sous le titre */
.gallery-title hr {
    width: 50px;
    border: 1.5px solid white; /* Trait légèrement plus fin */
    margin: 0 auto;
}



/* GALERIE VIDEO */

/* Style des vidéos */
.gallery-video {
    width: 65%;
    max-width: 800px;
    height: auto;
    border: none;
    transition: transform 0.3s ease-in-out;
}

/* Effet au survol */
.gallery-video:hover {
    transform: scale(1.05);
}

/* Animation d'apparition en fondu vers le bas */
.gallery-video.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Bloc de galerie (vidéo + texte) */
.gallery-block-vid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

/* Texte sous les vidéos */
.video-text {
    margin-top: 10px;
    max-width: 65%; /* Réduction pour mieux structurer */
    color: white;
    text-align: left; /* Alignement à gauche */
}

/* Titre du texte */
.video-text h2 {
    font-size: 16px; /* Taille réduite */
    font-weight: 300;
    margin-bottom: 5px;
}

/* Paragraphe sous la vidéo */
.video-text p {
    font-size: 12px; /* Texte plus petit */
    line-height: 1.3;
}





/* Watermark */
.watermark {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5); /* Blanc avec opacité réduite */
    margin-top: 50px;
    padding-bottom: 20px;
}
