/* ==========================================================================
   DINEMANAGER — DESIGN SYSTEM OFFICIEL
   Direction Artistique : Raffinée, Chaleureuse, Contemporaine, Épicurienne
   Palette de marque : Crème #FFFBEF, Brun Espresso #2B1210, Orange #E73F0B,
                      Vert Olive #BBCF4A, Jaune Beurre #F4EC6A, Rouge foncé #A11F0C
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* --- COULEURS DE FOND & SURFACES (Dominante Crème / Ivoire) --- */
  --dm-bg-body: #FAF7EE;
  --dm-bg-surface: #FFFFFF;
  --dm-bg-surface-warm: #FFFDF7;
  --dm-bg-muted: #F3EEDF;
  --dm-bg-subtle: #EFE8D6;

  /* --- TEXTES & CONTRASTES (Brun Espresso profond) --- */
  --dm-text-main: #2B1210;
  --dm-text-muted: #6B524E;
  --dm-text-light: #947B76;
  --dm-text-on-dark: #FFFDF9;

  /* --- BORDURES & LIGNES SUBTILES --- */
  --dm-border-color: #E6DCBF;
  --dm-border-color-subtle: #EFE7D2;
  --dm-border-focus: #E73F0B;

  /* --- ACTIONS & ACCENTS (Orange Terracotta dynamique) --- */
  --dm-primary: #E73F0B;
  --dm-primary-hover: #D03506;
  --dm-primary-active: #B82E04;
  --dm-primary-soft: #FDECE7;
  --dm-primary-glow: rgba(231, 63, 11, 0.22);

  /* --- MARQUE & ALERTES SECONDAIRES (Rouge profond atténué) --- */
  --dm-brand-dark: #A11F0C;
  --dm-danger: #B42817;
  --dm-danger-soft: #FDF1EE;
  --dm-danger-text: #8A170A;

  /* --- ÉTATS POSITIFS & SUCCÈS (Vert Olive / Sauge doux) --- */
  --dm-olive-main: #6F871E;
  /* Contraste texte WCAG AA sur fond clair */
  --dm-olive-accent: #BBCF4A;
  /* Teinte vive du logo pour accents & bordures */
  --dm-olive-soft: #F3F8DC;
  --dm-olive-glow: rgba(187, 207, 74, 0.35);

  /* --- MISES EN ÉVIDENCE & ATTENTES (Jaune Beurre doux) --- */
  --dm-butter-main: #8C6A05;
  /* Contraste lisible */
  --dm-butter-accent: #F4EC6A;
  /* Teinte swatch */
  --dm-butter-soft: #FFFDE0;
  --dm-butter-glow: rgba(244, 236, 106, 0.4);

  /* --- OCCUPÉ / EN COURS (Terracotta doux) --- */
  --dm-occupied: #D65A2D;
  --dm-occupied-soft: #FDF1EA;

  /* --- OMBRES CHALEUREUSES --- */
  --dm-shadow-sm: 0 2px 8px rgba(43, 18, 16, 0.04);
  --dm-shadow-md: 0 6px 18px rgba(43, 18, 16, 0.07);
  --dm-shadow-lg: 0 14px 34px rgba(43, 18, 16, 0.10);
  --dm-shadow-glow: 0 0 20px rgba(231, 63, 11, 0.18);

  /* --- TYPOGRAPHIE --- */
  --dm-font-title: 'Montserrat', system-ui, -apple-system, sans-serif;
  --dm-font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* --- RAYONS DE COURBURE --- */
  --dm-radius-sm: 8px;
  --dm-radius-md: 14px;
  --dm-radius-lg: 20px;
  --dm-radius-xl: 28px;
  --dm-radius-pill: 9999px;

  /* --- TRANSITIONS --- */
  --dm-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base HTML & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--dm-font-body);
  background-color: var(--dm-bg-body);
  color: var(--dm-text-main);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--dm-font-title);
  color: var(--dm-text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--dm-primary);
  text-decoration: none;
  transition: var(--dm-transition);
}

a:hover {
  color: var(--dm-primary-hover);
}

/* ==========================================================================
   BARRE DE DÉMO & SÉLECTEUR DE RÔLE (Outil de test persistant)
   ========================================================================== */
.dm-demo-bar {
  display: none !important;
}

.dm-demo-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--dm-radius-pill);
  font-weight: 600;
  color: #FFFBEF;
}

.dm-role-selector-pills {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: var(--dm-radius-pill);
  gap: 2px;
}

.dm-role-btn {
  background: transparent;
  border: none;
  color: #DDD0C8;
  padding: 3px 12px;
  border-radius: var(--dm-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--dm-transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dm-role-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.dm-role-btn.active {
  background: var(--dm-primary);
  color: #FFF;
  box-shadow: 0 2px 6px rgba(231, 63, 11, 0.4);
}

/* ==========================================================================
   NAVIGATION PRINCIPALE HAUTE (Compacte, Élégante, Rôle-aware)
   ========================================================================== */
.dm-navbar {
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dm-border-color);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 16px rgba(43, 18, 16, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.dm-navbar.nav-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.dm-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.dm-brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--dm-radius-sm);
}

.dm-brand-title {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dm-brand-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.dm-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dm-text-muted);
  text-transform: uppercase;
  margin: 0;
}

