/* Custom styles for SHS website */

/* Topbar background color override */
.topbar.bg-primary {
    background: #1c3e58 !important;
}

/* Top search background color override */
.top-search.bg-primary {
    background: #1c3e58 !important;
}

/* Remove circle background from social media icons */
.social-icon-style3 li a {
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    color: #fff !important;
    font-size: 20px !important;
}

.social-icon-style3 li a:hover {
    color: #eb1919 !important;
}

/* Responsive topbar */
@media (max-width: 767px) {
    .topbar .row {
        flex-direction: column;
        text-align: center;
    }

    .topbar .col-md-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .topbar .topbar-left span {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .topbar .topbar-right {
        text-align: center !important;
    }

    .topbar .topbar-right a {
        display: inline-block;
        margin: 0 5px;
        font-size: 14px;
    }

    .topbar #topLanguageSelect {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 15px 0;
    }

    .topbar .topbar-right a {
        font-size: 12px;
        margin: 0 2px;
    }

    .topbar .topbar-left span {
        font-size: 12px;
    }
}

/* Override responsive menu styles from original template */
@media screen and (max-width: 991px) {
    /* Ensure navbar toggler is visible and properly styled */
    .navbar-toggler {
        background: #1c3e58 !important;
        width: 50px;
        height: 45px;
        padding: 0;
        border-radius: 0;
        position: absolute;
        right: 0;
        top: 13px;
        cursor: pointer;
        z-index: 12399994;
        border: none;
        display: block !important;
    }

    .navbar-toggler:after {
        position: absolute;
        top: 22px;
        right: 15px;
        display: block;
        height: 8px;
        width: 20px;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        content: "";
    }

    .navbar-toggler:before {
        transition: all .3s ease;
        position: absolute;
        top: 16px;
        right: 15px;
        display: block;
        height: 2px;
        width: 20px;
        background: #fff;
        content: "";
    }

    .navbar-toggler.menu-opened:after {
        transition: all .3s ease;
        top: 23px;
        border: 0;
        height: 2px;
        width: 19px;
        background: #fff;
        transform: rotate(45deg);
    }

    .navbar-toggler.menu-opened:before {
        top: 23px;
        background: #fff;
        width: 19px;
        transform: rotate(-45deg);
    }

    /* Menu styling for mobile */
    .navbar-nav {
        background: #fff;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        transition: none;
    }

    .navbar-nav li {
        width: 100%;
        border-top: 1px solid #e6e6e6;
        position: relative;
        padding: 0;
        margin: 0;
        text-align: left;
        float: none !important;
    }

    .navbar-nav > li > a {
        padding: 14px 20px !important;
        color: #1c3e58 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .navbar-nav > li > a:hover {
        opacity: 1;
        color: #eb1919 !important;
    }

    .navbar-nav li ul {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
        background: #f5f5f5 !important;
        padding: 0 !important;
        box-shadow: none !important;
        display: none !important;
    }

    .navbar-nav li ul li a {
        width: 100%;
        border-bottom: 0;
        color: #1c3e58 !important;
        background: none;
        padding: 10px 35px 10px 30px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .navbar-nav li ul li a:hover {
        color: #eb1919 !important;
    }

    /* Submenu buttons */
    .navbar-nav .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        height: 51px;
        width: 100%;
        cursor: pointer;
    }

    .navbar-nav .submenu-button:after {
        position: absolute;
        top: 24px;
        right: 16px;
        width: 10px;
        height: 2px;
        display: block;
        background: #1c3e58;
        content: "";
    }

    .navbar-nav .submenu-button:before {
        position: absolute;
        top: 20px;
        right: 20px;
        display: block;
        width: 2px;
        height: 10px;
        background: #1c3e58;
        content: "";
    }

    .navbar-nav .has-sub.active > .submenu-button:before {
        display: none;
    }
}

/* Partners scroll container styles */
.partners-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
    scroll-behavior: smooth;
}

.partner-logo {
    max-height: 80px;
    object-fit: contain;
}

.process-img-size {
    height: 200px;
    width: 200px;
}

.testimonial-img-size {
    width: 170px;
    height: 170px;
}

.partners-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.partners-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.partners-scroll-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.partners-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.partner-item {
    transition: all 0.3s ease;
    background: #fff;
    flex-shrink: 0;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15) !important;
    border-color: #007bff !important;
}

.partner-item img {
    transition: all 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partners-scroll-container {
        padding: 15px;
    }

    .partner-item {
        min-width: 150px !important;
    }
}

@media (max-width: 576px) {
    .partner-item {
        min-width: 120px !important;
    }
}

/* Désactiver les liens dans la section partners */
.partners-scroll-container a {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

/* Topbar scroll management */
.topbar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-style1.sticky-menu .topbar {
    transform: translateY(-100%);
    opacity: 0;
}

/* Service Cards Animations */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.service-card:hover {
    border: 2px solid #d32f2f !important;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.15) !important;
    transform: translateY(-4px) !important;
}

.service-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card:hover .service-image img {
    transform: scale(1.08) !important;
}

.btn-service-red {
    transition: all 0.3s ease !important;
}

.btn-service-red:hover {
    transform: translateX(4px) !important;
}