/* Topbar */

.artgo-top_bar {
  height: 40px;
  background-color: var(--wp--preset--color--blue-300);
  color: var(--wp--preset--color--blue-100);
  font-size: var(--wp--preset--font-size--xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0
    clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s));
}

.artgo-top_bar_nav {
}

.artgo-top_bar_lang {
  display: flex;
  gap: var(--wp--preset--spacing--xs);
}

.artgo-top_bar_lang li {
  list-style: none;
}

.artgo-top_bar_lang li a {
  gap: var(--wp--preset--spacing--xxs);
  color: var(--wp--preset--color--blue-100);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.artgo-top_bar_lang li a:hover,
.artgo-top_bar_lang li a:focus {
  color: var(--wp--preset--color--neutral-00);
}

.artgo-top_bar_nav ul {
  display: flex;
  gap: var(--wp--preset--spacing--s);
}

.artgo-top_bar_nav ul li {
  list-style: none;
}

.artgo-top_bar_nav ul li a {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xxs);
  color: var(--wp--preset--color--blue-100);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.7px;
  transition: all 0.3s ease;
}

.artgo-top_bar_nav ul li a img {
  height: 18px;
  width: auto;
  transition: all 0.3s ease;
}

.artgo-top_bar_nav ul li a:hover,
.artgo-top_bar_nav ul li a:focus {
  color: var(--wp--preset--color--neutral-00);
}

.artgo-top_bar_nav ul li a:hover img,
.artgo-top_bar_nav ul li a:focus img {
  filter: brightness(0) invert(1);
}

.mobile_logo,
.top-menu-btns {
  display: none;
}

.top-menu {
  background-color: var(--wp--preset--color--blue-200);
  color: var(--wp--preset--color--neutral-00);
  padding: var(--wp--preset--spacing--xxs)
    clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s))
    0
    clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s));
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.top-menu:before {
  position: absolute;
  z-index: 100;
  bottom: -76px;
  left: 0;
  background-image: url("../../assets/img/fond_header.png");
  background-size: contain;
  background-repeat: repeat-x;
  background-position: top left;
  content: "";
  width: 100%;
  height: 76px;
  display: block;
}

.top-menu.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: 80px;
  opacity: 1 !important;
  padding: var(--wp--preset--spacing--s)
    clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s))
    var(--wp--preset--spacing--s)
    clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s));
}

body:has(.top-menu.sticky) .top-menu.sticky:before,
body:has(.top-menu.sticky) .artgo-top_bar {
  display: none;
}

body:has(.top-menu.sticky) {
  padding-top: 160px;
}

.header_left {
  width: 143px;
  display: flex;
  align-items: center;
}

.header_right {
  width: 143px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.artgo-menu {
  display: flex;
  justify-content: center;
  flex: 1;
}

.artgo-menu ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: var(--wp--preset--spacing--s);
  flex: 1;
}

.artgo-menu ul li {
  list-style: none;
  position: relative;
}

.artgo-menu ul li:has(a.menu_link) {
  padding: 20px 0;
}

.artgo-menu ul li a {
  color: var(--wp--preset--color--neutral-00);
  font-size: var(--wp--preset--font-size--xxs);
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--secondary);
  position: relative;
  padding: var(--wp--preset--spacing--xxs) 0;
}

.artgo-menu ul li a.menu_link:after {
  position: absolute;
  z-index: 100;
  bottom: 0px;
  left: 0;
  background-image: url("../../assets/img/menu_bottom.svg");
  background-size: 0px;
  background-repeat: no-repeat;
  background-position: bottom center;
  content: "";
  width: 100%;
  height: 3px;
  display: block;
  transition: all 0.3s ease;
}

.artgo-menu ul li:hover a.menu_link:after,
.artgo-menu ul li:focus a.menu_link:after {
  background-size: 97px;
}

.artgo-menu ul li ul {
  position: absolute;
  z-index: 9000;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--wp--preset--color--neutral-00);
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xs)
    calc(var(--wp--preset--spacing--xs) + 42px) var(--wp--preset--spacing--xs);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.artgo-menu ul li:has(a:focus) ul,
.artgo-menu ul li:hover ul,
.artgo-menu ul li:focus ul {
  display: flex;
}

