/*
Theme Name: Nintendo Gaming
Theme URI: https://chill.traxx.ovh
Author: traxx
Description: Thème sur mesure - Univers Nintendo - Retro Modern Gaming - Obsolescence & Collectionnite Aigüe
Version: 1.0
Text Domain: nintendo-gaming
*/

/* ================================================
   CUSTOM PROPERTIES
================================================ */
:root {
    --bg-base:       #09090F;
    --bg-surface:    #10101E;
    --bg-card:       #14142A;
    --bg-elevated:   #1C1C36;
    --red:           #CC0000;
    --red-hover:     #FF1A1A;
    --red-glow:      rgba(204,0,0,0.30);
    --gold:          #FFB800;
    --gold-light:    #FFD860;
    --white:         #F0F0FF;
    --text:          #D8D8EE;
    --text-muted:    #6060A0;
    --text-dim:      #3C3C66;
    --border:        #1A1A32;
    --border-bright: #26264A;
    --nav-height:    64px;
    --radius:        8px;
    --radius-sm:     4px;
    --ease:          0.18s ease;
    --font-pixel:    'Press Start 2P', monospace;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
}

/* ================================================
   RESET & BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grille de fond subtile */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(204,0,0,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204,0,0,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); }

/* ================================================
   LAYOUT
================================================ */
.site-wrapper {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; min-height: 100vh;
}
.container {
    width: 100%; max-width: 1240px;
    margin: 0 auto; padding: 0 24px;
}
.site-main { flex: 1; padding: 40px 0 60px; }

/* ================================================
   HEADER
================================================ */
.site-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--red);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 30px rgba(204,0,0,.18);
}
.header-inner {
    display: flex; align-items: center;
    height: var(--nav-height); gap: 32px;
}

/* Branding */
.site-branding { flex-shrink: 0; }
.site-title {
    font-family: var(--font-pixel);
    font-size: 10px; line-height: 1.5;
}
.site-title a { color: var(--white); }
.site-title a .highlight { color: var(--red); }
.site-tagline { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ================================================
   NAVIGATION PRINCIPALE
================================================ */
.main-nav { flex: 1; overflow: visible; }

.main-nav > ul {
    display: flex; align-items: center;
    flex-wrap: nowrap; gap: 0;
}

/* Niveau 1 */
.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
    display: flex; align-items: center;
    height: var(--nav-height); padding: 0 13px;
    color: var(--text); font-size: 12px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .6px; white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all var(--ease);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > ul > li.current-page-ancestor > a {
    color: var(--white);
    border-bottom-color: var(--red);
    background: rgba(204,0,0,.06);
}

.main-nav > ul > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 10px;
    margin-left: 4px;
    color: var(--text-muted);
}

/* Dropdown niveau 2 */
.main-nav ul ul {
    position: absolute;
    top: 100%; left: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    border-top: 2px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 230px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--ease);
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    z-index: 200;
}

.main-nav ul li:hover > ul {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul li a {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    color: var(--text); font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: all var(--ease);
}
.main-nav ul ul li:last-child > a { border-bottom: none; }

.main-nav ul ul li a:hover {
    color: var(--white);
    background: rgba(204,0,0,.12);
    padding-left: 22px;
}
.main-nav ul ul li.menu-item-has-children > a::after {
    content: '›'; font-size: 16px; color: var(--text-muted);
}

/* Dropdown niveau 3 */
.main-nav ul ul ul {
    top: 0; left: 100%;
    border-top: 2px solid var(--red);
}
/* Dropdown niveau 4 */
.main-nav ul ul ul ul {
    top: 0; left: 100%;
}

/* Bouton hamburger */
.menu-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: 2px solid var(--red);
    border-radius: var(--radius-sm);
    color: var(--white); font-size: 18px;
    cursor: pointer; margin-left: auto;
    transition: all var(--ease);
}
.menu-toggle:hover { background: var(--red); }

/* ================================================
   HERO (Homepage)
================================================ */
.site-hero {
    background-color: #0A0A18;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--red);
    padding: 100px 0 80px;
    text-align: center;
    position: relative; overflow: hidden;
    min-height: 420px;
    display: flex; align-items: center;
}

