/*------- NAVBAR -------*/

.navbar {
    width: 100%;
    padding: 20px;
    border-bottom: 2px solid rgba(51,51,51,.25);
    display: flex;
    position: relative;
    background-color: #1d1d1d;
    box-sizing: border-box;
    align-items: start;
    justify-content: space-between;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.navbar .logo {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: .08em;
}

.navbar .nav-links {
    display: flex;
    font-size: 1.15rem;
    letter-spacing: .08em;
}

.navbar .nav-links .navbar-link {
    margin: 0 15px;
    display: inline-block;
    text-align: center;
    padding: 5px 10px;
    position: relative;
    transition: 0.2s linear;
}

.navbar .nav-links .navbar-link:hover {
    background-color: #3d3d3d;
    color: black;
    border-radius: 12px;
    transition: 0.4s linear;
}

.navbar .nav-links .navbar-link a.active::after {
    content: '';
    position: absolute;
    text-decoration: solid;
    top: 125%;
    left: 50%;
    width: 75%;
    height: 7px;
    border-radius: 20px;
    background-color: rgba(44, 119, 15, 0.749); /* Couleur de la barre verte */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar .play {
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
}

.navbar .play button {
    width: 250px;
    height: 30px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(44, 119, 15, 1.0) 0%, rgba(44, 119, 15, 0.875) 0.01%, rgba(44, 119, 15, 0.750) 100%);
    transition: color 1s cubic-bezier(0.06, 0.81, 0, 0.98);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .08em;
    border-radius: 12px;
    border-style: none;
    transition: 0.2s linear;
}

.navbar .play button:hover {
    box-shadow: 0 0 17px rgba(44, 119, 15, 0.753);
    transition: 0.2s linear;
}

.navbar .nav-mobile {
    z-index: 5;
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
}

.nav-mobile:hover {
    cursor: pointer;
}

@media screen and (max-width: 1125px) {
    .nav-links {
        z-index: 5;
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(255,255,255,0.50);
        backdrop-filter: blur(100px);
        -webkit-backdrop-filter: blur(100px); /* Préfixe pour Safari et certains navigateurs iOS */
        -moz-backdrop-filter: blur(100px); /* Préfixe pour certains navigateurs Firefox */
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -200%;
        transition: all 0.5s ease;
    }

    .navbar .nav-links .navbar-link {
        margin:  25px 0;
        font-size: 1.75em;
        font-weight: 800;
    }

    .nav-links.mobile-menu {
        z-index: 5;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar .play {
        display: none;
    }
    
    .navbar .nav-mobile {
        display: block;
    }

    
    .nav-dropdown-content {
        margin-left: 0px;
    }
}

@media screen and (max-height: 750px) {
    .navbar .nav-links .navbar-link {
        margin:  10px 0;
        font-size: 1.5em;
    }
    .nav-dropdown-content {
        margin-top: -15vh;
        right: 35vw;
    }
}


/* Style pour le menu déroulant */

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    border-radius: 12px;
    min-width: 50px;
    z-index: 1;
    margin-left: -5px;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* Style pour les éléments du menu déroulant */
.nav-dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}