/* Onglet « Rencontres » du site (js/rencontres.js) : mobile d'abord, couleurs et arrondis repris du thème */
.renc-app { max-width: 880px; margin: 0 auto; }
.renc-app :focus-visible, .renc-dialog :focus-visible { outline: 3px solid var(--accent, #c9973b); outline-offset: 2px; }
.renc-lead { max-width: 60ch; margin: 0 auto 1rem; }
.renc-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 12px 0; padding-bottom: 4px; scrollbar-width: thin; }
.renc-tab { flex: 0 0 auto; border: 0; background: transparent; padding: 10px 14px; border-radius: var(--radius-tab, var(--radius)); font: inherit; cursor: pointer; color: var(--ink); min-height: 44px; }
.renc-tab.active { background: var(--magenta); color: #fff; }
.renc-badge { display: inline-block; min-width: 1.3em; padding: 0 6px; margin-left: 6px; border-radius: var(--radius); background: #b42318; color: #fff; font-size: .75rem; line-height: 1.6; text-align: center; }
.renc-flash { margin: 8px 0; padding: 10px 12px; border-radius: var(--radius); }
.renc-flash[hidden] { display: none; }
.renc-ok { background: #e7f4ea; color: #1b5e2b; }
.renc-err { color: #9a1b12; }
.renc-flash.renc-err { background: #fdeceb; }
.renc-box { background: #fff; border: 1px solid #e5d6df; border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.renc-box.renc-err { background: #fdeceb; border-color: #f2b8b5; }
.renc-hint, .renc-meta { font-size: .85rem; color: #5d4b55; margin: .3rem 0; }
.renc-todo { padding: 8px 10px; border: 1px dashed #b88; border-radius: var(--radius); background: #fff8e6; }
.renc-points { padding-left: 1.2rem; }
.renc-points li { margin: .3rem 0; }
.renc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.renc-actions.center { justify-content: center; }
.renc-small { padding: 8px 14px; font-size: .9rem; cursor: pointer; min-height: 40px; }
.renc-danger { background: #b42318; border-color: #b42318; color: #fff; }
.renc-form, .renc-filters { display: grid; gap: 12px; }
.renc-field { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; }
.renc-field label, .renc-field legend { font-weight: 600; }
.renc-field input[type=text], .renc-field input[type=date], .renc-field input[type=number], .renc-field input[type=password], .renc-field select, .renc-field textarea, .renc-send textarea, .renc-dialog select, .renc-dialog textarea {
  width: 100%; padding: 10px; border: 1px solid #b9a5b0; border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink); }
.renc-check { display: flex; align-items: center; gap: 8px; margin: 6px 0; min-height: 32px; }
.renc-check input { width: 20px; height: 20px; }
.renc-filters { grid-template-columns: repeat(2, 1fr); align-items: end; margin-bottom: 14px; }
.renc-filters .btn { grid-column: 1 / -1; }
.renc-card { background: #fff; border: 1px solid #e5d6df; border-radius: var(--radius); overflow: hidden; margin: 14px 0; }
.renc-photo { display: block; width: 100%; max-height: 380px; aspect-ratio: 4 / 3; object-fit: cover; background: #f3ecf0; }
.renc-photo-vide, .renc-avatar.renc-photo-vide { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; background: var(--magenta); }
.renc-card-body { padding: 12px 14px 14px; }
.renc-card-body h3 { margin: 0; }
.renc-bio { white-space: pre-line; overflow-wrap: anywhere; }
.renc-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.renc-tags li { padding: 2px 10px; border-radius: var(--radius); background: var(--soft, #f4c6dd); color: var(--ink); font-size: .85rem; }
.renc-matchs, .renc-list { list-style: none; padding: 0; margin: 0; }
.renc-match { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid #e5d6df; background: #fff; border-radius: var(--radius); padding: 10px; margin: 6px 0; cursor: pointer; font: inherit; color: var(--ink); min-height: 56px; }
.renc-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; font-size: 1.4rem !important; max-height: none; aspect-ratio: 1; }
.renc-match-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.renc-match-txt .renc-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renc-convhead { display: flex; align-items: center; gap: 10px; }
.renc-convhead h3 { margin: 0; }
.renc-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; min-height: 180px; overflow-y: auto; padding: 10px; background: #faf5f8; border-radius: var(--radius); }
.renc-msg { max-width: 85%; padding: 8px 12px; border-radius: var(--radius); overflow-wrap: anywhere; }
.renc-msg p { margin: 0; white-space: pre-line; }
.renc-msg small { display: block; font-size: .72rem; opacity: .75; margin-top: 2px; }
.renc-msg.mine { align-self: flex-end; background: var(--magenta); color: #fff; }
.renc-msg.theirs { align-self: flex-start; background: #fff; border: 1px solid #e5d6df; }
.renc-link { border: 0; background: transparent; color: inherit; text-decoration: underline; font-size: .75rem; cursor: pointer; padding: 4px 0; min-height: 28px; }
.renc-send { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.renc-send textarea { flex: 1; }
.renc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.renc-thumb { margin: 0; width: 120px; display: flex; flex-direction: column; gap: 4px; }
.renc-thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); }
.renc-dialog { border: 1px solid #b9a5b0; border-radius: var(--radius); padding: 16px; width: min(92vw, 460px); }
.renc-dialog::backdrop { background: rgba(42, 26, 36, .5); }
@media (min-width: 640px) {
  .renc-filters { grid-template-columns: repeat(4, 1fr) auto; }
  .renc-filters .btn { grid-column: auto; }
  .renc-card { display: grid; grid-template-columns: 280px 1fr; }
  .renc-photo { height: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .renc-app * { transition: none !important; animation: none !important; } }
.renc-legal details { border-top: 1px solid #e5d6df; padding: 8px 0; }
.renc-legal summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.renc-legal details p { margin: 6px 0 4px; overflow-wrap: anywhere; }
