/* ========== Shared page layout ========== */
.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

.nav-links a.nav-active {
    color: #ef4848;
}

.nav-links a.nav-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ef4848;
}

.page-main {
    background-color: #000;
}

.page-section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: "RobotoCondensed", sans-serif;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin: 50px 20px 30px;
}

/* ========== Promotions hero ========== */
.promo-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #a8d8c9;
}

.promo-hero picture,
.promo-hero img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
}

.promo-hero-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px 20px;
    text-align: center;
}

.promo-hero-fallback .script-title {
    font-family: "ROGLyons", serif;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #1a3d34;
    margin: 0 0 10px;
    font-style: italic;
}

.promo-hero-fallback .discount {
    font-family: "RobotoCondensed", sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== Page tabs (ROG / TUF) ========== */
.page-products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px 60px;
}

.page-tabs {
    max-width: 1100px;
    margin: 0 auto 0;
}

.page-tabs .tab span {
    color: #fff;
    font-family: "RobotoCondensed", sans-serif;
}

.page-tabs .tab.active[data-brand="rog"] {
    border-bottom-color: #ef4848;
}

.page-tabs .tab.active[data-brand="tuf"],
.page-tabs .tab[data-tab="tuf"].active {
    border-bottom-color: #ff9500;
}

/* ========== Product grid (Promotions & Nouveautés) ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

.products-grid--promo {
    position: relative;
    background-image: url("../assets/image/BG.jpg");
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

@media (min-width: 1120px) {
    .products-grid--promo {
        width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

.products-grid--promo::before,
.products-grid--promo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    opacity: 0.4;
}

.products-grid--promo::before {
    left: 0;
    background: linear-gradient(90deg, rgba(239, 72, 72, 0.5), transparent);
}

.products-grid--promo::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(239, 72, 72, 0.5), transparent);
}

.products-grid--promo.tuf-glow::before {
    background: linear-gradient(90deg, rgba(255, 149, 0, 0.5), transparent);
}

.products-grid--promo.tuf-glow::after {
    background: linear-gradient(-90deg, rgba(255, 149, 0, 0.5), transparent);
}

.products-grid .product-card {
    width: 100%;
    box-sizing: border-box;
}

.products-grid .product-card.is-hidden {
    display: none;
}

.badge--promo {
    background: #ef4848;
    color: #fff;
}

.badge--promo::after {
    border-color: #ef4848;
    border-top-color: transparent;
    border-left-color: transparent;
}

.badge--promo-tuf {
    background: #ff9500;
    color: #000;
}

.badge--promo-tuf::after {
    border-color: #ff9500;
    border-top-color: transparent;
    border-left-color: transparent;
}

.badge--nouveau {
    background: #fff;
    color: #000;
}

/* Load more */
.btn-load-more {
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 50px;
    padding: 18px 40px;
    border: none;
    color: #fff;
    font-family: "RobotoCondensed", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-load-more--rog {
    background: #ef4848;
}

.btn-load-more--tuf {
    background: #ff9500;
    color: #000;
}

.btn-load-more:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-load-more.is-hidden {
    display: none;
}

/* ========== VOUS AIMEREZ AUSSI ========== */
.also-like {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

.also-like h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: "RobotoCondensed", sans-serif;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.also-like-banner {
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

.also-like-banner.active {
    display: block;
}

.also-like-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.also-like-caption {
    position: relative;
    margin-top: -4px;
}

.also-like-caption p {
    color: #ccc;
    font-family: "TradeGothicLTPro", sans-serif;
    font-size: 1rem;
    text-align: center;
    padding: 15px 0;
}

/* ========== Nouveautés page ========== */
.page-hero-title {
    padding: 60px 20px 30px;
    text-align: center;
}

.page-hero-title h1 {
    font-family: "RobotoCondensed", sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
}

.nouveautes-tabs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Featured duo */
.featured-duo {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.featured-duo::before,
.featured-duo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    background: repeating-linear-gradient(
        -45deg,
        #333,
        #333 8px,
        #1a1a1a 8px,
        #1a1a1a 16px
    );
    opacity: 0.6;
    z-index: 1;
}

.featured-duo::before {
    left: -5px;
}

.featured-duo::after {
    right: -5px;
}

.featured-card {
    position: relative;
    border: 1px solid #444;
    padding: 25px 20px;
    background: #0a0a0a;
    transition: border-color 0.3s;
    z-index: 2;
}

.featured-card:hover {
    border-color: #ef4848;
}

.featured-card.tuf-card:hover {
    border-color: #ff9500;
}

.featured-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.featured-card h3 {
    font-family: "tradegothicltprobold", sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #fff;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.featured-card p {
    font-family: "TradeGothicLTPro", sans-serif;
    color: #aaa;
    font-size: 0.95rem;
    margin: 0 0 15px;
    line-height: 1.4;
}

.featured-card a {
    color: #fff;
    font-family: "RobotoCondensed", sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #fff;
    transition: color 0.3s, border-color 0.3s;
}

.featured-card a:hover {
    color: #ef4848;
    border-color: #ef4848;
}

.featured-card.tuf-card a:hover {
    color: #ff9500;
    border-color: #ff9500;
}

/* Game bundle banner */
.game-banner {
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.game-banner-inner {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.game-banner-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.game-banner-cta {
    position: absolute;
    bottom: 20%;
    left: 5%;
    padding: 14px 36px;
    background: #ef4848;
    color: #fff;
    border: none;
    font-family: "RobotoCondensed", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.game-banner-cta:hover {
    background: #d63d3d;
}

.game-banner-cta.tuf-cta {
    background: #ff9500;
    color: #000;
}

.game-banner-cta.tuf-cta:hover {
    background: #e68600;
}

/* Recommended grid (4 columns) */
.recommended-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

.recommended-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: "RobotoCondensed", sans-serif;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.products-grid--recommended {
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    background: none;
    width: 100%;
    margin: 0 auto;
}

.products-grid--recommended::before,
.products-grid--recommended::after {
    display: none;
}

.products-grid--recommended .product-card {
    text-align: center;
}

.products-grid--recommended .desc {
    text-align: center;
    margin-left: 0;
}

.products-grid--recommended .product-card ul {
    list-style: none;
    padding: 0;
}

/* ========== Footer mobile accordion ========== */
.footer-arrow {
    display: none;
    float: right;
    cursor: pointer;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .products-grid--promo {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .products-grid--recommended {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-duo::before,
    .featured-duo::after {
        display: none;
    }

    .game-banner-cta {
        bottom: 10%;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .footer-arrow {
        display: inline-block;
    }

    .footer-column ul,
    .footer-column .cont {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .footer-column.is-open ul,
    .footer-column.is-open .cont {
        max-height: 800px;
    }

    .footer-column h3 {
        cursor: pointer;
        user-select: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 15px;
    }

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

    .products-grid .product-card .desc {
        margin-left: 20px;
    }

    .btn-load-more {
        margin: 10px 15px 40px;
        width: calc(100% - 30px);
    }

    .page-tabs .tab {
        padding: 15px 10px;
    }

    .page-tabs .tab img {
        width: 32px;
    }

    .page-tabs .tab span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .promo-hero picture,
    .promo-hero img {
        min-height: 200px;
    }
}
