:root {
  --main-blue: #0A3563;
}





/* Empêche un parent de limiter la largeur du header */
header.base-layer, 
.base-layer {
  width: 100vw !important;
  max-width: 100% !important;
}
body {
  overflow-x: hidden; /* supprime la barre de scroll horizontale */
}

/* BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* HEADER */
.base-layer {
  background-color: var(--main-blue);
  padding: 12px 30px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* LOGO */
.logo {
  width: 130px;
  height: auto;
}

/* LANGUAGE SWITCH */
.language-switch {
  display: flex;
  gap: 8px;
  margin-left: 20px; /* ?? drapeaux plus proches du logo */
}

.language-switch img {
  width: 40px;
  cursor: pointer;
  transition: 0.25s;
}

.language-switch img:hover {
  transform: scale(1.1);
}

/* NAV */
.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: #00aaff;
}

/* --- Bouton remonter en haut --- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #0A3563;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  opacity: 0.8;
  transition: 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .header-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .main-nav {
    flex-wrap: wrap;
   no flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    width: 130px;
  }
  
  .language-switch img {
    width: 38px;
  }
  /* Correction spéciale pour index */
header .language-switch img {
  width: 42px !important;   /* même taille que partout */
  height: auto !important;
}

}