/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121214;
    color: #e1e1e6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================================================================
   2. STRUCTURE PRINCIPALE (HEADER, MAIN, FOOTER)
   ========================================================================== */
header {
    background-color: #1a1a1e;
    padding: 20px 40px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #29292e;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

footer {
    background-color: #1a1a1e;
    padding: 15px 40px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #29292e;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

main {
    display: flex;
    width: 100%;                
    height: calc(100vh - 72px - 50px);
    margin-top: 72px;    
    margin-bottom: 50px;  
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   3. BARRE LATÉRALE (SIDE-NAV)
   ========================================================================== */
.side-nav {
    position: fixed;      
    top: 72px;            
    left: 0;              
    width: 340px;
    min-width: 340px;
    height: calc(100vh - 72px - 50px);
    background-color: #1a1a1e;
    border-right: 2px solid #29292e;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}

.sort-controls {
    background-color: #121214;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #29292e;
}

.sort-controls h3 {
    font-size: 12px;
    color: #8d8d99;
    margin-bottom: 10px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sort-buttons button {
    flex: 1;
    background-color: #202024;
    color: #e1e1e6;
    border: 1px solid #29292e;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.sort-buttons button:hover {
    background-color: #29292e;
}

#continent-filter,
#type-filter {
    width: 100%;
    background-color: #202024;
    color: #e1e1e6;
    border: 1px solid #29292e;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    outline: none;
    margin-bottom: 8px;
}

#type-filter {
    margin-bottom: 0;
}

/* ==========================================================================
   4. LISTE DES PAYS
   ========================================================================== */
.country-list-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

#country-list {
    list-style: none;
}

#country-list li {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

#country-list li:hover {
    background-color: #29292e;
    color: #fff;
}

#country-list li.active {
    background-color: #29292e; 
    border-left: 4px solid #ffd700; 
    color: #fff;
}

#country-list li img {
    width: 24px;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
}

/* ==========================================================================
   5. ZONE DE CONTENU CENTRAL
   ========================================================================== */
.content-area {
    flex: 1;
    margin-left: 340px;
    padding: 40px;
    height: 100%;
    overflow-y: auto;  
}

.content-area > div[style*="display: flex"] {
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px !important;
}

.content-area h2 {
    font-size: 2.2rem;
    color: #fff;
    margin: 0 !important;
}

.content-area .zoom-img {
    border-radius: 8px;
    border: 1px solid #3a3a3c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    object-fit: cover;
}

.content-area .zoom-img:hover {
    transform: scale(1.05);
}

.content-area p {
    font-size: 16px;
    line-height: 1.6;
    color: #c4c4cc;
    margin-bottom: 20px;
    max-width: 800px;
}

.content-area h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-area ul {
    list-style: none;
    margin-top: 20px;
}

.content-area li {
    background-color: #1a1a1e;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
    font-weight: 500;
    max-width: 800px;
}

/* ==========================================================================
   6. ACCORDÉONS DÉROULANTS (DETAILS / SUMMARY)
   ========================================================================== */
details {
    background: #1a1a1e;
    border: 1px solid #29292e;
    border-radius: 8px;
    margin-top: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    max-width: 800px;
    width: 100%;
}

details summary {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary .chevron {
    transform: rotate(180deg);
    color: #fff;
}

.chevron {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   7. INTERFACES UTILITIES, BOUTONS & THEME
   ========================================================================== */
.theme-toggle {
    font-size: 12px;
    font-weight: bold;
    color: #8d8d99;
}

#theme-button {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: background 0.2s;
}

#theme-button:hover {
    background-color: #e6c200;
}

.BTN-MAIN-STYLE {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: background 0.2s;
}

.BTN-MAIN-STYLE:hover {
    background-color: #e6c200;
}

.BTN-MAIN-STYLE-LINK {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: background 0.2s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    
}

.BTN-MAIN-STYLE-LINK:hover {
    background-color: #e6c200;
}

.BTN-SECONDARY-STYLE {
    background-color: #121214;
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: background 0.2s;
}

.BTN-SECONDARY-STYLE:hover {
    color: #000;
    background-color: #ffd700;
}

/* ==========================================================================
   8. LIGHTBOX (ZOOM PLEIN ÉCRAN)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex !important;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: #ffd700;
}

/* ==========================================================================
   9. PERSONNALISATION DES BARRES DE SCROLL (WEBKIT)
   ========================================================================== */
.country-list-container::-webkit-scrollbar,
.content-area::-webkit-scrollbar {
    width: 6px;
}

.country-list-container::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track {
    background: #1a1a1e;
}

