
/*NavBar*/  
.h1{
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-variation-settings:"wdth" 100;
}

.name{
    position: fixed;
    height: fit-content;
    top: 14px;
    bottom: 0;
    left: 2em;
    z-index: 9999;
    font-family: "Roboto", sans-serif;
   font-optical-sizing: auto;
   font-weight: 800;
   font-style: normal;
   font-variation-settings: "wdth" 100;


}
.nav-logo {
    width: 90px;
    height: auto;
    padding: 0px;
    margin-left: 10px;
    z-index: 99;
}

@keyframes mymove {
    from {
        -webkit-backdrop-filter: saturate(100%) blur(0px);
        backdrop-filter: saturate(100%) blur(0px);
        background: rgba(0, 0, 0, 0.0);
    }

    to {
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        background: rgba(0, 0, 0, 0.5);
    }
}
.overlay {
    margin-top: 10px;
    position: absolute;
    height: 80px;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: start;
    padding-right: 30px;
    padding-left: 20px;
    z-index: 9999;
}





.nav-colored {
    background-color: #000;
}

.nav-transparent {
    background-color: transparent;
}


.overlay-two {
    display: flex;
    height: 22px;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-variant:all-petite-caps ;
}


.overlay-two>a {
    margin: 15px 10px;
    padding: 6px;
    line-height: 11px;
    color: #fff;
    height: 22px;
    font-size: 16px;
    transition: all .2s ease-in-out;
    letter-spacing: .5px;
    height: 20px;
}

.overlay-two>a:hover {
    padding: 6px;
    transform: translateY(-3px);
}

.overlay-two a {
    color: snow;
    text-decoration: none;
    font-size:  32px;
}
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background-color: white; 
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 9px);}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -9px);}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        opacity: 1;
    }
    
    /* Cache les nav-item par défaut sur mobile */
    .nav-item {
        display: none;
    }
    
    .overlay-two {
        position: fixed;
        top: 0;
        right: -100%; /* Vient de la droite */
        width: 300px; /* Largeur du menu */
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start; /* Commence en haut */
        align-items: flex-start; /* Aligné à gauche dans le menu */
        padding-top: 80px; /* Espace pour le hamburger */
        padding-left: 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .overlay-two.active {
        right: 0; /* Slide depuis la droite */
    }
    
    /* Affiche les nav-item en colonne */
    .overlay-two.active .nav-item {
        display: block;
        margin: 1.5rem 0;
        text-align: left;
    }

    .main-nav{
        flex-direction: column !important;
    }
    .overlay-two{
        height: auto !important;
        background: #000 !important;

    }


}