header {
  width: 100%;
  /* height: 125px; */
  /* line-height: 125px; */
  z-index: 9;
  background: #08466f;
  /* position: fixed; */
  position:relative;
	width: 100%;
   /* height: auto;*/
  top: 0;
  left: 0;
  transition: all 0.3s ease 0s;
  z-index: 100;
  border-bottom: 1px solid #ffffff52;
}
.dflex {
    display: -ms-flexbox!important;
    display: flex!important;
    -ms-flex-align: center!important;
    -ms-flex-pack: justify!important;
    justify-content: space-between!important;
    align-items: center;
    padding: 10px 50px;
   /* height: 85px;*/
    /* line-height: 125px; */
    margin: 0 auto;
    background:transparent;
    border-radius:5px;
}
.logo img {max-height: 65px;}
.menu-principal li {
    display: inline-block;
    padding: 30px;
	position:relative;
}
.sub-menu {
	visibility: hidden;
	opacity: 0;
	min-width: 5rem;
	position: absolute;
	transition: all 0.5s ease;
	/* margin-top: 1rem; */
	left: 0;
	display: none;
	width: 140px;
	/* max-width: 100%; */
	background: #fff;
	margin-top: 22px;
}
.sub-menu li:hover:after {
    display: none;
}

.sub-menu li:after {
    position: absolute;
    content: '';
    width: 100%;
    height:1px;
    left: 0;
    bottom: -5px;
    background: #74747414;
}
#main-menu li:hover > ul,
ul li .sub-menu:hover {
  visibility: visible;
  opacity: 1;
  display: block;
  /* width: 360px; */
  border-radius: 5px;
}

.sub-menu  li {
	clear: both;
	width: 100%;
	position: relative;
}
.menu-item-has-children::after {
	border-style: solid;
	border-width: 1.5px 1.5px 0 0;
	content: '';
	display: inline-block;
	height: 7px;
	position: relative;
	vertical-align: top;
	width: 7px;
	top: 10px;
	right: -2px;
	transform: rotate(135deg);
	color:#fff
}
.nav-right li {
    display: inline-block;
}

.menu-principal ul {
    padding-left: 0;
}

.menu-principal li a {
    font-size: 20px;
    line-height: 30px;
    color: #fff;
    font-weight: 700;
    position: relative;
    transition: 0.5s;
    letter-spacing: 1px;
}
.menu-principal li a:hover {
    color: #09b7cf;
    transition: 0.5s;
    font-weight: 700;
}
.menu-principal li.current-menu-item a {font-weight: 700;}
.menu-principal li .sub-menu li a {
    color: #000;
    font-size: 15px;
    /* font-weight: 200 !important; */
    line-height: 27px;
    /* letter-spacing: 0.1em; */
    text-align: left;
    width: 100%;
    display: block;
    transition: 0.5s;
}

ul.sub-menu:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: #09b7cf;
    left: 0;
    top: 0;
}
.sub-menu li:hover a, .sub-menu li.current_page_item a {
    transition: 0.5s;
    font-weight: 700;
}
.sub-menu li {
    margin: 5px 0;
    padding: 5px 10px !important;
}
.nav-right li a {
    font-size: 20px;
    font-family: 'Oswald',sans-serif;
    color: #D4323D;
    background: #fff;
    padding: 16px;
    border-radius: 5px;
    border: 1px solid transparent;
    height: 60px;
    display: block;
}
.menu-principal li.current-menu-parent.menu-item-has-children a {
    /* font-weight: 500; */
}
.nav-right li.current_page_item a {
    background: #D4323D;
    color: #fff;
    border: 1px solid #fff;
}
.nav-right li {
    margin-right: 50px;
}
.nav-right li:last-child {
    margin-right: 0;
}
.menu-item em {
    font-size: 22px;
}
.icon-loupe:before {
    font-weight: 700 !important;line-height:0 !important;
}
.nav-right li:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-right .nav-principal {
    display: flex;
    align-items: center;
    justify-content: center;
}
/********start popup search***********/
.fixed {overflow: hidden;}
.boxsearch {
    position: fixed;
    top: 0;
    right: 30px;
    left: auto;
    margin: 0 auto;
    border-radius: 5px;
    transform: translateY(-100%);
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    -webkit-transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 85%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -ms-flex;
    -ms-align-items: center;
    -ms-justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
}
.boxsearchblock {
    transform: translateY(0%);
}

.big {
    position: absolute;
    display: inline-block;
    width: 50px;
    height: 40px;
    overflow: hidden;
    top: calc(50% - 20px);
    cursor: pointer;
    z-index: 99999999;
    right: 50px;
}

.big::before, .big::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 15px;
    top: 50%;
    left: 20px;
    background: #fff;
}
.big::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.big::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.boxrecherche {
    width: 70vw;
}

/********end popup search***********/
.nav-right-mobile{display:none}
span.btnsearch.big {display: none;}

header.sticky .dflex {
  height:60px;
}

header.sticky {
  position: fixed;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(10px);
  animation: slideDown 0.35s ease-out;
}


