/* ═══════════════════════════════════════════════════════════
   Lens FoodTruck — Feuille de style principale
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --orange:      #FF6B35;
  --orange-dark: #e85e2e;
  --dark:        #1a1a2e;
  --dark-2:      #16213e;
  --card-radius: 14px;
}

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── DEMO BANNER ────────────────────────────────────────────── */
.demo-banner {
  background: linear-gradient(90deg, var(--orange), #ff9f1c);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1100;
}
.demo-banner i { margin-right: 6px; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--dark) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--orange) !important;
  letter-spacing: 1px;
}
.nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active   { color: var(--orange) !important; }
.nav-link.admin-link { color: #ffc107 !important; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-orange {
  background: var(--orange);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-orange:hover  { background: var(--orange-dark); color: white; transform: translateY(-1px); }
.btn-orange:active { transform: translateY(0); }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.card-header {
  background: var(--dark) !important;
  color: white;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  font-weight: 600;
}

/* ── PRODUIT CARD ───────────────────────────────────────────── */
.produit-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: var(--dark);
}

/* ── BADGES STATUT ──────────────────────────────────────────── */
.badge-en_attente { background-color: #ffc107; color: #000; }
.badge-prete      { background-color: #0dcaf0; color: #000; }
.badge-livree     { background-color: #198754; color: #fff; }

/* ── BOUTONS QUANTITÉ ───────────────────────────────────────── */
.qte-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qte-btn:hover { background: var(--orange); color: white; }

/* ── NAVIGATION PAGES ───────────────────────────────────────── */
.page         { display: none; }
.page.active  { display: block; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ── TOAST DÉMO ─────────────────────────────────────────────── */
.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: white;
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--orange);
}
.demo-toast.show { display: flex; }

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

.demo-toast .icon     { font-size: 1.5rem; }
.demo-toast .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

/* ── STAT CARDS (admin) ─────────────────────────────────────── */
.stat-card { text-align: center; padding: 1.5rem; }
.stat-card .stat-icon  { font-size: 2.5rem; margin-bottom: 0.5rem; }
.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
}

/* ── TABLE ──────────────────────────────────────────────────── */
.table-hover tbody tr:hover { background: rgba(255,107,53,0.05); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 60%, var(--dark-2) 100%);
  color: white;
  padding: 60px 0 40px;
  margin-bottom: 2rem;
  border-radius: 0 0 24px 24px;
}
.hero-section h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 2px;
}

/* ── AUTH ───────────────────────────────────────────────────── */
.auth-card { max-width: 440px; margin: 40px auto; }

/* ── SELECT STATUT ADMIN ────────────────────────────────────── */
.statut-select { width: 140px; font-size: 0.85rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.5rem; }
}
