/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a2236;
    background-color: #0d1b2e;
    overflow-x: hidden;
    position: relative;
}

/* ── ANIMATED BACKGROUND ────────────────────────── */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0d1b2e 0%, #0f2a45 50%, #140a28 100%);
}
@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cyber-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(99,179,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,179,255,.06) 1px, transparent 1px);
    background-size: 50px 50px;
}
@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    animation: floatUp 20s infinite linear;
}
@keyframes floatUp {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

a { color: #1a6fc4; text-decoration: none; }
a:hover { color: #e26d00; text-decoration: underline; }
img { display: inline-block; vertical-align: middle; max-width: 100%; }

/* ── PAGE WRAPPER ──────────────────────────────── */
#page {
    max-width: 1100px;
    margin: 14px auto 28px;
    padding: 0;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(14,165,233,.15),
                0 0 20px rgba(14,165,233,.22),
                0 8px 40px rgba(0,0,0,.5);
}

/* ── HEADER ────────────────────────────────────── */
#header {
    background: linear-gradient(135deg, #090f1e 0%, #0d2040 35%, #132d55 65%, #0f1a30 100%);
    border-radius: 10px 10px 0 0;
    padding: 20px 24px 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(9,15,30,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Shine top */
#header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 40%, rgba(99,179,255,.3) 50%, rgba(255,255,255,.18) 60%, transparent);
}
/* Animated color accent bottom */
#header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e26d00 20%, #3f8cff 50%, #e26d00 80%, transparent 100%);
}
@keyframes hdrAccent {
    0%, 100% { opacity: 1; }
    50%       { opacity: .55; }
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
}
.header-logo {
    flex-shrink: 0;
    color: #63b3ff;
    filter: drop-shadow(0 0 7px rgba(99,179,255,.65));
}
#header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #cce5ff 30%, #63b3ff 62%, #ffb060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(99,179,255,.2));
}
#header h1 span {
    background: linear-gradient(135deg, #ffb060 0%, #ff9d3a 50%, #e26d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(99,179,255,.28);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
    border-color: rgba(99,179,255,.8);
    box-shadow: 0 0 0 3px rgba(99,179,255,.15), 0 0 20px rgba(99,179,255,.1);
}
.header-search input {
    background: none;
    border: none;
    outline: none;
    padding: .5rem 1rem .5rem 1.1rem;
    color: #fff;
    font-size: .84rem;
    width: 200px;
    letter-spacing: .01em;
}
.header-search input::placeholder { color: rgba(255,255,255,.38); }
.header-search button {
    background: linear-gradient(135deg, #e26d00, #c45c00);
    border: none;
    cursor: pointer;
    padding: .5rem .85rem;
    color: #fff;
    line-height: 1;
    transition: background .18s, box-shadow .18s, transform .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* shimmer effect */
.header-search button::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    transition: left .45s;
}
.header-search button:hover::before { left: 160%; }
.header-search button:hover {
    background: linear-gradient(135deg, #ff7d0d, #e26d00);
    box-shadow: 0 0 14px rgba(226,109,0,.45);
}
.header-search button:active { transform: scale(.96); }

/* ── NAVIGATION ONGLETS ────────────────────────── */
#menu {
    display: flex;
    list-style: none;
    background: rgba(8,16,36,.92);
    border-bottom: 1px solid rgba(99,179,255,.07);
    overflow: hidden;
}
#menu li { flex: 1; }
#menu li a {
    display: block;
    text-align: center;
    padding: .65rem .5rem;
    font-size: .8rem;
    font-weight: 700;
    color: #7a9ab8;
    transition: color .15s, background .15s;
    border-bottom: 2px solid transparent;
    letter-spacing: .02em;
    text-decoration: none;
    position: relative;
}
#menu li a:hover,
#menu li a.selected {
    color: #e8f4ff;
    background: rgba(63,140,255,.07);
    border-bottom-color: #e26d00;
    text-decoration: none;
}

/* ── WRAPPER SIDEBAR + CONTENU ─────────────────── */
#wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    border: 1px solid #d8e1eb;
    border-top: none;
    border-bottom: 2px solid #0ea5e9;
    overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────── */
