/* Beauté Sénégal - Interface Client */

:root {
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --orange: #F97316;
  --wave-blue: #3B82F6;
  --success: #10B981;
  --dark: #111827;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #FAFAFA;
  color: #111827;
  min-height: 100vh;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text { font-size: 18px; font-weight: 800; color: white; line-height: 1.2; }
.logo-sub { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }

.search-bar {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}

.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { background: rgba(255,255,255,0.2); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.header-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,0.4); }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.3); color: white; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-secondary { background: #F3F4F6; color: #374151; }
.btn-secondary:hover { background: #E5E7EB; }
.btn-success { background: #10B981; color: white; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-orange { background: linear-gradient(135deg, #F97316, #EA580C); color: white; }
.btn-wave { background: linear-gradient(135deg, #3B82F6, #2563EB); color: white; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1F2937 0%, #111827 50%, #1F2937 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.3), transparent 60%);
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
.hero h1 span { background: linear-gradient(135deg, #A78BFA, #EC4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  background: white;
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 14px;
  color: #111827;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: #A78BFA; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Categories */
.categories {
  background: white;
  border-bottom: 1px solid #F3F4F6;
  padding: 16px 0;
  overflow-x: auto;
}

.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.category-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid #E5E7EB;
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.category-pill:hover, .category-pill.active {
  background: #F5F3FF;
  border-color: #8B5CF6;
  color: #7C3AED;
}

/* Main layout */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }

/* Salons Grid */
.salons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.salon-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.salon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.salon-cover {
  height: 180px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
  overflow: hidden;
}

.salon-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.salon-category-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.verified-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(16,185,129,0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.salon-body { padding: 16px; }
.salon-name { font-size: 17px; font-weight: 800; margin-bottom: 4px; }

.salon-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #D97706;
}

.salon-location {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.salon-desc {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.salon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.price-from { font-size: 13px; color: #6B7280; }
.price-amount { font-size: 16px; font-weight: 800; color: #7C3AED; }

/* Page Salon Détail */
.salon-detail { max-width: 900px; margin: 0 auto; padding: 24px 20px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6B7280;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  background: none;
  border: none;
  padding: 0;
}

.back-btn:hover { color: #374151; }

.salon-hero {
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-bottom: 20px;
}

.salon-hero img { width: 100%; height: 100%; object-fit: cover; }

.salon-info-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #F3F4F6;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F9FAFB;
}

.service-item:last-child { border-bottom: none; }

.service-name { font-size: 15px; font-weight: 700; }
.service-details { font-size: 13px; color: #6B7280; margin-top: 2px; }
.service-price { font-size: 17px; font-weight: 800; color: #7C3AED; text-align: right; }
.service-duration { font-size: 12px; color: #6B7280; text-align: right; }

/* Booking Flow */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .booking-modal { align-items: center; justify-content: center; padding: 20px; }
}

.booking-sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .booking-sheet {
    border-radius: 24px;
    max-width: 520px;
    max-height: 90vh;
  }
}

.booking-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F3F4F6;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-header h2 { font-size: 20px; font-weight: 800; }
.booking-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

.booking-step { padding: 20px 24px; }

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #E5E7EB;
  transition: background 0.3s;
}

.step-dot.active { background: #8B5CF6; }
.step-dot.done { background: #10B981; }

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.time-slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 2px solid #E5E7EB;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.time-slot-btn.available { border-color: #D1FAE5; }
.time-slot-btn.available:hover { border-color: #10B981; background: #F0FDF4; }
.time-slot-btn.selected { border-color: #8B5CF6; background: #F5F3FF; color: #7C3AED; }
.time-slot-btn.full { background: #FEF2F2; border-color: #FECACA; color: #EF4444; cursor: not-allowed; }

/* Booking summary */
.booking-summary {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row.total {
  font-weight: 800;
  font-size: 16px;
  border-top: 1px solid #E5E7EB;
  padding-top: 10px;
  margin-top: 4px;
}

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.payment-option {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #E5E7EB;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.payment-option:hover { border-color: #8B5CF6; }
.payment-option.selected { border-color: #8B5CF6; background: #F5F3FF; }

.payment-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.payment-info { flex: 1; }
.payment-name { font-weight: 700; font-size: 15px; }
.payment-desc { font-size: 12px; color: #6B7280; margin-top: 2px; }

.payment-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.payment-option.selected .payment-radio {
  border-color: #8B5CF6;
  background: #8B5CF6;
}

.payment-option.selected .payment-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
}

/* Auth modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.auth-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.form-control:focus { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
select.form-control { cursor: pointer; }

/* Confirmation */
.success-animation {
  text-align: center;
  padding: 32px 24px;
}

.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Toast */
.toast-container {
  position: fixed;
  top: 80px; right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlide 0.3s ease;
  max-width: 320px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 4px solid #10B981; }
.toast-error { border-left: 4px solid #EF4444; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  border-top-color: #8B5CF6;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; color: #6B7280; }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: #374151; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 22px; }
  .search-bar { display: none; }
  .salons-grid { grid-template-columns: 1fr; }
  .time-slot-grid { grid-template-columns: repeat(2, 1fr); }
}
