File size: 51,230 Bytes
a089720
 
 
 
 
3aa2292
a089720
 
20d253f
a089720
3aa2292
 
a089720
3aa2292
 
 
 
ebb2ace
 
3aa2292
 
 
c873659
3aa2292
c873659
 
3aa2292
 
 
c873659
3aa2292
 
 
f8ec97d
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6fc6278
 
 
 
 
 
 
 
c873659
 
 
3aa2292
6fc6278
3aa2292
 
 
 
 
 
 
 
20d253f
3aa2292
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
 
 
 
20d253f
6fc6278
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6fc6278
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
c873659
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ebb2ace
 
 
3aa2292
 
 
 
 
6fc6278
3aa2292
6fc6278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
3aa2292
6fc6278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
 
 
 
6fc6278
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ebb2ace
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
3aa2292
20d253f
3aa2292
6fc6278
20d253f
3aa2292
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
 
 
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
 
 
 
6fc6278
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ebb2ace
 
 
3aa2292
 
 
6fc6278
3aa2292
 
 
 
 
 
 
 
 
 
ebb2ace
3aa2292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ebb2ace
3aa2292
 
 
 
 
 
 
 
f8ec97d
3aa2292
 
 
 
ebb2ace
 
 
3aa2292
 
 
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
20d253f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3aa2292
6fc6278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
 
 
6fc6278
20d253f
 
6fc6278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
 
6fc6278
 
 
3aa2292
 
20d253f
6fc6278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20d253f
 
6fc6278
3aa2292
 
a089720
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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MegaMarket IA - 9,898,989 Outils IA</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">
    <script src="https://js.stripe.com/v3/"></script>
    <style>
        .hero-gradient {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        }
        .tool-card {
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }
        .category-chip {
            transition: all 0.2s ease;
        }
        .category-chip:hover {
            background-color: #1e40af;
            transform: scale(1.05);
        }
        .stats-bubble {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
        }
        .payment-method {
            transition: all 0.3s ease;
        }
        .payment-method:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .cart-item {
            transition: all 0.2s ease;
        }
        .cart-item:hover {
            background-color: rgba(59, 130, 246, 0.1);
        }
        .modal {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .modal-hidden {
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
        }
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }
        .blur-effect {
            backdrop-filter: blur(5px);
        }
    </style>
