/* ============================================================
   FINACIS Custom Overrides
   Adapts the Finclix template to FINACIS branding.
   Loaded AFTER style.css so these take priority.
   ============================================================ */

:root {
    --theme-color1: #C8F169;
    --theme-color7: #039397;
    --headings-color: #0B3130;
    --bg-theme-color1: #C8F169;
    --bg-theme-color2: #144443;
}

/* ── Zoom global à 90% ───────────────────────────────────── */
html {
    font-size: 14px;
}

/* ── Annule le text-transform: capitalize du template ────── */
* {
    text-transform: none !important;
}
/* Rétablit les cas légitimes */
.fvl-content span,
.lang-btn,
.lang-switcher a {
    text-transform: uppercase !important;
}

/* ── FAQ accordion styling ───────────────────────────────── */
.faq-accordion .accordion-item {
    background: #fff;
    border: none;
    border-radius: 12px !important;
    margin-bottom: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: #fff;
    color: #0B3130;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border-radius: 12px !important;
    padding: 20px 25px;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #0B3130;
    color: #C8F169;
    box-shadow: none;
    border-radius: 12px 12px 0 0 !important;
}

.faq-accordion .accordion-button::after {
    filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(10);
}

.faq-accordion .accordion-body {
    padding: 20px 25px;
    color: #646464;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Scroll to top button ────────────────────────────────── */
.scroll-top {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--theme-color1, #C8F169);
    color: #0B3130;
    border: none;
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(200, 241, 105, 0.4);
    transition: all 0.3s;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 241, 105, 0.5);
}

/* ── Language switcher ───────────────────────────────────── */
.lang-btn {
    transition: all 0.2s;
}

.lang-btn:hover {
    opacity: 0.85;
}

/* ── Simulator card (homepage) ───────────────────────────── */
.simulator-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* noUiSlider track colour override for Finclix theme */
.noUi-connect {
    background: #C8F169 !important;
}

.noUi-handle {
    border-color: #C8F169 !important;
}

.noUi-handle::before,
.noUi-handle::after {
    background: #0B3130 !important;
}

/* ── Service cards — titres en blanc ────────────────────── */
.feature-service-card-items .content h3,
.feature-service-card-items .content h3 a {
    color: #fff !important;
}

/* ── Feature service card ────────────────────────────────── */
.feature-service-card-items {
    padding: 28px 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-service-card-items .icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
    font-size: 0 !important; /* cache tout contenu parasite */
}

.feature-service-card-items .icon i,
.feature-service-card-items .icon::before {
    font-size: 22px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.feature-service-card-items .content h3 {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
}

.feature-service-card-items .content p {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
}

.feature-service-card-items .text-btn {
    font-size: 0.82rem !important;
}

.feature-service-card-items:hover {
    transform: translateY(-6px);
}

/* ── Empêche le scroll horizontal global ────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
.page-wrapper {
    overflow-x: hidden;
}

/* ── Hero section ────────────────────────────────────────── */
.hero-3 {
    min-height: 600px;
}

/* ── Section padding consistency ────────────────────────── */
.section-padding {
    padding: 80px 0;
}

/* ── Footer text colour override ─────────────────────────── */
.footer-section-2 .footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* ── Testimonials — taille de police réduite ─────────────── */
.testimonial-wrapper-3 .content-box-style-3 .text {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

.testimonial-wrapper-3 .content-box-style-3 .title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-top: 12px;
}

/* ── Chat widget — position fixe stable (évite le stacking context du sticky header) */
.chat-toggle-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    transform: none !important;
    will-change: auto !important;
}
.chat-toggle-btn:hover {
    transform: translateY(-2px) !important;
}
.chat-panel {
    position: fixed !important;
    bottom: 86px !important;
    right: 20px !important;
}

