@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {
    --scroll-behavior: smooth;
    --primary: #FEF8BA;
    --primary-light: #FE9BB8;
    --secondary: #3888DF;
    --accent: #A40033;
    --dark: #2E2E3A;
    --light: #FFFFFF;
    --shadow: -1px 16px 18px 3px rgba(0, 0, 0, 0.26);
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 4px;
}

body {
    font-family: "Poppins", sans-serif;
    scroll-behavior: var(--scroll-behavior);
    width: 100vw;
    height: 100vh;
}

.hero-section {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
}


.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 140, 6, 0.3);
}

.section-padding {
    padding: 5rem 0;
}

.text-gradient {
    background: linear-gradient(145deg, var(--primary),var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*primary color*/
.bg-cream {
    background-color: var(--accent);
}


.bg-yellow-500 {
    background-color: var(--secondary);
}

.text-yellow-500 {
    color: var(--primary);
}

.floating {
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, 8px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

.floating-4 {
    animation-name: floating;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes floating-4 {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, 8px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

.text-darken {
    color: #013237;
}

.bg-finovies-green {
    background-color: #10B981;
}

.text-finovies-green {
    color: #10B981;
}

/* Range slider custom styles */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F48C06;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(178, 34, 34, 0.9);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F48C06;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(178, 34, 34, 0.9);
}

/* Custom styles for the button animation */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Animation pour le menu mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step {
    display: none;
}

.active {
    display: block;
}

.gradient-bg {
    background: linear-gradient(160deg, var(--dark), var(--primary));
}

.section-padding {
    padding: 5rem 0;
}

.icon-gradient {
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-badge {
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
}

.shadow {
    -webkit-box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.3);
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.3);
}

.inset {
    -webkit-box-shadow: inset 5px 5px 15px 5px rgba(0, 0, 0, 0.3);
    box-shadow: inset 5px 5px 15px 5px rgba(0, 0, 0, 0.3);
}

.form-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--lime-green);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--lime-green);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.file-upload {
    position: relative;
    overflow: hidden;
}

.file-upload input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    height: 100%;
    width: 100%;
}

.preview-image {
    max-height: 200px;
    object-fit: contain;
    display: none;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 75%;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.capture-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #B22222;
    cursor: pointer;
    z-index: 10;
}

.step {
    display: none;
}

.active {
    display: block;
}

/* Messages d'erreur et succès */
#ibanError, #routingError {
    font-weight: 500;
    /* Texte légèrement gras */
    font-size: 0.95rem;
    /* Taille lisible */
    margin-top: 5px;
    /* Petit espace au-dessus */
    margin-bottom: 5px;
    /* Petit espace en-dessous */
    transition: color 0.3s ease, opacity 0.3s ease;
    /* Transition douce */
}

/* Effet d'apparition/dissparition */
.hidden-message {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.visible-message {
    opacity: 1;
    height: auto;
}

/* Popup loader */
#popupLoader {
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
/* Texte dans popup */
#popupLoader p {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}
.loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    }
    
    .loader-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    @keyframes spin-slow {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
    
    @keyframes bounce-subtle {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-2px);
        }
    }
    
    @keyframes shimmer {
        100% {
            transform: translateX(100%);
        }
    }
    
    @keyframes progress {
        0% {
            width: 0%;
            left: 0;
        }
        50% {
            width: 100%;
            left: 0;
        }
        100% {
            width: 0%;
            left: 100%;
        }
    }
    
    .animate-spin-slow {
        animation: spin-slow 3s linear infinite;
    }
    
    .animate-bounce-subtle {
        animation: bounce-subtle 2s ease-in-out infinite;
    }
    
    .animate-shimmer {
        animation: shimmer 2s infinite;
    }
    
    .animate-progress {
        animation: progress 1.5s ease-in-out infinite;
    }
    
    .loader.fade-out {
        opacity: 0;
        visibility: hidden;
    }
    
    /* Pulse animation for circles */
    @keyframes circle-pulse {
        0%, 100% {
            opacity: 0.3;
            r: 2;
        }
        50% {
            opacity: 1;
            r: 2.5;
        }
    }
    
    .animate-pulse {
        animation: circle-pulse 1.5s ease-in-out infinite;
    }
    
    /* Responsive adjustments */
    @media (max-width: 640px) {
        .loader-container {
            transform: scale(0.9);
        }
        
        .w-24 {
            width: 5rem;
            height: 5rem;
        }
        
        .w-14 {
            width: 3.5rem;
            height: 3.5rem;
        }
    }