.dm-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--dm-radius-md);
  font-family: var(--dm-font-title);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dm-text-muted);
  transition: var(--dm-transition);
  position: relative;
}

.dm-nav-link:hover {
  background: var(--dm-bg-muted);
  color: var(--dm-text-main);
}

.dm-nav-link.active {
  background: var(--dm-primary-soft);
  color: var(--dm-primary);
  font-weight: 700;
}

.dm-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--dm-primary);
  border-radius: var(--dm-radius-pill);
}

/* Badge compteur sur lien de navigation */
.dm-nav-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--dm-radius-pill);
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   NAVIGATION INFÉRIEURE MOBILE (Sticky Bottom Bar sur Smartphone)
   ========================================================================== */
.dm-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--dm-border-color);
  box-shadow: 0 -4px 16px rgba(43, 18, 16, 0.08);
  z-index: 1040;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}

.dm-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.dm-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 48px;
  padding: 4px;
  color: var(--dm-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--dm-radius-sm);
  position: relative;
  transition: var(--dm-transition);
}

.dm-bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.dm-bottom-nav-item.active {
  color: var(--dm-primary);
}

.dm-bottom-nav-item.active i {
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .dm-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 74px;
    /* Espace réservé pour la barre mobile */
  }
}

/* ==========================================================================
   BOUTONS & CONTROLES TACTILES (>= 44x44px recommandation tactile)
   ========================================================================== */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--dm-font-title);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--dm-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--dm-transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.dm-btn-primary {
  background-color: var(--dm-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--dm-primary-glow);
}

.dm-btn-primary:hover {
  background-color: var(--dm-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(231, 63, 11, 0.3);
}

.dm-btn-primary:active {
  background-color: var(--dm-primary-active);
  transform: translateY(0);
}

.dm-btn-secondary {
  background-color: var(--dm-bg-muted);
  color: var(--dm-text-main);
  border-color: var(--dm-border-color);
}

.dm-btn-secondary:hover {
  background-color: var(--dm-bg-subtle);
  color: var(--dm-text-main);
  border-color: #D6C8A6;
}

.dm-btn-outline-primary {
  background-color: transparent;
  color: var(--dm-primary);
  border-color: var(--dm-primary);
}

.dm-btn-outline-primary:hover {
  background-color: var(--dm-primary-soft);
  color: var(--dm-primary);
}

.dm-btn-olive {
  background-color: var(--dm-olive-main);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--dm-olive-glow);
}

.dm-btn-olive:hover {
  background-color: #5D7217;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.dm-btn-danger-soft {
  background-color: var(--dm-danger-soft);
  color: var(--dm-danger-text);
  border-color: rgba(180, 40, 23, 0.2);
}

.dm-btn-danger-soft:hover {
  background-color: #FBDDD7;
  color: var(--dm-danger-text);
}

.dm-btn-sm {
  padding: 6px 14px;
  min-height: 36px;
  font-size: 0.82rem;
  border-radius: var(--dm-radius-sm);
}

.dm-btn-lg {
  padding: 14px 28px;
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: var(--dm-radius-lg);
}

.dm-btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--dm-radius-md);
}

/* ==========================================================================
   CARTES & CONTENEURS (Design Épuré Ivoire)
   ========================================================================== */
.dm-card {
  background: var(--dm-bg-surface);
  border: 1px solid var(--dm-border-color-subtle);
  border-radius: var(--dm-radius-lg);
  box-shadow: var(--dm-shadow-sm);
  transition: var(--dm-transition);
  overflow: hidden;
}

.dm-card:hover {
  box-shadow: var(--dm-shadow-md);
}

.dm-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--dm-border-color-subtle);
  background: var(--dm-bg-surface-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-card-body {
  padding: 22px;
}

/* ==========================================================================
   BADGES DE STATUTS (Cohérence Visuelle & Accessibilité WCAG AA)
   ========================================================================== */
.dm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--dm-font-title);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--dm-radius-pill);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Table Libre / Commande Prête */
.dm-badge-ready,
.dm-badge-free {
  background: var(--dm-olive-soft);
  color: var(--dm-olive-main);
  border: 1px solid rgba(111, 135, 30, 0.3);
}

/* Table Occupée / Commande En préparation */
.dm-badge-prep,
.dm-badge-occupied {
  background: var(--dm-occupied-soft);
  color: #B44216;
  border: 1px solid rgba(214, 90, 45, 0.3);
}

/* Commande En attente / Table À encaisser */
.dm-badge-waiting,
.dm-badge-bill {
  background: var(--dm-butter-soft);
  color: var(--dm-butter-main);
  border: 1px solid rgba(140, 106, 5, 0.3);
}

/* Commande Servie */
.dm-badge-served {
  background: #EBF4FC;
  color: #1765A8;
  border: 1px solid rgba(23, 101, 168, 0.25);
}

