/* ===================================
    Crafto - Finance
====================================== */
/* font */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* variable */
:root {
    --base-color: #673DE6;
    --stromboli-green: #3E6558;
    --alt-font: "Plus Jakarta Sans", sans-serif;
    --primary-font: "Plus Jakarta Sans", sans-serif;
    --medium-gray: #828282;
    --primary: #673DE6;
    --text: #333;
    --muted: #555;
    --radius: 12px;
}

/* reset */
body {
    font-size: 16px;
    line-height: 32px;
    overflow-x: hidden;
}

/* Country selector and phone input styling */
.phone-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #828282;
}

.phone-input-group .dropdown {
    position: relative;
}

.phone-input-group .country-code-btn {
    background-color: transparent;
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 0 10px 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
    min-width: 65px;
    justify-content: space-between;
    font-size: 16px;
}

.phone-input-group .country-code-btn:hover {
    background-color: transparent;
}

.phone-input-group .country-code-btn:focus {
    box-shadow: none;
    background-color: transparent;
}

.phone-input-group .country-code-btn::after {
    margin-left: 5px;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}


.phone-input-group .form-control {
    border: none;
    padding-left: 15px;
    padding-right: 45px;
    padding-bottom: 8px;
    flex: 1;
    border-radius: 0;
    background-color: transparent;
}

.phone-input-group:hover {
    border-bottom-color: #673DE6;
}

.phone-input-group:focus-within {
    border-bottom-color: #673DE6;
}

.phone-input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    min-width: 220px;
    max-width: 280px;
    border: 1px solid #ced4da;
    background-color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-top: 2px;
    border-radius: 4px;
}

.country-dropdown .dropdown-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.country-dropdown .country-name {
    flex: 1;
    font-size: 13px;
}

.country-dropdown .country-code {
    color: #6c757d;
    font-weight: 500;
    font-size: 12px;
    margin-left: auto;
}

/* Form validation styles */
.form-control.is-invalid {
    border-bottom-color: #dc3545 !important;
}

.phone-input-group.has-invalid-input {
    border-bottom-color: #dc3545 !important;
}

.is-invalid~.form-icon i {
    color: #dc3545 !important;
}

/* Position de l'icône téléphone */
.phone-input-group .form-icon {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    pointer-events: none;
}

/* heading */
h1 {
    font-size: 4rem;
    line-height: 3.6rem;
}

h2 {
    line-height: 3.438rem;
}

h3 {
    line-height: 2.813rem;
}

p {
    margin-bottom: 20px;
}

