/* ——————————————
   CODE BLOCKS
   —————————————— */
.highlight pre {
    background-color: #263238 !important;
    /* sombre, comme votre mockup */
    color: #aed581 !important;
    /* vert tendre */
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    overflow-x: auto !important;
}

/* Support pour bash */
.highlight-bash pre {
    background-color: #263238 !important;
    color: #aed581 !important;
}

/* INLINE CODE */
code {
    background-color: rgba(0, 0, 0, 0.05) !important;
    padding: 0.125rem 0.25rem !important;
    border-radius: 0.25rem !important;
}

/* ——————————————
     ADMONITIONS
     —————————————— */
.admonition {
    border-left-width: 4px !important;
    border-radius: 0.375rem !important;
    padding: 1rem 1.5rem !important;
    background-color: var(--pst-color-surface) !important;
}

/* Note (bleu clair) */
.admonition.note {
    background-color: rgba(23, 162, 184, 0.1) !important;
    border-left-color: var(--pst-color-info) !important;
}

/* Tip (vert clair) */
.admonition.tip {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-left-color: var(--pst-color-success) !important;
}

/* Warning (jaune clair) */
.admonition.warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-left-color: var(--pst-color-warning) !important;
}

/* Success (vert plus soutenu) */
.admonition.success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-left-color: var(--pst-color-success) !important;
}

/* Titre d’admonition : icône + texte en gras */
.admonition .admonition-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ——————————————
     PADDING GÉNÉRAL ARTICE
     —————————————— */
.bd-content {
    padding: 0rem 0rem !important;
}

/* Ajustements typographiques pour h2, h3… */
h2 {
    border-bottom: 2px solid var(--pst-color-border) !important;
    padding-bottom: 0.5rem !important;
}

.custom-admonition.info {
    background-color: #e6f7f8;
    border-left: 6px solid #47c0c1;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
}

.custom-admonition-title.info {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0e7c86;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-admonition.info ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.custom-admonition.info li {
    margin-bottom: 0.5rem;
}

/* Base commune */
.custom-admonition {
    border-left: 6px solid;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f5f5f5;
}

.custom-admonition-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Tip / vert */
.custom-admonition.tip {
    background-color: #e6f9ed;
    border-left-color: #28a745;
}

.custom-admonition.tip .custom-admonition-title {
    color: #28a745;
}

/* Warning / jaune */
.custom-admonition.warning {
    background-color: #fff8e6;
    border-left-color: #ffc107;
}

.custom-admonition.warning .custom-admonition-title {
    color: #000000;
}

/* Gestion des listes à l’intérieur */
.custom-admonition ul {
    padding-left: .5rem;
    margin-top: 0.5rem;
}

.custom-admonition li {
    margin-bottom: 0.5rem;
}

/* Toutes les images avec classe logo */
img.logo {
    max-height: 90px !important;
    width: auto !important;
}

/* Sélecteurs spécifiques pour différentes versions de Jupyter Book */
.navbar-brand img,
.navbar-brand img.logo,
.navbar-header img,
#navbar-main-elements img,
.bd-header img.logo {
    /* max-height: 90px !important;
    width: auto !important; */
    display: none !important;
}