    /* === WIKI OVERLAY (Conteneur fixe et fond sombre) === */
.wiki-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(10, 8, 7, 0.85);
    z-index: 99999;
    
    /* Animation pour le fond sombre */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.wiki-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* === WIKI CONTAINER (Le panneau plein écran) === */
.wiki-container {
    position: absolute;
    top: 0; 
    right: -100%; /* Sorti de l'écran par défaut */
    width: 100%;  /* CHANGÉ : 100% de la largeur */
    max-width: 100%; /* CHANGÉ : Enlève la limite de 1250px */
    height: 100%;
    
    background: linear-gradient(rgba(232, 220, 199, 0.95), rgba(232, 220, 199, 0.98)), url('../img/solaria_font.png');
    background-size: cover;
    /* border-left: 2px solid var(--or-imperial, #B8860B); <- SUPPRIMÉ : Inutile en plein écran */
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    
    /* Animation du glissement */
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Quand la classe active est présente, on glisse à droite 0 */
.wiki-overlay.active .wiki-container {
    right: 0;
}

/* === HEADER & LAYOUT === */
.wiki-header {
    background: rgba(26, 23, 21, 0.98);
    color: var(--or-brillant, #DAA520);
    padding: 20px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: bold;
    border-bottom: 2px solid var(--or-imperial, #B8860B);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-layout {
    display: flex;
    flex: 1;
    overflow: hidden; /* Empêche le débordement */
}

/* === SIDEBAR & CONTENU (Reste de tes styles) === */
.wiki-sidebar {
    width: 300px;
    background: rgba(42, 37, 34, 0.98);
    border-right: 2px solid var(--or-imperial, #B8860B);
    padding: 25px 0;
    overflow-y: auto;
}

.wiki-sidebar-title {
    color: var(--or-brillant, #DAA520);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0 25px;
    margin-bottom: 15px;
}

.wiki-sidebar .action-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--blanc-pur, #F2EAD3);
    border: none;
    border-left: 4px solid transparent;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wiki-sidebar .action-btn:hover {
    background: rgba(218, 165, 32, 0.1);
    color: var(--or-brillant, #DAA520);
    border-left: 4px solid var(--or-imperial, #B8860B);
}

.wiki-sidebar .action-btn.active-tab {
    background: var(--or-imperial, #B8860B);
    color: var(--fond-sombre, #1A1715);
    border-left: 4px solid var(--blanc-pur, #F2EAD3);
}

.wiki-content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.wiki-section { display: none; }
.wiki-section.active { display: block; animation: fadeIn 0.4s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Force la pleine largeur et la structure --- */
#wiki-modal.wiki-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* --- Styles pour les Tables et Grilles --- */
.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.4);
}

.wiki-table th, .wiki-table td {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wiki-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--or-imperial);
    padding: 15px;
    border-radius: 6px;
}