/* DAVBOT — style Facebook : profil, amis, conversations, discussion (clair + sombre) */

/* ============ PROFIL ============ */
.profile-hero{padding:0 0 16px!important;text-align:left!important;border-radius:14px!important;overflow:hidden}
.fb-cover{position:relative;height:170px;background:linear-gradient(135deg,#2d88ff,#2d88ff 60%,#5aa9ff) center/cover no-repeat;overflow:hidden}
.fb-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 55%,rgba(0,0,0,.28))}
.fb-cover.has-img::before{content:"";position:absolute;inset:-20px;background:var(--cover-img) center/cover;filter:blur(18px) saturate(1.2);transform:scale(1.15)}
.fb-cover.has-cover::before{content:none;display:none}
.profile-hero .profile-avatar-wrap{width:128px!important;height:128px!important;margin:-64px 0 6px 16px!important;z-index:2}
.profile-hero .profile-avatar{border:4px solid var(--fb-surface,#121212)!important;box-shadow:0 2px 8px rgba(0,0,0,.3)}
html.dav-light .profile-hero .profile-avatar{border-color:#fff!important}
.profile-hero .profile-name,.profile-hero .profile-phone,.profile-hero .profile-bio,.profile-hero .profile-since,.profile-hero .dv-badges{margin-left:16px!important;margin-right:16px!important;text-align:left!important}
.profile-hero .dv-badges{justify-content:flex-start!important}
.profile-hero .profile-name{font-size:26px!important;line-height:1.15}
.profile-hero .profile-phone{font-size:13px;opacity:.75;margin-top:2px!important}
.fb-statline{margin:8px 16px 0;font-size:14px;color:var(--fb-muted,#a0a3a8)}
.fb-statline b{color:var(--fb-text,#fff);font-weight:800}
.profile-social-actions{padding:0 16px;display:flex!important;flex-wrap:wrap;gap:8px;margin-top:12px}
.profile-stats{display:none!important}
.fb-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.fb-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 12px;border-radius:8px;border:0;font:700 14px/1.1 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;background:#2e2e2e;color:#e4e6eb}
.fb-btn.primary{background:#2d88ff;color:#fff;grid-column:1/-1}
html.dav-light .fb-btn{background:#e4e6eb;color:#262626}
html.dav-light .fb-btn.primary{background:#2d88ff;color:#fff}
.profile-social-actions .profile-social-btn{flex:1 1 calc(50% - 8px);min-height:40px;border-radius:8px!important;font-size:14px!important;background:#2e2e2e!important;color:#e4e6eb!important;border:0!important}
html.dav-light .profile-social-actions .profile-social-btn{background:#e4e6eb!important;color:#262626!important}
.profile-social-actions .profile-news-link{flex:0 0 46px!important}
#profileLinkCard{width:100%;max-width:none!important;margin:4px 0!important;border-radius:8px!important}
html.dav-light #profileLinkCard{background:#eceff3!important;border-color:#dde2ea!important;color:#181818}
.profile-hero{--fb-surface:#121212;--fb-text:#fff;--fb-muted:#a0a3a8}
html.dav-light .profile-hero{--fb-surface:#f7f8fa;--fb-text:#181818;--fb-muted:#65676b}
.page-head{display:none!important}
.fb-tabs{display:flex;gap:4px;margin:14px 0 0;padding:0 8px;border-top:1px solid var(--fb-line,rgba(255,255,255,.1))}
.fb-tabs a{flex:1;text-align:center;padding:12px 4px;font-weight:700;font-size:14px;color:var(--fb-muted,#a0a3a8);text-decoration:none;border-bottom:3px solid transparent}
.fb-tabs a.on{color:#2d88ff;border-bottom-color:#2d88ff}
html.dav-light .fb-tabs{--fb-line:#dde2ea}

/* ============ AMIS / CONVERSATIONS (listes façon Facebook) ============ */
.users{display:flex;flex-direction:column;gap:2px}
.user-card{display:flex!important;align-items:center;gap:12px;padding:10px 8px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;margin:0!important}
.user-card:active{background:rgba(127,127,127,.14)!important}
.user-card .avatar,.user-card img.avatar,.user-card .av img{width:58px!important;height:58px!important;border-radius:50%!important;object-fit:cover;flex:0 0 58px}
.user-card .av{position:relative;display:inline-flex;flex:0 0 58px}
.user-card .info{flex:1;min-width:0}
.user-card .info a{font-weight:700;font-size:15px;color:inherit!important;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-card .btn,.user-card button{border:0!important;border-radius:8px!important;padding:9px 14px!important;font-weight:700!important;font-size:13px!important;cursor:pointer;background:#2d88ff!important;color:#fff!important}
.user-card button[data-decline],.user-card button[data-cancel],.user-card button[style*="background:#"]{background:#383838!important;color:#e4e6eb!important}
html.dav-light .user-card button[data-decline],html.dav-light .user-card button[data-cancel]{background:#e4e6eb!important;color:#262626!important}
.user-card .dot{position:absolute;right:2px;bottom:2px;width:14px;height:14px;border-radius:50%;background:#9a9da3;border:2px solid #121212}
.user-card .dot.on{background:#31a24c}
html.dav-light .user-card .dot{border-color:#fff}
.section h2{font-size:19px!important;font-weight:800}
.otile{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;color:inherit;cursor:pointer;width:68px}
.online-row{flex-direction:row!important;overflow-x:auto;gap:8px!important}
.ai-card{display:flex;align-items:center;gap:12px;border-radius:14px!important}

/* ============ DISCUSSION (Messenger) ============ */
.chat{border-radius:0!important}
.chathead{display:flex;align-items:center;gap:10px}
.chathead .hav{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:0 0 42px}
.messages{gap:3px!important;padding:14px 10px!important}
.bubble{border-radius:18px!important;padding:9px 13px!important;max-width:78%!important;font-size:15px;box-shadow:none!important;border:0!important}
.bubble:not(.mine){background:#2e2e2e!important;color:#f0f2f5!important;border-bottom-left-radius:5px!important}
.bubble.mine{background:#2d88ff!important;color:#fff!important;border-bottom-right-radius:5px!important}
.composer{align-items:center;gap:8px!important;padding:10px!important}
.composer input#message{border-radius:999px!important;padding:11px 16px!important;border:0!important;background:#2e2e2e!important;color:#f0f2f5!important}
html.dav-light .composer input#message{background:#eceff3!important;color:#181818!important}
.composer button{border-radius:50%!important;width:40px;height:40px;min-width:40px!important;padding:0!important;background:transparent!important;box-shadow:none!important;color:#2d88ff!important;font-size:18px}
.composer button[type=submit]{background:transparent!important}
.composer .tool{background:transparent!important;border:0!important}
.profile-social-actions{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 16px!important}

/* ============ FACEBOOK — barre du haut, cartes, recherche (Amis & Conversations) ============ */
.social-head{background:linear-gradient(135deg,#2d88ff,#2d88ff)!important;border:0!important;box-shadow:0 2px 10px rgba(45,136,255,.35)!important;color:#fff!important}
.social-head strong,.social-head strong i{color:#fff!important;-webkit-text-fill-color:#fff!important}
.social-head .head-links a{background:rgba(255,255,255,.18)!important;color:#fff!important;border:0!important;border-radius:50%!important;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0!important}
.social-head .head-links a i{color:#fff!important;-webkit-text-fill-color:#fff!important}
.wrap .section{border-radius:12px!important;box-shadow:0 1px 3px rgba(0,0,0,.28)!important;padding:14px 12px!important}
.wrap .section .muted{font-size:13px}
.wrap input#search{width:100%;box-sizing:border-box;border:0!important;border-radius:999px!important;padding:11px 16px 11px 42px!important;background:#2e2e2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0a3a8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center!important;color:#f0f2f5!important;font-size:15px!important;margin:6px 0 10px!important}
html.dav-light .wrap input#search{background-color:#eceff3!important;color:#181818!important}
.wrap .badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e41e3f!important;color:#fff!important;font-size:12px;font-weight:800;vertical-align:middle}
.wrap .badge:empty{display:none}
.user-card{flex-wrap:wrap}
.user-card .avatar,.user-card img.avatar,.user-card .av img{width:60px!important;height:60px!important;flex:0 0 60px!important}
.user-card .av{flex:0 0 60px!important}
.user-card .info{flex:1 1 0;min-width:120px}
.user-card .info .muted{font-size:13px;margin-top:2px}
.user-card>div[style*="justify-content:flex-end"]{flex:1 1 100%;display:flex;gap:8px!important;justify-content:stretch!important;margin-left:72px}
.user-card>div[style*="justify-content:flex-end"] .btn,.user-card>div[style*="justify-content:flex-end"] button{flex:1;min-height:38px}
.user-card>div[style*="justify-content:flex-end"] .muted{flex:1 1 100%}
.user-card button[data-accept]{background:#2d88ff!important;color:#fff!important}
.user-card button[data-decline],.user-card button[data-cancel]{background:#383838!important;color:#e4e6eb!important;border:0!important}
html.dav-light .user-card button[data-decline],html.dav-light .user-card button[data-cancel]{background:#e4e6eb!important;color:#262626!important}
.user-card button[data-add]{background:#2d88ff!important;color:#fff!important}
.user-card button[data-chat]{background:#2e2e2e!important;color:#e4e6eb!important}
html.dav-light .user-card button[data-chat]{background:#e7f3ff!important;color:#2d88ff!important}
.wrap .section>h2{display:flex;align-items:center;gap:8px;margin:0 0 4px!important}
.wrap .empty{text-align:center;padding:22px 10px;color:#a0a3a8;font-size:14px}
.online-row{padding:4px 2px 8px}
.online-row .otile .av{position:relative;display:inline-flex}
.online-row .otile .av img{width:56px!important;height:56px!important;border-radius:50%!important;object-fit:cover}
.online-row .otile .dot.on{position:absolute;right:1px;bottom:1px;width:14px;height:14px;border-radius:50%;background:#31a24c;border:2px solid #121212}
html.dav-light .online-row .otile .dot.on{border-color:#fff}
.oname{font-size:12px;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ai-card{background:linear-gradient(135deg,rgba(45,136,255,.2),rgba(45,136,255,.18))!important;border:0!important;padding:12px 14px!important;margin-bottom:12px}
.wrap .social-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:8px!important;background:#2d88ff!important;color:#fff!important;border:0!important;font-weight:700;text-decoration:none}
