/* find-partner.css
   Styles uniformes pour la page "Trouver un partenaire" (find-partner).
   Palette et rythme alignés sur l'identité Umediad (bleu #1668E3).
   Toutes les classes sont préfixées .fp- pour éviter les collisions. */

.fp-wrap {
  --fp-blue: #1668E3;
  --fp-blue-dark: #0f52b5;
  --fp-ink: #111827;
  --fp-muted: #6b7280;
  --fp-line: #e5e7eb;
  --fp-bg: #ffffff;
  --fp-bg-soft: #f7f9fc;
  --fp-radius: 12px;
  --fp-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);

  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 72px;
  color: var(--fp-ink);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.fp-wrap *, .fp-wrap *::before, .fp-wrap *::after { box-sizing: border-box; }

/* ---------- En-tête ---------- */
.fp-header { margin-bottom: 20px; }
.fp-title {
  color: var(--fp-blue);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.fp-subtitle { color: var(--fp-muted); margin: 0; }

/* ---------- Carte de recherche ---------- */
.fp-card {
  background: var(--fp-bg);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  padding: 20px;
  margin-bottom: 28px;
}

.fp-section { margin-bottom: 20px; }
.fp-section:last-child { margin-bottom: 0; }
.fp-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fp-muted);
  margin: 0 0 10px;
}

/* ---------- Grille de champs ---------- */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fp-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .fp-grid, .fp-grid-2 { grid-template-columns: 1fr; }
}

.fp-field { display: flex; flex-direction: column; gap: 6px; }
.fp-label { font-size: .85rem; font-weight: 600; color: var(--fp-ink); }

.fp-input, .fp-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: .95rem;
  color: var(--fp-ink);
  background: var(--fp-bg);
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fp-input:focus, .fp-select:focus {
  border-color: var(--fp-blue);
  box-shadow: 0 0 0 3px rgba(22,104,227,.15);
}
.fp-input::placeholder { color: #9aa3af; }

.fp-select[multiple] {
  height: auto;
  min-height: 132px;
  padding: 8px;
}
.fp-hint { font-size: .78rem; color: var(--fp-muted); margin: 2px 0 0; }

/* ---------- Familles de médias (puces sélectionnables) ---------- */
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: .85rem;
  line-height: 1.2;
  color: var(--fp-ink);
  background: var(--fp-bg-soft);
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .12s;
}
.fp-chip:hover { border-color: #c9d6ee; }
.fp-chip.is-selected {
  background: rgba(22,104,227,.10);
  border-color: var(--fp-blue);
  color: var(--fp-blue-dark);
  font-weight: 600;
}
.fp-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.fp-chip .fp-chip-check { font-size: .9rem; }

/* ---------- Actions ---------- */
.fp-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--fp-line);
}
.fp-btn {
  height: 46px;
  padding: 0 22px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.fp-btn-primary { background: var(--fp-blue); color: #fff; }
.fp-btn-primary:hover { background: var(--fp-blue-dark); }
.fp-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.fp-btn-ghost { background: transparent; color: var(--fp-muted); border-color: var(--fp-line); }
.fp-btn-ghost:hover { color: var(--fp-ink); border-color: #c9d6ee; }
.fp-count { margin-left: auto; color: var(--fp-muted); font-size: .9rem; }

/* ---------- Résultats ---------- */
.fp-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.fp-result {
  display: flex;
  flex-direction: column;
  background: var(--fp-bg);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .12s, box-shadow .12s;
}
.fp-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16,24,40,.12);
}
.fp-result-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--fp-bg-soft);
}
.fp-result-body { padding: 14px 16px 16px; }
.fp-result-name { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.fp-result-loc { font-size: .85rem; color: var(--fp-muted); margin: 0 0 6px; }
.fp-result-domains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fp-result-domain {
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22,104,227,.08);
  color: var(--fp-blue-dark);
}

/* ---------- États ---------- */
.fp-state { text-align: center; padding: 48px 20px; color: var(--fp-muted); }
.fp-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.fp-spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--fp-line);
  border-top-color: var(--fp-blue);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: fp-spin .8s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* ---------- Mode sombre ---------- */
@media (prefers-color-scheme: dark) {
  .fp-wrap:not([data-theme="light"]) {
    --fp-ink: #e5e7eb;
    --fp-muted: #9aa3af;
    --fp-line: #2a3342;
    --fp-bg: #0f1623;
    --fp-bg-soft: #131c2b;
    --fp-shadow: 0 1px 2px rgba(0,0,0,.4);
  }
  .fp-wrap:not([data-theme="light"]) .fp-error { background: #2a1414; border-color: #5b2020; color: #fca5a5; }
}
