/* ==========================================================================
   EMU Resto — thème « atelier » (repris du style YPS)
   Relief (lumière en haut à gauche, ombres portées, creux) + polices Space Grotesk / Inter.
   Les couleurs UTILES restent : vert (valider/encaisser), rouge (annuler/supprimer),
   bleu et ambre pour les statuts. Le orange de marque devient noir / gris.
   Activation : classe « emu-atelier » sur <body>. Retrait : enlever la classe.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

.emu-atelier {
  --ink: #0b0b0b; --ink-2: #111; --well: #e3e3e3; --line: #cfcfcf; --line-strong: #a5a5a5;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --shadow-card: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .12), 0 14px 24px -16px rgba(0, 0, 0, .5);
  --shadow-well: inset 0 2px 4px rgba(0, 0, 0, .24), inset 0 -1px 0 rgba(255, 255, 255, .9);
  --grad-primary: linear-gradient(180deg, #3b3b3b 0%, #161616 55%, #050505 100%);
  --grad-secondary: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%);
  --grad-paper: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
  --grad-plate: linear-gradient(160deg, #2c2c2c 0%, #111 55%, #050505 100%);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 1100px at 25% 0%, #f8f8f8 0%, #e8e8e8 55%, #e4e4e4 100%) !important;
  background-color: #e4e4e4 !important;
}

/* ── Polices : Space Grotesk pour les titres, Inter pour le reste ── */
.emu-atelier :is(h1, h2, h3, h4, .titre-atelier, .font-black, .font-extrabold, [class*="text-xl"], [class*="text-2xl"], [class*="text-3xl"], [class*="text-4xl"]),
.emu-atelier :is(h1, h2, h3, h4) * { font-family: var(--font-display) !important; letter-spacing: -0.01em; }
.emu-atelier h1, .emu-atelier h1 * { letter-spacing: 0.02em; }
.emu-atelier :is(h1, h2, h3, h4, .font-black, .font-extrabold, [class*="text-xl"], [class*="text-2xl"], [class*="text-3xl"]) i[class*="fa-"] { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important; }
.emu-atelier [class*="text-xl"], .emu-atelier [class*="text-2xl"], .emu-atelier [class*="text-3xl"] { font-variant-numeric: tabular-nums; }

