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

/* RESET ANTI-SAUTS */
#stickyheaders {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  transition:
    transform .35s ease,
    opacity .35s ease,
    background-color .25s ease,
    box-shadow .25s ease;
  will-change: transform, opacity;
}

/* Structure interne */
#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;
}

/* ==========================================================================
   ÉTAT 1 — Haut de page : FULL SIZE (130px)
   ========================================================================== */

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

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

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

/* Menu */
#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;
}


/* ==========================================================================
   ÉTAT 2 — Sticky compact (is-small) : 80px
   ========================================================================== */

#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; /* compact, légèrement plus dense */
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

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

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


/* ==========================================================================
   ÉTAT 3 — Hidden (scroll down)
   ========================================================================== */

#stickyheaders.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}


/* ==========================================================================
   MOBILE (optionnel – améliore le comportement)
   ========================================================================== */

@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;
  }
}
