/* =========================
   Écran mode maintenance — page SaaS premium
   Affiché quand maintenance_mode = true et utilisateur ≠ admin
   ========================= */

.maintenance-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 40px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06), transparent 40%),
    #f8fafc;
}

.maintenance-card {
  background: white;
  border-radius: 20px;
  padding: 60px;
  max-width: 520px;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.05);
  animation: maintenance-fadeIn 0.6s ease;
}

@keyframes maintenance-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maintenance-animation {
  width: 260px;
  height: 260px;
  margin: 0 auto 20px auto;
}

.maintenance-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0 0 12px 0;
}

.maintenance-description {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 14px 0;
}

.maintenance-sub {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 20px 0;
}

.maintenance-return {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
  margin: 10px 0 0 0;
}

/* =========================
   Bouton toggle Maintenance (topbar, admin uniquement)
   ========================= */

.maintenance-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.maintenance-toggle--off {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.maintenance-toggle--off:hover {
  background: #dcfce7;
}

.maintenance-toggle--on {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.maintenance-toggle--on:hover {
  background: #fee2e2;
}

.maintenance-toggle__label {
  white-space: nowrap;
}
