#longermenu {
  min-width: 2rem;
}
.clicked{
  background-color: var(--BLEU) !important;
}
.clickedtitle{
  color: white !important;
}
#globalnav {
  font-family: "TuffyRegular";
  flex-direction: row;
  align-items: stretch;
  min-width: 60%;
  max-width: 160rem;
  padding: 0;
  font-size: 3rem;
  text-align: center;
  margin-left: auto;
  min-height: 6rem;
  justify-content: flex-end;
}

#globalnav>* {
  padding: 1rem;
}

#globalnav>*:not(.dropdown) {
  display: flex;
}

#globalnav span {
  margin: auto;
  padding: 0;
  white-space: pre;
}

#globalnav span :not(.dropdownSpan) {
  display: block;
}

#globalnav a {
  flex: 1;
  vertical-align: middle;
  color: var(--BLEU);
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

#globalnav a:hover {
  color: white;
  background-color: var(--BLEUCLAIR);
}

#globalnav div:not(.dropdown):not(.dropdown-content) {
  flex: 1;
  background-color: var(--BLEU);
  color: white;
}


.logo {
  margin: auto auto auto 0;
}

.logo img {
  width: auto;
  max-height: 4rem;
}

.mobile-nav-button {
  display: none;
  background-color: var(--BLEU);
  color: white;
  border: none;
  padding: 1vmin;
  width: 5vh;
  max-height: 5vh;
  font-weight: 1000;
  font-size: 2.5vh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-hover:hover {
  color: #ee8670;
  background-color: white;
  box-shadow: 1px 1px 2px 1px #909090;
}

#globalnav {
  animation: fadeIn 0.5s ease-in-out;
}

@media (max-width: 1100px) {
  .logo-and-navigation {
    width: 96% !important;
  }
}

/* Style de la liste déroulante */
.dropdown {
  position: relative;
  display: inline-block;
}

.activeElement {
  background-color: var(--BLEU) !important;
  color: white !important;
}

.dropdown:hover .dropbtn {
  color: white !important;
}

/* Style de la liste déroulante elle-même */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100%;
  z-index: 1;
  box-shadow: 0 0.5rem 1.5rem 0 rgba(0, 0, 0, 0.2);
  text-align: start;
}

/* Style des liens dans la liste déroulante */
.dropdown-content a {
  color: black;
  text-decoration: none;
  display: block;
}

/* Changement de couleur du lien au survol */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}



.dropdown-content a {
  display: block;
  min-height: 3vh;
}

/* Style des éléments de la navigation */
.navigation {
  display: flex;
  align-items: center;
}

/* Autres styles de navigation que vous pourriez avoir */
.navigation a {
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.navigation a:hover {
  background-color: #f1f1f1;
}

/** Footer non confirmé **/

footer {
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: bottom;
  font-size: 1.6rem;
  padding: 2rem;
  width: 95%;
  min-width: 90rem;
  min-height: 9rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  max-width: 250rem;
}

.back_img2 {
  background-image: url(../img/main3_leafc.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-size: 23rem;
}

#ft_ft {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

#ft_logo img {
  width: 25rem;
  min-width: 7.5rem;
}

#ft_menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 12rem;
}

#ft_text {
  padding-top: 3rem;
  width: 88%;
  display: flex;
  justify-content: flex-end;
}

#ft_back img {
  border: 0;
  height: 4rem;
  width: auto;
}

#ft_back {
  min-width: 12rem;
}

#ft_back img:hover {
  height: 4.5rem;
}

#haut_page {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  width: 80%;
}

#ml {
  position: fixed;
  bottom: 0;
  flex-direction: column;
  justify-content: end;
}

.ml_show {
  overflow: visible;
  display: flex;
  height: 100rem;
  animation-duration: 3s;
  animation-name: slide_mlshow;
}

.ml_hide {
  display: none;
}

@keyframes slide_mlshow {
  from {
    height: 0;
  }

  to {
    height: 100rem;
  }
}

#footerPart2 {
  display: flex;
  width: 35%;
  justify-content: space-between;
}

#ml_block {
  position: relative;
  background-color: white;
  font-size: 2.5rem;
  border: var(--BLEU) 3px solid;
  border-bottom: 0;
  padding: 3rem;
  padding-bottom: 1rem;
  overflow: hidden;
}

#ml_title {
  font-family: "BebasNeue";
  font-size: 4rem;
  color: var(--BLEU);
}

.ml_text h4 {
  font-size: 2.8rem;
  color: var(--BLEU);
}

#ml_close {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--SAUMON);
  border: var(--SAUMON) 2px solid;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  padding: 8px;
  padding-top: 0;
  padding-bottom: 3px;
}

#ml_close:hover {
  color: var(--SAUMON);
  background-color: white;
}

#ft_menu a,
#ft_back a {
  text-decoration: none;
  /* Supprime la ligne (soulignement) des liens */
  color: var(--BLEU);
  /* font-size: 1.7rem; */
}

