/* ============================================
   Inflexion — Editorial Professional Design
   Inspired by The Economist, FT, McKinsey, HBR
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to content link for keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
.menu-trigger:focus-visible,
.filter-btn:focus-visible,
.newsletter-btn:focus-visible,
.back-to-top:focus-visible,
.nav-close:focus-visible,
.search-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    /* Professional palette — dark green primary identity */
    --accent: #006650;
    --accent-dark: #06402A;
    --accent-light: #E8F5EE;
    --navy: #006650;
    --navy-light: #06402A;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FA;
    --bg-tertiary: #ECEEF2;
    --card-bg: #FFFFFF;

    /* Text */
    --text-primary: #1A1F2E;
    --text-secondary: #5A6178;
    --text-muted: #6B7280;

    /* Borders */
    --border-color: #E2E5EB;
    --border-light: #ECEEF2;

    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* No gradients — solid accent used everywhere */
    --gradient-main: var(--accent);
    --gradient-accent: var(--accent);

    /* ── Typography Scale ── */
    --fs-xs: 0.7rem;
    --fs-sm: 0.82rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.35rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 2.75rem;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    /* ── Spacing ── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-header: 0 2px 8px rgba(0,0,0,0.1);

    /* ── Border Radius ── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ── Layout ── */
    --header-height: 60px;
    --header-height-scrolled: 52px;
    --content-max-width: 1240px;
    --sidebar-width: 320px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: color 0.15s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header — Clean Editorial
   ============================================ */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Desktop: header adjustments */
@media (min-width: 769px) {
    .header {
        position: relative;
    }

    .header::after {
        display: none;
    }

    .header.scrolled {
        background: var(--bg-primary);
        box-shadow: none;
        border-bottom-color: var(--border-color);
    }
}

.header::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--accent);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 80px;
    transition: height var(--transition-normal), padding var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

/* Sticky header scroll effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-header, 0 2px 8px rgba(0,0,0,0.1));
    border-bottom-color: transparent;
}

.header.scrolled .header-top {
    padding: 0.3rem 0;
    height: var(--header-height-scrolled, 48px);
}

.header.scrolled .logo-img {
    height: 45px;
}

.header.scrolled .market-status {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
}

.header.scrolled::after {
    height: 2px;
}

.header .container {
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Menu trigger: hamburger button */
.menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.menu-trigger:hover {
    background-color: var(--bg-tertiary);
}

.menu-trigger:hover .hamburger-bar {
    background: var(--text-primary);
}

/* Hamburger icon - always visible */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                background 0.2s ease;
    transform-origin: center;
}

/* Hamburger to X animation when menu is open */
.menu-trigger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--accent);
}

.menu-trigger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-trigger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--accent);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.logo-img {
    height: 67px;
    width: auto;
    display: block;
    transition: height var(--transition-normal);
}

.logo:hover {
    opacity: 0.8;
}

/* Search */
.search-form {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: border-color 0.15s ease;
}

.search-form:focus-within {
    border-color: var(--navy);
}

.search-input {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    border: none;
    padding: 0.55rem 0.9rem;
    width: 120px;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-btn {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    padding: 0.55rem 1rem;
    background: var(--navy);
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.search-btn:hover {
    background: var(--accent);
}

/* Navigation Overlay */
/* Backdrop overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-overlay.nav-open {
    opacity: 1;
    visibility: visible;
}

/* Slide-in panel */
.nav-overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(16, 94, 45, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 16px 16px 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 2rem 1.75rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-overlay.nav-open .nav-overlay-content {
    transform: translateX(0);
}

.nav-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
}

.nav-overlay-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
}

.nav-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.nav-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Navigation links in overlay */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
}

.nav-overlay-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    display: block;
    letter-spacing: -0.01em;
}

/* "Accueil" link — first link is slightly larger */
.nav-links > .nav-overlay-link:first-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-overlay-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 12px;
    border-left-color: #A8D5BA;
}

.nav-overlay-link::before {
    display: none;
}

.nav-overlay-link[aria-current="page"] {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 12px;
    border-left-color: #A8D5BA;
}

.nav-overlay-link[aria-current="page"]::before {
    display: none;
}

/* Overlay link & group-label entrance animation */
.nav-overlay.nav-open .nav-overlay-link,
.nav-overlay.nav-open .nav-overlay-group-label {
    animation: slideInLink 0.35s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.nav-overlay.nav-open .nav-links > :nth-child(1)  { animation-delay: 0.04s; }
.nav-overlay.nav-open .nav-links > :nth-child(2)  { animation-delay: 0.07s; }
.nav-overlay.nav-open .nav-links > :nth-child(3)  { animation-delay: 0.10s; }
.nav-overlay.nav-open .nav-links > :nth-child(4)  { animation-delay: 0.13s; }
.nav-overlay.nav-open .nav-links > :nth-child(5)  { animation-delay: 0.16s; }
.nav-overlay.nav-open .nav-links > :nth-child(6)  { animation-delay: 0.19s; }
.nav-overlay.nav-open .nav-links > :nth-child(7)  { animation-delay: 0.22s; }
.nav-overlay.nav-open .nav-links > :nth-child(8)  { animation-delay: 0.25s; }
.nav-overlay.nav-open .nav-links > :nth-child(9)  { animation-delay: 0.28s; }
.nav-overlay.nav-open .nav-links > :nth-child(10) { animation-delay: 0.31s; }
.nav-overlay.nav-open .nav-links > :nth-child(11) { animation-delay: 0.34s; }
.nav-overlay.nav-open .nav-links > :nth-child(12) { animation-delay: 0.37s; }
.nav-overlay.nav-open .nav-links > :nth-child(13) { animation-delay: 0.40s; }
.nav-overlay.nav-open .nav-links > :nth-child(14) { animation-delay: 0.43s; }

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================
   Hero Section — Clean, Typographic
   ============================================ */
.hero {
    background: var(--bg-primary);
    padding: 3.5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero > * {
    position: relative;
}

.hero-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   Manifesto / Editorial Statement
   ============================================ */
.manifesto {
    background: var(--navy);
    padding: 1.5rem 0;
}

.manifesto-text {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-text strong {
    color: #fff;
    font-weight: 700;
}

/* ============================================
   Section Headers — Minimal Rule
   ============================================ */
.main-content {
    padding: 2.5rem 0;
}

.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--text-primary);
    position: relative;
}

.section-header::after {
    display: none;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    width: 100%;
    flex-basis: 100%;
}

.section-badge {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    color: white;
    background: var(--accent);
}

.section-badge.live { background: var(--accent); }
.section-badge.crypto-badge { background: var(--navy-light); }
.section-badge.commodities-badge { background: var(--accent); }
.section-badge.etf-badge { background: var(--navy); }

/* Section Filters */
.section-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.4rem 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

/* ============================================
   Page Tabs (onglets internes Marchés, Géopolitique)
   ============================================ */
.page-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-tab {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -2px;
}

.page-tab:hover {
    color: var(--text-primary);
}

.page-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-panel {
    display: none;
}

.tab-panel.active,
.tab-panel:not([hidden]) {
    display: block;
}

@media (max-width: 480px) {
    .page-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-tab {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        white-space: nowrap;
    }
}

/* ============================================
   TradingView Widgets
   ============================================ */
.market-overview-widget,
.crypto-chart-widget {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ============================================
   News Grid — Clean Cards
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* --- Category page article cards (story-content) --- */
.news-grid .top-story {
    display: flex;
    flex-direction: column;
}

.story-content {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-content .news-list-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.story-title a {
    color: #ffffff;
    text-decoration: none;
}

.story-title a:hover {
    color: var(--accent);
}

.story-excerpt {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-top: 0.25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.story-link {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
}

.story-link:hover {
    text-decoration: underline;
}

.news-card {
    padding: 1.5rem;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    transition: box-shadow 0.2s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    transition: background 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.news-card:hover::before {
    background: var(--accent);
}

.news-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.source-logo {
    display: none;
}

.source-name {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    font-variant: small-caps;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var(--accent);
    text-decoration: none;
}

.source-name:hover {
    color: var(--accent-dark);
}

.news-time {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    margin-left: auto;
}

.impact-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.impact-indicator.impact-high { background: var(--accent); }
.impact-indicator.impact-medium { background: var(--text-muted); }
.impact-indicator.impact-low { background: var(--border-color); }

.news-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #F5F0E8;
    transition: color 0.15s ease;
}

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

.news-description {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.2rem 0.5rem;
    font-weight: 600;
    border: 1px solid;
}

/* Muted, professional tags — borders not fills */
.tag.geopolitics { color: var(--accent); border-color: var(--accent); background: none; }
.tag.markets { color: var(--accent); border-color: var(--accent); background: none; }
.tag.crypto { color: var(--navy-light); border-color: var(--navy-light); background: none; }
.tag.commodities { color: #008066; border-color: #008066; background: none; }
.tag.conflicts { color: var(--accent); border-color: var(--accent); background: none; }
.tag.trade { color: var(--accent); border-color: var(--accent); background: none; }
.tag.politics { color: var(--text-secondary); border-color: var(--text-secondary); background: none; }
.tag.etf { color: var(--navy); border-color: var(--navy); background: none; }

.news-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.news-link:hover {
    color: var(--accent-dark);
}

.news-link::after {
    content: ' \2192';
}

/* Dark card text overrides — ensures readability on var(--navy) background */
.news-card .news-title,
.news-card .news-title a,
.top-story .story-title,
.top-story .story-title a {
    color: #F5F0E8;
}

.market-card .market-name,
.market-card .market-price,
.etf-card .etf-ticker {
    color: #ffffff;
}

.news-card .news-description,
.news-card .news-time,
.top-story .story-excerpt,
.market-card .market-change,
.etf-card .etf-name {
    color: rgba(255, 255, 255, 0.75);
}

.news-card .source-name,
.top-story .story-source,
.news-card .news-link,
.etf-card .etf-provider {
    color: var(--accent);
}

.news-card .source-name:hover,
.news-card .news-link:hover {
    color: var(--navy-light);
}

.news-card:hover .news-title,
.top-story:hover .story-title a {
    color: var(--accent);
}

.news-card .tag.etf {
    color: var(--navy-light);
    border-color: var(--navy-light);
}

/* ============================================
   Top Stories — Editorial Layout
   ============================================ */
.top-stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

.top-story {
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.9);
}

.top-story:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.top-story .story-image {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.top-story .story-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-story .story-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.top-story .source-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.top-story .news-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

.top-story h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.top-story h3 a {
    color: #F5F0E8;
    text-decoration: none;
}

.top-story h3 a:hover {
    color: #34d399;
}

.top-story .story-summary {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.top-story .rubrique-badge {
    font-size: 0.65rem;
}

/* --- Image placeholder for cards without image --- */
.top-story.no-image {
    position: relative;
}

.top-story.no-image::before {
    content: '';
    display: block;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a40 50%, #0d2818 100%);
    position: relative;
}

.top-story.no-image::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F0E8' stroke-width='1.5'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- Load more button --- */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.load-more-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.load-more-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   Markets Subcategories
   ============================================ */

.markets-subcategory {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.markets-subcategory:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.markets-subcat-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.markets-subcat-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0.4;
}

.markets-subcat-toggle {
    display: inline-block;
    margin-top: 1rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--accent-dark);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.markets-subcat-toggle:hover {
    color: var(--accent);
}

.markets-subcat-hidden {
    margin-top: 1.5rem;
}

/* --- Featured card (carte vedette) --- */
.top-story--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--navy);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.top-story--featured .featured-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.02) 100%);
}
.top-story--featured .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-story--featured .featured-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0.03) 100%);
}
.top-story--featured .featured-image.no-image::before {
    content: '\1F4C8';
    font-size: 2.5rem;
    opacity: 0.15;
}
.top-story--featured .featured-content {
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.top-story--featured .featured-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.5rem 0;
}
.top-story--featured .featured-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.top-story--featured .featured-title a:hover {
    color: var(--accent);
}
.top-story--featured .featured-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .top-story--featured {
        grid-template-columns: 1fr;
    }
    .top-story--featured .featured-content {
        padding: 1rem;
    }
}

