/* ========== Structure généraliste du site ========== */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    height: 100%; 
}

body { 
    font-family: Arial, sans-serif;
    background-color: #071d3185;
}

/* ========== Layout structure (optionnel et neutre) ========== */
/* Laisse la page gérer son design. Le wrapper permet juste le sticky footer si tu l'utilises. */
.wrapper { 
    min-height: 100dvh; 
    display: flex; 
    flex-direction: column; 
}

nav {
  background-color: #021b2ff0;
  height: 80px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo img {
  max-height: 125px;
  width: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu.open { /* Affiche les onglets du menu burger */
  display: flex;
}

.menu li { 
  position: relative; 
}

.menu a {
  text-decoration: none;
  color: #fff;
  display: block;
  padding: 10px 20px;
  border-radius: 40px;
  transition: background-color .25s ease, color .25s ease;
}

.menu a:hover { 
    background-color: #03395B; 
    color: #00c2e5;
}

/* Sous-menu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #021b2ff0;
  list-style: none;
  padding: 0;
  border-radius: 20px;
  min-width: 150px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 1000;
  white-space: nowrap;
}

.submenu li { 
    margin: 0; 
}

.submenu a { 
    margin: 0; 
    padding: 10px; 
    display: block; 
}

.submenu a:hover { 
    background-color: #03395B;
}

.menu li:hover > .submenu { 
    display: block; 
}

main { 
  flex: 1 0 auto; 
}

/* Structure du footer sur toutes les pages du site */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background-color: #021b2ff0;
  color: #ffffff;
  width: 100%;
}

footer .reseaux {
  display: flex;
  gap: 15px;
}

footer .reseaux img {
  height: 40px;
  width: 40px;
  border-radius: 40px;
  transition: transform .33s ease;
  cursor: pointer;
}

footer .reseaux img:hover { 
    transform: scale(1.1); 
}

/* Burger caché par défaut (desktop) */
.burger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  /* NAVIGATION */
  nav {
    flex-wrap: wrap; /* autorise retour à la ligne */
    height: auto; /* laisse respirer */
    padding: 10px 16px;
  }

  .menu {
    flex-direction: column;   /* menu vertical */
    width: 100%;
    display: none;            /* caché par défaut (on activera via JS si besoin) */
    background-color: #021b2ff0;
    border-radius: 12px;
    margin-top: 10px;
    padding: 10px 0;
  }

  .menu li {
    text-align: center;
  }

  .menu a {
    padding: 12px;
    border-radius: 0; /* pas de gros arrondis en mobile */
  }

  /* Bouton burger */
  .burger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
  }
}

/* Footer en mobile */
@media (max-width: 600px) {
  footer {
    padding: 15px;
    gap: 8px;
  }

  footer .reseaux img {
    height: 32px;
    width: 32px;
  }
}