/* Overlay sombre + dégradé rouge bas */
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(9,9,15,.72) 0%,
            rgba(9,9,15,.55) 40%,
            rgba(9,9,15,.82) 80%,
            rgba(9,9,15,.97) 100%),
        linear-gradient(160deg,
            rgba(140,0,0,.25) 0%,
            transparent 60%);
    z-index: 0;
}

.site-hero .container { position: relative; z-index: 1; width: 100%; }
.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 8px; letter-spacing: 2px;
    color: var(--red); text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(204,0,0,.4);
    border-radius: 20px;
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: clamp(14px, 2.5vw, 24px);
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 14px;
}
.hero-title .hl { color: var(--red); }

.hero-tagline {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================
   BOUTONS
================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    cursor: pointer; border: none;
    transition: all var(--ease);
    white-space: nowrap;
}
.btn-red {
    background: var(--red); color: #fff;
}
.btn-red:hover {
    background: var(--red-hover); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-bright);
}
.btn-outline:hover {
    border-color: var(--red);
    color: var(--white);
    background: rgba(204,0,0,.07);
}

/* ================================================
   TITRES DE SECTIONS
================================================ */
.section-wrap { padding: 48px 0 16px; }
.section-wrap + .section-wrap { padding-top: 32px; }

.section-header {
    display: flex; align-items: baseline;
    gap: 16px; margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-family: var(--font-pixel);
    font-size: 11px; color: var(--white);
    padding-left: 14px;
    border-left: 3px solid var(--red);
    letter-spacing: .5px;
}
.section-subtitle {
    font-size: 12px; color: var(--text-muted);
}
.section-link {
    margin-left: auto; font-size: 12px;
    font-weight: 600; color: var(--red);
    text-transform: uppercase; letter-spacing: .5px;
}
.section-link:hover { color: var(--red-hover); }

/* ================================================
   TUILES DE NAVIGATION RAPIDE (Homepage)
================================================ */
.quick-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}
.quick-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--ease);
    cursor: pointer;
    position: relative; overflow: hidden;
}
.quick-tile::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--red);
    transform: scaleX(0);
    transition: transform var(--ease);
}
.quick-tile:hover { border-color: var(--border-bright); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.quick-tile:hover::after { transform: scaleX(1); }
.quick-tile a { position: absolute; inset: 0; z-index: 1; }
.quick-tile-icon { font-size: 28px; margin-bottom: 12px; }
.quick-tile-label {
    font-family: var(--font-pixel);
    font-size: 8px; color: var(--white);
    line-height: 1.6; letter-spacing: .5px;
}
.quick-tile-count { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ================================================
   CARTES CONSOLES
================================================ */
.consoles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.console-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    transition: all var(--ease);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
}
.console-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    transition: opacity var(--ease);
    opacity: .6;
}
.console-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.55); border-color: var(--border-bright); }
.console-card:hover::before { opacity: 1; }

