/* SensPo - Clean LinkedIn Style */
:root {
    --primary: #5b21b6;
    --primary-light: #7c3aed;
    --primary-dark: #4c1d95;
    --accent: #f59e0b;
    --accent-dark: #b45309;
    --green: #059669;
    --green-dark: #047857;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --blue: #0a66c2;
    --bg-main: #f3f2ef;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f5;
    --bg-tertiary: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #191919;
    --text-secondary: #666666;
    --text-muted: #737373;
    --border: #e0e0e0;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --header-height: 52px;
    --sidebar-width: 225px;
    --feed-width: 555px;
    --transition: 0.2s ease;
}

body.dark {
    --bg-main: #1a1a2e;
    --bg-card: #242438;
    --bg-hover: #2d2d44;
    --bg-tertiary: #1e1e32;
    --card-bg: #242438;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #a0a0a0;
    --border: #3d3d5c;
    --border-color: #3d3d5c;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --green-dark: #10b981;
    --red-dark: #f87171;
    --accent-dark: #fbbf24;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-main); color: var(--text-primary); line-height: 1.5; min-height: 100vh; font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--bg-card); border-bottom: 1px solid var(--border); z-index: 100; }
.header-inner { display: flex; align-items: center; height: 100%; max-width: 1128px; margin: 0 auto; padding: 0 16px; gap: 8px; }
.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header-logo-icon { width: 34px; height: 34px; background: var(--text-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--bg-card); position: relative; }
.header-logo-icon::after { content: ''; position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; background: var(--text-primary); border-radius: 0 0 8px 0; clip-path: polygon(0 0, 100% 100%, 100% 0); }
.header-logo-text { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.header-search { flex: 1; max-width: 280px; position: relative; margin-left: 8px; }
.header-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.header-search input { width: 100%; padding: 8px 12px 8px 40px; background: var(--bg-main); border: none; border-radius: 4px; color: var(--text-primary); font-size: 14px; }
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus { outline: 2px solid var(--primary); background: var(--bg-card); }
.header-nav { display: flex; margin-left: auto; }
.header-nav-item { display: flex; flex-direction: column; align-items: center; padding: 4px 16px; color: var(--text-secondary); text-decoration: none; position: relative; min-width: 80px; }
.header-nav-item svg { width: 24px; height: 24px; margin-bottom: 2px; }
.header-nav-item span { font-size: 12px; }
.header-nav-item:hover { color: var(--text-primary); text-decoration: none; }
.header-nav-item.active { color: var(--text-primary); }
.header-nav-item.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--text-primary); }
.header-nav-badge { position: absolute; top: 0; right: 12px; background: var(--red); color: white; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); }
.header-theme-toggle { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.header-theme-toggle:hover { background: var(--bg-hover); }
.header-theme-toggle svg { width: 20px; height: 20px; }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: white; text-decoration: none; }

/* Main Layout */
.main-container { display: flex; max-width: 1128px; margin: 0 auto; padding-top: calc(var(--header-height) + 24px); gap: 24px; padding-left: 16px; padding-right: 16px; min-height: 100vh; }
.main-full { flex: 1; max-width: 100%; }
.main-with-sidebar { display: flex; gap: 24px; flex: 1; }

/* Sidebar Left */
.sidebar-left { width: var(--sidebar-width); flex-shrink: 0; position: sticky; top: 70px; align-self: flex-start; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-left::-webkit-scrollbar { display: none; }
.profile-card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.profile-banner { height: 56px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg-card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: white; margin: -36px auto 12px; }
.profile-info { padding: 0 16px 16px; text-align: center; }
.profile-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.profile-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.profile-stats { display: flex; justify-content: center; gap: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 16px; font-weight: 700; color: var(--primary); }
.profile-stat-label { font-size: 12px; color: var(--text-muted); }
.sidebar-links { margin-top: 16px; padding: 12px 16px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; }
.sidebar-links a { color: var(--text-secondary); }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-copyright { width: 100%; color: var(--text-muted); margin-top: 4px; }

/* Filter Card */
.filter-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 16px;
}

