/* ======================================
   TOPNET SOLUTIONS - Custom Color Overrides
   Primary: #1400CC (Blue - TOPNET)
   Secondary: #00B300 (Green - Solutions)
   Accent: #8B7D3C (Gold - Spiral)
   Dark Blue: #0a0055
   ====================================== */

:root {
    --clr-theme-primary: #1400CC;
    --clr-theme-primary-dark: #0f0099;
    --clr-theme-primary-soft: #1a00e6;
    --clr-color-blue: #0a0055;
    --topnet-green: #00B300;
    --topnet-gold: #8B7D3C;
}

/* Theme Buttons */
.ns-theme-btn {
    background-color: #1400CC;
}
.ns-theme-btn:hover {
    background-color: #00B300;
}

/* Section Subtitles */
.ns-section-subtitle {
    color: #00B300;
}
.ns-section-subtitle::before {
    background-color: #00B300;
}
.ns-section-subtitle::after {
    background-color: #00B300;
}

/* Header bottom border */
.ns-header-area-4 {
    border-bottom: 3px solid #1400CC;
}

/* Banner Area - reduced height */
.ns-banner-single-4 {
    min-height: 550px;
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ns-banner-single-4 {
        min-height: 480px;
    }
}
@media (max-width: 767px) {
    .ns-banner-single-4 {
        min-height: 420px;
    }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .ns-banner-single-4 {
        min-height: 450px;
    }
}
.ns-banner-4-img img {
    width: 550px;
    object-fit: cover;
    border-radius: 12px;
}

.ns-banner-content-subtitle {
    color: #00B300;
}
.ns-banner-content-4 .ns-banner-content-subtitle {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
}
.ns-banner-content-4 .ns-banner-content-subtitle::after {
    background-color: #00B300;
}
.ns-banner-content-title span {
    color: #00B300;
}
.ns-banner-area-4 {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}

/* Feature Items - equal height cards */
.ns-feature-wrap-4 .row {
    display: flex;
    flex-wrap: wrap;
}
.ns-feature-wrap-4 .row > [class*="col-"] {
    display: flex;
}
.ns-feature-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.ns-feature-item p {
    flex-grow: 1;
}

.ns-feature-item-icon {
    background-color: #00B300;
}
.ns-feature-item:hover .ns-feature-item-icon {
    background-color: #1400CC;
}
.ns-feature-single-4 {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}

/* Animated background - circles & lines */
.topnet-animated-bg {
    position: relative;
    overflow: hidden;
}
.topnet-bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating bubbles */
.topnet-bg-circles .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: floatBubble linear infinite;
}
.circle-1 {
    width: 80px; height: 80px;
    background: #fff;
    top: 10%; left: 5%;
    animation-duration: 8s !important;
}
.circle-2 {
    width: 40px; height: 40px;
    background: #00B300;
    top: 60%; left: 15%;
    animation-duration: 12s !important;
    animation-delay: 1s;
}
.circle-3 {
    width: 120px; height: 120px;
    border: 3px solid #fff;
    background: transparent;
    top: 20%; right: 10%;
    animation-duration: 15s !important;
    animation-delay: 2s;
}
.circle-4 {
    width: 60px; height: 60px;
    background: #00B300;
    bottom: 15%; right: 20%;
    animation-duration: 10s !important;
    animation-delay: 0.5s;
}
.circle-5 {
    width: 25px; height: 25px;
    background: #fff;
    top: 45%; left: 40%;
    animation-duration: 9s !important;
    animation-delay: 3s;
}
.circle-6 {
    width: 100px; height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    bottom: 25%; left: 30%;
    animation-duration: 18s !important;
    animation-delay: 1.5s;
}
.circle-7 {
    width: 35px; height: 35px;
    background: #fff;
    top: 70%; right: 35%;
    animation-duration: 11s !important;
    animation-delay: 4s;
}
.circle-8 {
    width: 55px; height: 55px;
    border: 2px solid #00B300;
    background: transparent;
    top: 5%; left: 55%;
    animation-duration: 14s !important;
    animation-delay: 2.5s;
}

