/* Personnalisation des couleurs d'en-tête et de navigation */

/* Couleur de l'en-tête principal */
.book-header {
    background: #271836 !important;
    color: white !important;
}

.book-header h1 {
    color: white !important;
}

/* Barre de navigation supérieure */
.book-summary {
    background: #f8f9fa !important;
}

/* Titres dans le menu de navigation */
.book-summary ul.summary li a {
    color: #291712 !important;
    padding: 8px 15px !important;
    font-weight: 500;
}

.book-summary ul.summary li.active > a {
    background: #36224b !important;
    color: white !important;
    font-weight: 600;
    border-radius: 4px;
}

/* Sous-sections dans le menu (niveau 2) */
.book-summary ul.summary li ul li a {
    padding-left: 30px !important;
    font-size: 0.95em;
    color: #2b1711 !important;
}

.book-summary ul.summary li ul li.active > a {
    background: #271836 !important;
    color: white !important;
}

/* Sous-sous-sections (niveau 3) */
.book-summary ul.summary li ul li ul li a {
    padding-left: 45px !important;
    font-size: 0.9em;
    color:#9F5540 !important;
}

/* Effet hover sur les liens du menu */
.book-summary ul.summary li a:hover {
    background: #e7cdbc !important;
    border-radius: 4px;
}

/* Titres dans le contenu principal */
.markdown-section h1 {
    color: #362d2a !important;
    border-bottom: 3px solid #271836 !important;
    padding-bottom: 10px;
}

.markdown-section h2 {
    color: #36224b !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3) !important;
    padding-bottom: 8px;
}

.markdown-section h3 {
    color: #362d2a !important;
}

.markdown-section h4 {
    color: #36224b !important;
}

/* Amélioration de la lisibilité des liens */
.markdown-section a {
    color: #9F5540 !important;
    text-decoration: none;
}

.markdown-section a:hover {
    color: #36224b !important;
    text-decoration: underline;
}

/* Boutons et éléments interactifs */
.btn {
    background: #36224b !important; 
    color: white !important;
    border: none !important;
}

.btn:hover {
    opacity: 0.9;
}

/* Style pour les éléments de code inline */
code {
    background-color: #eeeeee !important;
    color: #c00000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 1em !important;
    border: 1px solid #eeeeee !important;
}

/* Style pour les blocs de code (délimités par ```) */
pre {
    background-color: #2b2b2b !important;
    border: 2px solid #36224b !important;
    border-radius: 6px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

pre code {
    background-color: transparent !important;
    color: #f8f8f2 !important;
    padding: 0 !important;
    border: none !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
    display: block !important;
    overflow-x: auto !important;
}

/* Table des matières (plugin page-toc) */
.page-toc-title {
    color: #362d2a !important;
    font-weight: 600;
}

.page-toc ul a {
    color: #495057 !important;
}

.page-toc ul a:hover {
    color: #e7cdbc !important;
}

/* Élargir la zone de contenu principal */
.book-body .body-inner {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 20px 40px !important;
}

.page-wrapper .page-inner {
    max-width: none !important;
}

/* Masquer les boutons de navigation précédent/suivant qui ne fonctionnent pas correctement */
.navigation {
    display: none !important;
}

.navigation-prev,
.navigation-next {
    display: none !important;
}
