

nav {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Modifié pour aligner les éléments */
    padding: 15px 25px;
    background: #02193e;
    box-shadow: inset 0px -1px 0px #c5c5c6;
    z-index: 1000;
}

nav {
    width: 100%;
    box-sizing: border-box; /* S'assure que le padding est inclus dans la largeur */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ajuste la répartition */
    padding: 0 20px; /* Ajuste les marges internes si nécessaire */
}

nav {
    top: 0;
    left: 0;
    z-index: 1000; /* Place le nav au-dessus des autres éléments */
}

.nav-icon {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
    padding: 15px;
}

.nav-icon .texte-logo {
    width: 200px;
}

.nav-icon .logo {
    width: 60px; /* Taille du logo augmentée */
}


.nav-icon .logo-v2 {
    width: 250px;
    height: auto;
}

.hamburger {
    display: none;
}

.navlinks-container a {
    margin: 0 10px;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: #FFFFFF;
    display: inline-block;
    position: relative;
}

.navlinks-container a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: #FFFFFF;
    transition: transform 0.3s ease-out;
}

.navlinks-container a:hover::after {
    transform: scaleX(1);
}


@media (max-width: 640px) {
    nav {
        padding: 15px 20px;
        position: relative;
    }

    .nav-icon {
        order: 2;
        margin: 0 auto;
    }

    .nav-icon span {
        font-size: 24px;
    }

    .main-navlinks {
        order: 1;
    }

    /* Hamburger */
    .hamburger {
        width: 30px; /* Taille du bouton hamburger augmentée */
        height: 25px; /* Taille ajustée */
        cursor: pointer;
        border: none;
        display: flex;
        background: #02193e;
        align-items: center;
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 4px; /* Barres du hamburger élargies */
        background: #FFFFFF;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
    }

    .hamburger span:nth-child(1),
    .hamburger span:nth-child(3) {
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1) {
        transform: translateY(8px); /* Ajusté pour la nouvelle taille */
    }

    .hamburger span:nth-child(3) {
        transform: translateY(-8px); /* Ajusté pour la nouvelle taille */
    }

    .hamburger.open span:nth-child(1) {
        transform: translate(0) rotate(135deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transition: opacity 0s ease-out;
    }

    .hamburger.open span:nth-child(3) {
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        background: #02193e;
        top: 100%;
        left: 0;
        height: fit-content;
        width: 100%;
        padding: 15px 50px 15px 20px;
        border-right: 1px solid #FFFFFF;
        transform: translate(-100%);
    }

    .open {
        transform: translate(0%);
    }

    .navlinks-container a {
        font-size: 18px;
        margin: 10px 0;
    }
}

/*ordinateur*/
@media screen and (min-width: 640px) {
    .nav-icon img {
        width: 50px; /* Taille du logo augmentée */
    }

    .nav-icon span {
        font-size: 28px; /* Taille du texte augmentée */
        font-weight: 700; /* Texte rendu plus gras */
    }
}

/* téléphone */
@media (max-width: 640px) {
    .nav-icon img {
        width: 50px; /* Taille du logo ajustée pour mobile */
    }

    .nav-icon span {
        font-size: 24px; /* Taille du texte ajustée pour mobile */
    }
}