/* Circular animated lines/rings */
.topnet-bg-circles .line-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.15);
    animation: spinRing linear infinite;
}
.line-1 {
    width: 200px; height: 200px;
    top: -50px; left: -60px;
    animation-duration: 20s !important;
}
.line-2 {
    width: 300px; height: 300px;
    bottom: -80px; right: -100px;
    animation-duration: 25s !important;
    animation-direction: reverse;
}
.line-3 {
    width: 150px; height: 150px;
    top: 30%; right: 5%;
    border-color: rgba(0, 179, 0, 0.2);
    animation-duration: 18s !important;
}
.line-4 {
    width: 250px; height: 250px;
    bottom: 10%; left: 20%;
    border-style: dotted;
    border-color: rgba(255,255,255,0.1);
    animation-duration: 30s !important;
    animation-direction: reverse;
}

/* Keyframe animations */
@keyframes floatBubble {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(0.9);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-40px) translateX(20px) scale(1.05);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.12;
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Feature cards - compact size */
.ns-feature-item {
    padding: 15px 20px 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ns-feature-item-img {
    max-height: 150px;
    object-fit: cover;
}
.ns-feature-item-title {
    margin-bottom: 10px;
}
.ns-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 179, 0, 0.3);
}

/* Ensure cards content above animated bg */
.topnet-animated-bg .container,
.topnet-animated-bg .ns-feature-wrap-4 {
    position: relative;
    z-index: 1;
}

