/* ===== Global ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
}

/* ===== TOC Sidebar ===== */
#TOC {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
    padding: 1em;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#TOC ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Indentation + font size by depth */
#TOC ul ul {
    margin-left: 1em;   /* indent for nested lists */
}

#TOC li {
    margin: 0.3em 0;
}

/* Level-based sizes */
#TOC > ul > li > a {
    font-size: 1em;     /* h1 */
    font-weight: bold;
}

#TOC ul > li > ul > li > a {
    font-size: 0.9em;   /* h2 */
    font-weight: normal;
}

#TOC ul ul ul > li > a {
    font-size: 0.85em;  /* h3 */
    color: #444;
}

#TOC ul ul ul ul > li > a {
    font-size: 0.8em;   /* h4 */
    color: #555;
}

/* Links */
#TOC a {
    text-decoration: none;
    color: #007acc;
}

#TOC a:hover {
    text-decoration: underline;
}

/* ===== Main content ===== */
#content {
    margin-left: 270px; /* leave space for sidebar */
    padding: 2em;
    max-width: 900px;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}


h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.2em;   /* plus petit qu’avant */
    font-weight: normal;
    color: #444;
}

/* ===== Paragraphs ===== */
p {
    margin-bottom: 1em;
}

/* ===== Code ===== */
pre, code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    background-color: #
