/* MENU STYLE FICHES ----------------------------------------- */

#haut {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#righthead {
  padding-right: calc(5vw + 10px);
}

#righthead ul {
  list-style-type: none;
}

#middlehead ul {
  list-style-type: none;
}

#righthead li, #middlehead li {
  float: left;
}

#middlehead .middleheadul {
  /* margin-top: 35px; */
  padding-left: 0px;
}

#righthead .dropbtn, #middlehead .dropbtn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-right: 5px;
  padding : 4px;
  border: 1px #ffffff solid;
  background: rgba(238, 141, 111, 0.5);
  border-radius: 4px;
  color: #ffffff;
  /* font-weight: bold; */
  line-height: 1.8;
  font-size: 18px;
}

#middlehead .dropbtn {
  width: 145px;
}

#righthead li #menu_search {
  margin-right: 5px;
  border: 1px #ffffff solid;
  border-radius: 4px;
}

#righthead li #menu_search input.textbox {
  background: rgba(238, 141, 111, 0.5);
  color: #ffffff;
  border: none;
  vertical-align: middle;
  padding: 11px 0px 11px 5px;
}

#righthead li #menu_search #button_search_menu {
  margin-top: 0px;
  margin-left: -4px;
  background: rgba(238, 141, 111, 0.5);
  border-left: 1px #fff solid;
  border-top : none;
  border-right: none; 
  border-bottom: none;
  color: #ffffff;
  font-size: 18px;
  vertical-align: middle;
  padding: 11px 10px;
}

/* #righthead .menu_search_more { */
/*   margin-top: 7px; */
/*   margin-left: -3px; */
/* } */

#righthead .menu_search_more .dropbtn {
  border: none;
  margin-top: 10px;
  background: none;
  opacity: 0.5;
}

#righthead .alerts .dropbtn {
  border: none;
  padding-top: 3px;
  background: none;
  font-weight: bold;
  line-height: 1;
}

#righthead .rightheadul .alerts--new a:hover, #righthead .rightheadul .alerts a:hover {
  color: #fff !important;
}

#righthead .alerts .myalerts .far {
  font-weight: 600;
}

#righthead #member_menu .dropbtn {
  border: none;
  background: none;
  padding:0px;
  height: 50px;
}

#righthead .dropdown-content, #middlehead .dropdown-content {
  /* display: none; */
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity linear;
  position: absolute;
  background-color: #f9f9f9;
  width: 155px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  /* z-index: -1; */
  border-radius: 4px;
  transition-duration : 0.5s;
}

#righthead .dropdown-content a, #middlehead .dropdown-content a {
  color: black;
  margin: 0;
  text-decoration: none;
  display: block;
  text-align: left;
  padding: 7px 7px 7px 10px;
  border-left: 2px solid transparent;
  font-size: 14px;
}

#righthead .dropdown-content a:hover, #middlehead .dropdown-content a:hover {
  /* background-color: #FFFFE0; */
  background-color: #DAAC9C;
  opacity: 0.8;
  border-left: 2px solid #000;
  /* color: rgb(134,134,134) !important; */
  color: #fff !important;
}

#righthead .dropdown:hover .dropdown-content, #middlehead .dropdown:hover .dropdown-content {
  /* display: block; */
  visibility: visible;
  opacity: 1;
  transition-duration : 0.5s;
}

#righthead .dropdown-content a:first-of-type, #middlehead .dropdown-content a:first-of-type {
  border-radius: 5px 5px 0px 0px;
}

#righthead .dropdown-content a:last-of-type, #middlehead .dropdown-content a:last-of-type {
  border-radius: 0px 0px 5px 5px;
}

#righthead #member_menu .dropdown-content {
  margin-left: calc(3.125vw - 120px);
}

#avat_menu {
  height: 50px;
  width: auto;
  border-radius: 100%;
}

#fofomenu {
  background: rgba(238, 141, 111, 0.7) !important;
}

#middlehead .middleheadul #fofomenu {
  width: clamp(100px,7.8vw,145px);
}

#righthead a.dropbtn:hover, #middlehead a.dropbtn:hover {
  /* color: rgb(134,134,134) !important; */
  color: #b62313 !important;
}

#middlehead .middleheadul, #righthead .rightheadul {
  display: table-cell;
  height: 100px;
  vertical-align: middle;
}

#righthead .rightheadul .dropdown, #righthead .rightheadul .alerts {
  float: none;
  display: inline-block;
  vertical-align: middle;
}