/* Commande Payée / Clôturée */
.dm-badge-paid {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

/* Commande Annulée / Alerte */
.dm-badge-danger {
  background: var(--dm-danger-soft);
  color: var(--dm-danger-text);
  border: 1px solid rgba(180, 40, 23, 0.25);
}

/* ==========================================================================
   PLAN DE SALLE (ATTÉNUATION DU ROUGE — FOND IVOIRE / CRÈME)
   ========================================================================== */
.dm-room-canvas {
  background-color: var(--dm-bg-surface-warm);
  border: 2px dashed var(--dm-border-color);
  border-radius: var(--dm-radius-xl);
  padding: 24px;
  position: relative;
  min-height: 520px;
}

.dm-room-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color-subtle);
  padding: 10px 18px;
  border-radius: var(--dm-radius-pill);
  box-shadow: var(--dm-shadow-sm);
  margin-bottom: 20px;
}

.dm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dm-text-muted);
}

.dm-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dm-legend-dot.free {
  background: var(--dm-olive-accent);
  border: 2px solid var(--dm-olive-main);
}

.dm-legend-dot.occupied {
  background: #FF7A45;
  border: 2px solid var(--dm-occupied);
}

.dm-legend-dot.ready {
  background: #52C41A;
  border: 2px solid #237804;
}

.dm-legend-dot.bill {
  background: var(--dm-butter-accent);
  border: 2px solid var(--dm-butter-main);
}

/* Grille des tables */
.dm-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Tuile de Table */
.dm-table-card {
  background: #FFFFFF;
  border: 2px solid var(--dm-border-color);
  border-radius: var(--dm-radius-lg);
  padding: 16px;
  position: relative;
  transition: var(--dm-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
  box-shadow: var(--dm-shadow-sm);
}

.dm-table-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dm-shadow-md);
}

/* Variations de statut des tables */
.dm-table-card.is-free {
  border-color: #D0DC8C;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCF2 100%);
}

.dm-table-card.is-free .dm-table-visual {
  border-color: var(--dm-olive-main);
  background: var(--dm-olive-soft);
  color: var(--dm-olive-main);
}

.dm-table-card.is-occupied {
  border-color: #F3C4B3;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF8F5 100%);
}

.dm-table-card.is-occupied .dm-table-visual {
  border-color: var(--dm-occupied);
  background: var(--dm-occupied-soft);
  color: var(--dm-occupied);
}

.dm-table-card.is-ready {
  border-color: #A3D977;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FBF0 100%);
  animation: dmPulseBorder 2.5s infinite;
}

@keyframes dmPulseBorder {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(111, 135, 30, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(111, 135, 30, 0.0);
  }
}

.dm-table-card.is-bill {
  border-color: #EBDD8A;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFEF5 100%);
}

.dm-table-card.is-bill .dm-table-visual {
  border-color: var(--dm-butter-main);
  background: var(--dm-butter-soft);
  color: var(--dm-butter-main);
}

/* Visualisation de la forme de la table selon sa capacité */
.dm-table-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dm-table-number-title {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dm-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-table-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.dm-table-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 700;
  border: 2px solid;
  transition: var(--dm-transition);
  position: relative;
}

/* Formes géométriques selon capacité */
.dm-table-visual.cap-2 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  /* Table ronde 2 pers */
}

.dm-table-visual.cap-4 {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  /* Table carrée 4 pers */
}

.dm-table-visual.cap-6 {
  width: 110px;
  height: 74px;
  border-radius: 18px;
  /* Table rectangulaire 6 pers */
}

.dm-table-visual.cap-8 {
  width: 130px;
  height: 76px;
  border-radius: 24px;
  /* Grande table VIP 8 pers */
}

/* Chaises représentées visuellement */
.dm-table-seats {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* Infos de commande pour table occupée */
.dm-table-occupied-info {
  font-size: 0.82rem;
  color: var(--dm-text-muted);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--dm-radius-sm);
  padding: 6px 8px;
  margin-bottom: 12px;
}

.dm-table-amount {
  font-weight: 700;
  color: var(--dm-text-main);
  font-size: 0.94rem;
}

/* ==========================================================================
   PRISE DE COMMANDE DU SERVEUR (POS Mobile Ultra-Rapide)
   ========================================================================== */
.dm-order-category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.dm-order-category-pills::-webkit-scrollbar {
  height: 4px;
}

.dm-order-category-pills::-webkit-scrollbar-thumb {
  background: var(--dm-border-color);
  border-radius: 4px;
}

.dm-cat-pill {
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color);
  border-radius: var(--dm-radius-pill);
  padding: 9px 18px;
  font-family: var(--dm-font-title);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dm-text-muted);
  cursor: pointer;
  transition: var(--dm-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dm-cat-pill:hover {
  background: var(--dm-bg-muted);
  color: var(--dm-text-main);
}

.dm-cat-pill.active {
  background: var(--dm-primary);
  border-color: var(--dm-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--dm-primary-glow);
}

/* Carte de Plat */
.dm-dish-card {
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color-subtle);
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  box-shadow: var(--dm-shadow-sm);
  transition: var(--dm-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dm-dish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dm-shadow-md);
  border-color: #DECFAA;
}

