/* ============================================================
   CommunityHub - Module ACTIVITÉ Discord (page Activité)
   ============================================================ */
#pageActivite .container{ max-width:1240px; margin:0 auto; padding:24px 16px 60px; }
.act-head{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
.act-title{ font-family:var(--font-head); font-size:26px; font-weight:800; margin:0 0 4px; }
.act-sub{ font-size:13px; color:var(--text3); }
.act-avatar-ph{ display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:var(--bg4); color:var(--text2); font-weight:800; font-size:14px; flex-shrink:0; }

/* Liste des serveurs */
.act-guilds{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:12px; }
.act-guild{ display:flex; align-items:center; gap:14px; padding:14px 16px; background:var(--bg2); border:1px solid var(--border); border-radius:var(--r); cursor:pointer; transition:border-color .15s, transform .15s; }
.act-guild:hover{ border-color:var(--accent); transform:translateY(-2px); }
.act-guild-icon{ width:56px; height:56px; border-radius:16px; object-fit:cover; flex-shrink:0; font-size:22px; }
.act-guild-icon.sm{ width:40px; height:40px; border-radius:12px; }
.act-guild-name{ font-size:16px; font-weight:800; }
.act-guild-meta{ font-size:12px; color:var(--text2); margin-top:2px; }
.act-guild-arrow{ color:var(--text3); font-size:12px; }
.act-empty{ text-align:center; padding:50px 20px; background:var(--bg2); border:1px dashed var(--border2); border-radius:var(--r); }

/* Période */
.act-period{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.act-period-nav{ display:inline-flex; align-items:center; gap:6px; margin-left:8px; font-size:13px; }
.act-period-nav b{ min-width:120px; text-align:center; }

/* KPIs */
.act-kpis{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; margin-bottom:14px; }
.act-kpi{ background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-sm); padding:10px 14px; display:flex; flex-direction:column; gap:2px; }
.act-kpi span{ font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.8px; }
.act-kpi b{ font-size:22px; font-weight:800; font-family:var(--font-head); }
.act-kpi small{ font-size:11px; color:var(--text3); }

/* Graphique journalier */
.act-chart{ background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-sm); padding:10px 14px 6px; margin-bottom:14px; }
.act-chart-lbl{ display:flex; justify-content:space-between; font-size:11px; color:var(--text3); margin-bottom:6px; }
.act-chart-bars{ display:flex; align-items:flex-end; gap:2px; height:90px; }
.act-cb{ flex:1; position:relative; height:100%; display:flex; align-items:flex-end; min-width:3px; }
.act-cb i{ display:block; width:100%; background:linear-gradient(180deg, var(--accent), rgba(79,110,247,.45)); border-radius:2px 2px 0 0; min-height:1px; }
.act-cb b{ position:absolute; left:50%; width:5px; height:5px; margin-left:-2.5px; margin-bottom:-2px; border-radius:50%; background:var(--amber, #f59e0b); }
.act-cb:hover i{ filter:brightness(1.3); }
.act-chart-axis{ display:flex; justify-content:space-between; font-size:10px; color:var(--text3); margin-top:4px; }

/* Outils : recherche + rôles */
.act-tools{ display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; margin-bottom:10px; }
.act-roles{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; flex:1; }
.act-roles-lbl{ font-size:12px; color:var(--text3); margin-right:2px; }
.act-role{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:14px; border:1px solid var(--border); background:var(--bg3); color:var(--text2); font-size:12px; cursor:pointer; }
.act-role i{ width:9px; height:9px; border-radius:50%; background:var(--rc); }
.act-role small{ color:var(--text3); }
.act-role:hover{ border-color:var(--rc); }
.act-role.on{ border-color:var(--rc); background:color-mix(in srgb, var(--rc) 22%, var(--bg3)); color:var(--text); font-weight:700; }

/* Scoreboard */
.act-table-wrap{ overflow-x:auto; background:var(--bg2); border:1px solid var(--border); border-radius:var(--r); }
.act-table{ width:100%; border-collapse:collapse; font-size:13px; }
.act-table th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--text3); padding:10px 10px; border-bottom:1px solid var(--border); white-space:nowrap; }
.act-table th.act-th{ cursor:pointer; user-select:none; }
.act-table th.act-th:hover, .act-table th.act-th.on{ color:var(--accent); }
.act-table td{ padding:8px 10px; border-bottom:1px solid var(--border); vertical-align:middle; }
.act-table tbody tr{ cursor:pointer; }
.act-table tbody tr:hover{ background:var(--bg3); }
.act-table tbody tr.act-gone{ opacity:.6; }
.act-table.small th, .act-table.small td{ padding:6px 8px; font-size:12px; }
.act-medal{ font-size:16px; text-align:center; }
.act-rank{ font-size:12px; font-weight:700; color:var(--text3); }
.act-member{ display:flex; align-items:center; gap:10px; min-width:200px; }
.act-mname{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.act-mname small{ font-weight:400; color:var(--text3); }
.act-mroles{ display:flex; gap:4px; flex-wrap:wrap; margin-top:2px; }
.act-chip{ display:inline-flex; align-items:center; gap:4px; font-size:10px; padding:1px 7px; border-radius:9px; border:1px solid color-mix(in srgb, var(--rc) 55%, transparent); color:var(--text2); }
.act-chip i{ width:6px; height:6px; border-radius:50%; background:var(--rc); }
.act-bar{ height:3px; background:var(--bg4); border-radius:2px; margin-top:6px; overflow:hidden; }
.act-bar i{ display:block; height:100%; background:var(--accent); border-radius:2px; }
.act-num{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.act-num.on{ font-weight:800; color:var(--accent); }
.act-foot{ font-size:11px; color:var(--text3); margin-top:8px; }

/* Salons */
.act-section{ margin-top:18px; }
.act-section h3{ font-size:15px; margin:0 0 8px; }
.act-channels{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:6px; }
.act-channel{ display:flex; justify-content:space-between; gap:8px; padding:8px 10px; background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-sm); font-size:12px; }
.act-ch-name{ font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.act-ch-val{ color:var(--text2); white-space:nowrap; }
@media (max-width:700px){ .act-mname{ max-width:140px; } .act-kpi b{ font-size:18px; } }
/* Recherche de rôles (serveurs avec des dizaines / centaines de rôles) + logo Discord de remplacement */
.act-role-q{ width:180px; padding:4px 10px !important; font-size:12px; border-radius:14px !important; }
.act-roles-more{ font-size:12px; color:var(--text3); font-style:italic; }
.act-guild-ph{ display:inline-flex; align-items:center; justify-content:center; background:#5865F220; padding:12px; box-sizing:border-box; }
.act-guild-ph.sm{ padding:8px; }
.act-guild-ph svg{ width:100%; height:100%; display:block; }
/* Graphiques SVG (évolution + profils heures / jours) */
.act-svg{ width:100%; height:auto; display:block; color:var(--text); }
.act-chart-btns{ display:flex; gap:6px; flex-wrap:wrap; margin:0 0 6px; }
.act-profiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
@media (max-width:800px){ .act-profiles{ grid-template-columns:1fr; } }
#actMemberDyn .act-chart, #actMemberDyn .act-profiles{ margin-bottom:10px; }
/* « En direct » : courbes minute par minute, frise d'état d'un membre */
.act-live-kpis{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text2); margin:2px 0 8px; }
.act-live-kpis b{ color:var(--text); }
.act-strip{ display:flex; gap:1px; height:34px; background:var(--bg4); border-radius:4px; overflow:hidden; padding:2px; }
.act-strip i{ flex:1; min-width:1px; border-radius:1px; display:block; }
.act-legend{ display:flex; gap:12px; flex-wrap:wrap; font-size:11px; color:var(--text3); margin-top:6px; }
.act-legend i{ display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px; vertical-align:middle; }
/* Fiche membre allégée : large, chiffres sur une ligne, onglets */
.act-modal{ max-width:920px; width:min(920px, 96vw); max-height:88vh; display:flex; flex-direction:column; }
.act-mhead{ display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.act-mstats{ display:flex; gap:6px 14px; flex-wrap:wrap; font-size:12px; color:var(--text3); padding:8px 10px; background:var(--bg3); border:1px solid var(--border); border-radius:var(--r-sm); margin-bottom:10px; }
.act-mstats b{ color:var(--text); font-size:13px; }
.act-mtabs{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.act-mbody{ flex:1; overflow-y:auto; min-height:220px; }
.act-mbody .act-chart, .act-mbody .act-profiles{ margin-bottom:0; }