/* Service Items */
.ns-service-item-icon-4 {
    background-color: #1400CC;
    margin-left: auto;
    margin-right: auto;
}
.ns-service-item-content-4 {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ns-service-item-content-4 p {
    flex-grow: 1;
}

/* Service cards equal height */
.ns-service-area-4 .row {
    display: flex;
    flex-wrap: wrap;
}
.ns-service-area-4 .row > [class*="col-"] {
    display: flex;
}
.ns-service-item-4 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* "En savoir plus" button styling */
.ns-service-item-btn-4 {
    display: inline !important;
    width: auto !important;
    background-color: #00B300;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 17px;
    margin-top: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.ns-service-item-btn-4:hover {
    background-color: #1400CC;
    color: #fff !important;
}
.ns-service-item-btn-4 i {
    margin-left: 4px;
}
.ns-service-item-btn-4:hover i {
    transform: translateX(3px);
}
.ns-service-item-4:hover .ns-service-item-icon-4 {
    background-color: #00B300;
}
.ns-service-item-btn-4:hover {
    color: #1400CC;
}
.ns-service-item-content-icon-2 {
    background-color: #1400CC;
}
.ns-service-btn-2:hover {
    color: #1400CC;
}

/* About Area */
.ns-about-content-tab-icon {
    background-color: #00B300;
    color: #fff;
}
.ns-about-content-tab:hover .ns-about-content-tab-icon {
    background-color: #1400CC;
    color: #fff;
}
.ns-about-plus {
    color: #00B300;
}

/* Project/Reference Cards - icon banners */
.topnet-ref-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.topnet-ref-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(20, 0, 204, 0.2);
}

/* Banner with icon & effects */
.topnet-ref-banner {
    height: 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topnet-ref-banner .ref-icon {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    animation: pulseIcon 3s ease-in-out infinite;
}
.topnet-ref-banner .ref-number {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    z-index: 2;
}

/* Animated bubbles */
.ref-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}
.ref-b1 {
    width: 50px; height: 50px;
    background: #fff;
    top: -10px; left: 10%;
    animation: floatBubble 6s ease-in-out infinite;
}
.ref-b2 {
    width: 30px; height: 30px;
    background: #fff;
    bottom: 5px; right: 15%;
    animation: floatBubble 8s ease-in-out infinite 1s;
}
.ref-b3 {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    top: 30%; left: 60%;
    animation: floatBubble 5s ease-in-out infinite 0.5s;
}

/* Animated ring */
.ref-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.15);
    z-index: 1;
}
.ref-r1 {
    width: 90px; height: 90px;
    bottom: -20px; left: -20px;
    animation: spinRing 12s linear infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Card content */
.topnet-ref-content {
    padding: 18px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.topnet-ref-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.topnet-ref-content h4 a {
    color: #0a0055;
    transition: color 0.3s;
}
.topnet-ref-content h4 a:hover {
    color: #00B300;
}
.topnet-ref-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 12px;
    flex-grow: 1;
}

/* Tags */
.ref-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1400CC, #00B300);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Swiper slide equal height */
.ns-project-active-4 .swiper-slide {
    height: auto;
}

/* Project wrap - fix overflow */
.ns-project-wrap-4 {
    margin-right: 0 !important;
}

/* Project navigation buttons */
.ns-project-navigation-4 {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.ns-project-swiper-prev-4,
.ns-project-swiper-next-4 {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 0, 204, 0.3);
}
.ns-project-swiper-prev-4:hover,
.ns-project-swiper-next-4:hover {
    background: linear-gradient(135deg, #00B300 0%, #1400CC 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 179, 0, 0.4);
}

/* Custom/Tab Area */
.ns-custom-navbar .nav-link.active {
    background-color: #1400CC;
    color: #fff;
}
.ns-custom-navbar .nav-link:hover {
    background-color: #1400CC;
    color: #fff;
}
.ns-custom-content-bottom-icon {
    background-color: #1400CC;
}
.ns-custom-content-bottom-icon i {
    color: #fff;
}

/* Counter/Stats */
.ns-counter-icon {
    color: #1400CC;
}
.ns-counter-plus, .ns-counter-title span {
    color: #1400CC;
}

/* Testimonial */
.ns-testimonial-content-4 {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}
.ns-testimonial-counter-4 {
    background-color: #1400CC;
}

/* Pricing */
.ns-price-item-heading-4 {
    background-color: #1400CC;
    color: #fff;
}
.ns-price-featured .ns-price-item-heading-4,
.ns-price-featured {
    background-color: #00B300;
}
.ns-fetured {
    border-color: #00B300;
}
.ns-price-item-plan-4 span {
    color: #1400CC;
}

/* Blog */
.ns-blog-img img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}
.ns-blog-tag {
    background-color: #1400CC;
}
.ns-blog-btn:hover {
    color: #1400CC;
}
.ns-blog-content-meta .ns-blog-admin a:hover {
    color: #1400CC;
}

/* Footer - override placeholder background */
.ns-footer-area {
    background: linear-gradient(135deg, #1400CC 0%, #0a0055 60%, #00B300 100%) !important;
    background-image: none !important;
}
.ns-footer-area[data-background] {
    background-image: none !important;
}
.ns-footer-shape-1 {
    opacity: 0.06;
}
.ns-footer-shape-2 {
    opacity: 0.05;
}
.ns-footer-social a:hover {
    background-color: #00B300;
}
.ns-footer-widget-title::after {
    background-color: #00B300;
}
.ns-footer-copyright {
    border-top-color: rgba(255,255,255,0.1);
}

/* Header */
.ns-header-area-4 {
    background-color: #00B300;
}
.ns-header-logo-img-4 {
    background: transparent;
}
.ns-header-topbar-social a:hover {
    color: #00B300;
}
.ns-header-main-menu ul li:hover > a {
    color: #00B300;
}
.ns-header-main-menu .submenu li a:hover {
    color: #1400CC;
}

/* Breadcrumb - override placeholder background */
.ns-breadcrumb-area {
    background: linear-gradient(135deg, #1400CC 0%, #0a0055 50%, #00B300 100%) !important;
    background-image: none !important;
}
.ns-breadcrumb-area[data-background] {
    background-image: none !important;
}
.ns-breadcrumb-shape-1,
.ns-breadcrumb-shape-2 {
    opacity: 0.08;
}
.ns-breadcrumb-map {
    opacity: 0.06;
}

/* Newsletter */
.ns-newsletter-btn {
    background-color: #1400CC;
}
.ns-newsletter-btn:hover {
    background-color: #00B300;
}

/* Contact */
.ns-contact-btn {
    background-color: #1400CC;
}
.ns-contact-btn:hover {
    background-color: #00B300;
}
.ns-contact-item-icon {
    background-color: #1400CC;
}
.ns-contact-info {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}

/* Scrollbar & Selection */
::selection {
    background-color: #1400CC;
    color: #fff;
}

/* Links */
a:hover {
    color: #1400CC;
}

/* Management Area */
.ns-management-area {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}
.ns-management-content-icon {
    background-color: #00B300;
}
.ns-management-list-item span {
    color: #1400CC;
}
.ns-management-list-item:hover span {
    background-color: #1400CC;
    color: #fff;
}

/* CTA Area - Full width with green overlay */
.topnet-cta-fullwidth {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}
.topnet-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 179, 0, 0.75);
    z-index: 0;
}
.topnet-cta-fullwidth .container {
    position: relative;
    z-index: 1;
}
.topnet-cta-content {
    text-align: center;
    color: #fff;
}
.topnet-cta-content h3 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.topnet-cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.topnet-cta-content .ns-theme-btn {
    background-color: #1400CC;
    padding: 15px 35px;
    font-size: 17px;
}
.topnet-cta-content .ns-theme-btn:hover {
    background-color: #fff;
    color: #00B300 !important;
}

/* Recent/Process Items */
.ns-recent-item-img span {
    background-color: #1400CC;
}

/* Team */
.ns-team-social-btn-icon {
    background-color: #1400CC;
}
.ns-team-social-icon ul li a:hover {
    background-color: #00B300;
}

/* About page specific */
.ns-about-content-list li i {
    color: #00B300;
}

/* Header 3 transparent for inner pages */
.ns-header-area-3 .ns-header-main-menu ul li a {
    color: #fff;
}
.ns-header-area-3 .ns-header-main-menu ul li:hover > a {
    color: #00B300;
}

/* Play button */
.ns-play-btn {
    background-color: #00B300;
}
.ns-play-btn:hover {
    background-color: #1400CC;
}

/* Pagination */
.swiper-pagination-bullet-active {
    background-color: #1400CC !important;
}

/* Sidebar mobile */
.sidebar-info {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%);
}

