/**
 * ALDON RADAR - Feeds Spotlight Styles
 * Dashboard des collections RSS avec articles agrégés
 * Convention: préfixe .fs- (Feeds Spotlight)
 */

/* ============================================
   CONTAINER
   ============================================ */

.fs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

/* ============================================
   1. HEADER
   ============================================ */

.fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}

.fs-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fs-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fs-title i {
    font-size: 1.5rem;
    color: #10b981;
}

.fs-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.fs-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.fs-separator {
    color: #475569;
}

.fs-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fs-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-btn-icon:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}

.fs-btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fs-view-toggle {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.fs-view-toggle button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-view-toggle button:hover {
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
}

.fs-view-toggle button.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

/* ============================================
   2. ONGLETS COLLECTIONS
   ============================================ */

.fs-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    margin: 0 -1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fs-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.fs-tabs::-webkit-scrollbar {
    display: none;
}

/* ─── Fade gradient droit — indique overflow à droite ─── */
.fs-tabs-fade-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, #0f172a 85%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.fs-tabs-fade-right.hidden {
    opacity: 0;
}

/* Fade gradient gauche */
.fs-tabs-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, transparent, #0f172a 85%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
    opacity: 0; /* caché par défaut - pas de scroll gauche au départ */
}

.fs-tabs-fade-left.visible {
    opacity: 1;
}

/* ─── Boutons de navigation onglets ─── */
.fs-tabs-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.fs-tabs-chevron.visible {
    opacity: 1;
    pointer-events: all;
}

.fs-tabs-chevron:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.fs-tabs-chevron-left {
    left: 0.25rem;
}

.fs-tabs-chevron-right {
    right: 0.25rem;
}

.fs-tabs-chevron i {
    font-size: 0.7rem;
}

.fs-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-tab:hover {
    color: #94a3b8;
}

.fs-tab.active {
    color: #fff;
    border-bottom-color: #10b981;
}

.fs-tab-emoji {
    font-size: 1rem;
}

.fs-tab-count {
    font-size: 0.75rem;
    color: #64748b;
}

.fs-tab.active .fs-tab-count {
    color: #94a3b8;
}

.fs-tab-add {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
    margin-left: 0.5rem;
}

.fs-tab-add:hover {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

/* ============================================
   3. SECTION HERO - À LA UNE
   ============================================ */

.fs-hero-section {
    margin: 1.5rem 0;
}

.fs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fs-section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.fs-section-header h2 i {
    color: #f59e0b;
    font-size: 1rem;
}

.fs-section-header h2 span {
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
}

.fs-hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.fs-hero-track {
    display: flex;
    transition: transform 0.3s ease;
}

.fs-hero-card {
    flex: 0 0 calc(33.333% - 0.5rem);
    min-width: calc(33.333% - 0.5rem);
    height: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 0.75rem;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .fs-hero-card {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
    }
}

@media (max-width: 768px) {
    .fs-hero-card {
        flex: 0 0 100%;
        min-width: 100%;
        margin-right: 0;
    }
}

.fs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.fs-hero-card:hover .fs-hero-bg {
    transform: scale(1.05);
}

.fs-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
}

.fs-hero-fallback img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    opacity: 0.7;
}

.fs-hero-overlay {
    position: absolute;
    inset: 0;
    /* FIX V5: Gradient optimisé - plus léger au centre */
    background: linear-gradient(
        to bottom, 
        rgba(15,23,42,0.8) 0%, 
        rgba(15,23,42,0.1) 30%, 
        rgba(15,23,42,0.1) 50%, 
        rgba(15,23,42,0.85) 85%,
        rgba(15,23,42,0.95) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.875rem;
}

/* FIX V5: Header compact en haut des hero cards */
.fs-hero-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
    background: rgba(15,23,42,0.7);
    border-radius: 6px;
    align-self: flex-start;
    backdrop-filter: blur(4px);
}

.fs-hero-header .fs-hero-favicon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.fs-hero-domain {
    color: #fff;
    font-weight: 600;
}

.fs-hero-header .fs-hero-date {
    color: rgba(255,255,255,0.7);
}

.fs-hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fs-badge-recent {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.3);
}

.fs-badge-multi {
    background: rgba(245,158,11,0.2);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.3);
}

.fs-badge-new {
    background: rgba(16,185,129,0.2);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.3);
}

.fs-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    /* FIX V5: Remonter le contenu */
    margin-bottom: 0;
}

