/* ─── Liste résultats ─── */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── La carte ─── */
.result-card {
  background: #0f1117;
  border: 1px solid #1d212d;
  border-radius: 12px;
  overflow: hidden;
  animation: cardIn 0.18s ease both;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.result-card:hover {
  border-color: rgba(114,137,218,0.4);
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Résultat possible — bordure ambre ─── */
.result-card--possible {
  border-color: rgba(251,146,60,0.22);
}
.result-card--possible:hover {
  border-color: rgba(251,146,60,0.45);
}

/* ─── Bannière "Résultat possible" en haut de carte ─── */
.possible-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(251,146,60,0.07);
  border-bottom: 1px solid rgba(251,146,60,0.16);
  font-size: 0.71rem;
  color: #fb923c;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.possible-banner svg { flex-shrink: 0; color: #fb923c; }
.possible-banner strong { color: #fdba74; font-weight: 700; }

/* ─── Séparateur "Résultats possibles" dans la liste ─── */
.possible-results-note {
  padding: 7px 14px;
  background: rgba(251,146,60,0.06);
  border: 1px dashed rgba(251,146,60,0.22);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fb923c;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 4px 0;
}

/* ─── EN-TÊTE ─── */
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #10131b;
  border-bottom: 1px solid #1d212d;
  gap: 12px;
}
.rc-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Numéro carré */
.rc-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1a1e28;
  border: 1px solid #252a37;
  display: grid;
  place-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: #8892b0;
  flex-shrink: 0;
}

.rc-identity { min-width: 0; }

.rc-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f0f3ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.65rem;
  color: #5a6280;
}
.rc-meta-dot { opacity: 0.35; }
.rc-score-badge { display: inline-flex; align-items: center; gap: 3px; }
.rc-score-badge strong { color: #8892b0; font-weight: 700; }

/* Boutons header droite */
.rc-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #252a37;
  background: #1a1e28;
  color: #6b7390;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 120ms ease;
  white-space: nowrap;
}
.rc-btn:hover {
  color: #c8d0f0;
  border-color: #363d55;
  background: #1e2333;
}
.rc-btn.copied {
  color: #34d399;
  border-color: rgba(52,211,153,0.3);
}
.rc-btn-json {
  color: #7289ff;
  border-color: rgba(114,137,255,0.22);
}
.rc-btn-json:hover {
  background: rgba(114,137,255,0.08);
  border-color: rgba(114,137,255,0.45);
  color: #a0b0ff;
}

/* ─── LABEL DE SECTION ─── */
.rc-section-label {
  padding: 5px 16px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a5270;
  background: #0c0f18;
  border-bottom: 1px solid #1a1e2a;
  border-top: 1px solid #1a1e2a;
}

/* ─── GRILLE DE CHAMPS ─── */
.rc-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  background: #0f1117;
}

.rc-field-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-right: 1px solid #181c27;
  border-bottom: 1px solid #181c27;
  min-width: 0;
}

/* Ligne icône + label clé */
.rc-field-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-field-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rc-field-icon--person  { background: rgba(88,101,242,0.12);  color: #7289da; }
.rc-field-icon--phone   { background: rgba(52,211,153,0.12);  color: #34d399; }
.rc-field-icon--mail    { background: rgba(59,130,246,0.12);  color: #60a5fa; }
.rc-field-icon--pin     { background: rgba(239,68,68,0.12);   color: #f87171; }
.rc-field-icon--zip     { background: rgba(239,68,68,0.12);   color: #f87171; }
.rc-field-icon--city    { background: rgba(251,146,60,0.12);  color: #fb923c; }
.rc-field-icon--cal     { background: rgba(167,139,250,0.12); color: #a78bfa; }
.rc-field-icon--gender  { background: rgba(88,101,242,0.12);  color: #7289da; }
.rc-field-icon--home    { background: rgba(251,146,60,0.12);  color: #fb923c; }
.rc-field-icon--hash    { background: rgba(156,163,175,0.08); color: #6b7280; }
.rc-field-icon--parent  { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* Clé (label court) */
.rc-field-key {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5270;
}

/* Valeur */
.rc-field-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #dde3f8;
  word-break: break-word;
  line-height: 1.35;
}
.rc-field-val--mono {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.77rem;
  font-weight: 500;
}

/* ─── SECTION EXTRA ─── */
.rc-extra {
  border-top: 1px solid #181c27;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  background: #0f1117;
}
.rc-extra-item { font-size: 0.7rem; color: #4a5270; }
.rc-extra-item strong { color: #7a82a0; font-weight: 700; margin-right: 4px; }

/* ─── BLOC PARENTS ─── */
.rc-parent-block {
  border-top: 1px solid #1a1e2a;
  background: #0f1117;
}

.rc-parent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  background: #0f1117;
  transition: background 100ms;
}
.rc-parent-header:hover { background: rgba(255,255,255,0.018); }

.rc-parent-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-parent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  display: grid;
  place-items: center;
  color: #a78bfa;
  flex-shrink: 0;
}

.rc-parent-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #4a5270;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.rc-parent-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #dde3f8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rc-parent-toggle {
  font-size: 0.65rem;
  color: #6b7390;
  background: #1a1e28;
  border: 1px solid #252a37;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 100ms;
  white-space: nowrap;
}
.rc-parent-toggle:hover {
  background: #1e2333;
  color: #c8d0f0;
  border-color: #363d55;
}

.rc-parent-body {
  border-top: 1px solid #1a1e2a;
}
.rc-parent-body.hidden { display: none; }

/* ─── Valeurs multiples dans un champ (tél / mobile / email fusionnés) ─── */
.rc-field-vals {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rc-field-val-part {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8d0f0;
  line-height: 1.4;
  word-break: break-all;
}
.rc-field-val-part.rc-field-val--mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

/* ─── Skeleton ─── */
.skeleton-card {
  background: #0f1117;
  border: 1px solid #1d212d;
  border-radius: 12px;
  height: 130px;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.022), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .rc-fields-grid { grid-template-columns: 1fr 1fr; }
  .rc-btn span { display: none; }
}
@media (max-width: 420px) {
  .rc-fields-grid { grid-template-columns: 1fr; }
}
