/* =========================================
   STYLE.CSS - WIKI DISTRICT WL
   ========================================= */

/* Import de la police 'Inter' (Moderne et lisible) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* PALETTE DE COULEURS */
    --bg-dark: #1e1e1e;       /* Fond principal */
    --sidebar-bg: #151515;    /* Fond du menu */
    --text-main: #e0e0e0;     /* Texte blanc cassé */
    --text-muted: #a0a0a0;    /* Texte gris */
    --accent: #B91C1C;        /* ROUGE SOMBRE DISTRICT WL (Ton Logo) */
    --accent-hover: #DC2626;  /* Rouge un peu plus clair au survol */
    --border: #333333;        /* Bordures subtiles */
    --alert-bg: rgba(185, 28, 28, 0.1); /* Fond transparent rouge sombre */
}

/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Scrollbar personnalisée (plus jolie en dark mode) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================
   SIDEBAR (MENU GAUCHE)
   ========================================= */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 25px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed; /* Le menu reste fixe */
    height: 100vh;   /* Prend toute la hauteur */
    overflow-y: auto;
    z-index: 1000;
}

/* Logo et Titre */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.brand img {
    width: 50px;       /* Taille du logo */
    height: auto;
    object-fit: contain;
}

.brand h1 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Liens du menu */
.menu-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.menu-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* État survolé et actif */
.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-link.active {
    background-color: rgba(185, 28, 28, 0.15); /* Fond rouge très léger */
    color: #fff;
    border-left: 3px solid var(--accent);
}

.menu-link.active i {
    color: var(--accent);
}

/* =========================================
   CONTENU PRINCIPAL (DROITE)
   ========================================= */
.main-content {
    margin-left: 280px; /* Décale le contenu pour laisser la place au menu */
    padding: 50px 80px;
    width: 100%;
    max-width: 1400px; /* Évite que le texte soit trop large sur grand écran */
}

/* Typographie */
h1 { font-size: 32px; color: #fff; margin-bottom: 10px; font-weight: 700; }
h2 { font-size: 24px; color: #fff; margin-top: 40px; margin-bottom: 20px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
h3 { font-size: 18px; color: var(--accent); margin-top: 25px; margin-bottom: 10px; font-weight: 600; }
p { margin-bottom: 15px; color: #cccccc; font-size: 16px; }
strong { color: #fff; font-weight: 700; }

/* Listes à puces */
ul { margin-left: 20px; margin-bottom: 20px; color: #ccc; }
ul li { margin-bottom: 8px; }

/* Commandes (/me, /do) */
code {
    background-color: #2b2b2b;
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #444;
}

/* =========================================
   COMPOSANTS SPÉCIFIQUES
   ========================================= */

/* Boites d'alerte (Info, Warning, etc.) */
.alert {
    background: var(--alert-bg);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
    color: #e0e0e0;
}

/* Tableaux (Pour l'argent sale, etc.) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #252525;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #2a2a2a; }

/* =========================================
   NOUVEAU : BOUTONS DE NAVIGATION (PAGE RÈGLEMENT)
   ========================================= */
.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive */
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #252525;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Icone à gauche */
.nav-btn i:first-child {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
}

/* Texte au milieu */
.nav-btn span {
    font-weight: 600;
    font-size: 18px;
    flex-grow: 1;
    margin-left: 10px;
}

/* Flèche à droite */
.nav-btn .arrow {
    font-size: 16px;
    color: #666;
    transition: 0.3s;
}

/* Effets au survol (Hover) */
.nav-btn:hover {
    background-color: var(--accent); /* Le fond devient rouge */
    border-color: var(--accent);
    transform: translateY(-5px); /* Remonte légèrement */
    box-shadow: 0 10px 15px rgba(185, 28, 28, 0.3); /* Ombre rouge */
}

.nav-btn:hover .arrow {
    color: #fff;
    transform: translateX(5px); /* La flèche bouge */
}

.nav-btn:hover i:first-child {
    color: #fff; /* L'icone devient blanche */
}

/* Espacement pour le Lexique */
.lexique-grid h3 {
    color: var(--accent);
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.lexique-grid p {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Ligne très discrète */
    padding-bottom: 15px;
}

/* --- IMAGES DU LORE --- */
.lore-image-container {
    margin: 30px 0; /* Espace au dessus et en dessous */
    border-radius: 12px;
    overflow: hidden; /* Pour que l'image ne dépasse pas des bords arrondis */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Petite ombre portée */
    border: 1px solid #333;
}

.lore-image-container img {
    width: 100%;     /* L'image prend toute la largeur disponible */
    height: auto;    /* La hauteur s'adapte pour ne pas déformer l'image */
    display: block;  /* Supprime les petits espaces fantômes sous l'image */
    opacity: 0.9;    /* Un tout petit peu transparent pour se fondre dans le fond sombre */
    transition: opacity 0.3s;
}

.lore-image-container img:hover {
    opacity: 1; /* L'image s'éclaire au survol de la souris */
}