/* Ancien style conservé pour compatibilité */
.fs-hero-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.fs-hero-date {
    color: #64748b;
}

.fs-hero-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.fs-hero-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-hero-title a:hover {
    text-decoration: underline;
}

.fs-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.fs-hero-tag {
    padding: 0.1875rem 0.375rem;
    background: rgba(26,34,52,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 0.65rem;
    color: #cbd5e1;
}

/* Hero Navigation */
.fs-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 5;
}

.fs-hero-carousel:hover .fs-hero-nav {
    opacity: 1;
}

.fs-hero-nav:hover {
    background: rgba(16,185,129,0.8);
    border-color: #10b981;
}

.fs-hero-nav-prev {
    left: 1rem;
}

.fs-hero-nav-next {
    right: 1rem;
}

/* FIX V5: Dots container en dessous du carrousel */
.fs-hero-dots-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.fs-hero-dots {
    display: flex;
    gap: 0.5rem;
}

.fs-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-hero-dot:hover {
    background: rgba(255,255,255,0.5);
}

.fs-hero-dot.active {
    background: #10b981;
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   4. BARRE DE FILTRES THÉMATIQUES
   ============================================ */

.fs-filters-section {
    margin: 1.5rem 0;
}

.fs-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.fs-filter-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-filter-tag:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.fs-filter-tag.active {
    background: rgba(16,185,129,0.15);
    border-color: #10b981;
    color: #10b981;
}

.fs-filter-count {
    font-size: 0.7rem;
    opacity: 0.7;
}

.fs-filter-more {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 20px;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-filter-more:hover {
    color: #94a3b8;
    border-color: rgba(255,255,255,0.25);
}

.fs-filter-more i {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.fs-filters-expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
    animation: slideDown 0.2s ease;
}

.fs-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(16,185,129,0.05);
    border: 1px solid rgba(16,185,129,0.1);
    border-radius: 8px;
}

.fs-active-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.fs-active-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16,185,129,0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #10b981;
}

.fs-active-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: transparent;
    border: none;
    color: #10b981;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fs-active-tag button:hover {
    opacity: 1;
}

.fs-clear-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-clear-filters:hover {
    color: #f87171;
}

/* ============================================
   5. GRILLE D'ARTICLES
   ============================================ */

.fs-articles-section {
    margin-top: 1.5rem;
}

.fs-articles-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
}

/* Grid View */
.fs-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .fs-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fs-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* List View */
.fs-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.fs-articles-list .fs-article-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.fs-articles-list .fs-article-thumb {
    width: 200px;
    min-width: 200px;
    height: 130px;
    border-radius: 12px 0 0 12px;
}

.fs-articles-list .fs-article-content {
    padding: 1rem 1.25rem;
}

/* Article Card */
.fs-article-card {
    background: #1a2234;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.fs-article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16,185,129,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fs-article-card.fs-article-unread {
    /* supprimé — le dot vert était trop intrusif */
}

/* ── Article lu — indicateur visuel discret ──────────────────── */
.fs-article-card.fs-article-read {
    opacity: 0.72;
}

.fs-article-card.fs-article-read .fs-article-title,
.fs-article-card.fs-article-read .fs-hero-title {
    color: #94a3b8; /* titre atténué */
}

/* Restaurer l'opacité au hover même si lu */
.fs-article-card.fs-article-read:hover {
    opacity: 1;
}

.fs-article-thumb {
    position: relative;
    height: 160px;
    background: #1e293b;
    overflow: hidden;
}

.fs-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fs-article-card:hover .fs-article-thumb img {
    transform: scale(1.05);
}

.fs-article-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-article-thumb-fallback img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    opacity: 0.6;
}

.fs-article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fs-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.fs-article-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.fs-article-source {
    font-weight: 500;
    color: #94a3b8;
}

.fs-article-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.fs-article-title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-article-title a:hover {
    color: #10b981;
}

.fs-article-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.fs-article-tag {
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-article-tag:hover {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}

.fs-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fs-article-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #10b981;
    text-decoration: none;
    transition: all 0.2s;
}

.fs-article-link:hover {
    gap: 0.5rem;
}

.fs-article-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.fs-article-link:hover i {
    transform: translateX(2px);
}

.fs-article-ai {
    display: none; /* Résumé IA retiré — conservé pour compatibilité future */
}

/* ── Indicateur de lecture dans le footer ─────────────────────── */
.fs-read-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #10b981;
    opacity: 0.75;
}