#left {
    width: 215px;
    flex-shrink: 0;
    background: #f7f9fc;
    border-right: 1px solid #d8e1eb;
    padding: 14px 10px;
    min-height: 100%;
}
.left-box {
    background: #fff;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.left-box:last-child { margin-bottom: 0; }
.left-box-title {
    background: linear-gradient(90deg, #1a2e4a, #1a6fc4);
    color: #fff;
    padding: .45rem .75rem;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.left-box-body { padding: 10px 10px 8px; }

/* Console list — liste moderne avec icône */
.console-list { list-style: none; }
.console-list li { padding: 2px 0; }
.console-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 4px;
    font-size: .8rem;
    font-weight: 600;
    color: #2d3e57;
    border-radius: 7px;
    border-left: 3px solid transparent;
    transition: all .15s;
    text-decoration: none;
    position: relative;
}
.console-list a:hover {
    background: linear-gradient(90deg, #e8f2ff, #f0f5ff);
    border-left-color: #1a6fc4;
    color: #1a6fc4;
    padding-left: 7px;
    text-decoration: none;
}
/* flèche droite au hover */
.console-list a::after {
    content: '›';
    position: absolute;
    right: 6px;
    font-size: 1rem;
    color: #b0c4de;
    opacity: 0;
    transform: translateX(-4px);
    transition: all .15s;
}
.console-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: #1a6fc4;
}
/* carré icône */
.console-list .ico-wrap {
    width: 28px;
    height: 28px;
    background: #f0f4f9;
    border: 1px solid #dce6f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.console-list a:hover .ico-wrap {
    background: #dbeafe;
    border-color: #93c5fd;
}
.console-list img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Search form sidebar */
.search-form {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}
.search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #c9d5e3;
    border-radius: 6px;
    padding: .35rem .5rem;
    font-size: .78rem;
    outline: none;
    transition: border-color .15s;
}
.search-form input:focus { border-color: #1a6fc4; }
.search-form button {
    background: #1a6fc4;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    padding: .35rem .6rem;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.search-form button:hover { background: #145fa8; }

/* ── Listes sidebar — base commune ────────────── */
.rch-list,
.partner-list { list-style: none; }

.rch-list li,
.partner-list li { padding: 2px 0; }

/* Recherches récentes */
.rch-list a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 6px 5px 6px;
    font-size: .79rem;
    font-weight: 600;
    color: #2d3e57;
    border-radius: 7px;
    border-left: 3px solid transparent;
    transition: all .15s;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rch-list a::before {
    content: '🕐';
    font-size: .7rem;
    flex-shrink: 0;
    opacity: .55;
    transition: opacity .15s;
}
.rch-list a::after {
    content: '›';
    position: absolute;
    right: 6px;
    font-size: 1rem;
    color: #b0c4de;
    opacity: 0;
    transform: translateX(-4px);
    transition: all .15s;
}
.rch-list a:hover {
    background: linear-gradient(90deg, #e8f2ff, #f0f5ff);
    border-left-color: #1a6fc4;
    color: #1a6fc4;
    text-decoration: none;
}
.rch-list a:hover::before { opacity: 1; }
.rch-list a:hover::after { opacity: 1; transform: translateX(0); color: #1a6fc4; }

/* Partenaires */
.partner-list a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    font-size: .79rem;
    font-weight: 600;
    color: #2d3e57;
    border-radius: 7px;
    border-left: 3px solid transparent;
    transition: all .15s;
    text-decoration: none;
    position: relative;
}
.partner-list a::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e26d00;
    flex-shrink: 0;
    transition: transform .15s;
}
.partner-list a::after {
    content: '↗';
    position: absolute;
    right: 6px;
    font-size: .75rem;
    color: #b0c4de;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: all .15s;
}
.partner-list a:hover {
    background: linear-gradient(90deg, #fff4ec, #fff8f3);
    border-left-color: #e26d00;
    color: #e26d00;
    text-decoration: none;
}
.partner-list a:hover::before { transform: scale(1.4); }
.partner-list a:hover::after { opacity: 1; transform: translate(0, 0); color: #e26d00; }

/* ── CONTENU PRINCIPAL ─────────────────────────── */
#content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Breadcrumb */
#path {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px;
    background: #f0f4f9;
    border-bottom: 1px solid #d8e1eb;
    font-size: .76rem;
    font-weight: 600;
}
#path ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
}
#path li {
    display: flex;
    align-items: center;
}
/* chevron entre items */
#path li + li::before {
    content: '›';
    margin: 0 6px;
    color: #b0bbc9;
    font-size: .9rem;
    font-weight: 400;
}
#path a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4a6fa5;
    padding: 2px 6px;
    border-radius: 5px;
    transition: background .15s, color .15s;
    text-decoration: none;
}
#path li:first-child a::before { content: '🏠'; font-size: .7rem; }
#path li:not(:first-child) a::before { content: '🕹'; font-size: .7rem; }
#path a:hover {
    background: #dce8f8;
    color: #1a6fc4;
    text-decoration: none;
}
/* page courante */
#path .current {
    color: #1a2e4a;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #d8e1eb;
    border-radius: 5px;
    font-weight: 700;
}

