/* ==============================================
   Switch-Actu — Widget Article À La Une
   Utilise les mêmes classes CSS que le plugin Derniers Tests
   ============================================== */

/* Reprend exactement les classes du plugin original */
.widget-tests-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-test-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.widget-test-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #1a1a1a;
}

.widget-test-card:hover .widget-test-image {
    transform: scale(1.04);
    transition: transform 0.35s ease;
}

.widget-test-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.widget-test-no-image {
    width: 100%;
    height: 180px;
    background: #2a2a3e;
}

.widget-test-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        transparent 100%
    );
    padding: 1.1rem 0.85rem 0.65rem;
}

.widget-test-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.news-author {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-left: auto;
    width: 100%;
    padding: 4px 0 6px;
    text-align: right;
}

.view-all-posts {
    margin-top: 6px;
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.btn-view-all:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.35);
    color: #111;
    text-decoration: none;
}
