* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 800px;
    --line-height: 1.8;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: var(--line-height);
}

.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: block;
}

/* Header */
header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.logo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin: 0;
}

.reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-small {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Bibliothèque */
.library-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.book-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-cover {
    min-width: 200px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    text-align: center;
}

.book-cover h2 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-info h3 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
}

.book-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    flex: 1;
}

.book-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chapters-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: 1rem;
}

.read-btn:hover {
    background: var(--secondary-color);
}

/* Vue Lecture */
.reading-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.chapter-header {
    margin-bottom: 3rem;
    text-align: center;
}

.chapter-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.chapter-indicator {
    color: var(--text-light);
    font-size: 0.9rem;
}

.chapter-content {
    font-size: 1.15rem;
    line-height: var(--line-height);
    color: var(--text-color);
    margin-bottom: 4rem;
}

.chapter-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 0;
}

.chapter-content p:first-of-type {
    margin-top: 2rem;
}

.chapter-content .separator {
    text-align: center;
    margin: 3rem 0;
    color: var(--text-light);
    font-size: 1.5rem;
}

.chapter-content .signature {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
}

.chapter-content .signature:first-of-type {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.2rem;
    font-style: normal;
}

.chapter-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.nav-btn:hover:not(:disabled) {
    background: var(--secondary-color);
}

.nav-btn:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.back-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-color);
}

.back-btn:hover {
    background: var(--bg-light);
}

.bookmark-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.bookmark-btn:hover {
    background: var(--bg-light);
}

.bookmark-btn.active {
    border-color: var(--accent-color);
    background: rgba(231, 76, 60, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .book-card {
        flex-direction: column;
    }

    .book-cover {
        width: 100%;
        min-width: auto;
    }

    .reading-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .chapter-header h2 {
        font-size: 1.8rem;
    }

    .chapter-content {
        font-size: 1rem;
    }

    .chapter-nav {
        flex-direction: column;
    }

    .chapter-footer {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }
}

