/* Variables */
:root {
    --primary: #4e6bff;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --transition: all 0.3s ease;
}

/* General Styles */
html, body {
    overflow-x: hidden !important;
    width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    padding-top: 116px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.opacity-70 {
    opacity: 0.7;
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(78, 107, 255, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
    background: var(--dark);
}

.social-links-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links-top a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    background: linear-gradient(to right, #2b3990, #4e6bff) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: -3px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

/* Header Animation on Scroll */
.header-scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section avec bulles animées */
.hero {
    background: linear-gradient(135deg, #2b3990, #4e6bff);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.9), rgba(78, 107, 255, 0.9));
    opacity: 0.9;
}

/* Animations des bulles hero améliorées */
.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.8;
    overflow-x: hidden !important;
    max-width: 100vw;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    animation: bubble-float infinite linear; /* Animation infinie */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 15%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.bubble.small {
    width: 20px;
    height: 20px;
    animation-duration: 15s;
    opacity: 0.7;
}

.bubble.medium {
    width: 40px;
    height: 40px;
    animation-duration: 25s;
    opacity: 0.5;
}

.bubble.large {
    width: 80px;
    height: 80px;
    animation-duration: 35s;
    opacity: 0.3;
}

@keyframes bubble-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) translateX(calc(var(--x-movement, 0vw))) scale(1);
        opacity: 0;
    }
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Fond blanc */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(78, 107, 255, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -150px;
    right: -50px;
    z-index: 1;
}

.pulse-btn {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 107, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 107, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 107, 255, 0);
    }
}

/* Stats Section */
.stats-container {
    position: relative;
    z-index: 1;
}

.stats-item {
    padding: 30px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stats-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light); /* Changement de couleur */
    color: white; /* Couleur du texte */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background-color 0.3s ease;
    box-shadow: 0 10px 25px rgba(78, 107, 255, 0.2);
    transform: translateZ(20px);
}

.stats-item:hover .stats-icon {
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 15px 35px rgba(78, 107, 255, 0.4);
    background-color: var(--success); /* Couleur au survol */
    color: white !important;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stats-item:hover .counter {
    animation: pulse-number 0.5s ease-out;
}

@keyframes pulse-number {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Section Styles */
.section-header {
    position: relative;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Services Cards */
.service-card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 107, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background-color 0.3s ease;
    box-shadow: 0 10px 25px rgba(78, 107, 255, 0.2);
    transform: translateZ(20px);
}

.service-card:hover .service-icon {
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 15px 35px rgba(78, 107, 255, 0.4);
    background-color: var(--primary);
    color: white !important;
}

.service-card:hover .service-icon i {
    color: white !important;
}

/* How We Work Section */
.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding: 50px 0;
}

.process-column {
    width: 48%;
    position: relative;
}

.process-step {
    display: flex;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-step:hover {
    transform: translateZ(20px);
}

.process-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(78, 107, 255, 0.3),
                0 0 0 8px rgba(78, 107, 255, 0.1);
    transition: all 0.3s ease;
}

.process-step:hover .process-circle {
    transform: scale(1.1) translateZ(30px);
    box-shadow: 0 15px 30px rgba(78, 107, 255, 0.4),
                0 0 0 12px rgba(78, 107, 255, 0.15);
}

.process-content {
    margin-left: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
    transform-style: preserve-3d;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.process-step:hover .process-content {
    transform: translateZ(40px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.process-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.process-step.right {
    flex-direction: row-reverse;
    text-align: right;
}

.process-step.right .process-content {
    margin-right: 20px;
    margin-left: 0;
}

.process-central-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--primary) 80%, rgba(78, 107, 255, 0.3));
    transform: translateX(-50%);
    z-index: 1;
}

.process-connector {
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--primary);
    top: 30px;
    z-index: 1;
}

.process-connector.left {
    right: calc(50% + 2px);
}

.process-connector.right {
    left: calc(50% + 2px);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.product-badge.bg-success {
    background: var(--success) !important;
}

.product-rating {
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    display: none;
}

.testimonial-item:first-child {
    display: block;
}

.testimonial-content {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-right: 15px;
    box-shadow: 0 10px 20px rgba(78, 107, 255, 0.3);
    transform: translateZ(20px);
}

.testimonial-author h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    margin: 20px 0;
}

.category-pill {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    background: #f1f1f1;
    color: var(--dark);
    transition: var(--transition);
    font-size: 0.9rem;
}

.category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: white;
}

/* Blog Featured Post */
.blog-featured-post {
    position: relative;
    margin-bottom: 40px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warning);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Sidebar */
.blog-sidebar .card {
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-categories li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-categories li:last-child {
    border: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-categories a span {
    display: inline-block;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.sidebar-categories a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Recent Posts */
.recent-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    transition: var(--transition);
    display: block;
}

.recent-post-title:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #2b3990, #4e6bff);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(43, 57, 144, 0.85), rgba(78, 107, 255, 0.85));
    z-index: -1;
}

/* About Section */
.about-img {
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    transition: all 0.5s ease;
    border: 5px solid #fff;
}

.about-img:hover {
    transform: perspective(1000px) rotateX(0) rotateY(0);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.exp-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.exp-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 107, 255, 0.1);
    font-size: 1.2rem;
}

