/* Match page — distance slider */
.wg-match-distance {
  background: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.wg-match-distance__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.wg-match-distance__value {
  color: var(--primary-purple);
  font-weight: 800;
}

.wg-match-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 1.25rem 0 0.75rem;
  color: var(--text-dark);
}

/* Confirmed match card override */
.match-card.is-confirmed {
  background: rgba(59, 232, 176, 0.10);
  border: 1px solid rgba(59, 232, 176, 0.35);
}
.match-card__confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(59, 232, 176, 0.25);
  color: #0e7c5b;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.match-card__pay {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}
.match-card__pay small {
  font-size: 12px;
  color: var(--text-grey);
  font-weight: 500;
  margin-left: 0.15rem;
}

/* Conversations mini-list on /match */
.wg-match-convs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wg-match-convs__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.wg-match-convs__item:hover { transform: translateY(-1px); }
.wg-match-convs__body { flex: 1; min-width: 0; }
.wg-match-convs__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wg-match-convs__preview {
  font-size: 0.78rem;
  color: var(--text-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-match-convs__time {
  font-size: 12px;
  color: var(--text-grey);
  flex-shrink: 0;
}
.wg-match-convs__reply {
  background: #ff8a3d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

/* ─── Match V2 ────────────────────────────────────────────── */
.wg-mv2-slider {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.wg-mv2-slider__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-grey);
  font-weight: 600;
}
.wg-mv2-slider__value {
  color: var(--primary-purple);
  font-weight: 700;
}
.wg-mv2-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Le wrapper global espace ses sections de 2rem : /match gère ses rythmes localement. */
.match-page-content {
  gap: 0;
}
.match-page-content > .page-header-row {
  margin-bottom: 0;
}
.match-page-content > .page-header-row + .wg-mv2-section-title {
  margin-top: 0.75rem;
}
.wg-mv2-section-title__count {
  background: var(--primary-purple);
  color: white;
  font-size: 12px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.wg-mv2-badge-orange {
  background: var(--opp-tint);
  color: var(--opp);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.wg-mv2-card {
  background: linear-gradient(160deg, var(--money-tint) 0%, var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--money) 35%, transparent);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.wg-mv2-card:hover, .wg-mv2-card:focus-visible {
  border-color: color-mix(in srgb, var(--money) 55%, transparent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  outline: none;
}
.wg-mv2-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.wg-mv2-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  align-self: center;
}
.wg-mv2-card__title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wg-mv2-card__company {
  font-size: 0.85rem;
  color: var(--text-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-mv2-card__pay {
  font-weight: 800;
  color: var(--money-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.1rem; /* aligné sur la 1re ligne du titre */
}
.wg-mv2-card__actions {
  display: flex;
  gap: 0.5rem;
}
.wg-mv2-conv {
  background: var(--surface);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 0.5rem;
}
.wg-mv2-conv:hover { background: var(--bg-body); }
.wg-mv2-conv > *:first-child,
.wg-mv2-conv .wg-mv2-badge-orange { flex-shrink: 0; }
.wg-mv2-conv__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wg-mv2-conv__name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-mv2-conv__msg {
  font-size: 0.8rem;
  color: var(--text-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stepper (définition unique — fusion des deux blocs historiques) */
.wg-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  list-style: none;
  margin: 0.75rem 0 0;
  min-width: 0;
}
.wg-stepper__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  position: relative;
}
.wg-stepper__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wg-stepper__label {
  font-size: 12px;
  color: var(--text-grey);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wg-stepper__bar {
  flex: 1;
  height: 2px;
  background: var(--surface-3);
  margin: 0 0.3rem;
}
.wg-stepper__item.is-done .wg-stepper__dot { background: var(--money); color: #fff; }
.wg-stepper__item.is-current .wg-stepper__dot {
  background: var(--primary-purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(106, 62, 235, 0.15);
}
.wg-stepper__item.is-current .wg-stepper__label { color: var(--primary-purple); font-weight: 700; }
.wg-stepper__item.is-done .wg-stepper__label { color: var(--money-ink); }
.wg-stepper__item.is-done .wg-stepper__bar,
.wg-stepper__item.is-current .wg-stepper__bar { background: var(--money); }

/* Chat quick replies */
.wg-chat-status {
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-c);
}
.wg-chat-status__label {
  font-size: 12px;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.wg-chat-quick {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  overflow-x: auto;
  background: var(--surface);
  border-top: 1px solid var(--border-c);
  scrollbar-width: none;
}
.wg-chat-quick::-webkit-scrollbar { display: none; }
.wg-chat-quick__chip {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-purple);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.wg-chat-quick__chip:hover { background: color-mix(in srgb, var(--primary) 25%, transparent); }