/* --- Flash marchés (brèves tier3) --- */
.markets-flash-section {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.markets-flash-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.flash-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flash-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
    line-height: 1.4;
}
.flash-item:last-child { border-bottom: none; }
.flash-source {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    opacity: 0.7;
    min-width: 70px;
}
.flash-headline {
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
}
.flash-headline:hover {
    color: var(--accent);
}
.flash-time {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.5;
}
.flash-more {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.5rem;
    text-align: right;
}

/* --- ETF tab content --- */
.etf-intro {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.etf-intro a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.etf-intro a:hover { text-decoration: underline; }
.etf-table-wrapper {
    margin-bottom: 1.5rem;
}
.etf-table-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.etf-comparison-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.etf-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    white-space: nowrap;
}
.etf-comparison-table th {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}
.etf-comparison-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.etf-comparison-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* --- Tab article count badge --- */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 1.4em;
    padding: 0.1em 0.45em;
    border-radius: 50px;
    background: rgba(0, 210, 120, 0.12);
    color: var(--accent);
    margin-left: 0.3rem;
    vertical-align: middle;
}

.page-tab.active .tab-count {
    background: rgba(0, 210, 120, 0.2);
}

.top-story-main .story-image {
    height: 75px;
}

.top-story-main h3 {
    font-size: 1.15rem;
}

/* --- Analysis Banner (thematic gradient) --- */
.analysis-banner {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.analysis-banner-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.analysis-banner-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.9);
}

/* --- Top Story clickable link wrapper --- */
.top-story-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.top-story-link:hover {
    color: inherit;
}

.top-story-link h3 {
    color: #F5F0E8;
}

.top-story-link:hover h3 {
    color: #34d399;
}

/* --- Article toggle link on analyses.html --- */
.article-toggle-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    text-decoration: none;
    padding: 0.5rem 0;
    margin-right: 1rem;
}

.article-toggle-link:hover {
    text-decoration: underline;
}

/* --- Analysis title links on analyses.html --- */
.analysis-full h2 a {
    color: inherit;
    text-decoration: none;
}

.analysis-full h2 a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   PAGES ANALYSE INDIVIDUELLES
   ═══════════════════════════════════════════════════════════════ */

.analyse-banner-hero {
    padding: 3rem 0 2.5rem;
    color: white;
    position: relative;
}

.analyse-breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.analyse-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.analyse-breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.analyse-breadcrumb span {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.analyse-category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.analyse-hero-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 800px;
}

.analyse-hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.82rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

.analyse-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.analyse-author {
    font-weight: 700;
}

.analyse-article {
    max-width: 740px;
    margin: 2.5rem auto 4rem;
}

.analyse-lead {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.analyse-body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.analyse-body p {
    margin-bottom: 1.25rem;
}

.analyse-body h2 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.analyse-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 0 6px 6px 0;
}

.analyse-sources {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.analyse-sources h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.analyse-sources ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.analyse-sources li a {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    background: rgba(16,185,129,0.08);
    border-radius: 3px;
}

.analyse-sources li a:hover {
    background: rgba(16,185,129,0.15);
    text-decoration: underline;
}

.analyse-nav-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.analyse-back-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.analyse-back-link:hover {
    background: var(--accent);
    color: white;
}

/* Responsive analyse pages */
@media (max-width: 768px) {
    .analyse-hero-title {
        font-size: 1.4rem;
    }

    .analyse-banner-hero {
        padding: 2rem 0 1.5rem;
    }

    .analyse-article {
        margin: 1.5rem auto 2rem;
    }

    .analyse-body {
        font-size: 0.95rem;
    }
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2.5rem;
}

/* Sidebar — sticky on desktop */
.col-side {
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Sidebar */
.sidebar-block {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.sidebar-title {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: rgba(255,255,255,0.9);
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0;
}

.sidebar-nav a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    font-weight: 500;
}

/* Single hover style — professional */
.sidebar-nav li a:hover {
    border-left-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.sidebar-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.sidebar-more:hover {
    color: #ffffff;
}

.sidebar-text {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Market Table (sidebar) */
.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

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

.market-row-name {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    flex: 1;
}

.market-row-price {
    text-align: right;
    margin: 0 0.75rem;
    color: rgba(255,255,255,0.6);
}

.market-row-change {
    min-width: 56px;
    text-align: right;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    font-size: 0.78rem;
}

.market-row-change.positive { color: #34d399; background: none; }
.market-row-change.negative { color: #f87171; background: none; }

.market-row-link {
    display: flex;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
    justify-content: space-between;
}
.market-row-link::after {
    content: '\2197';
    font-size: 0.6rem;
    opacity: 0;
    margin-left: 0.3rem;
    transition: opacity 0.15s;
    color: var(--accent);
}
.market-row:hover .market-row-link::after {
    opacity: 0.6;
}

.market-row-separator {
    border-bottom: none;
    padding: 0.6rem 0 0.2rem 0;
}
.market-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* Label ETF proxy pour cohérence sidebar/briefing (INSTRUCTION 5) */
.etf-proxy-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.35);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.etf-ticker {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    margin-left: 0.2rem;
}

/* ============================================
   News List Items (home page)
   ============================================ */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.news-list-item {
    background: var(--navy);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.news-list-item.has-thumb {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.news-list-item.has-thumb .news-list-body {
    padding: 0.85rem 1.1rem 1rem;
}

.news-list-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3);
}

.news-list-body {
    flex: 1;
    min-width: 0;
}

.news-list-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    order: -1;
}

.news-list-summary {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    margin-top: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-list-source {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.news-list-item h3 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.news-list-item h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-list-item h3 a:hover {
    color: var(--accent-light);
}

/* Couleurs adaptées au fond vert foncé des cartes */
.news-list-item .source-name {
    color: #ffffff;
    font-size: 0.72rem;
}

.news-list-item .source-name:hover {
    color: #ffffff;
}

.news-list-item .news-time {
    color: rgba(255,255,255,0.45);
    font-size: 0.68rem;
}

.news-list-item .rubrique-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 0.68rem;
}

/* Impact Dot */
.impact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-left: 0.5rem;
    animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Category Trend Banner --- */
/* --- Ticker défilant (Bloomberg-style) --- */
.ticker-wrapper {
    overflow: hidden;
    background: var(--navy);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.25rem;
    padding: 0.6rem 0;
}
.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform;
}
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.15s;
}
.ticker-item:hover {
    color: var(--accent-light);
}
.ticker-source {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #34D399;
    opacity: 0.9;
    flex-shrink: 0;
}
.ticker-headline {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
}
.ticker-sep {
    color: #34D399;
    opacity: 0.5;
    margin: 0 0.75rem;
    font-size: 0.7rem;
}

/* No Results */
.no-results {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-muted);
    padding: 2rem 0;
    font-style: italic;
}

/* ============================================
   Page Header (category pages)
   ============================================ */
.page-header {
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    background: #006650;
    border-radius: 12px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.page-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* ============================================
   Search Results
   ============================================ */
#search-results {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-results-header h2 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
}

.close-search {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.15s ease;
}

.close-search:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   Data Tables (commodities, etf)
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

.data-table thead th {
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--text-primary);
    font-weight: 700;
}

.data-table thead th:first-child {
    border-radius: 0;
}

.data-table thead th:last-child {
    border-radius: 0;
}

.data-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.data-table thead th.sortable::after {
    content: '\2195';
    position: absolute;
    right: 0.4rem;
    opacity: 0.3;
    font-size: 0.7rem;
}

.data-table thead th.sortable.sort-asc::after {
    content: '\2191';
    opacity: 0.8;
}

.data-table thead th.sortable.sort-desc::after {
    content: '\2193';
    opacity: 0.8;
}

.data-table .positive { color: var(--accent); font-weight: 700; }
.data-table .negative { color: var(--accent); font-weight: 700; }

/* Breadcrumbs */
.breadcrumb {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--border-color);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Analysis Section — Full Articles
   ============================================ */
.analysis-full {
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    background: var(--navy);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.analysis-full::before {
    display: none;
}

.analysis-full:hover::before {
    display: none;
}

.analysis-full h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    color: #F5F0E8;
    transition: color 0.15s ease;
}

.analysis-full h2:hover {
    color: var(--accent);
    cursor: pointer;
}

.analysis-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    color: #34d399;
    background: none;
    border: 1px solid #34d399;
}

