/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Styles pour la barre de navigation */
.navbar-active {
    color:aquamarine;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar ul li {
    margin: 0 20px;
}

.navbar ul li .navbar-inactive {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: cyan;
}



/* Container principal */
.container {

    background-image: url(./Divers/Back.webp);
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px; /* Pour éviter de chevaucher la barre de navigation */
    color: #fff;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Info Section Styles */
.info-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    animation: slideIn 1s ease-in-out;
}

/* Barre de contact en bas */
.contact-bar {
    background: rgba(0, 0, 0, 0.25);
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.contact-bar div a {
    color: cyan;
    text-decoration: none;
    font-weight: bold;
}

.contact-bar div a:hover {
    color: white;
}



/* Animations */
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Styles du carousel */
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

.carousel-images {
    display: flex;
    overflow: hidden;
    width: 100%;
    border-radius: 15px; /* Ajoute un border-radius à l'ensemble du conteneur d'images */
}

.carousel-images .carousel-img {
    width: 100%;
    display: none;
    transition: opacity 0.5s ease;
    border-radius: 15px; /* Ajoute un border-radius pour chaque image */
}

.carousel-images .carousel-img.active {
    display: block;
    opacity: 1;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    font-size: 24px;
    border-radius: 50%; /* Rend les boutons de navigation circulaires */
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#logo {
    height:30px;
    width : 30px;   
    color: white;
    margin-left : 12px;
}

#logo:hover{
    color : cyan ;
}


/* Responsive Design */
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-images img {
        border-radius: 10px; /* Ajuste le border-radius pour les petits écrans */
    }
}