.artgo-menu ul li ul:before {
  position: absolute;
  z-index: 100;
  top: -16px;
  left: 0;
  background-image: url("../../assets/img/top_submenu.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  content: "";
  width: 100%;
  height: 16px;
  display: block;
}

.artgo-menu ul li ul:after {
  position: absolute;
  z-index: 100;
  bottom: 0px;
  left: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  content: "";
  width: 100%;
  height: 42px;
  display: block;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.artgo-menu ul li ul.sub-menu_0:after {
  background-color: var(--wp--preset--color--blue-300);
  background-image: url("../../assets/img/texture-menu-orange-286x42.gif");
}

.artgo-menu ul li ul.sub-menu_1:after {
  background-color: var(--wp--preset--color--blue-300);
  background-image: url("../../assets/img/texture-menu-bleu-286x42.gif");
}

.artgo-menu ul li ul.sub-menu_2:after {
  background-color: var(--wp--preset--color--blue-300);
  background-image: url("../../assets/img/texture-menu-vert-286x42.gif");
}

.artgo-menu ul li ul.sub-menu_3:after {
  background-color: var(--wp--preset--color--blue-300);
  background-image: url("../../assets/img/texture-menu-marron-286x42.gif");
}

.artgo-menu ul li ul li {
  padding: 0;
}

.artgo-menu ul li ul li a {
  width: 250px;
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  gap: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--blue-300);
  text-transform: none;
  font-size: var(--wp--preset--font-size--s);
  font-weight: 500;
  letter-spacing: 0px;
  font-family: var(--wp--preset--font-family--primary);
  transform-origin: center left;
  transition: all 0.3s ease;
}

.artgo-menu ul li ul li a:hover,
.artgo-menu ul li ul li a:focus {
  transform: scale(1.05);
  transform-origin: center left;
}

.artgo-menu ul li ul li a img {
  width: 22px;
  height: auto;
  transition: all 0.3s ease;
}

.artgo-menu ul li ul li a:hover img,
.artgo-menu ul li ul li a:focus img {
  transform: scale(1.5);
  transform-origin: center left;
}

#toggle-menu,
#toggle-search {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
}

.toggle-menu-close,
#toggle-menu {
  display: none;
}

#toggle-menu.active .toggle-menu-close {
  display: block;
}

#toggle-menu.active .toggle-menu-btn {
  display: none;
}

@media only screen and (max-width: 1500px) {
}
@media only screen and (max-width: 1379px) {
  .menu_link_img {
    max-width: 190px;
    height: auto;
  }
}

@media only screen and (max-width: 1279px) {
  .menu_link_img {
    max-width: 150px;
    height: auto;
  }

  .header_left {
    width: 90px;
  }

  .header_right {
    width: 90px;
  }
}

