/* ==========================================
   Wonder — Modal Nouvelle Opportunité (Pro)
   ========================================== */

#modalDeal { display: none; align-items: center; justify-content: center; }

.wt-deal-modal {
  background: #fff;
  border-radius: 20px;
  width: 940px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow: hidden;
}

/* Header */
.wt-deal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e8eae6;
  background: #fff;
  flex-shrink: 0;
}
.wt-deal-hd-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0e1411;
  letter-spacing: -.3px;
}
.wt-deal-star { color: #14543a; font-size: 14px; }
.wt-deal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; color: #6b7565;
  transition: background .15s, color .15s;
}
.wt-deal-close:hover { background: #f6f6f3; color: #0e1411; }

/* Body */
.wt-deal-bd {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  background: #f6f6f3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search card */
.wt-deal-search-card {
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 16px 18px;
}
.wt-deal-search-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: #1e3a8a;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.wt-deal-search-row { display: flex; gap: 10px; align-items: center; }

/* Sections */
.wt-deal-sec {
  background: #fff;
  border: 1px solid #e8eae6;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wt-deal-sec-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.wt-deal-sec-proj  { color: #1e3a8a; }
.wt-deal-sec-client { color: #14543a; }

/* Grid */
.wt-deal-grid { display: grid; gap: 14px; }
.wt-deal-grid-1 { grid-template-columns: 1fr; }
.wt-deal-grid-2 { grid-template-columns: 1fr 1fr; }
.wt-deal-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.wt-deal-fld { display: flex; flex-direction: column; gap: 5px; }
.wt-deal-label { font-size: 12px; font-weight: 600; color: #6b7565; }

/* Inputs */
.wt-deal-input, .wt-deal-select {
  padding: 9px 12px;
  border: 1.5px solid #e8eae6;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #0e1411;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.wt-deal-input:focus, .wt-deal-select:focus {
  border-color: #14543a;
  box-shadow: 0 0 0 3px #e7efe9;
}
.wt-deal-input-bold { font-weight: 600; }
.wt-deal-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7565' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* Address row */
.wt-deal-addr-row { display: flex; gap: 8px; align-items: center; }
.wt-deal-addr-row .wt-deal-input { flex: 1; }
.wt-deal-addr-row .wt-deal-input:disabled { background: #f6f6f3; color: #6b7565; }
.wt-deal-same-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid #c98a16;
  background: #fef3c7;
  color: #c98a16;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.wt-deal-same-btn.off {
  border-color: #e8eae6;
  background: #f6f6f3;
  color: #6b7565;
}

/* Buttons */
.wt-deal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 13px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.wt-deal-btn-blue  { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.wt-deal-btn-blue:hover { background: #1e40af; }
.wt-deal-btn-ghost { background: #fff; color: #0e1411; border-color: #e8eae6; }
.wt-deal-btn-ghost:hover { background: #f6f6f3; }
.wt-deal-btn-create { background: #0e1411; color: #fff; border-color: #0e1411; }
.wt-deal-btn-create:hover { background: #1f2d27; }

/* Footer */
.wt-deal-ft {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid #e8eae6;
  background: #fff; flex-shrink: 0;
}
.wt-deal-ft-hint { font-size: 12px; color: #6b7565; }
.wt-deal-ft-actions { display: flex; gap: 10px; }

@media (max-width: 700px) {
  .wt-deal-grid-3, .wt-deal-grid-2 { grid-template-columns: 1fr; }
  .wt-deal-ft { flex-direction: column; gap: 12px; }
  .wt-deal-ft-hint { text-align: center; }
}
