/* Admin kiosk boutique — DA Cabaret Vert 2026. */
:root {
  --vert: #05F26C; --bleu: #056CF2; --jaune: #D7F205; --rose: #F250B9; --encre: #1D1D1B;
  --bg: #131312; --surface: #1c1c1a; --surface2: #262623; --line: #333330;
  --fg: #f4f4ef; --muted: #9a9a92; --accent: var(--vert);
  font-family: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); min-height: 100vh; }
a { color: var(--vert); }

/* ---- topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--vert); }
.tabs { display: flex; gap: 6px; margin-left: auto; }
.tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 100px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.tab:hover { color: var(--fg); }
.tab.is-active { background: var(--vert); color: var(--encre); }
.status { color: var(--muted); font-size: 13px; min-width: 60px; text-align: right; }
.status.ok { color: var(--vert); } .status.err { color: var(--rose); }

/* ---- views ---- */
main { padding: 28px 24px 80px; max-width: 1200px; margin: 0 auto; }
.view { display: none; }
.view.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.view__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.view__head h1 { font-size: 26px; font-weight: 900; }
.hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; max-width: 70ch; }

/* ---- boutons ---- */
.btn {
  background: var(--surface2); color: var(--fg); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--vert); color: var(--encre); border-color: var(--vert); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--rose); }
.btn--sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }

/* ---- grid & cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative;
  border-left: 5px solid var(--accent);
}
.card.dragging { opacity: .4; }
.card.dragover { outline: 2px dashed var(--vert); outline-offset: 2px; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__title { font-weight: 800; font-size: 17px; line-height: 1.2; }
.card__meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--surface2); }
.chip--type { text-transform: uppercase; letter-spacing: .08em; }
.card__actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.card__preview { color: var(--muted); font-size: 13px; line-height: 1.4; max-height: 60px; overflow: hidden; }
.card__handle { cursor: grab; color: var(--muted); font-size: 18px; user-select: none; }
.badge-off { background: var(--rose); color: #fff; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 800; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); flex: 0 0 auto; }

/* ---- modal ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal__box {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: min(640px, 100%); max-height: 88vh; overflow: auto; padding: 24px;
}
.modal__box h2 { font-size: 20px; font-weight: 900; margin-bottom: 18px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---- form ---- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--fg); }
.field .sub { color: var(--muted); font-weight: 500; font-size: 12px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); }
textarea { resize: vertical; min-height: 80px; }
input[type=color] { width: 46px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 2px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--vert); }

/* assignation playlist */
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.assign__col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.assign__list { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.assign__item {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; font-size: 14px; border-left: 4px solid var(--accent);
}
.assign__item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign__item button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 5px; }
.assign__item button:hover { color: var(--fg); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .assign { grid-template-columns: 1fr; } }
