
html {
    scroll-behavior: smooth;
    overflow-x : hidden
}
body {
    display: flex;
    flex-direction: column; /* Réorganise le contenu verticalement */
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #2e2e2e;
    color: #fff;
    overflow-x : hidden;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px; /* Reduced from 80px */
}


nav {
    background: #1e1e1e;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center; /* Cela centre les éléments horizontalement */
    align-items: center;     /* Cela centre les éléments verticalement */
    list-style-type: none;   /* Retire les puces */
}

nav ul li {
    margin: 0 15px;          /* Ajoute de l'espace entre les éléments */
}


nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    background: #ff6347;
    border-radius: 4px;
}

header {
    background-color: #1e1e1e;
    width: 100%;
    min-height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 0 0 20px 0; /* Removed top margin, kept bottom margin */
    border-radius: 30px;
}

header .intro h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

header .intro p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.carousel-container {
    position: relative;
    width: 90vw;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    perspective: 1500px;
    margin: 20px 0; /* Add vertical spacing */
}

.carousel {
    position: relative;
    width: 100%; /* Largeur dynamique */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: rotateY(0deg); /* Angle initial pour une vue circulaire directe */
    transition: transform 1s ease;
}

.carousel-item {
    position: absolute;
    width: 180px; /* Taille des éléments */
    height: 280px;
    transform-origin: center center;
    backface-visibility: hidden; /* Cache l'arrière des éléments */
}

/* Positionnement circulaire des items avec alignement centré */
.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(500px); }
.carousel-item:nth-child(2) { transform: rotateY(72deg) translateZ(500px); }
.carousel-item:nth-child(3) { transform: rotateY(144deg) translateZ(500px); }
.carousel-item:nth-child(4) { transform: rotateY(216deg) translateZ(500px); }
.carousel-item:nth-child(5) { transform: rotateY(288deg) translateZ(500px); }
.carousel-item:nth-child(6) { transform: rotateY(288deg) translateZ(500px); }
.carousel-item:nth-child(7) { transform: rotateY(288deg) translateZ(500px); }

.carousel .carousel-item a {
    display: block;
    width: inherit;
    height: inherit;
    text-indent: -9999px;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: var(--image-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: filter 0.5s ease;
}

/* Reflet des images au sol, qui dépasse la séparation */
.carousel .carousel-item a::after {
    content: "";
    display: block;
    position: absolute;
    background-image: var(--image-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scaleY(-1);
    opacity: 0.5; /* Augmenter l'opacité pour un reflet plus visible */
    filter: blur(1.5px); /* Légère réduction du flou pour plus de clarté */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.081));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 2; /* Permet au reflet de passer par-dessus la séparation */
    transform-origin: center center;
    top: 100%; /* Le reflet commence au bas de l'élément */
    left: 0;
    width: 100%;
    height: 50%; /* Laisser dépasser le reflet */
}

/* Effet de survol sur l'image */
.carousel-item:hover a {
    filter: brightness(1.2);
    transform: scale(1.1);
    transition: transform 0.6s ease;
}


/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5em 1em;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: 0.4s;
}

/* Footer */
footer {
    background-color: #1b1b1b;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    width: 100%;
    z-index: 100;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.contact-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.contact-item img:hover {
    transform: scale(1.1);
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.copyright {
    font-size: 14px;
    color: #ccc;
}
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1e1e1e;
        padding-top: 60px;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0; /* Plus d'espace entre les liens */
    }

    nav ul {
        flex-direction: column; /* Les éléments du menu s'affichent en colonne */
        padding: 10px 0;
    }
    /* Burger animation classes */
    .burger-menu {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 101;
    }
    .burger-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    header {
        width: 100%;
        min-height: 25vh;
        margin: 0; /* Pas d'espace entre le haut de la page et le header */
        padding: 15px 0; /* Padding uniquement sur les côtés, pas en haut */
        border-radius: 20px;
    }
    

    header .intro h1 {
        font-size: 2rem;
    }

    header .intro p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .carousel-container {
        width: 90vw; /* Réduit la largeur pour mieux s'adapter aux petits écrans */
        height: 50vh; /* Ajuste la hauteur */
        margin-top: 20px; /* Ajoute une marge entre le header et le carousel */
    }

    .carousel-item {
        width: 150px; /* Réduit la taille des éléments */
        height: 230px;
    }

    .carousel-btn {
        font-size: 1.5rem; /* Réduit la taille des boutons de navigation */
        padding: 0.3em 0.8em;
    }
    

    footer {
        padding: 15px 0; /* Ajuste le padding pour mobile */
    }

    .footer-container {
        flex-direction: column; /* Organise les éléments du footer verticalement */
        gap: 20px;
    }
}