/* bg gradient color */
.bg-gradient-black-dark-brown {
    background-image: linear-gradient(to right top, #000000, #000000, #30281B, #493825, #DA7310);
}

.bg-gradient-green-light-brown {
    background-image: linear-gradient(to right top, #3C7663, #5B8365, #929A68, #B8AA6A, #DEBB6D);
}

.bg-gradient-light-brown-transparent {
    background-image: linear-gradient(to right top, rgba(45, 41, 37, .6), rgba(188, 137, 71, .9));
}

/* text gradient color */
.text-gradient-green-brown-color {
    background-image: linear-gradient(to right top, #3C7663, #5B8365, #929A68, #B8AA6A, #DEBB6D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* header */
.navbar .navbar-nav .nav-link {
    font-weight: 400;
    font-size: 19px;
    letter-spacing: .5px;
}

.navbar .btn {
    font-size: 15px;
    padding: 8px 20px;
}

header .navbar-brand img {
    max-height: 40px;
}

.navbar .navbar-nav .dropdown .dropdown-menu a {
    font-size: 14px;
    line-height: 32px;
    color: var(--darck-gray);
}

.navbar .navbar-nav .simple-dropdown .dropdown-menu {
    border-radius: 5px;
}

/* subcribe style 02 */
.newsletter-style-02 .btn {
    padding: 10px 18px 9px 18px;
}

.newsletter-style-02 input {
    padding-right: 60px;
    font-size: 16px;
}

.input-small,
.textarea-small {
    font-size: 16px;
}

/* page title */
.page-title-extra-large h1 {
    font-size: 4.3rem;
    line-height: 4.7rem;
}

/* media query responsive */
@media (max-width: 1199px) {
    header .btn.btn-very-small {
        padding: 7px 11px;
    }

    .newsletter-style-02 input {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 15px;
    }
}

@media (max-width: 991px) {
    .md-outside-box-right-70 {
        margin-right: -70vw;
    }

    [data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-nav .nav-item .nav-link {
        font-size: 19px;
    }

    [data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-nav .nav-item .dropdown-menu a {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .blog-classic .card .card-body p {
        margin-bottom: 15px;
    }

    .page-title-extra-large h1 {
        line-height: 44px;
    }

    .sm-outside-box-right-0 {
        margin-right: 0;
    }
}

.dropdown-toggle:empty::after {
    display: none !important;
}

@media (max-width: 991px) {
    .blog-side-image .blog-box .blog-image {
        min-height: 500px;
    }
}

.blog-side-image .blog-box:hover .blog-image {
    -webkit-transform: none !important;
    transform: none !important;
}

/* Fix pour les onglets - permettre les animations */
.tab-content>.tab-pane:not(.active) {
    display: none;
}

.tab-content>.tab-pane.active {
    display: block;
}

/* Réactiver les animations pour les onglets actifs */
.tab-pane.active [data-anime] {
    animation-play-state: running !important;
}

/* Assurer que les animations se déclenchent lors du changement d'onglet */
.tab-pane.show [data-anime] {
    opacity: 1;
    visibility: visible;
}

/* Animation d'entrée pour les nouveaux onglets */
.tab-pane.fade.show {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade:not(.show) {
    opacity: 0;
}

/* Chatbot styles */
.chatbot-container {
    position: fixed;
    bottom: 0px;
    right: 2px;
    z-index: 9999;
    pointer-events: none;
}

.chatbot-container_button {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 15px 15px 15px 15px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #6F2FFD 0%, #8B5CF6 100%);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(85, 23, 221, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease-out;
    pointer-events: all;
}

.chatbot-container.active .chatbot-container_button {
    transform: rotate(calc(45deg * 3));
    transition: transform 0.3s ease;
}


.chatbot-container_button svg {
    position: absolute;
    transition: transform cubic-bezier(0.39, 0.575, 0.565, 1) .4s, opacity cubic-bezier(0.39, 0.575, 0.565, 1) .4s;
}

.chatbot-container_button .chatbot-icon-bg {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background-color: transparent;
    position: relative;
    z-index: 2;
    transition: transform cubic-bezier(0.39, 0.575, 0.565, 1) .4s;
}

.chatbot-container_button {
    position: relative;
    border: none;
    outline: none;
    background-color: transparent;
}

.chatbot-container_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(70, 19, 180, 0.4);
}

.chatbot-container_button svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.chatbot-container_button #chatbot-icon-opened {
    opacity: 0;
}

.chatbot-container_button #chatbot-icon-closed {
    opacity: 1;
}

.chatbot-container_button.active #chatbot-icon-opened {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.chatbot-container_button.active #chatbot-icon-closed {
    opacity: 0;
}

.chatbot-container_iframe {
    position: absolute;
    bottom: 120px;
    right: 0;
    width: 299px;
    height: 90vh;
    max-height: 550px;
    position: absolute;
    bottom: 95px;
    right: 55px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.chatbot-container_iframe.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-container_iframe iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

#pulse_animation {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
}

.chatbot-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px 15px 15px 15px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease-out;
}

.chatbot-container_button:hover .chatbot-icon-bg {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 10px;
        right: 15px;
    }

    .chatbot-container_iframe {
        width: 300px;
        height: 500px;
        bottom: 80px;
        right: -25px;
    }

    .chatbot-container_button {
        width: 55px;
        height: 55px;
    }
}

.cookie-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: transform .25s ease;
}

.cookie-btn:hover {
    transform: scale(1.1);
}

.cookie-popup {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 400px;
    height: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.cp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cookie-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cp-body {
    flex: 1;
    /* display: flex; */
    gap: 14px;
    padding: 14px;
    overflow-y: auto;
}

.cp-body-col {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
}

.cp-footer {
    display: flex;
    padding: 0 14px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.btn-cookie,
.btn-footer {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.btn-cookie.primary,
.btn-footer.primary {
    background: transparent;
    color: var(--base-color);
    border: 0;
    border-left: 1px solid #eee !important;
}

.btn-cookie.outline,
.btn-footer.outline {
    background: transparent;
    border: 0;
    color: var(--text);
}

.w-16{
    width: 16px !important;
    height: 16px !important;
}

.cp-text h3,
.cp-body-col h3 {
    margin: 0 0 8px;
}
.cp-text-h3{
    font-size: 16px;
    line-height: normal;
}
.cp-text p,
.cp-body-col p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.cp-illu img {
    width: 80px;
}

.setting-item,
.setting-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    gap: 10px;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: normal !important;
}

.setting-info p {
    font-size: 11px;
    color: #555;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

.switch input:checked+.slider {
    background: #00b894;
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

@media(max-width:480px) {
    .cookie-popup {
        width: 90%;
        left: 5%;
        bottom: 80px;
        height: 350px;
    }
}
.cp-body-col h3 {
    font-size: 16px;       /* plus lisible */
    line-height: 1.3;
    margin-bottom: 10px;
}
.cp-body-col p {
    font-size: 12px;       /* un peu plus grand */
    color: #333;
    line-height: 1.5;
}

/* Images dans les cartes cookies */
.setting-card .favicon {
    width: 40px;            /* taille fixe raisonnable */
    height: 40px;
}

/* Ajuster l'espacement et alignement */
.setting-card {
    gap: 12px;
    padding: 12px;
}
.cp-body-col {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Responsive */
@media(max-width:480px){
    .cp-body-col h3 { font-size: 16px; }
    .cp-body-col p { font-size: 14px; }
    .setting-card .favicon { width: 32px; height: 32px; }
}
.hidden-box {
    display: none;
}
.select:after{
    top: 70% !important;
}
/* @media (min-width: 768px) and (max-width: 1399px) {
    #animation-container_iframe, #lottie {
        background-color: transparent;
        width: 100%;
        height: 100%;
        display: block;
        overflow: hidden;
        transform: translate3d(-12%, -17%, 0);
        text-align: center;
        opacity: 1;
        position: absolute;
        right: 0px;
        top: 0px;
        width: 60vw;
        height: 60vw;
    }
}
@media (min-width: 930px) {
    #animation-container_iframe, #lottie {
        background-color: transparent;
        width: 100%;
        height: 100%;
        display: block;
        overflow: hidden;
        /* transform: translate3d(35%, 13%, 0); */
        /* text-align: center;
        opacity: 1; */
        /* position: absolute; */
        /* right: 0px;
        top: 0px;
        width: 70vw;
        height: 70vw;
    }
} */
/* #animation-container_iframe, #lottie {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden; */
    /* transform: translate3d(35%, -13%, 0); */
    /* text-align: center;
    opacity: 1; */
    /* position: absolute; */
    /* right: 0px;
    top: 0px;
    width: 70vw;
    height: 70vw;
} */ 
 .animation-iframe {
    width: 100%;
    height: 600px; /* ajuste ici */
    background: transparent;
    border: none;
}
@media (min-width: 1200px) {
    .animation-iframe {
        height: 750px;
    }
}

