/* Contain Bootstrap's outer row without hiding off-screen content. */
main.row {
    margin-left: 0;
    margin-right: 0;
}

.footer-badge-img {
    max-width: min(220px, 100%);
    height: auto;
}

@media (max-width: 1400px) {
    header {
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-navigation {
        gap: 20px;
    }

    .Services .col {
        min-width: 0;
    }

    .Services .one_line {
        width: auto;
    }
}

@media (max-width: 992px) {
    header {
        position: relative;
        justify-content: center;
    }

    .header-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner {
        position: relative;
        height: auto;
        min-height: 100svh;
    }

    /* The header is no longer over the hero on narrow screens. */
    header:not(.scrolled) {
        background-color: #333333;
    }

    .banner-content {
        min-width: 0;
        width: 100%;
    }

    .banner .element {
        padding: 1rem !important;
    }

    #Presentation {
        margin-top: 30px;
    }

    #Presentation .col,
    .centre-accueil article {
        flex: none;
        width: 100%;
    }

    .Services .point {
        margin-left: 0;
        margin-right: 0;
    }

    #Contact .contact-details {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 576px) {
    .header-navigation {
        width: 100%;
    }

    .header-navigation a {
        padding: 8px 0;
    }

    .banner h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #Expertises .col {
        flex-basis: 100%;
        max-width: 280px;
    }
}
