:root {
    --bg-color: #0d0d0d;
    --nav-bg: #111111;
    --side-bg: #111111;
    --border-color: #2e2e2e;
    --text-main: #ffffff;
    --text-muted: #a6a6a6;
    --accent: #00ff00; /* Violet LKLCloud */
    --hover-bg: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    height: 60px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 1.1rem; }
.logo img { height: 24px; }
.nav-link-active { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; }
.nav-right a { color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.nav-right a i { font-size: 0.7rem; color: var(--text-muted); }
.lang-selector { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.theme-toggle { cursor: pointer; font-size: 1.1rem; }

.search-container {
    background: #242424;
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 200px;
}
.search-container input { background: none; border: none; color: white; outline: none; width: 100%; font-size: 0.85rem; }
.search-key { background: #333; padding: 1px 6px; border-radius: 3px; font-size: 0.7rem; color: var(--text-muted); }

/* LAYOUT */
.main-container { display: flex; margin-top: 60px; min-height: calc(100vh - 60px); }

/* SIDEBAR GAUCHE */
.sidebar-left {
    width: 300px;
    background-color: var(--side-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: 100%;
}

.side-menu { list-style: none; }
.menu-item, .menu-category {
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}
.menu-item.active { background: rgba(145, 70, 255, 0.1); color: var(--accent); font-weight: 600; }
.menu-category:hover, .menu-item:hover { background: var(--hover-bg); color: white; }
.menu-category i { font-size: 0.7rem; }

.sub-menu { list-style: none; padding-left: 10px; margin-bottom: 10px; }
.sub-menu li {
    padding: 8px 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}
.sub-menu li:hover { color: rgb(255, 255, 255); }

/* CONTENU */
.content { margin-left: 300px; margin-right: 250px; flex: 1; padding: 40px 60px; max-width: 900px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.breadcrumb .sep { opacity: 0.5; font-size: 1.2rem; }

h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.intro-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; }

h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 10px; }
hr { border: 0; border-top: 1px solid var(--border-color); margin-bottom: 20px; }

.dot-list { list-style: none; padding-left: 20px; }
.dot-list li { position: relative; margin-bottom: 10px; padding-left: 15px; }
.dot-list li::before { content: "•"; position: absolute; left: 0; color: var(--text-muted); }
.dot-list.links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.dot-list.links a:hover { text-decoration: underline; }

/* SIDEBAR DROITE */
.sidebar-right {
    width: 250px;
    position: fixed;
    right: 0;
    padding: 40px 20px;
}
.toc-title { font-size: 0.8rem; font-weight: bold; color: var(--accent); text-transform: uppercase; margin-bottom: 15px; }
.toc-list { list-style: none; border-left: 1px solid var(--border-color); }
.toc-list li a {
    display: block;
    padding: 5px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}
.toc-list li a:hover { color: rgb(255, 255, 255); border-left: 2px solid var(--accent); margin-left: -1px; }