header {
    background-color: #000;
    color: white;
    padding: 10px 0;
 position: fixed;
 width: 100%;
 height: 100px;
 top: 0;
 z-index: 2;
 border-bottom: solid 7px var(--bordure);
padding: 0;
}

nav {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  max-width: var(--taille-zone-base);

}

nav div {
  margin-top: auto;
  margin-bottom: auto;

}



nav div a {
    height: 100%;
    color: white;
    text-decoration: none;
}

 #navDroite a {

    margin-left: 30px;


}

nav #navDroite a:hover {
    text-shadow: #ff5608 1px 0px 15px ;
    color: var(--txt-important);

}


#navGauche a {
  text-align: left;
  font-size: 30px;
  color: #ffffff;
  font-weight: bold;
}

#burger-menu {
  width: 70%;
margin-left: auto;

  display: flex;
}

#navDroite {

text-align: right;
margin-left: auto;

    flex-direction: row;
}

#onthepage {

  color: var(--bordure);
}

#burger-menu {
    position: relative;
}

#burger-toggle {
    display: none; /* Caché par défaut */
    width: 50px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

#burger-toggle span {
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#burger-toggle span:nth-child(1) {
    top: 0;
}

#burger-toggle span:nth-child(2) {
    top: 12px;
}

#burger-toggle span:nth-child(3) {
    top: 24px;
}

/* Styles quand le menu est ouvert */
#burger-menu.open #burger-toggle span:nth-child(1) {
    transform: translateY(12px) rotate(45deg); /* Ligne du haut devient la diagonale supérieure */
}

#burger-menu.open #burger-toggle span:nth-child(2) {
    opacity: 0; /* Ligne du milieu disparaît */
}

#burger-menu.open #burger-toggle span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg); /* Ligne du bas devient la diagonale inférieure */
}

@media screen and (min-width: 1020px){


#navDroite a {
   font-size: 25px;}
 }

@media screen and (max-width: 1500px){

  #navGauche a {

    font-size: 20px;


  }
}

@media screen and (max-width: 1020px) {

#navGauche {
  display: flex;

}

#navGauche a {
  margin-right: 20px;
  font-size: 30px;
}

    #burger-toggle {
        display: block;

        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
        z-index: 11;
        position: relative;
        right: 25px;
    }

    #navDroite {
        position: fixed;
        top: 100px;
        right: -307px; /* Masqué hors de l'écran */
        width: 300px;
        height: 100%;
        background-color: #000;

        flex-direction: column;

        align-items: center;
        text-align: center;
        transition: right 0.3s ease-in-out; /* Animation coulissante */
        z-index: 10;
        display: flex;
        margin-bottom: auto;
        border-left:solid 7px var(--bordure);
    }

    #burger-menu.open #navDroite {
        right: 0; /* Le volet apparaît sur la droite */
    }

    #navDroite a {
        font-size: 30px;
        margin: 25px 0;
        height: auto;
    }



    #burger-menu{
      width: auto;
    }
}

/* Cacher le bouton burger sur les grands écrans */
