/*
 * Pages publiques de la rencontre : blocs propres au lot 7 (chiffres
 * agrégés, profils mis en avant, guides). Complète la section 16 de v3.css
 * (palette « prune et rose ») sans la modifier ; chargée par
 * rencontreHeadExtra() (www-include/v3/lib_rencontre.php) sur les seules
 * pages /rencontre/…. Préfixe « r- ». CSS natif, sans imbrication.
 */

/* Héros : chiffres en direct au-dessus des boutons */
.r-hero-stats { margin-inline: 4px; }
.r-hero-links { margin: var(--v3-s2) 0 0; font-size: var(--v3-fs-sm); }

/* Chiffres agrégés d'une zone */
.r-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--v3-s2);
  align-items: start;
}
@media (min-width: 768px) { .r-stats-grid { gap: var(--v3-s3); } }
.r-stats-card h3 { margin-bottom: var(--v3-s2); font-size: var(--v3-fs-md); }
.r-bars { margin: 0; padding: 0; list-style: none; }
.r-bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label n" "bar bar";
  gap: 4px 12px;
  align-items: baseline;
  padding: 6px 0;
  font-size: var(--v3-fs-sm);
}
.r-bar-label { grid-area: label; overflow: hidden; color: var(--a-text); text-overflow: ellipsis; white-space: nowrap; }
.r-bar-track { grid-area: bar; height: 6px; border-radius: var(--v3-r-pill); background: var(--a-secondary); }
.r-bar { display: block; height: 100%; border-radius: inherit; background: var(--a-accent); opacity: 0.85; }
.r-bar-n { grid-area: n; color: var(--a-text-strong); font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* Profils mis en avant (rempli par /assets/js/rencontre-vitrine.js) */
.r-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .r-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .r-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--v3-s2); } }
.r-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--a-border);
  border-radius: var(--v3-r-card);
  background: var(--a-panel);
  color: var(--a-text);
  text-decoration: none;
  transition: border-color 120ms, background-color 120ms;
}
.r-card-link:hover { border-color: var(--a-tertiary); background: var(--v3-r-hover); color: var(--a-text); }
.r-card-link:focus-visible { outline: 3px solid var(--a-accent); outline-offset: 2px; }
.r-card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--a-secondary);
  color: var(--a-accent);
  font-size: 2.5rem;
  font-weight: 700;
}
.r-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-card-photo.is-empty { background: linear-gradient(160deg, var(--r-surelevee), var(--r-haute)); }
.r-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.r-card-name { overflow: hidden; color: var(--a-text-strong); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.r-card-age { font-weight: 400; }
.r-card-city { color: var(--a-text-muted); font-size: var(--v3-fs-sm); }
.r-card-tagline {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--a-text);
  font-size: var(--v3-fs-sm);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.r-card-hint { margin-top: auto; padding-top: 8px; color: var(--a-accent); font-size: var(--v3-fs-xs); font-weight: 700; }
.r-vitrine-actions { margin-top: var(--v3-s3); }
.r-vitrine-note { margin: 0; font-size: var(--v3-fs-sm); }

/* Guides */
.r-guide-meta { margin: 0 0 var(--v3-s2); color: var(--a-text-muted); font-size: var(--v3-fs-sm); }
.r-guide .v3-prose h2 { margin-top: var(--v3-s5); }
.r-guide .v3-prose h2:first-child { margin-top: 0; }
.r-callout {
  margin: var(--v3-s3) 0;
  padding: var(--v3-s2) var(--v3-s3);
  border: 1px solid var(--v3-r-cta-border);
  border-radius: var(--v3-r-card);
  background: var(--a-accent-soft);
}
.r-callout > :last-child { margin-bottom: 0; }
.r-steps { counter-reset: r-step; padding-left: 0; list-style: none; }
.r-steps > li { position: relative; margin-bottom: var(--v3-s2); padding-left: 44px; }
.r-steps > li::before {
  counter-increment: r-step;
  content: counter(r-step);
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--a-accent-soft);
  color: var(--a-accent);
  font-weight: 700;
}
.r-guide-cards { margin-top: var(--v3-s2); }

/* Pages d'explication (/rencontre/comment-ca-marche, /rencontre/application) */
.r-info-liste { margin: 0; padding-left: 1.1em; }
.r-info-liste li { margin-bottom: 6px; }
.r-info-liste li:last-child { margin-bottom: 0; }
.r-info-suite { margin-top: var(--v3-s3); }
.r-table-wrap { margin: var(--v3-s3) 0; overflow-x: auto; }
.r-table { width: 100%; border-collapse: collapse; font-size: var(--v3-fs-sm); }
.r-table th,
.r-table td { padding: 10px 12px; border-bottom: 1px solid var(--a-border); text-align: left; vertical-align: top; }
.r-table thead th { color: var(--a-text-strong); font-weight: 700; border-bottom-color: var(--a-tertiary); }
.r-table tbody th { color: var(--a-text); font-weight: 400; }
.r-table td { color: var(--a-text-strong); }
@media (max-width: 480px) {
  .r-table th,
  .r-table td { padding: 8px 6px; }
}
/* Galerie de captures de l'application (/rencontre/application) : cinq
   colonnes sur ordinateur, défilement horizontal sur téléphone. */
.r-captures {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: var(--v3-s2);
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.r-captures:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 4px; }
.r-captures li { scroll-snap-align: start; }
.r-captures figure { margin: 0; }
.r-captures img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--a-border);
  border-radius: var(--v3-r-card);
  background: var(--a-panel);
}
.r-captures figcaption { margin-top: 8px; font-size: var(--v3-fs-sm); color: var(--a-text); }
.r-captures-note { margin-top: var(--v3-s2); font-size: var(--v3-fs-sm); }