</head>
<body class="min-h-screen bg-gray-900 text-white">
    <!-- Navigation -->
    <nav class="bg-gray-800 py-4 px-6 sticky top-0 z-50 shadow-lg blur-effect">
        <div class="container mx-auto flex justify-between items-center">
            <div class="flex items-center">
                <i class="fas fa-robot text-2xl text-blue-400 mr-2"></i>
                <span class="text-xl font-bold">MegaMarket<span class="text-blue-400">IA</span></span>
            </div>
            <div class="hidden md:flex space-x-6">
                <a href="#categories" class="hover:text-blue-300 transition">Catégories</a>
                <a href="#tools" class="hover:text-blue-300 transition">Outils</a>
                <a href="#dashboard" class="hover:text-blue-300 transition">Tableau de bord</a>
            </div>
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <input type="text" placeholder="Rechercher parmi 9,898,989 outils..." 
                           class="bg-gray-700 px-4 py-2 rounded-lg w-64 focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                </div>
                <button onclick="toggleCart()" class="relative">
                    <i class="fas fa-shopping-cart text-xl"></i>
                    <span id="cart-count" class="absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
                </button>
                <button id="login-btn" onclick="toggleAuthModal()" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium">
                    Connexion
                </button>
            </div>
        </div>
    </nav>

    <!-- Shopping Cart Sidebar -->
    <div id="cart-sidebar" class="fixed top-0 right-0 h-full w-96 bg-gray-800 shadow-xl z-50 transform translate-x-full transition-transform duration-300 overflow-y-auto blur-effect">
        <div class="p-6">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold">Votre Panier</h2>
                <button onclick="toggleCart()" class="text-gray-400 hover:text-white">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
            
            <div id="cart-items" class="space-y-4 mb-6">
                <!-- Cart items will be added here dynamically -->
                <div class="text-center text-gray-500 py-10">
                    <i class="fas fa-shopping-cart text-4xl mb-3"></i>
                    <p>Votre panier est vide</p>
                </div>
            </div>
            
            <div class="border-t border-gray-700 pt-4 mb-6">
                <div class="flex justify-between mb-2">
                    <span class="text-gray-400">Sous-total:</span>
                    <span id="cart-subtotal" class="font-bold">€0.00</span>
                </div>
                <div class="flex justify-between mb-4">
                    <span class="text-gray-400">Taxes:</span>
                    <span id="cart-tax" class="font-bold">€0.00</span>
                </div>
                <div class="flex justify-between text-xl font-bold">
                    <span>Total:</span>
                    <span id="cart-total" class="text-blue-400">€0.00</span>
                </div>
            </div>
            
            <div class="space-y-3">
                <button id="paypal-button" class="w-full bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-3 rounded-lg flex items-center justify-center">
                    <i class="fab fa-paypal mr-2"></i> Payer avec PayPal
                </button>
                <button id="stripe-button" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 rounded-lg flex items-center justify-center">
                    <i class="fab fa-cc-stripe mr-2"></i> Payer avec Stripe
                </button>
            </div>
        </div>
    </div>

    <!-- Authentication Modal -->
    <div id="auth-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center modal modal-hidden">
        <div class="bg-gray-800 rounded-lg p-8 w-full max-w-md blur-effect">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold">Connexion / Inscription</h2>
                <button onclick="toggleAuthModal()" class="text-gray-400 hover:text-white">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
            
            <div class="mb-6">
                <label class="block text-gray-400 mb-2">Email</label>
                <input type="email" id="auth-email" class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
            </div>
            
            <div class="mb-6">
                <label class="block text-gray-400 mb-2">Mot de passe</label>
                <input type="password" id="auth-password" class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
            </div>
            
            <div class="flex justify-between items-center mb-6">
                <div>
                    <input type="checkbox" id="remember-me" class="mr-2">
                    <label for="remember-me" class="text-gray-400">Se souvenir de moi</label>
                </div>
                <a href="#" class="text-blue-400 hover:text-blue-300 text-sm">Mot de passe oublié?</a>
            </div>
            
            <button id="login-submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 rounded-lg mb-4">
                Se connecter
            </button>
            
            <div class="text-center text-gray-400 mb-4">OU</div>
            
            <button class="w-full bg-gray-700 hover:bg-gray-600 text-white font-bold py-3 rounded-lg mb-4 flex items-center justify-center">
                <i class="fab fa-google mr-2"></i> Continuer avec Google
            </button>
            
            <div class="text-center text-gray-400">
                Nouveau sur MegaMarket IA? <a href="#" class="text-blue-400 hover:text-blue-300" onclick="switchToRegister()">Créer un compte</a>
            </div>
        </div>
    </div>

    <!-- Hero Section -->
    <section class="hero-gradient py-20 px-6">
        <div class="container mx-auto text-center">
            <h1 class="text-4xl md:text-6xl font-bold mb-6">
                <span class="text-yellow-300">9,898,989</span> Outils IA
            </h1>
            <p class="text-xl md:text-2xl mb-8 max-w-4xl mx-auto">
                La plus grande collection d'assistants IA prêts à l'emploi avec des outils réels et fonctionnels
            </p>
            
            <div class="flex flex-wrap justify-center gap-4 mb-12">
                <div class="stats-bubble px-6 py-3 rounded-full">
                    <span class="font-bold">100%</span> Fonctionnels
                </div>
                <div class="stats-bubble px-6 py-3 rounded-full">
                    Ouverture <span class="font-bold">Automatique</span>
                </div>
                <div class="stats-bubble px-6 py-3 rounded-full">
                    Mise à jour en <span class="font-bold">Temps Réel</span>
                </div>
                <div class="stats-bubble px-6 py-3 rounded-full">
                    <span class="font-bold">Prêts</span> à l'Emploi
                </div>
            </div>
            
            <div class="grid grid-cols-2 md:grid-cols-4 gap-4 max-w-4xl mx-auto">
                <div class="bg-gray-800 bg-opacity-50 p-4 rounded-lg">
                    <div class="text-3xl font-bold text-blue-300">9,898,989</div>
                    <div class="text-sm">Outils IA</div>
                </div>
                <div class="bg-gray-800 bg-opacity-50 p-4 rounded-lg">
                    <div class="text-3xl font-bold text-blue-300">247</div>
                    <div class="text-sm">Catégories</div>
                </div>
                <div class="bg-gray-800 bg-opacity-50 p-4 rounded-lg">
                    <div class="text-3xl font-bold text-blue-300">24/7</div>
                    <div class="text-sm">Disponibilité</div>
                </div>
                <div class="bg-gray-800 bg-opacity-50 p-4 rounded-lg">
                    <div class="text-3xl font-bold text-blue-300"></div>
                    <div class="text-sm">Possibilités</div>
                </div>
            </div>
        </div>
    </section>

    <!-- Categories Section -->
    <section id="categories" class="py-16 px-6 bg-gray-800">
        <div class="container mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12">Toutes les 247 Catégories</h2>
            
            <div class="category-grid mb-8">
                <!-- Catégories générées dynamiquement -->
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Chatbots (1,250,000)</span>
                    <i class="fas fa-comment-dots"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Génération d'Images (980,000)</span>
                    <i class="fas fa-image"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Productivité (875,000)</span>
                    <i class="fas fa-tasks"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Développement (765,000)</span>
                    <i class="fas fa-code"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Audio & Voix (654,000)</span>
                    <i class="fas fa-microphone"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Vidéo (543,000)</span>
                    <i class="fas fa-video"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Marketing (432,000)</span>
                    <i class="fas fa-bullhorn"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Recherche (321,000)</span>
                    <i class="fas fa-search"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Business (210,000)</span>
                    <i class="fas fa-briefcase"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Éducation (198,000)</span>
                    <i class="fas fa-graduation-cap"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Créativité (187,000)</span>
                    <i class="fas fa-paint-brush"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Santé (176,000)</span>
                    <i class="fas fa-heartbeat"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Finance (165,000)</span>
                    <i class="fas fa-coins"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Jeux (154,000)</span>
                    <i class="fas fa-gamepad"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Design (143,000)</span>
                    <i class="fas fa-pencil-ruler"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Réseaux Sociaux (132,000)</span>
                    <i class="fas fa-share-alt"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>E-commerce (121,000)</span>
                    <i class="fas fa-shopping-cart"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Juridique (110,000)</span>
                    <i class="fas fa-gavel"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Immobilier (99,000)</span>
                    <i class="fas fa-home"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Voyage (88,000)</span>
                    <i class="fas fa-plane"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Ressources Humaines (77,000)</span>
                    <i class="fas fa-users"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Agriculture (66,000)</span>
                    <i class="fas fa-tractor"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Environnement (55,000)</span>
                    <i class="fas fa-leaf"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Transport (44,000)</span>
                    <i class="fas fa-truck"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Énergie (33,000)</span>
                    <i class="fas fa-bolt"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Construction (22,000)</span>
                    <i class="fas fa-hammer"></i>
                </a>
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>Mode (11,000)</span>
                    <i class="fas fa-tshirt"></i>
                </a>
                <!-- Les autres catégories seraient générées de la même manière -->
            </div>
            
            <div class="text-center mt-8">
                <button class="border border-blue-500 text-blue-400 hover:bg-blue-900 hover:bg-opacity-50 px-6 py-3 rounded-lg font-medium transition">
                    <i class="fas fa-sync-alt mr-2"></i> Charger plus de catégories
                </button>
            </div>
        </div>
    </section>

    <!-- Tools Section -->
    <section id="tools" class="py-16 px-6 bg-gray-900">
        <div class="container mx-auto">
            <div class="flex justify-between items-center mb-8">
                <h2 class="text-3xl font-bold">Outils IA Populaires</h2>
                <div class="flex items-center space-x-2">
                    <span class="text-gray-400">Trier par :</span>
                    <select class="bg-gray-700 border border-gray-600 rounded px-3 py-1">
                        <option>Plus populaires</option>
                        <option>Nouveautés</option>
                        <option>Meilleures notes</option>
                    </select>
                </div>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <!-- Tool 1 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Khanmigo</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Éducation</span>
                    </div>
                    <p class="text-gray-400 mb-4">Tuteur IA de Khan Academy - Version 4.6</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                            <span class="text-gray-400 ml-1">690</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Khanmigo" data-price="9.99" data-id="1">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
                
                <!-- Tool 2 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Grammarly</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Rédaction</span>
                    </div>
                    <p class="text-gray-400 mb-4">Correcteur et assistant d'écriture - Version 8.4</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <span class="text-gray-400 ml-1">438</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Grammarly" data-price="12.99" data-id="2">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
                
                <!-- Tool 3 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Anthropic</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Chatbots</span>
                    </div>
                    <p class="text-gray-400 mb-4">IA conversationnelle sécurisée - Version 3.6</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                            <span class="text-gray-400 ml-1">317</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Anthropic" data-price="14.99" data-id="3">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
                
                <!-- Tool 4 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Notion AI</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Productivité</span>
                    </div>
                    <p class="text-gray-400 mb-4">Assistant d'écriture intégré à Notion - Version 7.1</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <span class="text-gray-400 ml-1">767</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Notion AI" data-price="8.99" data-id="4">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
                
                <!-- Tool 5 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Runway ML</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Vidéo</span>
                    </div>
                    <p class="text-gray-400 mb-4">Génération et édition vidéo - Version 2.5</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                            <span class="text-gray-400 ml-1">792</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Runway ML" data-price="19.99" data-id="5">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
                
                <!-- Tool 6 -->
                <div class="tool-card p-6 rounded-xl">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="text-xl font-bold">Midjourney</h3>
                        <span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Génération d'Images</span>
                    </div>
                    <p class="text-gray-400 mb-4">Génération d'images par IA - Version 3.1</p>
                    <div class="flex justify-between items-center">
                        <div class="text-yellow-400">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <span class="text-gray-400 ml-1">525</span>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded text-sm font-medium add-to-cart" 
                                data-name="Midjourney" data-price="24.99" data-id="6">
                            Ajouter au panier
                        </button>
                    </div>
                </div>
            </div>
            
            <div class="text-center mt-12">
                <button class="bg-blue-600 hover:bg-blue-700 px-8 py-3 rounded-lg font-bold text-lg transition">
                    Voir plus d'outils (9,898,989+)
                </button>
            </div>
        </div>
    </section>

    <!-- Dashboard Section -->
    <section id="dashboard" class="py-16 px-6 bg-gray-800">
        <div class="container mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12">Tableau de bord</h2>
            
            <div class="bg-gray-700 rounded-xl p-6 mb-8 blur-effect">
                <h3 class="text-xl font-bold mb-6">Informations de paiement</h3>
                
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
                    <div class="payment-method bg-gray-800 p-6 rounded-lg">
                        <div class="flex items-center mb-4">
                            <i class="fab fa-paypal text-3xl text-blue-400 mr-3"></i>
                            <h4 class="text-lg font-bold">PayPal</h4>
                        </div>
                        <p class="text-gray-400 mb-4">Connectez votre compte PayPal pour recevoir des paiements</p>
                        <button class="w-full bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-2 rounded-lg">
                            Connecter PayPal
                        </button>
                    </div>
                    
                    <div class="payment-method bg-gray-800 p-6 rounded-lg">
                        <div class="flex items-center mb-4">
                            <i class="fab fa-cc-stripe text-3xl text-purple-400 mr-3"></i>
                            <h4 class="text-lg font-bold">Stripe</h4>
                        </div>
                        <p class="text-gray-400 mb-4">Connectez votre compte Stripe pour recevoir des paiements</p>
                        <button class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 rounded-lg">
                            Connecter Stripe
                        </button>
                    </div>
                </div>
                
                <div class="bg-gray-800 rounded-lg p-6">
                    <h4 class="text-lg font-bold mb-4">Détails de paiement</h4>
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead>
                                <tr class="text-left border-b border-gray-600">
                                    <th class="pb-2">Date</th>
                                    <th class="pb-2">Méthode</th>
                                    <th class="pb-2">Montant</th>
                                    <th class="pb-2">Statut</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b border-gray-600">
                                    <td class="py-3">15/06/2023</td>
                                    <td>PayPal</td>
                                    <td class="text-green-400">€49.99</td>
                                    <td><span class="bg-green-900 text-green-300 px-2 py-1 rounded text-xs">Payé</span></td>
                                </tr>
                                <tr class="border-b border-gray-600">
                                    <td class="py-3">10/06/2023</td>
                                    <td>Stripe</td>
                                    <td class="text-green-400">€29.99</td>
                                    <td><span class="bg-green-900 text-green-300 px-2 py-1 rounded text-xs">Payé</span></td>
                                </tr>
                                <tr>
                                    <td class="py-3">05/06/2023</td>
                                    <td>PayPal</td>
                                    <td class="text-yellow-400">€19.99</td>
                                    <td><span class="bg-yellow-900 text-yellow-300 px-2 py-1 rounded text-xs">En attente</span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            
            <div class="bg-gray-700 rounded-xl p-6 blur-effect">
                <h3 class="text-xl font-bold mb-6">Abonnement</h3>
                
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                    <div class="bg-gray-800 p-6 rounded-lg border border-gray-600">
                        <h4 class="text-lg font-bold mb-2">Gratuit</h4>
                        <p class="text-gray-400 mb-4">Accès limité aux outils</p>
                        <div class="text-3xl font-bold mb-6">€0<span class="text-gray-400 text-base">/mois</span></div>
                        <ul class="space-y-2 mb-6">
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>3 outils/mois</span>
                            </li>
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Support de base</span>
                            </li>
                            <li class="flex items-center text-gray-500">
                                <i class="fas fa-times text-red-400 mr-2"></i>
                                <span>Accès complet</span>
                            </li>
                        </ul>
                        <button class="w-full bg-gray-700 hover:bg-gray-600 text-white font-bold py-2 rounded-lg">
                            Actuel
                        </button>
                    </div>
                    
                    <div class="bg-gray-800 p-6 rounded-lg border-2 border-blue-500 relative">
                        <div class="absolute top-0 right-0 bg-blue-500 text-white text-xs font-bold px-2 py-1 rounded-bl-lg">POPULAIRE</div>
                        <h4 class="text-lg font-bold mb-2">Premium</h4>
                        <p class="text-gray-400 mb-4">Accès complet aux outils</p>
                        <div class="text-3xl font-bold mb-6">€9.99<span class="text-gray-400 text-base">/mois</span></div>
                        <ul class="space-y-2 mb-6">
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Outils illimités</span>
                            </li>
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Support prioritaire</span>
                            </li>
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Accès complet</span>
                            </li>
                        </ul>
                        <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 rounded-lg">
                            S'abonner
                        </button>
                    </div>
                    
                    <div class="bg-gray-800 p-6 rounded-lg border border-gray-600">
                        <h4 class="text-lg font-bold mb-2">Entreprise</h4>
                        <p class="text-gray-400 mb-4">Pour les équipes et organisations</p>
                        <div class="text-3xl font-bold mb-6">€29.99<span class="text-gray-400 text-base">/mois</span></div>
                        <ul class="space-y-2 mb-6">
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Tous les avantages Premium</span>
                            </li>
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Gestion d'équipe</span>
                            </li>
                            <li class="flex items-center">
                                <i class="fas fa-check text-green-400 mr-2"></i>
                                <span>Support 24/7</span>
                            </li>
                        </ul>
                        <button class="w-full bg-gray-700 hover:bg-gray-600 text-white font-bold py-2 rounded-lg">
                            Contactez-nous
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 py-12 px-6 blur-effect">
        <div class="container mx-auto">
            <div class="flex flex-col md:flex-row justify-between gap-8">
                <div class="md:w-1/3">
                    <div class="flex items-center mb-4">
                        <i class="fas fa-robot text-2xl text-blue-400 mr-2"></i>
                        <span class="text-xl font-bold">MegaMarket<span class="text-blue-400">IA</span></span>
                    </div>
                    <p class="text-gray-400">
                        La plus grande collection d'assistants IA prêts à l'emploi avec 9,898,989 outils réels.
                    </p>
                </div>
                
                <div class="grid grid-cols-2 md:grid-cols-3 gap-8">
                    <div>
                        <h4 class="font-bold text-lg mb-4">Catégories</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Tous (9,898,989)</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Chatbots (1,250,000)</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Génération d'Images (980,000)</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Productivité (875,000)</a></li>
                        </ul>
                    </div>
                    
                    <div>
                        <h4 class="font-bold text-lg mb-4">Ressources</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Tutoriels</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">API</a></li>
                        </ul>
                    </div>
                    
                    <div>
                        <h4 class="font-bold text-lg mb-4">Entreprise</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-white transition">À propos</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Carrières</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-500 mb-4 md:mb-0">© 2023 MegaMarket IA. Tous droits réservés.</p>
                <div class="flex space-x-2">
                    <a href="#" class="text-gray-500 hover:text-white px-3 py-1">Conditions</a>
                    <a href="#" class="text-gray-500 hover:text-white px-3 py-1">Confidentialité</a>
                    <a href="#" class="text-gray-500 hover:text-white px-3 py-1">CGU</a>
                </div>
                <div class="flex items-center mt-4 md:mt-0">
                    <span class="text-gray-500 mr-2">Made with</span>
                    <span class="text-blue-400 font-bold">DeepSite</span>
                    <span class="ml-2">LogoDeepSite - 🧬 Remix</span>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Cart functionality
        let cart = [];
        let isLoggedIn = false;

        // Toggle cart visibility
        function toggleCart() {
            const cartSidebar = document.getElementById('cart-sidebar');
            cartSidebar.classList.toggle('translate-x-full');
            updateCartUI();
        }

        // Toggle auth modal visibility
        function toggleAuthModal() {
            const authModal = document.getElementById('auth-modal');
            authModal.classList.toggle('modal-hidden');
        }

        // Switch to register form
        function switchToRegister() {
            const loginSubmit = document.getElementById('login-submit');
            const loginBtn = document.getElementById('login-btn');
            
            loginSubmit.textContent = "Créer un compte";
            loginBtn.textContent = "Inscription";
        }

        // Add to cart functionality
        document.querySelectorAll('.add-to-cart').forEach(button => {
            button.addEventListener('click', function() {
                if (!isLoggedIn) {
                    toggleAuthModal();
                    return;
                }

                const id = this.getAttribute('data-id');
                const name = this.getAttribute('data-name');
                const price = parseFloat(this.getAttribute('data-price'));
                
                // Check if item already in cart
                const existingItem = cart.find(item => item.id === id);
                
                if (existingItem) {
                    existingItem.quantity += 1;
                } else {
                    cart.push({
                        id,
                        name,
                        price,
                        quantity: 1
                    });
                }
                
                updateCartUI();
                toggleCart();
            });
        });

        // Update cart UI
        function updateCartUI() {
            const cartItemsContainer = document.getElementById('cart-items');
            const cartCount = document.getElementById('cart-count');
            const cartSubtotal = document.getElementById('cart-subtotal');
            const cartTax = document.getElementById('cart-tax');
            const cartTotal = document.getElementById('cart-total');
            
            // Update cart count
            const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
            cartCount.textContent = totalItems;
            
            // Calculate totals
            const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
            const tax = subtotal * 0.2; // 20% tax
            const total = subtotal + tax;
            
            // Update totals display
            cartSubtotal.textContent = `€${subtotal.toFixed(2)}`;
            cartTax.textContent = `€${tax.toFixed(2)}`;
            cartTotal.textContent = `€${total.toFixed(2)}`;
            
            // Update cart items
            if (cart.length === 0) {
                cartItemsContainer.innerHTML = `
                    <div class="text-center text-gray-500 py-10">
                        <i class="fas fa-shopping-cart text-4xl mb-3"></i>
                        <p>Votre panier est vide</p>
                    </div>
                `;
            } else {
                cartItemsContainer.innerHTML = cart.map(item => `
                    <div class="cart-item bg-gray-700 p-4 rounded-lg flex justify-between items-center">
                        <div>
                            <h4 class="font-medium">${item.name}</h4>
                            <p class="text-gray-400 text-sm">€${item.price.toFixed(2)} x ${item.quantity}</p>
                        </div>
                        <div class="flex items-center">
                            <span class="font-bold mr-4">€${(item.price * item.quantity).toFixed(2)}</span>
                            <button class="remove-item text-red-400 hover:text-red-300" data-id="${item.id}">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                `).join('');
                
                // Add event listeners to remove buttons
                document.querySelectorAll('.remove-item').forEach(button => {
                    button.addEventListener('click', function() {
                        const id = this.getAttribute('data-id');
                        cart = cart.filter(item => item.id !== id);
                        updateCartUI();
                    });
                });
            }
        }

        // Login functionality
        document.getElementById('login-submit').addEventListener('click', function() {
            const email = document.getElementById('auth-email').value;
            const password = document.getElementById('auth-password').value;
            
            if (email && password) {
                isLoggedIn = true;
                document.getElementById('login-btn').textContent = "Mon compte";
                toggleAuthModal();
                
                // Show welcome message
                const welcomeMsg = document.createElement('div');
                welcomeMsg.className = 'fixed top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50';
                welcomeMsg.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Connexion réussie!';
                document.body.appendChild(welcomeMsg);
                
                setTimeout(() => {
                    welcomeMsg.remove();
                }, 3000);
            }
        });

        // Payment buttons
        document.getElementById('paypal-button').addEventListener('click', function() {
            if (cart.length === 0) return;
            
            // PayPal integration
            paypal.Buttons({
                createOrder: function(data, actions) {
                    return actions.order.create({
                        purchase_units: [{
                            amount: {
                                value: document.getElementById('cart-total').textContent.substring(1)
                            }
                        }]
                    });
                },
                onApprove: function(data, actions) {
                    return actions.order.capture().then(function(details) {
                        alert('Paiement PayPal réussi pour ' + details.payer.name.given_name);
                        cart = [];
                        updateCartUI();
                    });
                }
            }).render('#paypal-button');
        });

        document.getElementById('stripe-button').addEventListener('click', function() {
            if (cart.length === 0) return;
            
            // Stripe integration
            const stripe = Stripe('pk_test_51N...'); // Your publishable key
            
            fetch('/create-checkout-session', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                },
                body: JSON.stringify({
                    items: cart.map(item => ({
                        id: item.id,
                        quantity: item.quantity
                    }))
                }),
            })
            .then(res => {
                if (res.ok) return res.json()
                return res.json().then(json => Promise.reject(json))
            })
            .then(({ sessionId }) => {
                return stripe.redirectToCheckout({ sessionId })
            })
            .then(result => {
                if (result.error) {
                    alert(result.error.message);
                }
            })
            .catch(e => {
                console.error(e.error);
            });
        });

        // Generate all 247 categories
        function generateAllCategories() {
            const categories = [
                { name: "Chatbots", count: 1250000, icon: "fa-comment-dots" },
                { name: "Génération d'Images", count: 980000, icon: "fa-image" },
                { name: "Productivité", count: 875000, icon: "fa-tasks" },
                { name: "Développement", count: 765000, icon: "fa-code" },
                { name: "Audio & Voix", count: 654000, icon: "fa-microphone" },
                { name: "Vidéo", count: 543000, icon: "fa-video" },
                { name: "Marketing", count: 432000, icon: "fa-bullhorn" },
                { name: "Recherche", count: 321000, icon: "fa-search" },
                { name: "Business", count: 210000, icon: "fa-briefcase" },
                { name: "Éducation", count: 198000, icon: "fa-graduation-cap" },
                { name: "Créativité", count: 187000, icon: "fa-paint-brush" },
                { name: "Santé", count: 176000, icon: "fa-heartbeat" },
                { name: "Finance", count: 165000, icon: "fa-coins" },
                { name: "Jeux", count: 154000, icon: "fa-gamepad" },
                { name: "Design", count: 143000, icon: "fa-pencil-ruler" },
                { name: "Réseaux Sociaux", count: 132000, icon: "fa-share-alt" },
                { name: "E-commerce", count: 121000, icon: "fa-shopping-cart" },
                { name: "Juridique", count: 110000, icon: "fa-gavel" },
                { name: "Immobilier", count: 99000, icon: "fa-home" },
                { name: "Voyage", count: 88000, icon: "fa-plane" },
                { name: "Ressources Humaines", count: 77000, icon: "fa-users" },
                { name: "Agriculture", count: 66000, icon: "fa-tractor" },
                { name: "Environnement", count: 55000, icon: "fa-leaf" },
                { name: "Transport", count: 44000, icon: "fa-truck" },
                { name: "Énergie", count: 33000, icon: "fa-bolt" },
                { name: "Construction", count: 22000, icon: "fa-hammer" },
                { name: "Mode", count: 11000, icon: "fa-tshirt" }
                // Ajouter les autres catégories ici...
            ];

            const container = document.querySelector('.category-grid');
            container.innerHTML = categories.map(cat => `
                <a href="#" class="category-chip bg-gray-700 hover:bg-blue-900 px-4 py-2 rounded-lg flex justify-between">
                    <span>${cat.name} (${cat.count.toLocaleString()})</span>
                    <i class="fas ${cat.icon}"></i>
                </a>
            `).join('');
        }

        // Initialize
        updateCartUI();
        generateAllCategories();
    </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/hyper-assistant" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>