/* ============================================
   ACTUALITES - Listing & Article Pages
   ============================================ */

/* Layout principal */
.actualites-container,
.article-container {
    max-width: calc(1300px + 4rem);
    margin: 0 auto;
    padding: 20px 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.actualites-main,
.article-main {
    min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1300px;
    margin: 1rem auto;
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb a {
    color: #1d3557;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Titre + compteur */
.actualites-main h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}
.actualites-count {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Onglets de filtre */
.actualites-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.75rem;
}
.actualites-tabs .tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    background: #f5f5f5;
    transition: all 0.2s;
}
.actualites-tabs .tab:hover {
    background: #e8e8e8;
    color: #333;
}
.actualites-tabs .tab.active {
    background: #1d3557;
    color: #fff;
}

/* Grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Card article */
.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
}
.article-card-image-default.loto { background: linear-gradient(135deg, #e63946, #c1121f); }
.article-card-image-default.euromillions { background: linear-gradient(135deg, #1d3557, #457b9d); }
.article-card-image-default.eurodreams { background: linear-gradient(135deg, #6c63ff, #9d4edd); }
.article-card-image-default.keno { background: linear-gradient(135deg, #2a9d8f, #264653); }
.article-card-image-default.crescendo { background: linear-gradient(135deg, #e76f00, #f4a261); }
.article-card-image-default.general { background: linear-gradient(135deg, #555, #888); }

.article-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}
.article-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.article-date {
    color: #999;
    font-size: 0.8rem;
}
.article-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    flex: 1;
}
.article-card-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Empty state */
.actualites-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    background: #f9f9f9;
    border-radius: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.pagination-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #1d3557;
    background: #f5f5f5;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.pagination-link:hover {
    background: #ddd;
}
.pagination-link.active {
    background: #1d3557;
    color: #fff;
}

/* ============================================
   ARTICLE INDIVIDUEL
   ============================================ */

/* Article individuel : structure et layout viennent de prochain-tirage.css
   Ici uniquement les styles du contenu généré (.article-body) */
.article-body a {
    color: #2563eb;
    text-decoration: none;
}
.article-body a:hover {
    text-decoration: underline;
}

/* Bloc enrichissement (numéros du tirage) */
.enrichment-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}
.enrichment-box h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: #333;
}
.enrichment-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.enrichment-numbers .ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.enrichment-numbers .ball.loto { background: #e63946; }
.enrichment-numbers .ball.euromillions { background: #1d3557; }
.enrichment-numbers .ball.eurodreams { background: #6c63ff; }
.enrichment-numbers .ball.keno { background: #2a9d8f; }
.enrichment-numbers .ball.crescendo { background: #e76f00; }
.enrichment-numbers .ball.chance { background: #fca311; color: #333; }
.enrichment-numbers .ball.star { background: #ffd700; color: #333; }
.enrichment-numbers .ball.dream { background: #9d4edd; }
.enrichment-link {
    font-size: 0.9rem;
    color: #1d3557;
    font-weight: 500;
}

/* Bloc enrichissement couleurs jeu */
.enrichment-box.loto { border-color: rgba(230,57,70,0.2); background: rgba(230,57,70,0.04); }
.enrichment-box.euromillions { border-color: rgba(29,53,87,0.2); background: rgba(29,53,87,0.04); }
.enrichment-box.eurodreams { border-color: rgba(108,99,255,0.2); background: rgba(108,99,255,0.04); }
.enrichment-box.keno { border-color: rgba(42,157,143,0.2); background: rgba(42,157,143,0.04); }
.enrichment-box.crescendo { border-color: rgba(231,111,0,0.2); background: rgba(231,111,0,0.04); }

/* Intro et conclusion */
.article-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}
.article-conclusion {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #f0f4f8;
    border-radius: 8px;
}
.article-conclusion p {
    margin: 0;
    color: #333;
}

/* CTA box */
.article-cta-box {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}
.article-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.article-cta-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #1d3557;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.article-cta-links a:hover {
    background: #16293f;
}
.article-cta-box.loto .article-cta-links a { background: #e63946; }
.article-cta-box.loto .article-cta-links a:hover { background: #c1121f; }
.article-cta-box.euromillions .article-cta-links a { background: #1d3557; }
.article-cta-box.eurodreams .article-cta-links a { background: #6c63ff; }
.article-cta-box.keno .article-cta-links a { background: #2a9d8f; }
.article-cta-box.crescendo .article-cta-links a { background: #e76f00; }

/* Disclaimer */
.disclaimer-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #664d03;
}

/* Articles liés */
.article-related {
    margin-top: 3rem;
}
.article-related h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: #1a1a2e;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.related-card {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-date {
    font-size: 0.75rem;
    color: #999;
}
.related-card h3 {
    font-size: 0.95rem;
    margin: 0.25rem 0 0.5rem;
    color: #1a1a2e;
    line-height: 1.3;
}
.related-card p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   SIDEBAR
   ============================================ */

.actualites-sidebar,
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sidebar-widget h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin-bottom: 0.5rem;
}
.sidebar-nav a {
    color: #1d3557;
    text-decoration: none;
    font-size: 0.9rem;
}
.sidebar-nav a:hover {
    text-decoration: underline;
}

.sidebar-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-articles li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.sidebar-articles li:last-child {
    border-bottom: none;
}
.sidebar-articles a {
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.sidebar-articles a:hover {
    color: #1d3557;
}
.sidebar-articles small {
    color: #999;
    font-size: 0.75rem;
}
.sidebar-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.15rem;
}
.sidebar-more {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #1d3557;
    text-decoration: none;
    font-weight: 500;
}

/* Hub pages - mini articles */
.hub-latest-articles {
    margin-top: 2.5rem;
}
.hub-latest-articles h2 {
    margin-bottom: 1rem;
}
.articles-grid-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.article-card-mini {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.article-card-mini:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.article-card-mini .article-card-date {
    font-size: 0.75rem;
    color: #999;
}
.article-card-mini h3 {
    font-size: 0.9rem;
    margin: 0.25rem 0 0.5rem;
    color: #1a1a2e;
    line-height: 1.3;
}
.article-card-mini p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
.voir-plus-link {
    color: #1d3557;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}
.voir-plus-link:hover {
    text-decoration: underline;
}

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

@media (max-width: 1024px) {
    .actualites-container {
        grid-template-columns: 1fr;
    }
    .actualites-sidebar {
        position: static;
        gap: 15px;
    }
    /* Pour les articles : la sidebar reste APRÈS le contenu (pas order:-1 comme prochain-tirage) */
    .page-article .prochain-tirage-sidebar {
        order: unset;
    }
    .articles-grid-mini {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-cta-links {
        flex-direction: column;
    }
    .actualites-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid-mini {
        grid-template-columns: 1fr;
    }
}
