/* DJOBI – Product Report System */

/* ───────── Lien "Signaler un problème avec ce produit" ───────── */
.djobi-pr-wrapper {
  margin-top: 4px;
}

.djobi-pr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #1a5fb4;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.djobi-pr-trigger::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23777" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.85;
}

.djobi-pr-trigger:hover {
  color: #154a8d;
  text-decoration: underline;
}

.djobi-pr-trigger:hover::before {
  opacity: 1;
}

.dpr-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ───────── Modal / overlay ───────── */
.dpr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.dpr-modal {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.dpr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.dpr-title {
  margin: 0;
  font-size: 1.05rem;
}

/* ───────── CROIX DE FERMETURE – noire, plus claire au survol ───────── */
.dpr-close {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto;
  height: auto;
  line-height: 1;
  cursor: pointer;
  color: #111;
  font-size: 24px;
  transition: color 0.15s ease;
}

.dpr-close:hover,
.dpr-close:focus-visible {
  color: #777 !important;
}

/* ───────── Formulaire ───────── */
.dpr-form {
  padding: 16px 18px 20px;
}

.dpr-label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}

.dpr-select,
.dpr-textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.dpr-select option[disabled] {
  color: #999;
}

.dpr-hint {
  font-size: 12px;
  color: #666;
  margin: 8px 0 14px;
}

/* ───────── Bouton + Loader ───────── */
.dpr-btn-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dpr-submit {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.dpr-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ───────── MESSAGE DE SUCCÈS MODERNE ───────── */
.dpr-success {
  text-align: center;
  color: #1a8b3c;             /* vert vif */
  font-weight: 700;           /* texte en gras */
  font-size: 15px;
  margin: 18px 0;
  animation: fadeOut 1.5s ease 1.5s forwards;
}

/* Animation de disparition en fondu */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.dpr-locked {
  overflow: hidden;
}

/* ───────── Loader style ───────── */
.dpr-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.dpr-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: dpr-spin 0.9s linear infinite;
}

@keyframes dpr-spin {
  to { transform: rotate(360deg); }
}

