/* ── sg-cropper.css — Modal de recadrage photo ──────────────────────────────── */

#sgc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#sgc-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

#sgc-title {
  font-family: var(--sc-font-serif, Georgia, serif);
  color: var(--sc-blue-deep, #0d2d5e);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

#sgc-hint {
  color: var(--sc-text-muted, #888);
  font-size: 0.8125rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

#sgc-img-wrap {
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
}

#sgc-img {
  display: block;
  max-width: 100%;
}

#sgc-ratio-hint {
  font-size: 0.75rem;
  color: var(--sc-text-muted, #999);
  text-align: center;
  margin: 0.6rem 0 0;
  font-style: italic;
}

#sgc-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-shrink: 0;
}

#sgc-cancel {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--sc-border, #e0dcd6);
  border-radius: 8px;
  background: transparent;
  color: var(--sc-text-dark, #1a1a1a);
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
#sgc-cancel:hover { background: var(--sc-bg-soft, #f5f1ec); }

#sgc-confirm {
  padding: 0.6rem 1.75rem;
  border: none;
  border-radius: 8px;
  background: var(--sc-blue-deep, #0d2d5e);
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
#sgc-confirm:hover:not(:disabled) { background: #0a2448; }
#sgc-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* Cropper.js override — highlight crop box */
.cropper-view-box { outline-color: var(--sc-blue-deep, #0d2d5e); }
.cropper-point { background-color: var(--sc-blue-deep, #0d2d5e); }
.cropper-line { background-color: var(--sc-blue-deep, #0d2d5e); }

@media (max-width: 480px) {
  #sgc-dialog { padding: 1.25rem 1rem 1rem; border-radius: 12px; }
  #sgc-img-wrap { max-height: 300px; }
  #sgc-actions { flex-direction: column-reverse; }
  #sgc-cancel, #sgc-confirm { width: 100%; text-align: center; }
}
