/* Styles du header */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Avenir:wght@300;400;500;600;700&display=swap');

header {
  background-color: #ffffff;
  color: black;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  
}


.logo h1 {
  font-size: 2rem;
  color: #000000;
  letter-spacing: 1px;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
  line-height: 30px;
}

.logo a {
  text-decoration: none;
  color: #000000;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
  line-height: 30px;
}
/* Styles du bouton burger */
.menu-toggle {
  background: none;
  border: none;
  color: black;
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
}

/* Styles des liens de navigation */
.nav-links {
  font-family: 'avenir-lt-w01_35-light1475496, sans-serif';
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 400;
  line-height: 30px;
  color: #191919;
}

.nav-links a {
  font-family: 'avenir-lt-w01_35-light1475496, sans-serif';
  line-height: 30px;
  font-weight: 400;
  color: #191919;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #000000;
}

/* Media Query pour les petits écrans (mobile) */
@media (max-width: 768px) {
  /* Affichage du bouton burger */
  .menu-toggle {
    display: block;
  }

  /* Styles pour le menu burger */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Coller le menu juste en dessous du header */
    left: 0;
    background-color: whitesmoke;
    width: 100%;
    z-index: 100;
    padding: 3%;
    margin: 0; /* Retirer l'espacement externe */
  }

  /* Affichage du menu lorsque la classe 'active' est ajoutée */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid whitesmoke;
    text-align: center;
    font-size: 1.2rem;
  }

  .nav-links a:hover {
    background-color: #ffffff;
  }

  /* Styles du logo sur mobile */
  .logo h1 {
    font-size: 1.5rem;
  }
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 20px; /* Espacement entre les drapeaux */
}

.lang-flag {
  width: 30px; /* Taille par défaut des drapeaux */
  height: auto; /* Garde les proportions */
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 30%; /* Ajout des bords arrondis */
}

.lang-flag:hover {
  transform: scale(1.2); /* Effet au survol */
}


/* Règles spécifiques pour les petits écrans */
@media screen and (max-width: 768px) {
  .language-selector {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px; /* Ajoute un espacement sous le logo */
  }

  .logo {
    text-align: center;
  }

  .logo h1 {
    margin-bottom: 10px; /* Sépare visuellement le titre des drapeaux */
  }

  .lang-flag {
    width: 25px; /* Réduire la taille des drapeaux sur les petits écrans */
  }
}

@media screen and (max-width: 480px) {
  .language-selector {
    gap: 10px; /* Espacement réduit sur très petit écran */
    margin-top: 15px;
  }

  .lang-flag {
    width: 20px; /* Encore plus petit sur les très petits écrans */
  }
}
