/* utils.css — Système de modales réutilisables */

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 430px) {
  .overlay { padding: 8px; }
  .modal { padding: 14px; }
}

/* ---------- MODALE ---------- */
.modal {
  background: var(--s2);
  border: 1px solid var(--bm); border-radius: 16px; padding: 20px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 0 1px var(--b);
}
.modal-title {
  font-size: 18px; font-weight: 800; color: var(--gold);
  margin-bottom: 4px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.modal-subtitle {
  font-size: 13px; color: var(--cream); opacity: 0.65;
  text-align: center; margin-bottom: 16px;
}
.modal-actions {
  display: flex; gap: 8px; margin-top: 16px; justify-content: space-between;
}
.modal-actions .btn { flex: 1; }

/* ---------- LIGNE D'ACTIONS EN MODAL ---------- */
.modal-action-row { display: flex; gap: 6px; margin: 12px 0; }
.modal-action-row .action-btn {
  flex: 1; min-width: 80px; padding: 14px 8px;
  border-radius: 8px; border: 2px solid transparent;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; transition: all 0.15s;
}
.modal-action-row .action-btn:active { transform: scale(0.97); }
.modal-action-row .action-btn.selected {
  border-color: var(--gold); box-shadow: 0 0 14px rgba(200,156,60,0.45);
}
