/* ========= Fixed-on-scroll nav (row 2) ========= */

/* Supprime tout gap accidentel */
html, body { margin: 0; }

/* Neutralise tout padding top hérité */
body.has-fixed-navbar { padding-top: 0 !important; }

/* WP admin bar offset */
:root { --nova-fixed-top: 0px; }
body.admin-bar { --nova-fixed-top: 32px; }
@media (max-width: 782px){
  body.admin-bar { --nova-fixed-top: 46px; }
}

/* Container global */
.nova-navbar{
  z-index: 100; /* sous la barre admin, au-dessus du contenu */
  font-family: var(--nova-menu-font-family);
}

/* Topbar (défile normalement) */
.nova-topbar{
  font-family: var(--nova-menu-font-family);
}

/* Barre principale - état normal */
.nova-menu{
  background: #fff;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1029;
  font-family: var(--nova-menu-font-family);
}

/* Barre principale - état fixé */
.nova-menu.is-fixed{
  position: fixed;
  top: var(--nova-fixed-top);
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255,255,255,.9);
  border-bottom-color: rgba(0,0,0,.06);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
}

/* Transitions confort */
.nova-menu .navbar-brand,
.nova-menu .nav-link{
  transition: padding .2s ease, margin .2s ease, color .2s ease, opacity .2s ease, background .2s ease;
}
.nova-menu.is-fixed .navbar-brand{ padding-top: .25rem; padding-bottom: .25rem; }
.nova-menu.is-fixed .nav-link{ padding-top: .4rem; padding-bottom: .4rem; }

/* Badge panier */
.nova-menu .btn-cart .cart-count{
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  transform: translate(-32%, -32%) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin: 0;
  border-radius: 999px;
  background: #000 !important;
  color: #fff !important;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #fff;
}

/* Spacer manipulé via JS pour éviter le "jump" */
.nova-menu-spacer{ height: 0; }

/* ==========================================================================
   HEADER – Hauteurs
   ========================================================================== */
.nova-menu {
  min-height: 75px;
  display: flex;
  align-items: center;
}

.nova-menu .row {
  min-height: 90px;
  align-items: center;
}

.nova-menu .navbar-brand img {
  max-height: 60px;
  height: auto;
}