/* ── Drapeaux langues — forcer la police emoji du système ─── */
.lang-btn,
.lang-switcher a {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

/* ── Logo sizing ─────────────────────────────────────────── */
#header-logo,
.logo img,
.sticky-header .logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── Mobile header : masquer nav+outer-box avant 1199px ─────── */
@media (max-width: 1199px) {
    .main-header .main-menu,
    .main-header .outer-box {
        display: none !important;
    }
}

/* ── Mobile header : logo à gauche, burger à droite ─────────── */
@media (max-width: 1199px) {
    .main-header .main-box {
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .main-header .main-box .nav-outer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex: 1 !important;
    }
    .main-header .logo-box {
        flex-shrink: 0;
    }
    #header-logo,
    .main-header .logo img {
        height: 40px !important;
        width: auto !important;
        max-width: none !important;
    }
    /* Burger visible à droite */
    .main-header .mobile-nav-toggler {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 24px !important;
        line-height: 1 !important;
        color: #0B3130 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        order: 99 !important;
        position: static !important;
        top: auto !important;
        z-index: 10 !important;
    }
    .main-header .mobile-nav-toggler i,
    .main-header .mobile-nav-toggler .icon {
        font-size: inherit !important;
        line-height: 1 !important;
        pointer-events: none;
    }
    /* Pages internes : header sombre → burger blanc */
    .inner-page .main-header .mobile-nav-toggler {
        color: #fff !important;
    }
}
/* ── Contrecarrer responsive.css width:auto sur nav-outer ────── */
@media only screen and (max-width: 1023px) {
    .main-header .main-box .nav-outer {
        width: 100% !important;
    }
    .main-header .main-box {
        padding: 12px 16px !important;
    }
}

.mobile-menu .nav-logo img {
    height: 44px;
    width: auto;
}
.footer-logo img {
    height: 48px;
    width: auto;
}

/* ── Mobile menu visible state ───────────────────────────── */
.mobile-menu.mobile-menu-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu.mobile-menu-visible .menu-box {
    left: 0;
}

/* ── Header pages internes (mentions légales, confidentialité…) ── */
/* Sur ces pages il n'y a pas de hero, le header position:absolute
   doit avoir un fond opaque dès le chargement */
.inner-page .main-header.header-style-one.header-3 {
    position: relative;
    background-color: #0B3130;
}
.inner-page .main-header .main-box .main-menu .navigation > li > a,
.inner-page .main-header .header-contact,
.inner-page .main-header .lang-switcher a,
.inner-page .main-header .mobile-nav-toggler {
    color: #fff !important;
}
.inner-page .main-header .logo img.black-logo {
    display: none;
}
.inner-page .main-header .logo img.white-logo,
.inner-page .main-header .logo img:not(.black-logo) {
    display: block;
}

/* ── Loan form section: left column value list ───────────── */
.contact-wrapper-3 {
    padding: 40px 50px !important;
}
@media (max-width: 991px) {
    .contact-wrapper-3 {
        padding: 28px 16px !important;
    }
    .contact-box-style-3 {
        padding: 24px 16px !important;
    }
}
@media (max-width: 575px) {
    .contact-wrapper-3 {
        padding: 20px 10px !important;
    }
    .contact-box-style-3 {
        padding: 20px 12px !important;
    }
}
.contact-content-style-3 {
    padding-right: 30px !important;
}
ul.finacis-value-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
ul.finacis-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
ul.finacis-value-list li:last-child {
    border-bottom: none;
}
ul.finacis-value-list .fvl-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0fce0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B3130;
    font-size: 18px;
}
ul.finacis-value-list .fvl-content {
    flex: 1;
}
ul.finacis-value-list .fvl-content span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
}
ul.finacis-value-list .fvl-content p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #0B3130;
    font-weight: 500;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — corrections générales
   ══════════════════════════════════════════════════════════ */

/* ── Hero : supprime marges qui causent le scroll horizontal ── */
@media (max-width: 1199px) {
    .hero-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 120px 20px 0 !important;
    }
    .hero-3 > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hero-3 > .row > [class*="col-"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 991px) {

    /* ── Formulaire demande : pleine largeur ── */
    .col-xl-5.col-lg-5,
    .col-xl-6.col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .contact-content-style-3 {
        padding-right: 0 !important;
        margin-bottom: 24px;
    }

    /* ── Sections padding réduit ── */
    .section-padding {
        padding: 60px 0 !important;
    }

    /* ── Auto-container pleine largeur ── */
    .auto-container {
        padding: 0 16px !important;
    }

    /* ── Simulateur : colonnes en pleine largeur ── */
    .simulator-inner,
    .simulator-result {
        width: 100% !important;
        max-width: 100% !important;
    }
    .simulator-wrap {
        flex-direction: column !important;
    }

    /* ── Section title ── */
    .sec-title h2 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 575px) {

    /* ── Formulaire : champs full width ── */
    .col-sm-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* ── Hero compact ── */
    .hero-3 {
        padding: 100px 16px 0 !important;
    }
    .hero-3 .hero-content h1 {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
    }
    .hero-3 .hero-button {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-3 .hero-button .theme-btn {
        margin-left: 0 !important;
        text-align: center !important;
    }

    /* ── Page title section ── */
    .page-title {
        padding: 80px 16px 40px !important;
    }

    /* ── Chat widget dans l'écran ── */
    #chat-widget-wrapper {
        right: 12px !important;
        bottom: 12px !important;
    }
    #chat-panel {
        width: calc(100vw - 24px) !important;
        max-width: 360px !important;
        right: 0 !important;
    }
}
