/*
 * Périodika — alerte de présence (Palier 4a).
 * Fichier SÉPARÉ de board.css volontairement : board.css est stable et
 * validé, on n'y touche pas pour ajouter une fonctionnalité isolée.
 */

.pk-presence-alert {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 34, 0.72);
}

.pk-presence-alert[hidden] {
  display: none;
}

.pk-presence-box {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.pk-presence-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.pk-presence-text {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 18px;
  color: #cbd5e1;
}

.pk-presence-count {
  display: inline-block;
  min-width: 2.4em;
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  margin-bottom: 18px;
}

.pk-presence-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pk-presence-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.pk-presence-stay {
  background: #2563eb;
  color: #fff;
}

.pk-presence-stay:hover {
  background: #1d4ed8;
}

.pk-presence-quit {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569 !important;
}

.pk-presence-quit:hover {
  color: #e2e8f0;
  border-color: #64748b !important;
}

@media (max-width: 780px) {
  .pk-presence-box {
    margin: 0 18px;
    padding: 22px 20px;
  }
}
