:root{
  --bg:#000000;
  --card:#0a0a0a;
  --card2:#050505;
  --text:#d4af37;
  --muted:#b8962e;
  --line:rgba(212,175,55,.25);
  --btn:#111111;
  --btn2:#000000;
  --danger:#ef4444;
  --radius:14px;
  --shadow: 0 20px 50px rgba(0,0,0,.55);
  font-synthesis-weight: none;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body.dark{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:#000;
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

.container{ max-width:1100px; margin:20px auto; padding:0 16px; }

.panel{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:#000;
  position: sticky;
  top:0;
  z-index: 10;
}

.brand{ font-weight:700; letter-spacing:.2px; }
.right{ display:flex; gap:10px; align-items:center; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius: 12px;
  background: var(--btn);
  border:1px solid var(--line);
  color:var(--text);
}

.btn:hover{
  background:#d4af37;
  color:#000;
}

/* LOGIN CARD */
.center-card{
  width:min(430px, calc(100% - 32px));
  margin: 9vh auto;
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:20px;
}

.login-hero{
  display:block;
  width:100%;
  height:auto;
  max-height:170px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  margin:0 0 12px;
}

h1{ margin:0 0 6px; font-size:26px; }
h2{ margin:0 0 8px; }
.muted{ color:var(--muted); }
.tiny{ font-size:12px; }

.alert{
  margin:10px 0;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

label{ font-size:13px; color:var(--muted); }

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  background:var(--card2);
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color:#d4af37;
  box-shadow:0 0 0 2px rgba(212,175,55,.25);
}

button{
  cursor:pointer;
  padding:10px 12px;
  border-radius:12px;
  background:#111;
  border:1px solid var(--line);
  color:var(--text);
  font-weight:600;
}

button:hover{
  background:#d4af37;
  color:#000;
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* MODAL */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.8);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.hidden{ display:none !important; }

.modal-card{
  width:min(520px, 100%);
  background:#000;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
  max-height: calc(100vh - 36px);
  overflow:auto;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.modal-title{ font-weight:700; }

.iconbtn{
  background:#111;
  border:1px solid var(--line);
  border-radius:12px;
  padding:6px 10px;
  color:var(--text);
}

.iconbtn:hover{
  background:#d4af37;
  color:#000;
}

/* Checklist groupes (liste verticale) */
.checkgrid{
  display: grid;
  grid-template-columns: 1fr;  /* ✅ 1 colonne */
  gap: 10px;
}

/* Optionnel: si tu as beaucoup de groupes, scroll dans le modal */
#bandsList{
  max-height: 42vh;
  overflow: auto;
  padding-right: 6px;
}




.checkitem{
  display:flex;
  align-items:center;
  gap:10px;
  background:#0a0a0a;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
}

/* FULLCALENDAR */
.fc, .fc .fc-toolbar-title{ color: var(--text); }

.fc .fc-button{
  background:#111 !important;
  border:1px solid var(--line) !important;
  color:var(--text) !important;
  border-radius:12px !important;
}

.fc .fc-button:hover{
  background:#d4af37 !important;
  color:#000 !important;
}

.fc-theme-standard td,
.fc-theme-standard th{
  border-color: var(--line) !important;
}

.fc .fc-daygrid-day-number{ color: var(--muted); }
.fc .fc-col-header-cell-cushion{ color: var(--muted); }






























/* ==============================
   Checklist groupes — version clean
   ============================== */

/* La liste */
.checkgrid{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Chaque ligne = grille (checkbox | dot | nom) */
.checkitem{
  display:grid;
  grid-template-columns: 26px 14px 1fr;
  align-items:center;
  column-gap:12px;

  background:#0a0a0a;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;

  cursor:pointer;
  user-select:none;
}

/* Hover subtil */
.checkitem:hover{
  background:#0d0d0d;
  border-color: rgba(212,175,55,.45);
}

/* Focus accessible quand tu tab */
.checkitem:focus-within{
  box-shadow: 0 0 0 2px rgba(212,175,55,.22);
  border-color: rgba(212,175,55,.60);
}

/* Checkbox bien alignée */
.checkitem input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  justify-self:start;
}

/* Pastille */
.checkitem .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  box-shadow: 0 0 0 1px rgba(212,175,55,.25);
}

/* Nom du band = 1 ligne, collé à gauche, sans wrap */
.checkitem span:last-child{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width:0;
  text-align:left;
}

/* Scroll plus joli dans le modal si beaucoup de groupes */
#bandsList{
  max-height: 42vh;
  overflow: auto;
  padding-right: 8px;
}

#bandsList::-webkit-scrollbar{ width: 10px; }
#bandsList::-webkit-scrollbar-thumb{
  background: rgba(212,175,55,.25);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.65);
}
#bandsList::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}

#voleurPopup{
  position:fixed;
  bottom:-200px;
  left:50%;
  transform:translateX(-50%);
  height:160px;
  pointer-events:none;
  z-index:9999;
  transition:bottom .6s ease;
}

#voleurPopup.show{
  bottom:20px;
}
