/* ══════════════════════════════════════════════════════
   WILKO MARKET — navbar-mobile.css
   Remplace complètement l'ancien fichier
   Compatible avec style.css et index.html
══════════════════════════════════════════════════════ */

/* ─── Hamburger visible uniquement sous 1201px ───
   ⚠️ SEUIL MODIFIÉ : 769px → 1201px
   (aligné avec le nouveau seuil de style.css / index.html) */
@media (min-width: 1201px) {
  .navbar-hamburger { display: none !important; }
  .navbar-mobile-menu { display: none !important; }
}

/* ─── Panel mobile ─── */
.navbar-mobile-menu {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}
.navbar-mobile-menu.open {
  pointer-events: all;
}

/* Overlay sombre derrière le panel */
.navbar-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.navbar-mobile-menu.open .navbar-mobile-overlay {
  opacity: 1;
}

/* Panel blanc/sombre qui glisse depuis la droite */
.navbar-mobile-panel {
  position: absolute;
  top: 0;
  right: -300px;
  width: 285px;
  height: 100%;
  background: var(--carte, #131313);
  border-left: 1px solid var(--bordure, #232323);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow-y: auto;
}
.navbar-mobile-menu.open .navbar-mobile-panel {
  right: 0;
}

/* ─── Header du panel ─── */
.navbar-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--bordure, #232323);
  flex-shrink: 0;
}
.navbar-mobile-brand-name {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #C9A84C, #f0d990);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-mobile-brand-sub {
  font-size: 0.58rem;
  color: var(--muted, #666);
  letter-spacing: 1px;
  margin-top: 2px;
}
.navbar-mobile-close {
  background: transparent;
  border: 1px solid var(--bordure, #232323);
  color: var(--muted, #666);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.navbar-mobile-close:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* ─── Boutons boutique dans le panel ─── */
.mobile-boutique-section {
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}
.mobile-boutique-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.mobile-boutique-section a:hover {
  opacity: 0.85;
  transform: translateX(3px);
}
.mobile-boutique-section .btn-create-mobile {
  background: linear-gradient(135deg, #C9A84C, #a8893d);
  color: #000;
}
.mobile-boutique-section .btn-manage-mobile {
  background: rgba(201, 168, 76, 0.09);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.35);
}

/* ─── Séparateur ─── */
.navbar-mobile-divider {
  height: 1px;
  background: var(--bordure, #232323);
  margin: 6px 14px;
  flex-shrink: 0;
}

/* ─── Liens de navigation ─── */
.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  flex: 1;
}
.navbar-mobile-links a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.82rem 1.4rem;
  color: var(--texte-doux, #b0b0b0);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.navbar-mobile-links a:hover,
.navbar-mobile-links a.actif {
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.07);
  border-left-color: #C9A84C;
}
.navbar-mobile-links a i {
  width: 16px;
  text-align: center;
  color: #C9A84C;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* ─── Footer du panel (thème / favoris / panier) ─── */
.navbar-mobile-footer {
  padding: 1rem 1rem 1.4rem;
  border-top: 1px solid var(--bordure, #232323);
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}
.btn-icon-mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.4rem;
  background: var(--carte2, #1a1a1a);
  border: 1px solid var(--bordure, #232323);
  border-radius: 8px;
  cursor: pointer;
  color: var(--texte-doux, #b0b0b0);
  font-size: 1rem;
  transition: all 0.2s;
  position: relative;
}
.btn-icon-mobile span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-icon-mobile:hover {
  border-color: #C9A84C;
  color: #C9A84C;
}

/* ─── Thème clair : adapter les couleurs du panel ─── */
[data-theme="light"] .navbar-mobile-panel {
  background: #fff;
  border-left-color: #ddd8cc;
}
[data-theme="light"] .navbar-mobile-header {
  border-bottom-color: #ddd8cc;
}
[data-theme="light"] .navbar-mobile-links a {
  color: #444;
}
[data-theme="light"] .navbar-mobile-footer {
  border-top-color: #ddd8cc;
}
[data-theme="light"] .btn-icon-mobile {
  background: #f0ece4;
  border-color: #ccc6b8;
  color: #444;
}
[data-theme="light"] .navbar-mobile-divider {
  background: #ddd8cc;
}
[data-theme="light"] .mobile-boutique-section .btn-manage-mobile {
  background: rgba(201, 168, 76, 0.12);
}