/* ============================================================
   Dashboard.css — Tableau de bord : stats + publications
   ============================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.stat-icon.blue  { background: rgba(46,134,193,.12);  color: var(--blue);    }
.stat-icon.gold  { background: rgba(232,184,75,.15);  color: var(--gold);    }
.stat-icon.green { background: rgba(46,204,113,.12);  color: var(--success); }
.stat-icon.red   { background: rgba(231,76,60,.1);    color: var(--danger);  }

.stat-val   { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ── Fil de publications ────────────────────────────────────── */
.feed-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-title i { color: var(--blue); }

/* Fil en colonne unique — les images faisant au maximum 400px de large, 500px de large pour la
   carte laisse une marge de lecture confortable sans gaspiller d'espace horizontal. */
.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Tableau de bord : fil + colonne d'informations ────────────── */
.dashboard-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.dashboard-main {
    width: 500px;
    max-width: 100%;
    flex-shrink: 0;
}
.dashboard-sidebar,
.dashboard-features {
    flex: 1 1 240px;
    min-width: 240px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget { padding: 14px 16px; }
.widget-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.widget .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.widget .stat-mini {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.widget .stat-mini .n { font-size: 18px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.widget .stat-mini .l { font-size: 10.5px; color: var(--text-muted); }
.widget .row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    cursor: pointer;
}
.widget .row:last-child { border-bottom: none; }
.widget .badge-grp {
    font-size: 10px;
    background: var(--bg);
    border-radius: 20px;
    padding: 1px 7px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .dashboard-main { width: 100%; }
}
@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card  { padding: 12px; }
    .stat-val   { font-size: 18px; }
}
@media (max-width: 400px) {
    .stats-row { grid-template-columns: 1fr; }
}