.dm-dish-img-wrap {
  position: relative;
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: var(--dm-bg-muted);
}

.dm-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dm-dish-card:hover .dm-dish-img {
  transform: scale(1.05);
}

.dm-dish-badge-origin {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(43, 18, 16, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFDF7;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--dm-radius-pill);
}

.dm-dish-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.dm-dish-name {
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  color: var(--dm-text-main);
}

.dm-dish-desc {
  font-size: 0.80rem;
  color: var(--dm-text-muted);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-dish-price-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.dm-dish-price {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dm-brand-dark);
}

/* Panier Flottant / Drawer de Commande */
.dm-cart-panel {
  background: #FFFFFF;
  border-radius: var(--dm-radius-lg);
  border: 1px solid var(--dm-border-color);
  box-shadow: var(--dm-shadow-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.dm-cart-items-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.dm-cart-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--dm-border-color-subtle);
}

.dm-cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dm-cart-item-name {
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 0.92rem;
}

.dm-cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.dm-qty-controls {
  display: inline-flex;
  align-items: center;
  background: var(--dm-bg-muted);
  border-radius: var(--dm-radius-pill);
  padding: 2px;
  border: 1px solid var(--dm-border-color);
}

.dm-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--dm-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--dm-transition);
}

.dm-qty-btn:hover {
  background: var(--dm-primary);
  color: #FFF;
}

.dm-qty-number {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Commentaire particulier par plat */
.dm-dish-note-input {
  font-size: 0.80rem;
  background: var(--dm-bg-surface-warm);
  border: 1px dashed var(--dm-border-color);
  border-radius: var(--dm-radius-sm);
  padding: 5px 8px;
  margin-top: 6px;
  width: 100%;
}

.dm-dish-note-input:focus {
  border-style: solid;
  border-color: var(--dm-primary);
  outline: none;
}

/* Barre de panier fixe mobile en bas */
.dm-mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 60px;
  /* juste au dessus de la bottom nav */
  left: 12px;
  right: 12px;
  background: #2B1210;
  color: #FFFDF9;
  border-radius: var(--dm-radius-lg);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(43, 18, 16, 0.4);
  z-index: 1030;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  animation: dmSlideUp 0.3s ease;
}

@keyframes dmSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .dm-mobile-cart-bar.has-items {
    display: flex;
  }
}

/* ==========================================================================
   TICKETS DE CUISINE (Écran KDS — Bordure Supérieure Dentelée Perforée)
   ========================================================================== */
.dm-kitchen-ticket {
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color);
  border-radius: 0 0 var(--dm-radius-md) var(--dm-radius-md);
  box-shadow: var(--dm-shadow-md);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--dm-transition);
}

/* Bordure dentelée perforée en zigzag façon rouleau thermique */
.dm-ticket-perforated-top {
  height: 12px;
  background: #FFFFFF;
  position: relative;
  background-image:
    linear-gradient(135deg, var(--dm-bg-body) 6px, transparent 0),
    linear-gradient(-135deg, var(--dm-bg-body) 6px, transparent 0);
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 16px 12px;
}

.dm-kitchen-ticket.urgent {
  border-color: #E73F0B;
  box-shadow: 0 4px 18px rgba(231, 63, 11, 0.25);
}

.dm-kitchen-ticket.urgent .dm-ticket-header {
  background: #FFF4F0;
}

.dm-ticket-header {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--dm-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dm-bg-surface-warm);
}

.dm-ticket-table-huge {
  font-family: var(--dm-font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dm-brand-dark);
  line-height: 1;
}

.dm-ticket-meta {
  text-align: right;
  font-size: 0.80rem;
  color: var(--dm-text-muted);
}

.dm-ticket-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--dm-bg-muted);
  padding: 3px 8px;
  border-radius: var(--dm-radius-sm);
  color: var(--dm-text-main);
}

.dm-ticket-timer.warning {
  background: var(--dm-danger-soft);
  color: var(--dm-danger-text);
  animation: dmBlink 1.5s infinite;
}

@keyframes dmBlink {
  50% {
    opacity: 0.6;
  }
}

.dm-ticket-body {
  padding: 14px 16px;
}

.dm-ticket-item-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dotted var(--dm-border-color-subtle);
  font-size: 0.98rem;
}

.dm-ticket-qty {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.25rem;
  min-width: 38px;
  color: var(--dm-primary);
}

.dm-ticket-item-content {
  flex-grow: 1;
}

.dm-ticket-dish-name {
  font-weight: 700;
  color: var(--dm-text-main);
}

.dm-ticket-dish-note {
  font-size: 0.82rem;
  font-weight: 700;
  color: #B42817;
  background: #FFF1EE;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
}

