:root {
  --bs-nav-color-toggles: rgb(255, 255, 255);
  --bs-nav-size-subtoggles: 11px;
  --bs-nav-main-color: rgb(12, 29, 64);
  --bs-nav-second-color: rgb(43, 55, 81);
}

#header.header-style-3 {
  display: none !important;
}

.bs-navbar {
  font-family: 'Poppins', sans-serif; 
  position: sticky;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 100;
  min-height: 50px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid rgb(220, 220, 220);
  transition: 
    background .3s ease,
    backdrop-filter .3s ease,
    padding .45s cubic-bezier(.16,1,.3,1);
}

.bs-navbar a {
  text-decoration: none;
}

.bs-navbar-inner {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  height: auto;
  min-height: 0;
  align-items: flex-start;
  justify-content: space-between;
  transition: all .45s cubic-bezier(.16,1,.3,1);
}

.bs-logo img {
  height: 58px;
  display: none;
}

.bs-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  display: none;
}

.cart-icon {
  width: 26px;
  height: 26px;
  color: rgb(12, 29, 64);
}

.cart-btn:hover .cart-icon {
  color: rgb(20, 49, 107);
}

.bs-burger {
  position: absolute;
  top: 45px;
  right: 35px;
  width: 18px;
  height: 16px;
  z-index: 2;
  display: flex;
  padding: 0;
  margin: 0;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  transition:
    top .45s cubic-bezier(.16,1,.3,1);
}

