/* ============================================
   Restaurant Reservation Widget — Premium Styles
   ============================================ */

/* ============ HERO RESTAURANT SEARCH BAR ============ */
.hero-search-bar-resa {
  display:flex; align-items:stretch; max-width:780px; margin:2.5rem auto 0;
  background:rgba(13,13,13,0.7); backdrop-filter:blur(40px) saturate(200%); -webkit-backdrop-filter:blur(40px) saturate(200%);
  border:1px solid rgba(201,169,110,0.3); border-radius:16px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity:0; animation:searchBarIn 0.8s 1.8s forwards var(--ease-out-expo);
  transform:translateY(20px);
}
.hero-search-bar-resa .hero-search-field { flex:1; padding:1rem 1.3rem; cursor:pointer; transition:background 0.25s; position:relative; }
.hero-search-bar-resa .hero-search-field:hover { background:rgba(201,169,110,0.06); }
.hero-search-bar-resa .hero-search-divider { width:1px; background:rgba(201,169,110,0.2); margin:0.8rem 0; flex-shrink:0; }
.hero-search-bar-resa .hero-search-btn { min-width:180px; }

/* "Notre Carte" link below hero search */
.hero-menu-link {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size:0.82rem; color:var(--gold); margin-top:0.8rem;
  padding:0.5rem 1rem; border:1px solid rgba(201,169,110,0.25);
  border-radius:20px; background:rgba(13,13,13,0.4); backdrop-filter:blur(10px);
  letter-spacing:0.05em; transition:all 0.3s; text-decoration:none; cursor:pointer;
  opacity:0; animation:searchBarIn 0.6s 2.8s forwards var(--ease-out-expo);
  transform:translateY(10px);
}
.hero-menu-link i { font-size:0.9rem; }
.hero-menu-link:hover {
  color:#fff; border-color:var(--gold); background:rgba(201,169,110,0.12);
  transform:translateY(-1px); box-shadow:0 4px 20px rgba(201,169,110,0.15);
}

@media (max-width: 768px) {
  .hero-search-bar-resa {
    flex-direction: row; max-width: 100%; margin: 2rem auto 0;
    border-radius: 60px; align-items: center; padding: 0; overflow: hidden;
  }
  .hero-search-bar-resa .hero-search-field { display: none; }
  .hero-search-bar-resa .hero-search-divider { display: none; }
  .hero-search-bar-resa .hero-search-btn {
    width: 100%; padding: 1.1rem 2rem; border-radius: 60px;
    flex-direction: row; gap: 0.6rem; font-size: 0.9rem; justify-content: center;
  }
  .hero-menu-link { font-size: 0.75rem; padding: 0.45rem 0.9rem; margin-top: 0.6rem; }
}

/* ============ RESERVATION MODAL ============ */
.resa-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center; cursor: auto;
}
.resa-modal * { cursor: auto; }
.resa-modal button, .resa-modal a, .resa-modal label { cursor: pointer; }
.resa-modal.open { display: flex; }

.resa-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}

.resa-modal-container {
  position: relative; z-index: 1;
  width: 95%; max-width: 620px; max-height: 90vh;
  background: linear-gradient(180deg, #1A1A22, #15151D);
  border: 1.5px solid rgba(201, 169, 110, 0.25);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,169,110,0.08);
  animation: resaModalIn 0.5s var(--ease-out-expo);
}
@keyframes resaModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.resa-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1.5px solid rgba(201,169,110,0.15);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
  background: rgba(201,169,110,0.03);
}
.resa-modal-title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; color: #FFFFFF;
}
.resa-modal-close {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s; cursor: pointer;
}
.resa-modal-close:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }

/* Progress Bar */
.resa-progress { padding: 0 2rem; flex-shrink: 0; }
.resa-progress-bar {
  height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 1rem; overflow: hidden;
}
.resa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 3px; transition: width 0.6s var(--ease-out-expo); width: 33%;
  box-shadow: 0 0 8px rgba(201,169,110,0.4);
}
.resa-progress-steps {
  display: flex; justify-content: space-between; margin-top: 0.8rem; padding-bottom: 0.5rem;
}
.resa-progress-step {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); transition: color 0.3s; font-weight: 500;
}
.resa-progress-step.active { color: var(--gold); font-weight: 700; }
.resa-progress-step.done { color: rgba(255,255,255,0.6); }

/* Modal Body */
.resa-modal-body {
  padding: 2rem; overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.resa-modal-body::-webkit-scrollbar { width: 4px; }
.resa-modal-body::-webkit-scrollbar-track { background: transparent; }
.resa-modal-body::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* Steps */
.resa-step { display: none; }
.resa-step.active { display: block; animation: resaStepIn 0.5s var(--ease-out-expo); }
@keyframes resaStepIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.resa-step .step-title {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 400;
  color: #FFFFFF; margin-bottom: 0.5rem;
}
.resa-step .step-subtitle {
  font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 2rem; line-height: 1.6;
}

/* Modal Footer */
.resa-modal-footer {
  padding: 1.2rem 2rem; border-top: 1.5px solid rgba(201,169,110,0.12);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
  background: rgba(201,169,110,0.02);
}

/* ============ TIME SLOTS GRID ============ */
.resa-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.7rem;
}

.resa-time-slot {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
}
.resa-time-slot::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}
.resa-time-slot:hover:not(.full):not(.selected) {
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.04);
  transform: translateY(-2px);
}
.resa-time-slot.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
  box-shadow: 0 0 0 1px rgba(201,169,110,0.15), 0 4px 15px rgba(201,169,110,0.1);
}
.resa-time-slot.selected::before { transform: scaleX(1); }

