/* =========================================================================
   SHOPBAR - Barre des boutiques (avant footer)
   ========================================================================= */

.shopbar-container {
  background-color: #0E3B6E;
  padding: 18px 0;
  margin-bottom: 40px;
  width: 100%;
}

.shopbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Titre desktop */
.shopbar-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bouton hamburger (masqué desktop) */
.shopbar-toggle {
  display: none;
}

/* Liste des shops */
.shopbar-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.shopbar-item {
  position: relative;
}

.shopbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.shopbar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Shop actif - surbrillance */
.shopbar-item--active .shopbar-link {
  background-color: rgba(20, 83, 154, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.shopbar-item--active .shopbar-link:hover {
  background-color: rgba(20, 83, 154, 0.8);
}

/* Logo */
.shopbar-logo {
  max-height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease, transform 0.25s ease;
}

.shopbar-link:hover .shopbar-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  transform: scale(1.5);
}

/* Texte (fallback sans logo) */
.shopbar-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================================================
   RESPONSIVE - Mobile (hamburger)
   ========================================================================= */

@media (max-width: 991px) {
  .shopbar-inner {
    flex-direction: column;
    gap: 0;
  }

  /* Masquer le titre desktop */
  .shopbar-header .shopbar-title {
    display: none;
  }

  /* Afficher le bouton hamburger */
  .shopbar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    color: #ffffff;
  }

  .shopbar-toggle-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Icône hamburger */
  .shopbar-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
  }

  .shopbar-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Animation hamburger -> croix */
  .shopbar-toggle[aria-expanded="true"] .shopbar-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .shopbar-toggle[aria-expanded="true"] .shopbar-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .shopbar-toggle[aria-expanded="true"] .shopbar-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Liste masquée par défaut */
  .shopbar-list {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding-top: 12px;
  }

  .shopbar-list.shopbar-list--open {
    display: flex;
  }

  .shopbar-item {
    width: 100%;
  }

  .shopbar-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 4px;
  }

  .shopbar-logo {
    max-height: 24px;
  }
}

/* =========================================================================
   TABLETTE - adaptation intermédiaire
   ========================================================================= */

@media (min-width: 992px) and (max-width: 1199px) {
  .shopbar-logo {
    max-height: 24px;
    max-width: 100px;
  }

  .shopbar-link {
    padding: 6px 12px;
  }

  .shopbar-name {
    font-size: 12px;
  }
}
