/* =========================================
   AI RADAR SECTION V2 - LIGHT PREMIUM DESIGN
   Matches site theme: white + pale blue
   ========================================= */

/* === SECTION LAYOUT === */
.ai-radar-section-v2 {
    position: relative;
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

/* Soft Decorative Orbs */
.ai-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    animation: none;
}

.ai-bg-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #b8d4e8, transparent);
    top: -120px;
    right: -120px;
}

.ai-bg-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #d4e8f5, transparent);
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.ai-bg-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #cce4f3, transparent);
    top: 40%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -15px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 20px) scale(0.97);
    }

    75% {
        transform: translate(15px, 10px) scale(1.03);
    }
}

/* === GLASS CONTAINER === */
.ai-radar-glass {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 28px;
    padding: 40px;
    box-shadow:
        0 2px 4px rgba(0, 60, 120, .03),
        0 8px 20px rgba(0, 60, 120, .05),
        0 20px 50px rgba(0, 80, 160, .08),
        0 40px 80px rgba(0, 40, 100, .06);
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1);
}

.ai-radar-glass:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(0, 60, 120, .03),
        0 12px 28px rgba(0, 60, 120, .07),
        0 28px 60px rgba(0, 80, 160, .10),
        0 50px 100px rgba(0, 40, 100, .07);
}

/* === HEADER === */
.ai-radar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ai-avatar-ring {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0077b6, #5fa8d3, #00b4d8, #0077b6);
    background-size: 300% 300%;
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.ai-avatar-ring i,
.ai-avatar-ring svg {
    animation: robotBob 2s ease-in-out 3;
}

@keyframes avatarGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes robotBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.ai-avatar-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    border: 2px solid rgba(0, 119, 182, 0.25);
    animation: none;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.12);
        opacity: 0;
    }
}

.ai-header-text {
    flex: 1;
    min-width: 180px;
}

.ai-radar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d2137;
    margin: 0;
    letter-spacing: -0.02em;
}

.ai-radar-sub {
    font-size: 0.88rem;
    color: #7a8fa6;
    margin: 3px 0 0;
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: livePulse 1.5s ease-in-out 3;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
}

.btn-refresh-premium {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #dde8f0;
    background: #fff;
    color: #5fa8d3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-refresh-premium:hover {
    background: #f0f7fc;
    border-color: #0077b6;
    color: #0077b6;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 119, 182, 0.12);
}

/* === SECTOR FILTERS === */
.ai-sector-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ai-sector-filters::-webkit-scrollbar {
    display: none;
}

.ai-sector-filters .sector-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #dde8f0;
    background: #fff;
    color: #6b8299;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-sector-filters .sector-btn:hover {
    background: #f0f7fc;
    border-color: #a8cfe0;
    color: #0077b6;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.08);
}

.ai-sector-filters .sector-btn.active {
    background: linear-gradient(135deg, #0077b6, #5fa8d3);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}

.ai-sector-filters .sector-btn svg,
.ai-sector-filters .sector-btn i {
    width: 14px;
    height: 14px;
}

/* === NEWS CONTAINER === */
.news-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 180px;
}

/* === LOADING STATE === */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-pulse {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 119, 182, 0.2);
    animation: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.4s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes pulseRingAnim {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.news-loading p {
    color: #7a8fa6;
    font-size: 0.9rem;
    margin: 0;
}

.loading-bar {
    width: 180px;
    height: 3px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar-inner {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #0077b6, #5fa8d3);
    border-radius: 3px;
    animation: loadingSlide 1.5s ease-in-out 2;
}

@keyframes loadingSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* === EMPTY STATE === */
.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7a8fa6;
    gap: 10px;
}

.news-empty i,
.news-empty svg {
    width: 36px;
    height: 36px;
    opacity: 0.5;
    color: #a8cfe0;
}

/* === PREMIUM NEWS CARD === */
.news-card-premium {
    position: relative;
    background: #fff;
    border: 1px solid #e8eff5;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 1;
    /* Entrance animation — purely CSS, pilotée par --card-index */
    animation: cardFadeIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(var(--card-index, 0) * 120ms);
}

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

/* Legacy class conservée au cas où — identique à l'état final */
.news-card-premium.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card-premium:hover {
    border-color: #b8d4e8;
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(0, 119, 182, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Accent top line */
.card-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #0077b6, #5fa8d3, #b8d4e8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card-premium:hover .card-accent-line {
    opacity: 1;
}

.card-body {
    padding: 20px 24px;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.card-number {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0077b6, #5fa8d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 34px;
    opacity: 0.7;
}

.card-title-wrap {
    flex: 1;
}

.news-title-premium {
    font-size: 1rem;
    font-weight: 700;
    color: #0d2137;
    margin: 0;
    line-height: 1.45;
}

/* Badge NOUVEAU */
.badge-nouveau {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    vertical-align: middle;
    animation: none;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.25);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(245, 158, 11, 0.15);
    }
}

/* Summary */
.news-summary-premium {
    font-size: 0.88rem;
    color: #6b8299;
    line-height: 1.6;
    margin: 0 0 14px;
    padding-left: 48px;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 48px;
    gap: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7a8fa6;
    font-size: 0.78rem;
    font-weight: 500;
}

.meta-separator {
    color: #d0dbe5;
    font-size: 0.7rem;
}

.meta-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9bb0c4;
    font-size: 0.78rem;
}

/* Read Button */
.btn-read-article {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0077b6, #5fa8d3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.2);
}

.btn-read-article:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.3);
}

