header {
  position: fixed;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-height: 80px;
  width: 100%;
  max-width: none;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding-left: clamp(20px, 4vw, 80px);
  padding-right: clamp(20px, 4vw, 80px);
  background: var(--darkestblue);
  transition: .2s linear all;
  z-index: 10;
  box-sizing: border-box;
}
.rightToLeft header {
  flex-direction: row-reverse;
}
header:hover,
header.scrolled {
  box-shadow: 0px 10px 24px -8px rgba(0,0,0,0.35);
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 80px;
  flex-shrink: 0;
}
header .logo {
  width: 120px;
  height: 44px;
  background-image: url('../img/logo/bmdav_blanc.png');
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.brand-subtitle {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 600;
  border-left: 1px solid rgba(255,255,255,.25);
  padding-left: 12px;
}
header nav {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.rightToLeft header nav {
  flex-direction: row-reverse;
}
.rightToLeft .brand-subtitle {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.25);
  padding-left: 0;
  padding-right: 12px;
}
header nav ul {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  overflow: hidden;
}
header nav ul li {
  position: relative;
  width: auto;
  height: auto;
  line-height: 80px;
  flex-shrink: 0;
  font-weight: bold;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}
.rightToLeft header nav ul li {
  font-size: 18px;
  font-family: 'El Messiri', sans-serif !important;
}
.rightToLeft header nav ul {
  flex-direction: row-reverse;
}
header nav ul li .hpill {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
header nav ul li .hpill {
  position: relative;
  width: auto;
  height: auto;
  line-height: 20px;
  padding-top: 3px;
  padding-bottom: 2px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: none;
  border-radius: 13px;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, border-radius .2s ease;
}
header nav ul li:hover > .hpill {
  color: #FF7A00;
  background-color: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  border-radius: 6px;
}
.navlink {
  display: inline-block;
  text-decoration: none;
  position: relative;
}
.navlink.active {
  color: white;
}
.navlink.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
}
header nav ul li ul.dropdown {
  position: fixed;
  width: 100%;
  max-width: 1800px;
  box-sizing: border-box;
  height: auto;
  padding-top: 40px;
  padding-bottom: 60px;
  top: 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding-left: clamp(40px, 10vw, 200px);
  padding-right: clamp(40px, 6vw, 120px);
  background: white;
  transition: .2s linear all;
  x-webkit-box-shadow: 0px 0px 17px -11px rgba(0,0,0,0.75);
  x-moz-box-shadow: 0px 0px 17px -11px rgba(0,0,0,0.75);
  xbox-shadow: 0px 0px 17px -11px rgba(0,0,0,0.75);
  cursor: default;
  display: none;
}
header nav ul li ul.dropdown .shadowline {
  position: absolute;
  width: 100%;
  height: 15px;
  top: 0;
  left: 0;
  background: white;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
  x-webkit-box-shadow: 0px 10px 10px -11px rgba(0,0,0,0.55);
  x-moz-box-shadow: 0px 10px 10px -11px rgba(0,0,0,0.55);
  xbox-shadow: 0px 10px 10px -11px rgba(0,0,0,0.55);
}
header nav ul li ul.dropdown {
   -webkit-box-shadow: 0px 10px 10px -11px rgba(0,0,0,0.25);
   -moz-box-shadow: 0px 10px 10px -11px rgba(0,0,0,0.25);
   box-shadow: 0px 10px 10px -11px rgba(0,0,0,0.25);
}
.rightToLeft header nav ul li ul.dropdown {
  left: auto;
  right: 0;
}
header nav ul li ul.dropdown li {
  cursor: default;
}
header nav ul li ul.dropdown a, header nav ul li ul.dropdown a li {
  cursor: pointer;
  text-transform: none;
}
header nav ul li ul.dropdown * {
  color: var(--darkgray);
}
header nav ul li > ul.dropdown.show {
  display: block;
}
header nav ul li ul.dropdown .ddentry {
  position: relative;
  float: left;
  width: calc(25% - 40px);
  height: auto;
  top: 0;
  left: 0;
  margin-right: 40px;
  text-align: left;
}
.rightToLeft header nav ul li ul.dropdown .ddentry {
  float: right;
  left: auto;
  right: 0;
  text-align: right;
}
header nav ul li ul.dropdown .ddentry iframe {
  position: relative;
  float: left;
  width: 320px;
  height: 180px;
  top: 0;
  left: 0;
}
header nav ul li ul.dropdown .ddentry h2 {
  color: var(--darkmetal);
}
header nav ul li ul.dropdown .ddentry li {
  width: 100%;
  font-size: 13px;
  line-height: 16px;
  padding: 0;
  margin-bottom: 10px;
}
header nav ul li ul.dropdown .ddentry a {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  font-weight: normal;
  font-size: 13px;
  line-height: 16px;
  margin-bottom: 10px !important;
  margin: 0;
  padding: 0;
  text-align: left;
}
header nav ul li ul.dropdown .ddentry li:hover, header nav ul li ul.dropdown .ddentry a:hover {
  color: var(--blue);
}
.rightToLeft header nav ul li ul.dropdown .ddentry a {
  text-align: right;
  float: right;
  left: auto;
  right: 0;
}
.usertools {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  margin-left: clamp(12px, 1.5vw, 24px);
}
.rightToLeft header .usertools {
  margin-left: 0;
  margin-right: clamp(12px, 1.5vw, 24px);
}
.usertools .usertool {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  text-align: center;
  margin-right: 4px;
  cursor: pointer;
  font: inherit;
  transition: .2s linear all;
}
.rightToLeft header .usertools .usertool {
  margin-right: 0;
  margin-left: 4px;
}
.usertools .usertool.long {
  width: auto;
  border-radius: 20px;
  padding-left: 20px;
  padding-right: 20px;
  margin-right: 10px;
}
.usertools .usertool.fr, .usertools .usertool.ar {
  border: none;
}
/* ---------- Compact header search : icon + toggled panel ---------- */
.header-search {
  position: relative;
  margin-right: 14px;
}
.rightToLeft .header-search {
  margin-right: 0;
  margin-left: 14px;
}
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  padding: 0;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.15);
}
.search-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.header-search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 45px -18px rgba(0,0,0,0.45);
  padding: 14px;
  z-index: 20;
}
.rightToLeft .header-search-panel {
  right: auto;
  left: 0;
}
.header-search-panel form {
  display: flex;
  gap: 8px;
}
.header-search-panel input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--xlightgray);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--darkgray);
}
.header-search-panel input:focus {
  outline: none;
  border-color: var(--yellow);
}
.header-search-submit {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: var(--darkestblue);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}
.header-search-submit:hover {
  background: var(--yellow);
}
.header-search-submit:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
html.nav-collapsed .header-search {
  display: none;
}
.langswitch {
  display: flex;
  align-items: center;
  gap: 2px;
}
.langswitch .usertool.fr,
.langswitch .usertool.ar {
  position: static;
  width: auto;
  height: auto;
  background: none;
  font: inherit;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 13px;
  color: rgba(255,255,255,0.75);
  transition: .2s linear all;
}
.langswitch .usertool.active {
  background: var(--yellow);
  color: white;
}
.langswitch .usertool:not(.active):hover {
  background: rgba(255,255,255,0.15);
  color: white;
}
.langswitch .usertool:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.usertools p {
  font-weight: bold;
  font-size: 13px;
  line-height: 33px !important;
  color: white;
  transition: .2s linear all;
}
.usertools .usertool.long p {
  font-weight: normal;
  color: white;
}
.usertools .usertool p {
  color: rgba(255,255,255,0.75);
}
.usertools .usertool.active p, .usertools .usertool:hover p {
  color: white;
}
.usertools .usertool.long:hover {
  background: var(--darkestmetal);
}
.usertools .usertool:hover p {
  color: var(--darkmetal) !important;
}
.usertools .usertool.active:hover p {
  color: var(--darkestmetal) !important;
}
.usertools .usertool.long:hover p {
  color: white !important;
}
header nav ul li .downarrow {
  position: absolute;
  width: auto;
  height: 100%;
  right: 0;
  top: 0;
  display: none;
}
.rightToLeft header nav ul li .downarrow {
  right: auto;
  left: 0;
}
header nav ul li .downarrow p {
  line-height: 60px;
}
html.nav-collapsed header {
  width: calc(100% - 80px);
  max-width: none;
  height: auto;
  top: -200vh;
  left: 0;
  right: auto;
  margin: 0;
  overflow-y: scroll;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  background: white;
}
html.nav-collapsed header.closed {
  top: -200vh;
}
html.nav-collapsed header.opened {
  top: 80px;
}
html.nav-collapsed header.scrolled {
  background: white;
}
html.nav-collapsed .brand {
  display: none;
}
html.nav-collapsed header nav {
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}
html.nav-collapsed header nav ul {
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  flex-wrap: wrap;
  gap: 0;
  overflow: visible;
}
html.nav-collapsed header nav ul li {
  width: 100%;
  height: auto;
  line-height: 60px;
  top: 0;
  left: 0;
  font-size: 16px;
  color: var(--darkestmetal);
  padding: 0;
  border-bottom: 1px solid var(--xlightgray)
}
html.nav-collapsed header nav ul li .downarrow {
  display: block;
}
html.nav-collapsed header nav ul li ul.dropdown {
  position: relative;
  float: left;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  display: none;
  z-index: 10;
}
html.nav-collapsed header nav ul li ul.dropdown .shadowline,
html.nav-collapsed header nav ul li ul.dropdown h2,
html.nav-collapsed header nav ul li ul.dropdown iframe {
  display: none;
}
html.nav-collapsed header nav ul li > ul.dropdown.show {
  display: block;
  top: 0;
}
html.nav-collapsed header nav ul li ul.dropdown .ddentry {
  position: relative;
  float: left;
  width: calc(100% - 20px);
  height: auto;
  top: 0;
  left: 0;
  padding-left: 20px;
}
html.nav-collapsed header nav ul li ul.dropdown .ddentry li {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  line-height: 40px;
  border-bottom: none;
}
html.nav-collapsed header .usertools {
  display: none;
}
html.nav-collapsed a.pagea {
  display: none;
}












/* HEADER FOR ADMIN */
header.admin {
  position: fixed;
  height: 60px;
  width: calc(100% - 200px);
  top: 0;
  left: 0;
  padding-left: 100px;
  padding-right: 100px;
  margin: 0;
}
header.admin nav {
  position: relative;
  float: left;
  width: 100%;
  height: 60px;
  top: 0;
  left: 0;
}
header.admin nav ul {
  position: relative;
  float: left;
  width: 100%;
  height: 60px;
  top: 0;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
header.admin nav ul li {
  position: relative;
  float: left;
  width: auto;
  height: 60px;
  line-height: 60px;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  margin-right: 20px;
  list-style: none;
  color: white;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
}
header.admin nav ul li:hover {
  background: white;
  color: var(--blue);
}




.mobtop .usertool.fr, .mobtop .usertool.ar {
  border: none;
  top: 60px;
  position: absolute;
  background: var(--xlightgray);
  left: auto;
  float: none;
  right: 0;
  padding: 4px;
}
.mobtop .usertool.fr {
  right: 38px;
}
.mobtop .usertool.fr:hover, .mobtop .usertool.ar:hover {
  background: white;
}

html:not(.nav-collapsed) header nav ul li:hover ul.dropdown {
  display: block !important;
}