.country-list-container::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb {
    background: #29292e;
    border-radius: 10px;
}

.country-list-container::-webkit-scrollbar-thumb:hover,
.content-area::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* ==========================================================================
   10. MODE CLAIR (LIGHT MODE OVERRIDES)
   ========================================================================== */
body.light-mode {
    background-color: #f4f4f6;
    color: #1c1c1e;
}

body.light-mode header,
body.light-mode footer,
body.light-mode .side-nav,
body.light-mode .content-area li,
body.light-mode details {
    background-color: #ffffff;
    border-color: #d1d1d6;
}

body.light-mode header h1,
body.light-mode .content-area h2 {
    color: #1c1c1e;
}

body.light-mode .content-area p {
    color: #48484a;
}

body.light-mode #country-list li:hover {
    background-color: #e5e5ea;
    color: #000;
}

body.light-mode #continent-filter,
body.light-mode #type-filter {
    background-color: #ffffff;
    color: #1c1c1e;
    border-color: #d1d1d6;
}

body.light-mode .sort-controls {
    background-color: #f4f4f6;
    border-color: #d1d1d6;
}

body.light-mode .sort-buttons button {
    background-color: #ffffff;
    color: #1c1c1e;
    border-color: #d1d1d6;
}

body.light-mode .sort-buttons button:hover {
    background-color: #e5e5ea;
}

body.light-mode .country-list-container::-webkit-scrollbar-track,
body.light-mode .content-area::-webkit-scrollbar-track {
    background: #ffffff;
}

body.light-mode .country-list-container::-webkit-scrollbar-thumb,
body.light-mode .content-area::-webkit-scrollbar-thumb {
    background: #d1d1d6;
} 

/* ==========================================================================
   11. SYSTEME DE BLOCAGE MOBILE & RESPONSIVE
   ========================================================================== */
#mobile-restriction {
    display: none;
    width: 100%;
    background-color: #16161a;
    border-bottom: 2px solid #29292e;
    padding: 24px 20px;
    text-align: center;
    order: 2;
}

.restriction-box {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    color: #e1e1e6;
}

.restriction-box h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

.restriction-box h2 span {
    color: #ffd700;
}

.operation-box {
    background-color: #1a1a1e;
    border: 1px solid #29292e;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

#btn-nav-credits-mobile {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background-color: #ffd700;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

#btn-nav-credits-mobile:hover {
    background-color: #e6c200;
}

/* --- LOGIQUE RESPONSIVE MOBILE COMMUNE (HEADER / MAIN / FOOTER) < 1024px --- */
@media screen and (max-width: 1024px) {

    html, body {
        height: auto !important;
        overflow: auto !important;
        overflow-x: hidden !important;
    }

    header {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        padding: 14px 12px !important;
        height: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        text-align: center !important;
        order: 1;
    }

    header .logo {
        display: flex !important;
        justify-content: center !important;
    }

    header .top-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    header .theme-toggle {
        display: none !important;
    }

    #btn-nav-creators {
        display: none !important;
    }

    header .BTN-MAIN-STYLE,
    header .BTN-SECONDARY-STYLE {
        margin-left: 0 !important;
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    main {
        display: block !important;
        height: auto !important;
        overflow-y: visible !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        order: 3;
    }

    footer {
        display: flex !important;
        position: relative !important;
        bottom: auto !important;
        height: auto !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        text-align: center !important;
        order: 4;
    }

    footer .footer-left,
    footer .footer-center,
    footer .footer-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    #btn-go-form {
        display: none !important;
    }
}

/* --- PAGE CRÉDITS SUR MOBILE : particularités propres à cette page --- */
@media screen and (max-width: 1024px) {

    body.page-credits header #btn-nav-credits {
        display: none !important; /* Cache le bouton "Mentions & Crédits" dans le header */
    }

    body.page-credits header .theme-toggle {
        display: none !important; /* Cache le bouton "Sombre / Clair" dans le header */
    }

    body.page-credits .side-nav {
        display: none !important;
    }

    body.page-credits .legal-wrapper {
        padding: 20px 10px !important;
    }

    body.page-credits .legal-container {
        flex-direction: column !important;
        gap: 30px !important;
    }

    body.page-credits article {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* --- ACCUEIL SUR MOBILE : METAS (pays + fiche) MASQUÉES, MESSAGE D'INFO + JEUX VISIBLES --- */
@media screen and (max-width: 1024px) {

    body:not(.page-credits) #mobile-restriction {
        display: block !important;
    }

    body:not(.page-credits) #btn-nav-credits-mobile {
        display: none !important; /* déjà présent dans le header sur mobile */
    }

    body:not(.page-credits) .side-nav,
    body:not(.page-credits) .content-area {
        display: none !important;
    }
}