@media only screen and (max-width: 991px) {

  .wp-block-template-part:has(.top-menu) {
    position: sticky;
    top: 0;
    z-index: 10000;
  }

  #toggle-menu,
  .mobile_logo,
  .top-menu-btns {
    display: flex;
  }

  .artgo-top_bar,
  .unesco_desktop,
  .artgo-menu {
    display: none;
  }

  .mobile_logo a {
    display: flex;
    align-items: center;
  }

  .mobile_logo a img {
    height: 33px;
    width: auto;
  }

  .top-menu {
    padding: 0
      clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--s))
      0
      clamp(var(--wp--preset--spacing--xs), 5vw, var(--wp--preset--spacing--xs));
    height: 55px;
    z-index: 1000;
  }

  .top-menu:before {
    bottom: -24px;
    height: 24px;
  }

  .artgo-menu {
    display: flex;
    align-items: flex-start;
    position: fixed;
    z-index: 1000;
    overflow-y: scroll;
    width: 100%;
    top: 55px;
    left: 0;
    bottom: 0;
    background-color: var(--wp--preset--color--blue-200);
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition:
      transform 0.3s ease-out,
      opacity 0.3s ease-out;
  }

  .artgo-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .artgo-menu ul {
    flex-direction: column;
    gap: 0;
    background-image: url("../../assets/img/menu_bg.png");
    background-position: top right;
    background-repeat: no-repeat;
  }

  .artgo-menu ul li {
    width: 100%;
    border-top: 1px solid var(--wp--preset--color--neutral-00);
  }

  .artgo-menu ul li:has(a.menu_link) {
    padding: 15px 15px 15px 35px;
  }

  .artgo-menu ul li.menu_link_img {
    display: none;
  }

  .artgo-menu ul li a.menu_link:after {
    display: none;
  }

  .artgo-menu ul li ul {
    background-image: none;
    top: unset;
    left: unset;
    transform: unset;
    display: flex;
    position: relative;
    background-color: transparent;
    border-radius: 0px;
    box-shadow: unset;
    padding: 0;
  }

  .artgo-menu ul li:hover ul,
  .artgo-menu ul li:focus ul {
    flex-direction: column;
  }

  .artgo-menu ul li ul:before {
    display: none;
  }

  .artgo-menu ul li ul:after {
    display: none;
  }

  .artgo-menu ul li ul li a img {
    filter: brightness(0) invert(1);
  }

  .artgo-menu ul li:after {
    position: absolute;
    z-index: 100;
    bottom: 0px;
    top: -1px;
    left: 0;
    background-size: 42px 286px;
    background-repeat: repeat;
    background-position: center center;
    content: "";
    width: 20px;
    height: calc(100% + 1px);
    display: block;
  }

  .artgo-menu ul li:has(ul.sub-menu_0):after {
    background-color: var(--wp--preset--color--blue-300);
    background-image: url("../../assets/img/texture-menu-orange-286x42-mobile.gif");
  }

  .artgo-menu ul li:has(ul.sub-menu_1):after {
    background-color: var(--wp--preset--color--blue-300);
    background-image: url("../../assets/img/texture-menu-bleu-286x42-mobile.gif");
  }

  .artgo-menu ul li:has(ul.sub-menu_2):after {
    background-color: var(--wp--preset--color--blue-300);
    background-image: url("../../assets/img/texture-menu-vert-286x42-mobile.gif");
  }

  .artgo-menu ul li:has(ul.sub-menu_3):after {
    background-color: var(--wp--preset--color--blue-300);
    background-image: url("../../assets/img/texture-menu-marron-286x42-mobile.gif");
  }

  .artgo-menu ul li ul li {
    border-top: none;
  }
  .artgo-menu ul li ul li a {
    color: var(--wp--preset--color--neutral-00);
  }
}

/***** Popup block *****/

.artgo-popup {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  max-width: 768px;
  width: 100%;
  left: 50%;
  top: var(--wp--preset--spacing--m);
  transform: translateX(-50%) translateY(50px);
  z-index: 9700;
  overflow-y: auto;
}

.artgo-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.artgo-popup__header {
  background-color: var(--wp--preset--color--blue-300);
  color: var(--wp--preset--color--neutral-00);
  padding: var(--wp--preset--spacing--m);
  border-radius: var(--wp--custom--radius--m);
  margin: 0 20px;
}

.artgo-popup__header__subtitle {
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--wp--preset--font-size--m);
}

.artgo-popup__header__title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--wp--preset--font-family--primary);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--xl);
}

.artgo-popup__close-btn {
  background-color: transparent;
  color: var(--wp--preset--color--neutral-00);
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  height: fit-content;
  cursor: pointer;
}

.artgo-popup__close-btn:hover {
  /* background-color: var(--wp--preset--color--jaune-100); */
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--wp--preset--color--jaune-100);
}

/* Search popup */

.artgo-popup__search-form {
  display: flex;
  align-items: center;
  background-color: var(--wp--preset--color--neutral-00);
  padding: 0 var(--wp--preset--spacing--xxs);
  border-radius: var(--wp--custom--radius--s);
  margin-top: var(--wp--preset--spacing--xs);
}

.artgo-popup__search-form > input {
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--s);
  font-weight: 500;
  padding: var(--wp--preset--spacing--xs);
  width: 100%;
}

.artgo-popup__search-form > input:focus {
  outline: 1px dashed var(--wp--preset--color--blue-300);
  outline-offset: -5px;
  border-radius: var(--wp--custom--radius--s);
}

.artgo-popup__search-form > button {
  background: transparent;
  cursor: pointer;
  font-size: var(--wp--preset--font-size--s);
  font-weight: 600;
  display: flex;
}

.artgo-popup__search-form > button span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artgo-popup__search-form > button span::after {
  content: url(../../assets/img/arrow-btn.svg);
  line-height: 0;
  transition: rotate 0.2s ease;
}

.artgo-popup__search-form > button:hover span::after {
  rotate: 45deg;
}

@media only screen and (max-width: 991px) {
  .artgo-popup__header {
    padding: var(--wp--preset--spacing--xs);
  }
}

@media only screen and (max-width: 575px) {
  .artgo-popup__header__title {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 30px;
  }
}
