/* ============================================
   Cocktail Machine — Style logo (orange, bleu, vert)
   ============================================ */

:root {
  --bg: #0f172a;
  --bg-card: rgba(30, 58, 95, 0.35);
  --bg-card-hover: rgba(56, 189, 248, 0.08);
  --border: rgba(249, 115, 22, 0.25);
  --border-strong: rgba(249, 115, 22, 0.5);
  --orange: #f97316;
  --orange-light: #fb923c;
  --yellow: #fbbf24;
  --blue-dark: #1e3a5f;
  --blue-sky: #38bdf8;
  --teal: #14b8a6;
  --lime: #84cc16;
  --coral: #ef4444;
  --gold: #f97316;
  --gold-light: #fb923c;
  --mint: #34d399;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

/* Fond dégradé — tons logo (bleu, orange, vert) */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(249, 115, 22, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 85% 40%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(ellipse 70% 50% at 15% 70%, rgba(20, 184, 166, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 85%, rgba(251, 191, 36, 0.05), transparent),
    linear-gradient(180deg, #0f172a 0%, #1e3a5f 45%, #0f172a 100%);
}

/* ========== Header ========== */
.header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--yellow) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.user-badge {
  font-size: 0.85rem;
  color: var(--mint);
  padding: 0.35rem 0.75rem;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.input-mini {
  width: 140px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
}

.input-mini::placeholder {
  color: var(--text-muted);
}

/* ========== Boutons ========== */
.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-sky);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--orange-light);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-serve {
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
}

/* ===== Aide rotation (mobile paysage) ===== */
.rotate-hint {
  display: none;
}

@media (max-width: 900px) and (orientation: landscape) {
  .rotate-hint {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
  }
  .rotate-hint-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-family: var(--font-display);
  }
  .rotate-hint-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
}

/* ========== Main layout ========== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
}

/* ========== Sections ========== */
.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-light);
  letter-spacing: 0.02em;
}

.section-title-sub {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.section-desc,
.queue-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.queue-desc-secondary {
  margin-top: -0.5rem;
  font-size: 0.85rem;
}

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-admin {
  font-size: 0.85rem;
  color: var(--orange);
  text-decoration: none;
}

.link-admin:hover {
  text-decoration: underline;
}

button.link-admin {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Status badge */
.status {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

.status-ok {
  background: rgba(52, 211, 153, 0.2);
  color: var(--mint);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-off {
  background: rgba(239, 68, 68, 0.2);
  color: var(--coral);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ========== Grid cocktails ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.catalog-search {
  flex: 1 1 220px;
}

.catalog-search input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.catalog-search input::placeholder {
  color: var(--text-muted);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--orange-light);
  color: var(--orange-light);
}

.pill-active {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #0f172a;
  border-color: transparent;
}

.cocktail-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cocktail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue-sky));
  opacity: 0.8;
}

.cocktail-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cocktail-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.cocktail-card .card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.cocktail-card .card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.card-badge-strong {
  border-color: rgba(239, 68, 68, 0.7);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.card-badge-soft {
  border-color: rgba(52, 211, 153, 0.7);
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.18);
}

.card-badge-fast {
  border-color: rgba(56, 189, 248, 0.7);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.18);
}

.card-badge-slow {
  border-color: rgba(251, 191, 36, 0.7);
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.18);
}

/* ========== File d'attente ========== */
.section-queue .section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.queue-icon {
  font-size: 1.2rem;
}

/* Bloc "Votre commande" (visible seulement si l'utilisateur a une commande) */
.queue-my-card {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 0, 0.25);
  background: rgba(255, 140, 0, 0.06);
}

.queue-my-card-inner {
  padding: 0.9rem 1rem;
}

.queue-my-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.queue-my-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.notification-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.notification-prompt-msg {
  flex: 1;
  min-width: 0;
}
.notification-prompt .btn-sm {
  flex-shrink: 0;
}

.queue-list-wrap {
  margin-top: 0.5rem;
}

.queue-list-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.queue-list {
  min-height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

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

.order-item-first {
  background: rgba(255, 255, 255, 0.03);
}

.order-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 3.5rem;
  text-align: left;
}

.order-item-first .order-num {
  color: var(--orange);
}

.order-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.order-who {
  font-weight: 500;
  color: var(--text);
}

.order-cocktail {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.order-item-me .order-who {
  color: var(--mint);
}

.order-item-me .order-cocktail {
  color: rgba(52, 211, 153, 0.95);
  font-weight: 600;
}

.order-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
}

.order-badge-wait {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.order-badge-screen {
  background: rgba(52, 211, 153, 0.2);
  color: var(--mint);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.order-item-me .order-badge-wait {
  background: rgba(249, 115, 22, 0.2);
  color: var(--orange-light);
}

.queue-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.queue-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--mint);
  font-size: 1rem;
  font-weight: 700;
}

