/* Réutilise les dimensions et couleurs du journal, sans le modifier. */
.search-header { flex:0 0 auto; width:100%; position:sticky; top:0; z-index:5; background:#fff; }
.search-composer { position:relative; align-items:center; gap:10px; width:100%; max-width:675px; margin:0 auto; min-height:0; padding:15px 15px 15px; background:#fff; }
html { height:auto; min-height:100%; overflow-y:scroll; overflow-x:hidden; }
body.search-page { display:block; height:auto; min-height:100vh; overflow:visible; }
.search-page #journal-scroll { display:block; overflow:visible; height:auto; min-height:0; overflow-anchor:none; }
.search-page #journal { padding-top:0; }
.search-own-avatar { position:relative; display:grid; place-items:center; color:#62809b; font-weight:700; text-transform:uppercase; }
.search-own-avatar img { position:absolute; inset:0; }
.search-field { display:flex; align-items:center; position:relative; flex:1; min-width:0; border-radius:22px; background:#f4f4f4; }
.search-composer .direct-chat-input { width:100%; height:44px; min-height:44px; max-height:44px; font-family:inherit; padding-right:48px; background:transparent; }
.search-composer .direct-chat-input::-webkit-search-cancel-button { -webkit-appearance:none; }
.search-submit { position:absolute; right:2px; top:0; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:#515151; cursor:pointer; padding:0; }
.search-submit svg { width:22px; height:22px; }
.search-submit:focus-visible { outline:2px solid #62809b; outline-offset:1px; }
.search-field:focus-within,.search-field .direct-chat-input:focus { outline:none; box-shadow:none; }
.search-field .direct-chat-input:focus { border:0; }
#search-results .journal-message { margin-bottom:15px; }
/* Meme espacement vertical pour les publicites inserees dans les resultats. */
#search-results > .search-ad-slot { margin-bottom:15px; }
#search-results .journal-member { border:0; padding:0; display:grid; place-items:center; color:#62809b; font-size:15px; font-weight:700; }
#search-results button.journal-member { cursor:pointer; }
.search-pseudo { font-size:16px; font-weight:700; color:#62809B; line-height:1.25; margin-bottom:8px; overflow-wrap:anywhere; }
.search-pseudo-link { color:inherit; text-decoration:none; cursor:pointer; }
.search-pseudo-link:focus-visible { outline:2px solid #62809B; outline-offset:2px; }
.search-line { font-size:14px; color:#515151; line-height:1.25; overflow-wrap:anywhere; }
.search-line.criteria,.search-line.family { margin-top:3px; }
.search-mismatch { color:#b22; font-weight:600; }
.search-more { border:0; background:transparent; color:#526f8b; font:inherit; padding:0 2px; text-decoration:underline; cursor:pointer; }
.search-expanded { margin-top:3px; font-size:13px; line-height:1.25; }
.search-pagination { display:flex; flex-wrap:nowrap; gap:4px; align-items:center; justify-content:center; margin:18px 0 7px 48px; width:calc(100% - 48px); max-width:calc(100% - 48px); min-width:0; box-sizing:border-box; white-space:nowrap; overflow-x:auto; scrollbar-width:none; }
.search-pagination a,.search-pagination .current { flex:0 0 auto; min-width:34px; min-height:38px; font-size:14px; display:grid; place-items:center; border-radius:20px; background:#f4f4f4; color:#515151; text-decoration:none; padding:0 7px; }
.search-pagination .current { background:#62809B; color:white; font-weight:700; }
.search-empty,.search-count { text-align:center; color:#777; font-size:13px; }
#search-photo-overlay { position:fixed; inset:0; background:#000; z-index:1000; display:flex; align-items:center; justify-content:center; padding:54px 10px 10px; }
#search-photo-close { position:absolute; top:max(10px,env(safe-area-inset-top)); right:12px; width:44px; height:44px; display:grid; place-items:center; border:0; background:transparent; cursor:pointer; }
#search-photo-close img { width:26px; height:26px; filter:brightness(0) invert(1); }
#search-photo-large { display:block; width:auto; height:auto; max-width:min(640px,100%); max-height:100%; object-fit:contain; }
.search-more:focus-visible,.search-pagination a:focus-visible,#search-photo-close:focus-visible,#search-results button:focus-visible { outline:2px solid #62809B; outline-offset:2px; }

.search-pagination::-webkit-scrollbar { display:none; }
.search-pagination .search-ellipsis { flex:0 0 auto; font-size:14px; min-width:12px; text-align:center; }

#search-results .search-photo-fallback { color:#62809b; font-size:18px; font-weight:700; }
#search-results .journal-member:disabled { cursor:default; }

.search-pseudo-panel { margin-left:48px; }
#search-pseudo-suggestions:not(:empty),#search-pseudo-status { border:1px solid #e2e5e9; border-radius:12px; background:#fff; box-shadow:0 6px 18px #0002; }
#search-pseudo-suggestions { overflow:visible; }
#search-pseudo-suggestions:empty { display:none; }
#search-pseudo-status { padding:12px 14px; font-size:14px; color:#515151; }
#search-pseudo-suggestions[hidden] { display:none; }
#search-pseudo-suggestions button { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:0; background:white; padding:6px 10px; font:inherit; color:#333; cursor:pointer; overflow-wrap:anywhere; }
#search-pseudo-suggestions button:hover,#search-pseudo-suggestions button[aria-selected=true] { background:#eef2f5; }

/* Même diamètre pour la photo de session et les photos des résultats. */
.search-composer .search-own-avatar, #search-results .journal-member { width:38px; height:38px; flex:0 0 38px; border-radius:50%; overflow:hidden; }
.search-composer .search-own-avatar img, #search-results .journal-member img { width:100%; height:100%; border-radius:50%; object-fit:cover; }

.search-suggestion-avatar { width:38px; height:38px; flex:0 0 38px; border-radius:50%; overflow:hidden; background:#e3ebf2; color:#62809b; display:grid; place-items:center; font-weight:700; }
.search-suggestion-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; grid-area:1/1; }
.search-suggestion-avatar span { grid-area:1/1; }
.search-pseudo-panel:has(#search-pseudo-suggestions[hidden]):has(#search-pseudo-status[hidden]) { display:none; }

#search-results .search-card-contact {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;}
.search-card-content {min-width:0;}
.search-contact {display:inline-flex;align-items:center;justify-content:center;justify-self:end;align-self:center;width:82px;height:28px;min-width:82px;min-height:28px;padding:4px 0;margin:0;border-radius:6px;background:#62809B;color:#fff;text-decoration:none;font-size:13px;line-height:20px;white-space:nowrap;box-sizing:border-box;}
.search-contact:focus-visible {outline:2px solid #62809B;outline-offset:3px;}
.message-page .message-send {flex:none;min-height:44px;border:0;border-radius:22px;padding:0 15px;background:#62809B;color:white;font:inherit;cursor:pointer;}
.message-page .direct-chat-input {resize:none;height:44px;}
.message-page .message-status {margin:0 15px 0 63px;font-size:14px;color:#515151;}

.search-contact.search-contact-blocked {background:#b22;color:#fff;}
.search-contact-blocked svg {display:block;width:20px;height:20px;}
.search-contact-blocked:focus-visible {outline-color:#b22;}
.message-page .message-blocked {flex:1;min-width:0;font-size:14px;line-height:1.4;color:#b22;background:#f5f5f5;border-radius:0 10px 10px 10px;padding:12px;margin:0;}


.search-composer .search-account-link { cursor:pointer; text-decoration:none; }
.search-composer .search-account-link:focus-visible { outline:2px solid #62809B; outline-offset:3px; }

#search-photo-prev,#search-photo-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:#0008;display:grid;place-items:center;cursor:pointer}#search-photo-prev{left:0}#search-photo-next{right:0}#search-photo-prev img,#search-photo-next img{width:28px;height:28px;filter:brightness(0) invert(1)}#search-photo-prev[hidden],#search-photo-next[hidden]{display:none!important}#search-photo-large{max-width:min(640px,calc(100% - 64px))}

.search-suggestion-avatar img.search-suggestion-icon { width:24px; height:24px; object-fit:contain; border-radius:0; }

.public-footer{margin:24px 0 24px 48px;text-align:center;color:#777;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.public-footer a{color:#62809b}.public-search .journal-avatar{flex:0 0 38px}.public-search .search-composer .journal-avatar:focus-visible{outline:2px solid #62809b;outline-offset:2px}

/* V162 : masquer ensemble annonces, pagination et pied de page. */
#search-result-area[hidden], #search-result-area .search-pagination[hidden], #search-result-area .public-footer[hidden] { display:none !important; }

/* Navigation compacte sous l’image, de la même largeur que la photo. */
#search-photo-overlay[hidden],#search-photo-actions[hidden],#search-photo-actions button[hidden]{display:none!important}
.search-photo-frame{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:max-content;max-width:calc(100vw - 64px);min-width:0}
#search-photo-large{max-width:min(640px,calc(100vw - 64px));max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);align-self:center}
.search-photo-actions{display:flex;gap:5px;width:0;min-width:100%}
.search-photo-actions button{flex:1 1 0;min-width:0;border:0;border-radius:5px;background:#e8e8e8;color:#515151;font:inherit;font-size:13px;line-height:18px;padding:4px 2px;cursor:pointer;overflow-wrap:anywhere}
.search-photo-actions button:focus-visible{outline:2px solid #62809b;outline-offset:2px}

/* V187 : suggestions fondues dans le fond blanc sur mobile uniquement. */
@media (max-width: 767px) {
    .search-pseudo-panel { background: #fff; }
    #search-pseudo-suggestions:not(:empty),
    #search-pseudo-status {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }
}
