
:root {
  --sidebar-bg: #1f6b6e; /* bleu-vert foncé */
  --sidebar-fg: #e6fffa;
  --accent: #38b2ac;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f6f9fb;
  color: #1f2937;
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  padding: 10px;
  border-radius: 12px;
}
.user-card img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}
.nav-btn {
  background: rgba(255,255,255,0.1);
  color: var(--sidebar-fg);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.nav-btn:hover { background: rgba(255,255,255,0.2); }
.content {
  padding: 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.login-photo {
  background: #0f766e;
  display: grid;
  place-items: center;
}
.login-photo img {
  width: 80%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.form-card { width: 100%; max-width: 420px; }
.form-card h2 { margin: 0 0 12px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin: 6px 0 12px;
}
button.primary {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.fc-toolbar-title { font-size: 1.1rem !important; }

/* --- Modal au-dessus de tout --- */
#modal {
  position: fixed;
  inset: 0;
  display: none;              /* affiché via JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 99999;             /* clé du problème */
}
#modal .card {
  position: relative;
  z-index: 100000;
}

/* Empêche les clics sur le calendrier quand le modal est ouvert */
body.modal-open #calendar {
  pointer-events: none;
  filter: blur(0.5px);
}

/* Au cas où FullCalendar créerait un contexte de pile gênant */
#calendar, .card { position: static !important; z-index: auto !important; }

  #calendar { min-height: 600px; }
  
  /* Ajuste la densité en 3 colonnes */
.fc .fc-multiMonthMonth { padding: 8px; }
.fc .fc-daygrid-day-number { font-size: 12px; }
@media (max-width: 1200px){
  /* Si écran plus étroit, passe en 2 colonnes */
  .fc-multiMonth { --fc-multimonth-max-cols: 2; }
}
@media (max-width: 900px){
  /* Sur mobile, 1 colonne */
  .fc-multiMonth { --fc-multimonth-max-cols: 1; }
}

.dashboard-button {
    display: inline-block;
    padding: 12px 18px;
    margin: 8px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.dashboard-button:hover {
    background: #333;
}


