/* ===== AUTH / LOGIN (Design System Light) ===== */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f6f8;
  color: #111827;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.auth-header {
  text-align: center;
  margin-bottom: 18px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
}

.auth-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn {
  height: 44px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

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

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-footnote {
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.muted {
  color: #9ca3af;
}

/* ===== ADMIN SHELL (layout global) ===== */
.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #f5f6f8;
  color: #111827;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
}

.admin-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5ff;
  border: 1px solid #dbe6ff;
  font-size: 18px;
}

.admin-brand-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}

.admin-brand-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Nav */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  overflow: auto;
}

.admin-nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #111827;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-nav-item:hover {
  background: #f6f7fb;
  border-color: #eef0f6;
  transform: translateY(-1px);
}

.admin-nav-item.active {
  background: #eef4ff;
  border-color: #dbe6ff;
}

.admin-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.admin-nav-item.active .admin-nav-icon {
  background: #ffffff;
  border-color: #dbe6ff;
}

.admin-nav-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-nav-label {
  font-weight: 700;
  font-size: 13px;
}

.admin-nav-desc {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar footer */
.admin-sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 10px;
  border-top: 1px solid #eef0f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-email {
  font-size: 12px;
  color: #6b7280;
}

/* Main */
.admin-main {
  min-width: 0;
  padding: 18px 18px 28px;
}

.admin-topbar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.admin-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.admin-content {
  margin-top: 14px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: #dbe6ff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.admin-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  font-size: 18px;
}

.admin-card-body {
  min-width: 0;
  flex: 1;
}

.admin-card-title {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
}

.admin-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.admin-card-arrow {
  font-weight: 900;
  color: #9ca3af;
}

/* Buttons */
.admin-btn {
  border: 1px solid #e5e7eb;
  background: #111827;
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.admin-btn:hover { opacity: 0.92; }

.admin-btn-ghost {
  background: #ffffff;
  color: #111827;
}

.admin-btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.admin-backlink {
  font-size: 12px;
  color: #6b7280;
}

/* Note */
.admin-note {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.admin-note-title {
  font-weight: 900;
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}

.admin-note-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-cards {
    grid-template-columns: 1fr;
  }
}
/* ===== ADMIN PAGES (base) ===== */
.admin-page {
  padding: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.admin-page-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.admin-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Panels */
.admin-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f6;
  margin-bottom: 12px;
}

.admin-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.admin-panel-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.admin-pill {
  font-size: 12px;
  color: #111827;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

/* Alerts */
.admin-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-label {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}

.admin-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  color: #111827;
}

.admin-input:focus {
  border-color: #dbe6ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.admin-file {
  padding: 9px 10px;
}

.admin-help {
  font-size: 12px;
  color: #6b7280;
}

.admin-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons (compléments) */
.admin-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.admin-btn-sm {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* Preview */
.admin-preview {
  border: 1px solid #eef0f6;
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px;
}

.admin-preview-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid #e5e7eb;
}

.admin-preview-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

/* Slides Grid */
.admin-slides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-slide-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.admin-slide-thumb {
  height: 140px;
  background: #f6f7fb;
  border-bottom: 1px solid #eef0f6;
}

.admin-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-slide-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-slide-title {
  font-weight: 900;
  font-size: 13px;
  color: #111827;
}

.admin-slide-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.admin-slide-actions {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Empty states */
.admin-empty {
  border: 1px dashed #d1d5db;
  background: #fafafa;
  color: #6b7280;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.admin-empty-wide {
  grid-column: 1 / -1;
  border: 1px dashed #d1d5db;
  background: #fafafa;
  color: #6b7280;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-slides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-slides-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== FIX BACKGROUND ADMIN (noir derrière) ===== */

/* 1) Force un fond clair sur tout l'écran quand on est dans une page admin */
.admin-layout,
.admin-main,
.admin-page {
  background: #f6f7fb;
}

/* 2) Garantit que ça prend toute la hauteur */
.admin-layout,
.admin-main,
.admin-page {
  min-height: 100vh;
}

/* 3) Optionnel : si le noir vient de #root / body */
#root {
  background: #f6f7fb;
}

/* 4) Les panels restent blancs, donc contraste pro */
.admin-panel {
  background: #ffffff;
}
/* ===== ABOUT ADMIN (compléments) ===== */

.admin-form-grid-1 {
  grid-template-columns: 1fr !important;
}

.admin-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  color: #111827;
  resize: vertical;
  min-height: 140px;
}

.admin-textarea:focus {
  border-color: #dbe6ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.admin-divider {
  height: 1px;
  background: #eef0f6;
  border: 0;
  margin: 8px 0;
}

.admin-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-images-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-images-title {
  font-weight: 900;
  font-size: 13px;
  color: #111827;
}

.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-image-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-image-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eef0f6;
  background: #f6f7fb;
}

