File size: 64,117 Bytes
472efb7
 
 
 
 
bbcacec
472efb7
bbcacec
472efb7
bbcacec
 
 
472efb7
bbcacec
 
472efb7
bbcacec
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
472efb7
bbcacec
 
472efb7
bbcacec
 
472efb7
bbcacec
 
472efb7
bbcacec
 
 
 
 
472efb7
bbcacec
 
 
 
 
472efb7
 
 
bbcacec
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
 
 
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
472efb7
 
 
bbcacec
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
 
bbcacec
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
b6c732c
bbcacec
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
472efb7
 
 
bbcacec
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
b6c732c
bbcacec
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
bbcacec
 
 
 
 
 
 
472efb7
 
bbcacec
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
472efb7
b6c732c
bbcacec
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
 
 
 
 
bbcacec
 
 
 
472efb7
bbcacec
472efb7
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
 
 
bbcacec
 
 
 
23f7bee
 
bbcacec
 
 
 
 
 
 
23f7bee
bbcacec
 
23f7bee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbcacec
 
 
23f7bee
 
bbcacec
23f7bee
bbcacec
 
 
 
23f7bee
 
bbcacec
23f7bee
 
 
 
 
 
 
 
 
 
bbcacec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23f7bee
 
 
 
 
 
 
 
bbcacec
 
 
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
973
974
975
976
977
978
979
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MegaFlix - 6,524,111 films en streaming automatique</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>
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .floating {
            animation: float 6s ease-in-out infinite;
        }
        .gradient-text {
            background: linear-gradient(90deg, #ff4d4d, #f9cb28, #42ff75, #4d79ff, #c04dff);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: gradient 15s ease infinite;
        }
        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .stats-counter {
            font-family: 'Courier New', monospace;
        }
        .film-card:hover .film-overlay {
            opacity: 1;
        }
        .scroll-container {
            scrollbar-width: none;
        }
        .scroll-container::-webkit-scrollbar {
            display: none;
        }
        .ai-grid {
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 30%, rgba(0, 200, 255, 0.1) 0%, transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(162, 0, 255, 0.1) 0%, transparent 30%);
        }
        .film-poster {
            transition: transform 0.3s ease;
        }
        .film-card:hover .film-poster {
            transform: scale(1.05);
        }
    </style>