.analysis-excerpt {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.analysis-meta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    gap: 1rem;
    letter-spacing: 0.3px;
}

/* Article body */
.article-body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.9);
    max-width: 720px;
}

.article-body p {
    margin-bottom: 1.35rem;
}

.article-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: #F5F0E8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body blockquote {
    border-left: 3px solid #34d399;
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background: rgba(255, 255, 255, 0.05);
    font-style: italic;
    color: rgba(245, 240, 232, 0.8);
}

.article-body .data-highlight {
    display: inline;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 0.1rem 0.3rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-sources {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.5);
}

.article-sources a {
    color: #34d399;
    text-decoration: none;
}

.article-sources a:hover {
    text-decoration: underline;
}

/* Toggle article expand */
.article-toggle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    background: none;
    border: 1px solid #34d399;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.75rem;
}

.article-toggle:hover {
    background: #34d399;
    color: var(--navy);
}

.article-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content.expanded {
    display: block;
}

/* ============================================
   Market Grid
   ============================================ */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.market-card {
    background: var(--navy);
    padding: 1.25rem;
    transition: background 0.15s ease;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md, 8px);
}

.market-card:hover {
    background: var(--accent-dark);
}

.market-card.featured {
    grid-column: span 2;
    background: var(--navy);
}

.market-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.market-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-tertiary);
}

.market-header h3 {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
}

