/* ARTICLES DE LISTES (single-article.php, archive-article.php, templates/article-card.php) */

/* Texte de l'article : colonne de lecture */
.article-text {
    max-width: 860px;
}
.article-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--bgr-purple);
    text-transform: uppercase;
}

/* Intro : texte + sommaire de la liste */
.article-intro .grid-container {
    display: flex;
    align-items: flex-start;
    column-gap: 60px;
    row-gap: 40px;
}
.article-intro .article-text {
    flex: 2;
}
.article-toc {
    flex: 1;
    background: var(--bgr-light-grey);
    border-radius: 20px;
    padding: 30px;
}
.article-toc h2 {
    font-size: 20px;
    margin-bottom: 15px;
}
.article-toc ol {
    margin: 0 0 0 1.2em;
}
.article-toc li {
    padding: 4px 0;
}

/* Liste des jeux */
.article-game {
    display: flex;
    align-items: flex-start;
    column-gap: 40px;
    background: var(--bgr-white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    scroll-margin-top: calc(var(--header-height, 0px) + var(--submenu-height, 0px) + 20px);
}
.article-game:last-child {
    margin-bottom: 0;
}
.article-game-image {
    flex: 0 0 220px;
}
.article-game-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.article-game-text {
    flex: 1;
}
.article-game-text h2 {
    display: flex;
    align-items: center;
    column-gap: 15px;
    font-size: 30px;
    margin-bottom: 15px;
}
.article-game-text h2 a {
    color: inherit;
}
.article-game-text h2 a:hover {
    color: var(--bgr-purple);
}
.article-game-rank {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bgr-purple);
    color: var(--bgr-white);
    font-size: 22px;
}
.article-game-facts {
    background: var(--bgr-light-grey);
    border-left: 5px solid var(--bgr-teal);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
}

/* Tableau comparatif */
.article-table-scroll {
    overflow-x: auto;
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.article-table th {
    text-align: left;
    background: var(--bgr-black);
    color: var(--bgr-white);
    padding: 12px;
    white-space: nowrap;
}
.article-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bgr-light-grey);
}
.article-table tr:nth-child(even) td {
    background: var(--bgr-light-grey);
}
.article-conclusion {
    margin-top: 40px;
}

/* Archive : cartes d'articles, 3 de large */
.article-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bgr-white);
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: all 0.5s ease;
}
.article-card:hover {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
}
.article-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, rgba(0,225,210,1) 0%, rgba(179,0,255,1) 100%);
    overflow: hidden;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-infos {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}
.article-card-tags {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bgr-purple);
    margin-bottom: 10px;
}
.article-card h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
}
.article-card-excerpt {
    font-size: 15px;
}
.article-card-more {
    margin: auto 0 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

@media screen and (max-width: 1024px) {
    .article-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-intro .grid-container {
        flex-direction: column;
    }
    .article-toc {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .article-cards {
        grid-template-columns: 1fr;
    }
    .article-game {
        flex-direction: column;
        padding: 20px;
        row-gap: 20px;
    }
    .article-game-image {
        flex: none;
        width: 160px;
    }
    .article-game-text h2 {
        font-size: 24px;
    }
}
