.text a {
    text-decoration: underline;
}

.text>a:hover,
a:focus {
    color: #003366;
    text-decoration-thickness: 2px;
}

.boxicon {
    width: 100%;
}

.custom-summary h1 {
    font-size: 26px;
    line-height: 140%;
}

.custom-summary img {
    border: 0px;
    margin: 1rem 0;
}

.dropdown-menu {
    right: 0;
    left: auto;
}

.dropleft .dropdown-menu {
    background-color: #e5e5e5;
}

.logo-design {
    width: 95%;
}

.logo-size {
    width: 57%
}

@media only screen and (max-width:990px) {
    .super-hero {
        display: none;
    }
}

@media only screen and (max-width: 990px) {
    .logo-design {
        width: 75%;
    }

    .logo-size {
        width: 42%
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    visibility: hidden;
    /* Hide the button by default */
}

body {
    overflow-x: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: right center;
}

a.box {
    text-decoration: none;
}

/* Quand le menu mobile est ouvert : bloquer le scroll du fond, le menu défile à la place */
body.menu-open {
    overflow: hidden;
    height: 100%;
}

body.navbar-collapse.show {
    transform: translateX(-80%);
    opacity: 0.7;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100%;
        max-height: 100vh;
        transition: right 0.3s ease-in-out;
        background-color: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1050;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .sideways-toggle {
        transition: transform 0.3s ease-in-out;
    }

    .navbar-toggler[aria-expanded="true"] {
        transform: none;
    }

    .close-button {
        visibility: visible;
        position: absolute;
        top: 25px;
        right: 30px;
    }

    .close-button .close {
        font-size: 1.5rem;
        color: #000;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    body.navbar-collapse.show+.page-content {
        margin-right: 80%;
    }

    body.navbar-collapse.show {
        opacity: 0.7;
    }

    .navbar-nav {
        padding: 0px 30px 30px;
    }

    .lang-btn>a {
        font-size: 1rem;
        color: #212529;
        background: #dee2e6;
        border-color: #dee2e6;
        text-transform: uppercase;
        padding: 5px 30px;
        margin-right: 2rem;
    }

    .custom-toggler {
        display: flex;
        align-items: center;
        border: none;
        /* Optional: To remove the border */
        outline: none;
        /* Optional: To remove the outline */
    }

    .menu-font {
        font-size: 1rem;
    }

    .navbar {
        flex-wrap: nowrap;
    }
}

/* Footer certification logos (PNG + SVG): cap intrinsic SVG dimensions */
footer.bg-dark img.footer-cert-logo {
    max-height: 52px;
    width: auto;
    max-width: 130px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Area showcase logos: prevent overflow inside blue blocks */
img.area-showcase-cert-logo {
    max-height: 52px;
    width: auto;
    max-width: 130px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}