/* Zone principale */
#main { padding: 14px 16px 20px; }

/* Titres de section */
.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a2e4a;
    padding: 0 0 6px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e26d00;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title .ico { font-style: normal; }

/* Texte intro */
.intro-text {
    font-size: .82rem;
    color: #3d4f68;
    line-height: 1.7;
}
.intro-text strong { color: #1a2e4a; }

/* ── GRILLES 2 COLONNES ────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    min-width: 0;
}
.two-col > * { min-width: 0; overflow: hidden; }

/* ── LISTE DE JEUX — cards modernes ────────────── */
.game-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid #e4edf6;
    background: #fafcff;
    transition: border-color .15s, background .15s, box-shadow .15s;
    text-decoration: none;
}
.game-item:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    box-shadow: 0 2px 10px rgba(26,111,196,.09);
}

/* Icône console dans carré */
.gi-icon {
    width: 32px; height: 32px;
    background: #eef2f8;
    border: 1px solid #dce6f0;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.game-item:hover .gi-icon { background: #dbeafe; border-color: #93c5fd; }
.gi-icon img { width: 18px; height: 18px; object-fit: contain; display: block; }

/* Corps */
.gi-body { flex: 1; min-width: 0; }

/* Ligne titre + rating */
.gi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.gi-title {
    font-size: .83rem;
    font-weight: 700;
    color: #1a3560;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    transition: color .12s;
}
.game-item:hover .gi-title { color: #1a6fc4; }

/* Ligne meta */
.gi-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.gi-console {
    background: #e8f0fb;
    color: #2d5a9e;
    font-size: .67rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: .02em;
}
.gi-votes {
    font-size: .7rem;
    color: #8797ac;
}
.gi-votes::before { content: '👁 '; font-size: .62rem; }

/* Extrait */
.gi-excerpt {
    font-size: .74rem;
    color: #8797ac;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.4;
}

/* ── NOTES ─────────────────────────────────────── */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.stars { display: inline-flex; gap: 2px; }
.stars i {
    display: inline-block;
    width: 14px; height: 14px;
    background: rgba(148,163,184,.25);
    clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
    transition: background .15s, filter .15s;
}
.stars i.on {
    background: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245,158,11,.7));
}