.dm-ticket-footer {
  padding: 12px 16px;
  border-top: 1px dashed var(--dm-border-color);
  background: var(--dm-bg-surface-warm);
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   ESPACE CAISSE & FACTURATION
   ========================================================================== */
.dm-pos-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

@media (max-width: 991px) {
  .dm-pos-container {
    grid-template-columns: 1fr;
  }
}

.dm-bill-box {
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color);
  border-radius: var(--dm-radius-lg);
  padding: 20px;
  box-shadow: var(--dm-shadow-md);
}

.dm-bill-header-logo {
  text-align: center;
  border-bottom: 2px dashed var(--dm-border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.dm-bill-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
}

.dm-bill-row.total {
  border-top: 2px solid var(--dm-text-main);
  margin-top: 10px;
  padding-top: 12px;
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dm-brand-dark);
}

/* Boutons de coupures monnaie rapide FCFA */
.dm-cash-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.dm-cash-preset-btn {
  background: var(--dm-bg-muted);
  border: 1px solid var(--dm-border-color);
  border-radius: var(--dm-radius-sm);
  padding: 6px 12px;
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--dm-text-main);
  cursor: pointer;
  transition: var(--dm-transition);
}

.dm-cash-preset-btn:hover {
  background: var(--dm-primary-soft);
  border-color: var(--dm-primary);
  color: var(--dm-primary);
}

/* Rendu Monnaie Calculée */
.dm-change-display {
  background: var(--dm-olive-soft);
  border: 1px solid rgba(111, 135, 30, 0.3);
  border-radius: var(--dm-radius-md);
  padding: 12px;
  text-align: center;
  margin: 12px 0;
}

.dm-change-amount {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dm-olive-main);
}

/* ==========================================================================
   TABLEAU DE BORD GÉRANT (KPI & GRAPHIQUES CHART.JS)
   ========================================================================== */
.dm-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color-subtle);
  border-radius: var(--dm-radius-lg);
  padding: 20px;
  box-shadow: var(--dm-shadow-sm);
  transition: var(--dm-transition);
  position: relative;
  overflow: hidden;
}

.dm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dm-shadow-md);
}

.dm-kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--dm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.dm-kpi-icon-wrap.primary {
  background: var(--dm-primary-soft);
  color: var(--dm-primary);
}

.dm-kpi-icon-wrap.olive {
  background: var(--dm-olive-soft);
  color: var(--dm-olive-main);
}

.dm-kpi-icon-wrap.butter {
  background: var(--dm-butter-soft);
  color: var(--dm-butter-main);
}

.dm-kpi-icon-wrap.dark {
  background: #F3EDEA;
  color: var(--dm-brand-dark);
}

.dm-kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.dm-kpi-value {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--dm-text-main);
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.dm-kpi-trend {
  font-size: 0.80rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-kpi-trend.positive {
  color: var(--dm-olive-main);
}

.dm-kpi-trend.negative {
  color: var(--dm-danger);
}

/* Sélecteur de période stylé */
.dm-period-toggle {
  display: inline-flex;
  background: var(--dm-bg-muted);
  padding: 3px;
  border-radius: var(--dm-radius-pill);
  border: 1px solid var(--dm-border-color);
}

.dm-period-btn {
  background: transparent;
  border: none;
  font-family: var(--dm-font-title);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 16px;
  border-radius: var(--dm-radius-pill);
  color: var(--dm-text-muted);
  cursor: pointer;
  transition: var(--dm-transition);
}

.dm-period-btn.active {
  background: #FFFFFF;
  color: var(--dm-text-main);
  box-shadow: 0 2px 6px rgba(43, 18, 16, 0.08);
}

/* ==========================================================================
   PAGE DE CONNEXION (Petite carte raffinée centrée)
   ========================================================================== */
.dm-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #FFFDF8 0%, #F5EFE0 100%);
  padding: 24px 16px;
  position: relative;
}

.dm-login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color);
  border-radius: var(--dm-radius-xl);
  box-shadow: var(--dm-shadow-lg);
  padding: 36px 32px;
  position: relative;
  z-index: 2;
}

/* Animation subtile inspirée de la cloche */
.dm-cloche-anim-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.dm-cloche-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.dm-cloche-icon:hover {
  animation: dmClocheLift 0.6s ease-in-out infinite alternate;
}

@keyframes dmClocheLift {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(-3deg);
  }

  100% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.dm-login-logo {
  max-width: 210px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  border-radius: var(--dm-radius-sm);
}

/* Champs formulaires */
.dm-form-group {
  margin-bottom: 18px;
}

.dm-label {
  display: block;
  font-family: var(--dm-font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dm-text-main);
  margin-bottom: 1px;
}

.dm-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.dm-input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-family: var(--dm-font-body);
  font-size: 0.95rem;
  color: var(--dm-text-main);
  background-color: var(--dm-bg-surface-warm);
  border: 1.5px solid var(--dm-border-color);
  border-radius: var(--dm-radius-md);
  transition: var(--dm-transition);
}

.dm-input:focus {
  outline: none;
  border-color: var(--dm-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--dm-primary-glow);
}

