/* @itZEN-CONFIG SECURITY=strict VERSIONING=2025-05-06-1810 LOG=enable */
/* @itZEN-FILE FILE=restaurants_banniere.css | PATH=/assets/css/restaurants_banniere.css | STATUS=RESTORED-POPUP-PRESENTATION */

/* ===== BANNIÈRE GLOBALE ===== */
#restaurant-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  flex-wrap: nowrap;
}

/* ===== Logo (gauche) ===== */
.banner-left {
  flex: 0 0 140px;
}

.banner-left img {
  height: 200px;
  max-height: 25vh;
  width: auto;
}

/* ===== Contenu (droite) aligné verticalement ===== */
.banner-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-left: 40px;
  gap: 16px;
}

/* ===== Ligne 1 : menu top ===== */
.banner-topline {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

/* ===== Ligne 2 : bloc vertical unique aligné à droite ===== */
.banner-resto-single {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 15px;
}

.changer-zone {
  font-size: 13px;
  color: #0055cc;
  text-decoration: underline;
  cursor: pointer;
}

.changer-zone:hover {
  color: #003399;
}

/* ===== Ligne 3 : horaires et calendrier ===== */
.line-horaire {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
}

.badge-status {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.badge-status.open {
  background-color: #28a745;
  color: #fff;
}

.badge-status.closed {
  background-color: #dc3545;
  color: #fff;
}

.line-horaire i {
  cursor: pointer;
}

/* ===== Lang selector ===== */
.lang-selector {
  position: relative;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
}

#lang-current {
  padding: 6px 12px;
  background: #f2f2f2;
  border-radius: 4px;
  user-select: none;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  list-style: none;
  padding: 4px 0;
  margin: 4px 0 0 0;
  display: none;
  z-index: 9999;
}

.lang-selector:hover .lang-dropdown {
  display: block;
}

.lang-dropdown li {
  padding: 6px 16px;
  cursor: pointer;
}

.lang-dropdown li:hover {
  background-color: #f0f0f0;
}

/* ===== Boutons menu ===== */
button.login-btn {
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

button.login-btn:hover {
  background: #f0f0f0;
}

/* ===== POPUP NPA RESTAURÉ ===== */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.popup.show {
  display: flex;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 360px;
  max-width: 95%;
  text-align: center;
}

#npa-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#npa-error {
  color: red;
  font-size: 14px;
  display: none;
  margin-top: 5px;
}

.btn-npa-group {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-mode {
  padding: 10px 20px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-mode:hover {
  background: #ddd;
}

/* ===== Toast ===== */
#toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

#toast-message.show {
  opacity: 1;
}

/* ===== Fallback restaurants ===== */
.resto-fallback-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.resto-fallback-list li,
.resto-choice {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.resto-fallback-list li:hover,
.resto-choice:hover {
  background-color: #eaeaea;
}

.manual-restaurant-list p strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
}




/* ZENBLOCK : RESPONSIVE */
/* ZENBLOCK 99: ADAPTATION RESPONSIVE – BANNIÈRE RESTAURANT */
@media (max-width: 768px) {
  #restaurant-banner {
    flex-direction: column;
    padding: 10px;
    align-items: center;
  }

  .banner-left {
    flex: none;
    margin-bottom: 10px;
  }

  .banner-left img {
    height: 80px !important;
    max-height: 80px !important;
  }

  .banner-right {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }

  .banner-topline {
    display: none; /* cache les options secondaires */
  }

  .banner-resto-single {
    align-items: center;
    font-size: 14px;
  }

  .line-horaire {
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .changer-zone {
    font-size: 13px;
  }
}
