/**
 * LE MASSILIA — Restaurant Lounge
 * Charte graphique commune (noir & or) — client + admin.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Or — dégradé inspiré du logo (vagues dorées) */
  --gold-50:  #f7ecc8;
  --gold-100: #f0dfa0;
  --gold-300: #e3c465;
  --gold-500: #cda248;  /* or principal */
  --gold-600: #b8893a;
  --gold-700: #8f6a2c;
  --gold-gradient: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-500) 55%, var(--gold-700) 100%);

  /* Noir — fonds */
  --black-950: #0a0a0a;
  --black-900: #121212;
  --black-800: #1b1b1b;
  --black-700: #242424;
  --black-600: #303030;

  /* Texte */
  --text-primary: #f5f1e6;
  --text-muted: #b9b2a0;
  --text-on-gold: #161208;

  /* États */
  --success: #2e9e5b;
  --danger: #c0392b;
  --warning: #d9a441;
  --info: #3b7dc9;

  /* Typo */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  /* Forme */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-gold: 0 4px 20px rgba(205, 162, 72, 0.25);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.ml-bg-app {
  background: radial-gradient(ellipse at top, var(--black-800) 0%, var(--black-950) 70%);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.ml-font-display {
  font-family: var(--font-display);
}

/* ===== Boutons ===== */
.ml-btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ml-btn-gold {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: var(--shadow-gold);
}

.ml-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(205, 162, 72, 0.4); }
.ml-btn-gold:active { transform: translateY(0); }

.ml-btn-outline {
  background: transparent;
  color: var(--gold-300);
  border: 1.5px solid var(--gold-500);
}
.ml-btn-outline:hover { background: rgba(205, 162, 72, 0.1); }

.ml-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.ml-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.ml-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Cartes ===== */
.ml-card {
  background: linear-gradient(160deg, var(--black-800) 0%, var(--black-900) 100%);
  border: 1px solid rgba(205, 162, 72, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.ml-card-gold-border {
  border-color: var(--gold-500);
}

/* ===== Badges / chips ===== */
.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(205, 162, 72, 0.14);
  color: var(--gold-300);
  border: 1px solid rgba(205, 162, 72, 0.3);
}

.ml-badge-allergene {
  background: rgba(192, 57, 43, 0.14);
  color: #e8897c;
  border-color: rgba(192, 57, 43, 0.35);
}

.ml-badge-recommande {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border: none;
}

/* ===== Navigation basse (mobile) ===== */
.ml-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(205, 162, 72, 0.25);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
}

.ml-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  flex: 1;
  position: relative;
}

.ml-bottom-nav a i { font-size: 18px; }
.ml-bottom-nav a.active { color: var(--gold-300); }

.ml-bottom-nav .ml-badge-count {
  position: absolute;
  top: -4px; right: 22%;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== Champs formulaire ===== */
.ml-input {
  width: 100%;
  background: var(--black-700);
  border: 1px solid rgba(205, 162, 72, 0.25);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.ml-input:focus { outline: none; border-color: var(--gold-500); }
.ml-input::placeholder { color: var(--text-muted); }

/* ===== Utilitaires ===== */
.ml-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  border: none;
  margin: 24px 0;
}

.ml-text-gold { color: var(--gold-300); }
.ml-text-muted { color: var(--text-muted); }

.ml-skeleton {
  background: linear-gradient(90deg, var(--black-700) 25%, var(--black-600) 50%, var(--black-700) 75%);
  background-size: 200% 100%;
  animation: ml-skeleton-shine 1.4s infinite;
}
@keyframes ml-skeleton-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
