body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
}

/* Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background-color: #111;
    position: relative;
    z-index: 2;
}

/* Animation du logo "LALLIER.FR" */
.logo {
    font-size: 28px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 4px;
}

.logo span {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.logo:hover span {
    animation: wave 0.6s ease-in-out;
}

.logo:hover span:nth-child(1) { animation-delay: 0s; }
.logo:hover span:nth-child(2) { animation-delay: 0.1s; }
.logo:hover span:nth-child(3) { animation-delay: 0.2s; }
.logo:hover span:nth-child(4) { animation-delay: 0.3s; }
.logo:hover span:nth-child(5) { animation-delay: 0.4s; }
.logo:hover span:nth-child(6) { animation-delay: 0.5s; }
.logo:hover span:nth-child(7) { animation-delay: 0.6s; }
.logo:hover span:nth-child(8) { animation-delay: 0.7s; }
.logo:hover span:nth-child(9) { animation-delay: 0.8s; }
.logo:hover span:nth-child(10) { animation-delay: 0.9s; }

@keyframes wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Boutons de navigation */
.nav-button {
    margin-left: 25px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    padding: 10px 15px;
    border: 2px solid white;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out;
    display: inline-block;
}

.nav-button:hover {
    background-color: white;
    color: black;
    transform: scale(1.1);
}

/* Animation d'apparition en fondu */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Appliquer l'animation à la vidéo et au bouton */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* Conteneur vidéo */
.video-container {
    position: relative;
    width: 60vw;
    height: auto;
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Vidéo */
.video-container video {
    width: 100%;
    height: auto;
}

/* Bouton au centre de la vidéo */
.gallery-button {
    position: absolute;
    padding: 15px 30px;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    border: 3px solid white;
    transition: all 0.3s ease-in-out;
}

.gallery-button:hover {
    background-color: white;
    color: black;
}



/* GALERIE */



/* Conteneur de la galerie */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Espacement augmenté */
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 60px auto;
}

/* 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 à chaque bouton */
.gallery-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    border: 2px solid white;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Délai d'apparition progressif pour chaque bouton */
.gallery-item:nth-child(1) { animation-delay: 0.2s; }
.gallery-item:nth-child(2) { animation-delay: 0.4s; }
.gallery-item:nth-child(3) { animation-delay: 0.6s; }
.gallery-item:nth-child(4) { animation-delay: 0.8s; }
.gallery-item:nth-child(5) { animation-delay: 1s; }
.gallery-item:nth-child(6) { animation-delay: 1.2s; }

/* Style des images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

/* Overlay - carré noir semi-transparent */
.overlay {
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Style du texte dans l'overlay */
.overlay .year {
    font-size: 18px;
    color: gray;
    font-weight: bold;
}

.overlay .category {
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Conteneur principal */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Espacement réduit entre l'image et le texte */
    max-width: 70%;
    margin: 80px auto;
    opacity: 0; /* Caché au début */
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Image */
.about-image {
    width: 50%; /* Taille réduite */
    max-width: 600px; /* Limite maximale */
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
}

/* Conteneur du texte */
.about-text {
    color: white;
    max-width: 35%; /* Compression du paragraphe */
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards 0.4s; /* Délai pour arriver après l’image */
}

/* Titre */
.about-text h1 {
    font-size: 24px; /* Titre réduit */
    font-weight: 300;
    margin-bottom: 10px;
}

/* Description */
.about-text p {
    font-size: 14px; /* Texte plus petit */
    line-height: 1.4;
}

/* Animation d'apparition en fondu vers le bas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



