File size: 26,897 Bytes
3d0be40
96948ea
3d0be40
 
 
96948ea
3d0be40
 
 
 
 
 
96948ea
 
3d0be40
 
 
 
 
 
 
 
 
 
96948ea
3d0be40
 
 
 
 
 
 
 
96948ea
 
 
3d0be40
 
96948ea
 
 
3d0be40
 
96948ea
 
 
3d0be40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
 
 
96948ea
3d0be40
 
 
 
 
96948ea
 
3d0be40
 
 
96948ea
 
 
 
3d0be40
 
96948ea
 
3d0be40
 
 
 
 
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
 
96948ea
3d0be40
 
96948ea
 
3d0be40
 
 
96948ea
 
 
3d0be40
96948ea
 
3d0be40
96948ea
 
 
3d0be40
96948ea
 
3d0be40
96948ea
 
 
3d0be40
96948ea
 
3d0be40
96948ea
 
 
3d0be40
96948ea
 
 
 
 
 
3d0be40
96948ea
 
3d0be40
 
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
 
 
96948ea
3d0be40
96948ea
3d0be40
96948ea
 
 
 
 
3d0be40
 
 
96948ea
3d0be40
 
96948ea
3d0be40
 
 
 
96948ea
 
 
 
 
 
 
3d0be40
 
96948ea
 
 
 
 
3d0be40
 
 
96948ea
 
 
 
 
 
 
3d0be40
 
 
96948ea
 
 
 
 
3d0be40
 
96948ea
 
 
 
 
3d0be40
 
 
96948ea
 
 
 
 
3d0be40
 
96948ea
 
 
 
 
3d0be40
 
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
96948ea
 
 
3d0be40
 
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
96948ea
 
 
 
 
 
 
 
 
 
3d0be40
 
 
 
 
 
96948ea
3d0be40
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
 
 
 
 
96948ea
3d0be40
 
96948ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d0be40
96948ea
 
 
3d0be40
96948ea
3d0be40
96948ea
3d0be40
96948ea
 
 
 
 
3d0be40
 
96948ea
 
 
 
 
 
3d0be40
96948ea
 
 
 
 
 
3d0be40
 
96948ea
 
 
3d0be40
 
96948ea
3d0be40
96948ea
 
