/******* Menu ********/

nav#nav {
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  width: fit-content;
}
nav#nav > ul {
  margin: 1px 0;
  padding: 0;
  width: fit-content;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 624px;
}
nav#nav > ul > li {
  margin: 0;
  padding-inline: 8px;
  padding-block: 0 1px;

  text-transform: uppercase;
  color: white;
  border: solid 1px rgba(255, 255, 255, 0.6);
  box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.05);

  border-radius: 3px;
  list-style: none;
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: 150%;
  word-spacing: -1px;
  transition: background 0.2s;
}

nav#nav > ul > li.menu-accueil {
  display: none;
}

nav#nav > ul > li > a {
  text-decoration: none;
  color: white;
  width: 100%;
}
nav#nav > ul > li > a:checked {
  color: inherit;
}
nav#nav > ul > li:hover {
  background: var(--color-blue-dark);
}
nav#nav > ul > li::first-letter {
  font-size: 1rem;
}
.mobile_menu_bar::before {
  position: relative;
  top: 0;
  left: 0;
  font-size: 32px;
  text-shadow: 0 0;
  font-family: ETmodules !important;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-transform: none;
  content: "\61";
  cursor: pointer;
}

/*** drapeaux ***/
ul#menu-drapeaux {
  position: absolute;
  right: 10px;
  top: 2rem;
  height: fit-content;

  list-style-type: none;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-direction: column;
}
ul#menu-drapeaux li {
  transition: 0.5s ease-in-out;
}
ul#menu-drapeaux li:nth-child(1) {
  z-index: 1;
}
ul#menu-drapeaux li:nth-child(2) {
  translate: 0 -18px;
  opacity: 0;
}
ul#menu-drapeaux li:nth-child(3) {
  translate: 0 -36px;
  opacity: 0;
}
ul#menu-drapeaux:hover li {
  translate: 0;
  opacity: 1;
}

ul#menu-drapeaux img {
  display: block;
  width: 20px;
  height: auto;
}

/*** Boutou menu Hamburger ***/
[type="submit"],
button {
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  background: none;
  border: none;
  border-radius: 6px;
}
.btn-menu {
  padding: 10px;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  background: rgb(65, 139, 218, 0.9);
  border: solid 1px rgba(255, 255, 255, 0.5);
  transition: color 0.2s, background 0.3s;

  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: none; /*grand écran*/
}
.btn-menu:hover .btn-menu-icon span {
  transform: translateX(5px);
  transition: transform 0.3s, opacity 0.3s;
  border: 0;
}
.btn-menu[aria-expanded="true"] {
  color: #191918;
  color: #323230;
  background: #fff;
  transition: color 0.2s, background 0.3s;
  border: solid 1px #868684;
}
.btn-menu[aria-expanded="true"] .btn-menu-icon span {
  opacity: 0;
  transform: translateX(30px);
  transition: transform 0.3s, opacity 0.3s;
}
.btn-menu[aria-expanded="true"] .btn-menu-icon:before {
  top: 50%;
  background: #323230;
  transform: rotate(-45deg);
  transition: background 0.3s, transform 0.3s, top 0.3s;
}
.btn-menu[aria-expanded="true"] .btn-menu-icon:after {
  top: 50%;
  background: #323230;
  transform: rotate(45deg);
  transition: background 0.3s, transform 0.3s, top 0.3s;
}
.btn-menu[aria-expanded="true"] .btn-menu-label {
  display: none;
}
.btn-menu[aria-expanded="true"] .btn-menu-label:last-of-type {
  display: block;
}
.btn-menu-label {
  display: block;
}
.btn-menu-label:last-of-type {
  display: none;
}
.btn-menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  margin: 0 auto 5px;
}
.btn-menu-icon span {
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  top: 8px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}
.btn-menu-icon:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  top: 0;
  background: #fff;
  transition: background 0.3s, top 0.3s, transform 0.3s;
}
.btn-menu-icon:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  top: 16px;
  background: #fff;
  transition: background 0.3s, top 0.3s, transform 0.3s;
}

/*** fin bouton menu hamburger ***/

@media only screen and (max-width: 1200px) {
  nav#nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 0px;
    overflow: visible;
    z-index: 1;
    isolation: isolate;
  }

  nav#nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    width: 100%;
    max-width: max(50%, 360px);
    height: 100vh;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;

    z-index: 10;
    isolation: isolate;

    position: absolute;
    top: 0;
    left: 0;
    gap: clamp(0.4rem, -0.5rem + 4vw, 1rem);
  }
  nav#nav > ul > li {
    padding: 3px 0;
    background: #418bda;
    font-size: clamp(0.9rem, 0.3667rem + 2.1333vw, 1.1rem);
    font-size: 1.1rem;
    font-size: clamp(1rem, 0.7rem + 1.3333vw, 1.2rem);
    width: min(350px, 75%);
    margin-inline: auto;
    border-radius: 3px;
    border: solid 2px #418bda;
  }
  nav#nav > ul > li::first-letter {
    font-size: 1.2rem;
  }
  nav#nav > ul > li.menu-accueil {
    display: block;
  }
  nav#nav > ul > li a {
    width: 100%;
    display: block;
    color: #33587f;
    color: white;
  }
  .btn-menu {
    display: block;
    z-index: 11;
    top: 5px;
    left: 5px;
  }
}

@media only screen and (max-width: 500px) {
  nav#nav > ul {
    max-width: 100%;
  }

  ul#menu-drapeaux {
    display: none;
  }
}

/**** Fin Nouveau menu ****/