.score-badge {
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: .01em;
    border: 1px solid transparent;
}
.score-badge.good { background: #dcfce7; color: #15803d; border-color: #86efac; }
.score-badge.avg  { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.score-badge.low  { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

/* ── PUB ───────────────────────────────────────── */
.ad-block {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border: 1px dashed #c9d5e3;
    border-radius: 8px;
    min-height: 100px;
    padding: 4px;
    overflow: hidden;
    max-width: 100%;
}
.ad-block ins.adsbygoogle { width: 100% !important; }
/* Placeholder affiché quand aucun slot ID n'est configuré */
.ad-placeholder {
    min-height: 90px;
    background: repeating-linear-gradient(
        45deg,
        #f0f4f9,
        #f0f4f9 8px,
        #e8eef6 8px,
        #e8eef6 16px
    );
}
.ad-placeholder span {
    font-size: .7rem;
    color: #b0bbc9;
    font-style: italic;
    letter-spacing: .05em;
}

/* ── FOOTER ────────────────────────────────────── */
#footer {
    background: #1a2e4a;
    border-radius: 0 0 10px 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -1px;
    font-size: .75rem;
    color: #90aecb;
}
#footer a { color: #63b3ff; }
#footer a:hover { color: #fff; text-decoration: none; }

/* Partenaires footer */
.footer-partners {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.footer-partners-label {
    color: #5a7a9a;
    font-size: .7rem;
    letter-spacing: .04em;
    white-space: nowrap;
}
.footer-partners a {
    color: #5a7a9a;
    font-size: .7rem;
    transition: color .15s;
    text-decoration: none;
}
.footer-partners a:hover { color: #90aecb; text-decoration: none; }
.footer-partners a + a::before {
    content: '·';
    margin-right: 10px;
    color: #2e4a6a;
}

/* Compteur visiteurs */
.footer-visitors {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: #4caf91;
    background: rgba(76,175,145,.12);
    border: 1px solid rgba(76,175,145,.25);
    border-radius: 999px;
    padding: 2px 10px 2px 7px;
    white-space: nowrap;
}
.footer-visitors svg {
    flex-shrink: 0;
    color: #4caf91;
}

/* ── BURGER TOGGLE (mobile) ────────────────────── */
.sidebar-toggle {
    display: none;
    width: 100%;
    background: #f0f4f9;
    border: none;
    border-top: 1px solid #d8e1eb;
    border-bottom: 1px solid #d8e1eb;
    padding: .5rem 14px;
    font-size: .8rem;
    font-weight: 700;
    color: #1a2e4a;
    cursor: pointer;
    text-align: left;
    gap: 6px;
    align-items: center;
}
.sidebar-toggle::after { content: ' ▾'; }

/* ── BOUTON SIDEBAR MOBILE ──────────────────────── */
#sidebar-btn {
    display: none;
    width: 100%;
    background: #1e3a5f;
    color: #63b3ff;
    border: none;
    border-bottom: 1px solid #162d50;
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    text-align: left;
}
#sidebar-btn:hover { background: #243f6a; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 720px) {
    /* Header */
    #header { flex-direction: column; align-items: flex-start; border-radius: 8px 8px 0 0; }
    .header-search { width: 100%; }
    .header-search input { width: 100%; }

    /* Layout */
    #wrapper { flex-direction: column; }

    /* Sidebar : cachée par défaut, toggle via bouton */
    #left {
        display: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d8e1eb;
        padding: 12px;
    }
    #left.open { display: block; }
    #sidebar-btn { display: flex; }

    .left-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .left-box { margin-bottom: 0; }

    /* Deux colonnes → une seule colonne */
    .two-col { grid-template-columns: 1fr; }

    /* Pubs dans two-col : masquées sur mobile */
    .two-col .ad-block { display: none; }
}
@media (max-width: 480px) {
    .left-boxes { grid-template-columns: 1fr; }
    #menu li a { font-size: .7rem; padding: .55rem .3rem; }
}

/* Sécurité anti-débordement pub sur tous écrans */
.ad-block { max-width: 100%; overflow: hidden; }
ins.adsbygoogle { max-width: 100%; }

/* ═══════════════════════════════════════════════
   STYLES PAGES SECONDAIRES
   ═══════════════════════════════════════════════ */

/* Badge compteur de jeux (jeux.php, rechercher.php) */
.count-badge {
    font-size: .7rem;
    font-weight: 700;
    background: #e8f0fb;
    color: #2d5a9e;
    border-radius: 999px;
    padding: 2px 9px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── CAT PAGE ─────────────────────────────────── */
.console-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #e4edf6;
    margin-bottom: 16px;
}
.subcat-list { list-style: none; }
.subcat-list li { padding: 2px 0; }
.subcat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #e4edf6;
    background: #fafcff;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    gap: 10px;
}
.subcat-list a:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    text-decoration: none;
}
.subcat-name {
    font-size: .83rem;
    font-weight: 700;
    color: #1a3560;
}
.subcat-list a:hover .subcat-name { color: #1a6fc4; }
.subcat-count {
    font-size: .7rem;
    color: #8797ac;
    white-space: nowrap;
    background: #f0f4fa;
    padding: 1px 7px;
    border-radius: 999px;
}

/* ── VOIR PAGE ────────────────────────────────── */
.game-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 0 14px;
    border-bottom: 1px solid #e4edf6;
    margin-bottom: 16px;
}
.game-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.game-header-img {
    border-radius: 8px;
    background: #eef2f8;
    padding: 6px;
    border: 1px solid #dce6f0;
}
.game-title-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2e4a;
    line-height: 1.2;
    margin-bottom: 5px;
}
.game-console-tag {
    display: inline-block;
    background: #e8f0fb;
    color: #2d5a9e;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
}
.game-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.game-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: #8797ac;
}

