/* ================================================
   NAVID ASSURANCE – Charte Graphique Officielle
   Bleu Marine (Primaire) : #1B2A6B
   Rouge       (Accent)   : #E8003D
   ================================================ */

/* --- Typographie --- */
body, p, a, li, span, input, textarea, select, button {
    font-family: 'Open Sans', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
}

/* Fix for Slick Slider Arrows */
.Modern-Slider .NextArrow,
.Modern-Slider .PrevArrow,
.Modern-Slider .NextArrow::before,
.Modern-Slider .PrevArrow::before {
    font-family: 'FontAwesome' !important;
}


/* ================================================
   PRELOADER
   ================================================ */
#preloader { background: #1B2A6B !important; }


/* ================================================
   PRE-HEADER (bande info en haut)
   ================================================ */
.sub-header { background-color: #1B2A6B !important; overflow: hidden; white-space: nowrap; }
.sub-header ul.left-info li { padding: 0 12px !important; }
.sub-header ul.left-info li a { font-size: 13px !important; }


/* ================================================
   NAVIGATION
   ================================================ */
/* Logo couleur (scroll) */
.background-header .navbar-brand h2 { color: #1B2A6B !important; }

/* Liens actifs et au survol – bureau */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .active > .nav-link,
.navbar .navbar-nav .nav-link.show,
.navbar .navbar-nav .show > .nav-link {
    color: #E8003D !important;
    border-bottom: 3px solid #E8003D !important;
}
.background-header .navbar-nav .nav-link:hover,
.background-header .navbar-nav .active > .nav-link,
.background-header .navbar-nav .nav-link.show,
.background-header .navbar-nav .show > .nav-link {
    color: #E8003D !important;
    border-bottom: none !important;
}

/* Liens actifs et au survol – mobile */
@media (max-width: 992px) {
    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .active > .nav-link,
    .navbar .navbar-nav .nav-link.show,
    .navbar .navbar-nav .show > .nav-link {
        color: #E8003D !important;
        border-bottom: none !important;
    }
}

/* ================================================
   MENU MOBILE (Off-Canvas)
   ================================================ */
/* Custom Hamburger Button */
.navid-menu-toggler {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 30px;
    width: 35px;
    padding: 0;
    z-index: 105000 !important; /* Above menu overlay */
    position: relative;
    outline: none !important;
    margin-left: auto; /* Push it to the right */
    margin-right: 15px; /* Prevent touching the edge */
}
.navid-menu-toggler span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1B2A6B; /* Marine */
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.background-header .navid-menu-toggler span {
    background: #1B2A6B;
}

/* Toggler animation to 'X' */
.navid-menu-toggler.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: #E8003D; /* Rouge accent upon opening */
}
.navid-menu-toggler.active span:nth-child(2) {
    opacity: 0;
}
.navid-menu-toggler.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background: #E8003D;
}