.fs-read-indicator i {
    font-size: 0.62rem;
}

/* No Results */
.fs-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #64748b;
}

.fs-no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.fs-no-results p {
    margin: 0 0 1rem;
}

/* ============================================
   6. PAGINATION
   ============================================ */

.fs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fs-pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.fs-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.fs-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-page-btn:hover:not(:disabled):not(.ellipsis) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.fs-page-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.fs-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fs-page-btn.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
}

.fs-pagination-perpage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.fs-pagination-perpage select {
    padding: 0.375rem 1.75rem 0.375rem 0.625rem;
    background: #1a2234;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.fs-pagination-perpage select:focus {
    outline: none;
    border-color: #10b981;
}

/* ============================================
   ÉTATS SPÉCIAUX
   ============================================ */

/* Empty State */
.fs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.fs-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.fs-empty-icon i {
    font-size: 2rem;
    color: #10b981;
}

.fs-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.fs-empty p {
    margin: 0 0 1.5rem;
    color: #64748b;
    max-width: 400px;
}

.fs-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Error State */
.fs-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.fs-error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239,68,68,0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.fs-error-icon i {
    font-size: 2rem;
    color: #ef4444;
}

.fs-error h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.fs-error p {
    margin: 0 0 1.5rem;
    color: #94a3b8;
}

/* Loading Skeleton */
.fs-loading {
    padding: 1.5rem 0;
}

.fs-hero-skeleton {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.fs-skeleton-card {
    background: linear-gradient(90deg, #1a2234 25%, #243044 50%, #1a2234 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

.fs-skeleton-hero {
    flex: 1;
    height: 280px;
}

.fs-tags-skeleton {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.fs-skeleton-tag {
    width: 100px;
    height: 36px;
    background: linear-gradient(90deg, #1a2234 25%, #243044 50%, #1a2234 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

.fs-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.fs-skeleton-article {
    height: 320px;
}

@media (max-width: 1200px) {
    .fs-grid-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fs-grid-skeleton {
        grid-template-columns: 1fr;
    }
    
    .fs-hero-skeleton {
        flex-direction: column;
    }
    
    .fs-skeleton-hero {
        height: 200px;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.fs-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

.fs-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}

.fs-btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}

.fs-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* ============================================
   MODAL
   ============================================ */

.fs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.fs-modal {
    background: #1a2234;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.fs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fs-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.fs-modal-header h2 i {
    color: #10b981;
}

.fs-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.fs-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.fs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
}

/* Form Elements */
.fs-form-group {
    margin-bottom: 1rem;
}

.fs-form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.fs-form-group label .required {
    color: #ef4444;
}

.char-counter {
    font-size: 0.7rem;
    font-weight: 400;
    color: #64748b;
}

.char-counter.warning {
    color: #f59e0b;
}

.fs-input,
.fs-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.fs-input::placeholder,
.fs-textarea::placeholder {
    color: #64748b;
}

.fs-input:focus,
.fs-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.15);
}

.fs-textarea {
    resize: vertical;
    min-height: 60px;
}

.fs-hint {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.375rem;
}

/* Emoji Picker */
.fs-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fs-emoji-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-emoji-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.1);
}

.fs-emoji-btn.active {
    background: rgba(16,185,129,0.15);
    border-color: #10b981;
}

/* Status Options */
.fs-status-options {
    display: flex;
    gap: 0.5rem;
}

.fs-status-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-status-btn i {
    font-size: 1rem;
}

.fs-status-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.fs-status-btn.active {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}

/* Toggle Options */
.fs-toggle-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    background: transparent;
    border: none;
    border-top: 1px dashed rgba(255,255,255,0.08);
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: 1rem 0;
}

.fs-toggle-options:hover {
    color: #10b981;
    background: rgba(16,185,129,0.05);
}

.fs-optional-fields {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .fs-container {
        padding: 0 1rem 1.5rem;
    }
    
    .fs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .fs-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .fs-tabs-wrapper {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .fs-pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .fs-articles-list .fs-article-card {
        flex-direction: column;
    }
    
    .fs-articles-list .fs-article-thumb {
        width: 100%;
        height: 160px;
        border-radius: 12px 12px 0 0;
    }
}


/**
 * SPOTLIGHT CSS - CORRECTIONS
 * Ajouter ces styles à spotlight.css
 */

/* ============================================
   CORRECTION 4: Date inconnue - style muted
   ============================================ */

.fs-date-unknown {
    color: #64748b !important;
    font-style: italic;
}

.fs-hero-date.fs-date-unknown {
    color: #64748b !important;
}

.fs-article-date.fs-date-unknown {
    color: #64748b !important;
}

/* ============================================
   CORRECTION 3: Message "peu d'articles"
   ============================================ */

.fs-grid-few-articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
}