.queue-error {
  padding: 1rem;
  color: var(--coral);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  max-width: 420px;
  box-shadow: var(--shadow);
  border: 1px solid;
  z-index: 1000;
  animation: toastIn 0.3s ease;
  display: none;
}

.toast.toast-ok {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--mint);
}

.toast.toast-err {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* ===== Squelettes de chargement ===== */
.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton {
  background: linear-gradient(90deg, rgba(148,163,184,0.12), rgba(148,163,184,0.24), rgba(148,163,184,0.12));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s infinite;
}

.skeleton-line {
  height: 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.skeleton-line-lg {
  height: 1rem;
  width: 70%;
}

.skeleton-line-md {
  width: 55%;
}

.skeleton-line-sm {
  width: 40%;
}

.queue-skeleton-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes skeleton-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* ===== Bandeau installation PWA (mobile) ===== */
.install-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 900;
}

.install-banner.on {
  display: flex;
}

.install-banner-text {
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
}

.install-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.25rem;
}

@media (min-width: 901px) {
  .install-banner {
    display: none !important;
  }
}

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

/* ========== Modales ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.on {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange-light);
}

.modal-desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-stats {
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.9;
}

.ingredients-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.ingredients-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ingredients-list li span:last-child {
  color: var(--orange-light);
  font-weight: 500;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hint-login {
  margin: 0;
  font-size: 0.85rem;
  color: var(--coral);
}

/* Form auth */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.field-error {
  border-color: rgba(239, 68, 68, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.form-error {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--coral);
}

.modal-auth .modal-actions {
  margin-top: 0.5rem;
}

.security-warning {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--coral);
  background: rgba(239, 68, 68, 0.12);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.modal-install .install-steps {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text);
}
.modal-install .install-steps h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--orange-light);
}
.modal-install .install-steps h4:first-child { margin-top: 0; }
.modal-install .install-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}
.modal-install .install-steps li {
  margin: 0.25rem 0;
}
.modal-install .install-steps .install-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  max-width: 480px;
}

.profile-stats {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Admin ========== */
.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
}

.admin-tab:hover {
  border-color: var(--orange-light);
  color: var(--orange-light);
}

.admin-tab-active {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #0f172a;
  border-color: transparent;
}

.admin-toolbar,
.admin-list,
.admin-config,
.admin-ingredients-section {
  margin-bottom: 1.5rem;
}

.admin-sync-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-force-pumps {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-force-pumps .btn {
  align-self: flex-start;
}

.force-pumps-progress-wrap {
  display: none;
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.force-pumps-progress-wrap[aria-hidden="false"] {
  display: block;
}

.force-pumps-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mint);
  border-radius: 4px;
  transition: width 0.15s ease-out;
}

.admin-ingredients-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-ingredient-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.admin-ingredient-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.admin-ingredient-title {
  font-weight: 600;
}

.admin-ingredient-card .form-group {
  margin-bottom: 0.75rem;
}

.admin-ingredient-card .form-group:last-of-type {
  margin-bottom: 0;
}

.admin-ingredient-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.admin-ingredient-card input,
.admin-ingredient-card select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

.admin-ing-row-with-unit {
  display: grid;
  grid-template-columns: 1fr 70px 60px;
  gap: 0.5rem;
  align-items: center;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.input-admin {
  width: 180px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.input-admin::placeholder {
  color: var(--text-muted);
}

.admin-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange-light);
}

.admin-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-card-body {
  padding: 1rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

.admin-card .form-group {
  margin-bottom: 1rem;
}

.admin-card .form-group:last-of-type {
  margin-bottom: 1rem;
}

.admin-card textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  resize: vertical;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-upload-row input[type="file"] {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-ingredients {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.admin-ingredients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.admin-ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-ing-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 0.75rem;
  align-items: center;
}

.admin-ing-row.admin-ing-row-with-unit {
  grid-template-columns: 1fr 70px 60px;
}

.admin-ing-row input {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.admin-ing-row .input-cl {
  text-align: right;
}

.admin-push-info {
  margin: 0;
  font-size: 0.85rem;
}

.admin-push-hint {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(255, 140, 0, 0.12);
  border-radius: 6px;
}

.admin-pumps-test {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pump-test-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pump-test-label {
  width: 80px;
}

.admin-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn-danger {
  color: var(--coral);
}

.btn-danger:hover:not(:disabled) {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}

/* ===== Ajustements mobile / pouce ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .header {
    padding: 0.9rem 1rem;
  }

  .main {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cocktail-card {
    padding: 1.4rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.65rem 1.1rem;
  }

  .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .bottom-bar {
    display: flex;
  }
}

/* ===== Barre d'actions rapide (mobile) ===== */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(180deg, rgba(15,23,42,0.0), rgba(15,23,42,0.95));
  display: none;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 850;
}

.bottom-bar-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.bottom-bar-btn span {
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.bottom-bar-btn:active {
  background: rgba(148,163,184,0.18);
}