/* Prevent body scroll when menu is active */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Menu Layout */
@media (max-width: 991px) {
    /* Base Container Overlay - increase specificity */
    #navidMobileMenu.navid-mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: auto !important; /* Override template's left: 0 */
        right: -120%; /* Hidden to the right */
        width: 100% !important; /* Full screen */
        height: 100vh !important;
        background-color: rgba(27, 42, 107, 0.98) !important; /* Deep marine */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 104000 !important; /* Override template 99999 */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 100px !important; 
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto !important;
        opacity: 0;
        visibility: hidden;
        box-shadow: none !important;
    }
    
    /* When active */
    #navidMobileMenu.navid-mobile-menu.menu-active {
        right: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* List styling inside mobile menu */
    #navidMobileMenu.navid-mobile-menu .navbar-nav {
        width: 100%;
        text-align: center;
        padding: 0 40px 40px;
        margin: auto;
        border: none !important;
    }

    /* Menu Link styling */
    #navidMobileMenu.navid-mobile-menu .nav-item {
        margin: 10px 0;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s ease;
        border-bottom: none !important; /* Override template */
    }

    /* Staggered link animation */
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item {
        transform: translateY(0);
        opacity: 1;
    }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(1) { transition-delay: 0.15s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(2) { transition-delay: 0.25s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(3) { transition-delay: 0.35s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(4) { transition-delay: 0.45s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(5) { transition-delay: 0.55s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(6) { transition-delay: 0.65s; }
    #navidMobileMenu.navid-mobile-menu.menu-active .nav-item:nth-child(7) { transition-delay: 0.75s; }

    #navidMobileMenu.navid-mobile-menu .nav-link {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: capitalize !important;
        letter-spacing: 0.5px !important;
        padding: 12px 0 !important;
        display: inline-block;
        position: relative;
    }
    #navidMobileMenu.navid-mobile-menu .nav-link::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #E8003D;
        transition: width 0.3s ease;
    }
    #navidMobileMenu.navid-mobile-menu .nav-item.active > .nav-link::after,
    #navidMobileMenu.navid-mobile-menu .nav-link:hover::after {
        width: 50%;
    }
    #navidMobileMenu.navid-mobile-menu .nav-item.active > .nav-link,
    #navidMobileMenu.navid-mobile-menu .nav-link:hover {
        color: #ffffff !important;
    }

    /* Dropdown inside Mobile Menu */
    #navidMobileMenu.navid-mobile-menu .dropdown-menu {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        padding: 15px 0;
        display: none; /* Handled by slideToggle via JS */
        margin-top: 10px;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    }
    #navidMobileMenu.navid-mobile-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 17px;
        font-weight: 600;
        padding: 10px 0;
        transition: all 0.3s ease;
    }
    #navidMobileMenu.navid-mobile-menu .dropdown-item:hover {
        color: #E8003D !important;
        transform: scale(1.05);
        background: transparent !important;
    }
    /* Dropdown caret animation */
    #navidMobileMenu.navid-mobile-menu .dropdown-toggle::after {
        transition: transform 0.3s ease;
        vertical-align: middle;
        margin-left: 8px;
        border-top: 5px solid;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
    }
    #navidMobileMenu.navid-mobile-menu .dropdown.navid-show .dropdown-toggle::after {
        transform: rotate(180deg);
        color: #E8003D;
    }
    
    /* Clean up default button styling inside the menu */
    #navidMobileMenu.navid-mobile-menu .filled-button {
        display: inline-block;
        margin-top: 25px;
        margin-left: 0 !important;
        border-color: #E8003D !important;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 1px;
        padding: 12px 35px;
        border-radius: 30px;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(232, 0, 61, 0.3);
        transition: all 0.3s ease;
    }
    #navidMobileMenu.navid-mobile-menu .filled-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(232, 0, 61, 0.4);
    }
}


/* ================================================
   BOUTONS GLOBAUX
   ================================================ */
a.filled-button,
button.filled-button,
button[type="submit"].filled-button {
    background-color: #E8003D !important;
    color: #fff !important;
    border: 2px solid #E8003D !important;
}
a.filled-button:hover,
button.filled-button:hover {
    background-color: #fff !important;
    color: #E8003D !important;
}

a.border-button,
button.border-button,
button[type="submit"].border-button {
    background-color: #E8003D !important;
    color: #fff !important;
    border: 2px solid #E8003D !important;
}
a.border-button:hover,
button.border-button:hover {
    background-color: #fff !important;
    color: #E8003D !important;
}

/* Bouton dans formulaire de rappel (fond coloré) */
.callback-form .contact-form button.border-button {
    background-color: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}
.callback-form .contact-form button.border-button:hover {
    background-color: #fff !important;
    color: #E8003D !important;
}

/* Bouton dans formulaire Contact Us */
.contact-us .contact-form button.filled-button {
    background-color: #E8003D !important;
    color: #fff !important;
    border: none !important;
}
.contact-us .contact-form button.filled-button:hover {
    background-color: #1B2A6B !important;
    color: #fff !important;
}


/* ================================================
   BANNIÈRE PRINCIPALE (Slider)
   ================================================ */