.resa-time-slot.full {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
}

.resa-slot-time {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.3rem;
}
.resa-slot-avail {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}
.resa-time-slot.selected .resa-slot-avail { color: var(--gold); }
.resa-slot-avail.low { color: #e88a4a; }
.resa-slot-avail.none { color: rgba(255,255,255,0.3); }

/* No slots message */
.resa-no-slots {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}
.resa-no-slots i {
  display: block; font-size: 2rem; color: var(--gold);
  margin-bottom: 1rem; opacity: 0.5;
}

/* ============ CONTACT FORM (Step 2) ============ */
.resa-form-group { margin-bottom: 1.3rem; }
.resa-form-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.6rem;
}
.resa-form-input {
  width: 100%; padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: #FFFFFF;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  transition: all 0.3s; outline: none;
}
.resa-form-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
  background: rgba(201,169,110,0.04);
}
.resa-form-input::placeholder { color: rgba(255,255,255,0.3); }
.resa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============ CONFIRMATION (Step 3) ============ */
.resa-recap-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 12px; overflow: hidden;
}
.resa-recap-header {
  padding: 1rem 1.5rem;
  background: rgba(201,169,110,0.06);
  border-bottom: 1px solid rgba(201,169,110,0.12);
  display: flex; align-items: center; gap: 0.6rem;
}
.resa-recap-header i { color: var(--gold); font-size: 1rem; }
.resa-recap-header span {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; color: #FFFFFF;
}
.resa-recap-items { padding: 0 1.5rem; }
.resa-recap-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}
.resa-recap-row:last-child { border-bottom: none; }
.resa-recap-label { color: var(--text-muted); }
.resa-recap-value { color: var(--text-primary); font-weight: 500; }

/* Stripe card element container */
.resa-stripe-container {
  margin-top: 1.5rem; padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.resa-stripe-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.resa-stripe-label i { color: var(--gold); }
.resa-stripe-note {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 0.6rem;
  font-style: italic; line-height: 1.5;
}

/* Submit button */
.resa-btn-confirm {
  width: 100%; margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; color: var(--dark);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 10px; cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.resa-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.35);
}
.resa-btn-confirm:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ============ SUCCESS STATE ============ */
.resa-success {
  text-align: center; padding: 2rem 1rem;
  animation: resaStepIn 0.6s var(--ease-out-expo);
}
.resa-success-icon {
  width: 80px; height: 80px;
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2rem; color: var(--gold);
  animation: checkPop 0.5s var(--ease-out-expo) 0.3s both;
}
.resa-success h3 {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 300;
  color: var(--text-primary); margin-bottom: 0.8rem;
}
.resa-success p {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.3rem;
}

/* Confetti burst animation */
@keyframes resaConfettiBurst {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}
.resa-confetti-particle {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: resaConfettiBurst 1.2s ease-out forwards;
  pointer-events: none;
}

/* ============ MENU POPUP ============ */
.menu-popup {
  position: fixed; inset: 0; z-index: 10002;
  display: none; align-items: center; justify-content: center;
}
.menu-popup.open { display: flex; }

.menu-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
}

.menu-popup-container {
  position: relative; z-index: 1;
  width: 95%; max-width: 900px; max-height: 90vh;
  display: flex; flex-direction: column;
  animation: resaModalIn 0.5s var(--ease-out-expo);
}

.menu-popup-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; margin-bottom: 0.5rem;
}
.menu-popup-title {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 300;
  color: var(--text-primary);
}
.menu-popup-actions { display: flex; gap: 0.8rem; align-items: center; }
.menu-popup-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(201,169,110,0.3);
  background: rgba(201,169,110,0.08);
  color: var(--gold); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 0.4rem; text-decoration: none;
}
.menu-popup-btn:hover {
  background: rgba(201,169,110,0.18); border-color: var(--gold);
  color: #fff;
}
.menu-popup-close {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
}
.menu-popup-close:hover { border-color: var(--gold); color: var(--gold); }

.menu-popup-content {
  flex: 1; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(201,169,110,0.15);
  background: #111;
}
.menu-popup-content iframe,
.menu-popup-content embed {
  width: 100%; height: 75vh; border: none; display: block;
}
.menu-popup-content img {
  width: 100%; max-height: 80vh; object-fit: contain;
  cursor: zoom-in;
}
.menu-popup-content img.zoomed {
  max-height: none; cursor: zoom-out;
  object-fit: initial;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .resa-modal {
    padding: 1.2rem;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .resa-modal-backdrop {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .resa-modal-container {
    width: 100%; max-width: 100%; max-height: 85vh;
    border-radius: 20px;
    border: 1px solid rgba(201,169,110,0.2);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.3);
  }
  .resa-modal-body { padding: 1.5rem; }
  .resa-modal-header { padding: 1rem 1.5rem; }
  .resa-modal-footer { padding: 1rem 1.5rem; }
  .resa-form-row { grid-template-columns: 1fr; }
  .resa-time-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; }
  .resa-time-slot { padding: 0.8rem 0.5rem; }
  .resa-slot-time { font-size: 1.1rem; }
  .resa-progress-step { font-size: 0.55rem; letter-spacing: 0.06em; }

  .menu-popup-container { width: 100%; max-width: 100%; padding: 0 0.5rem; }
  .menu-popup-header { padding: 0.8rem 0; }
  .menu-popup-title { font-size: 1.3rem; }
  .menu-popup-btn span { display: none; }
}
