html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: auto;
    min-height: 100%;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0 !important;
    padding-top: 88px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff; /* évite la transparence */
}

:root {
    --footer-h: 72px; /* ajuste: 56 / 64 / 72 */
}

/* ton main doit pouvoir pousser la footer en bas */
main {
    flex: 1 0 auto;
}

/* footer en flux normal, fond explicite */
footer.footer,
.footer {
    height: var(--footer-h) !important;
    max-height: var(--footer-h) !important;
    flex: 0 0 auto !important; /* => flex-grow:0, flex-shrink:0 */
    position: static !important; /* ou relative */
    min-height: 0 !important;
    bottom: auto !important;
    line-height: normal !important;
    background: #fff;
    width: 100%;
    padding-top: 1rem; /* tu peux ajuster */
    padding-bottom: 1rem; /* tu peux ajuster */
}

@media (min-width: 992px) {
    body {
        padding-top: 88px; /* hauteur navbar en mode desktop */
    }
}

/* optionnel : un peu de marge de confort en mobile */
@media (max-width: 576px) {
    main {
        padding-bottom: 1rem;
    }
}

/* Fond + lisibilité du menu déroulant en mode burger */
@media (max-width: 991.98px) {

    /* le panneau déroulant */
    .navbar .navbar-collapse {
        background: #2c3e50; /* indigo */
        padding: 0.75rem 1rem;
        border-radius: 0 0 12px 12px;
    }

        /* liens dans le panneau */
        .navbar .navbar-collapse .nav-link {
            color: #fff !important;
            padding: 0.6rem 0;
        }

        /* optionnel : une séparation légère entre items */
        .navbar .navbar-collapse .nav-item + .nav-item {
            border-top: 1px solid rgba(255,255,255,.12);
        }
}

/* Liens visibles sur fond clair */
.navbar .nav-link {
    color: #212529 !important;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: #00b4d9 !important;
    }

/* Burger visible */
.navbar-light .navbar-toggler {
    border-color: rgba(255,255,255,.4);
}

.navbar-light .navbar-toggler-icon {
    filter: invert(1);
}

/* Navbar fond blanc */
.navbar.bg-white {
    background-color: #ffffff !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 -12px 24px rgba(0,0,0,.08);
    font-size: 0.95rem;
}

    .cookie-banner a {
        text-decoration: none;
    }

        .cookie-banner a:hover {
            text-decoration: underline;
        }

.etiquette-icon-wrapper {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6; /* même gris que Bootstrap */
    border-radius: 6px;
    background-color: #f8f9fa; /* bg-light */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.etiquettes-container {
    margin-bottom: 1rem; /* évite le chevauchement avec les boutons */
}

.etiquette-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.65;
}

.etiquette-text {
    line-height: 1;
}

.etiquette-icon:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.footer-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .footer-icons img {
        width: 28px;
        height: 28px;
        object-fit: contain;
        opacity: 0.75;
        transition: opacity .2s ease, transform .2s ease;
    }

.markdown-content p {
    margin-bottom: .75rem;
}

.markdown-content ul, .markdown-content ol {
    padding-left: 1.25rem;
}

.markdown-content li {
    margin-bottom: .4rem;
}

.markdown-content table {
    width: 100%;
}

    .markdown-content table th, .markdown-content table td {
        padding: .4rem .6rem;
        border: 1px solid #dee2e6;
    }

.markdown-content code {
    padding: .1rem .3rem;
    border-radius: .25rem;
    background: #f8f9fa;
}

.markdown-content pre code {
    display: block;
    padding: .75rem;
    overflow: auto;
}

.nav-pills-outline .nav-link {
    background-color: transparent;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

    .nav-pills-outline .nav-link:hover {
        background-color: var(--bs-light);
    }

    .nav-pills-outline .nav-link.active {
        background-color: transparent;
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        font-weight: 600;
    }