.market-symbol {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.market-price {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.market-change {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
}

.market-change.positive { color: var(--accent); }
.market-change.negative { color: var(--accent); }

.market-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.market-chart {
    display: none;
}

/* ============================================
   Commodities / ETF Overviews
   ============================================ */
.commodities-overview,
.etf-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.commodity-item {
    background: var(--bg-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commodity-icon { font-size: 1.25rem; }
.commodity-name { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-secondary); flex-grow: 1; }
.commodity-price { font-family: var(--font-sans); font-size: 0.88rem; font-weight: 700; }
.commodity-change { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; }
.commodity-change.positive { color: var(--accent); }
.commodity-change.negative { color: var(--accent); }

.etf-card { background: var(--navy); padding: 1rem; color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md, 8px); }
.etf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.etf-ticker { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: #ffffff; }
.etf-provider { font-family: var(--font-sans); font-size: 0.62rem; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.5px; }
.etf-name { font-family: var(--font-sans); font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 0.5rem; }
.etf-flow { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; }
.etf-flow.positive { color: var(--accent); }
.etf-flow.negative { color: var(--accent); }

/* ============================================
   Analysis Grid
   ============================================ */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.analysis-card {
    padding: 1.5rem;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.analysis-card.featured-analysis {
    grid-column: span 2;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
}

.analysis-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: none;
    border: 1px solid var(--accent);
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.75rem;
}

.analysis-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #F5F0E8;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.analysis-card p {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ============================================
   Sources Grid
   ============================================ */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.source-category h3 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.source-item {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
}

.source-item:hover {
    color: var(--accent);
}

/* ============================================
   Loading
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.88rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Footer — Dark, Clean
   ============================================ */
.footer {
    background: var(--navy);
    color: #b0b0b0;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section strong {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: #8a8a8a;
    line-height: 1.65;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: #8a8a8a;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-disclaimer {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: #6a6a6a;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: #5a5a5a;
}

/* ============================================
   Responsive
   ============================================ */

/* ============================================
   NEW UX COMPONENTS — Feb 2026
   ============================================ */

/* --- Hero CTA Button --- */
.hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 2.2rem;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
    background: var(--accent-dark, #06402A);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 64, 42, 0.35);
}

/* Desktop header layout */
@media (min-width: 769px) {
    .header-top {
        gap: 0.5rem;
    }
    .header-left {
        flex-shrink: 0;
    }
    .header-controls {
        flex-shrink: 0;
        gap: 0.5rem;
    }
}

/* --- Source Badges --- */
.source-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.source-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-tertiary, #f4f4f5);
    border: 1px solid var(--border, #e4e4e7);
    border-radius: 4px;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.source-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Load More Button --- */
.load-more-container {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}
.load-more-btn {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.load-more-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Equal Height Story Cards --- */
.top-stories-grid {
    align-items: stretch;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .market-card.featured,
    .analysis-card.featured-analysis {
        grid-column: span 1;
    }

    .nav-overlay-link {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .top-stories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-top {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .header-search {
        flex: 1;
        min-width: 0;
    }

    .search-input {
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .logo-img {
        height: 54px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Mobile overlay: full-screen, slightly smaller links */
    .nav-overlay-link {
        font-size: 1.25rem;
        padding: 0.75rem 0;
    }

    .nav-overlay-link.nav-indent {
        font-size: 1.05rem;
    }

    .nav-overlay-content {
        padding: 1.5rem 1.25rem;
    }

    /* Hide CTA button in header on mobile */
    .header-cta-btn {
        display: none;
    }

    .analysis-full h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .nav-link {
        font-size: 0.62rem;
        padding: 0.6rem 0.65rem;
        letter-spacing: 0.5px;
    }

    .market-grid,
    .commodities-overview,
    .etf-highlights {
        grid-template-columns: 1fr;
    }

    .source-list-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .top-story-main h3 {
        font-size: 1.15rem;
    }

    .top-story h3 {
        font-size: 0.95rem;
    }
}

/* ============================================
   Chart Section — Data Visualization
   ============================================ */
.chart-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 1rem;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    margin: 1.5rem 0;
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 1rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-gold .legend-color {
    background: #047857;
}

.legend-btc .legend-color {
    background: #34D399;
    background: repeating-linear-gradient(
        90deg,
        #34D399,
        #34D399 4px,
        transparent 4px,
        transparent 8px
    );
    border: 2px solid #34D399;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-value {
    font-weight: 600;
}

.legend-value.positive {
    color: var(--accent);
}

.legend-value.negative {
    color: var(--accent);
}

.chart-insight {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .chart-section {
        padding: 1.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .section-subtitle {
        margin-left: 0;
    }

    .chart-container {
        height: 260px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: var(--navy);
    padding: 3rem 0;
    margin-top: 2rem;
}

.newsletter-box {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-text {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-input-group {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 460px;
    margin: 0 auto 0.75rem;
}

.newsletter-input {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    border: none;
    padding: 0.75rem 1rem;
    flex: 1;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.newsletter-disclaimer {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-disclaimer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.newsletter-disclaimer a:hover {
    color: white;
}

.newsletter-success p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: #10b981;
    font-weight: 600;
}

@media (max-width: 480px) {
    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-btn {
        padding: 0.75rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header, .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .news-card {
        break-inside: avoid;
        border: 1px solid rgba(255,255,255,0.08);
    }
}

/* Mobile header-controls adjustments */
@media (max-width: 768px) {
    .header-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Market Status Indicator
   ============================================ */
.market-status {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

body.page-markets .market-status {
    display: flex;
}

.market-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.market-status.open .market-status-dot {
    background: var(--accent);
}

.market-status.closed .market-status-dot {
    background: var(--accent);
    animation: none;
}

.market-status.pre-market .market-status-dot,
.market-status.after-hours .market-status-dot {
    background: #34D399;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.market-status-text {
    color: var(--text-secondary);
}

.market-status.open .market-status-text {
    color: var(--accent);
}

.market-status.closed .market-status-text {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .market-status {
        display: none;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Reduced Motion — Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .nav-overlay {
        transition: none;
    }
}

/* Print styles */
@media print {
    .header, .footer, .back-to-top, .nav-overlay {
        display: none !important;
    }
    .main-content {
        padding: 0;
    }
    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }
}


/* =============================================
   VAGUE 1 — ENHANCED MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    /* ── Mobile Header ── */
    .header-top {
        padding: 0.4rem 0.75rem;
    }
    .header-controls {
        gap: 0.35rem;
    }
    .header-search {
        max-width: 140px;
    }
    .header-search input {
        font-size: var(--fs-xs);
        padding: 0.3rem 0.5rem;
    }
    .search-btn {
        font-size: var(--fs-xs);
        padding: 0.3rem 0.6rem;
    }

    /* ── Hero Mobile ── */
    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }
    .hero .hero-title {
        font-size: var(--fs-xl);
        line-height: var(--lh-tight);
    }
    .hero-cta {
        padding: 0.6rem 1.3rem;
        font-size: var(--fs-sm);
    }

    /* ── Top Stories Stack ── */
    .top-stories-grid {
        grid-template-columns: 1fr;
    }
    .top-story,
    .top-story-main {
        padding: var(--space-md);
    }

    /* ── Chart Container ── */
    .chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }

    /* ── Sidebar collapse ── */
    .two-col {
        grid-template-columns: 1fr;
    }
    .col-side {
        order: 2;
        margin-top: var(--space-xl);
        position: static;
    }

    /* ── Newsletter Mobile ── */
    .newsletter-form {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* ── Footer Mobile ── */
    .footer .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    /* ── Section spacing ── */
    .section-title {
        font-size: var(--fs-lg);
    }
    .manifesto {
        padding: var(--space-xl) var(--space-md);
    }
}

@media (max-width: 480px) {
    /* ── Extra-small tweaks ── */
    .hero .hero-title {
        font-size: var(--fs-lg);
    }
    .hero {
        padding: 1.5rem 0.75rem;
    }
    .market-status {
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
    }
    .top-story h3,
    .top-story-main h3 {
        font-size: var(--fs-sm);
    }
}


/* ============================================
   Demandes 13-16 : Cartes A la une redesign
   ============================================ */

/* #13 — Cards avec bande de couleur degradee, radius 12px, ombre */
.top-story {
    border-left: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.top-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transition: height var(--transition-normal);
}

/* Bandes degradees par source — palette verte premium */
.top-story:nth-child(1)::before {
    background: linear-gradient(to right, #06402A, #006650);
}

.top-story:nth-child(2)::before {
    background: linear-gradient(to right, #0A3D1F, #1A7038);
}

.top-story:nth-child(3)::before {
    background: linear-gradient(to right, #064E3B, #047857);
}

.top-story-main {
    border-left: none;
}

/* #14 — Effet hover : translateY(-6px), ombre intensifiee, bande 6->8px */
.top-story:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-left: none;
}

.top-story:nth-child(2):hover,
.top-story:nth-child(3):hover {
    border-left: none;
}

.top-story:hover::before {
    height: 8px;
}

/* #15 — Badge source plus visible avec couleur par source */
.top-story .source-name {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.top-story:nth-child(1) .source-name {
    background: #DCFCE7;
    color: #052E16;
}

.top-story:nth-child(2) .source-name {
    background: #D1FAE5;
    color: #064E3B;
}

.top-story:nth-child(3) .source-name {
    background: #ECFDF5;
    color: #065F46;
}

/* #16 — Footer de carte : date a gauche, lien Lire a droite, border-top */
.top-story p {
    flex-grow: 1;
}

.top-story .news-time {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}


.top-story:hover .news-time::after {
    color: var(--accent);
}


/* ============================================
   Desktop: drawer & hamburger adjustments
   ============================================ */

@media (min-width: 769px) {
    /* Hamburger reste visible sur desktop pour acceder au menu complet */
    .menu-trigger {
        display: flex !important;
    }

    /* Desktop drawer — base styles already handle slide-in, just adjust sizing */
    .nav-overlay .nav-overlay-content {
        width: 320px;
        max-width: 320px;
        padding: 2.5rem 2rem;
    }

    .nav-overlay .nav-overlay-link {
        font-size: 1.125rem;
        padding: 0.75rem 0.5rem;
    }

    .nav-overlay .nav-links > .nav-overlay-link:first-child {
        font-size: 1.25rem;
    }
}
/* ═══════════════════════════════════════════════════════════════
   VAGUE 8 — Article du jour & Rubriques
   ═══════════════════════════════════════════════════════════════ */

/* --- Article du jour --- */
.article-du-jour-section {
    padding-bottom: 2rem;
}

.article-du-jour {
    background: var(--navy);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
}

.article-du-jour::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 64, 42, 0.95) 0%, rgba(6, 64, 42, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.article-du-jour > * {
    position: relative;
    z-index: 1;
}

.article-du-jour-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-du-jour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}

.article-du-jour-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.article-du-jour-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.article-du-jour-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Points clés */
.article-du-jour-points-cles {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.article-du-jour-points-cles h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.article-du-jour-points-cles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-du-jour-points-cles li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.article-du-jour-points-cles li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Contenu de l'article */
.article-du-jour-content {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.article-du-jour-content p {
    margin-bottom: 1rem;
}

.article-section-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.8rem;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
}

/* Tags */
.article-du-jour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.article-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.article-du-jour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Sources Tavily */
.article-du-jour-sources {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.article-du-jour-sources h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
}

.article-du-jour-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-du-jour-sources li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.article-du-jour-sources a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.article-du-jour-sources a:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
}

.source-domain {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.article-du-jour-placeholder {
    text-align: center;
    padding: 2rem;
}

.article-du-jour-empty {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ─── Article du jour — Carte compacte (Analyses + rubriques) ─── */

.article-du-jour-card {
    background: linear-gradient(135deg, rgba(6, 64, 42, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.article-du-jour-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 4px 0 0 4px;
}

.article-du-jour-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.article-du-jour-card-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.article-du-jour-card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-du-jour-card-sentiment {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}
.sentiment-bullish { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.sentiment-bearish { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.sentiment-neutral { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }

.article-du-jour-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-du-jour-card-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.article-du-jour-card-points {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.article-du-jour-card-points li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.article-du-jour-card-points li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: #10b981;
}

.article-du-jour-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.article-du-jour-card-tags .article-tag {
    font-size: 0.68rem;
}

@media (max-width: 768px) {
    .article-du-jour-card {
        padding: 1rem;
    }
    .article-du-jour-card-title {
        font-size: 1rem;
    }
}

/* ─── Briefing Stratégique IA ─── */

/* Badge spécifique au briefing (vs l'article classique) */
.briefing-badge {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 700;
}

/* Indicateur de sentiment global dans le header */
.briefing-sentiment-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Signal du jour (INSTRUCTION 12) ── */
.signal-du-jour {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    margin: 0.5rem 0 1rem;
}

.signal-du-jour-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
    margin-bottom: 0.3rem;
}

.signal-du-jour-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
    margin: 0;
}

/* ── Thèmes à surveiller (INSTRUCTION 4) ── */
.briefing-positionnement {
    margin-top: 1.5rem;
}

.pos-item {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.pos-item.pos-long { border-left-color: #16a34a; }
.pos-item.pos-short { border-left-color: #dc2626; }
.pos-item.pos-hedge { border-left-color: #eab308; }
.pos-item.pos-neutral { border-left-color: #94a3b8; }

.pos-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pos-actif {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.95);
}

.pos-direction {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.pos-long .pos-direction { color: #16a34a; }
.pos-short .pos-direction { color: #dc2626; }
.pos-hedge .pos-direction { color: #eab308; }

.pos-conviction {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.pos-details {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.3rem 0 0;
    line-height: 1.4;
}

.pos-disclaimer {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Horodatage précis du briefing (INSTRUCTION 10) ── */
.briefing-timestamp {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.briefing-timestamp-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.briefing-market-status {
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── Titre de section (Signaux / Risk Radar) ── */
.briefing-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

/* ── Cartes de signaux géopolitiques ── */
.briefing-signaux {
    margin-top: 1.5rem;
}

.signal-card {
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.signal-card.severity-urgent {
    border-left-color: #dc2626;
}

.signal-card.severity-attention {
    border-left-color: #eab308;
}

.signal-card.severity-info {
    border-left-color: #3b82f6;
}

.signal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.signal-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.signal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.signal-severity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.signal-severity-badge.severity-urgent {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
}

.signal-severity-badge.severity-attention {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.signal-severity-badge.severity-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.signal-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0.3rem 0 0.8rem;
}

/* ── Interconnexions (la valeur ajoutée Inflexion) ── */
.signal-interconnexions {
    margin-top: 0.6rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.inter-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.5rem;
}

.inter-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
    line-height: 1.4;
    flex-wrap: wrap;
}

.inter-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    flex-shrink: 0;
}

.inter-impact {
    color: #fff;
    font-weight: 600;
}

.inter-explication {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

/* ── Régions impactées ── */
.signal-regions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.region-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* ── Risk Radar ── */
.briefing-risk-radar {
    margin-top: 1.5rem;
}

.risk-item {
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.risk-item.severity-urgent {
    border-left-color: #ef4444;
    background: rgba(220, 38, 38, 0.15);
}

.risk-item.severity-attention {
    border-left-color: #eab308;
}

.risk-item.severity-info {
    border-left-color: #3b82f6;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.risk-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.risk-title {
    font-size: 0.9rem;
    color: #fff;
    flex: 1;
}

.risk-severity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.risk-severity-badge.severity-urgent {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
}

.risk-severity-badge.severity-attention {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.risk-severity-badge.severity-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.risk-description {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.risk-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
}

.risk-proba {
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.risk-impact {
    font-style: italic;
}

/* ── Agenda de la semaine (INSTRUCTION 3) ── */
.briefing-agenda {
    margin-top: 1.5rem;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    font-weight: 700;
    color: #10b981;
    min-width: 3.5rem;
}

.agenda-heure {
    color: rgba(255, 255, 255, 0.5);
    min-width: 4rem;
    font-size: 0.75rem;
}

.agenda-event {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.agenda-impact {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    max-width: 12rem;
    text-align: right;
}

/* ── Sources & Méthodologie (bibliographie) ── */
.briefing-bibliography {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bib-score-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.bib-score-label {
    color: rgba(255, 255, 255, 0.6);
}

.bib-score-value {
    font-weight: 700;
}

.bib-score-detail {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.bib-subsection-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.8rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bib-api-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bib-api-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 4px;
    font-size: 0.72rem;
    color: #10b981;
    text-decoration: none;
    transition: background 0.2s;
}

.bib-api-tag:hover {
    background: rgba(16, 185, 129, 0.25);
}

.bib-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bib-article-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bib-article-item:last-child {
    border-bottom: none;
}

.bib-article-link {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.3;
}

.bib-article-link:hover {
    color: #10b981;
    text-decoration: underline;
}

.bib-article-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

.bib-methodology-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* ── Responsive briefing (mobile) ── */
@media (max-width: 768px) {
    .signal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .risk-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .inter-item {
        flex-direction: column;
        gap: 0.1rem;
    }

    .risk-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .agenda-item {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .agenda-impact {
        max-width: 100%;
        text-align: left;
    }
}

/* --- Rubrique Filters --- */
.rubrique-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.rubrique-filter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.rubrique-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.rubrique-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* --- Rubrique Badges (dans les news) --- */
.rubrique-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.3rem;
}

.rubrique-badge[data-rubrique="geopolitique"] {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.rubrique-badge[data-rubrique="marches"] {
    background: rgba(0, 210, 120, 0.1);
    color: var(--accent);
}

.rubrique-badge[data-rubrique="crypto"] {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.rubrique-badge[data-rubrique="matieres_premieres"] {
    background: rgba(4, 120, 87, 0.1);
    color: #047857;
}

.rubrique-badge[data-rubrique="ai_tech"] {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* Hide articles filtered out */
.news-item[data-rubrique].hidden-rubrique {
    display: none;
}

/* --- Featured analysis in rubric pages --- */
.rubrique-featured-analysis {
    margin: 1.5rem 0 2rem;
}

.rubrique-featured-analysis .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.featured-analysis-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.featured-analysis-banner {
    min-width: 200px;
    max-width: 200px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.featured-analysis-label {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.featured-analysis-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.featured-analysis-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: #F5F0E8;
}

.featured-analysis-body p {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.8);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.featured-analysis-meta {
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.6);
}

@media (max-width: 768px) {
    .featured-analysis-card {
        flex-direction: column;
    }

    .featured-analysis-banner {
        min-width: 100%;
        max-width: 100%;
        min-height: 80px;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .article-du-jour {
        padding: 1.2rem 1rem;
    }

    .article-du-jour-title {
        font-size: 1.25rem;
    }

    .rubrique-filters {
        gap: 0.3rem;
    }

    .rubrique-filter {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .news-list-thumb {
        height: 140px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SUPABASE — Auth, Watchlist, Toast
   ═══════════════════════════════════════════════════════════════ */

/* --- Auth Button (header) --- */
.header-auth {
    position: relative;
    margin-left: 0.25rem;
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.auth-btn:hover,
.auth-btn.logged-in {
    background: var(--accent);
    color: #000;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.user-dropdown.active {
    display: block;
}

.user-dropdown span,
.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.user-dropdown span {
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent);
}

/* --- Auth Modal --- */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    width: 90%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #999;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.auth-modal-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    text-align: center;
}

.auth-modal-subtitle {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1.8rem;
    text-align: center;
}

.auth-error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.auth-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: #f7f7f7;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #aaa;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 94, 45, 0.1);
    background: #fff;
}

.auth-submit-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.auth-submit-btn:hover {
    background: #0d4e25;
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-toggle {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease;
}

.auth-toggle:hover {
    color: #0d4e25;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   WATCHLIST AVANCÉE — Données live, Alertes croisées,
   Partage, Annotations, Rapports
   ═══════════════════════════════════════════════════════════════ */

.watchlist-section {
    padding: 2rem 0;
}

/* Toolbar : formulaire + actions */
.wl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.watchlist-add-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 280px;
    flex-wrap: wrap;
}

.watchlist-input {
    flex: 1;
    min-width: 150px;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.watchlist-input:focus {
    border-color: var(--accent);
    outline: none;
}

.watchlist-select {
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
}

.watchlist-add-btn {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.watchlist-add-btn:hover {
    opacity: 0.85;
}

/* Actions (partager, rapport) */
.wl-actions {
    display: flex;
    gap: 0.4rem;
}

.wl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wl-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.wl-action-btn svg {
    flex-shrink: 0;
}

/* Badges d'alertes sur le titre */
.wl-alerts-badge-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.wl-alerts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    margin-left: 0.4rem;
    vertical-align: middle;
    line-height: 1;
}

/* ─── Grille d'actifs enrichie ─── */
.watchlist-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.watchlist-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.wl-item-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.watchlist-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--accent);
}

.wl-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.watchlist-symbol {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.watchlist-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Données live */
.wl-item-center {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.wl-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.wl-change {
    font-size: 0.75rem;
    font-weight: 600;
    font-feature-settings: "tnum";
}

.wl-change-up {
    color: #16a34a;
}

.wl-change-down {
    color: #dc2626;
}

.wl-source {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Actions et badges par item */
.wl-item-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.wl-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
}

.wl-annotate-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.watchlist-item:hover .wl-annotate-btn {
    opacity: 0.7;
}

.wl-annotate-btn:hover {
    opacity: 1 !important;
    color: var(--accent);
    background: var(--bg-secondary);
}

.wl-annotate-btn.has-annotations {
    opacity: 1;
    color: var(--accent);
}

.watchlist-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.watchlist-item:hover .watchlist-remove {
    opacity: 0.7;
}

.watchlist-remove:hover {
    opacity: 1 !important;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.watchlist-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* ─── Alertes croisées ─── */
.wl-cross-alerts {
    margin-top: 1.5rem;
}

.wl-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.wl-alerts-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.wl-alerts-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

.wl-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wl-alert-item {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
}

.wl-alert-urgent {
    background: rgba(220, 38, 38, 0.04);
    border-left-color: #dc2626;
}

.wl-alert-attention {
    background: rgba(217, 119, 6, 0.04);
    border-left-color: #d97706;
}

.wl-alert-info {
    background: var(--bg-secondary);
    border-left-color: #3b82f6;
}

.wl-alert-item-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.wl-alert-type-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.wl-alert-symbol {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
}

.wl-alert-severity-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wl-alert-urgent .wl-alert-severity-badge {
    background: #fef2f2;
    color: #dc2626;
}

.wl-alert-attention .wl-alert-severity-badge {
    background: #fffbeb;
    color: #d97706;
}

.wl-alert-info .wl-alert-severity-badge {
    background: #eff6ff;
    color: #3b82f6;
}

.wl-alert-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.wl-alert-title {
    font-size: 0.82rem;
    color: var(--text-primary);
    display: block;
    line-height: 1.35;
}

.wl-alert-item a {
    text-decoration: none;
}

.wl-alert-item a:hover .wl-alert-title {
    color: var(--accent);
}

.wl-alert-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0;
    line-height: 1.4;
}

.wl-alert-source {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
}

.wl-no-alerts {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
}

/* ─── Watchlist partagée ─── */
.shared-watchlist-view {
    padding: 1.5rem 0;
}

.wl-shared-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wl-shared-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.wl-shared-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

.wl-shared-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.wl-shared-close:hover {
    color: var(--text-primary);
}

.wl-shared-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.wl-shared-item {
    opacity: 0.9;
    cursor: default;
}

.wl-copy-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.wl-copy-all-btn:hover {
    opacity: 0.85;
}

.wl-shared-login-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Panneau d'annotations ─── */
.annotation-panel {
    margin-top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

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

.annot-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.annot-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.annot-close:hover {
    color: var(--text-primary);
}

.annot-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.annot-item {
    padding: 0.7rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm, 6px);
    border-left: 3px solid var(--border-color);
}

.annot-item.annot-own {
    border-left-color: var(--accent);
}

.annot-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.annot-author {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-primary);
}

.annot-date {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.annot-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.annot-delete:hover {
    opacity: 1;
    color: #ef4444;
}

.annot-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
}

.annot-empty,
.annot-loading {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.82rem;
}

.annot-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.annot-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    resize: vertical;
}

.annot-input:focus {
    border-color: var(--accent);
    outline: none;
}

.annot-submit {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.annot-submit:hover {
    opacity: 0.85;
}

/* --- Toast Notification --- */
.inflexion-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.inflexion-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Responsive : Desktop ─── */
@media (min-width: 769px) {
    .watchlist-items {
        grid-template-columns: 1fr;
    }

    .watchlist-item {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
}

/* ─── Responsive : Tablette ─── */
@media (max-width: 1024px) {
    .wl-action-btn span {
        display: none;
    }
}

/* ─── Responsive : Mobile ─── */
@media (max-width: 768px) {
    .header-auth {
        margin-left: 0.4rem;
    }

    .auth-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .wl-toolbar {
        flex-direction: column;
    }

    .watchlist-add-form {
        flex-direction: column;
        min-width: unset;
    }

    .wl-actions {
        width: 100%;
    }

    .wl-action-btn {
        flex: 1;
        justify-content: center;
    }

    .wl-action-btn span {
        display: inline;
    }

    .watchlist-items {
        grid-template-columns: 1fr;
    }

    .watchlist-item {
        flex-wrap: wrap;
    }

    .wl-item-center {
        flex-direction: row;
        gap: 0.4rem;
        margin-left: auto;
    }

    .wl-item-right {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.3rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.3rem;
    }

    .wl-annotate-btn,
    .watchlist-remove {
        opacity: 0.6;
    }

    .wl-alert-item {
        padding: 0.6rem 0.8rem;
    }

    .annotation-panel {
        padding: 0.8rem;
    }

    .annot-form {
        flex-direction: column;
    }

    .annot-submit {
        align-self: flex-end;
    }
}

/* ─── Responsive : Petit mobile ─── */
@media (max-width: 480px) {
    .watchlist-label {
        max-width: 80px;
    }

    .wl-shared-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wl-shared-close {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FRED — Indicateurs Macroéconomiques
   ═══════════════════════════════════════════════════════════════ */

.macro-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.macro-placeholder {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.macro-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
    transition: background var(--transition-fast);
}

.macro-card:hover {
    background: var(--bg-tertiary, rgba(0,0,0,0.04));
}

.macro-card-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.macro-card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.macro-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 100%;
    line-height: 1.2;
}

.macro-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.macro-change {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}

.macro-change-positive {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.macro-change-negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.sidebar-source {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    opacity: 1;
    margin-top: 0.5rem;
    text-align: right;
}

/* ─── Fear & Greed Index Widget ───────────────────────── */

.fng-widget {
    padding: 0.5rem 0;
}

.fng-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.fng-gauge {
    width: 100%;
    max-width: 200px;
}

.fng-gauge-svg {
    width: 100%;
    height: auto;
    display: block;
}

.fng-value-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-top: -0.5rem;
}

.fng-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fng-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fng-changes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
}

.fng-change-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.fng-change-period {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.fng-change-value {
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fng-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
}

.fng-scale-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
}

.fng-extreme-fear { color: #dc2626; }
.fng-neutral { color: #eab308; }
.fng-extreme-greed { color: #16a34a; }

/* ─── Trending Crypto Widget ─── */
.crypto-global-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.crypto-stat-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--bg-secondary, rgba(0,0,0,0.03));
    color: var(--text-muted);
    white-space: nowrap;
}

.crypto-stat-chip strong {
    color: var(--text-primary);
    font-weight: 600;
}

.trending-coins {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.trending-placeholder,
.calendar-placeholder {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.trending-coin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
    transition: background var(--transition-fast);
}

.trending-coin:hover {
    background: var(--bg-tertiary, rgba(0,0,0,0.05));
}

.trending-coin-rank {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    min-width: 1rem;
    text-align: center;
}

.trending-coin-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trending-coin-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.trending-coin-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-coin-symbol {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trending-coin-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex-shrink: 0;
}

.trending-coin-usd {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.trending-coin-change {
    font-size: 0.65rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.trending-coin-change.up { color: #16a34a; }
.trending-coin-change.down { color: #dc2626; }

/* ─── Economic Calendar Widget ─── */
.economic-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.calendar-event {
    padding: 0.5rem 0.6rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
    border-left: 3px solid var(--text-muted);
    transition: background var(--transition-fast);
}

.calendar-event:hover {
    background: var(--bg-tertiary, rgba(0,0,0,0.05));
}

.calendar-event.impact-high {
    border-left-color: #dc2626;
}

.calendar-event.impact-medium {
    border-left-color: #34D399;
}

.calendar-event.impact-low {
    border-left-color: #6b7280;
}

.calendar-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.calendar-event-country {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-event-date {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.calendar-event-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.calendar-event-values {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.calendar-event-val {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.calendar-event-val strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ─── Forex Widget (Alpha Vantage) ─── */
.forex-rates {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.forex-placeholder,
.sector-placeholder,
.movers-placeholder,
.defi-placeholder,
.yields-placeholder {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.forex-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.6rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
}

.forex-pair-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.forex-pair-rate {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ─── Sector Performance ─── */
.sector-performance {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sector-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.sector-name {
    font-size: 0.68rem;
    color: var(--text-muted);
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sector-bar-track {
    width: 50px;
    height: 4px;
    background: var(--bg-secondary, rgba(0,0,0,0.05));
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
}

.sector-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.sector-bar-fill.up { background: #16a34a; }
.sector-bar-fill.down { background: #dc2626; }

.sector-pct {
    font-size: 0.68rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3.5rem;
    text-align: right;
}

.sector-pct.up { color: #16a34a; }
.sector-pct.down { color: #dc2626; }

/* ─── Top Movers ─── */
.top-movers { /* container */ }

.movers-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.movers-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--bg-secondary, rgba(0,0,0,0.06));
}

.gainer-title { color: #16a34a; }
.loser-title { color: #dc2626; }

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.72rem;
}

.mover-ticker {
    font-weight: 600;
    color: var(--text-primary);
}

.mover-pct {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mover-item.gainer .mover-pct { color: #16a34a; }
.mover-item.loser .mover-pct { color: #dc2626; }

/* ─── DeFi Section (DefiLlama) ─── */
.defi-summary { margin-bottom: 0.5rem; }

.defi-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.defi-stat-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--bg-secondary, rgba(0,0,0,0.03));
    color: var(--text-muted);
    white-space: nowrap;
}

.defi-stat-chip strong {
    color: var(--text-primary);
    font-weight: 600;
}

.defi-protocols {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.defi-protocol-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
    transition: background var(--transition-fast);
}

.defi-protocol-row:hover {
    background: var(--bg-tertiary, rgba(0,0,0,0.05));
}

.defi-proto-rank {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    min-width: 1rem;
    text-align: center;
}

.defi-proto-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.defi-proto-logo-placeholder {
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.defi-proto-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
}

.defi-proto-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.defi-proto-category {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.defi-proto-tvl {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    flex-shrink: 0;
}

.defi-proto-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.defi-proto-change {
    font-size: 0.62rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.defi-proto-change.up { color: #16a34a; }
.defi-proto-change.down { color: #dc2626; }

/* ─── Yields / APY ─── */
.defi-yields {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.yield-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    background: var(--bg-secondary, rgba(0,0,0,0.02));
    border-radius: var(--radius-sm, 6px);
    transition: background var(--transition-fast);
}

.yield-row:hover {
    background: var(--bg-tertiary, rgba(0,0,0,0.05));
}

.yield-info {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    min-width: 0;
    flex: 1;
}

.yield-project {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.yield-detail {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.yield-data {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    flex-shrink: 0;
}

.yield-apy {
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    font-variant-numeric: tabular-nums;
}

.yield-tvl {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════
   VAGUE 13 — Améliorations visuelles
   ═══════════════════════════════════════════════════════════════ */

/* --- Sidebar cards (box-shadow + border-radius) --- */
.sidebar-card {
    background: var(--navy);
    border-radius: var(--radius-md, 8px);
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    margin-bottom: 1rem;
    transition: box-shadow var(--transition-fast);
}

.sidebar-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== Dark sidebar widget — CSS variable overrides ===== */
.sidebar-card,
.sidebar-block {
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.75);
    --text-muted: rgba(255,255,255,0.55);
    --bg-secondary: rgba(255,255,255,0.06);
    --bg-tertiary: rgba(255,255,255,0.1);
    --border-color: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.08);
    --accent: #34d399;
    color: rgba(255,255,255,0.85);
}

/* Hardcoded background overrides (rgba(0,0,0,…) → rgba(255,255,255,…)) */
.sidebar-card .crypto-stat-chip,
.sidebar-card .messari-global span,
.sidebar-card .defi-stat-chip,
.sidebar-card .wb-country-item,
.sidebar-card .trending-coin,
.sidebar-card .forex-pair,
.sidebar-card .calendar-event,
.sidebar-card .defi-protocol-row,
.sidebar-card .macro-card {
    background: rgba(255,255,255,0.06);
}

.sidebar-card .trending-coin:hover,
.sidebar-card .calendar-event:hover,
.sidebar-card .defi-protocol-row:hover,
.sidebar-card .forex-pair:hover,
.sidebar-card .macro-card:hover {
    background: rgba(255,255,255,0.1);
}

/* Green/red change colors — brighter for dark bg */
.sidebar-card .trending-coin-change.up,
.sidebar-card .defi-proto-change.up,
.sidebar-card .mover-pct.gainer {
    color: #34d399;
}

.sidebar-card .trending-coin-change.down,
.sidebar-card .defi-proto-change.down,
.sidebar-card .mover-pct.loser {
    color: #f87171;
}

/* Fear & Greed needle + center dot — white on dark */
.sidebar-card #fng-needle {
    stroke: #ffffff !important;
}
.sidebar-card .fng-gauge circle {
    fill: #ffffff !important;
}
.sidebar-card .fng-gauge-svg path[stroke="#e5e7eb"] {
    stroke: rgba(255,255,255,0.15);
}

/* Briefing signal cards & risk radar on dark bg */
.sidebar-card .signal-card,
.sidebar-card .risk-item {
    background: rgba(255,255,255,0.05);
}
.sidebar-card .briefing-sentiment-indicator {
    background: rgba(255,255,255,0.05);
}

/* Placeholder text */
.sidebar-card p[class*="-placeholder"] {
    color: rgba(255,255,255,0.45);
}

/* Sidebar details toggle */
.sidebar-details-toggle {
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.sidebar-details-toggle:hover {
    color: #ffffff;
}

/* European market rows on dark bg */
.sidebar-card .eu-market-row:hover {
    background: rgba(255,255,255,0.06);
}

/* World Bank link on dark bg */
.sidebar-card .wb-more-link:hover {
    background: rgba(255,255,255,0.06);
    border-color: #34d399;
}

/* --- SVG sidebar icons --- */
.sidebar-icon {
    vertical-align: -2px;
    margin-right: 4px;
    stroke: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

/* ============================================
   Interactive Sidebar Widgets (TACHE 3)
   ============================================ */

/* Scroll-in animations */
.sidebar-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--transition-fast);
}

.sidebar-card.widget-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for adjacent cards */
.sidebar-card:nth-child(2) { transition-delay: 0.05s; }
.sidebar-card:nth-child(3) { transition-delay: 0.1s; }
.sidebar-card:nth-child(4) { transition-delay: 0.15s; }

/* Data row hover effects */
.market-row:hover,
.macro-card:hover,
.wb-country-item:hover,
.eu-market-row:hover,
.messari-asset:hover,
.defi-protocol:hover {
    background: rgba(16, 94, 45, 0.04);
    border-radius: 4px;
    transition: background 0.15s ease;
}

/* Trend arrows for positive/negative values */
.trend-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 0.15rem;
}

.trend-arrow-up::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #16a34a;
}

.trend-arrow-down::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #dc2626;
}

/* Inline sparkline container */
.sparkline {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.sparkline svg {
    vertical-align: middle;
}

/* Widget toggle button */
.widget-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.6rem;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    float: right;
}

.widget-toggle:hover {
    background: rgba(16, 94, 45, 0.06);
    border-color: var(--accent);
    color: var(--accent);
}

.widget-toggle.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Sortable column headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.sortable-header:hover {
    color: var(--accent);
}

.sortable-header::after {
    content: ' \2195';
    font-size: 0.6rem;
    opacity: 0.4;
}

.sortable-header.sort-asc::after {
    content: ' \2191';
    opacity: 1;
    color: var(--accent);
}

.sortable-header.sort-desc::after {
    content: ' \2193';
    opacity: 1;
    color: var(--accent);
}

/* Macro change arrow indicators - enhanced */
.macro-change-positive::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 4px solid currentColor;
    margin-right: 0.2rem;
    vertical-align: middle;
}

.macro-change-negative::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
    margin-right: 0.2rem;
    vertical-align: middle;
}

/* Value highlight on data change */
@keyframes valueFlash {
    0% { background: rgba(16, 185, 129, 0.15); }
    100% { background: transparent; }
}

.value-updated {
    animation: valueFlash 1s ease-out;
    border-radius: 2px;
}

/* --- Macro grid layout --- */
.macro-indicators {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex-direction: unset;
}

.macro-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm, 6px);
    cursor: default;
    transition: background 0.15s ease;
}

.macro-card-body {
    gap: 0.15rem;
}

.macro-card-icon {
    display: none; /* Remove emoji icons */
}

/* --- Source typography: small-caps instead of red uppercase --- */
.sidebar-source {
    font-variant: small-caps;
    text-transform: none;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    opacity: 1;
    letter-spacing: 0.02em;
    margin-top: 0.6rem;
}

.source-name {
    font-variant: small-caps;
    text-transform: none !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- News list items: card style (reinforced) --- */
/* (consolidated into main .news-list-item definition above) */

/* --- Hide empty sections --- */
.section-empty {
    display: none !important;
}

.widget-empty {
    opacity: 0.4;
    pointer-events: none;
}

/* --- Widget fallback message --- */
.widget-fallback {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 0.8rem 0;
}

/* --- Sidebar collapsible details --- */
.sidebar-details {
    margin-bottom: 1rem;
}

.sidebar-details-toggle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.sidebar-details-toggle:hover {
    color: var(--accent);
}

.sidebar-details-toggle::before {
    content: '▸';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.sidebar-details[open] .sidebar-details-toggle::before {
    transform: rotate(90deg);
}

.sidebar-details-toggle::-webkit-details-marker {
    display: none;
}

/* --- Footer enrichi --- */
.footer-content {
    grid-template-columns: 2fr repeat(3, 1fr) !important;
}

.footer-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.8rem;
}

.footer-source-tag {
    font-size: 0.62rem;
    font-variant: small-caps;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full, 9999px);
    letter-spacing: 0.04em;
}

/* --- Rubrique filter pills (refinement) --- */
.rubrique-filter {
    font-variant: small-caps;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rubrique-filter.active {
    color: white;
}

/* --- Footer enhancements --- */
.footer-brand-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary, #f4f4f5);
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
}


/* --- Sidebar: max 5 widgets visible --- */
#calendar-section,
#forex-section,
#sectors-section,
#movers-section {
    display: none !important;
}

/* --- Auth modal: ensure proper overlay --- */
.auth-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.auth-modal-overlay.active {
    display: flex !important;
}
.auth-modal {
    position: relative !important;
    z-index: 10000 !important;
    background: #ffffff !important;
}

/* --- Responsive footer --- */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
    .macro-indicators {
        grid-template-columns: 1fr !important;
    }
}


/* ============================================
   Widget Styles - Sentiment, Alerts, Newsletter
   ============================================ */

/* --- Sentiment Widget --- */
.sentiment-widget {
    padding: 0.5rem 0;
}

.sentiment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.sentiment-score {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

.sentiment-label {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sentiment-resume {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.sentiment-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.sentiment-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
}

.sentiment-cat-name {
    color: var(--text-muted);
    text-transform: capitalize;
}

.sentiment-cat-score {
    font-weight: 700;
    font-family: var(--font-sans);
}

.sentiment-placeholder {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 1rem 0;
}

/* --- Alerts Widget --- */
.alerts-widget {
    padding: 0.25rem 0;
}

.alert-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-titre {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.alert-texte {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alert-urgent { border-left: 3px solid #C8955A; padding-left: 0.5rem; }
.alert-attention { border-left: 3px solid #eab308; padding-left: 0.5rem; }
.alert-info { border-left: 3px solid #3b82f6; padding-left: 0.5rem; }

.alerts-placeholder {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 1rem 0;
}

/* --- Newsletter Content (AI-generated) --- */
.newsletter-content-ai {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-content-ai:empty {
    display: none;
}

.newsletter-content-ai .newsletter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newsletter-content-ai .newsletter-badge {
    font-size: var(--fs-sm);
    font-weight: 600;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.newsletter-content-ai .newsletter-semaine {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-content-ai .newsletter-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.newsletter-content-ai .newsletter-subtitle {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-style: italic;
}

.newsletter-content-ai .newsletter-editorial {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.newsletter-content-ai .newsletter-editorial h4 {
    font-size: var(--fs-base);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--accent);
}

.newsletter-content-ai .newsletter-faits,
.newsletter-content-ai .newsletter-perspectives {
    margin-bottom: 1rem;
}

.newsletter-content-ai .newsletter-faits h4,
.newsletter-content-ai .newsletter-perspectives h4 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.newsletter-content-ai .newsletter-faits ul {
    list-style: none;
    padding: 0;
}

.newsletter-content-ai .newsletter-faits li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-content-ai .newsletter-faits li:last-child {
    border-bottom: none;
}

.newsletter-content-ai .newsletter-perspectives p {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}


/* --- Macro Analysis Widget --- */
.macro-analysis-widget {
    padding: 0.5rem 0;
}

.macro-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.macro-analysis-risk {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

.macro-analysis-phase {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-tertiary);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.macro-analysis-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.macro-analysis-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.6rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.macro-ind {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
}

.macro-ind-name {
    color: var(--text-muted);
}

.macro-ind-val {
    font-weight: 700;
    font-family: var(--font-sans);
}

.macro-analysis-perspectives {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.3rem;
}

.macro-analysis-placeholder {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 1rem 0;
}

/* --- Market Briefing Widget --- */
.market-briefing-widget {
    padding: 0.5rem 0;
}

.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.briefing-sentiment {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.briefing-date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.briefing-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.briefing-resume {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.briefing-vigilance {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border-light);
}

.briefing-vigilance-item {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.briefing-placeholder {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 1rem 0;
}

/* ============================================
   European Markets Widget (Twelve Data)
   ============================================ */
.euro-markets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.euro-markets-header h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.euro-market-status {
    font-size: var(--fs-xs);
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}

.euro-markets-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.euro-market-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--fs-sm);
}

.euro-market-item:last-child {
    border-bottom: none;
}

.euro-market-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.euro-market-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    min-width: 0;
}

.euro-market-name {
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.euro-market-price {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.euro-market-change {
    font-weight: 600;
    font-size: var(--fs-xs);
    min-width: 3.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   World Bank Widget
   ============================================ */
.wb-indicator {
    margin-bottom: 0.8rem;
}

.wb-indicator:last-child {
    margin-bottom: 0;
}

.wb-indicator-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.wb-indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.wb-country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.3rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
}

.wb-country-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wb-country-value {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.wb-more-link {
    text-decoration: none;
    cursor: pointer;
    border: 1px dashed var(--border-color);
    transition: background 0.2s, border-color 0.2s;
}

.wb-more-link:hover {
    background: rgba(16, 94, 45, 0.06);
    border-color: var(--accent);
}

.wb-more-link .wb-country-name {
    color: var(--accent);
    font-weight: 600;
}

.wb-more-arrow {
    font-size: 1rem;
    color: var(--accent);
    line-height: 1;
}

/* ============================================
   European Policy Widget
   ============================================ */
.eu-policy-placeholder,
.eu-policy-empty {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

.eu-policy-item {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.2s;
}

.eu-policy-item:last-of-type {
    border-bottom: none;
}

.eu-policy-item:hover {
    background: rgba(16, 94, 45, 0.04);
}

.eu-policy-source {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.eu-policy-title {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
}

.eu-policy-item:hover .eu-policy-title {
    color: var(--accent);
}

#eu-policy-section .sidebar-title svg {
    color: var(--accent);
}

/* ============================================
   Messari Crypto Widget
   ============================================ */
.messari-global {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.messari-global span {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.messari-assets {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.messari-asset-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--fs-sm);
}

.messari-asset-row:last-child {
    border-bottom: none;
}

.messari-symbol {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 3rem;
    font-size: var(--fs-xs);
}

.messari-price {
    flex: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.messari-dominance {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    min-width: 2.5rem;
    text-align: right;
}

.messari-change {
    font-weight: 600;
    font-size: var(--fs-xs);
    min-width: 3.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   Premium Navigation Link
   ============================================ */

.nav-premium {
    color: var(--accent) !important;
    font-weight: 700 !important;
    position: relative;
}

.nav-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ============================================
   Premium Page Styles
   ============================================ */

.premium-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.premium-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.premium-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.premium-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Value Proposition */
.premium-value-prop {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
}

.premium-value-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Section Title */
.premium-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 2rem;
}

/* Services Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.premium-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.premium-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.premium-card-b2b {
    background: linear-gradient(135deg, #fafffe 0%, var(--accent-light) 100%);
    border-color: var(--accent);
}

.premium-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: var(--accent);
}

.premium-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.premium-card-frequency {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.premium-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.premium-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-card-features li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    line-height: 1.4;
}

.premium-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Sources Section */
.premium-sources {
    padding: 2.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.premium-sources-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.premium-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.premium-source-category h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.premium-source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.premium-source-tags span {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* CTA Section */
.premium-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.premium-cta-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.premium-cta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.premium-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 150ms ease, box-shadow 150ms ease;
}

.premium-cta-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(16, 94, 45, 0.25);
}

.premium-cta-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-left: 0.8rem;
    transition: background 150ms ease, color 150ms ease;
}

.premium-cta-btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

/* Badge "Gratuit" sur les cartes premium */
.premium-free-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.premium-card-free {
    border-color: var(--accent);
    position: relative;
}

.premium-card-free::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

@media (max-width: 768px) {
    .premium-cta-btn-secondary {
        margin-left: 0;
        margin-top: 0.6rem;
        display: block;
        text-align: center;
    }
}

.premium-cta-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0;
}

/* Loading fallback text */
.loading-fallback-text {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-style: italic;
}

/* ============================================
   Country Page
   ============================================ */

/* Country Selector Grid */
.country-selector {
    margin-bottom: 2rem;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: inherit;
    font-size: inherit;
}

.country-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(16, 94, 45, 0.1);
    transform: translateY(-2px);
}

.country-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.country-card-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.country-card-name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.country-card-region {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.country-card-gdp {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-top: 0.2rem;
}

/* Country Detail */
.country-detail {
    animation: fadeIn 0.3s ease;
}

.country-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.country-back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.country-detail-header {
    margin-bottom: 2rem;
}

.country-detail-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-detail-flag {
    font-size: 3rem;
    line-height: 1;
}

.country-detail-title h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.country-detail-meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Indicator Cards */
.country-ind-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.country-ind-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s;
}

.country-ind-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.country-ind-card.severity-low {
    border-left: 3px solid #10b981;
}

.country-ind-card.severity-medium {
    border-left: 3px solid #f59e0b;
}

.country-ind-card.severity-high {
    border-left: 3px solid #ef4444;
}

.country-ind-supplemental {
    border-left: 3px solid var(--border-color);
    background: rgba(0, 0, 0, 0.01);
}

.country-ind-icon {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
    margin-top: 0.1rem;
}

.country-ind-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.country-ind-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.country-ind-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.country-ind-unit {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.country-ind-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}

.country-ind-rank-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.country-ind-rank-total {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Comparison Table */
.country-comparison {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.country-comparison-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.country-comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.country-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.country-comparison-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.country-comparison-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-light);
    font-variant-numeric: tabular-nums;
}

.country-comparison-table tr:hover {
    background: rgba(16, 94, 45, 0.03);
}

.country-row-selected {
    background: rgba(16, 94, 45, 0.06);
    font-weight: 600;
}

.country-row-selected td {
    border-bottom-color: var(--accent);
}

.country-comp-name {
    white-space: nowrap;
    font-weight: 600;
}

.country-comp-val {
    font-weight: 500;
    color: var(--text-secondary);
}

.country-sources {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Country page responsive */
@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .country-ind-cards {
        grid-template-columns: 1fr;
    }
    .country-detail-flag {
        font-size: 2rem;
    }
    .country-detail-title h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .country-card {
        padding: 1rem 0.5rem;
    }
    .country-card-flag {
        font-size: 2rem;
    }
}

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

/* Premium page responsive */
@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
    .premium-sources-grid {
        grid-template-columns: 1fr;
    }
    .premium-hero {
        padding: 2rem 0 1.5rem;
    }
    .premium-value-prop {
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   B2B PIVOT — Conseil Strategique
   ============================================ */

/* --- Header CTA Button --- */
.header-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.header-cta-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(16, 94, 45, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .header-cta-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}

/* --- Nav Group Labels --- */
.nav-overlay-group-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 0 0.35rem;
    border-top: none;
    margin-top: 24px;
    position: relative;
}

.nav-overlay-group-label::after {
    content: '';
    display: block;
    margin-top: 0.35rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.nav-overlay-link.nav-indent {
    padding-left: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.nav-overlay-link.nav-indent:hover {
    padding-left: 1.25rem;
    border-left-color: #A8D5BA;
}

.nav-overlay-link.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-overlay-link.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    padding-left: 1.5rem;
    border-left-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav-overlay-link.nav-cta::before {
    display: none;
}

/* --- "De la donnee a la decision" Value Pillars --- */
.value-pillars {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.value-pillars-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.value-pillars-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.value-pillars-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.pillar-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.pillar-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .pillar-card {
        padding: 1.5rem 1.25rem;
    }
}

/* --- Services & Conseil (premium.html B2B refonte) --- */
.service-card-cta {
    display: inline-block;
    margin-top: 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 150ms ease, box-shadow 150ms ease;
    border: none;
    cursor: pointer;
}

.service-card-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(16, 94, 45, 0.2);
}

.service-card-cta-outline {
    display: inline-block;
    margin-top: 1rem;
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.service-card-cta-outline:hover {
    background: var(--accent);
    color: #fff;
}

.premium-card-price {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0.5rem 0 0;
}

/* --- Expertise Page --- */
.expertise-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.expertise-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.expertise-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.expertise-section {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.expertise-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.expertise-section p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.expertise-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.expertise-value-card {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    text-align: center;
}

.expertise-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem;
}

.expertise-value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.expertise-value-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    color: var(--accent);
}

.expertise-highlight {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md, 8px);
    margin: 2rem 0;
}

.expertise-highlight p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.expertise-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--accent-light);
    border-radius: var(--radius-lg, 12px);
    margin: 3rem 0;
}

.expertise-cta h2 {
    border: none;
    display: block;
    padding: 0;
    margin: 0 0 0.75rem;
}

.expertise-cta p {
    max-width: 520px;
    margin: 0 auto 1.25rem;
}

@media (max-width: 768px) {
    .expertise-values {
        grid-template-columns: 1fr;
    }
    .expertise-highlight {
        padding: 1rem 1.25rem;
    }
    .expertise-section [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    .expertise-section [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    .expertise-section [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    .expertise-section [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    .expertise-section [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: repeat(5, 1fr) !important;
        font-size: 0.6rem !important;
    }
    .expertise-section [style*="display:flex;gap:1.5rem"] {
        flex-direction: column !important;
    }
    .expertise-section table {
        font-size: 0.7rem !important;
    }
}

/* --- Case Studies Section (analyses.html) --- */
.case-studies {
    margin-bottom: 3rem;
}

.case-studies .section-header {
    margin-bottom: 1.5rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.case-study-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 1.75rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.case-study-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

.case-study-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.case-study-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.case-study-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.case-study-tags span {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.case-study-result {
    padding: 0.75rem 1rem;
    background: var(--accent-light);
    border-radius: var(--radius-md, 8px);
    font-size: 0.8rem;
    color: var(--accent-dark);
    font-weight: 600;
}

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