/* ── En-tête : plaque sombre ── */
.emu-atelier > header, .emu-atelier header.bg-orange-700, .emu-atelier header.bg-gray-800, .emu-atelier header.bg-gray-900 {
  background: var(--grad-plate) !important; border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 6px rgba(0, 0, 0, .7), 0 10px 18px -12px rgba(0, 0, 0, .7) !important;
}
.emu-atelier > header .text-orange-100, .emu-atelier > header .text-orange-200 { color: #d8d8d8 !important; }

/* ── Cartes « papier » ── */
.emu-atelier .bg-white:is(.rounded-xl, .rounded-2xl, .rounded-3xl):is(.shadow, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl) {
  background-image: var(--grad-paper) !important; border-color: var(--line) !important; box-shadow: var(--shadow-card) !important;
}
.emu-atelier .rounded-2xl.bg-white, .emu-atelier .rounded-xl.bg-white { border-color: var(--line); }

/* ── Champs « creusés » ── */
.emu-atelier :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]) {
  background-color: var(--well) !important; border: 1px solid transparent !important; box-shadow: var(--shadow-well) !important;
  border-radius: 12px !important; color: var(--ink-2);
}
.emu-atelier :is(input, select, textarea):focus { outline: 3px solid #000 !important; outline-offset: 1px; --tw-ring-shadow: 0 0 #0000 !important; box-shadow: var(--shadow-well) !important; }
.emu-atelier :is(input, select, textarea)::placeholder { color: #6b6b6b; }
.emu-atelier :is(input[type=checkbox], input[type=radio]) { accent-color: #000; }
.emu-atelier :is(input, select, textarea):disabled { opacity: .6; }

/* ── Boutons en relief : ils s'enfoncent au clic ── */
.emu-atelier :is(button, a, label)[class~="bg-orange-600"],
.emu-atelier :is(button, a, label)[class~="bg-orange-700"],
.emu-atelier :is(button, a, label)[class~="bg-orange-800"],
.emu-atelier :is(button, a, label)[class~="bg-gray-700"],
.emu-atelier :is(button, a, label)[class~="bg-gray-800"],
.emu-atelier :is(button, a, label)[class~="bg-gray-900"],
.emu-atelier :is(button, a, label)[class~="bg-slate-700"],
.emu-atelier :is(button, a, label)[class~="bg-slate-800"],
.emu-atelier :is(button, a, label)[class~="bg-slate-900"],
.emu-atelier :is(button, a, label)[class~="bg-zinc-700"],
.emu-atelier :is(button, a, label)[class~="bg-zinc-800"],
.emu-atelier :is(button, a, label)[class~="bg-zinc-900"],
.emu-atelier :is(button, a, label)[class~="bg-orange-400"],
.emu-atelier :is(button, a, label)[class~="bg-orange-500"],
.emu-atelier :is(button, a, label)[class~="bg-blue-800"],
.emu-atelier :is(button, a, label)[class~="bg-blue-900"],
.emu-atelier :is(button, a, label)[class~="bg-blue-950"],
.emu-atelier :is(button, a, label)[class~="bg-indigo-900"],
.emu-atelier :is(button, a, label)[class~="bg-gray-500"],
.emu-atelier :is(button, a, label)[class~="bg-gray-600"],
.emu-atelier :is(button, a, label)[class~="bg-slate-500"],
.emu-atelier :is(button, a, label)[class~="bg-slate-600"] {
  background-image: var(--grad-primary) !important; background-color: #111 !important; color: #fff !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .6), 0 4px 0 #000, 0 10px 16px -8px rgba(0, 0, 0, .6) !important;
}
.emu-atelier :is(button, a, label)[class~="bg-emerald-600"],
.emu-atelier :is(button, a, label)[class~="bg-emerald-700"],
.emu-atelier :is(button, a, label)[class~="bg-green-600"],
.emu-atelier :is(button, a, label)[class~="bg-green-700"] {
  background-image: linear-gradient(180deg, #34c68a 0%, #059669 55%, #047857 100%) !important; color: #fff !important; border: 1px solid #065f46 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 4px 0 #064e3b, 0 10px 16px -8px rgba(0, 0, 0, .5) !important;
}
.emu-atelier :is(button, a, label)[class~="bg-red-500"],
.emu-atelier :is(button, a, label)[class~="bg-red-600"],
.emu-atelier :is(button, a, label)[class~="bg-red-700"] {
  background-image: linear-gradient(180deg, #f26a6a 0%, #dc2626 55%, #b91c1c 100%) !important; color: #fff !important; border: 1px solid #7f1d1d !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 4px 0 #7f1d1d, 0 10px 16px -8px rgba(0, 0, 0, .5) !important;
}
.emu-atelier :is(button, a, label)[class~="bg-blue-500"],
.emu-atelier :is(button, a, label)[class~="bg-blue-600"],
.emu-atelier :is(button, a, label)[class~="bg-blue-700"],
.emu-atelier :is(button, a, label)[class~="bg-indigo-500"],
.emu-atelier :is(button, a, label)[class~="bg-indigo-600"],
.emu-atelier :is(button, a, label)[class~="bg-indigo-700"],
.emu-atelier :is(button, a, label)[class~="bg-sky-500"],
.emu-atelier :is(button, a, label)[class~="bg-sky-600"],
.emu-atelier :is(button, a, label)[class~="bg-sky-700"] {
  background-image: linear-gradient(180deg, #5b9bf5 0%, #2563eb 55%, #1d4ed8 100%) !important; color: #fff !important; border: 1px solid #1e3a8a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 4px 0 #1e3a8a, 0 10px 16px -8px rgba(0, 0, 0, .5) !important;
}
.emu-atelier :is(button, a, label)[class~="bg-amber-500"],
.emu-atelier :is(button, a, label)[class~="bg-amber-600"],
.emu-atelier :is(button, a, label)[class~="bg-yellow-500"],
.emu-atelier :is(button, a, label)[class~="bg-yellow-600"] {
  background-image: linear-gradient(180deg, #fbbf24 0%, #d97706 55%, #b45309 100%) !important; color: #fff !important; border: 1px solid #78350f !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 4px 0 #78350f, 0 10px 16px -8px rgba(0, 0, 0, .5) !important;
}
/* Boutons clairs (fond blanc ou gris clair + bordure) : touche relevée */
.emu-atelier :is(button, a)[class~="bg-white"][class*="border"]:not(.rounded-full):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-gray-100"]:not(.tab-btn), .emu-atelier :is(button, a)[class~="bg-gray-200"]:not(.tab-btn) {
  background-image: var(--grad-secondary) !important; border: 1px solid #a3a3a3 !important; color: var(--ink-2);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 8px 12px -6px rgba(0, 0, 0, .4) !important;
}
.emu-atelier :is(button, a)[class~="bg-orange-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-orange-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-orange-800"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-gray-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-gray-800"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-gray-900"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-slate-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-slate-800"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-slate-900"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-zinc-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-zinc-800"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-zinc-900"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-emerald-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-emerald-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-green-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-green-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-red-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-red-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-red-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-blue-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-blue-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-blue-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-indigo-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-indigo-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-indigo-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-sky-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-sky-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-sky-700"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-amber-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-amber-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-yellow-500"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-yellow-600"]:active:not(:disabled):not(.tab-btn),
.emu-atelier :is(button, a)[class~="bg-white"]:active:not(:disabled):not(.tab-btn) {
  transform: translateY(3px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 1px 0 rgba(0, 0, 0, .6) !important;
}
.emu-atelier button { transition: transform .08s ease, box-shadow .08s ease; }
.emu-atelier button:disabled { cursor: not-allowed; opacity: .55; }

/* ── Barres d'outils / onglets : touches relevées dans un creux, la touche active est enfoncée ── */
.emu-atelier :is(.barre-2col, #barre-onglets, #barre-eco, [id^="barre-"]) {
  background-color: #dcdcdc !important; background-image: none !important; border: 0 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .9) !important; padding-top: .4rem !important; padding-bottom: .55rem !important;
  gap: .12rem;
}
.emu-atelier .tab-btn {
  border-radius: 11px; margin: 2px 1px 4px; border: 1px solid #a3a3a3 !important; color: #1f1f1f !important;
  background-image: var(--grad-secondary) !important; background-color: #fff !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 7px 10px -6px rgba(0, 0, 0, .4) !important;
  transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier .tab-btn:hover { color: #000 !important; }
.emu-atelier .tab-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3), 0 1px 0 #9a9a9a !important; }
.emu-atelier .outils-hotel { border-left-color: #b9b9b9 !important; }
@media (min-width: 1200px) { .emu-atelier .barre-2col .tab-btn { padding-left: clamp(.1rem, .3vw, .5rem) !important; padding-right: clamp(.1rem, .3vw, .5rem) !important; } .emu-atelier .barre-2col .tab-btn i { margin-right: .2rem !important; } }

/* Boutons de l'en-tête (sur la plaque sombre) : touches sombres en relief */
.emu-atelier header :is(a, button)[class*="bg-white/"] {
  background-image: linear-gradient(180deg, #5a5a5a 0%, #262626 55%, #0d0d0d 100%) !important; background-color: #1a1a1a !important; color: #fff !important;
  border: 1px solid #000 !important; border-radius: 11px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 #000, 0 7px 10px -6px rgba(0, 0, 0, .7) !important;
}
.emu-atelier header :is(a, button)[class*="bg-white/"]:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), 0 1px 0 #000 !important; }

/* ── Tables du plan de salle & chambres : tuiles en relief, l'état reste écrit (étiquette + icône) ── */
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, 0) 70%) !important; border-width: 1px !important; border-radius: 16px !important;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #a9a9a9, 0 12px 16px -10px rgba(0, 0, 0, .45) !important; transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div[class~="bg-green-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #86c5a1, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div[class~="bg-red-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #e0a3a3, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div[class~="bg-orange-50"] { background-color: #fff1e0 !important; border-color: #f0a860 !important; box-shadow: inset 0 1px 0 #fff, 0 4px 0 #d98a3d, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div[class~="bg-purple-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #bda1dd, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div:hover { transform: translateY(-2px) !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div:active { transform: translateY(3px) !important; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25), 0 1px 0 #a9a9a9 !important; }
.emu-atelier :is(#zone-tables, #zone-roomservice, #liste-tables) > div > span:first-child { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .2); }

/* ── Onglets : touche enfoncée noire = onglet actif ── */
.emu-atelier .tab-btn { border-radius: 12px; }
.emu-atelier .tab-btn.border-orange-700, .emu-atelier .tab-btn[class*="border-b-2"][class*="border-orange"] {
  background-image: linear-gradient(180deg, #1c1c1c 0%, #000 100%) !important; color: #fff !important; border-color: #000 !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 255, 255, .12) !important;
}

/* ── Teinte orange de marque → neutres (les couleurs de statut restent) ── */
.emu-atelier .bg-orange-50, .emu-atelier .bg-orange-100 { background-color: #efefef !important; }
.emu-atelier .bg-orange-200 { background-color: #e0e0e0 !important; }
.emu-atelier [class*="text-orange-"] { color: #1c1c1c !important; }
.emu-atelier [class*="border-orange-"] { border-color: #a5a5a5 !important; }
.emu-atelier [class*="focus:ring-orange"]:focus { --tw-ring-color: transparent !important; }
.emu-atelier .via-orange-50 { --tw-gradient-via: #f1f1f1 !important; }

/* ── Tableaux ── */
.emu-atelier table thead { background-image: linear-gradient(180deg, #f4f4f4, #e4e4e4) !important; }
.emu-atelier table th { text-transform: uppercase; font-size: .72rem !important; letter-spacing: .05em; color: #3d3d3d !important; }
.emu-atelier table tbody tr:hover { background-color: rgba(0, 0, 0, .035); }

/* ── Fenêtres, pastilles ── */
.emu-atelier .fixed.inset-0 { backdrop-filter: blur(1.5px); }
.emu-atelier .rounded-full[class*="bg-"]:is([class*="px-"]) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .18); }
.emu-atelier ::-webkit-scrollbar { height: 10px; width: 10px; }
.emu-atelier ::-webkit-scrollbar-thumb { background: #b9b9b9; border-radius: 8px; border: 2px solid #ececec; }
.emu-atelier :focus-visible { outline: 3px solid #000; outline-offset: 2px; }

/* Sous-onglets (compact-ui) : mêmes touches que les onglets */
.emu-atelier .cu-pill {
  border: 1px solid #a3a3a3 !important; border-radius: 12px !important; background-image: var(--grad-secondary) !important; background-color: #fff !important; color: #1f1f1f !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 7px 10px -6px rgba(0, 0, 0, .4) !important; margin-bottom: 4px; transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier .cu-pill.cu-actif {
  background-image: linear-gradient(180deg, #1c1c1c 0%, #000 100%) !important; background-color: #000 !important; color: #fff !important; border-color: #000 !important; transform: translateY(2px);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 255, 255, .12) !important;
}
.emu-atelier .cu-pill:active { transform: translateY(2px); }

/* ── Icônes bien centrées avec leur libellé dans tous les boutons / onglets / pastilles ── */
.emu-atelier :is(button, .tab-btn, .cu-pill, a[class*="rounded"][class*="px-"], label[class*="rounded"][class*="px-"]):not(.hidden):not(.act):not([class*="rounded-full"][class*="w-"]):not([class*="rounded-full"][class*="h-"]) {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; text-align: center; line-height: 1.15;
}
.emu-atelier :is(button, a, label).text-left:not(.hidden) { justify-content: flex-start; text-align: left; }
.emu-atelier :is(button, .tab-btn, .cu-pill, a[class*="rounded"][class*="px-"], label[class*="rounded"][class*="px-"]) :is(img.i3d, i[class*="fa-"]) { margin-left: 0 !important; margin-right: 0 !important; }
.emu-atelier :is(button, .tab-btn, .cu-pill, header a, a[class*="rounded"][class*="px-"]) img.i3d { vertical-align: middle !important; width: 1.3em !important; height: 1.3em !important; min-width: 16px; min-height: 16px; flex: none; }
.emu-atelier :is(button, .tab-btn, .cu-pill) i[class*="fa-"] { width: 1.3em; text-align: center; flex: none; }
.emu-atelier :is(h1, h2, h3, h4) img.i3d { vertical-align: -0.28em !important; }

/* ==========================================================================
   Variante SOMBRE (bar, cuisine) : <body class="emu-atelier emu-atelier-sombre">
   ========================================================================== */
.emu-atelier-sombre {
  background-image: radial-gradient(120% 1100px at 25% 0%, #2a2a2a 0%, #141414 55%, #0a0a0a 100%) !important; background-color: #0a0a0a !important; color: #ececec;
}
.emu-atelier-sombre .bg-gray-800, .emu-atelier-sombre .bg-gray-900\/80 {
  background-image: linear-gradient(180deg, #303030 0%, #1d1d1d 100%) !important; border-color: #404040 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 14px 22px -14px rgba(0, 0, 0, .95) !important;
}
.emu-atelier-sombre .bg-gray-900 { background-image: var(--grad-plate) !important; background-color: #0b0b0b !important; }
.emu-atelier-sombre div.bg-gray-700, .emu-atelier-sombre span.bg-gray-700 { background-color: #1a1a1a !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .85), inset 0 -1px 0 rgba(255, 255, 255, .07) !important; }
.emu-atelier-sombre :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  background-color: #0f0f0f !important; color: #f0f0f0 !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .9), inset 0 -1px 0 rgba(255, 255, 255, .08) !important;
}
.emu-atelier-sombre :is(input, select, textarea)::placeholder { color: #8a8a8a; }
.emu-atelier-sombre :focus-visible, .emu-atelier-sombre :is(input, select, textarea):focus { outline-color: #fff !important; }
/* Touches grises : plus claires que le fond pour rester lisibles */
.emu-atelier-sombre :is(button, a, label):is([class~="bg-gray-600"], [class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-slate-700"]) {
  background-image: linear-gradient(180deg, #6a6a6a 0%, #3a3a3a 55%, #232323 100%) !important; background-color: #333 !important; color: #fff !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #000, 0 10px 16px -8px rgba(0, 0, 0, .9) !important;
}
.emu-atelier-sombre .tab-btn, .emu-atelier-sombre .cu-pill {
  background-image: linear-gradient(180deg, #5c5c5c 0%, #2e2e2e 100%) !important; background-color: #333 !important; color: #f2f2f2 !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 #000, 0 7px 10px -6px rgba(0, 0, 0, .9) !important;
}
.emu-atelier-sombre :is(.tab-btn, .cu-pill):is(.border-orange-700, .cu-actif, [class*="border-white"], [class*="text-white"]) {
  background-image: linear-gradient(180deg, #000 0%, #0d0d0d 100%) !important; color: #fff !important; border-color: #fff !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), 0 0 0 1px #fff !important; transform: translateY(2px);
}
.emu-atelier-sombre :is(#barre-onglets, .barre-2col, [id^="barre-"]) { background-color: #0d0d0d !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .95) !important; }

/* ==========================================================================
   Variante CONNEXION : fond graphite, carte « papier », bouton noir en relief
   ========================================================================== */
.emu-atelier-login {
  background-image: radial-gradient(120% 900px at 25% 0%, #3a3a3a 0%, #1a1a1a 55%, #0a0a0a 100%) !important; background-color: #0a0a0a !important;
}
.emu-atelier-login .text-white, .emu-atelier-login h1.text-white { color: #fff; }

/* Onglets principaux à soulignement (bar, cuisine) : touches comme ailleurs */
.emu-atelier button[class*="border-b-4"][class*="flex-1"] {
  margin: 4px 3px 6px; border-radius: 12px !important; border: 1px solid #000 !important; transition: transform .08s ease, box-shadow .08s ease;
  background-image: linear-gradient(180deg, #5c5c5c 0%, #2e2e2e 100%) !important; background-color: #333 !important; color: #e8e8e8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 #000, 0 7px 10px -6px rgba(0, 0, 0, .9) !important;
}
.emu-atelier button[class*="border-b-4"][class*="flex-1"][class*="text-white"] {
  background-image: linear-gradient(180deg, #000 0%, #0d0d0d 100%) !important; color: #fff !important; border-color: #fff !important; transform: translateY(2px);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), 0 0 0 1px #fff !important;
}

@media print { .emu-atelier { background: #fff !important; } }

/* ── Chambres (hôtel) : mêmes tuiles que les tables ── */
.emu-atelier #grille-chambres > div {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, 0) 70%) !important; border-width: 1px !important; border-radius: 16px !important;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #a9a9a9, 0 12px 16px -10px rgba(0, 0, 0, .45) !important; transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier #grille-chambres > div[class~="bg-green-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #86c5a1, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier #grille-chambres > div[class~="bg-red-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #e0a3a3, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier #grille-chambres > div[class~="bg-yellow-50"] { box-shadow: inset 0 1px 0 #fff, 0 4px 0 #e2c35c, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier #grille-chambres > div[class~="bg-orange-50"] { background-color: #fff1e0 !important; border-color: #f0a860 !important; box-shadow: inset 0 1px 0 #fff, 0 4px 0 #d98a3d, 0 12px 16px -10px rgba(0, 0, 0, .4) !important; }
.emu-atelier #grille-chambres > div[class*="cursor-pointer"]:hover { transform: translateY(-2px) !important; }
.emu-atelier #grille-chambres > div[class*="cursor-pointer"]:active { transform: translateY(3px) !important; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25), 0 1px 0 #a9a9a9 !important; }
.emu-atelier #grille-chambres > div > div:first-child > span:first-child { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .2); }

/* ── Outils de la barre hôtel : mêmes touches que les onglets ── */
.emu-atelier .outils-hotel > button {
  border-radius: 11px !important; margin: 2px 1px 4px; border: 1px solid #a3a3a3 !important; color: #1f1f1f !important;
  background-image: var(--grad-secondary) !important; background-color: #fff !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 7px 10px -6px rgba(0, 0, 0, .4) !important;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier .outils-hotel > button:hover { background-color: #fff !important; color: #000 !important; }
.emu-atelier .outils-hotel > button:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3), 0 1px 0 #9a9a9a !important; }
.emu-atelier .tab-btn { display: inline-flex; align-items: center; justify-content: center; }

/* ── Analyse des ventes (Marketing / Rapports / Admin) : touches en relief ── */
.emu-atelier .va-btn, .emu-atelier .va-tab, .emu-atelier .va-cat {
  border: 1px solid #a3a3a3 !important; border-radius: 11px !important; color: #1f1f1f !important;
  background-color: #fff !important; background-image: var(--grad-secondary) !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 7px 10px -6px rgba(0, 0, 0, .4) !important;
  margin-bottom: 4px; transition: transform .08s ease, box-shadow .08s ease;
}
.emu-atelier .va-btn, .emu-atelier .va-tab { display: inline-flex; align-items: center; justify-content: center; gap: .35em; }
.emu-atelier .va-cat { border-radius: 11px !important; }
.emu-atelier .va-btn:hover, .emu-atelier .va-tab:hover { background-color: #fff !important; }
.emu-atelier .va-btn:active, .emu-atelier .va-tab:active, .emu-atelier .va-cat:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3), 0 1px 0 #9a9a9a !important; }
.emu-atelier .va-btn.va-prim, .emu-atelier .va-tab.va-actif, .emu-atelier .va-btn.va-actif {
  background-image: linear-gradient(180deg, #5a5a5a 0%, #262626 55%, #0d0d0d 100%) !important; background-color: #1a1a1a !important; color: #fff !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 3px 0 #000, 0 7px 10px -6px rgba(0, 0, 0, .7) !important;
}
.emu-atelier .va-tabs { background: #dcdcdc; border-radius: 14px; padding: .4rem .45rem .35rem; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .9); }
.emu-atelier .va-tab.va-actif { transform: translateY(1px); }
.emu-atelier #grille-chambres > div[class*="col-span"] { background: none !important; box-shadow: none !important; border-width: 0 !important; }

/* ==========================================================================
   Variante CLAIRE pour bar / cuisine (anciennement sombres) : <body class="emu-atelier emu-atelier-kds">
   Les classes sombres écrites en dur (HTML et JS) sont ré-interprétées en clair.
   ========================================================================== */
.emu-atelier-kds { background-image: linear-gradient(135deg, #f4f4f4 0%, #e4e4e4 100%) !important; background-color: #eee !important; color: #1f1f1f; }
.emu-atelier-kds .bg-gray-900:not(input):not(select):not(textarea):not(button) { background-color: transparent !important; background-image: none !important; }
.emu-atelier-kds :is(.bg-gray-800, .bg-gray-900\/80):not(button):not(input) {
  background-color: #fff !important; background-image: linear-gradient(180deg, #fff 0%, #f3f3f3 100%) !important; border-color: #cfcfcf !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #bdbdbd, 0 12px 16px -12px rgba(0, 0, 0, .45) !important; color: #1f1f1f;
}
.emu-atelier-kds nav.bg-gray-800 { background-color: #dcdcdc !important; background-image: none !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .9) !important; border: 0 !important; }
.emu-atelier-kds :is(div, span, p).bg-gray-700 { background-color: #e6e6e6 !important; background-image: none !important; color: #1f1f1f !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15) !important; }
.emu-atelier-kds :is(div, span, p, h1, h2, h3, h4, label, td, th, b, strong):is(.text-white):not([class*="bg-"]):not(header *):not(button *) { color: #1f1f1f !important; }
.emu-atelier-kds :is(.text-gray-300, .text-gray-200) { color: #3f3f3f !important; }
.emu-atelier-kds .text-gray-400, .emu-atelier-kds .text-gray-500 { color: #6b6b6b !important; }
.emu-atelier-kds :is(.border-gray-600, .border-gray-700) { border-color: #cfcfcf !important; }
.emu-atelier-kds :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  background-color: #e4e4e4 !important; color: #1f1f1f !important; border: 1px solid #c4c4c4 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18), inset 0 -1px 0 #fff !important;
}
.emu-atelier-kds :is(input, select, textarea)::placeholder { color: #7a7a7a; }
.emu-atelier-kds :focus-visible, .emu-atelier-kds :is(input, select, textarea):focus { outline-color: #000 !important; }
/* touches grises (boutons secondaires) → touches claires */
.emu-atelier-kds :is(button, a, label):is([class~="bg-gray-600"], [class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-slate-700"]):not([class*="border-b-4"]) {
  background-image: var(--grad-secondary) !important; background-color: #fff !important; color: #1f1f1f !important; border: 1px solid #a3a3a3 !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 8px 12px -6px rgba(0, 0, 0, .4) !important;
}
.emu-atelier-kds :is(.tab-btn, .cu-pill), .emu-atelier-kds button[class*="border-b-4"][class*="flex-1"] {
  background-image: var(--grad-secondary) !important; background-color: #fff !important; color: #1f1f1f !important; border: 1px solid #a3a3a3 !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9a9a9a, 0 7px 10px -6px rgba(0, 0, 0, .4) !important; transform: none;
}
.emu-atelier-kds :is(.tab-btn, .cu-pill):is(.border-orange-700, .cu-actif), .emu-atelier-kds button[class*="border-b-4"][class*="flex-1"][class*="text-white"] {
  background-image: linear-gradient(180deg, #5a5a5a 0%, #262626 55%, #0d0d0d 100%) !important; background-color: #1a1a1a !important; color: #fff !important; border: 1px solid #000 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7), 0 1px 0 #000 !important; transform: translateY(2px);
}
.emu-atelier-kds #barre-onglets, .emu-atelier-kds .barre-2col, .emu-atelier-kds [id^="barre-"] { background-color: #dcdcdc !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .9) !important; }
/* textes clairs (anciennement sur fond sombre) → couleurs lisibles sur fond blanc ; texte blanc conservé sur les fonds colorés */
.emu-atelier-kds .text-red-400 { color: #c62828 !important; }
.emu-atelier-kds .text-yellow-400, .emu-atelier-kds .text-yellow-300 { color: #b7791f !important; }
.emu-atelier-kds .text-green-400, .emu-atelier-kds .text-green-300 { color: #15803d !important; }
.emu-atelier-kds .text-blue-400, .emu-atelier-kds .text-blue-300, .emu-atelier-kds .text-sky-300, .emu-atelier-kds .text-sky-400 { color: #1d4ed8 !important; }
.emu-atelier-kds .text-orange-400, .emu-atelier-kds .text-orange-300 { color: #c2410c !important; }
.emu-atelier-kds :is([class*="bg-red-"], [class*="bg-orange-"], [class*="bg-green-"], [class*="bg-emerald-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-amber-5"], [class*="bg-amber-6"], [class*="bg-yellow-6"]) :is(.text-white, span, i, b) { color: #fff !important; }
.emu-atelier-kds :is(button, header) .text-white { color: #fff !important; }
.emu-atelier-kds :is(span, div, p):is([class*="bg-red-5"], [class*="bg-red-6"], [class*="bg-red-7"], [class*="bg-green-5"], [class*="bg-green-6"], [class*="bg-blue-5"], [class*="bg-blue-6"], [class*="bg-blue-7"], [class*="bg-indigo-"], [class*="bg-orange-5"], [class*="bg-orange-6"], [class*="bg-orange-7"], [class*="bg-emerald-"]) { color: #fff !important; }
