/* Modal signalement de bugs — chargé en externe (CSP style-src sans unsafe-inline) */

.sig-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sig-overlay.open {
  display: flex;
}

.sig-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 24px 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  font-family: "DM Sans", sans-serif;
}

.sig-ttl {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 300;
  color: #1C1A14;
  margin: 0 0 4px;
}

.sig-sub {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 16px;
  line-height: 1.5;
}

.sig-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: #9CA3AF;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.sig-close:hover {
  color: #1C1A14;
}

.sig-textarea {
  width: 100%;
  height: 90px;
  padding: 10px 12px;
  border: 0.5px solid #E5E5EA;
  border-radius: 9px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: #1C1A14;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}

.sig-textarea:focus {
  border-color: rgba(27, 79, 204, 0.45);
}

.sig-sev-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sig-sev-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 7px;
}

.sig-sev-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0.5px solid #E5E5EA;
  cursor: pointer;
  font-size: 12px;
  color: #3C3C43;
  background: #FAFAFA;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.sig-sev-opt:has(input:checked) {
  border-color: rgba(27, 79, 204, 0.5);
  background: #EFF6FF;
  color: #1B4FCC;
}

.sig-sev-opt input {
  display: none;
}

.sig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sig-hint {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.4;
  flex: 1;
}

.sig-btn {
  height: 38px;
  padding: 0 20px;
  background: #1B4FCC;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.sig-btn:hover {
  background: #1544b8;
}

.sig-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sig-status {
  font-size: 12px;
  margin-top: 10px;
  display: none;
  line-height: 1.5;
}

.sig-status.is-visible {
  display: block;
}

.sig-status--error {
  color: #DC2626;
}

.sig-status--ok {
  color: #16A34A;
}

.sig-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 0.5px solid #E5E5EA;
  border-radius: 8px;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.sig-nav-btn:hover {
  color: #DC2626;
  border-color: #DC2626;
}