/* === FOOTER === */
.ai-radar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-sources-hint,
.ai-update-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    color: #9bb0c4;
}

/* === SPIN ANIMATION (Refresh) === */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

@media (max-width: 768px) {
    .ai-radar-section-v2 {
        padding: 50px 0;
    }

    .ai-radar-glass {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .ai-radar-glass:hover {
        transform: none;
    }

    /* Header */
    .ai-radar-header {
        gap: 12px;
    }

    .ai-avatar-ring {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .ai-avatar-ring i,
    .ai-avatar-ring svg {
        width: 20px !important;
        height: 20px !important;
    }

    .ai-radar-title {
        font-size: 1.15rem;
    }

    .ai-radar-sub {
        font-size: 0.78rem;
    }

    .ai-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Filters */
    .ai-sector-filters {
        gap: 6px;
        margin-bottom: 18px;
    }

    .ai-sector-filters .sector-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    /* Cards */
    .card-body {
        padding: 16px;
    }

    .card-header {
        gap: 10px;
    }

    .card-number {
        font-size: 1.3rem;
        min-width: 26px;
    }

    .news-title-premium {
        font-size: 0.92rem;
    }

    .badge-nouveau {
        display: flex;
        margin-left: 0;
        margin-top: 6px;
        width: fit-content;
    }

    .news-summary-premium {
        padding-left: 36px;
        font-size: 0.83rem;
    }

    .card-footer {
        padding-left: 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-read-article {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .ai-radar-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ai-radar-glass {
        padding: 18px 12px;
        border-radius: 14px;
    }

    .ai-radar-title {
        font-size: 1.02rem;
    }

    .card-number {
        font-size: 1.1rem;
        min-width: 22px;
    }

    .news-summary-premium {
        padding-left: 32px;
    }

    .card-footer {
        padding-left: 32px;
    }

    .ai-bg-orb {
        display: none;
    }
}

/* =========================================
   NEWS TICKER TV-STYLE (Bloomberg/CNBC inspired)
   ========================================= */

/* =========================================
   GLOBAL NEWS TICKER — TV-style, fixed top of page
   Inspired by Bloomberg/CNBC tickers
   ========================================= */

:root {
    --gticker-height: 36px;
    --gticker-height-mobile: 32px;
    --gticker-bg: rgba(8, 12, 18, 0.96);
    --gticker-border: rgba(255, 255, 255, 0.08);
    --gticker-text: rgba(255, 255, 255, 0.88);
    --gticker-muted: rgba(255, 255, 255, 0.5);
    --gticker-accent: #7dd3fc;
}

/* Ticker hidden — no extra padding needed (navbar handles it via style.css) */

.global-ticker {
    display: none !important;
}

@keyframes tickerSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ─── EN DIRECT label (compact, dark-mode) ─── */
.global-ticker .ticker-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px 0 16px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.64rem;
    letter-spacing: 1.2px;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    box-shadow: none;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

/* Triangle removed for a flat WhiteFiber look */
.global-ticker .ticker-label::after {
    content: none;
}

.global-ticker .ticker-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
    animation: none;
    flex-shrink: 0;
}

@keyframes tickerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85), 0 0 5px 1px rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0),    0 0 5px 1px rgba(255, 255, 255, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0),      0 0 5px 1px rgba(255, 255, 255, 0.4); }
}

/* ─── Viewport (scrolling area) ─── */
.global-ticker .ticker-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100%;
    padding-left: 20px;
    z-index: 2;
}

.global-ticker .ticker-viewport::before,
.global-ticker .ticker-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.global-ticker .ticker-viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(8, 12, 18, 1) 0%, rgba(8, 12, 18, 0.6) 55%, transparent 100%);
}

.global-ticker .ticker-viewport::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(8, 12, 18, 1) 0%, rgba(8, 12, 18, 0.6) 55%, transparent 100%);
}

.global-ticker .ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 36px;
    width: max-content;
    animation: tickerScroll 240s linear infinite; /* plus lent et reposant */
    will-change: transform;
}

.global-ticker .ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.global-ticker .ticker-loading {
    color: var(--gticker-muted);
    font-size: 0.82rem;
    font-style: italic;
    padding: 0 20px;
    animation: none;
}

@keyframes tickerLoadingPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

/* ─── Ticker items ─── */
.global-ticker .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gticker-text);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
    letter-spacing: 0.1px;
    position: relative;
}

.global-ticker .ticker-item:hover {
    color: var(--gticker-accent);
}

.global-ticker .ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}

.global-ticker .ticker-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
    padding: 2px;
}

.global-ticker .ticker-item .ticker-source {
    color: var(--gticker-muted);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.global-ticker .ticker-separator {
    color: rgba(255, 255, 255, 0.18);
    font-weight: 400;
    font-size: 1rem;
    user-select: none;
    margin: 0 3px;
}

/* Sector colors for ticker dots — palette douce cohérente avec le site */
.global-ticker .ticker-dot.sector-finance   { background: #0077b6; }
.global-ticker .ticker-dot.sector-tech      { background: #8b5cf6; }
.global-ticker .ticker-dot.sector-health    { background: #10b981; }
.global-ticker .ticker-dot.sector-energy    { background: #f59e0b; }
.global-ticker .ticker-dot.sector-industrial{ background: #94a3b8; }
.global-ticker .ticker-dot.sector-crypto    { background: #f97316; }
.global-ticker .ticker-dot.sector-defensive { background: #3b82f6; }
.global-ticker .ticker-dot.sector-all       { background: #94a3b8; }

/* ─── Right: CTA "Actualités" ─── */
.global-ticker .ticker-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: var(--gticker-accent);
    background: transparent;
    border-left: 1px solid var(--gticker-border);
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s ease;
    z-index: 3;
    position: relative;
}

.global-ticker .ticker-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.global-ticker .ticker-cta i,
.global-ticker .ticker-cta svg {
    width: 13px;
    height: 13px;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    /* (Retiré) body { padding-top: var(--gticker-height-mobile) } — réservait
       la hauteur de l'ancien ruban « EN DIRECT » global, supprimé depuis.
       Sans ce ruban, ce padding créait un bandeau blanc de 32px en haut du
       hero sur mobile. Voir index.html (ticker retiré au profit du ruban
       événements en bas du hero). */
    .global-ticker {
        height: var(--gticker-height-mobile);
    }
    .global-ticker .ticker-label {
        padding: 0 10px 0 12px;
        font-size: 0.58rem;
        letter-spacing: 1px;
        gap: 6px;
    }
    .global-ticker .ticker-label::after {
        border-top-width: calc(var(--gticker-height-mobile) / 2);
        border-bottom-width: calc(var(--gticker-height-mobile) / 2);
    }
    .global-ticker .ticker-label-text { display: none; }
    .global-ticker .ticker-pulse { width: 5px; height: 5px; }
    .global-ticker .ticker-item {
        font-size: 0.76rem;
        gap: 8px;
    }
    .global-ticker .ticker-item .ticker-source {
        font-size: 0.58rem;
    }
    .global-ticker .ticker-logo {
        width: 18px;
        height: 18px;
        padding: 1px;
    }
    .global-ticker .ticker-track {
        gap: 28px;
        animation-duration: 190s;
    }
    .global-ticker .ticker-viewport::before,
    .global-ticker .ticker-viewport::after { width: 42px; }
    .global-ticker .ticker-cta span { display: none; }
    .global-ticker .ticker-cta {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .global-ticker .ticker-label { padding: 0 9px; }
    .global-ticker .ticker-viewport { padding-left: 14px; }
}

/* =========================================
   ENRICHED NEWS CARDS (thumbnail, impact, sector chips, source logo)
   ========================================= */

.news-card-premium {
    display: flex;
    flex-direction: column;
}

.news-card-premium.impact-high {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
}

.news-card-premium.impact-high .card-accent-line {
    background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
    opacity: 1;
}

.card-body-flex {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    align-items: stretch;
}

/* ── Thumbnail ── */
.card-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e8f1f8, #d4e4f0);
    box-shadow: 0 2px 8px rgba(0, 60, 120, 0.08);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card-premium:hover .card-thumb img {
    transform: scale(1.06);
}

.card-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 119, 182, 0.35);
    background: linear-gradient(135deg, #e8f1f8, #d4e4f0);
}

.card-thumb-fallback svg,
.card-thumb-fallback i {
    width: 40px;
    height: 40px;
}

.card-thumb-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(13, 33, 55, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

/* ── Content wrapper ── */
.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* ── Source pill with logo ── */
.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: 8px;
    background: #f0f7fc;
    border: 1px solid #dde8f0;
    font-size: 0.74rem;
    font-weight: 600;
    color: #5a7a94;
}

.source-pill img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

/* ── Impact badge ── */
.impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.impact-badge.impact-5 {
    background: linear-gradient(135deg, #fecaca, #fee2e2);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.25);
    animation: none;
}

.impact-badge.impact-4 {
    background: linear-gradient(135deg, #fed7aa, #ffedd5);
    color: #c2410c;
    border: 1px solid rgba(194, 65, 12, 0.2);
}

@keyframes impactGlowHigh {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50%      { box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.12); }
}

.impact-badge svg,
.impact-badge i {
    width: 11px;
    height: 11px;
}

/* ── Time ── */
.card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9bb0c4;
    font-size: 0.75rem;
    margin-left: auto;
}

.card-time svg,
.card-time i {
    width: 12px;
    height: 12px;
}

/* ── Title ── */
.card-content .news-title-premium {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0d2137;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Summary ── */
.card-content .news-summary-premium {
    font-size: 0.86rem;
    color: #6b8299;
    line-height: 1.55;
    margin: 0 0 12px;
    padding-left: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Bottom row: sector chips + read button ── */
.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.card-sector-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.chip-sector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid currentColor;
    background: transparent;
}

.chip-sector::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.chip-sector.chip-finance    { color: #0077b6; background: rgba(0, 180, 216, 0.08); }
.chip-sector.chip-tech       { color: #7c3aed; background: rgba(168, 85, 247, 0.08); }
.chip-sector.chip-health     { color: #059669; background: rgba(16, 185, 129, 0.08); }
.chip-sector.chip-energy     { color: #d97706; background: rgba(245, 158, 11, 0.08); }
.chip-sector.chip-industrial { color: #475569; background: rgba(148, 163, 184, 0.1); }
.chip-sector.chip-crypto     { color: #ea580c; background: rgba(249, 115, 22, 0.08); }
.chip-sector.chip-defensive  { color: #2563eb; background: rgba(59, 130, 246, 0.08); }

.badge-breaking {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: breakingBlink 1.4s ease-in-out 3;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

@keyframes breakingBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.03); }
}

.badge-breaking svg,
.badge-breaking i {
    width: 10px;
    height: 10px;
}

/* =========================================
   MOBILE RESPONSIVE — Ticker, Briefing, Cards
   ========================================= */

@media (max-width: 768px) {
    .news-ticker {
        height: 44px;
    }
    .ticker-label {
        padding: 0 14px;
        font-size: 0.68rem;
        letter-spacing: 1.2px;
        gap: 7px;
    }
    .ticker-label span:last-child { display: none; }
    .ticker-pulse { width: 8px; height: 8px; }
    .ticker-item { font-size: 0.82rem; gap: 9px; }
    .ticker-item .ticker-source { font-size: 0.64rem; padding: 1px 6px; }
    .ticker-track { gap: 30px; animation-duration: 110s; }
    .ticker-corner { display: none; }

    .daily-briefing {
        padding: 16px 18px;
        gap: 14px;
        border-radius: 14px;
    }
    .briefing-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .briefing-label { font-size: 0.65rem; padding: 3px 8px; }
    .briefing-date  { font-size: 0.72rem; }
    .briefing-text  { font-size: 0.9rem; }

    .card-body-flex {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }
    .card-thumb {
        width: 100%;
        height: 160px;
    }
    .card-content .news-title-premium { font-size: 0.95rem; }
    .card-content .news-summary-premium { font-size: 0.82rem; }
    .card-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn-read-article {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-ticker { height: 40px; }
    .ticker-label { padding: 0 10px; }
    .ticker-item { font-size: 0.78rem; }
    .daily-briefing {
        padding: 14px 14px;
        flex-direction: row;
    }
    .briefing-icon { width: 34px; height: 34px; }
    .briefing-text { font-size: 0.85rem; }
}

/* ============================================================
   THÈME SOMBRE — section « Actualités » (#actualites)
   Moment de gravitas : fond nuit, cartes en verre sombre, texte clair.
   (Rythme d'arrière-plans — voir variables --bg-* dans index.html)
   ============================================================ */
#actualites.ai-radar-section-v2 { background: #0a0e1a !important; padding-block: clamp(80px, 12vw, 160px); }
.ai-radar-section-v2 > .container { position: relative; z-index: 1; }

/* Transition douce crème → nuit en haut de section */
#actualites::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 130px; z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, #f8f7f4 0%, rgba(248,247,244,0) 100%);
}

/* Orbes → lueurs bleutées discrètes sur fond sombre */
.ai-radar-section-v2 .ai-bg-orb-1 { background: radial-gradient(circle, rgba(30,64,175,0.5), transparent); opacity: 0.4; }
.ai-radar-section-v2 .ai-bg-orb-2 { background: radial-gradient(circle, rgba(124,58,237,0.42), transparent); opacity: 0.35; }
.ai-radar-section-v2 .ai-bg-orb-3 { background: radial-gradient(circle, rgba(8,145,178,0.45), transparent); opacity: 0.3; }

/* Conteneur verre sombre */
.ai-radar-section-v2 .ai-radar-glass {
    background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.ai-radar-section-v2 .ai-radar-title { color: #ffffff !important; }
.ai-radar-section-v2 .ai-radar-sub { color: rgba(255,255,255,0.72) !important; }
.ai-radar-section-v2 .section-badge { background: rgba(255,255,255,0.10) !important; color: #aee9ff !important; border: 1px solid rgba(255,255,255,0.20) !important; }
.ai-radar-section-v2 .section-badge i, .ai-radar-section-v2 .section-badge svg { color: #8fecff !important; }

/* Filtres secteurs */
.ai-radar-section-v2 .ai-sector-filters .sector-btn { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.74) !important; border: 1px solid rgba(255,255,255,0.12) !important; }
.ai-radar-section-v2 .ai-sector-filters .sector-btn:hover { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.ai-radar-section-v2 .ai-sector-filters .sector-btn.active { background: linear-gradient(135deg, #0077b6, #00b4d8) !important; color: #fff !important; border-color: transparent !important; }
.ai-radar-section-v2 .btn-refresh-premium { background: rgba(255,255,255,0.07) !important; color: #cfe8ff !important; border: 1px solid rgba(255,255,255,0.14) !important; }

/* Cartes d'actualité en verre sombre */
.ai-radar-section-v2 .news-card-premium { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important; border: 1px solid rgba(255,255,255,0.10) !important; box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5) !important; }
.ai-radar-section-v2 .news-card-premium:hover { border-color: rgba(0,180,216,0.4) !important; box-shadow: 0 18px 44px -16px rgba(0,180,216,0.25) !important; }
.ai-radar-section-v2 .news-title-premium { color: #ffffff !important; }
.ai-radar-section-v2 .news-summary-premium { color: rgba(255,255,255,0.68) !important; }
.ai-radar-section-v2 .source-pill { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.82) !important; }
.ai-radar-section-v2 .card-time { color: rgba(255,255,255,0.5) !important; }
.ai-radar-section-v2 .card-thumb-fallback { background: rgba(255,255,255,0.06) !important; }
.ai-radar-section-v2 .card-thumb-fallback svg, .ai-radar-section-v2 .card-thumb-fallback i { color: #8fecff !important; }

/* Footer de section + loader */
.ai-radar-section-v2 .ai-radar-footer { color: rgba(255,255,255,0.55) !important; border-top-color: rgba(255,255,255,0.10) !important; }
.ai-radar-section-v2 .ai-sources-hint, .ai-radar-section-v2 .ai-update-time { color: rgba(255,255,255,0.55) !important; }
.ai-radar-section-v2 .news-loading p { color: rgba(255,255,255,0.7) !important; }
