:root {
    --primary-color: #6C63FF;
    --secondary-color: #00D1B2;
    --accent-color: #FF6584;
    --dark-color: #2A2C37;
    --light-color: #FFFFFF;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --gray-color: #F5F5F5;
    --dark-gray: #4A4A4A;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default; /* Restaurer le curseur par défaut du système */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Nouveaux styles pour le curseur */
.cursor, .cursor-follower {
    display: none; /* Désactiver complètement l'ancien curseur personnalisé */
}

a, button, .btn, .service-card, .feature-item, .social-link, .hamburger {
    cursor: pointer; /* Utiliser le curseur "pointer" standard pour les éléments cliquables */
}

/* Si vous préférez un curseur moderne mais plus subtil, vous pouvez utiliser ceci à la place */
/*
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="rgba(75, 75, 200, 0.5)"/></svg>'), auto;
}

a, button, .btn, .service-card, .feature-item, .social-link, .hamburger {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="rgba(75, 75, 200, 0.8)"/></svg>'), pointer;
}
*/
/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transition: none;
    z-index: auto;
    overflow: visible;
}

.nav-links ul {
    flex-direction: row;
    gap: 30px;
    margin-top: 0;
    width: auto;
    display: flex;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.language-toggle {
    font-size: 0.9rem;
    cursor: pointer;
}

.language-toggle span {
    padding: 0 5px;
    transition: var(--transition);
}

.language-toggle span.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    /* Supprime l'image de fond statique */
    background-image: none;
}
.hero-canvas-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(108, 99, 255, 0.3);
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight:hover::after {
    height: 100%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease-out;
    z-index: -1;
}

.btn:hover:before {
    transform: translate(-50%, -50%) scale(1);
}

.btn i {
    font-size: 1.1rem;
}

.btn.primary {
    background: var(--gradient-bg);
    color: var(--light-text);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.hero-animation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ai-animation {
    width: 500px;
    height: 500px;
}

/* Services Section */
.services {
    padding: 100px 5%;
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Uniformise la taille des H1 pour toutes les pages (hors .hero) */
.section-header h1,
.services .section-header h1,
.contact-info h1,
.contact .section-header h1,
.team-members h1,
.team .section-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Garde la taille du H1 du hero sur la page d'accueil */
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

/* Responsive : ajuste la taille sur mobile */
@media (max-width: 1024px) {
    .section-header h1,
    .services .section-header h1,
    .contact-info h1,
    .contact .section-header h1,
    .team-members h1,
    .team .section-header h1,
    .hero h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 480px) {
    .section-header h1,
    .services .section-header h1,
    .contact-info h1,
    .contact .section-header h1,
    .team-members h1,
    .team .section-header h1,
    .hero h1 {
        font-size: 1.6rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.18;
    z-index: -1;
    transition: height 0.5s cubic-bezier(.4,1.4,.6,1), opacity 0.3s;
}

.service-card:hover:before {
    height: 100%;
    opacity: 0.32;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(0.95); /* effet "inwards" (légèrement plus petit, vers l'intérieur) */
}

/* Service card titles: underline effect for all service grids */
.service-card h2, .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    transition: var(--transition);
}

.service-card h2:after, .service-card h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--gradient-bg);
    transition: width 0.3s ease;
}

.service-card:hover h2:after, .service-card:hover h3:after {
    width: 70px;
}

.service-card ul {
    list-style: disc inside;
    margin: 1.5rem 0 0 0;
    padding-left: 0.5rem; /* Réduit l'indentation */
    color: #4A4A4A;
    font-size: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5em;
    padding-left: 0; /* Supprime le padding supplémentaire */
    text-indent: 0;  /* Assure l'alignement du texte */
}

/* Demo Section */
.demo {
    padding: 100px 5%;
    background-color: var(--gray-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}
.demo-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    filter: blur(0.5px) brightness(1.08);
    transition: opacity 0.3s;
    /* Ajouté pour permettre le flip via inline style ou classe */
}

.demo-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin-right: 30px;
    position: relative;
    z-index: 2;
}

.demo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.chatbot-container {
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--gradient-bg);
    color: var(--light-text);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar img {
    width: 30px;
    height: 30px;
}

.chat-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    position: relative;
}

.message p {
    margin: 0;
    font-size: 0.95rem;
}

.message.bot {
    align-self: flex-start;
    background-color: #f0f0f0;
    border-bottom-left-radius: 5px;
}

.message.user {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background-color: #f5f5f5;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.chat-input input:focus {
    background-color: #eeeeee;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: #5b52e5;
    transform: scale(1.05);
}

.demo-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tech-sphere {
    width: 400px;
    height: 400px;
    position: relative;
}

/* Team Section */
.team {
    padding: 100px 5%;
    background-color: var(--light-color);
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #f5f5f5;
    border: 5px solid rgba(108, 99, 255, 0.2);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Technology Section */
.technology {
    padding: 100px 5%;
    position: relative;
    color: var(--light-text);
    overflow: hidden;
}

.parallax-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/tech-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.parallax-tech-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 44, 55, 0.9), rgba(108, 99, 255, 0.8));
    z-index: 0;
}

.section-header.light {
    color: var(--light-text);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.tech-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tech-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact {
    padding: 60px 5% 40px 5%; /* Réduit le padding haut/bas */
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Réduit l'espace entre les colonnes */
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color); /* couleur identique aux autres textes */
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
}

/* Fix alignment for address text in contact-method */
.contact-method p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    width: 48%;
    display: inline-block;
}

.form-group.full-width {
    width: 100%;
}