.header {
  position: fixed; /* ou sticky */
  text-align: center;
  width: 100%;
  /*min-height: 8vh;*/
  position: fixed;
  background-color: #fffffff0;
  z-index: 10000;
  display: block;
  top: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}


#code_barre_img {
  max-width: 15rem;
  padding: 1rem 2rem;
}

.logo-and-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  width: 85%;
  max-width: 250rem;
}

.navigation {
  display: flex;
}

.logo_index {
  margin: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.logo_index img {
  width: auto;
  height: 16vmin;
}

.imgAnim {
  animation: fadeIn 2s cubic-bezier(0.54, -0.56, 0.45, 0.94) infinite;
  opacity: 1;
}

#main1_logo img {
  animation: fadeIn 2s;
}


@media (min-aspect-ratio: 3/4) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
  .dropdown:hover {
    background-color: var(--BLEUCLAIR);
    color: white !important;
  }

}
@media (max-aspect-ratio: 3/4) {
  #globalnav {
    font-size: 2.4vh;
  }
  #globalnav>* {
    padding: 0;
  }
  #globalnav span {
    padding: 1vh;
    font-weight: bold;
    margin: initial;
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
  }
  .logo img {
    max-height: 10rem;
  }
  .dropdown a {
    font-weight: bold;
  }
  #globalnav div:not(.dropdown):not(.dropdown-content) {
    background-color: var(--BLEUCLAIR);
  }
  .logo-and-navigation {
    width: 100% !important;
    min-height: 7vh;
  }

  #globalnav a {
    color: #ffffff;
  }

  .mobile-nav-button {
    display: block;
  }


  #globalnav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 7vh;
    left: 0;
    right: 0;
    background-color: var(--BLEU);
    z-index: 1;
    max-width: 80%;
    padding: 2vh 0;
  }

  #globalnav>* {
    width: 100%;
  }

  .logo img {
    height: 7vmin;
    padding: 1vmin;
    margin-left: 13%;
  }

  #espace {
    padding: 9rem;
  }
  .dropdown.clicked .dropdown-content {
    display: block;
  }

  .dropdown-content {
    display: none;
    flex-direction: column;
    position: relative;
    background-color: var(--BLEU);
    box-shadow: none;
    border-radius: none;
    top: 0;
    left: 0;
    text-align: center;
  }
  .dropbtn {
    display: flex !important;
    width: 100% !important;
  }

  .dropdown {
    padding: 0 !important;
  }

  .dropdown-content a {
    display: flex !important;
  }
  #ft_text {
    width: auto;
    justify-content: center;
  }

  #ft_menu a,
  #ft_back a {
    font-size: 4.5rem;
    margin: auto;
  }

  #ft_back {
    padding-bottom: 1.5vh;
  }

  #haut_page {
    width: 100%;
  }


  #ml {
    font-size: 1.75rem;
  }

  #ml_title {
    font-size: 3rem;
  }

  .ml_text h4 {
    font-size: 2.1rem;
  }

  #ml_block {
    font-size: 1.87rem;
  }

  footer {
    align-items: center;
    text-align: center;
    font-size: 4.5rem;
    padding: 2rem;
  }

  #ft_text {
    font-size: 3rem;
  }

  #haut_page {
    padding-top: 3rem;
    font-size: 3rem !important;
  }

  #ft_back img {
    height: 6.5rem;
  }

  #ft_ft {
    display: flex;
    flex-direction: column-reverse;
    gap: 2vh;
    align-items: center;
    max-width: 100%;
  }

  #footerPart2 {
    text-align: start;
  }

  #code_barre_img {
    max-width: 18rem;
    padding: 0rem 3rem;
  }
  #href_codde_barre {
    height: 7vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }
  .logo {
    margin: auto;
  }
}
@media (max-width: 750px) {
  #ft_ft {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: center;
    max-width: 100%;
  }

  #ft_logo img {
    width: 50rem;
  }
  #ft_logo{
    padding-top: 4rem;
  }

  #ml {
    font-size: 1.75rem;
  }

  #ml_title {
    font-size: 3rem;
  }

  .ml_text h4 {
    font-size: 2.1rem;
  }

  #ml_block {
    font-size: 1.87rem;
  }

  footer {
    align-items: center;
    text-align: center;
    font-size: 3rem;
    padding: 2rem;
  }

  #haut_page {
    padding-top: 3rem;
    font-size: 3rem !important;
  }

  #ft_back img {
    height: 6rem;
  }

  #ft_menu a,
  #ft_back a {
    font-size: 3.5rem;
    margin: auto;
  }

  #ft_menu,
  #ft_back {
    gap: 2rem;
  }

  #haut_page {
    width: 100%;
  }

  #footerPart2 {
    justify-content: space-between;
    width: 95%;
  }
  #ft_text {
    padding-bottom: 3rem;
  }
}