/* Couleurs par génération */
.gen-nes::before    { background: linear-gradient(90deg, #B8860B, #DAA520); }
.gen-snes::before   { background: linear-gradient(90deg, #6A0DAD, #9B59B6); }
.gen-n64::before    { background: linear-gradient(90deg, #1A6B1A, #27AE60); }
.gen-gc::before     { background: linear-gradient(90deg, #4B0082, #8E44AD); }
.gen-wii::before    { background: linear-gradient(90deg, #1A5F7A, #2E86C1); }
.gen-wiiu::before   { background: linear-gradient(90deg, #003399, #2980B9); }
.gen-switch::before { background: linear-gradient(90deg, #CC0000, #E74C3C); }
.gen-gb::before     { background: linear-gradient(90deg, #2D5A1B, #52BE80); }
.gen-gba::before    { background: linear-gradient(90deg, #6C0BA9, #A569BD); }
.gen-ds::before     { background: linear-gradient(90deg, #0B5394, #3498DB); }
.gen-3ds::before    { background: linear-gradient(90deg, #0B5394, #5DADE2); }

.console-card a { position: absolute; inset: 0; z-index: 2; }
.console-era {
    font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.console-name {
    font-size: 14px; font-weight: 700; color: var(--white);
    line-height: 1.3;
}
.console-sub {
    font-size: 12px; color: var(--text-muted);
}
.console-cta {
    font-size: 11px; color: var(--red);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; margin-top: 6px;
}

/* ================================================
   CARTES ARTICLES
================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--ease);
    position: relative;
    display: flex; flex-direction: column; gap: 10px;
}
.article-card:hover { border-color: var(--border-bright); background: var(--bg-elevated); transform: translateY(-3px); }
.article-card a { position: absolute; inset: 0; }
.article-card-label {
    font-size: 10px; color: var(--red);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px;
}
.article-card-title {
    font-size: 14px; font-weight: 600; color: var(--white);
    line-height: 1.4;
}
.article-card-excerpt {
    font-size: 12px; color: var(--text-muted);
    line-height: 1.5; flex: 1;
}

/* ================================================
   LAYOUT PAGES INTÉRIEURES
================================================ */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 268px;
    gap: 40px;
    align-items: start;
}
.page-layout.no-sidebar { grid-template-columns: 1fr; max-width: 820px; }

/* ================================================
   BREADCRUMB
================================================ */
.breadcrumb { padding: 14px 0 4px; }
.breadcrumb-list {
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 4px;
    font-size: 12px; color: var(--text-muted);
}
.breadcrumb-list li + li::before {
    content: '›'; margin-right: 4px; color: var(--red);
}
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-list .current { color: var(--text); }

/* ================================================
   EN-TÊTE DE PAGE
================================================ */
.entry-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.entry-title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700; color: var(--white);
    line-height: 1.2; margin-bottom: 6px;
}
.entry-meta { font-size: 12px; color: var(--text-muted); }
.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--gold); }

/* ================================================
   GRILLE DE SOUS-PAGES
================================================ */
.subpages-section {
    margin: 0 0 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.subpages-title {
    font-family: var(--font-pixel);
    font-size: 9px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.subpages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.subpage-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: all var(--ease);
}
.subpage-item:hover { border-color: var(--red); background: rgba(204,0,0,.06); }
.subpage-item a {
    color: var(--text); font-size: 13px;
    font-weight: 500; display: block;
}
.subpage-item a:hover { color: var(--white); }

/* ================================================
   CONTENU WORDPRESS
================================================ */
.entry-content {
    font-size: 15px; line-height: 1.75;
    color: var(--text);
}
.entry-content h2 {
    font-size: 20px; font-weight: 700;
    color: var(--white); margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--red);
}
.entry-content h3 {
    font-size: 17px; font-weight: 600;
    color: var(--white); margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--red);
}
.entry-content h4, .entry-content h5, .entry-content h6 {
    font-size: 15px; font-weight: 600;
    color: var(--gold); margin: 20px 0 8px;
}
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol {
    margin: 16px 0; padding-left: 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-light); }
.entry-content strong { color: var(--white); font-weight: 600; }
.entry-content em { color: var(--text-muted); }

.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-muted);
}
.entry-content figure { margin: 24px 0; text-align: center; }
.entry-content figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.entry-content img {
    max-width: 100%; height: auto;
    border-radius: var(--radius);
    margin: 12px auto;
}

/* Tables (listes de jeux) */
.entry-content table {
    width: 100%; border-collapse: collapse;
    margin: 24px 0; font-size: 14px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-content thead th {
    background: var(--red); color: #fff;
    font-weight: 600; text-align: left;
    padding: 10px 14px; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px;
}
.entry-content tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--ease);
}
.entry-content tbody tr:nth-child(even) { background: var(--bg-card); }
.entry-content tbody tr:hover { background: rgba(204,0,0,.07); }
.entry-content td { padding: 8px 14px; color: var(--text); }
.entry-content tfoot td {
    padding: 8px 14px;
    background: var(--bg-elevated);
    font-size: 12px; color: var(--text-muted);
}

/* Align center from WP editor */
.entry-content [align="center"],
.entry-content .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }

/* ================================================
   SIDEBAR
================================================ */
.sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px; margin-bottom: 16px;
}
.sidebar-widget-title {
    font-family: var(--font-pixel);
    font-size: 8px; color: var(--red);
    text-transform: uppercase; letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

/* Nav sidebar */
.sidebar-nav > li {
    border-bottom: 1px solid var(--border);
}
.sidebar-nav > li:last-child { border-bottom: none; }
.sidebar-nav a {
    display: block; padding: 7px 10px;
    color: var(--text); font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all var(--ease);
}
.sidebar-nav a:hover {
    color: var(--white); background: rgba(204,0,0,.08);
    padding-left: 16px;
}
.sidebar-nav .current-page-item > a,
.sidebar-nav .current-menu-item > a {
    color: var(--gold); background: rgba(255,184,0,.07);
    font-weight: 600;
}
.sidebar-nav ul { padding-left: 12px; }
.sidebar-nav ul a { font-size: 12px; color: var(--text-muted); padding: 5px 10px; }
.sidebar-nav ul a:hover { color: var(--text); }
.sidebar-nav .parent-link a {
    color: var(--text-muted); font-size: 12px;
    font-weight: 600;
}
.sidebar-nav .parent-link a:hover { color: var(--white); }
.sidebar-nav .parent-link a::before { content: '← '; }

/* ================================================
   FOOTER
================================================ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-bright);
    padding: 44px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; margin-bottom: 36px;
}
.footer-col-title {
    font-family: var(--font-pixel);
    font-size: 9px; color: var(--red);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { font-size: 13px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-dim);
    flex-wrap: wrap; gap: 8px;
}
.footer-logo {
    font-family: var(--font-pixel);
    font-size: 8px; color: var(--text-muted);
}
.footer-logo .hl { color: var(--red); }

/* ================================================
   PAGE 404
================================================ */
.error-404 {
    text-align: center; padding: 80px 20px;
}
.error-code {
    font-family: var(--font-pixel);
    font-size: clamp(48px, 12vw, 96px);
    color: var(--red); display: block;
    margin-bottom: 16px; opacity: .8;
}
.error-404 h1 { font-size: 22px; color: var(--white); margin-bottom: 10px; }
.error-404 p { color: var(--text-muted); margin-bottom: 28px; }

/* ================================================
   BADGES / TAGS
================================================ */
.badge {
    display: inline-block; padding: 2px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px; color: var(--text-muted);
}
.badge-red { border-color: var(--red); color: var(--red); background: rgba(204,0,0,.07); }

/* ================================================
   UTILITAIRES
================================================ */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1080px) {
    .main-nav > ul > li > a { padding: 0 10px; font-size: 11px; }
    .quick-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; order: -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    .main-nav {
        display: none; position: fixed;
        top: var(--nav-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-surface);
        overflow-y: auto; padding: 16px;
        z-index: 999; border-top: 2px solid var(--red);
    }
    .main-nav.is-open { display: block; }

    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .main-nav > ul > li > a {
        height: auto; padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        border-left: 2px solid transparent;
    }
    .main-nav > ul > li.menu-item-has-children > a::after {
        content: '▾'; margin-left: auto;
    }
    .main-nav > ul > li.is-open > a::after { content: '▴'; }

    .main-nav ul ul {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none;
        border: none; border-radius: 0;
        display: none; padding-left: 14px;
        background: transparent; min-width: 0;
    }
    .main-nav ul li.is-open > ul { display: block; }

    .main-nav ul ul li a { padding: 9px 12px; font-size: 13px; }

    .menu-toggle { display: flex; }

    .consoles-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-title { font-size: 14px; }
}

@media (max-width: 480px) {
    .quick-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
    .consoles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .container { padding: 0 16px; }
}

/* ================================================
   FICHES TECHNIQUES LEGACY — Fix couleurs sur fond noir
   Les anciennes pages utilisent bgcolor et style="color:black"
   en inline HTML — !important nécessaire pour écraser.
================================================ */
.entry-content table tr[bgcolor] td {
    background-color: var(--bg-elevated) !important;
    color: var(--text) !important;
}
.entry-content table tr[bgcolor="#809BBA"] td,
.entry-content table tr[bgcolor="#405080"] td {
    background-color: rgba(128,155,186,.25) !important;
}
.entry-content table tr:not([bgcolor]) td {
    background-color: var(--bg-card) !important;
    color: var(--text) !important;
}
.entry-content table td span[style*="color: black"],
.entry-content table td[style*="color: black"] {
    color: var(--text) !important;
}
.entry-content table td span[style*="color: #006666"] {
    color: var(--gold) !important;
}
/* Spans hors tableau avec color:black/dark sur fond noir */
.entry-content span[style*="color: black"] {
    color: var(--text) !important;
}
.entry-content span[style*="color: #405080"] {
    color: var(--gold) !important;
}