.admin-upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1024px) {
  .admin-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-images-grid {
    grid-template-columns: 1fr;
  }
  .admin-upload-row {
    grid-template-columns: 1fr;
  }
}
/* ===== MENU ADMIN (compléments) ===== */

.admin-menu-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-chip {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.admin-chip.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.admin-menu-bulk {
  grid-column: 1 / -1;
  border: 1px solid #eef0f6;
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-bulk-info {
  font-size: 12px;
  font-weight: 900;
  color: #111827;
}

.admin-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-menu-group {
  border: 1px solid #eef0f6;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
}

.admin-menu-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-menu-group-title {
  font-weight: 900;
  color: #111827;
  font-size: 13px;
}

.admin-menu-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-menu-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: start;
}

.admin-menu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  color: #111827;
  user-select: none;
}

.admin-menu-check input {
  width: 16px;
  height: 16px;
}

.admin-menu-check-label {
  opacity: 0.8;
}

.admin-menu-card-body {
  min-width: 0;
}

.admin-menu-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-menu-name {
  font-weight: 950;
  color: #111827;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-price {
  font-weight: 950;
  font-size: 13px;
  color: #111827;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-menu-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-menu-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-menu-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-menu-controls {
    grid-template-columns: 1fr;
  }
  .admin-menu-card {
    grid-template-columns: 1fr;
  }
  .admin-menu-card-actions {
    justify-content: flex-start;
  }
}
/* ===== FAST FOOD ADMIN (MenuFFAdmin) ===== */

.admin-ff-import-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-ff-filelabel {
  position: relative;
  overflow: hidden;
}
.admin-ff-filelabel input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-ff-hint {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  opacity: 0.85;
}

.admin-ff-paste {
  margin-top: 12px;
  border: 1px solid #eef0f6;
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px;
}

.admin-ff-paste-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-ff-paste-title {
  font-weight: 950;
  color: #111827;
  font-size: 13px;
}

.admin-ff-paste-help {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  line-height: 1.4;
}

.admin-ff-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  color: #111827;
  resize: vertical;
}