/* #righthead .rightheadul li#member_menu { */
/*   margin-top: 9px; */
/* } */

#righthead .rightheadul li#member_menu i {
  margin-left: -5px;
}

#righthead #member_menu a:hover.dropbtn i {
  color: #fff;
}

#lefthead .rightheadul {
    display: none;
}

#righthead .menu_search_more {
  display: none;
}

#righthead #member_menu {
  height: 50px;
}

#righthead .rightheadul {
  padding-left: 0px;
}

#righthead .dropbtn sup {
  font-size: 14px;
}

#righthead .alerts .dropbtn .fa-bell {
  font-size: 24px;
}

#righthead .rightheadul .alerts {
  color: #fff;
  opacity: 0.9;
}

#righthead .rightheadul .alerts:hover {
  opacity: 1;
}

#logo img {
  height: 90px;
  width: auto;
  padding-top: 5px;
}

#logofull img {
  height: 90px;
  width: auto;
  padding-top: 5px;
  padding-left: calc(5vw + 10px);
}

/**** Responsive ****/

@media (max-width: 1280px) {
	#righthead {
		padding-right: 5px;
	}

	.elementright {
		display:none;
	}
}

/* @media (max-width: 1480px) { */
@media (max-width: 1538px) {
 #logofull img {
    padding-left: max(10px, calc(50vw - 640px));
  }
  #righthead .rightheadul .menu_search_more .dropbtn {
    font-size: 24px;
    margin-top: 0px;
    opacity: 1;
  }
  #righthead .rightheadul .menu_search_more.menu_search_more_visitor .dropbtn {
    margin-top: 0.5vw;
  }
  #righthead .rightheadul .menu_search_more {
    float: none;
    vertical-align: middle;
  }
  #righthead .rightheadul #menu_search_li {
    display: none;
  }
/*   #middlehead .middleheadul .dropdown .dropbtn, #middlehead .middleheadul #fofomenu, #righthead .rightheadul .dropbtn { */
/*     font-size: clamp(0.5rem, 1.3vw, 3vw); */
/*   } */
/*   #middlehead .dropbtn { */
/*     width: auto; */
/*   } */
  #logofull img {
    /* height: auto; */
    height: clamp(40px, 6.8vw, 90px);
    /* width: clamp(212px, 35vw, 414px); */
    width: auto;
    padding-top: max(5px, calc(50px - 3.5vw));
  }
  #righthead .dropbtn .fa-search-plus {
  color: #fff;
  opacity: 0.9;
  filter: blur(0.5px);
  }
  #righthead .dropbtn .fa-search-plus:hover {
  opacity: 1;
  }
  #righthead #member_menu .dropbtn {
    height: clamp(30px, 4vw, 50px);
  }
  #righthead #member_menu {
    height: clamp(30px, 4vw, 50px);
  }
  #logofull img {
    padding-left: max(5px, calc(50vw - 640px));
  }
  #righthead {
    padding-right: max(10px, calc(50vw - 640px));
  }
/* MENU STYLE FICHES ----------------------------------------- */
  #avat_menu {
    height: clamp(30px, 4vw, 50px);
    width: auto;
  }
  #righthead .rightheadul .menu_search_more .dropbtn {
    font-size: clamp(14px, 2vw, 24px);
  }
  #righthead .rightheadul .alerts .dropbtn {
    font-size: clamp(14px, 1.4vw, 17px);
  }
  #righthead .menu_search_more {
    display: inline-block;
  }
}

/* @media (max-width: 960px) { */
@media (max-width: 1170px) {
  #haut {
    min-height: 50px;
    max-height: 140px;
    background-size: cover;
  }
  #haut #lefthead {
    margin-left: 32%;
  }
  #logo img {
    padding-top: 5px;
    height: clamp(40px, 6.8vw, 90px);
    width: auto;
  }
  #avat_menu {
    height: clamp(30px, 5vw, 50px);
  }
  .logoff {
    padding-top: 10px;
  }
  .logoff a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* MINI MENU ---------------------------------------- */

