/* accountDeletion.css — Options › Compte (accountDeletion.js) */

.acc-links a {
  text-decoration: none;
  display: block;
}

/* Zone « danger » de l'onglet Compte */
.opt-section.acc-danger-zone {
  border-color: #9b3a2a;
  background: linear-gradient(180deg, rgba(255, 236, 222, 0.6), rgba(236, 200, 178, 0.45));
}

.acc-danger-zone .opt-section-title {
  color: #7a1d0e;
  border-bottom-color: rgba(122, 29, 14, 0.35);
}

/* Bouton rouge, même gabarit que .btn-green-small */
.acc-btn-danger {
  align-self: flex-start;
  background: linear-gradient(180deg, #a3271a 0%, #7e170d 55%, #6a1208 100%);
  color: #fbe9d6;
  border: 2px solid #5a0f07;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 0 #d98a6b inset, 0 3px 7px rgba(40, 6, 0, 0.6);
  cursor: pointer;
  transition: filter 0.12s, transform 0.1s, opacity 0.2s;
}

.acc-btn-danger:hover:not(:disabled) {
  filter: brightness(1.15);
}

.acc-btn-danger:active:not(:disabled) {
  transform: translateY(1px);
}

.acc-btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* ── Fenêtre de confirmation ─────────────────────────────────────────────── */
.acc-del-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 6, 2, 0.72);
}

.acc-del-overlay.hidden {
  display: none;
}

.acc-del-dialog {
  width: min(460px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px 18px;
  background: url('img/UI/win_mainoverlay_paper.jpg') no-repeat center / 100% 100%;
  border: 2px solid #7a5a32;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  color: #3d2e1f;
  font-size: 14px;
  line-height: 1.45;
}

.acc-del-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(122, 29, 14, 0.4);
  color: #7a1d0e;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acc-del-title::before {
  content: '⚠ ';
}

.acc-del-lead {
  margin: 0 0 6px;
}

.acc-del-list {
  margin: 0 0 10px;
  padding-left: 20px;
}

.acc-del-list li {
  margin-bottom: 3px;
}

.acc-del-warning {
  margin: 0 0 14px;
  padding: 6px 10px;
  border-left: 3px solid #a3271a;
  background: rgba(163, 39, 26, 0.1);
  color: #7a1d0e;
  font-weight: 700;
}

.acc-del-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 600;
}

.acc-del-field input {
  padding: 7px 9px;
  border: 1px solid #9b7a4f;
  border-radius: 5px;
  background: rgba(255, 252, 240, 0.9);
  color: #2a1e12;
  font-size: 15px;
  font-weight: normal;
}

.acc-del-field input:focus {
  outline: 2px solid #c08a3e;
  outline-offset: 1px;
}

#acc-del-confirm {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#acc-del-confirm.is-valid {
  border-color: #a3271a;
  box-shadow: 0 0 0 2px rgba(163, 39, 26, 0.25);
}

.acc-del-word {
  color: #a3271a;
  letter-spacing: 0.08em;
  user-select: none;
  -webkit-user-select: none;
}

.acc-del-error {
  min-height: 1.3em;
  margin: 0 0 8px;
  color: #a3271a;
  font-weight: 600;
}

.acc-del-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.acc-del-buttons .acc-btn-danger {
  align-self: auto;
}

.acc-del-done {
  margin: 20px 0;
  text-align: center;
  font-size: 1.05em;
  font-weight: 700;
  color: #3d2e1f;
}

/* Mobile / PWA paysage : informations à gauche, saisie à droite, pour que
   tout tienne sans défiler (titre sur toute la largeur). */
@media (max-height: 500px) {
  .acc-del-dialog {
    width: min(780px, 100%);
    padding: 12px 16px;
    font-size: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    align-items: start;
  }

  .acc-del-title {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .acc-del-list {
    margin-bottom: 6px;
  }

  .acc-del-warning {
    margin-bottom: 8px;
  }

  .acc-del-field {
    margin-bottom: 6px;
  }
}
