* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden; /* Bloque uniquement le scroll horizontal */
    overflow-y: auto; /* Active le scroll vertical */
}

/* Image parallax superposée */
.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    /* Supprimer overflow: hidden pour permettre à l'image de dépasser */
}

.parallax-overlay img {
    width: 100%;
    height: 120%; /* Plus grand que le conteneur pour permettre le mouvement */
    object-fit: cover;
    opacity: 0.7;
    /* Positionner l'image légèrement vers le haut initialement */
    position: relative;
    top: -10%;
}

.gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.gallery img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    height: auto;
}

/* Barre de navigation */
nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    padding: 15px 0;
    /* Centrage de la barre de navigation */
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

nav ul {
    text-align: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    padding: 18px;
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-size: 40px;
    text-decoration: none;
    display: block;
}

/* Classe active pour indiquer la page courante - uniquement la couleur */
nav ul li a.active {
    color: rgba(97, 0, 206, 0.8);
}

/* Effet au survol */
nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(97, 0, 206, 0.8);
}

/* Styles pour le menu hamburger - caché par défaut */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 3100;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 5px;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

/* Media query pour écrans moyens */
@media (max-width: 1500px) {
    nav {
        padding: 15px 0;
    }

    nav ul li a {
        font-size: 24px;
        padding: 12px;
    }
}

/* Media query pour tablettes et smartphones */
@media (max-width: 768px) {
    nav {
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        top: 60px; /* Espace pour le hamburger */
        position: fixed;
        width: 100%;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }
    
    nav ul li {
        display: block;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 20px;
        padding: 12px;
        text-align: center;
    }
    
    /* Afficher le menu hamburger */
    .hamburger-menu {
        display: block;
    }
    
    /* Styles pour hamburger animé quand activé */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -9px);
    }
}

/* Media query pour très petits écrans (smartphones) */
@media (max-width: 400px) {
    nav ul li a {
        font-size: 18px;
        padding: 10px;
    }
    
    .hamburger-menu {
        top: 10px;
        right: 10px;
    }
    
    .hamburger-menu span {
        width: 25px;
        height: 2px;
        margin: 5px 0;
    }
}