/* @media (max-width: 960px) { */
@media (max-width: 1170px) {
  #mobile_member {
    /* margin-top: clamp(-25px, -1vw, 20px); */
  }
  #haut {
    flex-direction: column;
    /* height: clamp(80px, 8vw, 240px); */
  }
  #logofull {
    display:none;
  }
  #logo, #logo:hover {
    padding: 0px;
  }
  #haut #lefthead {
    margin: 0px;
  }
  #haut #middlehead {
    display:inline;
    margin-left: auto;
    margin-right: auto;
    /* padding-top: 10px; */
    /* padding-bottom: 10px; */
    height: clamp(40px, 5vw, 100px);
  }
  #middlehead .middleheadul {
    margin-top: 5px;
    padding-left: 0px;
    height: auto;
  }
  #middlehead .middleheadul .dropdown .dropbtn, #middlehead .middleheadul #fofomenu, #lefthead .rightheadul .dropbtn, #middlehead .dropbtn {
    font-size: clamp(13px, 1.7vw, 16px);
    padding-left: 10px;
    padding-right: 10px;
  }
  #righthead {
  display: none;
  }
  #lefthead {
      /* height: clamp(46px, 8vw, 90px); */
      min-height: 46px;
      max-height: 90px;
      height: calc(8vw + 5px);
  }
  #lefthead .rightheadul {
    display: inline-block;
  }
  #lefthead ul.rightheadul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
/*   #lefthead .rightheadul li { */
/*     float: left; */
/*   } */
  #lefthead .rightheadul .dropbtn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-right: 5px;
    border: 1px #ffffff solid;
    background: rgba(238, 141, 111, 0.5);
    border-radius: 4px;
    color: #ffffff;
    line-height: 1.8;
  }
  #lefthead .rightheadul .menu_search_more .dropbtn {
    border: none;
    background: none;
    font-size: clamp(20px, 3vw, 24px);
    margin-top: 10px;
    opacity: 1;
    margin-left: 40px;
  }
  #lefthead .rightheadul .alerts .dropbtn {
    border: none;
    margin-top: 10px;
    margin-left: 10px;
    background: none;
    font-weight: bold;
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1;
  }
  #lefthead .rightheadul .alerts .myalerts .far {
    font-weight: 600;
  }
  #lefthead .rightheadul .alerts .dropbtn sup {
      font-size: 14px;
  }
  #lefthead .rightheadlul .alerts .myalerts .far {
    font-weight: 600;
  }
  #lefthead .rightheadul #member_menu .dropbtn {
    border: none;
    background: none;
    padding-top: 10px;
    padding-right: 0px;
    padding-left: 10px;
    padding-bottom: 0px;
  }

  #lefthead .rightheadul .dropdown-content {
    /* display: none; */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity linear;
    position: absolute;
    background-color: #f9f9f9;
    width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 5000;
    border-radius: 4px;
    transition-duration : 0.5s;
  }

  #lefthead .rightheadul .dropdown-content a {
    color: black;
    margin: 0;
    text-decoration: none;
    display: block;
    text-align: left;
    padding: 7px 7px 7px 10px;
    border-left: 2px solid transparent;
    font-size: 14px;
  }

  #lefthead .rightheadul .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transition-duration : 0.5s;
  }

  #lefthead .rightheadul .dropdown-content a:hover {
    background-color: #DAAC9C;
    opacity: 0.8;
    border-left: 2px solid #000;
    color: #fff !importante;
  }

  #lefthead .rightheadul .dropdown-content a:first-of-type {
    border-radius: 4px 4px 0px 0px;
  }

  #lefthead .rightheadul .dropdown-content a:last-of-type {
    border-radius: 0px 0px 5px 5px;
  }

  #lefthead .rightheadul #member_menu .dropdown-content {
    margin-left: -60px;
  }
  #lefthead .rightheadul a.dropbtn:hover {
    color: rgb(134,134,134) !important;
  }
  #lefthead .rightheadul .menu_search_more .fas.fa-search-plus {
    line-height: 1.8;
  }
  #lefthead .rightheadul .fa-search-plus, #lefthead .rightheadul .alerts a.dropbtn {
  color: #fff !important;
  opacity: 0.9;
  }
  #lefthead .rightheadul .fa-search-plus:hover, #lefthead .rightheadul .alerts a.dropbtn:hover {
  opacity: 1;
  }
}

/* 600px ---------------------------------------- */

@media (max-width: 660px) {
  #middlehead .middleheadul .dropdown .dropbtn, #middlehead .middleheadul #fofomenu, #lefthead .rightheadul .dropbtn, #middlehead .dropbtn {
    font-size: clamp(12px, 1.7vw, 16px);
    padding-left: 4px;
    padding-right: 4px;
    width: auto;
  }
  #logo img {
    padding-bottom: 5px;
  }
  #haut #middlehead {
    padding-top: 5px;
  }
}