.fs-few-articles-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.fs-few-articles-icon i {
    font-size: 1.5rem;
    color: #10b981;
}

.fs-grid-few-articles p {
    margin: 0 0 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.fs-grid-few-articles .fs-few-articles-hint {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.fs-grid-few-articles .fs-btn {
    margin-top: 0.5rem;
}

/* ============================================
   CORRECTION 2: Hero fallback overlay fix
   ============================================ */

.fs-hero-fallback {
    position: absolute;
    inset: 0;
    display: none; /* Caché par défaut */
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.fs-hero-card .fs-hero-fallback[ng-show="article.hasFallbackImage"] {
    display: flex !important;
}

.fs-hero-fallback img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    opacity: 0.7;
}

/* Amélioration: si fallback image Unsplash, pas besoin du gradient overlay fort */
.fs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

/* ============================================
   SUPPRESSION: Styles des badges (gardés pour référence future)
   ============================================ */

/* Commenté - sera réactivé quand le moteur d'analyse sera implémenté
.fs-hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fs-badge-recent {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.fs-badge-multi {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fs-badge-new {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
*/

/* ══════════════════════════════════════════════════════════════
   FIX V3.1: REFRESH INLINE STATUS (minimaliste)
   ══════════════════════════════════════════════════════════════ */

/* Refresh Button States */
.fs-refresh-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fs-refresh-btn.fs-refreshing {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.fs-refresh-btn.fs-refreshing i {
    color: #10b981;
}

.fs-refresh-btn.fs-refresh-complete {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.fs-refresh-btn.fs-refresh-complete i {
    animation: none;
    color: #10b981;
}

/* Spinner Animation Override for Refresh */
.fs-refresh-btn.fs-refreshing .fa-spin {
    animation: fa-spin 0.7s linear infinite;
    color: #10b981;
}

/* Inline Refresh Status - FIX V3.3: Hauteur exacte avec box-sizing */
.fs-refresh-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    box-sizing: border-box;
    animation: fs-status-fadein 0.2s ease;
}

/* ─── Silent refresh indicator (SWR background fetch) ─── */
.fs-silent-refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-sizing: border-box;
    animation: fs-status-fadein 0.2s ease;
}

.fs-silent-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: fs-silent-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.fs-silent-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1;
}

@keyframes fs-silent-pulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

@media (max-width: 768px) {
    .fs-silent-text { display: none; }
    .fs-silent-refresh-indicator { padding: 0 10px; }
}

.fs-refresh-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #10b981;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1;
}