</head>
<body class="bg-black text-white min-h-screen">
    <!-- Barre de navigation -->
    <nav class="bg-gray-900/80 backdrop-blur-md fixed w-full z-50 border-b border-gray-800">
        <div class="container mx-auto px-6 py-4 flex justify-between items-center">
            <div class="flex items-center space-x-4">
                <div class="w-12 h-12 bg-gradient-to-r from-red-600 to-purple-600 rounded-lg flex items-center justify-center">
                    <i class="fas fa-film text-2xl"></i>
                </div>
                <h1 class="text-3xl font-bold gradient-text">MegaFlix</h1>
            </div>
            <div class="hidden md:flex items-center space-x-8">
                <a href="#" class="hover:text-red-500 transition">Accueil</a>
                <a href="#films" class="hover:text-red-500 transition">Films</a>
                <a href="#series" class="hover:text-red-500 transition">Séries</a>
                <a href="#categories" class="hover:text-red-500 transition">Catégories</a>
                <a href="#nouveautes" class="hover:text-red-500 transition">Nouveautés</a>
            </div>
            <div class="flex items-center space-x-4">
                <button class="px-4 py-2 bg-gradient-to-r from-red-600 to-purple-600 rounded-full font-medium hover:opacity-90 transition" onclick="openIADashboard()">
                    <i class="fas fa-robot mr-2"></i> IA Dashboard
                </button>
                <button class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center hover:bg-gray-700 transition" onclick="openLogin()">
                    <i class="fas fa-user"></i>
                </button>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="pt-32 pb-20 px-6 ai-grid">
        <div class="container mx-auto flex flex-col md:flex-row items-center">
            <div class="md:w-1/2 mb-12 md:mb-0">
                <h2 class="text-5xl md:text-6xl font-bold mb-6 leading-tight">
                    <span class="gradient-text">6,524,111 films</span> <br>
                    gérés par <span class="text-red-500">142,521 IA</span>
                </h2>
                <p class="text-xl text-gray-400 mb-8">
                    Le plus grand système de streaming automatisé au monde. Découvrez des films en français 24h/24 grâce à notre armée d'intelligences artificielles.
                </p>
                <div class="flex flex-wrap gap-4">
                    <button class="px-8 py-4 bg-gradient-to-r from-red-600 to-purple-600 rounded-full font-bold text-lg hover:opacity-90 transition flex items-center" onclick="openRandomMovie()">
                        <i class="fas fa-play mr-3"></i> Regarder maintenant
                    </button>
                    <button class="px-8 py-4 bg-gray-800 rounded-full font-bold text-lg hover:bg-gray-700 transition flex items-center" onclick="scrollToFilms()">
                        <i class="fas fa-info-circle mr-3"></i> En savoir plus
                    </button>
                </div>
            </div>
            <div class="md:w-1/2 relative floating">
                <div class="relative">
                    <div class="absolute -inset-4 bg-gradient-to-r from-red-600 to-purple-600 rounded-3xl blur-lg opacity-30"></div>
                    <div class="relative bg-gray-900 rounded-2xl overflow-hidden border border-gray-800">
                        <img src="https://image.tmdb.org/t/p/original/8Vt6mWEReuy4Of61Lnj5Xj704m8.jpg" 
                             alt="Système IA MegaFlix" class="w-full h-auto">
                        <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent flex items-end p-6">
                            <div>
                                <div class="text-sm text-gray-400 mb-2">Recommandé par l'IA</div>
                                <h3 class="text-2xl font-bold mb-2">Dune: Partie 2</h3>
                                <div class="flex items-center space-x-4 text-sm">
                                    <span class="text-green-500">97% Match IA</span>
                                    <span>2024</span>
                                    <span>2h46m</span>
                                </div>
                                <button class="mt-4 px-6 py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Dune: Partie 2', 'https://www.youtube.com/embed/WarMeLeeswQ')">
                                    <i class="fas fa-play mr-2"></i> Regarder
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Statistiques en direct -->
    <section class="py-12 bg-gradient-to-b from-gray-900/50 to-black">
        <div class="container mx-auto px-6">
            <div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center">
                <div class="bg-gray-900/50 rounded-xl p-6 border border-gray-800">
                    <div class="text-4xl md:text-5xl font-bold text-red-500 stats-counter" data-count="6524111">6,524,111</div>
                    <div class="text-gray-400 mt-2">Films disponibles</div>
                </div>
                <div class="bg-gray-900/50 rounded-xl p-6 border border-gray-800">
                    <div class="text-4xl md:text-5xl font-bold text-purple-500 stats-counter" data-count="142521">142,521</div>
                    <div class="text-gray-400 mt-2">IA actives</div>
                </div>
                <div class="bg-gray-900/50 rounded-xl p-6 border border-gray-800">
                    <div class="text-4xl md:text-5xl font-bold text-blue-500 stats-counter" data-count="12784">12,784</div>
                    <div class="text-gray-400 mt-2">Nouveaux films/jour</div>
                </div>
                <div class="bg-gray-900/50 rounded-xl p-6 border border-gray-800">
                    <div class="text-4xl md:text-5xl font-bold text-green-500 stats-counter" data-count="99">99.9</div>
                    <div class="text-gray-400 mt-2">% Disponibilité</div>
                </div>
            </div>
        </div>
    </section>

    <!-- Films recommandés -->
    <section id="films" class="py-16 px-6 bg-gradient-to-b from-black to-gray-900/50">
        <div class="container mx-auto">
            <div class="flex justify-between items-center mb-10">
                <h2 class="text-3xl font-bold">Films Populaires</h2>
                <div class="flex space-x-4">
                    <button class="w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center hover:bg-gray-700 transition" onclick="scrollFilmsLeft('popular')">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center hover:bg-gray-700 transition" onclick="scrollFilmsRight('popular')">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
            
            <div class="relative">
                <div id="popular-films" class="scroll-container overflow-x-auto pb-6 -mx-2">
                    <div class="flex space-x-6 px-2" style="width: max-content;">
                        <!-- Film 1 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/1pdfLvkbY9ohJlCjQH2CZjjYVvJ.jpg" 
                                     alt="Oppenheimer" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Oppenheimer</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">95% Match</span>
                                        <span>2023</span>
                                        <span>3h00m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">L'histoire du physicien J. Robert Oppenheimer et son rôle dans le développement de la bombe atomique.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Oppenheimer', 'https://www.youtube.com/embed/uYPbbksJxIg')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 2 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/8Vt6mWEReuy4Of61Lnj5Xj704m8.jpg" 
                                     alt="Dune: Partie 2" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Dune: Partie 2</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">97% Match</span>
                                        <span>2024</span>
                                        <span>2h46m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Paul Atreides s'unit avec les Fremen pour se venger des conspirateurs qui ont détruit sa famille.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Dune: Partie 2', 'https://www.youtube.com/embed/WarMeLeeswQ')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 3 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/kDp1vUBnMpe8ak4rjgl3cLELqjU.jpg" 
                                     alt="The Batman" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">The Batman</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">93% Match</span>
                                        <span>2022</span>
                                        <span>2h56m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Batman enquête sur la corruption à Gotham et affronte le Riddler, un tueur en série ciblant l'élite.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('The Batman', 'https://www.youtube.com/embed/mqqft2x_Aa4')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 4 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/8Gxv8gSFCU0XGDNyEG9ZIQW3dCw.jpg" 
                                     alt="Avatar 2" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Avatar 2</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">91% Match</span>
                                        <span>2022</span>
                                        <span>3h12m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Jake Sully et Ney'tiri forment une famille et font tout pour rester ensemble face à une nouvelle menace.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Avatar 2', 'https://www.youtube.com/embed/d9MyW72ELq0')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 5 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/1X7vow16X7CnCi9kOALzgUNW39M.jpg" 
                                     alt="Top Gun: Maverick" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Top Gun: Maverick</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">96% Match</span>
                                        <span>2022</span>
                                        <span>2h11m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Maverick affronte son passé tout en formant un groupe de jeunes pilotes pour une mission périlleuse.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Top Gun: Maverick', 'https://www.youtube.com/embed/giXco2jaZ_4')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 6 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/9dKCd55IuTT5QRs989m9Qlb7d2B.jpg" 
                                     alt="Interstellar" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Interstellar</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">94% Match</span>
                                        <span>2014</span>
                                        <span>2h49m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Une équipe d'explorateurs voyage à travers un trou de ver dans l'espace pour sauver l'humanité.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Interstellar', 'https://www.youtube.com/embed/zSWdZVtXT7E')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 7 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/8UlWHLMpgZm9bx6QYh0NFoq67TZ.jpg" 
                                     alt="The Dark Knight" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flexocol justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">The Dark Knight</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">98% Match</span>
                                        <span>2008</span>
                                        <span>2h32m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Batman, Gordon et Harvey Dent s'unissent contre le chaos orchestré par le Joker à Gotham.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('The Dark Knight', 'https://www.youtube.com/embed/EXeTwQWrcwY')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 8 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/7WsyChQLEftFiDOVTGkv3hFpyyt.jpg" 
                                     alt="Avengers: Endgame" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Avengers: Endgame</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">95% Match</span>
                                        <span>2019</span>
                                        <span>3h01m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Les Avengers tentent de restaurer l'univers après les événements dévastateurs de Infinity War.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Avengers: Endgame', 'https://www.youtube.com/embed/TcMBFSGVi1c')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Nouveautés -->
    <section id="nouveautes" class="py-16 px-6 bg-black">
        <div class="container mx-auto">
            <div class="flex justify-between items-center mb-10">
                <h2 class="text-3xl font-bold">Nouveautés</h2>
                <div class="flex space-x-4">
                    <button class="w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center hover:bg-gray-700 transition" onclick="scrollFilmsLeft('new')">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center hover:bg-gray-700 transition" onclick="scrollFilmsRight('new')">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
            
            <div class="relative">
                <div id="new-films" class="scroll-container overflow-x-auto pb-6 -mx-2">
                    <div class="flex space-x-6 px-2" style="width: max-content;">
                        <!-- Film 1 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/1XDDXPXGiI8id7MrUxK36ke7gkX.jpg" 
                                     alt="Furiosa" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Furiosa</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">92% Match</span>
                                        <span>2024</span>
                                        <span>2h28m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">L'histoire de la jeune Furiosa avant sa rencontre avec Max dans Fury Road.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Furiosa', 'https://www.youtube.com/embed/XJMuhwVlca4')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 2 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/4MCKNAc6AbWjEsM2h9Xc29owo4z.jpg" 
                                     alt="Deadpool & Wolverine" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Deadpool & Wolverine</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">96% Match</span>
                                        <span>2024</span>
                                        <span>2h07m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Deadpool rejoint les Marvel Studios avec Wolverine dans un voyage qui changera l'histoire du MCU.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Deadpool & Wolverine', 'https://www.youtube.com/embed/avb5TqS4KdA')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 3 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/5cCfqeUH2f5Gnu7Lh2xspY5dHGV.jpg" 
                                     alt="Kingdom of the Planet of the Apes" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Le Planète des Singes : Le Nouveau Royaume</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">90% Match</span>
                                        <span>2024</span>
                                        <span>2h25m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Des générations après le règne de César, un jeune singe entreprend un voyage qui le mènera à remettre en question tout ce qu'il sait sur le passé.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Le Planète des Singes : Le Nouveau Royaume', 'https://www.youtube.com/embed/3FGHB2qT0Xk')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 4 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/4LrL40XecjGLRpX5I2gzMTUt04l.jpg" 
                                     alt="Godzilla x Kong: The New Empire" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Godzilla x Kong: The New Empire</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">88% Match</span>
                                        <span>2024</span>
                                        <span>1h55m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Godzilla et Kong s'unissent contre une menace colossale enfouie dans notre monde, mettant en péril leur existence et la nôtre.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Godzilla x Kong: The New Empire', 'https://www.youtube.com/embed/lV1OOlGwExM')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Film 5 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/1NpIg06HIA3bGHVQCBnOFh8VGOq.jpg" 
                                     alt="The Fall Guy" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">The Fall Guy</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">89% Match</span>
                                        <span>2024</span>
                                        <span>2h06m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Un cascadeur retourne au travail pour retrouver une star disparue, résoudre un complot et reconquérir son ex.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('The Fall Guy', 'https://www.youtube.com/embed/5z2FTTBlDLU')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 6 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/1X4h40fcB4WWUmIBK0auT4zRBAV.jpg" 
                                     alt="Civil War" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Civil War</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">93% Match</span>
                                        <span>2024</span>
                                        <span>1h49m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Un groupe de journalistes voyage à travers une Amérique déchirée par la guerre alors que le gouvernement attaque ses propres citoyens.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Civil War', 'https://www.youtube.com/embed/aDyQxtg0V2w')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 7 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/2KGxQFV9Wp1MshPBf8BuqWUgVAX.jpg" 
                                     alt="Challengers" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">Challengers</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">91% Match</span>
                                        <span>2024</span>
                                        <span>2h11m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Tashi, ancienne prodige du tennis, entraîne son mari pour affronter son ex-petit ami dans un tournoi.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('Challengers', 'https://www.youtube.com/embed/bYq2zZUnX8A')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Film 8 -->
                        <div class="flex-shrink-0 w-64 film-card">
                            <div class="relative rounded-xl overflow-hidden">
                                <img src="https://image.tmdb.org/t/p/w500/5Eip60UDiPLASyKjmHPMruggTc4.jpg" 
                                     alt="The First Omen" class="w-full h-80 object-cover film-poster">
                                <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent film-overlay opacity-0 transition flex flex-col justify-end p-4">
                                    <h3 class="text-xl font-bold mb-1">The First Omen</h3>
                                    <div class="flex items-center space-x-4 text-sm mb-3">
                                        <span class="text-green-500">87% Match</span>
                                        <span>2024</span>
                                        <span>1h59m</span>
                                    </div>
                                    <p class="text-sm text-gray-300 line-clamp-2">Une jeune femme envoyée à Rome découvre une conspiration terrifiante qui la pousse à affronter ses croyances.</p>
                                    <button class="mt-4 w-full py-2 bg-red-600 rounded-lg font-medium hover:bg-red-700 transition" onclick="openMoviePlayerFullscreen('The First Omen', 'https://www.youtube.com/embed/6FgUUO9Ztd0')">
                                        <i class="fas fa-play mr-2"></i> Regarder
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Catégories -->
    <section id="categories" class="py-16 px-6 bg-gradient-to-b from-gray-900/50 to-black">
        <div class="container mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12">Catégories Populaires</h2>
            
            <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6">
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-red-500 transition flex flex-col items-center" onclick="openCategory('Action')">
                    <i class="fas fa-explosion text-3xl text-red-500 mb-3"></i>
                    <span class="font-medium">Action</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-purple-500 transition flex flex-col items-center" onclick="openCategory('Science-Fiction')">
                    <i class="fas fa-rocket text-3xl text-purple-500 mb-3"></i>
                    <span class="font-medium">Science-Fiction</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-blue-500 transition flex flex-col items-center" onclick="openCategory('Aventure')">
                    <i class="fas fa-mountain text-3xl text-blue-500 mb-3"></i>
                    <span class="font-medium">Aventure</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-green-500 transition flex flex-col items-center" onclick="openCategory('Comédie')">
                    <i class="fas fa-laugh-squint text-3xl text-green-500 mb-3"></i>
                    <span class="font-medium">Comédie</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-yellow-500 transition flex flex-col items-center" onclick="openCategory('Drame')">
                    <i class="fas fa-theater-masks text-3xl text-yellow-500 mb-3"></i>
                    <span class="font-medium">Drame</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-pink-500 transition flex flex-col items-center" onclick="openCategory('Horreur')">
                    <i class="fas fa-ghost text-3xl text-pink-500 mb-3"></i>
                    <span class="font-medium">Horreur</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-indigo-500 transition flex flex-col items-center" onclick="openCategory('Thriller')">
                    <i class="fas fa-user-secret text-3xl text-indigo-500 mb-3"></i>
                    <span class="font-medium">Thriller</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-red-400 transition flex flex-col items-center" onclick="openCategory('Romance')">
                    <i class="fas fa-heart text-3xl text-red-400 mb-3"></i>
                    <span class="font-medium">Romance</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-teal-500 transition flex flex-col items-center" onclick="openCategory('Animation')">
                    <i class="fas fa-dragon text-3xl text-teal-500 mb-3"></i>
                    <span class="font-medium">Animation</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-orange-500 transition flex flex-col items-center" onclick="openCategory('Fantasy')">
                    <i class="fas fa-hat-wizard text-3xl text-orange-500 mb-3"></i>
                    <span class="font-medium">Fantasy</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-gray-400 transition flex flex-col items-center" onclick="openCategory('Documentaire')">
                    <i class="fas fa-video text-3xl text-gray-400 mb-3"></i>
                    <span class="font-medium">Documentaire</span>
                </a>
                
                <a href="#" class="bg-gray-900/50 rounded-xl p-6 border border-gray-800 hover:border-blue-400 transition flex flex-col items-center" onclick="openCategory('Familial')">
                    <i class="fas fa-home text-3xl text-blue-400 mb-3"></i>
                    <span class="font-medium">Familial</span>
                </a>
            </div>
        </div>
    </section>

    <!-- Système IA -->
    <section class="py-20 px-6 bg-black">
        <div class="container mx-auto">
            <h2 class="text-4xl font-bold text-center mb-16 gradient-text">Notre Armée d'Intelligences Artificielles</h2>
            
            <div class="grid md:grid-cols-2 gap-12 items-center">
                <div>
                    <div class="relative rounded-3xl overflow-hidden border border-gray-800">
                        <img src="https://images.unsplash.com/photo-1677442135136-760c813a743d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" 
                             alt="Système IA MegaFlix" class="w-full h-auto">
                        <div class="absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent flex items-end p-8">
                            <div>
                                <h3 class="text-2xl font-bold mb-2">Centre de Contrôle IA</h3>
                                <p class="text-gray-300">142,521 intelligences artificielles travaillant en harmonie pour vous offrir le meilleur contenu.</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="space-y-8">
                        <div class="flex items-start">
                            <div class="w-14 h-14 bg-red-900/20 rounded-xl flex items-center justify-center mr-6">
                                <i class="fas fa-brain text-2xl text-red-500"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold mb-2">Réseau Neuronal Global</h3>
                                <p class="text-gray-400">
                                    Notre réseau de 50,000 IA d'apprentissage profond analyse en permanence les tendances pour anticiper vos désirs.
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="w-14 h-14 bg-purple-900/20 rounded-xl flex items-center justify-center mr-6">
                                <i class="fas fa-language text-2xl text-purple-500"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold mb-2">Traduction Automatique</h3>
                                <p class="text-gray-400">
                                    30,000 IA de traduction garantissent des sous-titres et doublages parfaits en français et 48 autres langues.
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="w-14 h-14 bg-blue-900/20 rounded-xl flex items-center justify-center mr-6">
                                <i class="fas fa-bolt text-2xl text-blue-500"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold mb-2">Optimisation en Temps Réel</h3>
                                <p class="text-gray-400">
                                    62,521 IA d'optimisation ajustent la qualité vidéo en fonction de votre connexion pour un streaming parfait.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Abonnement -->
    <section class="py-20 px-6 bg-gradient-to-b from-gray-900/50 to-black">
        <div class="container mx-auto max-w-4xl">
            <h2 class="text-4xl font-bold text-center mb-4 gradient-text">Accès Illimité</h2>
            <p class="text-xl text-center text-gray-400 mb-16">Choisissez l'abonnement qui vous convient</p>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-gray-900/50 rounded-2xl p-8 border border-gray-800 hover:border-red-500 transition group">
                    <h3 class="text-2xl font-bold mb-2">Standard</h3>
                    <p class="text-gray-400 mb-6">Accès à 3,000,000 films et séries</p>
                    <div class="text-5xl font-bold mb-6">9,99€ <span class="text-sm font-normal text-gray-400">/mois</span></div>
                    <ul class="space-y-3 mb-8">
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>3 écrans simultanés</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Qualité Full HD</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Recommandations basiques</span>
                        </li>
                    </ul>
                    <button class="w-full py-4 bg-gray-800 rounded-xl font-bold hover:bg-gray-700 transition" onclick="openSubscription('Standard')">
                        Choisir cet abonnement
                    </button>
                </div>
                
                <div class="bg-gradient-to-br from-gray-900 to-red-900/20 rounded-2xl p-8 border border-red-500 relative overflow-hidden">
                    <div class="absolute top-4 right-4 bg-red-600 text-xs font-bold px-3 py-1 rounded-full">
                        POPULAIRE
                    </div>
                    <h3 class="text-2xl font-bold mb-2">Premium IA</h3>
                    <p class="text-gray-400 mb-6">Accès à TOUS les 6,524,111 films et séries</p>
                    <div class="text-5xl font-bold mb-6">19,99€ <span class="text-sm font-normal text-gray-400">/mois</span></div>
                    <ul class="space-y-3 mb-8">
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>10 écrans simultanés</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Qualité 4K HDR</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Recommandations IA avancées</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Accès prioritaire aux nouveaux films</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check text-green-500 mr-3"></i>
                            <span>Films personnalisés générés par IA</span>
                        </li>
                    </ul>
                    <button class="w-full py-4 bg-gradient-to-r from-red-600 to-purple-600 rounded-xl font-bold hover:opacity-90 transition" onclick="openSubscription('Premium IA')">
                        Choisir cet abonnement
                    </button>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-black py-12 px-6 border-t border-gray-900">
        <div class="container mx-auto">
            <div class="grid grid-cols-2 md:grid-cols-4 gap-12 mb-12">
                <div>
                    <h3 class="text-lg font-bold mb-4">MegaFlix</h3>
                    <ul class="space-y-3 text-gray-400">
                        <li><a href="#" class="hover:text-white transition">À propos</a></li>
                        <li><a href="#" class="hover:text-white transition">Carrières</a></li>
                        <li><a href="#" class="hover:text-white transition">Technologie IA</a></li>
                        <li><a href="#" class="hover:text-white transition">Contact</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Légal</h3>
                    <ul class="space-y-3 text-gray-400">
                        <li><a href="#" class="hover:text-white transition">Conditions d'utilisation</a></li>
                        <li><a href="#" class="hover:text-white transition">Confidentialité</a></li>
                        <li><a href="#" class="hover:text-white transition">Cookies</a></li>
                        <li><a href="#" class="hover:text-white transition">Droits d'auteur</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Aide</h3>
                    <ul class="space-y-3 text-gray-400">
                        <li><a href="#" class="hover:text-white transition">Centre d'aide</a></li>
                        <li><a href="#" class="hover:text-white transition">FAQ IA</a></li>
                        <li><a href="#" class="hover:text-white transition">Statut du service</a></li>
                        <li><a href="#" class="hover:text-white transition">Accessibilité</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Réseaux</h3>
                    <div class="flex space-x-4 mb-6">
                        <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
                            <i class="fab fa-facebook-f"></i>
                        </a>
                        <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
                            <i class="fab fa-twitter"></i>
                        </a>
                        <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
                            <i class="fab fa-instagram"></i>
                        </a>
                        <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
                            <i class="fab fa-youtube"></i>
                        </a>
                    </div>
                    <p class="text-gray-400">
                        Téléchargez notre application mobile pour une expérience optimisée par IA.
                    </p>
                </div>
            </div>
            
            <div class="pt-8 border-t border-gray-900 flex flex-col md:flex-row justify-between items-center">
                <div class="text-gray-500 text-sm mb-4 md:mb-0">
                    © 2023 MegaFlix Systems. Tous droits réservés.
                </div>
                <div class="flex items-center space-x-6">
                    <span class="text-gray-500 text-sm flex items-center">
                        <i class="fas fa-globe mr-2"></i> Français
                    </span>
                    <span class="text-gray-500 text-sm flex items-center">
                        <i class="fas fa-server mr-2"></i> Serveur IA #142,521
                    </span>
                </div>
            </div>
        </div>
    </footer>

    <!-- Scripts -->
    <script>
        // Animation des compteurs
        function animateCounters() {
            const counters = document.querySelectorAll('.stats-counter');
            const speed = 200;
            
            counters.forEach(counter => {
                const target = +counter.getAttribute('data-count');
                const count = +counter.innerText.replace(/,/g, '');
                const increment = target / speed;
                
                if (count < target) {
                    counter.innerText = Math.ceil(count + increment).toLocaleString();
                    setTimeout(animateCounters, 1);
                } else {
                    counter.innerText = target.toLocaleString();
                }
            });
        }
        
        // Démarrer l'animation après le chargement
        window.addEventListener('load', animateCounters);
        
        // Simulation de l'activité IA
        setInterval(() => {
            const iaCounter = document.querySelector('.stats-counter[data-count="142521"]');
            const current = +iaCounter.getAttribute('data-count');
            const fluctuation = Math.floor(Math.random() * 21) - 10; // -10 à +10
            const newCount = Math.max(142000, Math.min(143000, current + fluctuation));
            iaCounter.setAttribute('data-count', newCount);
            iaCounter.innerText = newCount.toLocaleString();
        }, 3000);
        
        // Simulation de nouveaux films ajoutés
        setInterval(() => {
            const filmCounter = document.querySelector('.stats-counter[data-count="6524111"]');
            const current = +filmCounter.getAttribute('data-count');
            const newFilms = Math.floor(Math.random() * 100) + 50; // 50 à 150 nouveaux films
            const newCount = current + newFilms;
            filmCounter.setAttribute('data-count', newCount);
            filmCounter.innerText = newCount.toLocaleString();
        }, 5000);

        // Fonction pour ouvrir un lecteur de film en plein écran
        function openMoviePlayerFullscreen(title, videoUrl) {
            // Créer une nouvelle fenêtre centrée
            const width = window.screen.width * 0.9;
            const height = window.screen.height * 0.9;
            const left = (screen.width - width) / 2;
            const top = (screen.height - height) / 2;
            
            const features = `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes,toolbar=no,location=no`;
            
            const playerWindow = window.open('', `MegaFlix - ${title}`, features);
            
            // HTML pour la fenêtre de lecture
            playerWindow.document.write(`
                <!DOCTYPE html>
                <html lang="fr">
                <head>
                    <meta charset="UTF-8">
                    <meta name="viewport" content="width=device-width, initial-scale=1.0">
                    <title>${title} - MegaFlix</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>
                        body {
                            background-color: #000;
                            color: #fff;
                            font-family: Arial, sans-serif;
                            margin: 0;
                            padding: 0;
                            height: 100vh;
                            overflow: hidden;
                        }
                        .player-container {
                            position: relative;
                            width: 100%;
                            height: 100vh;
                        }
                        .player-container iframe {
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            border: none;
                        }
                        .controls {
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            right: 0;
                            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
                            padding: 20px;
                            display: flex;
                            justify-content: center;
                            z-index: 10;
                        }
                        .control-btn {
                            background-color: rgba(30, 30, 30, 0.7);
                            color: white;
                            border: none;
                            border-radius: 50%;
                            width: 50px;
                            height: 50px;
                            margin: 0 10px;
                            cursor: pointer;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            font-size: 20px;
                        }
                        .control-btn:hover {
                            background-color: rgba(255, 0, 0, 0.7);
                        }
                        .header {
                            position: absolute;
                            top: 0;
                            left: 0;
                            right: 0;
                            background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
                            padding: 15px;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            z-index: 10;
                        }
                        .close-btn {
                            background-color: rgba(255, 0, 0, 0.7);
                            color: white;
                            border: none;
                            border-radius: 5px;
                            padding: 8px 15px;
                            cursor: pointer;
                            font-weight: bold;
                        }
                        .close-btn:hover {
                            background-color: rgba(255, 0, 0, 0.9);
                        }
                    </style>
                </head>
                <body>
                    <div class="header">
                        <h1 class="text-xl font-bold">${title}</h1>
                        <button class="close-btn" onclick="window.close()">
                            <i class="fas fa-times mr-1"></i> Fermer
                        </button>
                    </div>
                    
                    <div class="player-container">
                        <iframe src="${videoUrl}?autoplay=1&controls=0&modestbranding=1&rel=0&showinfo=0" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
                        
                        <div class="controls">
                            <button class="control-btn" onclick="document.querySelector('iframe').contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*')">
                                <i class="fas fa-play"></i>
                            </button>
                            <button class="control-btn" onclick="document.querySelector('iframe').contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*')">
                                <i class="fas fa-pause"></i>
                            </button>
                            <button class="control-btn" onclick="toggleFullscreen()">
                                <i class="fas fa-expand"></i>
                            </button>
                        </div>
                    </div>
                    
                    <script>
                        function toggleFullscreen() {
                            if (!document.fullscreenElement) {
                                document.documentElement.requestFullscreen().catch(err => {
                                    console.error('Erreur Fullscreen:', err);
                                });
                            } else {
                                if (document.exitFullscreen) {
                                    document.exitFullscreen();
                                }
                            }
                        }
                        
                        // Détection de la fin de la vidéo
                        window.addEventListener('message', function(event) {
                            if (event.data === 'ended') {
                                // Vous pouvez ajouter ici une logique pour passer à la vidéo suivante
                                console.log('La vidéo est terminée');
                            }
                        });
                    </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/code-master" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
                </html>