/* doc-project | commande/v1/assets/css/layout.css | Définit les styles de layout globaux pour la topbar, la bottom navigation et les toasts de l’interface. | Expose: aucun | Dépend de: aucun | Impacte: UI commune (navigation, notifications, espacement responsive) | Tables: aucune */
/*
 * Styles de layout globaux : topbar, bottom nav et toast.
 * Ces classes structurent l’UI commune (navigation + notifications).
 */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index: 20;
  transition: transform .22s ease, opacity .22s ease;
}
.topbar.is-hidden{
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
}
.topbar__inner{
  max-width: 100%;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: rgba(0,0,0,1);
  gap: 10px;
}
/* Topbar plus haute + contenu mieux centré */
.topbar__inner{
  min-height: 64px;                 /* ↑ hauteur de la barre */
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px; 
  /* ↑ + d’air en haut/bas + safe area iOS */
  
  display:flex;
  align-items:center;               /* centrage vertical */
  justify-content:space-between;
  gap: 12px;
}

/* Un peu plus d’air dans les “pills” à gauche/droite */
.topbar__brand,
.topbar__store,
.topbar__account{
  padding: 12px 14px;               /* ↑ plus haut */
}

/* Optionnel : améliorer l’alignement visuel du texte */
.topbar__brandName,
.topbar__hint{
  line-height: 1.1;
}

.topbar__brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgb(51, 51, 51);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.topbar__brandDot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand2);
  box-shadow: 0 0 0 3px rgba(178,34,34,.2);
}
.topbar__brandName{
  color:#fff;
  font-weight: 800;
  letter-spacing: .2px;
}
.topbar__right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.topbar__store, .topbar__account{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgb(51, 51, 51);
  color:#fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.topbar__hint{
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.topbar__account{
  background: rgb(51, 51, 51);
  border: 1px solid rgba(255,255,255,.14);
}

.bottomNav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.bottomNav::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.10);
}
.bottomNav{
  display:flex;
  justify-content:center;
}
.bottomNav__item{
  position:relative;
  width: 33.33%;
  max-width: 240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 8px 10px;
  color: rgba(255,255,255,.85);
}
.bottomNav__icon{ font-size: 18px; }
.bottomNav__label{ font-size: 12px; }
.bottomNav__item.is-active{
  color: #fff;
  font-weight: 700;
}
.bottomNav__badge{
  position:absolute;
  top: 6px;
  right: 18px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--brand2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.toast{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 92px;
  z-index: 30;
  display:flex;
  justify-content:center;
  padding: 0 14px;
}
.toast__content{
  max-width: 740px;
  width: 100%;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
}

