/* ═════════════════════════════════════════════════════════════════════════
   check-deps.css — Popup de confirmation de suppression avec dépendances
   ═════════════════════════════════════════════════════════════════════════ */

.deps-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.deps-popup-box {
  background: #fff;
  border-radius: 8px;
  max-width: 720px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.deps-popup-header {
  padding: 14px 18px;
  background: #fff4e5;
  border-bottom: 2px solid #f9c97c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7a4a00;
  font-size: 1.1em;
}

.deps-popup-fermer {
  background: transparent;
  border: 0;
  font-size: 1.6em;
  cursor: pointer;
  color: #7a4a00;
  line-height: 1;
}
.deps-popup-fermer:hover { color: #c62828; }

.deps-popup-content {
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1;
}
.deps-popup-content > p { margin: 0 0 16px; line-height: 1.45; }

.deps-bloc {
  background: #fafafa;
  border-left: 4px solid #884ea0;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}
.deps-bloc-persos { border-left-color: #c62828; background: #fff5f5; }
.deps-bloc-objets { border-left-color: #884ea0; }

.deps-bloc h4 {
  margin: 0 0 8px;
  font-size: 1em;
  color: #5d2a73;
}
.deps-bloc-persos h4 { color: #842029; }

.deps-bloc ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.deps-bloc li { margin: 2px 0; line-height: 1.4; }

.deps-categorie {
  margin: 10px 0 0;
  font-size: 0.92em;
}
.deps-categorie strong {
  display: block;
  color: #5d2a73;
  margin-bottom: 2px;
}

.deps-warning {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  padding: 10px 14px;
  color: #842029;
  font-weight: bold;
  margin-top: 16px;
}

.deps-popup-actions {
  padding: 14px 18px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.deps-btn-annuler,
.deps-btn-confirmer,
.deps-btn-ok {
  border: 0;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: bold;
}
.deps-btn-annuler {
  background: #888;
  color: #fff;
}
.deps-btn-annuler:hover { background: #555; }
.deps-btn-confirmer {
  background: #c62828;
  color: #fff;
}
.deps-btn-confirmer:hover { background: #8e0000; }
.deps-btn-ok {
  background: #2e7d32;
  color: #fff;
}
.deps-btn-ok:hover { background: #1b5e20; }

/* Variante compacte pour alert / confirm sans liste de dépendances */
.deps-popup-small {
  max-width: 480px;
}
.deps-popup-small .deps-popup-header {
  background: #f0f4f8;
  border-bottom-color: #cbd5e0;
  color: #2c3e50;
}
.deps-popup-small .deps-popup-fermer { color: #2c3e50; }
.deps-popup-small .deps-popup-content > p {
  margin: 0;
  font-size: 1em;
}