.admin-ff-hiddenfile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-ff-preview {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-ff-preview img {
  height: 70px;
  width: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f6f7fb;
}

.admin-ff-variants {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-ff-variants-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-ff-variants-title {
  font-weight: 950;
  font-size: 13px;
  color: #111827;
}

.admin-ff-variants-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.admin-ff-variants-table {
  border: 1px solid #eef0f6;
  border-radius: 14px;
  overflow: hidden;
}

.admin-ff-variants-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px 90px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #eef0f6;
}

.admin-ff-variants-row.head {
  background: #f9fafb;
  border-top: none;
  font-weight: 950;
  font-size: 12px;
  color: #111827;
}

.admin-ff-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-ff-bulkbar {
  border: 1px solid #eef0f6;
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-ff-bulkcheck {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  font-size: 12px;
  color: #111827;
}

.admin-ff-bulkactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.admin-ff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-ff-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-ff-card-head {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef0f6;
  background: #ffffff;
}

.admin-ff-select {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  font-size: 12px;
  color: #111827;
}

.admin-ff-select input {
  width: 16px;
  height: 16px;
}

.admin-ff-badge {
  font-size: 12px;
  font-weight: 950;
  color: #111827;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-ff-thumb {
  height: 150px;
  background: #f6f7fb;
  border-bottom: 1px solid #eef0f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-ff-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-ff-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-ff-title {
  font-weight: 950;
  font-size: 13px;
  color: #111827;
}

.admin-ff-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ff-tag {
  font-size: 12px;
  font-weight: 900;
  color: #111827;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  padding: 4px 8px;
  border-radius: 999px;
}

.admin-ff-subtext {
  font-size: 12px;
  color: #111827;
  font-weight: 900;
  opacity: 0.85;
}

.admin-ff-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-ff-price {
  margin-top: 6px;
}

.admin-ff-inlineprice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.admin-ff-inlineprice .admin-input {
  width: 110px;
}

.admin-ff-actions {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-ff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-ff-controls {
    grid-template-columns: 1fr;
  }
  .admin-ff-grid {
    grid-template-columns: 1fr;
  }
  .admin-ff-variants-row {
    grid-template-columns: 1fr;
  }
}
/* ===== RESERVATIONS ADMIN ===== */

.admin-resv-monthnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-resv-monthlabel {
  font-weight: 950;
  font-size: 13px;
  color: #111827;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
}

.admin-resv-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.admin-resv-day {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}

.admin-resv-day:hover {
  transform: translateY(-1px);
  border-color: #dbe6ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.admin-resv-day.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-resv-daytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-resv-daynum {
  font-weight: 950;
  font-size: 14px;
  color: #111827;
}

.admin-resv-weekday {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

.admin-resv-count {
  font-size: 12px;
  font-weight: 950;
  color: #111827;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Heat levels */
.admin-resv-day.low {
  background: #f9fafb;
}
.admin-resv-day.medium {
  background: #fff7ed;
  border-color: #fed7aa;
}
.admin-resv-day.full {
  background: #fee2e2;
  border-color: #fecaca;
}

.admin-resv-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-resv-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-resv-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
}

.admin-resv-card.validated {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-resv-cardhead {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-resv-main {
  min-width: 220px;
}

.admin-resv-name {
  font-weight: 950;
  font-size: 14px;
  color: #111827;
}

.admin-resv-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-resv-tag {
  font-size: 12px;
  font-weight: 900;
  color: #111827;
  background: #f6f7fb;
  border: 1px solid #eef0f6;
  padding: 4px 8px;
  border-radius: 999px;
}

.admin-resv-status {
  font-size: 12px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.admin-resv-status.ok {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.admin-resv-status.wait {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.admin-resv-contact {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  font-weight: 800;
}

.admin-resv-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== Modal (admin) ===== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.admin-modal {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 14px;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f6;
  margin-bottom: 12px;
}

.admin-modal-title {
  font-size: 14px;
  font-weight: 950;
  color: #111827;
}

.admin-modal-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .admin-resv-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-resv-filters {
    grid-template-columns: 1fr;
  }
  .admin-resv-contact {
    grid-template-columns: 1fr;
  }
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== ADMIN MESSAGES ===== */
.admin-messages-list {
  display: grid;
  gap: 12px;
}

.admin-message-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-message-name {
  font-weight: 900;
  font-size: 14px;
  color: #111827;
}

.admin-message-date {
  font-size: 12px;
  color: #6b7280;
}

.admin-message-meta {
  font-size: 12px;
  color: #374151;
}

.admin-message-body {
  margin-top: 6px;
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ===== MENU FF ADMIN — SECTIONS DYNAMIQUES ===== */

/* ===== OPTION 4 - SECTIONS COMPACTES ===== */

.admin-ff-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.admin-ff-section-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}

.admin-ff-section-edit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-ff-section-edit label,
.admin-ff-section-edit span {
  display: none;
}

.admin-ff-section-edit .admin-input {
  width: 140px;
  min-width: 140px;
  padding: 4px 8px;
  border-radius: 999px;
}

.admin-ff-section-actions {
  display: flex;
  gap: 4px;
}

.admin-ff-section-actions .admin-btn {
  padding: 4px 7px;
  min-height: auto;
}

.admin-ff-section-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-ff-section-edit {
  display: grid;
  gap: 5px;
}

.admin-ff-section-edit label {
  font-size: 11px;
  font-weight: 900;
  color: #6b7280;
}

.admin-ff-section-edit span {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.admin-ff-section-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-ff-section-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-ff-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 820px) {
  .admin-ff-section-item,
  .admin-ff-section-add {
    grid-template-columns: 1fr;
  }

  .admin-ff-section-actions {
    justify-content: flex-start;
  }
}

/* =========================================================
   MENU FF ADMIN — NOUVELLE ORGANISATION PRODUITS / CATÉGORIES / IMPORT
   ========================================================= */

.admin-ff-modern {
  max-width: 1480px;
  padding: 18px 22px 34px;
}

.admin-ff-modern-header {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.admin-ff-message {
  margin-top: 12px;
}

.admin-ff-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-ff-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

.admin-ff-stat-card span {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

.admin-ff-stat-card b {
  font-size: 22px;
  color: #111827;
}

.admin-ff-tabs {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
  position: sticky;
  top: 12px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

.admin-ff-tabs button {
  border: 0;
  background: transparent;
  color: #374151;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}

.admin-ff-tabs button.active {
  background: #eef4ff;
  color: #1d4ed8;
}

.admin-ff-products-panel,
.admin-ff-categories-panel,
.admin-ff-import-panel {
  margin-top: 14px;
  padding: 14px;
}

.admin-ff-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.admin-ff-new-btn {
  height: 42px;
  white-space: nowrap;
}

.admin-ff-bulkbar-modern {
  margin-bottom: 12px;
}

.admin-ff-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.admin-ff-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.admin-ff-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 950;
}

.admin-ff-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef0f6;
  vertical-align: middle;
  font-size: 13px;
}

.admin-ff-table tbody tr:hover {
  background: #f9fafb;
}

.admin-ff-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.admin-ff-table-img {
  width: 62px;
  height: 48px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-weight: 900;
}

.admin-ff-table-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-ff-product-name {
  font-weight: 950;
  color: #111827;
  line-height: 1.2;
}

.admin-ff-product-desc {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ff-mini-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 900;
  color: #9a3412;
}

.admin-ff-price-text {
  font-weight: 900;
  color: #111827;
  min-width: 150px;
}

.admin-ff-muted,
.muted-tag {
  color: #6b7280 !important;
}

.admin-ff-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.admin-ff-inlineprice .admin-input {
  width: 86px;
  padding: 8px 10px;
  border-radius: 10px;
}

/* Catégories */
.admin-ff-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-ff-category-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
}

.admin-ff-category-order {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 950;
}

.admin-ff-category-main {
  display: grid;
  gap: 5px;
}

.admin-ff-category-main span {
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
}

.admin-ff-category-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.admin-ff-category-add {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #eef0f6;
  border-radius: 16px;
  padding: 12px;
}

/* Import */
.admin-ff-import-panel .admin-ff-paste {
  display: block;
}

.admin-ff-import-panel .admin-ff-textarea {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Modal produit */
.admin-ff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.admin-ff-product-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
}

.admin-ff-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef0f6;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-ff-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: #111827;
}

.admin-ff-modal-header p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.admin-ff-modal-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px;
}

.admin-ff-modal-main,
.admin-ff-modal-side {
  min-width: 0;
}

.admin-ff-modal-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-ff-small-textarea {
  min-height: 92px;
}

.admin-ff-preview-big {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.admin-ff-preview-big img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
}

.admin-ff-modal-actions-card {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  background: #f9fafb;
}

.admin-ff-modal-actions-card .admin-btn {
  width: 100%;
}

.admin-ff-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.admin-ff-checkbox input {
  width: 16px;
  height: 16px;
}

/* Neutralise l'ancienne grille de cartes quand l'ancien CSS est encore présent */
.admin-ff-modern .admin-ff-grid,
.admin-ff-modern .admin-ff-card,
.admin-ff-modern .admin-ff-thumb,
.admin-ff-modern .admin-ff-card-head,
.admin-ff-modern .admin-ff-body,
.admin-ff-modern .admin-ff-actions {
  all: unset;
}

@media (max-width: 1180px) {
  .admin-ff-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-ff-new-btn {
    grid-column: 1 / -1;
  }

  .admin-ff-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-ff-modal-actions-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .admin-ff-modern {
    padding: 12px;
  }

  .admin-ff-modern-header,
  .admin-ff-modern-header .admin-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-ff-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ff-tabs {
    overflow-x: auto;
    position: static;
  }

  .admin-ff-tabs button {
    white-space: nowrap;
  }

  .admin-ff-toolbar,
  .admin-ff-category-row,
  .admin-ff-category-add {
    grid-template-columns: 1fr;
  }

  .admin-ff-category-actions,
  .admin-ff-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-ff-product-modal {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .admin-ff-modal-overlay {
    padding: 10px;
  }
}
.admin-ff-hidden-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 900;
}

.admin-ff-table tr.is-hidden {
  opacity: 0.55;
}