.dm-input-icon {
  position: absolute;
  right: 14px;
  color: var(--dm-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ==========================================================================
   TABLES HTML RESPONSIVES (Scroll dans conteneur)
   ========================================================================== */
.dm-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dm-table th {
  font-family: var(--dm-font-title);
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dm-text-muted);
  background: var(--dm-bg-surface-warm);
  padding: 12px 16px;
  border-bottom: 1px solid var(--dm-border-color);
  text-align: left;
}

.dm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--dm-border-color-subtle);
  font-size: 0.90rem;
  vertical-align: middle;
}

.dm-table tr:hover td {
  background: var(--dm-bg-surface-warm);
}

/* ==========================================================================
   MODALES ÉLÉGANTES
   ========================================================================== */
.dm-modal-content {
  border-radius: var(--dm-radius-xl);
  border: 1px solid var(--dm-border-color);
  box-shadow: var(--dm-shadow-lg);
  background: #FFFFFF;
}

.dm-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--dm-border-color-subtle);
  background: var(--dm-bg-surface-warm);
  border-radius: var(--dm-radius-xl) var(--dm-radius-xl) 0 0;
}

.dm-modal-body {
  padding: 24px;
}

.dm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--dm-border-color-subtle);
  background: var(--dm-bg-surface-warm);
  border-radius: 0 0 var(--dm-radius-xl) var(--dm-radius-xl);
}

/* ==========================================================================
   TOASTS DE NOTIFICATION
   ========================================================================== */
