/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020817;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 32px;
}

/* HEADER – même style que depot.css */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 20;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent);
  backdrop-filter: blur(6px);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  
  
  
    order: 1;
    width: 100%;
    justify-content: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #1d4ed8;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020817;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Nav droite */
.nav-right {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;         /* centrer le bloc */
    flex-wrap: wrap;                 /* retour à la ligne */
    padding-top: 6px;
	
	
	
	
  align-items: center;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 253, 0.18);
  color: #e5e7eb;
  transition: all 0.22s ease;
}

.nav-link:hover {
  background: linear-gradient(90deg, #1d4ed8, #facc15);
  color: #020817;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}

.nav-link.active {
  border-color: #facc15;
  color: #facc15;
}

/* Bouton Admin */
.btn-admin {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(148, 163, 253, 0.45);
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin:hover {
  color: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.32);
}

/* HERO */
.events-hero {
  text-align: center;
  margin-bottom: 26px;
}

.events-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.events-label::before,
.events-label::after {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(to right, transparent, #1d4ed8);
}

.events-hero h1 {
  margin-top: 4px;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #facc15;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.events-hero p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: #9ca3af;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* LISTE D'ÉVÈNEMENTS */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 30px;
}

/* Event card */
.event-card {
  padding: 14px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent),
    rgba(6, 8, 18, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card:hover {
  border-color: #1d4ed8;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 1);
  transform: translateY(-2px);
}

/* Grande image événement */
.event-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.event-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Contenu */
.event-content h2 {
  font-size: 1.18rem;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.event-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

/* Boutons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, #1d4ed8, #facc15);
  color: #020817;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 1);
  filter: saturate(1.15);
}

.btn-secondary {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(148, 163, 253, 0.45);
}

.btn-secondary:hover {
  color: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.32);
}

/* ADMIN ÉVÈNEMENTS */
.hidden {
  display: none !important;
}

.admin-section {
  margin-top: 4px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent),
    rgba(6, 8, 18, 0.98);
  border: 1px solid rgba(107, 114, 128, 0.9);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 1);
}

.admin-section h2 {
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #60a5fa;
  margin-bottom: 4px;
}

.admin-note {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

/* Tableau */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  color: #9ca3af;
}

thead {
  background: rgba(9, 9, 11, 0.98);
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: #e5e7eb;
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.98);
}

/* Statuts */
.status {
  font-weight: 600;
}

[data-status="attente"] .status {
  color: #facc15;
}

[data-status="confirme"] .status,
[data-status="payé"] .status,
[data-status="confirmee"] .status {
  color: #22c55e;
}

[data-status="refuse"] .status {
  color: #f97316;
}

/* Boutons actions */
.actions button {
  padding: 3px 7px;
  margin: 1px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: transparent;
  color: #9ca3af;
  transition: all 0.18s ease;
}

.actions .btn-validate-pay {
  border-color: rgba(22, 163, 74, 0.7);
  color: #4ade80;
}

.actions .btn-validate-pay:hover {
  background: rgba(22, 163, 74, 0.16);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.actions .btn-refuse {
  border-color: rgba(248, 113, 113, 0.85);
  color: #fca5a5;
}

.actions .btn-refuse:hover {
  background: rgba(127, 29, 29, 0.7);
}

.actions .btn-sms-confirm,
.actions .btn-sms-rappel,
.actions .btn-sms-lieu {
  border-color: rgba(59, 130, 246, 0.8);
  color: #60a5fa;
}

.actions .btn-sms-confirm:hover,
.actions .btn-sms-rappel:hover,
.actions .btn-sms-lieu:hover {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

/* FOOTER */
footer {
  width: 100%;
  padding: 14px 24px 18px;
  font-size: 0.7rem;
  color: #4b5563;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: auto;
}

footer .highlight {
  color: #1d4ed8;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  header {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .nav-right {
    gap: 6px;
  }
  
 .nav-right .nav-link,
  .nav-right .btn-admin {
    flex: 0 0 calc(50% - 12px);      /* 2 colonnes */
    text-align: center;              /* texte vraiment centré */
  }
  
   /* Optionnel : augmente un peu la zone cliquable */
  .nav-right .nav-link {
    padding: 8px 14px;
  }

  .nav-link {
    padding: 5px 10px;
    font-size: 0.65rem;
  }

  .page {
    padding: 90px 16px 26px;
  }

  .event-image img {
    height: 200px;
  }
  
  .events-label {
    margin-top: 120px;   /* ajuste entre 90px et 140px si besoin */
  }
}

/* Boutons admin sur chaque évènement */
.admin-event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.btn-admin-event {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 253, 0.45);
  background: rgba(2, 6, 23, 0.98);
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-admin-event:hover {
  color: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.32);
  transform: translateY(-1px);
}

/* Etat édition visuel */
.event-card.editing {
  border-color: #60a5fa;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.35);
}

.event-card .editable {
  outline: 1px dashed rgba(96, 165, 250, 0.6);
  padding: 2px;
  border-radius: 6px;
}