/* =============================================================================
   News Tabs for Elementor — Feuille de style principale
   Compatible avec le thème Foxiz (variables CSS Foxiz supportées)
   ============================================================================= */
.news-tabs-widget {
    background-color: var(--news-tabs-bg, #ffffff);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

.news-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.news-tabs-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--foxiz-dark, #222222);
}

.news-tabs-nav {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.news-tab-item {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--foxiz-accent, #e8643c);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    line-height: 1.5;
}

.news-tab-item.active,
.news-tab-item:hover {
    border-color: var(--foxiz-accent, #e8643c);
    background-color: rgba(232, 100, 60, 0.08);
    color: var(--foxiz-accent, #e8643c);
}

.news-tab-item:focus-visible {
    outline: 2px solid var(--foxiz-accent, #e8643c);
    outline-offset: 2px;
}

.news-tab-pane {
    display: none;
}

.news-tab-pane.active {
    display: block;
    animation: newsFadeIn 0.3s ease forwards;
}

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

.news-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-tab-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
}

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

.news-item-title {
    margin: 0 0 2px 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.news-item-title a {
    font-weight: 600;
    font-size: 15px;
    color: var(--foxiz-dark, #222222);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: block;
    word-break: break-word;
}

.news-item-title a:hover {
    color: var(--foxiz-accent, #e8643c);
    text-decoration: none;
}

.news-item-date {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-top: 4px;
    line-height: 1.4;
}

.news-item-author {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    margin-top: 2px;
    line-height: 1.4;
}

.news-item-excerpt {
    font-size: 13px;
    color: #666666;
    margin: 4px 0 0 0;
    line-height: 1.5;
}

.news-item-thumb {
    flex-shrink: 0;
}

.news-item-thumb a {
    display: block;
    line-height: 0;
}

.news-item-thumb img,
.news-item-thumb .news-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.news-item-divider-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.news-item-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0;
}

.news-tabs-no-posts {
    font-size: 14px;
    color: #999999;
    margin: 12px 0 0 0;
    padding: 8px 0;
}

.dark-mode .news-tabs-widget {
    background-color: var(--foxiz-dark-bg, #1a1a1a);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .news-tabs-section-title {
    color: #f0f0f0;
}

.dark-mode .news-item-title a {
    color: #f0f0f0;
}

.dark-mode .news-item-title a:hover {
    color: var(--foxiz-accent, #e8643c);
}

.dark-mode .news-item-divider {
    border-top-color: #333333;
}

.dark-mode .news-item-date {
    color: #777777;
}

.dark-mode .news-item-author {
    color: #666666;
}

.dark-mode .news-item-excerpt {
    color: #aaaaaa;
}

.dark-mode .news-tabs-no-posts {
    color: #777777;
}

@media (max-width: 600px) {
    .news-tabs-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-tabs-nav {
        flex-wrap: wrap;
        gap: 6px;
    }

    .news-tab-item {
        font-size: 12px;
        padding: 3px 10px;
    }

    .news-tabs-section-title {
        font-size: 18px;
    }

    .news-item-title a {
        font-size: 14px;
    }

    .news-item-thumb img,
    .news-item-thumb .news-thumb-img {
        width: 50px;
        height: 50px;
    }
}
