/* ============================================================
   BOOKING DRAWER + AUTH MODAL — AV PRODUCTION
   ============================================================ */

/* ── BOUTON RÉSERVER ─────────────────────────────────────── */
.btn-reserver {
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: #fff;
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-reserver:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-reserver:active { transform: translateY(0); }

/* Masquer tout résidu PayPal dans les cartes pricing */
.pricing-card form,
.pricing-card img:not(.pricing-img),
.pricing-card style {
  display: none !important;
}

/* ── OVERLAY ─────────────────────────────────────────────── */
.bk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 900;
  backdrop-filter: blur(4px);
}
.bk-overlay.open { display: block; }

/* ── DRAWER ──────────────────────────────────────────────── */
.bk-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #0e0e0e;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bk-drawer.open { transform: translateX(0); }

/* ── HEADER ──────────────────────────────────────────────── */
.bk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bk-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}
.bk-back, .bk-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.bk-back:hover, .bk-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── PROGRESS ────────────────────────────────────────────── */
.bk-progress {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.bk-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.3);
  transition: all 0.25s;
  flex-shrink: 0;
}
.bk-dot.active {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.bk-dot.done {
  border-color: rgba(74,222,128,0.6);
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}
.bk-dot.done::after { content: '✓'; font-size: 0.65rem; }
.bk-progress-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 8px;
}

/* ── BODY ────────────────────────────────────────────────── */
.bk-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.bk-panel { animation: fadeIn 0.2s ease; }
.bk-panel.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── CALENDRIER ──────────────────────────────────────────── */
.bk-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bk-cal-month {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.bk-cal-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.bk-cal-btn:hover { background: rgba(255,255,255,0.12); }
.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bk-cal-hdr {
  text-align: center;
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.3);
  padding: 4px 0;
}
.bk-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  user-select: none;
}
.bk-cal-day.empty { cursor: default; }
.bk-cal-day.past { opacity: 0.25; cursor: default; pointer-events: none; }
.bk-cal-day.today { border-color: rgba(255,255,255,0.25); }
.bk-cal-day.selected { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.bk-cal-day:not(.empty):not(.past):not(.selected):hover { background: rgba(255,255,255,0.1); }

/* ── CRÉNEAUX ────────────────────────────────────────────── */
.bk-slots-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.bk-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bk-slot {
  padding: 12px 8px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: all 0.15s;
  user-select: none;
}
.bk-slot:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.bk-slot.selected { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.bk-slot.unavailable {
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

/* ── FORMULAIRE ──────────────────────────────────────────── */
.bk-form-group { margin-bottom: 16px; }
.bk-form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.bk-form-group input,
.bk-form-group textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.bk-form-group input:focus,
.bk-form-group textarea:focus { border-color: rgba(255,255,255,0.35); }
.bk-form-group textarea { resize: vertical; min-height: 80px; }
.bk-form-error { color: #f87171; font-size: 0.82rem; margin-top: 8px; min-height: 20px; }

/* ── RÉCAP ───────────────────────────────────────────────── */
.bk-recap-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}
.bk-recap-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.bk-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
.bk-recap-row:last-child { border-bottom: none; }
.bk-recap-row span:first-child { color: rgba(255,255,255,0.4); }
.bk-recap-row span:last-child { font-weight: 600; }
.bk-recap-row.total { padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
.bk-recap-row.total span:last-child { font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; }
.bk-secure {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.bk-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bk-next-btn {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.bk-next-btn:hover:not(:disabled) { opacity: 0.85; }
.bk-next-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── AUTH MODAL ──────────────────────────────────────────── */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 950;
  backdrop-filter: blur(4px);
}
.auth-overlay.open { display: block; }
.auth-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 420px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  z-index: 951;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.auth-modal.open {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.auth-close:hover { color: #fff; }
.auth-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 24px;
}
.auth-tabs-bar {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab-btn {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}
.auth-tab-btn.active { background: rgba(255,255,255,0.12); color: #fff; }
.auth-fg { margin-bottom: 14px; }
.auth-fg label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.auth-fg input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.auth-fg input:focus { border-color: rgba(255,255,255,0.35); }
.auth-msg { font-size: 0.82rem; min-height: 20px; margin-bottom: 8px; }
.auth-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.auth-btn:hover { opacity: 0.85; }
.auth-link {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  cursor: pointer;
  transition: color 0.15s;
}
.auth-link:hover { color: #fff; }
.auth-account-info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}
.auth-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hidden { display: none !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .bk-drawer { width: 100vw; border-left: none; }
  .bk-slots-grid { grid-template-columns: repeat(3, 1fr); }
}