@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.sticky .logo img {max-height: 50px;}
@media screen and (max-width: 1660px) {
.menu-principal li a {
    font-size: 17px;
}
.nav-right li a { 
    font-size: 16px;
    padding: 16px 12px;
}
.nav-right li {
    margin-right: 25px;
}
.menu-principal li {
    padding: 30px 20px;
}
.dflex {
    padding: 10px 30px;
}
/* #main-menu li:hover > ul, */
/* ul li .sub-menu:hover {width: 250px;} */
.nav-right li a {
    height: 50px;
    padding: 13px 12px;
}
}
@media screen and (max-width: 1280px) {
.menu-principal li a {font-size: 14px;}
.menu-principal li {padding: 50px 15px !important;}
.nav-right li a {
    font-size: 14px;
    padding: 10px;
}
	.sub-menu li{padding:0 10px !important;}
.menu-item em {font-size: 18px;}
.nav-right li {margin-right: 15px;}
.nav-right li a {height: 44px;}
.menu-principal li .sub-menu li a {font-size: 14px;}
.sub-menu { width: 130px;}
#main-menu li:hover > ul,
/* ul li .sub-menu:hover {width: 200px;} */
}
@media screen and (max-width: 1024px) {
.dflex {padding: 10px 20px;width:95%}
.boxrecherche {width: 85%;}
.boxsearch {
    width: 95%;
    right: -30px;
}
}
@media screen and (max-width: 991px) {
.nav-right-mobile{display:block;}
#menu-toggle span {
    display: block;
    background: #fff;
}
#menu-toggle {
  width: 40px;
  height: 32px;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}
#menu-toggle #hamburger {
  position: absolute;
  height: 26px;
  width: 40px;
}
#menu-toggle #hamburger span {
  width: 40px;
  height: 2px;
  position: relative;
  margin: 0px auto;
  margin-bottom: 8px;
}
#menu-toggle #hamburger span:nth-child(1) {
  transition-delay: .5s;
}
#menu-toggle #hamburger span:nth-child(2) {
  transition-delay: .625s;
}
#menu-toggle #hamburger span:nth-child(3) {
  transition-delay: .75s;
  margin-bottom: 0;
}
#menu-toggle #cross {
  position: absolute;
  height: 25px;
  width: 25px;
  transform: rotate(45deg);
  /*top: 45px;*/
  left: 0;
  right: 0;
  margin: 0 auto;
}
#menu-toggle #cross span:nth-child(1) {
  height: 0%;
  width: 2px;
  position: absolute;
  top: 0;
  left: 12px;
  transition-delay: 0s;
}
#menu-toggle #cross span:nth-child(2) {
  width: 0%;
  height: 2px;
  position: absolute;
  left: 0;
  top: 11px;
  transition-delay: .25s;
}

#menu-toggle.open #hamburger span {
  width: 0%;
}
#menu-toggle.open #hamburger span:nth-child(1) {
  transition-delay: 0s;
}
#menu-toggle.open #hamburger span:nth-child(2) {
  transition-delay: .125s;
}
#menu-toggle.open #hamburger span:nth-child(3) {
  transition-delay: .25s;
}
#menu-toggle.open #cross span:nth-child(1) {
  height: 100%;
  transition-delay: .625s;
}
#menu-toggle.open #cross span:nth-child(2) {
  width: 100%;
  transition-delay: .375s;
}
.big {position: absolute;width: 50px;height: 50px;overflow: hidden;cursor: pointer;z-index: 99999999;border-radius: 50%;display: flex;align-items: center;justify-content: center;color: #fff;right: 20px;top: 20px;}
.big::before, .big::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 20px;
    top: 33px;
    left: 5px;
    background: #fff;
}
.big::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.big::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.closebtn.big::before, .closebtn.big::after {
    content: "";
    height: 2px;
    width: 25px;
    top: 13px;
    left: 20px;
    background: #fff;
}
.menuFixed {
    height: auto;
    overflow: auto;
    width: 100%;
    right: 0;
    position: absolute;
    top: 0;
    padding: 50px 15px;
    display: flex;
    align-items: center;
    background:#08466f;
    justify-content: flex-start;
    overflow: auto;
    align-items: flex-start;
    /* padding-top: 20px; */
}
/* Mobile menu — white dropdown that wraps only the menu items.
   Triggered by JS toggling .menu-open on .box-menu */
.box-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    z-index: 99998;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    display: none;
    padding: 6px 0;
}
.box-menu.menu-open {
    display: block;
}
.box-menu .menu-mobile {
    width: 100%;
}
.box-menu .nav-mobile,
.box-menu .nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.box-menu .nav-mobile li {
    width: 100%;
    display: block;
    position: relative;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}
.box-menu .nav-mobile > li:last-child {
    border-bottom: none;
}
.box-menu .nav-mobile a {
    display: block;
    padding: 12px 18px;
    color: #08466f;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.box-menu .nav-mobile a:hover,
.box-menu .nav-mobile .current-menu-item > a {
    background: #f3f6f9;
    color: #09b7cf;
}
/* Sub-menu (e.g. inscriptions) — always expanded on touch, indented, lighter */
.box-menu .nav-mobile .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    transform: none !important;
    background: #f8f9fa;
}
.box-menu .nav-mobile .sub-menu li:before {display: none;}
.box-menu .nav-mobile .sub-menu a {
    padding: 10px 18px 10px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.box-menu .nav-mobile .menu-item-has-children::after {
    right: 18px;
    top: 16px;
    position: absolute;
    transform: rotate(135deg);
    color: #08466f;
}
.dflex {
    width: 100%;
    border-radius: 3px;
}
.logo img {max-height: 70px;}
.boxrecherche {width: 95%;}
.menu-principal {width: 100%;}
}
/* Ensure hamburger sits above the overlay */
.flex-menu {
    position: relative;
    z-index: 99999;
}
/* Reset <button> defaults so hamburger looks identical to before */
#menu-toggle {
    position: relative;
    z-index: 99999;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}