3d0be40
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DeepMind AI | Assistant Intelligence Artificielle</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
        
        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --secondary: #10b981;
            --accent: #f59e0b;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #0f172a;
            color: #e2e8f0;
        }
        
        .ai-font {
            font-family: 'Orbitron', sans-serif;
        }
        
        .terminal-bg {
            background-color: #1e293b;
            border: 1px solid #334155;
        }
        
        .chat-bubble {
            border-radius: 1rem;
            position: relative;
        }
        
        .user-bubble {
            background-color: #1e40af;
            border-bottom-right-radius: 0;
        }
        
        .ai-bubble {
            background-color: #1e293b;
            border-bottom-left-radius: 0;
        }
        
        .glow-effect {
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        }
        
        .glow-effect:hover {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }
        
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        
        .scanline {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(
                to bottom,
                transparent 0%,
                rgba(16, 185, 129, 0.1) 10%,
                transparent 20%,
                transparent 100%
            );
            animation: scan 8s linear infinite;
            pointer-events: none;
        }
        
        @keyframes scan {
            0% {
                transform: translateY(-100%);
            }
            100% {
                transform: translateY(100%);
            }
        }
        
        .typing-indicator span {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #94a3b8;
            border-radius: 50%;
            margin-right: 4px;
            animation: bounce 1.5s infinite ease-in-out;
        }
        
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-5px);
            }
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- Navigation -->
    <nav class="bg-gray-900 border-b border-gray-800">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i class="fas fa-brain text-blue-500 text-2xl mr-3"></i>
                        <span class="text-xl font-bold text-white ai-font">DEEPMIND AI</span>
                    </div>
                </div>
                <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
                    <a href="#" class="text-blue-400 hover:text-blue-300 px-3 py-2 text-sm font-medium">Accueil</a>
                    <a href="#" class="text-gray-300 hover:text-white px-3 py-2 text-sm font-medium">Fonctionnalités</a>
                    <a href="#" class="text-gray-300 hover:text-white px-3 py-2 text-sm font-medium">API</a>
                    <a href="#" class="text-gray-300 hover:text-white px-3 py-2 text-sm font-medium">Tarifs</a>
                </div>
                <div class="flex items-center">
                    <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition duration-150 ease-in-out glow-effect">
                        <i class="fas fa-sign-in-alt mr-2"></i> Connexion
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <div class="relative bg-gradient-to-b from-gray-900 to-gray-800">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20">
            <div class="text-center">
                <h1 class="text-4xl md:text-6xl font-bold text-white mb-6 ai-font">
                    <span class="text-blue-400">DeepMind</span> AI Assistant
                </h1>
                <p class="text-xl text-gray-300 max-w-3xl mx-auto">
                    L'intelligence artificielle la plus avancée pour répondre à vos questions, générer du contenu et automatiser vos tâches.
                </p>
                <div class="mt-10">
                    <div class="relative max-w-2xl mx-auto">
                        <input type="text" placeholder="Posez votre question ici..." 
                            class="w-full bg-gray-800 text-white px-6 py-4 rounded-full border border-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
                        <button class="absolute right-2 top-2 bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-full glow-effect">
                            <i class="fas fa-paper-plane"></i>
                        </button>
                    </div>
                    <p class="text-sm text-gray-500 mt-3">
                        Essayez : "Explique-moi le machine learning comme si j'avais 5 ans"
                    </p>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Chat Interface -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
            <!-- Left Sidebar - Tools -->
            <div class="lg:col-span-1 terminal-bg rounded-lg p-6 relative overflow-hidden">
                <div class="scanline"></div>
                <h3 class="text-lg font-bold text-white mb-6 ai-font border-b border-gray-700 pb-2">
                    <i class="fas fa-tools mr-2 text-blue-400"></i> Outils AI
                </h3>
                
                <div class="space-y-4">
                    <button class="w-full flex items-center p-3 bg-gray-800 hover:bg-gray-700 rounded-lg transition">
                        <div class="bg-blue-500 bg-opacity-20 p-2 rounded-md mr-3">
                            <i class="fas fa-comment-dots text-blue-400"></i>
                        </div>
                        <span class="text-white">Chat intelligent</span>
                    </button>
                    
                    <button class="w-full flex items-center p-3 bg-gray-800 hover:bg-gray-700 rounded-lg transition">
                        <div class="bg-green-500 bg-opacity-20 p-2 rounded-md mr-3">
                            <i class="fas fa-file-alt text-green-400"></i>
                        </div>
                        <span class="text-white">Génération de texte</span>
                    </button>
                    
                    <button class="w-full flex items-center p-3 bg-gray-800 hover:bg-gray-700 rounded-lg transition">
                        <div class="bg-purple-500 bg-opacity-20 p-2 rounded-md mr-3">
                            <i class="fas fa-code text-purple-400"></i>
                        </div>
                        <span class="text-white">Assistant code</span>
                    </button>
                    
                    <button class="w-full flex items-center p-3 bg-gray-800 hover:bg-gray-700 rounded-lg transition">
                        <div class="bg-yellow-500 bg-opacity-20 p-2 rounded-md mr-3">
                            <i class="fas fa-image text-yellow-400"></i>
                        </div>
                        <span class="text-white">Génération d'images</span>
                    </button>
                    
                    <button class="w-full flex items-center p-3 bg-gray-800 hover:bg-gray-700 rounded-lg transition">
                        <div class="bg-red-500 bg-opacity-20 p-2 rounded-md mr-3">
                            <i class="fas fa-language text-red-400"></i>
                        </div>
                        <span class="text-white">Traduction</span>
                    </button>
                </div>
                
                <div class="mt-8 pt-4 border-t border-gray-700">
                    <h3 class="text-lg font-bold text-white mb-4 ai-font">
                        <i class="fas fa-history mr-2 text-blue-400"></i> Historique
                    </h3>
                    <div class="space-y-2">
                        <button class="w-full text-left text-gray-400 hover:text-white text-sm p-2 truncate">
                            Comment créer un site web moderne ?
                        </button>
                        <button class="w-full text-left text-gray-400 hover:text-white text-sm p-2 truncate">
                            Différence entre AI et ML
                        </button>
                        <button class="w-full text-left text-gray-400 hover:text-white text-sm p-2 truncate">
                            Code Python pour trier une liste
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- Main Chat Area -->
            <div class="lg:col-span-3 space-y-6">
                <div class="terminal-bg rounded-lg p-6 h-[600px] flex flex-col relative overflow-hidden">
                    <div class="scanline"></div>
                    
                    <!-- Chat Header -->
                    <div class="flex justify-between items-center mb-6 pb-4 border-b border-gray-700">
                        <h3 class="text-lg font-bold text-white ai-font">
                            <i class="fas fa-comment-dots mr-2 text-blue-400"></i> Chat avec DeepMind AI
                        </h3>
                        <div class="flex space-x-2">
                            <button class="bg-gray-700 hover:bg-gray-600 text-gray-300 px-3 py-1 rounded text-xs font-medium">
                                <i class="fas fa-eraser mr-1"></i> Effacer
                            </button>
                            <button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-xs font-medium glow-effect">
                                <i class="fas fa-share-alt mr-1"></i> Partager
                            </button>
                        </div>
                    </div>
                    
                    <!-- Chat Messages -->
                    <div id="chatMessages" class="flex-1 overflow-y-auto space-y-4 pr-2">
                        <!-- AI Welcome Message -->
                        <div class="flex">
                            <div class="flex-shrink-0 mr-3">
                                <div class="bg-blue-600 w-8 h-8 rounded-full flex items-center justify-center">
                                    <i class="fas fa-brain text-white"></i>
                                </div>
                            </div>
                            <div class="ai-bubble chat-bubble p-4 max-w-[80%]">
                                <p class="text-white">
                                    Bonjour ! Je suis DeepMind AI, votre assistant intelligent. Comment puis-je vous aider aujourd'hui ?
                                </p>
                                <p class="text-xs text-gray-400 mt-2">Aujourd'hui, 10:24</p>
                            </div>
                        </div>
                        
                        <!-- User Message -->
                        <div class="flex justify-end">
                            <div class="user-bubble chat-bubble p-4 max-w-[80%]">
                                <p class="text-white">
                                    Peux-tu m'expliquer ce qu'est l'intelligence artificielle ?
                                </p>
                                <p class="text-xs text-blue-200 mt-2">Aujourd'hui, 10:25</p>
                            </div>
                        </div>
                        
                        <!-- AI Response -->
                        <div class="flex">
                            <div class="flex-shrink-0 mr-3">
                                <div class="bg-blue-600 w-8 h-8 rounded-full flex items-center justify-center">
                                    <i class="fas fa-brain text-white"></i>
                                </div>
                            </div>
                            <div class="ai-bubble chat-bubble p-4 max-w-[80%]">
                                <p class="text-white">
                                    Bien sûr ! L'intelligence artificielle (IA) est un domaine de l'informatique qui vise à créer des systèmes capables d'effectuer des tâches qui nécessiteraient normalement l'intelligence humaine. Cela inclut des choses comme la compréhension du langage naturel, la reconnaissance d'images, la prise de décision et l'apprentissage à partir de données.
                                </p>
                                <p class="text-xs text-gray-400 mt-2">Aujourd'hui, 10:25</p>
                            </div>
                        </div>
                        
                        <!-- AI Typing Indicator -->
                        <div class="flex" id="typingIndicator" style="display: none;">
                            <div class="flex-shrink-0 mr-3">
                                <div class="bg-blue-600 w-8 h-8 rounded-full flex items-center justify-center">
                                    <i class="fas fa-brain text-white"></i>
                                </div>
                            </div>
                            <div class="ai-bubble chat-bubble p-4 max-w-[80%]">
                                <div class="typing-indicator">
                                    <span></span>
                                    <span></span>
                                    <span></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Chat Input -->
                    <div class="mt-4 pt-4 border-t border-gray-700">
                        <div class="flex items-center">
                            <button class="bg-gray-700 hover:bg-gray-600 text-gray-300 p-2 rounded-md mr-2">
                                <i class="fas fa-paperclip"></i>
                            </button>
                            <input type="text" id="chatInput" placeholder="Envoyer un message..." 
                                class="flex-grow bg-gray-800 text-white px-4 py-3 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                            <button id="sendMessageBtn" class="ml-2 bg-blue-600 hover:bg-blue-700 text-white px-4 py-3 rounded-md glow-effect">
                                <i class="fas fa-paper-plane"></i>
                            </button>
                        </div>
                        <p class="text-xs text-gray-500 mt-2">
                            DeepMind AI peut faire des erreurs. Vérifiez les informations importantes.
                        </p>
                    </div>
                </div>
                
                <!-- Features Grid -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <div class="terminal-bg rounded-lg p-6 hover:border-blue-500 border border-transparent transition">
                        <div class="flex items-center mb-3">
                            <div class="bg-blue-500 bg-opacity-20 p-2 rounded-md mr-3">
                                <i class="fas fa-lightbulb text-blue-400"></i>
                            </div>
                            <h4 class="font-bold text-white">Idées créatives</h4>
                        </div>
                        <p class="text-gray-400 text-sm">
                            Générez des idées innovantes pour vos projets, articles ou startups.
                        </p>
                    </div>
                    
                    <div class="terminal-bg rounded-lg p-6 hover:border-green-500 border border-transparent transition">
                        <div class="flex items-center mb-3">
                            <div class="bg-green-500 bg-opacity-20 p-2 rounded-md mr-3">
                                <i class="fas fa-code text-green-400"></i>
                            </div>
                            <h4 class="font-bold text-white">Code & Debug</h4>
                        </div>
                        <p class="text-gray-400 text-sm">
                            Écrivez, optimisez et débuggez du code dans plusieurs langages.
                        </p>
                    </div>
                    
                    <div class="terminal-bg rounded-lg p-6 hover:border-purple-500 border border-transparent transition">
                        <div class="flex items-center mb-3">
                            <div class="bg-purple-500 bg-opacity-20 p-2 rounded-md mr-3">
                                <i class="fas fa-file-alt text-purple-400"></i>
                            </div>
                            <h4 class="font-bold text-white">Rédaction</h4>
                        </div>
                        <p class="text-gray-400 text-sm">
                            Créez du contenu de qualité : articles, emails, scripts et plus.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 border-t border-gray-800 mt-12">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-bold mb-4 ai-font">DeepMind AI</h3>
                    <p class="text-gray-400 text-sm">
                        L'assistant d'intelligence artificielle le plus avancé pour booster votre productivité et créativité.
                    </p>
                </div>
                <div>
                    <h3 class="text-white text-sm font-bold mb-4 uppercase">Produit</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Fonctionnalités</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Tarifs</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">API</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Applications</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-white text-sm font-bold mb-4 uppercase">Ressources</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Documentation</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Blog</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Tutoriels</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Support</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-white text-sm font-bold mb-4 uppercase">Legal</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Confidentialité</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Conditions</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white text-sm">Politique cookies</a></li>
                    </ul>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-500 text-sm">
                    © 2023 DeepMind AI. Tous droits réservés.
                </p>
                <div class="flex space-x-6 mt-4 md:mt-0">
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i class="fab fa-linkedin"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i class="fab fa-github"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i class="fab fa-discord"></i>
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const chatMessages = document.getElementById('chatMessages');
            const chatInput = document.getElementById('chatInput');
            const sendMessageBtn = document.getElementById('sendMessageBtn');
            const typingIndicator = document.getElementById('typingIndicator');
            
            // Sample AI responses
            const aiResponses = [
                "L'intelligence artificielle est un domaine fascinant qui évolue rapidement.",
                "Le machine learning est une sous-catégorie de l'IA qui se concentre sur l'apprentissage à partir de données.",
                "Les réseaux de neurones sont inspirés par le fonctionnement du cerveau humain.",
                "L'IA peut être utilisée dans de nombreux domaines comme la santé, la finance et l'éducation.",
                "Les modèles de langage comme moi sont entraînés sur d'énormes quantités de données textuelles."
            ];
            
            // Function to add a new message to the chat
            function addMessage(text, isUser = false) {
                const now = new Date();
                const timeString = `Aujourd'hui, ${now.getHours()}:${now.getMinutes().toString().padStart(2, '0')}`;
                
                const messageDiv = document.createElement('div');
                messageDiv.className = `flex ${isUser ? 'justify-end' : ''}`;
                
                messageDiv.innerHTML = `
                    ${!isUser ? `
                    <div class="flex-shrink-0 mr-3">
                        <div class="bg-blue-600 w-8 h-8 rounded-full flex items-center justify-center">
                            <i class="fas fa-brain text-white"></i>
                        </div>
                    </div>
                    ` : ''}
                    <div class="${isUser ? 'user-bubble' : 'ai-bubble'} chat-bubble p-4 max-w-[80%]">
                        <p class="text-white">${text}</p>
                        <p class="text-xs ${isUser ? 'text-blue-200' : 'text-gray-400'} mt-2">${timeString}</p>
                    </div>
                `;
                
                chatMessages.appendChild(messageDiv);
                chatMessages.scrollTop = chatMessages.scrollHeight;
            }
            
            // Send message button click handler
            sendMessageBtn.addEventListener('click', function() {
                const message = chatInput.value.trim();
                if (message) {
                    // Add user message
                    addMessage(message, true);
                    chatInput.value = '';
                    
                    // Show typing indicator
                    typingIndicator.style.display = 'flex';
                    chatMessages.scrollTop = chatMessages.scrollHeight;
                    
                    // Simulate AI thinking
                    setTimeout(() => {
                        typingIndicator.style.display = 'none';
                        
                        // Get random AI response
                        const randomResponse = aiResponses[Math.floor(Math.random() * aiResponses.length)];
                        addMessage(randomResponse);
                    }, 1500);
                }
            });
            
            // Allow Enter key to send message
            chatInput.addEventListener('keypress', function(e) {
                if (e.key === 'Enter') {
                    sendMessageBtn.click();
                }
            });
            
            // Simulate initial typing animation
            setTimeout(() => {
                const welcomeMessage = document.querySelector('.ai-bubble p');
                welcomeMessage.innerHTML = '';
                
                const text = "Bonjour ! Je suis DeepMind AI, votre assistant intelligent. Comment puis-je vous aider aujourd'hui ?";
                let i = 0;
                
                const typing = setInterval(() => {
                    if (i < text.length) {
                        welcomeMessage.innerHTML += text.charAt(i);
                        i++;
                    } else {
                        clearInterval(typing);
                    }
                }, 30);
            }, 1000);
        });
    </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=docto41/ai-center" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>