/* ===== Fenêtre modale d'aide ===== */

.help-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.help-modal.hidden {
  display: none;
}

.help-modal-card {
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid var(--card-border);
  max-width: 720px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8);
  padding: 1rem 1.25rem 1.25rem;
  position: relative;
}

#help-modal-title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.help-close-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #f87171;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.help-close-icon:hover,
.help-close-icon:focus {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
  border-color: #fca5a5;
  transform: scale(1.05);
}

.help-modal-body {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-height: 70vh;
  overflow-y: auto;
  line-height: 1.45;
}

.help-footer {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0.6rem 0 0.2rem;
}

.help-modal-body ul {
  padding-left: 1.25rem;
}
