/* ============================================================
   header-custom.css — compiled from header-custom.scss
   ============================================================ */

* {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

#page-container {
  padding-top: 60px !important;
}

body {
  width: 100vw;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.header--main--desk {
  display: none;
}

/* ── HEADER MOBILE ─────────────────────────────────────────── */

.header--main--mobile {
  position:relative;
  z-index:1;
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.header--main--mobile.hasBanner {
  top: 46px;
}

.header--main--mobile .header__wrapper {
  position:relative;
  z-index:2;
  height: 100%;
  background: #192963;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header--main--mobile .header__logo__wraper {
  height: 100%;
  display: flex;
  align-items: center;
}

.header--main--mobile .header__logo__wraper img {
  width: 44px;
  height: 44px;
  margin-right: 10px;
}

.header--main--mobile .header__logo__content__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header--main--mobile .header__logo__content__wrapper p {
  font-size: 15px;
  color: #fff;
  padding: 0;
  line-height: 1.2;
}

.header--main--mobile .header__logo__content__wrapper p:nth-child(2) {
  font-size: 8px;
  color: #fff;
  padding: 0;
}

.header--main--mobile .header__icons__wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header--main--mobile .header__menuIcon__wrapper {
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.header--main--mobile .header__menuIcon__wrapper img {
  width: 32px;
  height: 32px;
}

.header--main--mobile .header__menuIcon__wrapper img.cross {
  height: 20px;
  width: 20px;
}

.header--main--mobile .header__magnifyingGlass__wrapper,
.header--main--mobile .header__favoris__wrapper {
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.header--main--mobile .header__magnifyingGlass__wrapper img,
.header--main--mobile .header__favoris__wrapper img {
  width: 20px;
  height: 20px;
}

/* ── SEARCH ZONE ───────────────────────────────────────────── */

.header--main--mobile .header__search {
  position:relative;
  z-index:0;  
  width: 100%;
  max-height:0;
  overflow:hidden;
  background:transparent;
  opacity: 0;
  transition: all 0.3s ease-in-out, max-height 0.1s allow-discrete;
}

.header--main--mobile .header__search.opened {
  max-height:100vh;
  opacity: 1;  
}


.header--main--mobile .header__search__wrapper {
  display: grid;
  grid-template-areas:"label nav"
					  "search search";
  grid-template-columns: auto 1fr;
  gap: 8px;
  width: 100%;
  padding: 20px 20px 24px;
  background: #f5f7fa;
  border-bottom:solid 1.5px #939393;
  transform: translateY(-100%);
  transition: all 0.3s ease-in-out, display 0.3s allow-discrete;
}
.header--main--mobile .header__search.opened .header__search__wrapper {
  transform: translateY(0);
}

.header--main--mobile .header__search__wrapper > span { 
  width:68px;
  grid-area: label;
  font-size: 14px;
  font-weight: 600;
  color: #097fc2;
  line-height: 30px;
  text-align: right;
  padding-right: 8px;
}

.header--main--mobile .header__search__pills {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.header--main--mobile .header__search__pills .header__search__pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #097fc2;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-wrap: nowrap;
  color: #097fc2;
  text-transform: uppercase;
  cursor: pointer;
}

.header--main--mobile .header__search__pills .header__search__pill[aria-current="true"],
.header--main--mobile .header__search__pills .header__search__pill:hover {
  background: #097fc2;
  color: #fff;
}

/* Formulaire de recherche */
.header--main--mobile .header__search__wrapper > form {
  position: relative;
  grid-area: search;
  margin-top:10px;
  display: flex;
  align-items: center;
  width: 100%;
}

.header--main--mobile .header__search__wrapper > form > input {
  display:flex;  
  align-items: center;
  line-height: 1;    
  background-color: #fff;
  border: 1px solid #a1a1a1;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #192963;
}

.header--main--mobile .header__search__wrapper > form > input::placeholder {
  font-weight: 400;
}

.header--main--mobile .header__search__wrapper > form > input::-webkit-search-cancel-button {
  display: none;
}

.header--main--mobile .header__search__wrapper > form > input:focus {
  outline: none;
  /*border-color: #097fc2;*/
}

.header--main--mobile .header__search__wrapper > form > button.facetwp-icon {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  cursor: pointer;
  height: 100%;
  line-height: 1;
  opacity: 0.5;
}
.header--main--mobile .header__search__wrapper > form > button.facetwp-icon:before {
  display: inline-block;
  content: '';
  width: 30px;
  height: 100%;
  background: url(/wp-content/plugins/facetwp/assets/images/icon-search.png) no-repeat;
  background-position: 5px 50%;
  background-size: 20px 20px;
}



/* ── NAV MOBILE ────────────────────────────────────────────── */

.header--main--mobile .menu--main--mobile {
  width: 100vw;
  max-width: 100%;
  max-height: 0;
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 10;
  transition: all 0.4s ease-in-out;
  overflow-x: hidden;
  overflow-y: scroll;
}

.header--main--mobile .menu--main--mobile.opened {
  max-height: calc(100vh - 60px);
  border-top: 3px solid #097fc2;
}

.header--main--mobile .nav--main--mobile {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.header--main--mobile .nav__menu__wrapper {
  width: 100%;
  padding: 0 20px;
  border-bottom: 1px solid #e1e1e1;
}

.header--main--mobile .nav__menu__wrapper p,
.header--main--mobile .nav__menu__wrapper a {
  font-size: 16px;
  font-weight: 600;
  color: #272a36;
  white-space: nowrap;
  cursor: pointer;
}

.header--main--mobile .nav__menu__wrapper.opened .nav__menu__select p {
  color: #097fc2;
}

.header--main--mobile .nav__menu__wrapper.opened .nav__menu__select img {
  transform: rotate(90deg);
}

.header--main--mobile .nav__menu__wrapper.opened .nav__subMenu__wrapper {
  height: fit-content;
  max-height: 1000px;
  padding-bottom: 20px;
}

.header--main--mobile .nav__menu__select {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease-in-out;
}

.header--main--mobile .nav__menu__select img {
  height: 12px;
  width: 12px;
  transition: 0.4s ease-in-out;
}

.header--main--mobile .nav__subMenu__wrapper {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.header--main--mobile .nav__subMenu__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header--main--mobile .nav__subMenu__option img {
  width: 30px;
  height: 30px;
  margin-right: 4px;
}

.header--main--mobile .nav__subMenu__option p {
  font-size: 14px;
  font-weight: 400;
  margin: 15px 0 10px;
}

.header--main--mobile .menuFormation__footer--mobile {
  width: 100%;
  margin-top: 20px;
}

.header--main--mobile .menuFormation__footer__content {
  padding: 20px 0 0;
  border-top: 1px solid #e1e1e1;
}

.header--main--mobile .menuFormation__footer__content strong {
  font-size: 14px;
  font-weight: bold;
  color: #272a36;
  padding: 0;
  margin: 0 0 20px;
}

.header--main--mobile .menuFormation__footer__content a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #272a36;
  padding: 0 0 0 20px;
  margin: 0;
  margin-bottom: 15px;
}

/* ── SOCIAL MEDIA ──────────────────────────────────────────── */

.menu__socialsMedia__wrapper {
  width: 100%;
  height: 110px;
  padding: 15px 20px;
  background: #fff;
  display: flex;
  gap: 20px;
}

.menu__socialsMedia__wrapper img {
  width: 40px;
  height: 40px;
}

/* ============================================================
   DESKTOP — min-width: 977px
   ============================================================ */

@media (min-width: 977px) {
  .header--main--mobile {
    display: none;
  }

  #page-container {
    padding-top: 90px !important;
  }

  .header--main--desk {
    display: block;
    width: 100%;
    height: 90px;
    background: #192963;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    transition: height 0.2s ease-in-out;
  }

  .header--main--desk.hasBanner {
    top: 32px;
  }

  .header--main--desk.scaledDown {
    height: 60px;
  }

  .header--main--desk.scaledDown .header__logo__wraper * {
    transition: all 0.4s ease-in-out;
  }

  .header--main--desk.scaledDown .header__logo__wraper img {
    width: 36px;
    height: 36px;
  }

  .header--main--desk.scaledDown .header__logo__wraper p {
    font-size: 11px;
  }

  .header--main--desk.scaledDown .header__logo__wraper p:last-child {
    font-size: 6px;
  }

  .header__wrapper {
    width: 100%;
    max-width: 1920px;
    margin: auto;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
  }

  .header__logo__wraper {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .header__logo__wraper img {
    width: 44px;
    height: 44px;
    margin-right: 10px;
  }

  .header__logo__content__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .header__logo__content__wrapper p {
    font-size: 15px;
    color: #fff;
    padding: 0;
    line-height: 1.2;
  }

  .header__logo__content__wrapper p:nth-child(2) {
    font-size: 8px;
    color: #fff;
  }

  .nav--main--desk {
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .nav__menu__wrapper {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    margin-right: 15px;
  }

  .nav__menu__wrapper > p,
  .nav__menu__wrapper > a {
    font-size: 12px;
    color: #fff;
    cursor: pointer;
  }

  .nav__menu__wrapper img {
    display: none;
  }

  .nav__menu__wrapper:hover > p,
  .nav__menu__wrapper:hover > a {
    color: #097fc2;
  }

  .nav__menu__wrapper:hover .nav__subMenu__wrapper {
    visibility: visible;
  }

  .nav__subMenu__wrapper {
    visibility: hidden;
    width: 300px;
    position: absolute;
    left: 0;
    top: 90px;
    z-index: 10;
    background: #fff;
    padding: 5px 10px;
    border-top: 3px solid #097fc2;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  }

  .header--main--desk.scaledDown .nav__subMenu__wrapper {
    top: 60px;
  }

  .nav__subMenu__option a,
  .nav__subMenu__option p {
    font-size: 12px;
    color: #272a36;
    white-space: nowrap;
    margin: 5px 0;
    padding: 5px !important;
    transition: 0.2s background ease-in-out;
  }

  .nav__subMenu__option:hover p,
  .nav__subMenu__option:hover a {
    background: #e2eaff;
  }

  .header__icons__wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 10px;
  }

  .header__icons__wrapper img {
    height: 20px;
    width: 20px;
    cursor: pointer;
  }

  .formations__modale__primary,
  .formations__modale__secondary {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 10;
    top: 90px;
    left: 0;
    border-top: 3px solid #097fc2;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
  }

  .formations__modale__primary.translated,
  .formations__modale__secondary.translated {
    top: 50px;
  }

  .formations__modale__primary.translated .modale_wrapper,
  .formations__modale__secondary.translated .modale_wrapper {
    max-height: calc(100vh - 50px);
  }

  .header--main--desk.scaledDown .formations__modale__primary,
  .header--main--desk.scaledDown .formations__modale__secondary {
    top: 60px;
  }

  .modale_wrapper {
    height: 100%;
    max-height: calc(100vh - 90px);
    width: 380px;
    background: #fff;
    padding-bottom: 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
    overflow-y: scroll;
  }

  .modale_wrapper::-webkit-scrollbar {
    display: none;
  }

  .modale_wrapper > ul {
    margin-bottom: 25px;
  }

  .header--main--desk.scaledDown .modale_wrapper {
    height: 100%;
    max-height: calc(100vh - 60px);
  }

  .modale_header,
  .modale_title,
  .modale_link {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  .modale_link {
    height: 50px;
  }

  .modale_header {
    justify-content: space-between;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  }

  .modale_header a,
  .modale_header p {
    font-size: 18px;
    color: #272a36;
    cursor: pointer;
  }

  .modale_header img {
    width: 20px;
    cursor: pointer;
  }

  .modale_title {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 20px;
    height: fit-content;
  }

  .modale_title strong {
    font-size: 18px;
    font-weight: 700;
    color: #097fc2;
    justify-content: space-between;
    padding: 0;
  }

  .modale_title a {
    font-size: 18px;
    color: #272a36;
    text-decoration: underline;
    margin-left: auto;
    white-space: nowrap;
    position: relative;
    top: -2px;
  }

  .modale_link {
    gap: 12px;
    color: #272a36;
    font-size: 14px;
  }

  .modale_link > a,
  .modale_link > div {
    display: flex;
    align-items: center;
    color: #272a36;
    gap: 12px;
    cursor: pointer;
  }

  .modale_link > a > img,
  .modale_link > div > img {
    width: 28px;
  }

  .modale_liste_wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 20px 0;
  }

  .modale_liste {
    border-left: 3px solid #097fc2;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .modale_liste a.link_title {
    width: 100%;
    color: #097fc2;
    font-size: 14px;
    font-weight: 700;
    margin-left: 12px;
    padding-bottom: 0;
    cursor: pointer;
  }

  .modale_liste a {
    display: flex;
    align-items: center;
    height: 28px;
    vertical-align: auto;
    font-size: 14px;
    color: #272a36;
    margin-left: 28px;
    cursor: pointer;
  }

  .modale__footer {
    width: calc(100% - 40px);
    margin: auto;
  }

  .modale__footer__content {
    padding: 35px 0 0;
    border-top: 1px solid #e1e1e1;
  }

  .modale__footer__content strong {
    font-size: 14px;
    font-weight: bold;
    color: #272a36;
    padding: 0;
    margin: 0 0 20px;
  }

  .modale__footer__content a {
    display: block;
    font-size: 14px;
    color: #272a36;
    padding: 0 0 0 20px;
    margin: 0;
    margin-bottom: 15px;
  }

  .header__search {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .header__search__wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    position: relative;
  }

  .header__search__wrapper img {
    height: 15px;
    width: 15px;
    cursor: pointer;
  }

  .header__search__wrapper input {
    width: 600px;
    height: 100%;
    display: flex;
    align-items: center;
    background: #192963 !important;
    font-size: 14px !important;
    color: #fff !important;
    border: none !important;
  }

  .header__search__wrapper input::placeholder {
    font-size: 14px;
    color: #fff;
  }

  .header__search__wrapper input:focus {
    outline: none !important;
  }

  .header__autocomplete {
    width: 600px;
    padding: 15px 10px;
    position: absolute;
    left: 0;
    top: 65px;
    z-index: 10;
    border: 1px solid #2f2933;
    border-radius: 25px;
    background: #fff;
  }

  .autocomplete__title {
    background: #f0eef1;
    padding: 6px;
    cursor: pointer;
  }

  .autocomplete__title p {
    font-size: 13px;
    color: #282828;
  }

  .autocomplete__value {
    color: #0087ca;
  }

  .autocomplete__count {
    font-weight: 700;
  }

  .autocomplete__list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .autocomplete__list > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    height: 30px;
  }

  .autocomplete__list > a:hover {
    background: #f0eef1;
  }

  .autocomplete__list .badge {
    height: 16px;
    width: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    color: #fff;
    border-radius: 100px;
  }

  .autocomplete__list .badge.new {
    background: #c8094f;
  }

  .autocomplete__list .badge.top {
    background: #097fc2;
  }

  .autocomplete__list p {
    font-size: 13px;
    color: #282828;
    white-space: nowrap;
  }

  .autocomplete__list p span {
    color: #0087ca;
  }

  .autocomplete__triangle__wraper {
    position: absolute;
    top: -5px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-bottom: 5px solid #444;
  }
}

/* ============================================================
   min-width: 390px
   ============================================================ */

@media (min-width: 390px) {
	.header--main--mobile .header__search__wrapper > span { 
	  width:fit-content;
	}
}
/* ============================================================
   min-width: 1080px
   ============================================================ */

@media (min-width: 1080px) {
  .nav__menu__wrapper {
    margin-right: 0;
  }

  .nav__menu__wrapper:not(.hasSubMenu) {
    margin-right: 20px;
  }

  .nav__menu__wrapper img {
    display: block;
    width: 15px;
    height: 15px;
    margin-left: 6px;
    margin-right: 15px;
    transform: rotate(90deg);
  }

  .header__search__wrapper input {
    width: 700px;
  }

  .header__autocomplete {
    width: 700px;
  }
}

/* ============================================================
   min-width: 1280px
   ============================================================ */

@media (min-width: 1280px) {
  .header__wrapper {
    padding: 0 48px;
  }

  .nav__menu__wrapper:not(.hasSubMenu) {
    margin-right: 30px;
  }

  .nav__menu__wrapper img {
    margin-right: 25px;
  }

  .nav__menu__wrapper > p,
  .nav__menu__wrapper > a {
    font-size: 14px;
  }

  .header__icons__wrapper {
    gap: 30px;
    margin-left: 20px;
  }

  .nav__subMenu__option p,
  .nav__subMenu__option a {
    font-size: 14px;
  }

  .header__search__wrapper input {
    width: 800px;
  }

  .header__autocomplete {
    width: 800px;
  }
}

.header__favoris__wrapper {
  display: none;
}

/* ============================================================
   min-width: 1537px
   ============================================================ */

@media (min-width: 1537px) {
  .header__wrapper {
    padding: 0 60px;
  }
}