.fs-refresh-pct {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* FIX V3.3: Style pour le nombre de nouveaux articles */
.fs-refresh-new {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(16, 185, 129, 0.3);
    margin-left: 0.25rem;
    white-space: nowrap;
    line-height: 1;
}

/* Animation d'entrée */
@keyframes fs-status-fadein {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH COMPACT - V3.8: Intégré dans le header
   ═══════════════════════════════════════════════════════════════ */

.fs-search-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Input */
.fs-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 0.75rem;
    height: 40px;
    min-width: 180px;
    max-width: 250px;
    transition: all 0.2s ease;
}

.fs-search-input-wrap:focus-within {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.fs-search-input-wrap i {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.fs-search-input-wrap input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
}

.fs-search-input-wrap input::placeholder {
    color: #64748b;
}

.fs-search-clear-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    margin-left: 0.25rem;
}

.fs-search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Date Filter Button */
.fs-date-filter-wrap {
    position: relative;
}

.fs-date-btn {
    position: relative;
}

.fs-date-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.fs-date-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Date Dropdown */
.fs-date-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(20, 27, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.375rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.fs-date-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.fs-date-dropdown button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fs-date-dropdown button.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.fs-date-dropdown button i {
    width: 14px;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
}

.fs-date-dropdown button.active i {
    opacity: 1;
}

/* Search Button */
.fs-search-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fs-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.fs-search-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH INFO BAR - Résultats de recherche
   ═══════════════════════════════════════════════════════════════ */

.fs-search-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.fs-search-info-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.fs-search-info-text strong {
    color: #10b981;
    font-weight: 600;
}

.fs-search-info-text em {
    color: #fff;
    font-style: normal;
    font-weight: 500;
}

.fs-search-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #10b981;
}

.fs-search-filter-tag i {
    font-size: 0.65rem;
}

.fs-search-clear-all {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.fs-search-clear-all:hover {
    color: #10b981;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .fs-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .fs-header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .fs-search-compact {
        order: 10;
        width: 100%;
        justify-content: flex-end;
    }
    
    .fs-search-input-wrap {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .fs-search-compact {
        width: 100%;
    }
    
    .fs-search-input-wrap {
        min-width: 0;
    }
    
    .fs-search-info-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fs-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .fs-search-compact {
        gap: 0.375rem;
    }
    
    .fs-search-input-wrap {
        min-width: 100px;
    }
    
    .fs-date-badge {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   BOOKMARKS
   ══════════════════════════════════════════════════════════════ */

/* Bouton bookmark — cartes hero */
.fs-bookmark-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    opacity: 0;
    transform: scale(0.9);
}

.fs-hero-card:hover .fs-bookmark-btn,
.fs-article-thumb:hover .fs-bookmark-btn {
    opacity: 1;
    transform: scale(1);
}

.fs-bookmark-btn.bookmarked {
    opacity: 1;
    transform: scale(1);
    color: var(--accent-primary, #10b981);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.fs-bookmark-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.fs-bookmark-btn.bookmarked:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Bouton bookmark — cartes grille (position dans le thumb) */
.fs-bookmark-grid {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 13px;
}

/* ── Modale Bookmark ── */
.fs-bookmark-overlay {
    z-index: 1100;
}

.fs-bookmark-modal {
    background: var(--bg-secondary, #0f1923);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 16px;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: fadeUp 0.2s ease-out;
}

.fs-bookmark-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
}

.fs-bookmark-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.fs-bookmark-modal-header h3 i {
    color: var(--accent-primary, #10b981);
}

/* Article preview */
.fs-bookmark-article-preview {
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.fs-bookmark-preview-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-bookmark-preview-source {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    margin-top: 4px;
}

/* Listes */
.fs-bookmark-lists {
    padding: 12px 24px;
}

.fs-bookmark-lists-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #64748b);
    margin-bottom: 8px;
}

.fs-bookmark-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 2px;
}

.fs-bookmark-list-item:hover {
    background: rgba(255,255,255,0.04);
}

.fs-bookmark-list-item.active {
    background: rgba(16, 185, 129, 0.08);
}

.fs-bookmark-list-check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid var(--border-color, rgba(255,255,255,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: transparent;
    transition: all 0.15s;
}

.fs-bookmark-list-item.active .fs-bookmark-list-check {
    background: var(--accent-primary, #10b981);
    border-color: var(--accent-primary, #10b981);
    color: white;
}

.fs-bookmark-list-emoji { font-size: 16px; }

.fs-bookmark-list-name {
    flex: 1;
    font-size: 14px;
    color: white;
}

.fs-bookmark-list-count {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    min-width: 20px;
    text-align: right;
}

.fs-bookmark-list-loading {
    font-size: 12px;
    color: var(--accent-primary, #10b981);
}

.fs-bookmark-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted, #64748b);
}

.fs-bookmark-empty i { font-size: 24px; margin-bottom: 8px; display: block; }
.fs-bookmark-empty p { font-size: 13px; margin: 0; }

/* Créer une liste */
.fs-bookmark-create {
    padding: 12px 24px 20px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.fs-bookmark-create-input {
    display: flex;
    gap: 8px;
}

.fs-bookmark-create-input .fs-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
}

.fs-bookmark-create-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent-primary, #10b981);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.fs-bookmark-create-btn:hover { opacity: 0.85; }
.fs-bookmark-create-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Responsive */
@media (max-width: 480px) {
    .fs-bookmark-modal { width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; }
}

/* ══════════════════════════════════════════════════════════════
   DEEP BRIEFING — Trigger Button + Modal
   ══════════════════════════════════════════════════════════════ */

/* ─── Bouton trigger dans le header ─── */
.fs-briefing-trigger-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    transition: all 0.2s ease;
}

.fs-briefing-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.fs-briefing-trigger-btn.fs-briefing-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    width: auto;
    padding: 0 12px;
    gap: 8px;
    display: flex;
    align-items: center;
}

/* État verrouillé (Free user) */
.fs-briefing-trigger-btn.fs-briefing-locked {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
    position: relative;
}

.fs-briefing-trigger-btn.fs-briefing-locked:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    color: #94a3b8;
    box-shadow: none;
}

.fs-briefing-lock-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a2234;
    border: 1.5px solid #0f1923;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: #f59e0b;
}

.fs-briefing-trigger-btn.fs-briefing-locked:hover .fs-briefing-lock-badge {
    color: #fbbf24;
}

.fs-briefing-trigger-timer {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

/* ─── Overlay ─── */
.fs-briefing-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fsBriefingFadeIn 0.15s ease-out;
    padding: 20px;
}

@keyframes fsBriefingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── Modal card ─── */
.fs-briefing-modal {
    background: #1a2234;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 560px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    animation: fsBriefingSlideUp 0.2s ease-out;
}

@keyframes fsBriefingSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Header ─── */
.fs-briefing-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.fs-briefing-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.fs-briefing-modal-title i {
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 17px;
}

.fs-briefing-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
}

.fs-briefing-modal-close:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ─── Body ─── */
.fs-briefing-body {
    padding: 18px 24px 20px;
    overflow-y: auto;
    flex: 1;
}

.fs-briefing-intro {
    margin: 0 0 20px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.fs-briefing-section {
    margin-bottom: 22px;
}

.fs-briefing-section:last-child {
    margin-bottom: 0;
}

.fs-briefing-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 10px;
}

.fs-briefing-section-title i {
    font-size: 11px;
    color: #64748b;
}

/* ─── Fenêtre temporelle (pills) ─── */
.fs-briefing-hours-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fs-briefing-hours-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fs-briefing-hours-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.fs-briefing-hours-pill.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

/* ─── Sélecteur Tout ─── */
.fs-briefing-select-all-btn {
    margin-left: auto;
    padding: 4px 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.fs-briefing-select-all-btn:hover {
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

/* ─── Liste des collections ─── */
.fs-briefing-collections-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -6px;
}

/* Custom scrollbar — thin, subtle, espacé du contenu */
.fs-briefing-collections-list::-webkit-scrollbar {
    width: 6px;
}
.fs-briefing-collections-list::-webkit-scrollbar-track {
    background: transparent;
}
.fs-briefing-collections-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.fs-briefing-collections-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}
.fs-briefing-collections-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.fs-briefing-col-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fs-briefing-col-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.fs-briefing-col-item.selected {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

.fs-briefing-col-check {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: transparent;
    transition: all 0.15s;
}

.fs-briefing-col-item.selected .fs-briefing-col-check {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.fs-briefing-col-emoji {
    font-size: 15px;
    flex-shrink: 0;
}

.fs-briefing-col-name {
    flex: 1;
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-briefing-col-count {
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.fs-briefing-empty {
    text-align: center;
    padding: 30px 16px;
    color: #64748b;
}

.fs-briefing-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

.fs-briefing-empty p {
    margin: 0;
    font-size: 13px;
}

/* ─── Footer ─── */
.fs-briefing-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.fs-briefing-footer-count {
    font-size: 12px;
    color: #94a3b8;
}

.fs-briefing-footer-count strong {
    color: #10b981;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fs-briefing-footer-actions {
    display: flex;
    gap: 8px;
}

.fs-briefing-footer-status {
    width: 100%;
    justify-content: flex-end;
}

.fs-briefing-btn-cancel {
    padding: 9px 18px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.fs-briefing-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.fs-briefing-btn-launch {
    padding: 9px 20px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.fs-briefing-btn-launch:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.fs-briefing-btn-launch:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── Mode statut ─── */
.fs-briefing-status {
    padding: 36px 24px 28px;
    text-align: center;
}

.fs-briefing-status-icon {
    font-size: 38px;
    color: #10b981;
    margin-bottom: 16px;
}

.fs-briefing-status-timer {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fs-briefing-status-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.fs-briefing-status-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 14px;
}

.fs-briefing-status-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fs-briefing-status-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
}

.fs-briefing-status-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fs-briefing-status-hint {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .fs-briefing-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }
    .fs-briefing-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .fs-briefing-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .fs-briefing-footer-actions {
        width: 100%;
    }
    .fs-briefing-btn-cancel,
    .fs-briefing-btn-launch {
        flex: 1;
        justify-content: center;
    }
    .fs-briefing-trigger-btn.fs-briefing-active .fs-briefing-trigger-timer {
        display: none;
    }
}
