/* ============================
   BASE GÉNÉRALE
============================ */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #fdedd9;
    color: #333;
    line-height: 1.6;
}

/* ============================
   LAYOUT
============================ */
.reader-layout {
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    gap: 20px;
}

/* ============================
   SIDEBAR
============================ */
.reader-sidebar {
    width: 260px;
    background: #dacab5;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    height: max-content;
    position: sticky;
    top: 20px;
}

.reader-sidebar h3 {
    margin-top: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.reader-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reader-sidebar li {
    margin-bottom: 8px;
}

.reader-sidebar a {
    text-decoration: none;
    color: #444;
    font-size: 0.9em;
}

.reader-sidebar li.active a {
    font-weight: bold;
    color: #d63384;
}

/* ============================
   CONTENU
============================ */
.reader-content {
    flex: 1;
}

.reader-content h1 {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.chapter-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ============================
   NAVIGATION
============================ */
.nav-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.nav-buttons a {
    padding: 10px 16px;
    background: #dacab5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    border: 1px solid #ccc;
}

.nav-buttons a:hover {
    background: #d8dee3;
}

/* ============================
   BOUTONS SECONDAIRES
============================ */
.btn {
    display: block;
    padding: 10px;
    margin-top: 10px;
    background: #d63384;
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn:hover {
    background: #b82a6f;
}

/* ============================
   COMPTEUR
============================ */
.chapter-progress {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
    .reader-layout {
        flex-direction: column;
    }

    .reader-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}
/* ============================
   HEADER SIMPLE & ÉLÉGANT
============================ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdedd9;
    border-bottom: 1px solid #ddd;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left h1 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
}

.header-left .site-author {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    padding: 8px 14px;
    background: #d63384;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
}

.header-btn:hover {
    background: #b82a6f;
}

/* Responsive */
@media (max-width: 700px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
