/* ---------- F14 : Looking for mate ---------- */
.champs-f14 { min-width: 0; padding: 12px; border: 1px solid var(--trait); }
.champs-f14 legend { padding: 0 6px; color: var(--gris); }
.defile-dispo { overflow-x: auto; }
.grille-dispo { width: 100%; min-width: 420px; border-collapse: collapse; }
.grille-dispo th, .grille-dispo td { padding: 6px; text-align: center; font-weight: 600; }
.grille-dispo tbody th { text-align: left; white-space: nowrap; }
.grille-dispo th small { display: block; color: var(--gris); font-weight: 400; }
.grille-dispo input { width: 20px; height: 20px; accent-color: var(--rouge); }
.cases-f14 { display: flex; flex-wrap: wrap; gap: 12px; }

.compat-carte { padding: 8px 10px; background: var(--sol); border-left: 3px solid var(--ok); }
.compat-carte b { color: var(--ok); }

.liste-compat { display: grid; gap: 8px; }
.ligne-compat { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; background: var(--plaque); color: var(--texte); border: 1px solid var(--trait); font: inherit; cursor: pointer; }
.ligne-compat:hover, .ligne-compat:focus-visible { border-color: var(--rouge-vif); }
.ligne-compat.moi { border-left: 3px solid var(--rouge); }
.score-compat { white-space: nowrap; font-size: 22px; font-weight: 700; color: var(--ok); }
.nom-compat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.nom-compat small, .points-compat { color: var(--gris); }

.dialogue-trouve { width: min(420px, calc(100vw - 32px)); padding: 0; background: var(--plaque); color: var(--texte); border: 1px solid var(--trait); }
.dialogue-trouve::backdrop { background: rgba(5, 3, 4, .8); }
.dialogue-trouve input { width: 100%; padding: 8px; background: var(--sol); color: var(--texte); border: 1px solid var(--trait); font: inherit; }

@media (max-width: 640px) {
  .ligne-compat { grid-template-columns: 72px minmax(0, 1fr); }
  .points-compat { grid-column: 1 / -1; }
}

/* Téléphone : le tableau des disponibilités tient en entier dans la carte, sans défilement caché sur le côté. */
@media (max-width: 520px) {
  .grille-dispo { min-width: 0; table-layout: fixed; }
  .grille-dispo th, .grille-dispo td { padding: 4px 1px; font-size: 11px; }
  .grille-dispo thead th:first-child, .grille-dispo tbody th { width: 64px; }
  .grille-dispo tbody th { white-space: normal; font-size: 11px; line-height: 1.15; }
  .grille-dispo th small { font-size: 10px; }
  .grille-dispo input { width: 18px; height: 18px; }
}
