/* Empilement mobile: logo < contact < burger/menu */
.ls-contact {
  z-index: 1005 !important;
}

/* Fallback: oasis-youtube absent de la font Oasis */
.oasis-youtube::before {
  content: "\f167";
  font-family: "Font Awesome 5 Brands" !important;
  font-style: normal;
  font-weight: 400;
}

@media screen and (max-width: 992px) {
  #header .custom-logo-link {
    position: relative;
    z-index: 1000 !important;
  }

  #burger,
  #main-menu {
    z-index: 1010 !important;
  }

  /* Etat menu ouvert (classe ajoutee sur <html> par le theme) */
  html.overflow-hidden #header,
  html.overflow-hidden #header.sticky {
    z-index: 120000 !important;
  }

  html.overflow-hidden #main-menu,
  html.overflow-hidden #main-menu.visible,
  html.overflow-hidden .sub-menu.visible {
    z-index: 120001 !important;
  }

  html.overflow-hidden .ls-contact,
  html.overflow-hidden .ls-contact__item {
    z-index: 10 !important;
  }

  /* Voile sombre du theme parent : invisible, clic pour fermer conserve */
  #main-menu--overlay {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: auto;
  }

  #header .wp-block-columns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 5rem 0.75rem 1rem;
  }

  #header .wp-block-columns .wp-block-column:first-child {
    margin-left: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  #header .custom-logo-link {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  #header .custom-logo-link img {
    width: 120px !important;
    max-width: 34vw;
    height: auto;
  }
}
