Spaces:
Running
Running
Download index.html from franckyHVP3/ea: direct link, hf CLI and curl.
- Browser
- Download file 27.9 kB
-
https://huggingface.co/spaces/franckyHVP3/ea/resolve/main/index.html
- Command line
-
hf download hf://spaces/franckyHVP3/ea/index.html
-
curl -L -o index.html https://huggingface.co/spaces/franckyHVP3/ea/resolve/main/index.html
27.9 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Esprit Arttificiel - L'Agence IA qui active votre potentiel</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%238A3FFC'/%3E%3Ctext x='50' y='57' text-anchor='middle' fill='white' font-size='45' font-family='Arial, sans-serif' font-weight='bold'%3EEA%3C/text%3E%3C/svg%3E" type="image/svg+xml"> | |
| <style> | |
| body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; background-color: #ffffff; color: #1a202c; } | |
| /* Dark-mode styles */ | |
| .dark body { background-color: #111827; color: #f3f4f6; } | |
| .dark .bg-white { background-color: #1f2937; } | |
| .dark .text-primary { color: #f3f4f6; } | |
| .dark .text-gray-600 { color: #d1d5db; } | |
| .dark .bg-gray-50 { background-color: #111827; } | |
| .dark .border-gray-200 { border-color: #374151; } | |
| .dark .bg-gray-100 { background-color: #374151; } | |
| .dark .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -2px rgba(0,0,0,.2); } | |
| .text-primary { color: #2D3748; } | |
| .text-accent { color: #8A3FFC; } | |
| .bg-accent { background-color: #8A3FFC; } | |
| .border-accent { border-color: #8A3FFC; } | |
| .hover\:bg-accent:hover { background-color: #8A3FFC; } | |
| .hover\:text-accent:hover { color: #8A3FFC; } | |
| .bg-light { background-color: #F8F8F8; } | |
| .chatbot { transition: all 0.3s ease; } | |
| .chatbot.expanded { height: 400px; width: 300px; } | |
| .gradient-text { | |
| background: linear-gradient(135deg, #8A3FFC, #6366F1); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .floating { | |
| animation: floating 3s ease-in-out infinite; | |
| } | |
| @keyframes floating { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .card-hover { | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .form-input:focus { | |
| border-color: #8A3FFC; | |
| box-shadow: 0 0 0 3px rgba(138, 63, 252, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-white dark:bg-gray-900"> | |
| <!-- Navigation --> | |
| <nav class="fixed top-0 w-full bg-white/90 dark:bg-gray-900/90 backdrop-blur-md shadow-sm z-50 border-b border-gray-200 dark:border-gray-700"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between items-center h-16"> | |
| <div class="flex-shrink-0 flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-accent flex items-center justify-center"> | |
| <span class="text-white text-xs font-bold">EA</span> | |
| </div> | |
| <h1 class="text-xl font-bold text-primary">Esprit Arttificiel</h1> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-4"> | |
| <!-- Dark-mode toggle --> | |
| <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition"> | |
| <svg id="theme-moon" class="w-5 h-5 text-gray-500 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/> | |
| </svg> | |
| <svg id="theme-sun" class="w-5 h-5 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/> | |
| </svg> | |
| </button> | |
| <div class="ml-10 flex items-baseline space-x-8"> | |
| <a href="#accueil" class="text-primary hover:text-accent px-3 py-2 text-sm font-medium transition-colors">Accueil</a> | |
| <a href="#services" class="text-primary hover:text-accent px-3 py-2 text-sm font-medium transition-colors">Services</a> | |
| <a href="#difference" class="text-primary hover:text-accent px-3 py-2 text-sm font-medium transition-colors">Notre Différence</a> | |
| <a href="#contact" class="bg-accent text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-opacity-90 transition-all">Contact</a> | |
| </div> | |
| </div> | |
| <div class="md:hidden"> | |
| <button id="mobile-menu-btn" class="text-primary hover:text-accent"> | |
| <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> | |
| </svg> | |
| </button> | |
| </div> | |
| </div> | |
| <button id="theme-toggle-mobile" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition"> | |
| <svg id="theme-moon-mobile" class="w-5 h-5 text-gray-500 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/> | |
| </svg> | |
| <svg id="theme-sun-mobile" class="w-5 h-5 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/> | |
| </svg> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Mobile menu --> | |
| <div id="mobile-menu" class="hidden md:hidden bg-white border-t dark:bg-gray-800 dark:border-gray-600"> | |
| <div class="px-2 pt-2 pb-3 space-y-1"> | |
| <a href="#accueil" class="text-primary hover:text-accent block px-3 py-2 text-sm font-medium">Accueil</a> | |
| <a href="#services" class="text-primary hover:text-accent block px-3 py-2 text-sm font-medium">Services</a> | |
| <a href="#difference" class="text-primary hover:text-accent block px-3 py-2 text-sm font-medium">Notre Différence</a> | |
| <a href="#contact" class="bg-accent text-white block px-3 py-2 text-sm font-medium rounded-lg mx-3">Contact</a> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section id="accueil" class="min-h-screen flex items-center justify-center bg-gradient-to-br from-gray-50 to-white dark:from-gray-900 dark:to-gray-800 pt-16"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20"> | |
| <div class="grid lg:grid-cols-2 gap-12 items-center"> | |
| <div> | |
| <h1 class="text-5xl md:text-6xl font-bold text-primary mb-6 leading-tight"> | |
| Activez le plein potentiel de votre entreprise avec <span class="gradient-text">l'IA</span> | |
| </h1> | |
| <p class="text-xl text-gray-600 mb-8"> | |
| Nous ne livrons pas seulement des outils. Nous intégrons des solutions sur mesure et nous formons vos équipes pour une autonomie durable. | |
| </p> | |
| <button onclick="scrollToSection('contact')" class="bg-accent text-white px-8 py-4 rounded-lg text-lg font-semibold hover:bg-opacity-90 transition-all transform hover:scale-105"> | |
| Planifier votre audit gratuit | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <lottie-player | |
| src="https://assets10.lottiefiles.com/packages/lf20_w51pcehl.json" | |
| background="transparent" | |
| speed="1" | |
| style="width: 100%; height: 400px;" | |
| loop | |
| autoplay | |
| class="floating" | |
| ></lottie-player> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Services Section --> | |
| <section id="services" class="py-20 bg-white dark:bg-gray-900"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-4xl font-bold text-primary mb-4">Une solution IA complète, de A à Z</h2> | |
| <p class="text-xl text-gray-600 max-w-3xl mx-auto"> | |
| Nous accompagnons votre transformation digitale avec des solutions sur mesure, adaptées à vos besoins spécifiques. | |
| </p> | |
| </div> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8"> | |
| <div class="card-hover bg-white dark:bg-gray-700 p-8 rounded-xl border border-gray-200 dark:border-gray-600"> | |
| <div class="w-16 h-16 bg-accent/10 rounded-lg flex items-center justify-center mb-4"> | |
| <svg class="w-8 h-8 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" /> | |
| </svg> | |
| </div> | |
| <h3 class="text-xl font-semibold text-primary mb-2">Audit & Conseil Stratégique</h3> | |
| <p class="text-gray-600">Analyse approfondie de votre environnement et élaboration d'une feuille de route IA personnalisée.</p> | |
| </div> | |
| <div class="card-hover bg-white dark:bg-gray-700 p-8 rounded-xl border border-gray-200 dark:border-gray-600"> | |
| <div class="w-16 h-16 bg-accent/10 rounded-lg flex items-center justify-center mb-4"> | |
| <svg class="w-8 h-8 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" /> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /> | |
| </svg> | |
| </div> | |
| <h3 class="text-xl font-semibold text-primary mb-2">Création d'Automatisations & Agents IA</h3> | |
| <p class="text-gray-600">Développement de solutions automatisées intelligentes pour optimiser vos processus métiers.</p> | |
| </div> | |
| <div class="card-hover bg-white dark:bg-gray-700 p-8 rounded-xl border border-gray-200 dark:border-gray-600"> | |
| <div class="w-16 h-16 bg-accent/10 rounded-lg flex items-center justify-center mb-4"> | |
| <svg class="w-8 h-8 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z" /> | |
| </svg> | |
| </div> | |
| <h3 class="text-xl font-semibold text-primary mb-2">Déploiement Cloud & Souverain</h3> | |
| <p class="text-gray-600">Solutions cloud flexibles ou infrastructures souveraines selon vos contraintes de sécurité et de conformité.</p> | |
| </div> | |
| <div class="card-hover bg-white dark:bg-gray-700 p-8 rounded-xl border border-gray-200 dark:border-gray-600"> | |
| <div class="w-16 h-16 bg-accent/10 rounded-lg flex items-center justify-center mb-4"> | |
| <svg class="w-8 h-8 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a1 1 0 01-1-1V7a1 1 0 011-1h3a1 1 0 001-1V4z" /> | |
| </svg> | |
| </div> | |
| <h3 class="text-xl font-semibold text-primary mb-2">Intégration à vos Outils</h3> | |
| <p class="text-gray-600">Connexion transparente avec vos systèmes existants : CRM, ERP et autres outils métiers.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Difference Section --> | |
| <section id="difference" class="py-20 bg-gray-50 dark:bg-gray-800"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="grid lg:grid-cols-2 gap-12 items-center"> | |
| <div> | |
| <h2 class="text-4xl font-bold text-primary mb-6">Plus qu'une solution : une compétence</h2> | |
| <p class="text-xl text-gray-600 mb-8"> | |
| Notre service phare : la formation et l'accompagnement de vos employés. Nous transformons vos équipes en acteurs de votre succès IA, garantissant une adoption rapide et une valeur ajoutée maximale. | |
| </p> | |
| <button onclick="scrollToSection('contact')" class="border-2 border-accent text-accent px-8 py-4 rounded-lg text-lg font-semibold hover:bg-accent hover:text-white transition-all"> | |
| Découvrir notre approche | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <img src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" | |
| alt="Formation en entreprise" | |
| class="rounded-xl shadow-lg w-full" | |
| > | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-20 bg-white dark:bg-gray-900"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-4xl font-bold text-primary mb-4">Prêt à transformer votre entreprise ?</h2> | |
| <p class="text-xl text-gray-600">Discutons de votre projet. Le premier appel de découverte est offert.</p> | |
| </div> | |
| <div class="grid lg:grid-cols-2 gap-12"> | |
| <div> | |
| <form id="contact-form" class="space-y-6"> | |
| <div> | |
| <label for="name" class="block text-sm font-medium text-gray-700 mb-2">Nom</label> | |
| <input type="text" id="name" name="name" required class="form-input w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700 mb-2">Email</label> | |
| <input type="email" id="email" name="email" required class="form-input w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none"> | |
| </div> | |
| <div> | |
| <label for="company" class="block text-sm font-medium text-gray-700 mb-2">Entreprise</label> | |
| <input type="text" id="company" name="company" required class="form-input w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none"> | |
| </div> | |
| <div> | |
| <label for="message" class="block text-sm font-medium text-gray-700 mb-2">Message</label> | |
| <textarea id="message" name="message" rows="4" required class="form-input w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none"></textarea> | |
| </div> | |
| <button type="submit" class="w-full bg-accent text-white px-6 py-3 rounded-lg font-semibold hover:bg-opacity-90 transition-all"> | |
| Envoyer | |
| </button> | |
| </form> | |
| </div> | |
| <div class="bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-700 dark:to-gray-600 p-8 rounded-xl"> | |
| <h3 class="text-2xl font-bold text-primary mb-4">Réserver un créneau</h3> | |
| <p class="text-gray-600 mb-6"> | |
| Choisissez un moment qui vous convient pour discuter de votre projet avec nos experts. | |
| </p> | |
| <button onclick="openCalendly()" class="w-full bg-white border-2 border-accent text-accent px-6 py-3 rounded-lg font-semibold hover:bg-accent hover:text-white transition-all mb-6"> | |
| Réserver un créneau | |
| </button> | |
| <div class="space-y-4"> | |
| <div> | |
| <h4 class="font-semibold text-primary mb-1">Email</h4> | |
| <a href="mailto:ericnolo13@gmail.com" class="text-accent hover:underline">ericnolo13@gmail.com</a> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold text-primary mb-1">Téléphone</h4> | |
| <a href="tel:+33123456789" class="text-accent hover:underline">+33 7 45 70 26 31</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Chatbot --> | |
| <div id="chatbot" class="fixed bottom-4 right-4 z-50"> | |
| <div id="chatbot-container" class="chatbot bg-white dark:bg-gray-700 rounded-lg shadow-lg overflow-hidden"> | |
| <div id="chatbot-header" class="bg-accent text-white p-4 cursor-pointer"> | |
| <div class="flex items-center justify-between"> | |
| <span class="font-semibold">Assistant IA</span> | |
| <svg id="chatbot-toggle" class="w-5 h-5 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" /> | |
| </svg> | |
| </div> | |
| </div> | |
| <div id="chatbot-content" class="hidden"> | |
| <div id="chatbot-messages" class="p-4 h-64 overflow-y-auto"> | |
| <div class="mb-3"> | |
| <div class="bg-gray-100 dark:bg-gray-600 p-3 rounded-lg max-w-xs"> | |
| <p class="text-sm">Bonjour ! Des questions sur nos solutions IA ou notre programme de formation ? Je suis là pour vous aider.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-t"> | |
| <input type="text" id="chatbot-input" placeholder="Écrivez votre message..." class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-accent"> | |
| </div> | |
| </div> | |
| </div> | |
| <button id="chatbot-button" class="bg-accent text-white p-4 rounded-full shadow-lg hover:bg-opacity-90 transition-all"> | |
| <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /> | |
| </svg> | |
| </button> | |
| </div> | |
| <script> | |
| // Dark-mode switch | |
| const themeToggle = document.getElementById('theme-toggle'); | |
| const themeToggleMobile = document.getElementById('theme-toggle-mobile'); | |
| const html = document.documentElement; | |
| function applyTheme(isDark) { | |
| if (isDark) { | |
| html.classList.add('dark'); | |
| document.getElementById('theme-moon').classList.remove('hidden'); | |
| document.getElementById('theme-sun').classList.add('hidden'); | |
| document.getElementById('theme-moon-mobile').classList.remove('hidden'); | |
| document.getElementById('theme-sun-mobile').classList.add('hidden'); | |
| } else { | |
| html.classList.remove('dark'); | |
| document.getElementById('theme-moon').classList.add('hidden'); | |
| document.getElementById('theme-sun').classList.remove('hidden'); | |
| document.getElementById('theme-moon-mobile').classList.add('hidden'); | |
| document.getElementById('theme-sun-mobile').classList.remove('hidden'); | |
| } | |
| } | |
| function toggleTheme() { | |
| const isDark = !html.classList.contains('dark'); | |
| applyTheme(isDark); | |
| localStorage.setItem('theme', isDark ? 'dark' : 'light'); | |
| } | |
| // Init theme | |
| const savedTheme = localStorage.getItem('theme'); | |
| const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; | |
| applyTheme(savedTheme ? savedTheme === 'dark' : prefersDark); | |
| themeToggle.addEventListener('click', toggleTheme); | |
| themeToggleMobile.addEventListener('click', toggleTheme); | |
| // Mobile menu toggle | |
| document.getElementById('mobile-menu-btn').addEventListener('click', function() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // Smooth scrolling | |
| function scrollToSection(sectionId) { | |
| document.getElementById(sectionId).scrollIntoView({ behavior: 'smooth' }); | |
| } | |
| // Chatbot functionality | |
| const chatbotContainer = document.getElementById('chatbot-container'); | |
| const chatbotButton = document.getElementById('chatbot-button'); | |
| const chatbotToggle = document.getElementById('chatbot-toggle'); | |
| const chatbotContent = document.getElementById('chatbot-content'); | |
| const chatbotMessages = document.getElementById('chatbot-messages'); | |
| const chatbotInput = document.getElementById('chatbot-input'); | |
| let isChatbotOpen = false; | |
| function toggleChatbot() { | |
| isChatbotOpen = !isChatbotOpen; | |
| if (isChatbotOpen) { | |
| chatbotContainer.classList.add('expanded'); | |
| chatbotContent.classList.remove('hidden'); | |
| chatbotButton.style.display = 'none'; | |
| } else { | |
| chatbotContainer.classList.remove('expanded'); | |
| chatbotContent.classList.add('hidden'); | |
| chatbotButton.style.display = 'block'; | |
| } | |
| } | |
| chatbotButton.addEventListener('click', toggleChatbot); | |
| chatbotToggle.addEventListener('click', toggleChatbot); | |
| // Chatbot responses | |
| const responses = { | |
| 'audit': "Notre audit complet analyse vos processus actuels et identifie les opportunités d'amélioration par l'IA. C'est gratuit et sans engagement !", | |
| 'formation': "Nos formations sont personnalisées selon vos besoins. Nous formons vos équipes à l'utilisation des solutions IA déployées.", | |
| 'prix': "Chaque projet est unique. Discutons de vos besoins lors d'un appel gratuit pour établir un devis personnalisé.", | |
| 'contact': "Vous pouvez me contacter ici ou remplir le formulaire de contact en bas de page. Je vous répondrai rapidement !" | |
| }; | |
| chatbotInput.addEventListener('keypress', function(e) { | |
| if (e.key === 'Enter') { | |
| const message = chatbotInput.value.toLowerCase(); | |
| addMessage(chatbotInput.value, 'user'); | |
| chatbotInput.value = ''; | |
| // Simple keyword matching for responses | |
| let response = "Je vous connecte avec un expert qui vous répondra personnellement."; | |
| for (const [keyword, reply] of Object.entries(responses)) { | |
| if (message.includes(keyword)) { | |
| response = reply; | |
| break; | |
| } | |
| } | |
| setTimeout(() => addMessage(response, 'bot'), 500); | |
| } | |
| }); | |
| function addMessage(text, sender) { | |
| const messageDiv = document.createElement('div'); | |
| messageDiv.className = 'mb-3'; | |
| const contentDiv = document.createElement('div'); | |
| contentDiv.className = sender === 'user' | |
| ? 'bg-accent text-white p-3 rounded-lg max-w-xs ml-auto' | |
| : 'bg-gray-100 p-3 rounded-lg max-w-xs'; | |
| contentDiv.innerHTML = `<p class="text-sm">${text}</p>`; | |
| messageDiv.appendChild(contentDiv); | |
| chatbotMessages.appendChild(messageDiv); | |
| chatbotMessages.scrollTop = chatbotMessages.scrollHeight; | |
| } | |
| // Form submission | |
| document.getElementById('contact-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| alert('Merci pour votre message ! Nous vous répondrons dans les plus brefs délais.'); | |
| this.reset(); | |
| }); | |
| // Calendly integration | |
| function openCalendly() { | |
| window.open('https://calendly.com/espritarttificiel/discovery', '_blank'); | |
| } | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=franckyHVP3/ea" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |