.cn-breaking-news {
    --cn-breaking-bg: #111111;
    --cn-breaking-label: #d11810;
    --cn-breaking-text: #ffffff;
    --cn-breaking-muted: rgba(255, 255, 255, 0.72);
    width: 100%;
    padding: 12px 0 8px;
    background: transparent;
}

.cn-breaking-news__container {
    width: 100%;
    max-width: var(--jl-main-width, 1180px);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

/* Accueil : même largeur que le conteneur Elementor (padding 20px + inner 1140px) */
.cn-breaking-news:has(+ .jl_home_bw) .cn-breaking-news__container {
    max-width: calc(var(--container-max-width, 1140px) + 40px);
    padding-inline: 20px;
}

.cn-breaking-news__bar {
    display: flex;
    align-items: stretch;
    min-height: 42px;
    width: 100%;
    overflow: hidden;
    background: var(--cn-breaking-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.cn-breaking-news__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 14px;
    background: var(--cn-breaking-label);
    color: #fff;
    font-family: var(--jl-menu-font, inherit);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 8px 0 0 8px;
    z-index: 2;
}

.cn-breaking-news__label-text--short {
    display: none;
}

.cn-breaking-news__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: cn-breaking-pulse 1.4s ease-in-out infinite;
}

@keyframes cn-breaking-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.cn-breaking-news__track.swiper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    background: var(--cn-breaking-bg);
    border-radius: 0 8px 8px 0;
}

.cn-breaking-news__track::before,
.cn-breaking-news__track::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 2;
    pointer-events: none;
}

.cn-breaking-news__track::before {
    left: 0;
    background: linear-gradient(90deg, var(--cn-breaking-bg), transparent);
}

.cn-breaking-news__track::after {
    right: 0;
    background: linear-gradient(270deg, var(--cn-breaking-bg), transparent);
}

.cn-breaking-news__slide.swiper-slide {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    box-sizing: border-box;
}

.cn-breaking-news__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    color: var(--cn-breaking-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cn-breaking-news__link:hover,
.cn-breaking-news__link:focus-visible {
    color: #fff;
    outline: none;
}

.cn-breaking-news__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cn-breaking-news__link:active {
    opacity: 0.88;
}

.cn-breaking-news__cat {
    flex: 0 0 auto;
    color: var(--cn-breaking-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cn-breaking-news__title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cn-breaking-news {
        padding: 8px 0 6px;
    }

    .cn-breaking-news__bar {
        flex-direction: row;
        align-items: stretch;
        min-height: 44px;
        border-radius: 6px;
        box-shadow: 0 4px 14px rgba(17, 17, 17, 0.1);
    }

    .cn-breaking-news__label {
        gap: 6px;
        padding: 0 10px;
        font-size: 9px;
        letter-spacing: 0.1em;
        border-radius: 6px 0 0 6px;
    }

    .cn-breaking-news__label-text--full {
        display: none;
    }

    .cn-breaking-news__label-text--short {
        display: inline;
    }

    .cn-breaking-news__dot {
        width: 6px;
        height: 6px;
    }

    .cn-breaking-news__track.swiper {
        height: 44px;
        border-radius: 0 6px 6px 0;
        touch-action: pan-y;
    }

    .cn-breaking-news__track::before,
    .cn-breaking-news__track::after {
        width: 12px;
    }

    .cn-breaking-news__slide.swiper-slide {
        height: 44px;
        padding: 0 10px 0 8px;
    }

    .cn-breaking-news__link {
        gap: 7px;
        font-size: 12px;
        line-height: 1.25;
    }

    .cn-breaking-news__cat {
        display: inline-block;
        max-width: 5.5rem;
        padding: 2px 6px;
        font-size: 8px;
        line-height: 1.2;
        letter-spacing: 0.03em;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.14);
        border-radius: 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    .cn-breaking-news__title {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
}

@media (max-width: 380px) {
    .cn-breaking-news__label {
        padding: 0 8px;
    }

    .cn-breaking-news__slide.swiper-slide {
        padding: 0 8px 0 6px;
    }

    .cn-breaking-news__cat {
        display: none;
    }

    .cn-breaking-news__title {
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cn-breaking-news__dot {
        animation: none;
    }
}

/* Rapprocher la pub header du bandeau breaking news (accueil) */
.cn-breaking-news + .jl_home_bw .elementor-element-394f5a09 {
    --margin-top: 14px;
    margin-top: 14px;
}

@media (max-width: 767px) {
    .cn-breaking-news + .jl_home_bw .elementor-element-394f5a09 {
        --margin-top: 10px;
        margin-top: 10px;
    }
}