.Modern-Slider .item h6 { color: #E8003D !important; }


/* ================================================
   SECTION REQUEST-FORM (bande verte d'appel à l'action)
   ================================================ */
.request-form { background-color: #1B2A6B !important; }


/* ================================================
   TITRES DE SECTIONS
   ================================================ */
.section-heading em { color: #E8003D !important; font-style: normal; }
.section-heading h2 { color: #1B2A6B !important; }


/* ================================================
   FUN FACTS & COMPTEURS
   ================================================ */
.fun-facts em    { color: #E8003D !important; font-style: normal; }
.count-digit     { color: #E8003D !important; }


/* ================================================
   SECTION MORE-INFO (Présentation / Mot du DG)
   ================================================ */
.more-info .right-content em { color: #E8003D !important; font-style: normal; }
.more-info .right-content h2 { color: #1B2A6B !important; }


/* ================================================
   TÉMOIGNAGES
   ================================================ */
.testimonial-item span { color: #E8003D !important; }


/* ================================================
   FORMULAIRE DE RAPPEL (callback-form fond coloré)
   ================================================ */
.callback-form .contact-form { background-color: #1B2A6B !important; }


/* ================================================
   ONGLETS DE SERVICES (Tabs – #tabs)
   ================================================ */
#tabs ul li a {
    background-color: #1B2A6B !important;
    color: #fff !important;
    transition: background-color 0.3s;
}
#tabs ul li a:hover {
    background-color: #E8003D !important;
    color: #fff !important;
}
#tabs ul .ui-tabs-active a {
    background-color: #E8003D !important;
    color: #fff !important;
}


/* ================================================
   ÉQUIPE (Team)
   ================================================ */
.team-item .down-content span { color: #E8003D !important; }


/* ================================================
   PAGE CONTACT – Icônes et liens
   ================================================ */
.contact-information .contact-item i {
    color: #E8003D !important;
}
.contact-information .contact-item a {
    color: #E8003D !important;
    font-weight: 600;
}
.contact-information .contact-item a:hover {
    color: #1B2A6B !important;
}


/* ================================================
   FOOTER
   ================================================ */
footer { background-color: #1B2A6B !important; }
.sub-footer { background-color: #0f1e4d !important; }

/* Icônes sociales – hover */
footer ul.social-icons li a:hover {
    background-color: #E8003D !important;
    color: #fff !important;
}

/* Liens menu footer – hover */
footer ul.menu-list li a:hover { color: #E8003D !important; }

/* Champs de saisie footer (fond sombre adapté au bleu marine) */
footer .contact-form input,
footer .contact-form textarea {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
footer .contact-form input:focus,
footer .contact-form textarea:focus {
    background-color: rgba(255,255,255,0.15) !important;
}

/* Bouton Envoyer du footer */
footer .contact-form button.filled-button {
    background-color: #E8003D !important;
    color: #fff !important;
    border: none !important;
}
footer .contact-form button.filled-button:hover {
    background-color: #fff !important;
    color: #E8003D !important;
}


/* ================================================
   BOUTON WHATSAPP FLOTTANT
   ================================================ */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    line-height: 58px;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.whatsapp-float:hover {
    background-color: #1ebe57 !important;
    transform: scale(1.1);
}

/* Bulle de message WhatsApp "Éphémère" */
.wa-msg-bubble {
    position: fixed;
    right: 105px;
    bottom: 43px;
    background: #fff;
    color: #1B2A6B;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9998;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    animation: wa-bubble-ephemeral 10s ease-in-out forwards;
}

.wa-msg-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@keyframes wa-bubble-ephemeral {
    0% { opacity: 0; visibility: visible; transform: translateX(20px); }
    10% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; visibility: hidden; transform: translateX(20px); }
}

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    max-width: 650px;
    margin: 0 auto;
    background: rgba(27, 42, 107, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 100000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    margin-bottom: 0;
    line-height: 20px;
}

.cookie-content a {
    color: #E8003D;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-banner .filled-button {
    padding: 8px 25px !important;
    font-size: 13px !important;
    border-radius: 25px !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        bottom: -250px;
        left: 15px;
        right: 15px;
    }
    .cookie-banner.show {
        bottom: 20px;
    }
}