.dm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-toast {
  background: #2B1210;
  color: #FFFDF9;
  padding: 12px 18px;
  border-radius: var(--dm-radius-md);
  box-shadow: var(--dm-shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  animation: dmToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dmToastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   ÉTATS PARTICULIERS (Vide, Erreur, Chargement, Expire)
   ========================================================================== */
.dm-empty-state {
  text-align: center;
  padding: 48px 20px;
}

.dm-empty-state-icon {
  font-size: 3.5rem;
  color: #D6C8A6;
  margin-bottom: 16px;
  display: inline-block;
}

.dm-empty-state-title {
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.dm-empty-state-desc {
  color: var(--dm-text-muted);
  font-size: 0.90rem;
  max-width: 380px;
  margin: 0 auto 20px;
}

/* Skeleton loader */
.dm-skeleton {
  background: linear-gradient(90deg, #F0E8D6 25%, #FAF4E6 50%, #F0E8D6 75%);
  background-size: 200% 100%;
  animation: dmSkeletonLoading 1.5s infinite;
  border-radius: var(--dm-radius-sm);
}

@keyframes dmSkeletonLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Spinner */
.dm-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid var(--dm-border-color);
  border-top-color: var(--dm-primary);
  border-radius: 50%;
  animation: dmSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes dmSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   UTILITAIRES DE TEXTE & COULEUR
   ========================================================================== */
.text-dm-primary {
  color: var(--dm-primary) !important;
}

.text-dm-olive {
  color: var(--dm-olive-main) !important;
}

.text-dm-butter {
  color: var(--dm-butter-main) !important;
}

.text-dm-dark {
  color: var(--dm-brand-dark) !important;
}

.bg-dm-primary-soft {
  background-color: var(--dm-primary-soft) !important;
}

.bg-dm-olive-soft {
  background-color: var(--dm-olive-soft) !important;
}

.bg-dm-butter-soft {
  background-color: var(--dm-butter-soft) !important;
}

/* ==========================================================================
   MODULE CAISSE & TERMINAL DE PAIEMENT (POS)
   ========================================================================== */
.dm-pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dm-pay-method-btn {
  background: #FFFFFF;
  border: 2px solid var(--dm-border-color);
  border-radius: var(--dm-radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--dm-text-main);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(43, 18, 16, 0.03);
}

.dm-pay-method-btn i {
  font-size: 1.5rem;
  color: var(--dm-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.dm-pay-method-btn:hover {
  border-color: var(--dm-primary);
  background: var(--dm-primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(231, 63, 11, 0.12);
}

.dm-pay-method-btn:hover i {
  color: var(--dm-primary);
  transform: scale(1.1);
}

.dm-pay-method-btn.active {
  border-color: var(--dm-primary);
  background: #FFF7F4;
  color: var(--dm-primary);
  box-shadow: 0 4px 16px rgba(231, 63, 11, 0.18);
}

.dm-pay-method-btn.active i {
  color: var(--dm-primary);
}

.dm-cash-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-cash-preset-btn {
  background: #FFFFFF;
  border: 1px solid var(--dm-border-color);
  border-radius: var(--dm-radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dm-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-cash-preset-btn:hover {
  background: var(--dm-primary-soft);
  border-color: var(--dm-primary);
  color: var(--dm-primary);
}

.dm-cash-preset-btn:active {
  transform: scale(0.96);
}

.dm-change-display {
  background: #E8F5E9;
  border: 1.5px solid #A5D6A7;
  border-radius: var(--dm-radius-md);
  padding: 12px 16px;
  text-align: center;
}

.dm-change-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1B5E20;
  font-family: var(--dm-font-title);
  letter-spacing: -0.5px;
}

/* ==========================================================================
   PLAN D'ARCHITECTE RESTAURANT RÉEL — FIDÈLE À LA VUE TOP-DOWN 3D
   ========================================================================== */

.dm-real-floorplan {
  background: #EFE7DA;
  border: 3px solid #8D6E63;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(43, 18, 16, 0.12), inset 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

/* --- 1. TERRASSE EXTÉRIEURE BOISÉE (HAUT) --- */
.dm-fp-terrace {
  background: repeating-linear-gradient(90deg, #6D4C41 0px, #6D4C41 24px, #5D4037 25px, #5D4037 26px);
  border-bottom: 5px solid #3E2723;
  padding: 24px 20px;
  position: relative;
  box-shadow: inset 0 -6px 14px rgba(0,0,0,0.25);
}

.dm-fp-terrace-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid #2B1210;
  display: flex;
  justify-content: space-around;
}

.dm-fp-terrace-badge {
  position: absolute;
  top: 8px;
  left: 16px;
  background: rgba(43, 18, 16, 0.75);
  color: #FFECB3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dm-fp-parasol-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dm-fp-parasol-canopy {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #FDFBF7 0%, #E8E2D9 65%, #C7BCA9 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0,0,0,0.12);
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
}

.dm-fp-parasol-canopy::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #A1887F;
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* --- 2. SALLE INTÉRIEURE COMBINÉE --- */
.dm-fp-indoor-wrapper {
  display: flex;
  background: #FAF8F5;
  position: relative;
  min-height: 520px;
}

/* --- A. MUR GAUCHE : ALCÔVES VELOURS BORDEAUX --- */
.dm-fp-booths-left {
  width: 220px;
  background: #ECE5DC;
  border-right: 3px solid #D7CCC8;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
  box-shadow: inset 4px 0 12px rgba(0,0,0,0.04);
}

.dm-fp-booth-niche {
  position: relative;
  background: #781D28; /* Velours bordeaux profond */
  border-radius: 14px;
  padding: 12px 10px;
  border: 2px solid #5C151F;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.35), 0 4px 10px rgba(120, 29, 40, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dm-fp-booth-plant {
  position: absolute;
  top: -8px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.dm-fp-booth-lamp {
  position: absolute;
  bottom: -6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFE082;
  box-shadow: 0 0 10px #FFD54F, 0 0 20px #FFC107;
  border: 1px solid #FFA000;
}

/* --- B. SALLE CENTRALE EN MARBRE CLAIR --- */
.dm-fp-main-hall {
  flex-grow: 1;
  background: 
    radial-gradient(circle at center, rgba(255,255,255,0.85) 0%, rgba(245,240,230,0.95) 100%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 79px, rgba(141,110,99,0.12) 80px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 79px, rgba(141,110,99,0.12) 80px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arbre Majestueux Central */
.dm-fp-tree-center {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-fp-tree-crown {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, #2E7D32 0%, #1B5E20 60%, #0D3E10 100%);
  box-shadow: 0 10px 30px rgba(27, 94, 32, 0.4), inset 0 2px 8px rgba(255,255,255,0.3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8E6C9;
  font-size: 1.8rem;
  border: 3px solid #388E3C;
}

.dm-fp-tree-banquette {
  position: relative;
  z-index: 2;
  padding: 16px;
  border-radius: 50%;
  background: rgba(120, 29, 40, 0.9);
  border: 3px solid #5C151F;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* 3 Colonnes de tables en marbre */
.dm-fp-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 680px;
}

.dm-fp-hall-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* --- C. MUR DROIT : BAR LOUNGE & BANQUETTE --- */
.dm-fp-lounge-right {
  width: 220px;
  background: #ECE5DC;
  border-left: 3px solid #D7CCC8;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: inset -4px 0 12px rgba(0,0,0,0.04);
}

.dm-fp-bar-counter {
  background: linear-gradient(180deg, #3E2723 0%, #2B1210 100%);
  border: 2px solid #D4AF37;
  border-radius: 12px;
  padding: 14px 10px;
  color: #FFF8E7;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dm-fp-bar-stools {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
}

.dm-fp-bar-stool {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D4AF37;
  border: 1.5px solid #2B1210;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- 3. PORCHE D'ENTRÉE & TAPIS D'ACCUEIL (BAS) --- */
.dm-fp-porch {
  background: repeating-linear-gradient(90deg, #6D4C41 0px, #6D4C41 24px, #5D4037 25px, #5D4037 26px);
  border-top: 5px solid #3E2723;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.25);
}

.dm-fp-welcome-mat {
  background: linear-gradient(135deg, #781D28 0%, #5C151F 100%);
  border: 2px solid #D4AF37;
  border-radius: 8px;
  padding: 8px 24px;
  color: #FFF8E7;
  font-family: var(--dm-font-title);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* --- ÉLÉMENT TABLE ARCHITECTURALE INTERACTIVE --- */
.dm-arch-table {
  position: relative;
  border: 2px solid #8D6E63;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  min-width: 100px;
  min-height: 85px;
  text-decoration: none !important;
  color: inherit !important;
}

.dm-arch-table:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 22px rgba(43, 18, 16, 0.18);
  z-index: 10;
}

.dm-arch-table.round {
  border-radius: 50% !important;
  min-width: 90px;
  min-height: 90px;
}

.dm-arch-table.large-round {
  border-radius: 50% !important;
  min-width: 110px;
  min-height: 110px;
}

.dm-arch-table.rectangular {
  min-width: 125px;
  min-height: 82px;
}

/* Statuts visuels */
.dm-arch-table.is-free {
  border-color: #6F871E;
  background: #F8FAF0;
}

.dm-arch-table.is-free:hover {
  border-color: #526712;
  box-shadow: 0 8px 24px rgba(111, 135, 30, 0.28);
}

.dm-arch-table.is-occupied {
  border-color: #A11F0C;
  background: #FFF5F2;
}

.dm-arch-table.is-occupied:hover {
  border-color: #7E1506;
  box-shadow: 0 8px 24px rgba(161, 31, 12, 0.28);
}

.dm-arch-table.is-ready {
  border-color: #2E7D32;
  background: #F1F8E9;
  animation: tableReadyPulse 2s infinite;
}

@keyframes tableReadyPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* Badge Statut & Numéro */
.dm-arch-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  margin-bottom: 2px;
}

.dm-arch-num {
  font-family: var(--dm-font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: #2B1210;
}

.dm-arch-cap {
  font-size: 0.70rem;
  color: #6B524E;
  font-weight: 600;
}

.dm-arch-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dm-arch-status-dot.free { background: #6F871E; }
.dm-arch-status-dot.occupied { background: #A11F0C; }
.dm-arch-status-dot.ready { background: #2E7D32; }

/* Micro-chaises autour de la table */
.dm-arch-chairs-row {
  display: flex;
  gap: 4px;
}

.dm-arch-chair {
  width: 10px;
  height: 6px;
  background: #8D6E63;
  border-radius: 3px 3px 0 0;
  border: 1px solid #5D4037;
}

.dm-arch-chair.bottom {
  border-radius: 0 0 3px 3px;
}

/* ==========================================================================
   RESPONSIVE MOBILE (v2) — téléphones et tablettes
   ========================================================================== */
/* Barre de navigation du bas : défilement horizontal quand il y a beaucoup d'onglets */
.dm-bottom-nav-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dm-bottom-nav-inner::-webkit-scrollbar { display: none; }
.dm-bottom-nav-item { flex: 1 0 64px; white-space: nowrap; }

@media (max-width: 991px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }

  /* En-tête compact */
  .dm-navbar .container-fluid { gap: 8px; flex-wrap: nowrap; }
  .dm-brand-title { font-size: 1.05rem; }
  .dm-brand-subtitle { font-size: 0.62rem; }
  .dm-brand-logo-img { height: 38px; width: auto; }

  /* Tableaux : défilement horizontal au lieu de déborder de l'écran */
  table.dm-table,
  table.table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Cartes et fenêtres modales adaptées à l'écran */
  .modal-dialog { margin: 0.5rem; }
  main.container, main.container-fluid { padding-left: 12px; padding-right: 12px; }
  h2, .h2 { font-size: 1.35rem; }
}

@media (max-width: 575px) {
  .dm-btn { padding: 10px 14px; }
  .dm-navbar .dm-btn-sm { padding: 8px 10px; }
  .btn-group { flex-wrap: wrap; }
}


/* ==========================================================================
   RESPONSIVE MOBILE (v3) — téléphones et tablettes
   ========================================================================== */
/* Évite le zoom automatique d'iOS dans les champs de saisie + zones tactiles confortables */
@media (max-width: 991px) {
  input, select, textarea, .dm-input, .form-control, .form-select { font-size: 16px !important; }
  a, button, .dm-btn { touch-action: manipulation; }

  /* Notifications (toasts) adaptées à la largeur de l'écran */
  .dm-toast { min-width: 0; max-width: calc(100vw - 24px); }

  /* Plan de salle : défilement horizontal plutôt que débordement */
  #floorplanContainer, .dm-real-floorplan { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Fenêtres modales : jamais plus larges que l'écran, contenu défilable */
  .modal-content { max-height: calc(100vh - 1rem); }
  .modal-body { overflow-y: auto; }

  /* Écran de connexion et accueil */
  .dm-login-card { padding: 26px 20px; }
  .dm-hero-title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .dm-hero-subtitle { font-size: 1rem; }
}

/* Tablettes (768 – 991 px) */
@media (min-width: 768px) and (max-width: 991px) {
  main.container, main.container-fluid { padding-left: 20px; padding-right: 20px; }
  .modal-dialog { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* Petits téléphones (< 576 px) */
@media (max-width: 575px) {
  .dm-brand-title { font-size: 0.95rem; }
  .dm-card, .dm-bill-box { padding: 14px; }
  .dm-dish-card { min-width: 0; }
  .btn-group > .btn { flex: 1 1 auto; }
}