/* Feature bg override */
.ns-feature-single.bg-default {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%) !important;
}

/* Search popup */
.ba-search-popup button {
    background-color: #1400CC;
}

/* References/Partners section */
.ns-references-title {
    color: #1400CC;
    font-weight: 700;
}

/* Topbar "Suivez-nous" - green */
.ns-header-topbar-4 {
    background-color: #00B300;
}

/* Additional header fix for style 4 */
.ns-header-wrap-4 {
    background-color: #00B300;
}

/* Remove uppercase/capitalize transforms */
h1, h2, h3, h4, h5, h6,
.ns-banner-content-subtitle,
.ns-section-subtitle,
.ns-section-title,
.ns-theme-btn,
.ns-contact-btn,
.ns-newsletter-btn {
    text-transform: none !important;
}

/* Logo area - white background, larger logo */
.ns-header-logo-4 {
    background-color: #fff !important;
}
.ns-header-logo-4 > img {
    display: none !important;
}
.ns-header-logo-img-4 {
    background: #fff !important;
}
.ns-header-logo-img-4 a img {
    max-height: 80px;
}
.ns-header-logo {
    background-color: #fff;
}
.ns-header-logo img {
    height: auto !important;
}
.ns-header-logo::after {
    display: none !important;
}

/* Inner page header logo - white background */
.ns-header-logo-2 {
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 6px;
    display: inline-block;
}
.ns-header-logo-2 img {
    max-height: 80px;
}

/* Partners/Logos Grid */
.topnet-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    align-items: stretch;
}
.topnet-partner-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.topnet-partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(20, 0, 204, 0.15);
}
.topnet-partner-item img {
    max-width: 100px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.topnet-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.topnet-partner-name {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-align: center;
    line-height: 1.2;
}
.topnet-partner-item:hover .topnet-partner-name {
    color: #1400CC;
}
@media (max-width: 767px) {
    .topnet-partner-item {
        width: 120px;
        padding: 15px;
    }
    .topnet-partner-item img {
        max-width: 80px;
        max-height: 55px;
    }
}

/* Error 404 page - recolor illustration */
.ns-error-img img {
    filter: hue-rotate(260deg) saturate(1.2);
}
.ns-error-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

/* Newsletter area - override placeholder background */
.ns-newsletter-wrap {
    background: linear-gradient(135deg, #1400CC 0%, #00B300 100%) !important;
}
.ns-newsletter-inner {
    background: transparent !important;
}
.ns-newsletter-shape-1,
.ns-newsletter-shape-2,
.ns-newsletter-shape-3 {
    opacity: 0.08;
}