.form-floating > label {
    padding-left: 20px;
}

.form-floating > .form-control {
    padding-left: 20px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(to right, #2b3990, #4e6bff);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(43, 57, 144, 0.85), rgba(78, 107, 255, 0.85));
    z-index: -1;
}

/* Footer */
footer {
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2b3990, #4e6bff);
}

.footer-heading {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.contact-list li {
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3452d9;
    color: white;
    transform: translateY(-5px);
}

/* Pagination */
.pagination .page-item .page-link {
    color: var(--dark);
    border: none;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: white;
}

.pagination .page-item .page-link:hover {
    background-color: #f1f1f1;
    color: var(--primary);
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--primary);
    color: white;
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot Styles (Amélioré avec effets 3D) */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4e6bff, #2b3990);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(78, 107, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.chatbot-icon:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(78, 107, 255, 0.8);
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

.chatbot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9) rotateX(10deg);
    transform-origin: bottom right;
    perspective: 1000px;
}

.chatbot-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1) rotateX(0);
}

.chatbot-header {
    background: linear-gradient(135deg, #4e6bff, #2b3990);
    padding: 20px;
    display: flex;
    align-items: center;
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateZ(20px);
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chatbot-avatar:hover img {
    transform: scale(1.1);
}

/* Chatbot Body */
.chatbot-body {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #cfd8dc;
    border-radius: 10px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
}

.message.sent .message-content {
    background: linear-gradient(135deg, #4e6bff, #2b3990);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-content p {
    margin: 0;
    font-size: 14px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.chatbot-footer .input-group {
    position: relative;
}

.chatbot-footer .form-control {
    border-radius: 30px;
    padding-right: 45px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.chatbot-footer .btn {
    position: absolute;
    right: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: 1px;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-pill {
    padding: 5px 15px;
    background: #f1f1f1;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-pill:hover {
    background: #e0e0e0;
}

/* Global 3D style enhancement */
.card {
    border: none;
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.card:hover {
    transform: translateY(-15px) translateZ(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-body {
    position: relative;
    z-index: 1;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: -1;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    border-radius: 50px;
}

.btn:hover:before {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #4e6bff, #2b3990);
    border: none;
    box-shadow: 0 10px 25px rgba(78, 107, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(78, 107, 255, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* Boutons Hero sur mobile */
@media (max-width: 768px) {
    .hero .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Animation de réseau 3D améliorée */
.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    background: transparent; /* Assurez-vous qu'il n'y a pas de conflit */
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* Ajustement pour les sections afin que le contenu reste visible sur l'animation */
section {
    position: relative;
    z-index: 1;
}

section.py-5.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.7);
    z-index: -1;
}

/* Responsive Styles for Chatbot and Modal */
@media (max-width: 576px) {
    .chatbot-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .chatbot-box {
        width: 300px;
        bottom: 70px;
        right: 0;
    }
    
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .devis-modal .modal-body {
        padding: 20px;
    }
    
    .file-upload-header i {
        font-size: 2rem;
    }
    
    .file-upload-header h5 {
        font-size: 1.1rem;
    }
    
    .file-upload-header p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .chatbot-box {
        width: 280px;
        right: -15px;
    }
    
    .chatbot-body {
        height: 250px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .devis-modal .modal-title {
        font-size: 1.2rem;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    body {
        padding-top: 76px;
    }

    .navbar-collapse {
        background: linear-gradient(to right, #2b3990, #4e6bff);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .process-container {
        padding-left: 20px;
    }
    
    .process-line {
        left: 20px;
    }
    
    .about-experience {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: -30px;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero, .blog-hero {
        padding: 100px 0 60px;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .process-line {
        left: 50%;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .card:hover {
        transform: translateY(-10px);
    }
    
    .hero-img, .about-img {
        transform: none;
    }
    
    .hero-img:hover, .about-img:hover {
        transform: translateY(-10px);
    }
}

/* --- Responsive pour la section "Notre Processus" (How We Work) --- */
@media (max-width: 991.98px) {
    .process-container {
        flex-direction: column;
        padding: 0 !important;
    }
    .process-column {
        width: 100%;
    }
    .process-central-line,
    .process-connector {
        display: none !important;
    }
    .process-step,
    .process-step.right {
        flex-direction: column !important;
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 40px;
    }
    .process-content,
    .process-step.right .process-content {
        margin: 15px 0 0 0 !important;
        padding: 18px;
    }
    .process-circle {
        margin-bottom: 10px;
    }
}

/* Optionnel : centrer le texte sur très petits écrans */
@media (max-width: 576px) {
    .process-step,
    .process-step.right {
        text-align: center !important;
        align-items: center !important;
    }
    .process-content {
        margin: 10px 0 0 0 !important;
        padding: 15px;
    }
}

.parallax-bg {
    overflow-x: hidden !important;
    max-width: 100vw;
}