/* ========================================================================= */
        /* CSS GLOBAL */
        /* ========================================================================= */
body { 
    margin: 0; 
    background: #070a10; 
    color: #e2e8f0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    overflow-x: hidden; /* <-- AJOUTE CETTE LIGNE */
    width: 100%;        /* <-- ET CELLE-CI */
}
        a { text-decoration: none; color: inherit; }
        * { box-sizing: border-box; }

        /* --- HEADER TOP (Logo) --- */
        .site-header { padding: 25px 20px; text-align: center; background: #0b0f19; display: flex; flex-direction: column; align-items: center; gap: 15px; }
        .site-logo { font-size: 2.2rem; font-weight: 900; color: #f8fafc; margin: 0; text-transform: uppercase; letter-spacing: 2px; }
        .site-logo span { color: #3b82f6; }
        .top-secondary-links { display: flex; gap: 15px; font-size: 0.85rem; font-weight: bold; }
        .top-secondary-links a { color: #64748b; text-transform: uppercase; }
        .top-secondary-links a:hover { color: #3b82f6; }
        
        /* --- NAVIGATION DESKTOP (PC Uniquement) --- */
        .desktop-navbar { background: #151e2e; border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; padding: 12px 20px; display: flex; justify-content: center; gap: 30px; }
        .desktop-nav-link { color: #cbd5e1; font-weight: bold; font-size: 0.95rem; text-transform: uppercase; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
        .desktop-nav-link:hover, .desktop-nav-link.active { color: #3b82f6; }

        /* --- NAVIGATION MOBILE --- */
        .mobile-bottom-nav { display: none; }

        /* --- BANDEAU RECHERCHE --- */
        .search-banner { background: #111827; padding: 35px 20px; border-bottom: 1px solid #1f2937; text-align: center; }
        .search-container { max-width: 700px; margin: 0 auto; display: flex; position: relative; }
        .search-input { width: 100%; padding: 16px 25px; border-radius: 8px; border: 1px solid #374151; background: #1f2937; color: white; font-size: 1.1rem; outline: none; }
        .search-btn { position: absolute; right: 8px; top: 8px; bottom: 8px; background: #3b82f6; border: none; color: white; border-radius: 6px; padding: 0 25px; cursor: pointer; font-weight: bold; text-transform: uppercase; }
        .top-tags-container { margin-top: 15px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; align-items: center; }
        .tags-label { color: #6b7280; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; margin-right: 5px; }
        .top-tag { background: #1e293b; border: 1px solid #334155; color: #93c5fd; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }

        /* --- CONTENU PRINCIPAL --- */
		/* --- CONTENU PRINCIPAL --- */
.main-wrapper { 
    padding: 40px 20px; 
    width: 100%;          /* Changé de 90% à 100% */

    margin: 0 auto; 
    overflow-x: hidden;   /* Empêche les débordements internes */
}

		/* --- AJUSTEMENT GRILLE 4 COLONNES (Plus large) --- */
		@media (min-width: 1400px) { 
			.search-results-grid { grid-template-columns: repeat(4, 1fr); } 
		}

        .content-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }

        /* --- BLOCS & CARTES --- */
        .category-panel { background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
        .panel-title { font-size: 1.3rem; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid #1e293b; color: #f8fafc; display: flex; align-items: center; gap: 10px; }
        .panel-title::before { content: ""; display: block; width: 6px; height: 24px; background: #3b82f6; border-radius: 3px; }
        .teams-grid { display: grid; gap: 15px; grid-template-columns: 1fr; }
        .team-card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; transition: transform 0.2s; }
        .team-card:hover { transform: translateY(-3px); border-color: #60a5fa; background: #233044; }
        .card-header { margin-bottom: 12px; }
        .card-title { margin: 0 0 4px 0; font-size: 1.1rem; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
        .card-author { font-size: 0.8rem; color: #94a3b8; }
        .sprites-row { display: flex; justify-content: space-between; background: #0b0f19; border-radius: 6px; padding: 8px; margin-bottom: 12px; border: 1px solid #0f172a; }
        .sprites-row img { width: 40px; height: 40px; object-fit: contain; }
        .desc-snippet { font-size: 0.85rem; color: #cbd5e1; line-height: 1.5; margin: 0 0 12px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; flex-grow: 1; }
        .tag { background: #0f172a; color: #60a5fa; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: bold; border: 1px solid #1e293b; }
        .card-footer { display: flex; justify-content: flex-end; gap: 15px; font-size: 0.85rem; color: #94a3b8; border-top: 1px dashed #334155; padding-top: 12px; font-weight: 600; }

        /* --- FOOTER --- */
        .site-footer { background: #070a10; border-top: 2px solid #1e293b; padding: 40px 20px; text-align: center; margin-bottom: 0; }
        .footer-logo { font-size: 1.2rem; font-weight: 900; color: #475569; margin-bottom: 15px; }

        /* ========================================================================= */
        /* RESPONSIVE DESIGN */
        /* ========================================================================= */
        @media (min-width: 768px) {
            .teams-grid { grid-template-columns: repeat(2, 1fr); }
            .site-header { flex-direction: row; justify-content: space-between; }
        }
        @media (min-width: 1200px) {
            .content-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
        }

        /* --- MODE MOBILE STRICT (< 768px) --- */
        @media (max-width: 767px) {
            .desktop-navbar { display: none; }
            body { padding-bottom: 70px; }
            .site-footer { margin-bottom: 70px; }

            /* Navigation Mobile Standard */
            .mobile-bottom-nav {
                display: flex;
                position: fixed;
                bottom: 0; left: 0; right: 0;
                background: #0b0f19;
                border-top: 1px solid #1e293b;
                justify-content: space-around;
                align-items: center;
                z-index: 1000;
                padding: 12px 0;
                padding-bottom: env(safe-area-inset-bottom, 12px); 
            }

            .mobile-nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 5px;
                color: #64748b;
                font-size: 0.65rem;
                text-transform: uppercase;
                font-weight: bold;
                flex: 1;
                transition: color 0.2s;
            }

            .mobile-nav-item:hover, .mobile-nav-item.active { color: #3b82f6; }
            .mobile-nav-item .icon { font-size: 1.3rem; }
        }