/* ==========================================================================
   Super Colonie Core - sticky-header.css
   Gestion du header sticky : 130px (is-top) -> 80px (is-small)
   ========================================================================== */

#stickyheaders {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  transition:
    transform .46s cubic-bezier(.22, 1, .36, 1),
    opacity .24s ease,
    background-color .25s ease,
    box-shadow .25s ease;
  will-change: transform, opacity;
}

body.admin-bar #stickyheaders {
  top: var(--wp-admin--admin-bar--height, 32px);
}

#stickyheaders .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    min-height .30s ease,
    padding .30s ease,
    margin .30s ease,
    background-color .30s ease,
    box-shadow .30s ease;
}

#stickyheaders.is-top {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#stickyheaders.is-top .header {
  min-height: 130px;
  padding-block: 30px;
  background-color: #701518;
  box-shadow: none;
  margin: 0;
}

#stickyheaders.is-top .header .elementor-widget-theme-site-logo img {
  max-height: 80px;
  transition: max-height .30s ease, transform .30s ease;
}

#stickyheaders.is-top .header .elementor-nav-menu--main .elementor-item {
  padding-inline: 20px;
  font-size: 0.95rem;
  transition: padding .25s ease, margin .25s ease, font-size .25s ease;
}

#stickyheaders.is-small {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#stickyheaders.is-small .header {
  min-height: 80px;
  padding-block: 12px;
  margin: 0 3rem;
  background-color: #6b1517;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

#stickyheaders.is-small .header .elementor-widget-theme-site-logo img {
  max-height: 48px;
  transform: translateY(1px);
}

#stickyheaders.is-small .header .elementor-nav-menu--main .elementor-item {
  padding-inline: 14px;
  font-size: 0.90rem;
}

#stickyheaders.is-hidden {
  transform: translateY(-100%);
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
  transition-delay: .18s, .18s, 0s, 0s;
}

.lfc-sticky-submenu-hidden {
  pointer-events: none !important;
  transition-delay: 0s !important;
  animation: lfcStickySubmenuOut .30s cubic-bezier(.22, 1, .36, 1) both;
}

.lfc-sticky-submenu,
[data-lfc-sticky-submenu] {
  position: fixed !important;
  top: var(--lfc-sticky-submenu-top, 120px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9998 !important;
  transition:
    transform .30s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    background-color .25s ease,
    box-shadow .25s ease;
  will-change: transform, opacity;
}

.lfc-sticky-submenu-visible {
  pointer-events: auto !important;
  transition-delay: 0s !important;
  animation: lfcStickySubmenuIn .24s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes lfcStickySubmenuOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes lfcStickySubmenuIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  #stickyheaders.is-hidden {
    transform: translateY(-100%);
  }

  #stickyheaders.is-small .header {
    min-height: 70px;
    padding-block: 10px;
  }

  #stickyheaders.is-small .header .elementor-widget-theme-site-logo img {
    max-height: 42px;
  }
}
