.section__navbar {
    margin: 60px 6%;
    background: rgba(31, 31, 49, 0.062);
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    font-weight: bold;
    color: var(--colorDefault);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar__brand:hover {
    color: #5f5f5f;
}

.navbar__nav ul {
    display: inline-flex;
    flex-direction: row;
    list-style-type: none;
}

.navbar__href {
    text-decoration: none;
}

.navbar__href .active {
    color: var(--colorDefault);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.navbar__link {
    margin: 0 20px;
    color: #A49FB4;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.4s ease, transform 0.3s ease;
}

.navbar__link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 50%;
    bottom: -5px;
    background-color: var(--colorMain);
    transition: width 0.3s ease, left 0.3s ease;
}

/* Affiche le soulignement et la couleur pour l'onglet actif (comme au survol) */
.navbar__link.active {
    color: var(--colorDefault);
}
.navbar__link.active::after {
    width: 100%;
    left: 0;
}

.navbar__link:hover::after {
    width: 100%;
    left: 0;
}

.navbar__link:hover {
    color: #fff;
    transform: translateY(-3px);
}

.navbar__menu {
    display: none;
}

@media only screen and (max-width: 1100px) {
    .section__navbar {
        margin: 30px 6%;
    }

    .navbar__header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .navbar__nav {
        display: none;
    }

    .navbar__nav--active {
        z-index: 999;
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        padding: 25px 0;
        transition: all 0.5s ease;
    }

    .navbar__nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .navbar__link {
        margin: 10px 0;
        font-size: 18px;
    }

    .navbar__menu {
        display: block;
        cursor: pointer;
    }

    .navbar__menu-icon {
        width: 30px;
        height: 30px;
        background-color: var(--colorDefault);
        border-radius: 5px;
        position: relative;
    }

    .navbar__menu-icon::before,
    .navbar__menu-icon::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 3px;
        background-color: #9c2f2f;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    .navbar__menu-icon::before {
        top: 8px;
    }

    .navbar__menu-icon::after {
        top: 18px;
    }

    .navbar__menu.open .navbar__menu-icon::before {
        transform: translateX(-50%) rotate(45deg);
        top: 13px;
    }

    .navbar__menu.open .navbar__menu-icon::after {
        transform: translateX(-50%) rotate(-45deg);
        top: 13px;
    }
}