.form-group:nth-child(odd) {
    margin-right: 4%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 40px 5% 10px; /* Réduit le padding haut/bas */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px; /* Réduit l'espace entre les colonnes */
    margin-bottom: 30px;
    max-width: 1400px;
    margin: 0 auto 30px;
}

.footer-logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    padding-left: 0; /* Fix: reset padding for all links */
}

.footer-bottom {
    text-align: center;
    padding-top: 18px; /* Réduit l'espace au-dessus du copyright */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1400px;
    margin: 0 auto;
}

/* Key Features Section */
.key-features {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.key-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* retire scale/letter-spacing */
}

.feature-item .feature-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(0.95); /* effet "inwards" (légèrement plus petit) */
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-animation {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero {
        padding: 150px 5% 80px;
    }
    
    .demo-content {
        margin-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }
}

/* Place desktop nav-links styles ONLY in min-width media query */
@media (min-width: 1025px) {
    .nav-links {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        transition: none;
        z-index: auto;
        overflow: visible;
    }
    .nav-links ul {
        flex-direction: row;
        gap: 30px;
        margin-top: 0;
        width: auto;
        display: flex;
    }
}

/* --- Hamburger menu & nav mobile robust fix --- */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        min-width: 0;
        max-width: none;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        display: flex !important;
        padding: 0 30px 30px 30px;
        box-shadow: 0 0 30px var(--shadow-color);
        transition: left 0.3s cubic-bezier(.4,1.4,.6,1);
        z-index: 1001;
        overflow-y: auto;
        right: auto;
        overflow-x: hidden;
    }
    .nav-links ul {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        display: flex;
        margin-top: 100px; /* Add margin to push links below header */
    }
    .nav-links.active {
        left: 0;
    }
    .hamburger {
        display: flex !important;
        z-index: 1002;
    }
    .navbar {
        position: relative;
        z-index: 1003;
    }
    body.menu-open {
        overflow: hidden;
    }
    body, html {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* Remove duplicate/conflicting nav-links mobile block for 768px, keep only hamburger icon size tweaks */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility classes */
.fadeIn {
    animation: fadeIn 1s ease forwards;
}

.slideInUp {
    animation: slideInUp 0.8s ease forwards;
}

/* === Dr Neo Chatbot Styles === */
#drneo-chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 24px rgba(92, 53, 211, 0.18);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
#drneo-chatbot-btn:hover {
    box-shadow: 0 8px 32px rgba(92, 53, 211, 0.28);
}
#drneo-chatbot-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    width: 350px;
    max-width: 95vw;
    height: 500px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(92, 53, 211, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s;
}
#drneo-chatbot-header {
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#drneo-chatbot-header span {
    font-weight: 600;
    font-size: 1.1rem;
}
#drneo-chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 10px;
}
#drneo-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #faf8ff;
    font-size: 1rem;
}
.drneo-msg-user {
    background: #e3dcfa;
    color: #3d246b;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    margin: 8px 0 8px auto;
    max-width: 80%;
    text-align: right;
    width: fit-content;
}
.drneo-msg-bot {
    background: #f3e7fa;
    color: #673ab7;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 4px;
    margin: 8px auto 8px 0;
    max-width: 80%;
    width: fit-content;
    /* Correction : permettre au HTML d'être rendu normalement */
    white-space: normal;
}
#drneo-chatbot-form {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
#drneo-chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 1rem;
    outline: none;
    margin-right: 8px;
}
#drneo-chatbot-form button[type="submit"] {
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#drneo-chatbot-form button[type="submit"]:hover {
    background: linear-gradient(45deg, #9C27B0, #673AB7);
}

/* Ajout : Style pour le bouton de service dans les réponses du chatbot */
.drneo-btn-service {
    display: inline-block;
    margin-top: 12px;
    padding: 0.6em 1.3em;
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: #fff !important;
    border: none;
    border-radius: 22px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(92,53,211,0.10);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.drneo-btn-service:hover {
    background: linear-gradient(45deg, #9C27B0, #673AB7);
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
}

/* Free Consultation Badge */
.free-consultation-badge {
    background: rgba(92, 53, 211, 0.1);
    border: 1px solid rgba(92, 53, 211, 0.3);
    color: var(--text-color) !important;
    padding: 0.7rem 1rem; /* Réduit le padding vertical */
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    text-align: center;
}

.services-seo-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(108,99,255,0.06);
    padding: 2rem 5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    border-left: 5px solid var(--primary-color);
}

.services-seo-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.services-seo-text-content {
    flex: 1;
}

.services-seo-text-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.13rem;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 0.7rem;
    margin-top: 0;
}

/* === Styles spécifiques déplacés depuis index.html === */

/* Promo offer (bannière d'essai gratuit) */
.promo-offer {
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-size: 1rem;
    color: #fff;
    background-color: rgba(92, 53, 211, 0.2);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Badge promo sur les services */
.promo-badge {
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Badge consultation gratuite */
.free-consultation-badge {
    background: rgba(92, 53, 211, 0.1);
    border: 1px solid rgba(92, 53, 211, 0.3);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 600;
    text-align: center;
}
.free-consultation-badge i {
    color: #9C27B0;
    margin-right: 0.5rem;
}

/* Fond neuronal */
#neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #160048, #050024);
}

/* S'assurer que les éléments du site sont visibles devant le canvas */
main, header, footer, .cursor, .cursor-follower {
    position: relative;
    z-index: 1;
}

/* Vidéo de fond du hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Assurer que le contenu du hero reste au-dessus de la vidéo */
.hero-content {
    position: relative;
    z-index: 1;
}
