/* ===== Top Banner ===== */
.inaris-top-banner {
  background-color: #0A472E;
  color: #F6EAD7;
  font-size: 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inaris-top-banner p {
  margin: 0;
  line-height: 40px;
}

/* ===== Header Desktop ===== */
.inaris-header {
  background: #fff;
  margin-bottom: 10px;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

/* Masquer burger & mobile nav en desktop */
@media (min-width: 769px) {
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ===== Logo ===== */
.logo img {
  display: block;
  height: 60px;
  margin-bottom: 3px;
}

/* Sur mobile seulement (< 768px) */
@media (max-width: 768px) {
  .logo img {
    margin-top: 50px;
  }
}

/* ===== Main nav ===== */
.main-nav {
  flex-grow: 1;
  text-align: center;
  top: 2px;
  position: relative;
  z-index: 200;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  color: #0A472E;
  font-weight: bold;
  text-decoration: none;
}

/* ===== Dropdown desktop ===== */
.has-dropdown {
  position: relative;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  text-align: left;
  padding: 20px 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-radius: 6px;
  gap: 28px;
  flex-wrap: wrap;
  z-index: 1000 !important;
}
.dropdown-chien { width: 550px; }
.dropdown-chat  { width: 550px; }
.dropdown-nacs  { width: 300px; }
.has-dropdown:hover .dropdown {
  display: flex;
}
.dropdown-column {
  flex: 1 1 220px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropdown-column h4 {
  color: #8C9A44;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  border-bottom: 1px solid #8C9A44;
  padding-bottom: 4px;
}
.dropdown-column a {
  color: #0A472E;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 3px 2px;
  text-decoration: none;
  transition: color .2s;
}
.dropdown-column a:hover {
  color: #8C9A44;
}
.dropdown-subgrid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 4px 16px;
  padding-top: 4px;
}

/* ===== Icons desktop ===== */
.icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-btn { background: #E8F8F7; }
.cart-btn   { background: #CCD6A0; }
.account-btn{ background: #F3E4DC; }
.icon-btn img {
  width: 22px;
  height: auto;
}
/* Forcer la nouvelle icône recherche plus grande */
.icon-btn.search-btn img {
  width: 26px !important;
  height: auto !important;
}

/* ===== Search Popup ===== */
.search-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,71,46,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.search-popup-inner {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
}
.search-popup input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 25px 0 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#search-close {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0A472E;
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
  .main-nav,
  .icons {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
    position: absolute;
    left: 4px;
    top: 5px;
    font-size: 28px;
    color: #0A472E;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10;
  }

  .inaris-header {
    min-height: 80px;
  }

  .header-inner {
    justify-content: center !important;
  }
  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 80%; max-width: 300px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    flex-direction: column;
    z-index: 9999;
  }
  .mobile-nav.show {
    display: flex;
  }
  #mobile-menu-close {
    position: absolute;
    top: 3px;
    right: 3px;
    margin: 0;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #000;
    z-index: 10000;
  }

  /* Icônes Mobile en haut */
  .mobile-icons {
    display: flex !important;
    justify-content: center;
    gap: 16px;
    margin-top: 120px;
    padding: 12px 0;
  }
  .mobile-icons .icon-btn {
    width: 48px;
    height: 48px;
  }
  .mobile-icons .icon-btn img {
    width: 22px !important;
    height: 22px !important;
    display: block;
    margin: auto;
  }
  /* Forcer nouvelle icône recherche */
  #mobile-search-toggle img {
    content: url('https://shop.inaris.fr/wp-content/uploads/2020/08/loupe.svg') !important;
  }

  /* Espacement artificiel pour Commande Rapide & Palette Mixer */
  .mobile-nav > ul > li.mobile-item {
    padding: 20px 0;
  }

  .submenu-toggle,
  .submenu-toggle:focus,
  .submenu-toggle:active {
    background: none !important;
    -webkit-tap-highlight-color: transparent;
	  color:black;
  }

  .mobile-nav ul {
    padding: 0 16px;
    margin: 0;
    list-style: none;
  }
  .mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0A472E;
    border-bottom: 1px solid #eee;
    background: none !important;
    cursor: pointer;
  }
  .mobile-item a.mobile-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
  }
  .mobile-submenu,
  .submenu-group {
    background: none !important;
  }
  .mobile-submenu {
    display: none;
    padding-left: 16px;
    margin: 0 0 12px;
  }
  .mobile-submenu li a {
    display: block;
    padding: 6px 0;
    color: #000;
    font-weight: normal;
    text-decoration: none;
  }
}
