/* ════════════════════════════════════════════════════════════════════════════
   Romwize — Design system partagé
   Extrait de list.php pour usage par header.php / footer.php (includes)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal-900:  #0d2f33;
    --teal-800:  #103b40;
    --teal-700:  #14474c;
    --red:       #ef4035;
    --red-dark:  #b62a2a;
    --green:     #16a674;
    --green-dark:#0f8a5f;
    --orange:    #fe9d0c;
    --bg:        #f7f6f3;
    --bg-card:   #ffffff;
    --bg-soft:   #fffdfa;
    --border:    #e2dccb;
    --border-strong: #cfc6ad;
    --text:      #1a1f1f;
    --text-muted:#968f92;
    --gold:      #c9820a;
    --font:      'Noto', system-ui, -apple-system, sans-serif;
    --font-pixel:'Press Start 2P', monospace;
    --radius:    8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow:    0 2px 10px rgba(0,0,0,.08);
}

html, body { background: var(--bg); }
body {
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    min-height: 100vh;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* H1 avec barre déco */
h1 { letter-spacing: 1px; }
h1::before {
    content: "";
    background-image: url(../img/barre-titre.gif);
    background-repeat: no-repeat;
    background-size: contain;
    width: 10px;
    height: 21px;
    display: inline-block;
    position: relative;
    top: 1px;
    margin-right: 15px;
}

.small-title::before, h4::before {
    content: "";
    background-image: url(../img/barre-titre.gif);
    background-repeat: no-repeat;
    background-size: contain;
    width: 10px;
    height: 13px;
    display: inline-block;
    position: relative;
    top: 1px;
    margin-right: 4px;
}

.highlight{
    color: var(--red);
}

/* ── Top nav ────────────────────────────────────────────────────────────────── */
.topnav {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: relative;
}
.topnav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--red);
    letter-spacing: .5px;
    flex-shrink: 0;
}
.brand img {
    width: 110px;
    position: relative;
    top: 2px;
}
.search-wrap {
    flex: 1;
    max-width: 360px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    background: #dae0e0;
    border: none;
    border-radius: 999px;
    padding: 9px 16px 9px 38px;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    outline: none;
}
.search-wrap::before {
    content: "⚲";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    font-size: 20px;
    opacity: 1;
    pointer-events: none;
}

/* ── Suggestions de recherche (autocomplete) ────────────────────────────────── */
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 300;
}
.search-suggest[hidden] { display: none; }
.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
}
.search-suggest-item:hover,
.search-suggest-item.active { background: var(--bg-soft); }
.search-suggest-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.search-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest-body { flex: 1; min-width: 0; }
.search-suggest-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggest-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}
.search-suggest-meta .ss-sep { opacity: .45; }
.search-suggest-rarity {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}
.search-suggest-rarity .coin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6d0bd;
}
.search-suggest-rarity .coin.active {
    background: var(--gold);
    background-image: url(../img/icon_coin.gif);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.search-suggest-rarity .coin.half { position: relative; overflow: hidden; }
.search-suggest-rarity .coin.half::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    background-image: url(../img/icon_coin.gif);
    background-position: left center;
    background-size: 12px 12px;
    background-repeat: no-repeat;
}
.search-suggest-note {
    flex-shrink: 0;
    align-self: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    color: #fff;
}
.search-suggest-note.score-green  { background: var(--green); }
.search-suggest-note.score-orange { background: var(--orange); }
.search-suggest-note.score-red    { background: var(--red); }
.search-suggest-footer {
    display: block;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--red);
    background: var(--bg-soft);
    cursor: pointer;
}
.search-suggest-footer:hover,
.search-suggest-footer.active { background: var(--bg); }
.search-suggest-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
/* Sur mobile la barre est étroite (logo + langue de part et d'autre) :
   on détache le dropdown pour qu'il s'étende sur toute la largeur sous la nav. */