/* Mobile : compacter un peu pour maximiser l'espace utile */
@media (max-width: 991.98px){
  .nova-menu { min-height: 64px; }
  .nova-menu .row { min-height: 72px; }
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */
.nova-navbar,
.nova-topbar,
.nova-menu,
.nova-menu * {
  font-family: var(--nova-menu-font-family);
}

.nova-menu .navbar-nav .nav-link {
  font-weight: var(--nova-menu-font-weight);
  color: #111;
  font-size: var(--nova-menu-font-size);
  text-transform: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nova-menu .navbar-nav .nav-link:hover,
.nova-menu .navbar-nav .nav-link:focus {
  color: #000;
}

/* Icônes à droite — tailles pilotées par variables */
.nova-menu .bi-search { font-size: var(--nova-icon-size-search); line-height: 1; }
.nova-menu .bi-person { font-size: var(--nova-icon-size-user);   line-height: 1; }
.nova-menu .bi-bag    { font-size: var(--nova-icon-size-cart);   line-height: 1; }

/* Topbar */
.nova-topbar { font-weight: 400; font-size: 13px; color: #555; }
.nova-topbar a { color: #555; text-decoration: none; }
.nova-topbar a:hover { color: #000; }

/* ==========================================================================
   PATCH RESPONSIVE SPÉCIFIQUE 600px
   - À ≤600px, on force le menu fixé à être collé au pixel 0
   - Utile pour les vues type 600px comme dans ta capture
   ========================================================================== */
@media (max-width: 600px){
  /* Ignore tout offset éventuel et colle le menu au bord haut */
  :root, body, body.admin-bar { --nova-fixed-top: 0px !important; }
  .nova-menu.is-fixed { top: 0 !important; }
  /* SUPPRIMÉ : La topbar reste visible sur mobile */
  /* .nova-topbar { display: none !important; } */
}


/* ------------------------------------------------------------------
   Sous-menus imbriqués (niveaux 2+)
   - Desktop : affichage en "flyout" à droite
   - Mobile : Bootstrap gère via collapse / click
------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Le <li> dropdown dans un dropdown-menu doit être positionné */
  .nova-menu .dropdown-menu .dropdown {
    position: relative;
  }

  /* Le sous-menu (niveau 2+) s’ouvre à droite du parent */
  .nova-menu .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.25rem;
    margin-left: 0;
  }

  /* Sur desktop, on autorise l’ouverture au hover pour les niveaux imbriqués */
  .nova-menu .dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block;
  }

    /* Sécurise l’affichage des sous-menus imbriqués (niveau 3+) */
  .nova-menu .dropdown-menu .dropdown-menu {
    display: none;       /* état normal */
  }
  .nova-menu .dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block;      /* hover sur le parent de niveau 2 */
  }
}
/* ========================================================================== 
   MOBILE OFFCANVAS MENU (objectif : même rendu que la capture)
   - Ne touche pas le desktop (styles encapsulés dans max-width: 991.98px)
   ========================================================================== */

@media (max-width: 991.98px){
  /* Le tiroir mobile doit reprendre le thème du menu pour garder un contraste lisible. */
  .nova-mobile-menu.offcanvas{
    --bs-offcanvas-bg: var(--nova-menu-bg-color, #fff);
    --bs-offcanvas-color: var(--nova-menu-text-color, #111);
    width: min(78vw, 420px);
    background: var(--bs-offcanvas-bg);
    color: var(--bs-offcanvas-color);
  }

  /* Header : "Menu" à gauche + croix à droite */
  .nova-mobile-menu .offcanvas-header{
    padding: 22px 22px 10px 22px;
    position: relative;
    justify-content: space-between;
    align-items: flex-start;
  }

  .nova-mobile-menu-title{
    font-size: 20px;
    font-weight: 600;
    color: #d08a2b; /* orange (proche de la capture) */
    letter-spacing: 0.2px;
  }

  .nova-mobile-menu .btn-close{
    position: relative;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    margin: 0 0 0 auto;
    opacity: 1;
    color: var(--bs-offcanvas-color);
    background: none;
    box-shadow: none;
  }

  .nova-mobile-menu .btn-close::before,
  .nova-mobile-menu .btn-close::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
  }

  .nova-mobile-menu .btn-close::before{
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nova-mobile-menu .btn-close::after{
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nova-mobile-menu .btn-close:hover,
  .nova-mobile-menu .btn-close:focus{
    opacity: 0.72;
  }

  /* Corps du menu */
  .nova-mobile-menu .offcanvas-body{
    padding: 12px 22px 24px 22px;
  }

  .nova-mobile-menu-section + .nova-mobile-menu-section{
    margin-top: 26px;
  }

  .nova-mobile-menu-section-title{
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 14px;
  }

  .nova-mobile-menu-list{
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nova-mobile-menu-list li + li{
    margin-top: 18px;
  }

  .nova-mobile-menu-list a{
    display: block;
    text-decoration: none;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .nova-mobile-menu-list a:hover,
  .nova-mobile-menu-list a:focus{
    opacity: 0.8;
  }

  /* Modal recherche mobile : look propre */
  .nova-search-modal .modal-content{
    border-radius: 14px;
  }
  .nova-search-modal .modal-header{
    border-bottom: 0;
    padding-bottom: 0;
  }
}

  /* =========================
     Sous-menus dans l'offcanvas
     ========================= */

  .nova-mobile-menu-item .nova-mobile-menu-row{
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nova-mobile-menu-item .nova-mobile-menu-row a{
    flex: 1;
    min-width: 0;
  }

  .nova-mobile-submenu-toggle{
    border: 0;
    background: transparent;
    padding: 6px 6px;
    line-height: 1;
  }

  .nova-mobile-submenu-toggle i{
    display: inline-block;
    transition: transform .2s ease;
  }

  .nova-mobile-submenu-toggle[aria-expanded="true"] i{
    transform: rotate(180deg);
  }

  .nova-mobile-submenu{
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(0,0,0,0.08);
  }

  .nova-mobile-submenu > li + li{
    margin-top: 10px;
  }

  .nova-mobile-submenu a{
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: none;
  }