.filter-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.filter-pills {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.filter-pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.filter-pill span {
    flex: 1;
}

.filter-pill:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-pill:hover svg {
    opacity: 1;
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
}

.filter-pill.active svg {
    opacity: 1;
}

/* Compteur sur les pills */
.filter-pill-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.filter-pill.active .filter-pill-count {
    background: rgba(255,255,255,0.2);
}

/* Mobile Filters (horizontal scroll) */
.mobile-filters {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-filters::-webkit-scrollbar {
    display: none;
}

.mobile-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-filter-pill:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Feed */
.feed { flex: 1; max-width: var(--feed-width); }
.create-post { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.create-post-top { display: flex; align-items: center; gap: 12px; }
.create-post-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.create-post-input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 24px; color: var(--text-secondary); cursor: pointer; }
.create-post-input:hover { background: var(--bg-hover); }
.create-post-actions { display: flex; justify-content: space-around; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.create-post-action { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: none; background: none; color: var(--text-secondary); cursor: pointer; border-radius: 4px; font-size: 14px; font-weight: 500; }
.create-post-action:hover { background: var(--bg-hover); color: var(--text-primary); }
.create-post-action svg { width: 20px; height: 20px; }

/* Cards */
.card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; }
.card-header { padding: 16px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 16px; font-weight: 600; margin: 0; }
.card-body { padding: 16px; }

/* Analysis Cards */
.analysis-card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; }
.analysis-card-header { padding: 16px; display: flex; gap: 12px; }
.analysis-card-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.analysis-card-meta { flex: 1; }
.analysis-card-author { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.analysis-card-badge { padding: 2px 8px; background: var(--accent); color: white; font-size: 11px; font-weight: 600; border-radius: 10px; }
.analysis-card-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.analysis-card-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.analysis-card-more { color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; }
.analysis-card-content { padding: 0 16px 16px; }
.analysis-card-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.analysis-card-title a { color: inherit; }
.analysis-card-title a:hover { color: var(--primary); text-decoration: none; }

/* Expandable text */
.analysis-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.analysis-card-desc.collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.expand-btn { color: var(--text-muted); font-weight: 500; cursor: pointer; border: none; background: none; padding: 0; font-size: 14px; }
.expand-btn:hover { color: var(--primary); text-decoration: underline; }

/* Score Banner - Base */
.score-banner { background: transparent; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.score-banner-analyzed { background: transparent; }

/* ========================================
   VARIANTE 2 - Jauge circulaire + Détails
   ======================================== */
.v2-score-section {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.v2-gauge {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.v2-gauge svg {
    transform: rotate(-90deg);
}

.v2-gauge-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.v2-gauge-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.v2-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.v2-gauge-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.v2-gauge-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.v2-details {
    flex: 1;
}

.v2-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.v2-detail-row:last-child {
    border-bottom: none;
}

.v2-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.v2-detail-row strong {
    font-weight: 600;
    font-size: 15px;
}

/* Score Circle - Base */
.score-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3); color: white; }
.score-circle.positive { border-color: var(--green-dark); background: rgba(4, 120, 87, 0.1); }
.score-circle.negative { border-color: var(--red-dark); background: rgba(185, 28, 28, 0.1); }
.score-value { font-size: 22px; font-weight: 700; line-height: 1; color: white; }
.score-circle.positive .score-value { color: var(--green-dark); }
.score-circle.negative .score-value { color: var(--red-dark); }
.score-label { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 2px; }

/* Score Dimensions */
.score-dims { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.score-dim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg-card); border-radius: 6px; font-size: 13px; min-width: 130px; border: 1px solid var(--border); }
.score-dim-label { color: var(--text-secondary); }
.score-dim-value { font-weight: 600; }
.score-dim-value.positive { color: var(--green-dark); }
.score-dim-value.negative { color: var(--red-dark); }

/* ========================================
   SCORE MINI-CARDS - Option 4
   ======================================== */

/* Score banner avec cards : disposition horizontale */
.score-banner-with-cards {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

/* Score circle dans le banner avec cards - Style maquette */
.score-banner-with-cards .score-circle {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-banner-with-cards .score-circle .score-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-banner-with-cards .score-circle .score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

/* Stack de mini-cards */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-width: 220px;
}

/* Mini-card commune */
.mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    color: white;
}

.mini-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mini-card MIN - bordure gauche sombre */
.mini-card-min {
    border-left: 4px solid rgba(0, 0, 0, 0.3);
}

/* Mini-card MAX - bordure gauche sombre */
.mini-card-max {
    border-left: 4px solid rgba(0, 0, 0, 0.3);
}

/* Partie gauche de la mini-card */
.mini-card-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icône flèche */
.mini-card-icon {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Label dimension */
.mini-card-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Valeur de la note */
.mini-card-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Charts */
.chart-container { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-title { font-size: 14px; font-weight: 600; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-wrapper { position: relative; height: 300px; }
.chart-wrapper canvas { width: 100% !important; height: 100% !important; }

/* Engagement */
.analysis-card-engagement { padding: 12px 16px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); }
.engagement-reactions { display: flex; align-items: center; gap: 4px; }
.engagement-dots { display: flex; }
.engagement-dot { width: 16px; height: 16px; border-radius: 50%; margin-right: -4px; display: flex; align-items: center; justify-content: center; font-size: 10px; }

/* Actions */
.analysis-card-actions { 
    padding: 4px 8px; 
    display: flex; 
    border-top: 1px solid var(--border); 
}
.analysis-card-action { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    padding: 12px 8px; 
    border: none; 
    background: none; 
    color: var(--text-secondary); 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 500; 
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.analysis-card-action:hover { background: var(--bg-hover); color: var(--text-primary); }
.analysis-card-action.liked { color: var(--primary); }
.analysis-card-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.analysis-card-action .action-text { white-space: nowrap; }
.analysis-card-action.action-primary { color: #047857; font-weight: 600; }
.analysis-card-action.action-primary:hover { background: #ecfdf5; }

/* Sidebar Right */
.sidebar-right { width: 300px; flex-shrink: 0; position: sticky; top: 70px; align-self: flex-start; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-right::-webkit-scrollbar { display: none; }
.trending-card, .suggestions-card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; }
.trending-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.trending-badge { font-size: 11px; font-weight: 500; color: var(--green); background: rgba(5, 150, 105, 0.1); padding: 2px 8px; border-radius: 10px; }
.trending-list { padding: 8px 0; }
.trending-item { display: flex; gap: 12px; padding: 8px 16px; cursor: pointer; }
.trending-item:hover { background: var(--bg-hover); }
.trending-rank { width: 20px; height: 20px; background: var(--text-muted); color: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.trending-item:nth-child(1) .trending-rank { background: var(--accent); }
.trending-item:nth-child(2) .trending-rank { background: #9ca3af; }
.trending-item:nth-child(3) .trending-rank { background: #cd7f32; }
.trending-item:nth-child(4) .trending-rank { background: #6b7280; }
.trending-item:nth-child(5) .trending-rank { background: #9ca3af; }
.trending-content { flex: 1; min-width: 0; }
.trending-topic { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; display: block; }
.trending-title { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-meta { font-size: 11px; color: var(--text-muted); }
.trending-more { display: block; padding: 12px 16px; text-align: center; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border); }
.trending-more:hover { background: var(--bg-hover); text-decoration: none; }
.suggestions-header { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.suggestion-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.suggestion-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.suggestion-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: white; flex-shrink: 0; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-name { font-size: 13px; font-weight: 600; display: block; }
.suggestion-title { font-size: 12px; color: var(--text-muted); }
.suggestion-btn { padding: 6px 16px; border: 1px solid var(--primary); background: none; color: var(--primary); font-size: 13px; font-weight: 600; border-radius: 16px; cursor: pointer; }
.suggestion-btn:hover { background: rgba(91, 33, 182, 0.1); }

/* Preferences Page */
.preferences-layout { display: flex; gap: 24px; }
.preferences-sidebar { width: 200px; flex-shrink: 0; }
.preferences-nav { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.preferences-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-secondary); cursor: pointer; border-left: 3px solid transparent; }
.preferences-nav-item:hover { background: var(--bg-hover); }
.preferences-nav-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(91, 33, 182, 0.05); }
.preferences-nav-item svg { width: 20px; height: 20px; }
.preferences-content { flex: 1; }
.preferences-section { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; }
.preferences-section-header { padding: 16px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--border); }
.preferences-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.preferences-item:last-child { border-bottom: none; }
.preferences-item:hover { background: var(--bg-hover); }
.preferences-item-label { font-size: 14px; }
.preferences-item-value { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.preferences-item-arrow { color: var(--text-muted); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; }
.stat-card-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Compare Grid */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.compare-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.compare-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.compare-item-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; }
.compare-item-info h3 { font-size: 14px; font-weight: 600; margin: 0; }
.compare-item-info p { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.compare-score { text-align: center; padding: 20px; background: var(--bg-main); border-radius: 8px; margin-bottom: 16px; }
.compare-score-value { font-size: 36px; font-weight: 700; }
.compare-score-value.positive { color: var(--green); }
.compare-score-value.negative { color: var(--red); }
.compare-score-label { font-size: 12px; color: var(--text-muted); }
.compare-dims { display: flex; flex-direction: column; gap: 8px; }
.compare-dim { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--bg-main); border-radius: 6px; font-size: 13px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text-primary); background: var(--bg-card); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Filters */
.search-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 20px; font-size: 13px; cursor: pointer; color: var(--text-secondary); }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(91, 33, 182, 0.05); }

/* Search Results */
.search-result { padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--bg-hover); }
.search-result-title { font-weight: 600; margin-bottom: 4px; }
.search-result-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Notifications */
.notification-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: rgba(91, 33, 182, 0.05); }
.notification-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; flex-shrink: 0; }
.notification-content { flex: 1; }
.notification-text { font-size: 14px; line-height: 1.4; }
.notification-text strong { font-weight: 600; }
.notification-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.notification-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; background: var(--bg-card); border-radius: 8px 8px 0 0; }
.tab { padding: 16px 24px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Toggle */
.toggle { width: 44px; height: 24px; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; flex-shrink: 0; }
.toggle.active { background: var(--primary); }
.toggle::after { content: ''; position: absolute; width: 20px; height: 20px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; }
.toggle.active::after { transform: translateX(20px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all var(--transition); border: none; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-muted); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Bottom Nav */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border); z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 10px 4px 8px; color: var(--text-secondary); text-decoration: none; font-size: 10px; gap: 2px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { stroke: var(--primary); }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav-fab { flex: 0 0 44px !important; width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; margin-top: -18px; box-shadow: 0 4px 12px rgba(91, 33, 182, 0.35); padding: 0 !important; }
.bottom-nav-fab svg { width: 20px; height: 20px; stroke: white; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); border-radius: 8px; width: 100%; max-width: 500px; margin: 16px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border: none; background: none; font-size: 24px; cursor: pointer; color: var(--text-muted); border-radius: 50%; }
.modal-close:hover { background: var(--bg-hover); }
.modal-body { padding: 16px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-item { padding: 12px; border: none; border-radius: 4px; color: white; font-weight: 500; cursor: pointer; font-size: 14px; }
.share-item:last-child { background: var(--bg-main); color: var(--text-primary); grid-column: span 2; }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-card); border: 1px solid var(--border); padding: 12px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 300; opacity: 0; transition: all var(--transition); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.load-more { text-align: center; padding: 16px; }
.feed-loading { text-align: center; padding: 48px; color: var(--text-muted); }
.feed-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Feed cards animation */
.feed-card-wrapper {
    will-change: opacity, transform;
}

.feed-card-entering {
    pointer-events: none;
}

.feed-sentinel {
    height: 1px;
    visibility: hidden;
}

.feed-end {
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px;
    text-align: center;
}

/* Page Header */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Messaging Page */
.messaging-layout { display: flex; height: calc(100vh - var(--header-height) - 48px); background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.messaging-sidebar { width: 300px; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.messaging-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.messaging-header h2 { font-size: 16px; font-weight: 600; margin: 0; }
.messaging-search { padding: 8px 16px; border-bottom: 1px solid var(--border); }
.messaging-search input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; background: var(--bg-main); }
.messaging-filters { display: flex; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.messaging-filter { padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); }
.messaging-filter.active { background: var(--primary); color: white; border-color: var(--primary); }
.messaging-list { flex: 1; overflow-y: auto; }
.messaging-item { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border); }
.messaging-item:hover { background: var(--bg-hover); }
.messaging-item.active { background: rgba(91, 33, 182, 0.08); }
.messaging-item-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; font-size: 14px; }
.messaging-item-content { flex: 1; min-width: 0; }
.messaging-item-name { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.messaging-item-time { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.messaging-item-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.messaging-main { flex: 1; display: flex; flex-direction: column; }
.messaging-chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.messaging-chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.messaging-chat-info h3 { font-size: 14px; font-weight: 600; margin: 0; }
.messaging-chat-info p { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.messaging-chat-actions { margin-left: auto; display: flex; gap: 8px; }
.messaging-chat-actions button { width: 32px; height: 32px; border: none; background: none; cursor: pointer; border-radius: 50%; color: var(--text-muted); }
.messaging-chat-actions button:hover { background: var(--bg-hover); }
.messaging-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.message-date { text-align: center; font-size: 12px; color: var(--text-muted); padding: 8px 0; }
.message { display: flex; gap: 8px; max-width: 70%; }
.message.sent { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; font-size: 11px; }
.message-bubble { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.message.received .message-bubble { background: var(--bg-main); border-bottom-left-radius: 4px; }
.message.sent .message-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.message-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.message.sent .message-time { text-align: right; }
.message-link { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 8px; }
.message-link-title { font-size: 13px; font-weight: 500; color: var(--primary); }
.message-link-domain { font-size: 11px; color: var(--text-muted); }
.messaging-composer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.messaging-composer input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; background: var(--bg-main); }
.messaging-composer button { padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: 16px; font-weight: 500; cursor: pointer; }
.messaging-composer button:disabled { background: var(--border); color: var(--text-muted); }
.messaging-composer-icons { display: flex; gap: 4px; }
.messaging-composer-icons button { width: 32px; height: 32px; border: none; background: none; cursor: pointer; border-radius: 50%; color: var(--text-muted); padding: 0; }
.messaging-composer-icons button:hover { background: var(--bg-hover); }

/* Enhanced Notifications */
.notifications-layout { display: flex; gap: 24px; }
.notifications-main { flex: 1; max-width: 700px; }
.notifications-sidebar { width: 300px; flex-shrink: 0; }
.notifications-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.notification-filter { padding: 8px 16px; border-radius: 16px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); }
.notification-filter.active { background: var(--primary); color: white; border-color: var(--primary); }
.notification-card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.notification-row { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notification-row:last-child { border-bottom: none; }
.notification-row:hover { background: var(--bg-hover); }
.notification-row-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.notification-row-content { flex: 1; min-width: 0; }
.notification-row-text { font-size: 14px; line-height: 1.4; }
.notification-row-text strong { font-weight: 600; }
.notification-row-quote { background: var(--bg-main); border-left: 3px solid var(--border); padding: 8px 12px; margin-top: 8px; font-size: 13px; color: var(--text-secondary); border-radius: 0 4px 4px 0; }
.notification-row-meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.notification-row-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.notification-row-menu { color: var(--text-muted); cursor: pointer; padding: 4px; }

/* Article/Editorial Page */
.article-layout { display: flex; gap: 24px; }
.article-main { flex: 1; max-width: 680px; }
.article-sidebar { width: 360px; flex-shrink: 0; position: sticky; top: calc(var(--header-height) + 24px); height: fit-content; }
.article-actions { display: flex; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.article-action { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: none; border: none; color: var(--primary); cursor: pointer; border-radius: 4px; }
.article-action:hover { background: rgba(91, 33, 182, 0.08); }
.article-action svg { width: 16px; height: 16px; }
.article-cover { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.article-cover-caption { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.article-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.article-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.article-author-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.article-author-info { flex: 1; }
.article-author-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.article-author-title { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.article-author-actions { display: flex; gap: 8px; }
.article-date { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.article-content { font-size: 15px; line-height: 1.7; color: var(--text-primary); }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; }
.article-content h3 { font-size: 17px; font-weight: 600; margin: 24px 0 12px; }
.article-content blockquote { border-left: 3px solid var(--primary); padding-left: 16px; margin: 20px 0; font-style: italic; color: var(--text-secondary); }
.article-content a { color: var(--primary); }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }

/* Comments Sidebar */
.comments-card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); }
.comments-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.comments-title { font-size: 16px; font-weight: 600; }
.comments-stats { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.comments-stats-icons { display: flex; }
.comments-stats-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; margin-right: -4px; }
.comments-actions { display: flex; border-bottom: 1px solid var(--border); }
.comments-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: none; background: none; color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 500; }
.comments-action:hover { background: var(--bg-hover); color: var(--text-primary); }
.comments-action svg { width: 18px; height: 18px; }
.comments-input { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.comments-input-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; font-size: 11px; flex-shrink: 0; }
.comments-input input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; background: var(--bg-main); }
.comments-input-icons { display: flex; gap: 4px; }
.comments-input-icons button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: var(--text-muted); border-radius: 50%; padding: 0; }
.comments-sort { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.comments-list { max-height: 500px; overflow-y: auto; }
.comment-item { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; gap: 8px; margin-bottom: 8px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; font-size: 12px; flex-shrink: 0; }
.comment-meta { flex: 1; }
.comment-author { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.comment-author-title { font-size: 11px; color: var(--text-muted); }
.comment-time { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.comment-menu { color: var(--text-muted); cursor: pointer; }
.comment-text { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.comment-text .mention { color: var(--primary); font-weight: 500; }
.comment-text .expand { color: var(--text-muted); cursor: pointer; }
.comment-reactions { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.comment-reaction { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.comment-reaction:hover { color: var(--primary); }
.comment-image { margin: 8px 0; border-radius: 8px; max-width: 200px; }
.comment-link { background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 8px 0; }
.comment-link-title { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.comment-link-desc { font-size: 11px; color: var(--text-muted); }
.comment-replies { padding-left: 48px; }
.see-replies { font-size: 12px; color: var(--text-secondary); cursor: pointer; padding: 8px 0; }
.see-replies:hover { color: var(--primary); }

/* Editorial Card Image */
.editorial-card-image {
    width: calc(100% + 32px);
    margin: 0 -16px;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.editorial-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}

.editorial-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.editorial-card-image:hover img {
    transform: scale(1.03);
}

.editorial-card .analysis-card-title {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.editorial-card .analysis-card-title:hover {
    color: var(--accent);
}

/* Press Card Image */
.press-card-image {
    width: calc(100% + 32px);
    margin: 0 -16px;
    max-height: 350px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-tertiary);
}

.press-card-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

.press-card-image:hover img {
    opacity: 0.95;
}

.press-card .analysis-card-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.press-card .analysis-card-title a:hover {
    color: #0a66c2;
}

/* Avatar avec image */
.analysis-card-avatar.avatar-img {
    position: relative;
    overflow: hidden;
}

.analysis-card-avatar.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Favicon éditorial - sans cercle, sans fond */
.editorial-favicon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.analysis-card-avatar .avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

/* ========================================
   PROPOSITIONS - CARTES AVEC/SANS ANALYSE
   ======================================== */

/* Carte proposition analysée */
.proposition-analyzed {
    border-left: 3px solid #047857;
}

.proposition-analyzed:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.15);
}

/* Carte proposition en attente */
.proposition-pending {
    opacity: 0.75;
    filter: grayscale(20%);
    border-left: 3px solid #6b7280;
}

.proposition-pending:hover {
    opacity: 0.9;
    filter: grayscale(10%);
}

/* Badges analysée/en attente */
.badge-analyzed {
    background: rgba(4, 120, 87, 0.15) !important;
    color: #047857 !important;
    border: 1px solid rgba(4, 120, 87, 0.3);
}

.badge-pending {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Score banner analysée */
.score-banner-analyzed {
    background: transparent;
    border: none;
}

/* Score banner en attente */
.score-banner-pending {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.02) 100%);
    border: 1px solid rgba(107, 114, 128, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder score */
.score-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
}

.score-placeholder-icon {
    font-size: 28px;
    opacity: 0.6;
}

.score-placeholder-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

/* Score circle par niveau */
.score-circle.score-high {
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.score-circle.score-medium {
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.score-circle.score-low {
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.score-circle.score-high .score-value,
.score-circle.score-medium .score-value,
.score-circle.score-low .score-value {
    color: white;
}

.score-circle.score-high .score-label,
.score-circle.score-medium .score-label,
.score-circle.score-low .score-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Badge carbone */
.badge-green {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    margin-left: 6px;
}

/* Bouton désactivé */
.analysis-card-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.analysis-card-action:disabled:hover {
    background: transparent;
}

/* Titre cliquable pour les propositions analysées */
.proposition-analyzed .analysis-card-title {
    cursor: pointer;
    transition: color 0.2s ease;
}

.proposition-analyzed .analysis-card-title:hover {
    color: var(--accent);
}

/* Animation subtile pour les cartes en attente */
@keyframes pulse-pending {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 0.85; }
}

.proposition-pending .score-placeholder-icon {
    animation: pulse-pending 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1128px) { 
    .sidebar-right, .notifications-sidebar, .article-sidebar { display: none; } 
    .article-main { max-width: 100%; } 
}

@media (max-width: 900px) { 
    .stats-grid { grid-template-columns: repeat(2, 1fr); } 
    .compare-grid { grid-template-columns: 1fr; } 
    .preferences-sidebar { display: none; } 
}

@media (max-width: 768px) {
    .sidebar-left { display: none; }
    .header-nav { display: none; }
    
    /* Afficher les filtres mobile */
    .mobile-filters {
        display: flex;
        margin: 0 -8px;
        padding: 12px 8px;
        background: var(--bg-main);
    }
    
    /* Header mobile compact */
    .header-inner { padding: 0 12px; gap: 8px; }
    .header-logo { gap: 6px; }
    .header-logo-icon { width: 32px; height: 32px; font-size: 11px; }
    .header-logo-icon::after { width: 8px; height: 8px; }
    .header-logo-text { font-size: 16px; }
    .header-search { max-width: none; flex: 1; margin-left: 8px; }
    .header-search input { padding: 6px 10px 6px 36px; font-size: 13px; }
    .header-search-icon { left: 10px; width: 14px; height: 14px; }
    .header-actions { margin-left: 8px; padding-left: 8px; gap: 2px; }
    .header-theme-toggle { width: 36px; height: 36px; }
    .header-theme-toggle svg { width: 18px; height: 18px; }
    .header-avatar { width: 30px; height: 30px; font-size: 11px; }
    
    .feed, .main-full { max-width: 100%; }
    .bottom-nav { display: flex; align-items: flex-end; height: 60px; }
    .bottom-nav a { padding: 8px 2px 6px; font-size: 9px; }
    .bottom-nav svg { width: 20px; height: 20px; }
    .bottom-nav-fab { flex: 0 0 42px !important; width: 42px; height: 42px; min-width: 42px; min-height: 42px; max-width: 42px; max-height: 42px; margin-top: -16px; padding: 0 !important; }
    .bottom-nav-fab svg { width: 18px; height: 18px; }
    .main-container { padding-bottom: 70px; }
    
    /* Score banner mobile */
    .score-banner { flex-direction: column; padding: 12px; gap: 12px; }
    .score-circle { width: 60px; height: 60px; }
    .score-value { font-size: 18px; }
    .score-label { font-size: 10px; }
    .score-dims { 
        width: 100%; 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 6px; 
    }
    .score-dim { 
        min-width: 0; 
        padding: 6px 8px; 
        font-size: 11px; 
        gap: 4px; 
    }
    .score-dim-label { 
        overflow: hidden; 
        text-overflow: ellipsis; 
        white-space: nowrap; 
        max-width: 70px; 
    }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
    
    /* Cards mobile */
    .analysis-card { margin: 0 -8px; border-radius: 0; border-left: none; border-right: none; }
    
    .editorial-card-image { height: 160px; }
    .press-card-image { height: 140px; }
    
    .score-banner-pending { min-height: 60px; }
    .score-placeholder-icon { font-size: 24px; }
    .score-placeholder-text { font-size: 12px; }
    
    /* Jauge V2 responsive 768px */
    .v2-score-section {
        gap: 16px;
    }
    
    .v2-gauge {
        width: 85px;
        height: 85px;
    }
    
    .v2-gauge-value {
        font-size: 20px;
    }
    
    .v2-detail-row {
        font-size: 13px;
        padding: 6px 0;
    }
    
    /* Boutons d'action responsive 768px - toujours sur une ligne */
    .analysis-card-action {
        font-size: 12px;
        padding: 10px 6px;
        gap: 4px;
    }
    
    .analysis-card-action svg {
        width: 18px;
        height: 18px;
    }
    
    /* Score banner avec cards responsive 768px */
    .score-banner-with-cards {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .score-banner-with-cards .score-circle {
        width: 65px;
        height: 65px;
    }
    
    .cards-stack {
        max-width: 180px;
    }
    
    .mini-card {
        padding: 0.5rem 0.7rem;
    }
    
    .mini-card-label {
        font-size: 0.75rem;
    }
    
    .mini-card-value {
        font-size: 1rem;
    }
}

/* Mini-cards mobile */
@media (max-width: 480px) {
    .header-inner { padding: 0 8px; gap: 6px; }
    .header-logo-text { display: none; }
    .header-logo-icon { width: 30px; height: 30px; font-size: 10px; }
    .header-logo-icon::after { width: 7px; height: 7px; }
    .header-search { margin-left: 6px; }
    .header-search input { padding: 5px 8px 5px 32px; font-size: 12px; }
    .header-search-icon { left: 8px; }
    .header-actions { margin-left: 6px; padding-left: 6px; }
    .header-theme-toggle { width: 32px; height: 32px; }
    .header-theme-toggle svg { width: 16px; height: 16px; }
    .header-avatar { width: 28px; height: 28px; font-size: 10px; }
    
    /* Jauge V2 mobile 480px */
    .v2-score-section {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }
    
    .v2-gauge {
        width: 80px;
        height: 80px;
    }
    
    .v2-gauge-value {
        font-size: 18px;
    }
    
    .v2-gauge-label {
        font-size: 10px;
    }
    
    .v2-details {
        width: 100%;
    }
    
    .v2-detail-row {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .v2-dot {
        width: 8px;
        height: 8px;
        margin-right: 8px;
    }
    
    /* Boutons d'action mobile 480px - Icônes seules */
    .analysis-card-actions {
        padding: 8px 4px;
    }
    
    .analysis-card-action {
        padding: 10px 8px;
    }
    
    .analysis-card-action .action-text {
        display: none;
    }
    
    .analysis-card-action svg {
        width: 22px;
        height: 22px;
    }
    
    /* Mini-cards empilées responsive */
    .score-banner-with-cards {
        flex-direction: column !important;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .score-banner-with-cards .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-banner-with-cards .score-circle .score-value {
        font-size: 1.5rem;
    }
    
    .cards-stack {
        flex-direction: row;
        max-width: 100%;
        gap: 0.5rem;
    }
    
    .mini-card {
        flex: 1;
        padding: 0.4rem 0.5rem;
    }
    
    .mini-card-label {
        font-size: 0.65rem;
    }
    
    .mini-card-value {
        font-size: 0.9rem;
    }
}