.bs-burger span {
  width: 100%;
  height: 2px;
  background: rgb(12, 29, 64);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  font-family: 'Poppins', sans-serif; 

  background: #fff;
  z-index: 11000;

  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* TOP */
.nav-mobile-top {
  height: 86px;
  padding: 0 14px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.nav-mobile-top .nav-mobile-title img {
  height: 42px;
}

/* CENTER */
.mobile-nav {
  flex: 1;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

/* CLOSE */
.bsnav-mobile-close {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  line-height: 1;

  background: rgb(240, 240, 240);
  border: none;
  border-radius: 50%;
  cursor: pointer;

  flex-shrink: 0;
}

/* ===== VERTICAL CASCADE ===== */

.nav-toggle {
  background: none;
  border: none;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: rgb(12, 29, 64);
  cursor: pointer;
  border-radius: 6px;
  background: var(--bs-nav-color-toggles);
}

.nav-toggle .toggle-up {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.nav-toggle .nav-toggle-subtitle {
  position: relative;
  font-size: var(--bs-nav-size-subtoggles);
  font-weight: 400;
  color: rgb(101, 110, 132);
  text-align: left;
}

/* niveaux */
.bs-level-1 {
  font-size: 17px;
  padding: 16px;
}

.bs-level-2 {
  font-size: 14px;
  padding: 16px 20px;
}

/* chevron */
.chevron {
  font-size: 18px;
  opacity: .4;
  transition: transform .25s ease;
}

/* groupes */
.nav-group {
  max-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transition:
    max-height .35s cubic-bezier(.2,.8,.2,1),
    opacity .25s ease;
  opacity: 0;
  padding: 0 10px;
  background: var(--bs-nav-color-toggles);
}

/* ouvert */
.nav-group.is-open {
  opacity: 1;
  max-height: 1400px; /* suffisant pour mobile */
}

.nav-group a {
  display: block;
  padding: 8px 0 8px 24px;

  font-size: 13px;
  font-weight: 400;
  color: rgb(91, 105, 134);
  text-decoration: none;
}

.nav-group a.group-parent {
  font-weight: 600;
  color: #1e5eff;
}

/* rotation chevron */
.nav-toggle.is-open .chevron {
  transform: rotate(45deg);
}

#nav-group-first-first {
  margin-top: 10px;
}

.bs-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  background: transparent!important;
  border: none!important;
  padding: 0 !important;
  margin: 0 !important;

  transition: all .3s cubic-bezier(.22,1,.36,1);
}

/* Icône */
.bs-wa-cta svg {
  width: 26px !important;
  height: 26px !important;
  fill: #0b6d1da6;
  transition: fill .3s ease;
}

.bs-wa-cta span {
  font-size: 10px;
  color: #1e7713;
}

/* Hover */
.bs-wa-cta:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: #a3ffa6;
  cursor: pointer;
  transform: translateY(-1px);
}

.bs-wa-cta:hover svg {
  fill: #000;
}

/* ============ SEARCH BAR ============= */

.bs-center {
  position: relative;
  margin: 0;
  padding: 5.5% 0 4.5% 5%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  transition: gap .3s ease;
}

.bs-nav {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 0 0 -7%;
  display: flex;
  flex-direction: row;
  justify-content:center;
  gap: 20px;
  order: 2;
  z-index: 200;
  transition:
    opacity .35s cubic-bezier(.16,1,.3,1),
    transform .45s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

.bs-tab{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;

  text-decoration:none;
  color: rgb(19, 45, 97);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;

  opacity: .65;
  transition:
    opacity .2s ease,
    transform .2s ease,
    background .2s ease;
}

.bs-tab-ico{
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  margin-bottom: 4px;
}

/* label */
.bs-tab-label{
  font-size: 12px;
  line-height: 1;
}

/* hover */
.bs-tab:hover{
  opacity: 1;
  background: rgba(19, 45, 97,.06);
  transform: translateY(-1px);
}

/* actif */
.bs-tab.is-active{
  opacity: 1;
  color: #0d397b;
}

.bsj-search-mount,
.bs-search-root,
.bs-searchbar {
  height: 55px;
}

.bs-search-root {
  margin: 0;
  padding: 0;
  z-index: 2147483647;
}

.bs-searchbar {
  z-index: 200;
  box-shadow:
    0 6px 20px rgba(13, 57, 123, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.04);
} 

.bs-search-context-ico {
  display: none;
}

/* ============== MOBILE VIEW =============== */

@media (max-width: 768px) {
  .bs-searchbar .bs-zone[data-panel="when"],
  .bs-searchbar .bs-zone[data-panel="who"] {
    display: none;
  }

  .bs-searchbar > .bs-divider {
    display: none;
  }

  .bs-searchbar .bs-zone[data-panel="where"] {
    justify-content: center;
    align-items: center;
    vertical-align: middle;
  }

  .bs-searchbar .bs-zone[data-panel="where"] span {
    display: none;
  }

  .bs-searchbar .bs-zone[data-panel="where"] label {
    font-size: 13px;
    margin-top: 3px;
    font-weight: 500;
    color:rgb(24, 50, 101);
  }

  .bs-tab {
    font-size: 11px;
    font-weight: 500;
  }

  .bs-nav a svg {
    transition:
      opacity .2s cubic-bezier(.16,1,.3,1),
      transform .2s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }

  .bs-center {
    transition: 
      padding .6s cubic-bezier(.16,1,.3,1);
    will-change: padding;
  }

  .bs-searchbar-shell.bs-searchbar--navbar{
    width: 90%;
    margin: 0 10px 0 0;
    height: 55px;
    position: relative;
    order: 1;
    padding: 0 30px 0 0;
    align-self: stretch;
    transition:
      transform .55s cubic-bezier(.16,1,.3,1),
      width .55s cubic-bezier(.16,1,.3,1),
      box-shadow .35s ease;
    will-change: transform, width;
  }

  /* ============== MOBILE COMPACT NAV ============ */

  .bs-navbar.is-compact .bs-center {
    gap: 14px;
    padding: 3.5% 0 3.5% 5%;
  }

  .bs-navbar.is-compact .bs-nav a svg {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateY(-15px);
  }

  .bs-navbar.is-compact .bs-burger {
    top: 35px;
  }

  /* ============ NAV ============= */

  .bs-menu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-nav-main-color);
    margin: 0 0 8px;
  }

  .bs-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin-bottom: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bs-nav-second-color);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .bs-menu-item::after {
    content: "›";
    margin-left: auto;
    color: #999;
    font-size: 20px;
  }

  .bs-menu-item:hover {
    background: #f5f5f5;
    color: #000;
  }

  .bs-menu-item:hover .bs-menu-icon {
    color: #000;
  }

  .bs-menu-item span p {
    position: fixed;
    font-size: 8px;
    color: #b0b0b0;
    font-style: normal;
  }

  .bs-menu-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    color: #111;
  }

  .bs-menu-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
  }

  .bs-menu-text {
    font-size: 13px;
    font-weight: 500;
  }

  /* BOTTOM */
  .mobile-bottom {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    vertical-align: middle;
    gap: 12px;
  }

  .mobile-bottom a {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    background: rgb(240, 240, 240);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    color: #111;
  }
}