@media (max-width: 640px) {
    .search-suggest {
        position: fixed;
        top: 61px;
        left: 8px;
        right: 8px;
    }
}
.topnav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.topnav-links a {
    color: #131313;
    font-weight: 500;
    font-size: 14px;
    opacity: .9;
    transition: opacity .15s;
}
.topnav-links a:hover, .topnav-links a.active { opacity: 1; color: var(--red); }
.lang-pill {
    background: #f3f2f2;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e4dada;
    cursor: pointer;
    font-family: var(--font);
}
.lang-pill:hover { border-color: #cfc6c6; }

/* Icône compte (haut-droite) */
.user-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
    background: #f3f2f2; border: 1px solid #e4dada;
    color: var(--text); text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.user-pill:hover { border-color: #cfc6c6; }
.user-pill.is-auth { background: var(--red); border-color: var(--red); color: #fff; }
.user-pill.has-avatar { padding: 0; overflow: hidden; background: none; }
.user-pill.has-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Icône + pseudo (sous l'icône) quand connecté */
.user-nav { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.user-name {
    font-size: 11px; font-weight: 700; line-height: 1;
    color: var(--text); white-space: nowrap; text-align: center;
}
.user-name:hover { color: var(--red); }

/* Dropdown sélecteur de langue */
.lang-switcher { position: relative; }
.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 250;
    min-width: 180px;
    padding: 6px;
    overflow: hidden;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-switcher.open .lang-pill {
    background: #fff;
    border-color: var(--text);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    transition: background .12s;
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option.is-current {
    background: #f0f8ef;
    color: var(--green-dark);
    font-weight: 700;
}
.lang-flag { font-size: 18px; line-height: 1; }
.lang-name { flex: 1; }
.lang-code { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.lang-option.is-current .lang-code { color: var(--green-dark); }

@media (max-width: 640px) {
    .lang-menu {
        right: 0;
        min-width: 160px;
    }
}

/* ── Mega-menus (Consoles + Catégories) ────────────────────────────────────── */
.topnav-trigger {
    background: transparent;
    border: none;
    color: #131313;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.topnav-trigger:hover { color: var(--red); }
.topnav-trigger[aria-expanded="true"] {
    background: #131313;
    color: #fff;
}
.consoles-mega-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 90;
}
.consoles-mega-backdrop.open { display: block; }
.consoles-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    border-top: 1px solid var(--border);
    z-index: 95;
}
.consoles-mega.open { display: block; }
.consoles-mega-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 28px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 32px;
    position: relative;
}
.consoles-mega-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}
.consoles-mega-close:hover { background: var(--bg); color: var(--text); }
.consoles-pop-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 14px;
}
.consoles-pop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.console-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    background-color: black;
}
.console-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.console-thumb {
    aspect-ratio: 2 / 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}
.console-thumb picture, .console-thumb img {
    display: block; width: 100%; height: 100%; object-fit: cover; 
}
span.cat-menu {
    position: absolute;
    color: white;
    bottom: 3px;
    right: 14px;
    text-align: right;
    text-shadow: 0 0 3px black, -2px 5px 5px black, 0 0 8px black, 0 0 8px black, 0 0 8px black, 0 0 8px black;
    font-size: 17px;
    line-height: 18px;
    font-weight: 800;
    font-style: italic;
    rotate: -3deg;
}
span.title-cat-menu {
    color: #febe0f;
    text-transform: uppercase;
    text-shadow: 0 0 8px black, 0 0 8px black, 0 0 8px black, 0 0 8px black, 0 0 8px black;
    font-size: 19px;
}
#jvMega .console-thumb picture, #jvMega .console-thumb img {object-position: top right;}
.console-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 8px 10px;
}
.console-thumb-fallback span {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
    background-color: black;
    padding: 4px 8px;
    border-radius: 6px;
}
.console-name { font-size: 13px; font-weight: 700; margin-top: 6px; padding-left: 4px; text-align:center; padding-bottom:7px; color:white; }
.consoles-mega-list {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 32px; font-size: 13px;
}
.consoles-mega-list a:hover  {
        color: var(--red);
     }
.consoles-mega-list a { transition: color .15s; }
.mega-count { color: var(--text-muted); font-weight: 400; font-size: .92em; }

.consoles-mega-all { margin-top: 8px; font-weight: 700; color: var(--text) !important; }

/* ── Mega-menu Jeux (Jeux vidéo + Cartes à collectionner) ────────────────────── */
.jv-mega-inner {
    grid-template-columns: repeat(2, minmax(260px, 360px));
    gap: 48px;
    justify-content: end; /* sections collées à droite : Cartes au milieu, Jeux vidéo à droite */
}
/* Inverse l'ordre visuel des deux sections (DOM = Jeux vidéo puis Cartes) */
.jv-section:first-of-type { order: 2; } /* Jeux vidéo → à droite */
.jv-section:last-of-type  { order: 1; } /* Cartes à collectionner → au milieu */
.jv-section .consoles-pop-title { display: flex; align-items: center; }
.jv-soon {
    margin-left: 10px;
    letter-spacing: normal;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    padding: 3px 7px;
    border-radius: 999px;
}
.jv-list { display: flex; flex-direction: column; gap: 6px; }
.jv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: background .12s, transform .12s;
}
.jv-item:hover { background: var(--bg-soft); transform: translateX(2px); color: var(--red); }
.jv-thumb {
    flex-shrink: 0;
    width: 72px; height: 46px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.jv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jv-label { font-size: 14px; font-weight: 700; line-height: 1.25; }
/* « À venir » : vignette nette (on montre l'art), libellé grisé + badge SOON.
   NB : pas d'opacity sur le parent, sinon les enfants ne peuvent pas rester nets. */
.jv-item-soon { cursor: not-allowed; filter: grayscale(1); }
.jv-item-soon .jv-label { color: var(--text-muted); }
.jv-item-soon:hover { background: transparent; transform: none; }

.categories-mega-inner { grid-template-columns: 1fr 200px; }
.categories-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.categories-col .consoles-pop-title { margin-bottom: 14px; }
.categories-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.categories-list a { color: var(--text); padding: 2px 0; transition: color .15s; }
.categories-list a:hover { color: var(--red); }
.categories-popular-list { padding-top: 0; }
.categories-popular-list .consoles-pop-title { margin-bottom: 14px; }

/* ── Mega-menu Jeux (Tops) ─────────────────────────────────────────────────── */
.jeux-mega-inner { grid-template-columns: 1fr 240px; }
.jeux-tops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.jeux-top-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--bg-soft);
    transition: transform .15s, box-shadow .15s;
}
.jeux-top-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.jeux-top-cover {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.jeux-tops-all {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 20px;
    border: 1.5px solid var(--red);
    border-radius: 999px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s !important;
    background:var(--red);
}

.jeux-tops-all:hover { background: #fff !important; color: var(--red) !important; }
/* Variante outline : même pilule que .jeux-tops-all mais fond blanc + texte/bordure rouge */
.jeux-tops-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 20px;
    border: 1.5px solid #0d0d0d;
    border-radius: 999px;
    background: #ffffff;
    color: #040404;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.jeux-tops-cta:hover { background: var(--red); color: #fff !important; border: 1.5px solid var(--red); }
.jeux-tops-cta span{
    font-size: 16px;
    padding-right: 5px;
}
/* Conteneur des 3 boutons du menu Tops : transparent en desktop (les boutons restent
   des enfants directs de la colonne) ; devient une barre fixe en bas en mobile. */
.jeux-vlist-actions { display: contents; }
.jeux-vlist .consoles-pop-title { margin-bottom: 14px; }

.desc-og {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    height: auto;
    top: 0;
    margin: 0;
}
.img-og {
    background-image: url(../img/category/sport-sd.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 266px;
    height: 171px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 15px;
    background-position: top right;
}
.user-nav {
    width: 40px;
    height: 37px;
}
a.user-name {
    font-size: 9px;
    margin: auto;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

@media (max-width: 640px) {
    .jeux-mega-inner { grid-template-columns: 1fr; }
    .jeux-tops { grid-template-columns: 1fr 1fr; }
    /* Sur mobile : seulement les 8 premiers tops (2 col × 4 lignes) */
    .jeux-tops .jeux-top-card:nth-child(n+9) { display: none; }

    /* Réserve l'espace sous le contenu scrollable pour la barre d'actions fixe. */
    .jeux-mega .consoles-mega-inner { padding-bottom: 200px; }

    /* Les 3 boutons du menu Tops : barre fixe en bas de l'écran. */
    .jeux-vlist-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 210;
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -6px 18px rgba(0,0,0,.10);
    }
    .jeux-vlist-actions .jeux-tops-all,
    .jeux-vlist-actions .jeux-tops-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 11px 18px;
        text-align: center;
    }

}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
    background: #fff;
    margin-top: 40px;
    padding: 36px 24px 28px;
}
.footer-brand img {
    filter: grayscale(1) contrast(3);
    width: 120px;
    margin: auto;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.footer-col { text-align: center; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { font-size: 12px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-mid { text-align: center; }
.footer-brand { font-family: var(--font-pixel); font-size: 14px; color: var(--red); margin-bottom: 4px; }
.footer-brand-sub {
    display: block; font-family: var(--font-pixel); font-size: 5px;
    color: var(--text-muted); letter-spacing: 4px; margin-bottom: 14px;
}
.btn-contact {
    display: inline-block;
    background: #ffffff;
    color: #323232;
    border-radius: 99px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
    border: 1.5px solid #dddddd;
}
.btn-contact:hover { border-color: #4b4848; }
.socials { gap: 12px; display: inline-flex; }
.social-icon {
    width: 32px; height: 32px;
    color: #fff; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.icon-short{ margin-top: 5px; }
.copyright {
    max-width: 1180px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Bottom nav (mobile only) ──────────────────────────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--teal-900);
    border-top: 1px solid rgba(255,255,255,.06);
    z-index: 100;
}
.bottom-nav-white { background: #fff; }
.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 520px;
    margin: 0 auto;
}
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    transition: color .15s;
    letter-spacing: 0.5px;
}
.bottom-nav .nav-item.active { color: var(--red); }
.bottom-nav .nav-item .nav-icon {
    width: 75px; height: 25px;
    display: inline-block; font-size: 22px; line-height: 1;
}
.bottom-nav .nav-item-black { color: black; }

.icon-manette { width: 75px; height: 35px; background-color: white;
    mask: url("../img/icon-manette.svg") center / contain no-repeat;
    -webkit-mask: url("../img/icon-manette.svg") center / contain no-repeat; }
.icon-console { width: 75px; height: 33px; background-color: white;
    mask: url("../img/icon-console.svg") center / contain no-repeat;
    -webkit-mask: url("../img/icon-console.svg") center / contain no-repeat; }
.icon-category { width: 75px; height: 32px; background-color: white;
    mask: url("../img/icon-category.svg") center / contain no-repeat;
    -webkit-mask: url("../img/icon-category.svg") center / contain no-repeat; }
.icon-manette-black, .icon-console-black, .icon-category-black { background-color: black; }

/* ── Responsive (≤ 640px) ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .topnav-inner { gap: 10px; padding: 12px 16px; flex-wrap: nowrap; }
    .topnav-links { display: none; }
    .brand img { width: 110px; }
    .search-wrap { flex: 1; max-width: none; }
    .search-wrap input { padding: 8px 14px 8px 34px; font-size: 13px; }
    .lang-pill { padding: 5px 9px; font-size: 11px; flex-shrink: 0; }

    body { padding-bottom: 86px; }
    .bottom-nav { display: block; }

    /* Mega-menu full-screen sheet */
    .consoles-mega {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        z-index: 200; overflow-y: auto; border-top: none;
    }
    .consoles-mega-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 48px 20px 100px;
    }
    .consoles-mega-close {
        top: 14px; right: 16px; font-size: 22px; background: var(--bg);
    }
    .consoles-pop { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .console-name { font-size: 12px;}
    .consoles-mega-list {
        padding-top: 10px;
        border-top: 1px solid var(--border);
        font-size: 14px; gap: 12px;
    }
    .consoles-mega-list a {
        padding: 10px 18px;
    }
     
    .consoles-mega-backdrop { display: none !important; }

    .jv-mega-inner { grid-template-columns: 1fr; gap: 20px; }
    .jv-mega-inner .jv-section { order: 0; } /* empilement = ordre DOM (Jeux vidéo en haut) */
    .jv-section + .jv-section { padding-top: 14px; border-top: 1px solid var(--border); }

    .categories-mega-grid { grid-template-columns: 1fr; gap: 18px; }
    .categories-col + .categories-col {
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
    .categories-list { font-size: 14px; gap: 10px; }
    .categories-list a {
        padding: 7px 18px;
        background-color: #faf7f2;
        border-radius: 15px;
    }
    .categories-popular-list {
        border-top: 1px solid var(--border);
        padding-top: 14px;
    }
    .console-thumb { aspect-ratio: 1 / 1; }

    .img-og{
        width: 100%;
        margin-bottom: 10px;
    }
    #jvMega .console-thumb picture, #jvMega .console-thumb img {object-position: center;}

    /* Footer mobile */
    footer { padding: 28px 20px 24px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .socials { justify-content: center; }
}

/* ── Pages statiques (À propos, Confidentialité, CGU) ────────────────────────── */
.static-hero {
    background: var(--teal-900);
    color: #fff;
    padding: 40px 0;
}
.static-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}
.static-kicker {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.static-hero h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
}
.static-hero h1::before { display: none; }
.static-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    max-width: 680px;
}
.static-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 34px 24px 64px;
}
.static-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.static-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
}
.static-toc a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 13px;
    transition: border-color .15s, color .15s;
}
.static-toc a:hover { border-color: var(--text); }
.static-prose h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 36px 0 12px;
    scroll-margin-top: 16px;
}
.static-prose > h2:first-child { margin-top: 0; }
.static-prose h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 8px;
}
.static-prose p {
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 14px;
    color: #33403f;
}
.static-prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
}
.static-prose li {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 7px;
    color: #33403f;
}
.static-prose a { font-weight: 600; }
.static-prose a:hover {}
.static-prose strong { font-weight: 700; color: var(--text); }
.static-note {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #4a4540;
    margin: 0 0 20px;
}
.static-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 8px 0 26px;
}
.static-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.static-card .ico { font-size: 22px; }
.static-card h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 700; }
.static-card p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.static-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.static-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: var(--bg-card);
    transition: border-color .15s, color .15s;
}
.static-btn:hover { border-color: var(--red); color: var(--red); }
.static-btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.static-btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

@media (max-width: 640px) {
    .static-hero { padding: 26px 0; }
    .static-hero h1 { font-size: 23px; }
    .static-wrap { padding: 26px 18px 48px; }
    .static-cards { grid-template-columns: 1fr; }
    .home-sec-head { padding-bottom: 2px !important; margin-bottom: 9px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Encarts publicitaires masqués en attendant la validation AdSense.
   Tous les emplacements portent la classe .rw-ad (ads.php + placeholders manuels).
   → Pour réactiver toutes les pubs d'un coup : SUPPRIMER ce bloc.
   ═══════════════════════════════════════════════════════════════════════════ */
.rw-ad { display: none !important; }