/* Système de vote étoiles */
.rating-box {
    background: #1e2530;
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.rating-box-label {
    font-size: .85rem;
    color: #a0b8d0;
    margin: 0;
}
.rating-current {
    display: block;
    font-size: .75rem;
    color: #6b8099;
    margin-top: 2px;
}
.star-vote { display: flex; gap: 1px; justify-content: center; }
.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: rgba(148,163,184,.25);
    padding: 0 2px;
    transition: color .1s, transform .15s, text-shadow .1s;
    line-height: 1;
}
.star-btn.current-rating {
    color: #b45309;
    text-shadow: 0 0 6px rgba(180,83,9,.35);
}
.star-btn.active {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245,158,11,.65), 0 0 20px rgba(245,158,11,.3);
}
.star-btn:hover {
    transform: scale(1.35);
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251,191,36,.8);
}
.vote-msg {
    display: none;
    font-size: .8rem;
    color: #4ade80;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.3);
    padding: 4px 12px;
    border-radius: 6px;
}

/* Corps du contenu astuces */
.game-content { min-width: 0; }
.cheat-body {
    font-size: .82rem;
    color: #3d4f68;
    line-height: 1.75;
}
.cheat-body p { margin-bottom: .6em; }
.cheat-body br + br { display: block; margin-top: .4em; content: ''; }

/* ── RECHERCHE ────────────────────────────────── */
.no-results {
    background: #f7f9fc;
    border: 1px solid #e4edf6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #3d4f68;
    font-size: .85rem;
    margin-bottom: 20px;
}
.no-results strong { color: #1a2e4a; }

/* ── CONTACT ──────────────────────────────────── */
.contact-wrap {
    max-width: 560px;
    margin-bottom: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
    font-size: .78rem;
    font-weight: 700;
    color: #1a2e4a;
}
.form-group input,
.form-group textarea {
    border: 1px solid #c9d5e3;
    border-radius: 8px;
    padding: .45rem .7rem;
    font-size: .82rem;
    font-family: inherit;
    color: #1a2236;
    background: #fafcff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a6fc4;
    box-shadow: 0 0 0 3px rgba(26,111,196,.1);
}
.contact-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #1a6fc4, #0f4c81);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .55rem 1.4rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .12s;
}
.contact-submit:hover {
    background: linear-gradient(135deg, #1e7fd8, #1a6fc4);
    box-shadow: 0 0 14px rgba(26,111,196,.35);
}
.contact-submit:active { transform: scale(.97); }

/* ── FORM FEEDBACK ───────────────────────────────── */
.form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.55;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.form-success {
    background: #0d2e1a;
    border: 2px solid #22c55e;
    color: #4ade80;
}
.form-success svg { color: #22c55e; }
.form-error {
    background: #2a0d0d;
    border: 2px solid #ef4444;
    color: #fca5a5;
}
.form-error svg { color: #ef4444; }
.form-feedback svg { flex-shrink: 0; margin-top: 2px; }

/* ── CAPTCHA ─────────────────────────────────────── */
.captcha-group { margin-top: 2px; }
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.captcha-question {
    font-size: .85rem;
    color: #2a4a72;
    background: rgba(26,111,196,.08);
    border: 1px solid rgba(26,111,196,.18);
    border-radius: 7px;
    padding: 7px 14px;
    font-family: monospace;
    letter-spacing: .5px;
    white-space: nowrap;
}
.captcha-question strong {
    color: #1a6fc4;
    font-size: .95rem;
}
.captcha-row input {
    width: 70px;
    min-width: 60px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: .45rem .5rem;
}

/* ── SEO BLOCK ───────────────────────────────────── */
.seo-block {
    background: rgba(99,179,255,.04);
    border-left: 3px solid rgba(99,179,255,.18);
    border-radius: 0 4px 4px 0;
    padding: 9px 14px;
    margin: 10px 0 18px;
    font-size: .78rem;
    color: #7a9ab8;
    line-height: 1.65;
}
.seo-block strong { color: #9dbbd8; }
.seo-block a { color: #63a8df; text-decoration: underline; }

/* v2 (2026-11-20) : titre de marque hors h1 sur les fiches, h1 de contenu */
#header .hdr-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #cce5ff 30%, #63b3ff 62%, #ffb060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(99,179,255,.2));
}
#header .hdr-title span {
    background: linear-gradient(135deg, #ffb060 0%, #ff9d3a 50%, #e26d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
h1.game-title-main { margin-top: 0; }
.similar-games { margin-top: 8px; }