/* ============ DESKTOP VIEW ============= */

@media (min-width: 769px) {
  .bs-burger { display: none; }
  .mobile-menu { display: none; }

  .cart-btn,
  .bs-logo img {
    display: block;
  }

  .bs-nav {
    display:flex;
    align-items:flex-end;
    justify-content:center;
    margin: 0;
    gap: 14px;
    order: 1;
    transition:
      opacity .35s cubic-bezier(.16,1,.3,1),
      transform .45s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }

  body.bs-search-overlay.is-open .bs-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .bs-searchbar-shell {
    order: 2;
  }

  .bs-searchbar-shell.bs-searchbar--navbar{
    width: 100%;
    margin: 0;
    transition:
      transform .55s cubic-bezier(.16,1,.3,1),
      width .55s cubic-bezier(.16,1,.3,1),
      box-shadow .35s ease;
    will-change: transform, width;
  }

  .bs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0;
    min-width: 0;
    margin: 40px 0 0 0;
    transition: all .3s ease;
  }

  .bs-navbar.is-compact .bs-center {
    margin: 0;
  }

  .bs-navbar-inner {
    height: auto;
    min-height: 80px;
    padding: 2.5% 5% 3.5% 5%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0px;
    align-items: center;
    justify-content: space-between;
  }

  .bs-tab{
    position: relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    padding: 6px 10px 10px;
    border-radius: 14px;

    text-decoration:none;
    color: rgb(19, 45, 97);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;

    opacity: .65;
    transition:
      opacity .2s ease,
      transform .2s ease,
      background .2s ease;
  }

  /* icône */
  .bs-tab-ico{
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    margin-bottom: 4px;
  }

  /* label */
  .bs-tab-label{
    font-size: 12px;
    line-height: 1;
  }

  /* hover */
  .bs-tab:hover{
    opacity: 1;
    background: rgba(19, 45, 97,.06);
    transform: translateY(-1px);
  }

  /* actif */
  .bs-tab.is-active{
    opacity: 1;
    color: #0d397b;
  }

  /* ============= COMPACT NAVBAR =============== */
  
  .bs-navbar.is-compact {
    top: 0;
  }

  .bs-navbar.is-compact .bs-navbar-inner {
    padding: 2% 5% 1.5%;
    align-items: center;
  }

  .bs-navbar.is-compact .bs-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
  }

  .bs-navbar.is-compact .bs-center {
    gap: 0;
    align-items: center;
    justify-content: center;
  }

  .bs-search-context-ico {
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }

  .bs-navbar.is-compact .bs-search-context-ico {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .bs-search-context-ico svg {
    width: 100%;
    height: 100%;
    stroke: #0d397b;
    stroke-width: 1.7;
    fill: none;
  }

  .bs-navbar.is-compact .bs-searchbar-shell {
    width: min(620px, 100%);
    transform: translateY(-10px) scale(.975);
    transition-delay: .04s;
  }

  .bs-searchbar {
    box-shadow:
      0 14px 40px rgba(0,0,0,.10);
    transition:
      transform .45s cubic-bezier(.16,1,.3,1),
      box-shadow .3s ease;
  }

  .bs-navbar.is-compact .bs-searchbar {
    transition-delay: .08s;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }

  /* padding interne (inputs) */
  .bs-navbar.is-compact .bs-searchbar * {
    transition: all .25s ease;
  }

  /* si ton plugin a des paddings internes */
  .bs-navbar.is-compact .bs-searchbar .bs-search-section {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* bouton search */
  .bs-navbar.is-compact .bs-searchbar .bs-search-submit {
    width: 42px;
    height: 42px;
  }

  .bs-navbar.is-compact .bs-searchbar {
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }
}