/* ═══════════════════════════════════════════════════════════════
   vo-even.css — Événements et inscriptions Vestiges
   ═══════════════════════════════════════════════════════════════ */

#main {
  padding-top: 70px;
  display: block !important;
}

.ve-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

.ve-titre {
  font-size: 1.3em;
  font-weight: 700;
  margin: 16px 0 12px;
  color: #333;
}

/* ─── Filtres ──────────────────────────────────────────────── */
.ve-filtres {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ve-filtres label {
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
}
.ve-filtres select {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  background: #fff;
}

/* ─── Événements ──────────────────────────────────────────── */
.ve-event {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.ve-event:hover {
  border-color: #aac8e8;
}

.ve-event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f9fa;
  flex-wrap: wrap;
}
.ve-event-header.ve-event-passe {
  opacity: 0.55;
}
.ve-event-dates {
  font-size: 0.88em;
  font-weight: 600;
  color: #1565c0;
  white-space: nowrap;
  min-width: 140px;
}
.ve-event-titre {
  flex: 1;
  font-weight: 600;
  font-size: 0.95em;
  color: #333;
}
.ve-event-badges {
  display: flex;
  gap: 6px;
}
.ve-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.ve-badge-xp {
  background: #fff3e0;
  color: #e65100;
}
.ve-badge-inscrits {
  background: #e8f5e9;
  color: #2e7d32;
}

.ve-btn-edit {
  background: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  padding: 2px 8px;
  color: #555;
  transition: background 0.15s, color 0.15s;
}
.ve-btn-edit:hover {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.ve-event-desc {
  padding: 8px 14px;
  font-size: 0.88em;
  color: #555;
  border-top: 1px solid #eee;
}

.ve-vide {
  text-align: center;
  color: #999;
  padding: 30px;
  font-size: 0.95em;
}

/* ─── Formulaire édition événement ───────────────────────── */
.ve-edit-form {
  padding: 12px 14px;
  border-top: 1px solid #eee;
  background: #f0f4f8;
}
.ve-edit-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}
.ve-edit-row label {
  font-size: 0.78em;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ve-edit-row input,
.ve-edit-row textarea {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: inherit;
  background: #fff;
}
.ve-edit-row textarea {
  resize: vertical;
}
.ve-edit-row-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ve-edit-row-inline .ve-edit-row {
  flex: 1;
  min-width: 120px;
}
.ve-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.ve-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.ve-btn-save {
  background: #1976d2;
  color: #fff;
}
.ve-btn-save:hover { background: #1565c0; }
.ve-btn-save:disabled { background: #aaa; cursor: not-allowed; }
.ve-btn-cancel {
  background: #eee;
  color: #555;
}
.ve-btn-cancel:hover { background: #ddd; }

/* ─── Section inscription personnelle ────────────────────── */
.ve-inscriptions {
  padding: 8px 14px 10px;
  border-top: 1px solid #eee;
  background: #fafbfc;
}

.ve-inscrits-liste {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.ve-inscrit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #e8f5e9;
  border-radius: 6px;
  font-size: 0.88em;
}
.ve-inscrit-nom {
  flex: 1;
  font-weight: 500;
  color: #2e7d32;
}
.ve-pour-joueur {
  font-size: 0.85em;
  color: #1565c0;
  font-style: italic;
}
.ve-btn-desinscrire {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #c62828;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.ve-btn-desinscrire:hover {
  opacity: 1;
}

.ve-form-inscrire {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ve-select-perso {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.88em;
  background: #fff;
  max-width: 320px;
}
.ve-btn-inscrire {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  background: #4caf50;
  color: #fff;
  transition: background 0.2s;
  white-space: nowrap;
}
.ve-btn-inscrire:hover { background: #388e3c; }
.ve-btn-inscrire:disabled { background: #aaa; cursor: not-allowed; }

.ve-info-msg {
  font-size: 0.82em;
  color: #999;
  font-style: italic;
  padding: 2px 0;
}

/* ─── Section inscriptions admin ─────────────────────────── */
.ve-inscr-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid #eee;
  background: #f0f4f8;
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 600;
  color: #555;
  transition: background 0.15s;
}
.ve-inscr-toggle-bar:hover {
  background: #e3f2fd;
}
.ve-inscr-arrow {
  font-size: 0.8em;
  color: #999;
}
.ve-inscr-detail {
  padding: 0 14px 10px;
  background: #fafbfc;
  border-top: 1px solid #eee;
}

.ve-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin-top: 8px;
}
.ve-table th {
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
  padding: 6px 8px;
  font-size: 0.88em;
}
.ve-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.ve-table tbody tr:hover {
  background: #f5f5f5;
}
.ve-th-check { width: 30px; }
.ve-td-num { text-align: center; font-weight: 500; }
.ve-td-date { font-size: 0.88em; color: #777; white-space: nowrap; }
.ve-no-perso {
  font-size: 0.82em;
  font-weight: bold;
  color: #1565c0;
  margin-left: 4px;
}

.ve-btn-admin-desinscr {
  background: none;
  border: none;
  font-size: 1.1em;
  color: #c62828;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.ve-btn-admin-desinscr:hover { opacity: 1; }

/* ─── Barre XP admin ─────────────────────────────────────── */
.ve-xp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #fff3e0;
  border-radius: 6px;
  flex-wrap: wrap;
  font-size: 0.88em;
}
.ve-xp-selected {
  font-weight: 600;
  color: #e65100;
}
.ve-xp-bar label {
  font-weight: 500;
  color: #555;
}
.ve-xp-input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  font-size: 0.95em;
}
.ve-btn-xp {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  background: #e65100;
  color: #fff;
  transition: background 0.2s;
}
.ve-btn-xp:hover { background: #bf360c; }

/* ─── Toaster ─────────────────────────────────────────────── */
.ve-toaster {
  position: fixed;
  top: 50px;
  left: 25%;
  width: 50%;
  padding: 10px 16px;
  background: #f8e5c5;
  color: #000;
  z-index: 2000;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: ve-toast-in 0.3s ease;
}
@keyframes ve-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 650px) {
  .ve-event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ve-event-dates { min-width: auto; }
  .ve-form-inscrire {
    flex-direction: column;
    align-items: stretch;
  }
  .ve-select-perso { max-width: 100%; }
  .ve-edit-row-inline { flex-direction: column; gap: 0; }
  .ve-xp-bar { flex-direction: column; align-items: stretch; }
}
