:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #17202a;
    --text-soft: #667085;
    --text-light: #98a2b3;

    --border: #e4e7ec;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #c2410c;

    --radius: 14px;
    --radius-small: 10px;

    --shadow:
        0 2px 8px rgba(16, 24, 40, .04);

    --shadow-hover:
        0 8px 24px rgba(16, 24, 40, .08);
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}


.header-inner {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}


.logo span {
    color: var(--primary);
}


nav {
    display: flex;
    align-items: center;
    gap: 6px;
}


nav a {
    padding: 9px 13px;

    border-radius: 8px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 600;

    transition:
        background .15s ease,
        color .15s ease;
}


nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}


/* =========================================================
   MAIN
========================================================= */

main {
    padding: 34px 0 60px;
}


.back-link {
    display: inline-flex;

    margin-bottom: 22px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 600;
}


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


/* =========================================================
   CARDS
========================================================= */

.card,
.content-card {
    background: var(--surface);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.card {
    padding: 20px;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.card:hover {
    transform: translateY(-1px);

    border-color: #d8dee8;

    box-shadow: var(--shadow-hover);
}


/* =========================================================
   SOURCES
========================================================= */

.news-source,
.game-news-source {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--text-soft);

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


.news-source {
    margin-bottom: 11px;
}


.source-logo {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 30px;

    background: #fff;

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

    border-radius: 50%;

    overflow: hidden;
}


.source-logo img {
    width: 22px;
    height: 22px;

    object-fit: contain;
}


.source-name {
    color: var(--text);
}


.news-date {
    color: var(--text-light);
    font-weight: 500;
}


/* =========================================================
   NEWS INDEX
========================================================= */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.card h2 {
    margin: 0 0 10px;

    font-size: 20px;
    line-height: 1.3;

    letter-spacing: -.25px;
}


.card h2 a:hover {
    color: var(--primary);
}


.card p {
    margin: 0 0 13px;

    color: var(--text-soft);

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


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

    padding: 5px 9px;

    border-radius: 7px;

    background: var(--surface-soft);

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

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   JEUX INDEX
========================================================= */

.sidebar-title {
    margin: 0 0 14px;

    font-size: 20px;
    letter-spacing: -.25px;
}


.games {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.game {
    display: block;

    background: var(--surface);

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

    border-radius: var(--radius-small);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.game:hover {
    transform: translateY(-2px);

    border-color: #d8dee8;

    box-shadow: var(--shadow-hover);
}


.game-image {
    aspect-ratio: 3 / 4;

    background: #e9edf2;

    overflow: hidden;
}

.game-release {
    aspect-ratio: 2/1;

    background: #e9edf2;

    overflow: hidden;
}


.game img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}


.game:hover img {
    transform: scale(1.035);
}


.game-name {
    padding: 11px 10px;

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

    line-height: 1.3;
}


/* =========================================================
   META / TAGS
========================================================= */

.game-meta-block {
    margin-bottom: 20px;
}


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

    color: var(--text-soft);

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

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


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


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

    min-height: 27px;

    padding: 4px 10px;

    border-radius: 999px;

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

    border: 1px solid transparent;
}

.tag::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.ps5::before,
.ps4::before,
.ps3::before {
    background-image: url("../icons/play.png");
}

.xbox::before {
    background-image: url("../icons/xbox.png");
}

.vr::before {
    background-image: url("../icons/vr.png");
}

.switch::before {
    background-image: url("../icons/switch.png");
}

.pc::before {
    background-image: url("../icons/pc.png");
}

.linux::before {
    background-image: url("../icons/linux.png");
}

.mac::before {
    background-image: url("../icons/mac.png");
}

.phone::before {
    background-image: url("../icons/phone.png");
}


/* PlayStation */

.tag.ps5 {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}


.tag.ps4 {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.tag.ps3 {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}


/* Xbox */

.tag.xbox {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}


/* Nintendo */

.tag.switch {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}


.tag.phone {
        background: #413939;
    color: #dddddd;
    border-color: #5d4f51;
}


/* PC */

.tag.pc {
    background: #fff7ed;
    color: #eb5517;
    border-color: #fbb667;
}

.tag.linux {
    background: #f1f0f0;
    color: #89811b;
    border-color: #b7bf88;
}

.tag.mac {
    background: #ffffff;
    color: #81726c;
    border-color: #716659;
}

/* Other */

.tag.other {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.tag.vr {
        background: #f2e4f5;
    color: #6a2d79;
    border-color: #bb93e7;
}



/* Genres */

.tag.genre {
    background: #f8fafc;
    color: #475467;
    border-color: #e4e7ec;
}

.tag.other::before,
.tag.genre::before {
    display: none;
}




/* =========================================================
   CONTENU FICHE JEU
========================================================= */

.game-layout {
    display: flex;
    flex-direction: column;

    gap: 20px;

    margin-top: 22px;
}


.content-card {
    padding: 24px;
}


.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.section-header h2 {
    margin: 0;

    font-size: 21px;
    letter-spacing: -.3px;
}


.section-header p {
    margin: 4px 0 0;

    color: var(--text-soft);

    font-size: 13px;
}


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

.offers-list {
    display: flex;
    flex-direction: column;
}


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

    gap: 20px;

    padding: 16px 0;

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


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


.offer-main {
    min-width: 0;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 14px;
}


.merchant {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.merchant strong {
    font-size: 15px;
}


.merchant span {
    color: var(--text-soft);

    font-size: 12px;
}


.offer-platform {
    padding: 4px 8px;

    border-radius: 6px;

    background: var(--surface-soft);

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

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;
}


.offer-status {
    width: 100%;

    color: var(--danger);

    font-size: 12px;
}


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

    gap: 14px;

    flex-shrink: 0;
}


.offer-price {
    white-space: nowrap;

    font-size: 18px;
}


.offer-button {
    display: inline-flex;
    align-items: center;

    padding: 9px 13px;

    border-radius: 8px;

    background: var(--primary);

    color: #fff;

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

    transition:
        background .15s ease,
        transform .15s ease;
}


.offer-button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


.offer-unavailable {
    opacity: .65;
}


/* =========================================================
   ACTUALITÉS DE LA FICHE
========================================================= */

.game-news-list {
    display: flex;
    flex-direction: column;
}


.game-news {
    padding: 15px 0;

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


.game-news:last-child {
    border-bottom: 0;
}


.game-news-source {
    margin-bottom: 8px;

    font-size: 12px;
}


.game-news .source-logo {
    width: 26px;
    height: 26px;

    flex-basis: 26px;
}


.game-news .source-logo img {
    width: 19px;
    height: 19px;
}


.game-news-title {
    display: block;

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

    line-height: 1.4;
}


.game-news-title:hover {
    color: var(--primary);
}


.empty-state {
    padding: 20px 0;

    color: var(--text-soft);

    font-size: 14px;
}


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

@media (max-width: 900px) {

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


  
}


@media (max-width: 700px) {

    .wrap {
        width: min(100% - 24px, 1180px);
    }


    .header-inner {
        min-height: auto;

        padding: 14px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }


    nav {
        width: 100%;

        overflow-x: auto;
    }


    nav a {
        white-space: nowrap;
    }


    main {
        padding-top: 24px;
    }


  

    .offer {
        align-items: flex-start;
        flex-direction: column;
    }


    .offer-right {
        width: 100%;

        justify-content: space-between;
    }

}


@media (max-width: 450px) {

    .card,
    .content-card {
        padding: 16px;
    }


    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }


    .game-name {
        font-size: 12px;
    }


    .offer-right {
        align-items: center;
    }


    .offer-price {
        font-size: 16px;
    }

}


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

.article-page {
    max-width: 900px;

    margin: 0 auto;

    padding: 38px 42px;

    background: var(--surface);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


/* Source */

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

    gap: 9px;

    margin-bottom: 22px;

    color: var(--text-soft);

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


.article-source-logo {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
}


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


/* Titre */

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

    font-size: 36px;

    line-height: 1.18;

    letter-spacing: -.8px;
}



/* =========================================================
   PAGINATION
========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 24px;
    padding-top: 20px;

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

.pagination-button {
    display: inline-flex;
    align-items: center;

    min-height: 36px;
    padding: 7px 12px;

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

    background: var(--bg-soft);
    color: var(--text);

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

    text-decoration: none;
}

.pagination-button:hover {
    background: var(--bg);
}

.pagination-current {
    color: var(--text-soft);

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

.game-release-date {
    display: block;

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   OFFER PLATFORMS
========================================================= */

.offer-platform {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 3px 9px;

    border-radius: 999px;

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

    border: 1px solid transparent;
}


.offer-platform::before {
    content: "";
    display: inline-block;

    width: 14px;
    height: 14px;

    margin-right: 6px;

    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}


.offer-platform.playstation-store::before {
    background-image: url("../icons/play.png");
}

.offer-platform.steam::before {
    background-image: url("../icons/steam.png");
}

.offer-platform.microsoft-store::before {
    background-image: url("../icons/xbox.png");
}

.offer-platform.nintendo-eshop::before {
    background-image: url("../icons/eshop.png");
}

.offer-platform.epic-games::before {
    background-image: url("../icons/epic.png");
}

.offer-platform.gog::before {
    background-image: url("../icons/gog.png");
}

.offer-platform.ubisoft-connect::before {
    background-image: url("../icons/ubisoft.png");
}

.offer-platform.ea-app::before {
    background-image: url("../icons/ea.png");
}


/* PlayStation Store */

.offer-platform.playstation-store {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}


/* Steam */

.offer-platform.steam {
    background: #eef2f5;
    color: #1f2937;
    border-color: #cbd5e1;
}


/* Microsoft Store */

.offer-platform.microsoft-store {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}


/* Nintendo eShop */

.offer-platform.nintendo-eshop {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}


/* Epic Games */

.offer-platform.epic-games {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

/* Epic Games */

.offer-platform.pc {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}


/* GOG */

.offer-platform.gog {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}


/* Ubisoft Connect */

.offer-platform.ubisoft-connect {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}


/* EA */

.offer-platform.ea-app {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}


/* Autres */

.offer-platform.other {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.offer-platform.other::before {
    display: none;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 60px;

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

    background: var(--surface);
}


.site-footer-inner {
    max-width: 1200px;

    margin: 0 auto;
    padding: 32px 20px 24px;

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 25px;
}


/* ---------------------------------------------------------
   MARQUE
--------------------------------------------------------- */

.site-footer-brand {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.site-footer-brand strong {
    color: var(--text);

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

    letter-spacing: -.2px;
}


.site-footer-brand span {
    color: var(--text-soft);

    font-size: 12px;
}


/* ---------------------------------------------------------
   LIENS
--------------------------------------------------------- */

.site-footer-links {
    display: flex;
    align-items: center;

    gap: 20px;
}


.site-footer-links a {
    color: var(--text-soft);

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

    text-decoration: none;

    transition: color .15s ease;
}


.site-footer-links a:hover {
    color: var(--primary);
}


/* ---------------------------------------------------------
   COPYRIGHT
--------------------------------------------------------- */

.site-footer-bottom {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;

    gap: 8px;

    padding-top: 18px;

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

    color: var(--text-soft);

    font-size: 11px;
}


.site-footer-separator {
    opacity: .5;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .site-footer-inner {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .site-footer-links {
        flex-wrap: wrap;

        gap: 14px;
    }

}