/* Styles pour mobile (général, hors BD) */
@media (max-width: 640px) {
    .post-content.prose { /* S'applique aux articles non-BD sur mobile */
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .post-content.prose p, 
    .post-content.prose h1, 
    .post-content.prose h2, 
    .post-content.prose h3, 
    .post-content.prose h4, 
    .post-content.prose h5, 
    .post-content.prose h6, 
    .post-content.prose ul, 
    .post-content.prose ol {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Styles pour tous les écrans (général, hors BD) */
.post-content.prose { /* S'applique aux articles non-BD */
    max-width: 100% !important;
}

/* --- NOUVEAUX STYLES SPÉCIFIQUES POUR LES BD --- */
/* S'appliquent uniquement au contenu des BD enveloppé dans .bd-content-wrapper */
.bd-content-wrapper {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #374151; /* Gris foncé pour le texte par défaut */
    line-height: 1.7;
}

.bd-content-wrapper h1,
.bd-content-wrapper h2,
.bd-content-wrapper h3,
.bd-content-wrapper h4,
.bd-content-wrapper h5,
.bd-content-wrapper h6 {
    color: #0d7377; /* Turquoise foncé pour les titres */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.bd-content-wrapper h1 { font-size: 2em; margin-top: 0; }
.bd-content-wrapper h2 { font-size: 1.5em; margin-top: 2.5rem; }
.bd-content-wrapper h3 { font-size: 1.25em; margin-top: 2rem; }
.bd-content-wrapper h4 { font-size: 1.125em; margin-top: 1.75rem; }
.bd-content-wrapper h5 { font-size: 1em; margin-top: 1.5rem; }
.bd-content-wrapper h6 { font-size: 0.875em; margin-top: 1.5rem; }

.bd-content-wrapper p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.bd-content-wrapper a {
    color: #0d7377; /* Turquoise foncé pour les liens */
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.15em;
}

.bd-content-wrapper a:hover {
    color: #14b8a6; /* Turquoise plus clair au survol */
}

.bd-content-wrapper strong {
    font-weight: 700;
    color: #1f2937; /* Noir doux pour le gras */
}

.bd-content-wrapper em {
    font-style: italic;
    color: #4b5563; /* Gris moyen pour l'italique */
}

.bd-content-wrapper ul, 
.bd-content-wrapper ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem; /* Indentation standard pour les listes */
}
.bd-content-wrapper ul { list-style-type: disc; }
.bd-content-wrapper ol { list-style-type: decimal; }

.bd-content-wrapper li {
    margin-bottom: 0.5rem;
}

.bd-content-wrapper blockquote {
    border-left: 4px solid #0d7377; /* Bordure turquoise */
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.25rem;
    font-style: italic;
    color: #4b5563; /* Gris moyen pour les citations */
}

.bd-content-wrapper hr {
    border: 0;
    border-top: 2px solid #e5e7eb; /* Gris clair pour les séparateurs */
    margin: 2rem 0;
}

.bd-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Limiter la taille des images de BD sur desktop */
@media (min-width: 1025px) {
    /* Cibler uniquement l'image principale de BD (évite de casser la sidebar) */
    article .comic-full-width-container img {
        max-width: 800px !important;
        width: 800px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

.bd-content-wrapper code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: #0d7377; /* Turquoise foncé pour le code */
    background-color: #f3f4f6; /* Gris très clair pour le fond du code */
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

.bd-content-wrapper pre {
    background-color: #f3f4f6; /* Gris très clair pour le fond des blocs de code */
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.bd-content-wrapper pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875em;
}

/* Styles spécifiques pour mobile pour les BD */
@media (max-width: 640px) {
    .bd-content-wrapper h2 { font-size: 1.3rem; margin-top: 2rem; }
    .bd-content-wrapper h3 { font-size: 1.1rem; margin-top: 1.5rem; }
    .bd-content-wrapper p { text-align: left; font-size: 0.95rem; }
    .bd-content-wrapper blockquote { padding-left: 0.75rem; }
    .bd-content-wrapper ul, 
    .bd-content-wrapper ol { padding-left: 1.25rem; }
}

.bd-content-wrapper > *:last-child {
    margin-bottom: 0;
}

/* Ensure comic images in the post detail view are full width and centered */
.bd-content-wrapper .comic-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2rem;
}

.bd-content-wrapper img {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- FIN DES NOUVEAUX STYLES SPÉCIFIQUES POUR LES BD --- */

/* Styles pour le lecteur de podcast */
.hidden-audio {
    display: none;
}