/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */
.bounce-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.bounce-dots span {
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.bounce-dots span:nth-child(1) { animation-delay: -0.32s; }
.bounce-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-10px); opacity: 1; }
}

/* ==========================================================================
   13. CREATORS PAGE
   ========================================================================== */
.creators-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 20px;
    box-sizing: border-box;
    height: auto !important;
    overflow: visible !important;
    min-height: calc(100vh - 72px - 50px);
}

.creators-card {
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    flex: 0 1 350px;
    min-width: 320px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.creators-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.creators-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #26262b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
    padding: 1px;
}

.creators-header-right h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.creators-header-right p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* --- CONTENT (Compteurs) --- */
.creators-content {
    display: flex;
    background: #222227;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.creators-content-left, 
.creators-content-right {
    flex: 1;
}

.creators-content-left {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.creators-content p {
    margin: 0;
}

.creators-content p:nth-child(1) {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.creators-content p:nth-child(2) {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* --- FOOTER (Boutons) --- */
.creators-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.accueil-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 40px;
    padding: 40px 20px;
}

.accueil-title {
    text-align: center;
}

.accueil-title h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.accueil-title p {
    color: #aaaaaa;
    font-size: 1rem;
    font-weight: 500;
}

/* Bouton "Tout" mis en avant */
.mode-btn-featured {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid var(--mw-yellow);
    background-color: #19191f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    max-width: 480px;
}

.mode-btn-featured:hover {
    background-color: var(--mw-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.mode-btn-featured:hover .mode-name,
.mode-btn-featured:hover .mode-desc {
    color: #111115;
}

/* Séparateur */
.mode-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    color: #444450;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-separator::before,
.mode-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #2d2d35;
}

/* Grille des catégories */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 480px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid #2d2d35;
    background-color: #19191f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mode-btn:hover {
    border-color: var(--mw-yellow);
    background-color: #1f1f28;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.mode-btn .mode-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mode-btn-featured .mode-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.mode-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.mode-btn-featured .mode-name {
    font-size: 1.1rem;
    color: var(--mw-yellow);
}

.mode-desc {
    font-size: 0.72rem;
    color: #aaaaaa;
    font-weight: 500;
    transition: color 0.2s;
}

.mode-btn-featured .mode-desc {
    font-size: 0.8rem;
}

.mode-count {
    font-size: 0.7rem;
    color: #555560;
    font-weight: 600;
    margin-top: 2px;
}

/* Loading */
.loading-text {
    color: #555560;
    font-size: 0.85rem;
    text-align: center;
}

/* Header — cases en ligne et bien alignées */
.mw-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.mw-brand .logo-box {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 3px;
}

/* Grand titre centré */
.accueil-title h1.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.accueil-title h1.logo .logo-box {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    border-radius: 6px;
}

.accueil-wrapper {
    justify-content: flex-start; 
    padding-top: 40px;           
    gap: 24px;
}

/* =============================================
    PANNEAU LATÉRAL DROIT — NOS JEUX
    ============================================= */
.content-area {
    margin-right: 280px !important;
}

.games-panel {
    position: fixed;
    top: 72px;
    right: 0;
    width: 260px;
    height: calc(100vh - 72px - 50px);
    background-color: #1a1a1e;
    border-left: 2px solid #29292e;
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow: hidden;
}

.games-panel-header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid #29292e;
    flex-shrink: 0;
}

.games-panel-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.games-panel-subtitle {
    font-size: 0.62rem;
    color: #333338;
    margin-top: 3px;
    font-weight: 500;
}

.games-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.games-list::-webkit-scrollbar { width: 4px; }
.games-list::-webkit-scrollbar-track { background: #1a1a1e; }
.games-list::-webkit-scrollbar-thumb { background: #29292e; border-radius: 4px; }
.games-list::-webkit-scrollbar-thumb:hover { background: #ffd700; }

/* =============================================
    CARTE JEU — DESIGN JAQUETTE
    ============================================= */
.game-card {
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow:
        0 6px 0 0 #070709,
        0 10px 20px rgba(0, 0, 0, 0.6);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 11px 0 0 #070709,
        0 20px 32px rgba(0, 0, 0, 0.7);
}

.game-card:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 0 #070709,
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.game-card-inner {
    border-radius: 12px;
    border: 1px solid #2d2d35;
    overflow: hidden;
    position: relative;
    background: #15151a;
}

.game-card-cover {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0d0d10;
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.04);
}

.game-card-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.game-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.game-card-emoji {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.15s ease;
}

.game-card:hover .game-card-emoji { transform: scale(1.12); }

.game-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.game-card-body {
    padding: 12px 14px 14px;
    position: relative;
}

.game-card-neon {
    height: 3px;
    width: 36px;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: width 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover .game-card-neon {
    width: 56px;
}

.game-card-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.game-card-desc {
    font-size: 0.67rem;
    color: #555560;
    font-weight: 500;
    line-height: 1.45;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1e1e24;
}

.game-card-play {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: letter-spacing 0.15s;
}

.game-card:not(.soon):hover .game-card-play { letter-spacing: 1.5px; }

.game-card-arrow {
    font-size: 0.75rem;
    transition: transform 0.15s;
}

.game-card:not(.soon):hover .game-card-arrow { transform: translateX(3px); }

.game-card.soon { cursor: not-allowed; }
.game-card.soon .game-card-inner { filter: grayscale(0.7) brightness(0.55); }
.game-card.soon:hover {
    transform: none;
    box-shadow: 0 6px 0 0 #070709, 0 10px 20px rgba(0,0,0,0.6);
}

.game-card-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 3;
    background: rgba(0,0,0,0.45);
}

.games-loading {
    color: #333338;
    font-size: 0.72rem;
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

/* =============================================
    RESPONSIVE
    ============================================= */
@media screen and (max-width: 1280px) {
    .games-panel { display: none !important; }
    .content-area { margin-right: 0 !important; }
}

/* Sur l'accueil mobile, on annule le masquage ci-dessus : les jeux redeviennent visibles */
@media screen and (max-width: 1024px) {
    body:not(.page-credits) .games-panel {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        border-left: none !important;
    }

    body:not(.page-credits) .games-panel-header {
        text-align: center;
    }

    body:not(.page-credits) .games-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow: visible !important;
        padding: 16px !important;
    }
}

@media screen and (max-width: 480px) {
    body:not(.page-credits) .games-list {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   14. SECTION CONSEILS DÉBUTANTS — GRILLE DE CARTES
   ========================================================================== */
.conseils-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
    max-width: 800px;
}

.conseil-card {
    background-color: #1a1a1e;
    border: 1px solid #29292e;
    border-top: 3px solid #ffd700;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.conseil-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
}
.conseil-card-header span {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.conseil-card-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin: 0 !important;
}

.conseil-card-desc {
    font-size: 0.78rem;
    color: #8d8d99;
    line-height: 1.55;
    font-weight: 400;
    margin: 0;
    max-width: none;
}

/* ==========================================================================
   15. BANDEAU TEMPORAIRE — SITE EN DÉVELOPPEMENT (DÉFILANT)
   ========================================================================== */
:root {
    --dev-banner-h: 36px;
}

.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--dev-banner-h);
    background: linear-gradient(90deg, #2a2100, #1a1a1e 55%, #2a2100);
    border-bottom: 2px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
    padding: 0 50px;
}

.dev-banner.hidden {
    display: none !important;
}

.dev-banner-track {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.dev-banner-text {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffd700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dev-banner-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8d8d99;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    padding: 5px 8px;
    transition: color 0.2s;
}

.dev-banner-close:hover {
    color: #ffd700;
}

/* Décale le reste du site vers le bas quand le bandeau est visible (desktop) */
body.has-dev-banner header {
    top: var(--dev-banner-h);
}

body.has-dev-banner main {
    margin-top: calc(72px + var(--dev-banner-h));
}

body.has-dev-banner .side-nav {
    top: calc(72px + var(--dev-banner-h));
    height: calc(100vh - 72px - 50px - var(--dev-banner-h));
}

body.has-dev-banner .games-panel {
    top: calc(72px + var(--dev-banner-h));
    height: calc(100vh - 72px - 50px - var(--dev-banner-h));
}

/* En mode clair, on garde une lisibilité correcte */
body.light-mode .dev-banner {
    background: linear-gradient(90deg, #fff4cc, #ffffff 55%, #fff4cc);
    border-bottom-color: #e6c200;
}

body.light-mode .dev-banner-text {
    color: #8a6d00;
}

body.light-mode .dev-banner-close {
    color: #999;
}

/* --- Mobile : le bandeau redevient un bloc normal en haut de page --- */
@media screen and (max-width: 1024px) {
    .dev-banner {
        position: relative !important;
        height: auto !important;
        min-height: 34px;
        padding: 8px 34px;
        order: 0;
    }

    body.has-dev-banner header {
        top: auto !important;
    }

    body.has-dev-banner main {
        margin-top: 0 !important;
    }

    .dev-banner-text {
        font-size: 0.72rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}