/* =========================================================
   ACTUALITÉ
========================================================= */

.article-page {
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   RETOUR
========================================================= */

.back-link {
    display: inline-block;
    margin-bottom: 22px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.back-link:hover {
    color: var(--primary);
}


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

.article-page {
    padding-bottom: 40px;
}


/* =========================================================
   SOURCE
========================================================= */

.article-source {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 16px;
}


.article-source-logo {
    width: 24px;
    height: 24px;
}


.article-source-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   TITRE
========================================================= */

.article-title {
    margin: 0 0 22px;

    color: var(--text);

    font-size: 34px;
    line-height: 1.2;

    letter-spacing: -.8px;
}


/* =========================================================
   CHAPÔ
========================================================= */

.article-excerpt {
    padding: 20px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.65;
}


/* =========================================================
   JEUX ASSOCIÉS
========================================================= */

.article-games {
    margin-top: 24px;
}


.article-games-label {
    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .6px;
}


.article-game-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.article-game-tag {
    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding: 5px 12px 5px 6px;

    gap: 8px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


.article-game-tag:hover {
    border-color: var(--accent);

    color: var(--accent);
}


.article-game-tag img {
    width: 28px;
    height: 36px;

    object-fit: cover;

    border-radius: 4px;
}


/* =========================================================
   SOURCE ORIGINALE
========================================================= */

.article-actions {
    display: block;
    margin: -12px 0 24px;
}

.article-actions .source-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0;

    background: none;
    border: 0;
    border-radius: 0;

    color: var(--primary) !important;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;

    visibility: visible !important;
    opacity: 1 !important;

    transition: color .15s ease;
}

.article-actions .source-button span {
    font-size: 14px;
    transition: transform .15s ease;
}

.article-actions .source-button:hover {
    background: none;
    color: var(--primary-dark) !important;
}

.article-actions .source-button:hover span {
    transform: translateX(3px);
}

/* =========================================================
   NAVIGATION NEWS
========================================================= */

.article-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 18px;
}


.article-nav {
    display: flex;
    flex-direction: column;

    gap: 7px;

    min-width: 0;

    padding: 16px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text);

    text-decoration: none;
}


.article-nav:hover {
    border-color: var(--accent);
}


.article-nav.next {
    text-align: right;
}


.article-nav-label {
    color: var(--text-soft);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;
}


.article-nav strong {
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   404
========================================================= */

.article-not-found {
    max-width: 700px;

    margin: 60px auto;

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 14px;
}


.article-not-found h1 {
    margin-top: 0;
}


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

@media (max-width: 700px) {

    .article-page {
        padding-bottom: 25px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-excerpt {
        padding: 16px;

        font-size: 15px;
    }

}

@media (max-width: 450px) {

    .article-title {
        font-size: 24px;
    }

}

/* =========================================================
   ARTICLE + JEU ASSOCIÉ
========================================================= */

.article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 28px;

    align-items: start;
}


.article-game-sidebar {
    min-width: 0;
}


.article-game-card {
    padding: 18px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 12px;

    position: sticky;
    top: 20px;
}


/* =========================================================
   COVER
========================================================= */

.article-game-cover {
    display: block;

    overflow: hidden;

    border-radius: 9px;
}


.article-game-cover img {
    display: block;

    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;
}


/* =========================================================
   NOM
========================================================= */

.article-game-name {
    margin: 15px 0 14px;

    font-size: 20px;
    line-height: 1.25;
}


.article-game-name a {
    color: var(--text);
    text-decoration: none;
}


.article-game-name a:hover {
    color: var(--primary);
}


/* =========================================================
   INFOS
========================================================= */

.article-game-info {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);
}


.article-game-info div {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    font-size: 12px;
}


.article-game-info span {
    color: var(--text-soft);
}


.article-game-info strong {
    text-align: right;
}


/* =========================================================
   PLATEFORMES
========================================================= */

.article-game-meta {
    margin-top: 15px;
}


.article-game-meta-label {
    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;
}


.article-game-meta .tags {
    gap: 5px;
}


.article-game-meta .tag {
    font-size: 10px;

    min-height: 24px;

    padding: 3px 8px;
}


/* =========================================================
   FICHE
========================================================= */

.article-game-link {
    display: block;

    margin-top: 16px;
    padding: 10px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 800;

    text-align: center;
    text-decoration: none;
}


.article-game-link:hover {
    border-color: var(--primary);

    color: var(--primary);
}


/* =========================================================
   OFFRES
========================================================= */

.article-offers {
    margin-top: 18px;
    padding-top: 17px;

    border-top: 1px solid var(--border);
}


.article-offers-title {
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 800;
}


.article-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);
}


.article-offer:last-child {
    border-bottom: 0;
}


.article-offer-main {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.article-offer-main strong {
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.article-offer-right {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-shrink: 0;
}


.article-offer-right > strong {
    font-size: 12px;
}


.article-offer-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--text);

    font-weight: 800;

    text-decoration: none;
}


.article-offer-right a:hover {
    background: var(--primary);

    border-color: var(--primary);

    color: #fff;
}

img.i31card {
        aspect-ratio: 2 / 1;
}


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

@media (max-width: 850px) {

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-game-sidebar {
        order: 2;
    }

    .article-game-card {
        position: static;
    }

}


@media (max-width: 700px) {

    .article-layout {
        gap: 20px;
    }

}

