Spaces:
Running

File size: 51,001 Bytes
e28e786
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ScriptToVideo AI Pro - Vidéos Longues</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>
        .chapter-marker {
            position: absolute;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: #6366f1;
        }
        .chapter-marker::after {
            content: attr(data-chapter);
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #6366f1;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            transform: translateX(-50%);
        }
        .memory-badge {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            padding: 2px 4px;
            border-radius: 4px;
            font-size: 10px;
        }
        .timeline-chapter {
            background-color: rgba(99, 102, 241, 0.2);
            position: absolute;
            height: 100%;
        }
        .asset-reused {
            border: 2px solid #10b981;
        }
        .animate-float {
            animation: float 6s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .waveform-container {
            background: linear-gradient(to right, #e0e7ff, #c7d2fe, #a5b4fc);
        }
        .editor-line-numbers {
            counter-reset: line;
        }
        .editor-line-numbers div::before {
            counter-increment: line;
            content: counter(line);
            display: inline-block;
            width: 2em;
            padding-right: 1em;
            margin-right: 1em;
            color: #9ca3af;
            text-align: right;
            border-right: 1px solid #e5e7eb;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans text-gray-800">
    <!-- Header with Pro Badge -->
    <header class="bg-gradient-to-r from-indigo-700 to-purple-800 text-white">
        <div class="container mx-auto px-4 py-4 flex justify-between items-center">
            <div class="flex items-center space-x-3">
                <i class="fas fa-film text-2xl"></i>
                <div>
                    <h1 class="text-xl font-bold">ScriptToVideo AI <span class="text-xs bg-yellow-400 text-indigo-900 px-2 py-1 rounded-full ml-2">PRO</span></h1>
                    <p class="text-xs opacity-80">Optimisé pour les vidéos longues (15-30 min)</p>
                </div>
            </div>
            <div class="flex items-center space-x-4">
                <button class="bg-white/10 hover:bg-white/20 px-4 py-2 rounded-lg flex items-center">
                    <i class="fas fa-rocket mr-2"></i>
                    Mode Performance
                </button>
                <div class="h-8 w-px bg-white/30"></div>
                <button class="bg-white text-indigo-700 hover:bg-gray-100 px-4 py-2 rounded-lg font-medium">
                    <i class="fas fa-download mr-1"></i>
                    Exporter
                </button>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8">
        <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
            <!-- Left Sidebar - Enhanced for Long Videos -->
            <div class="lg:col-span-1 space-y-6">
                <!-- Project Memory -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <h2 class="text-lg font-semibold mb-3 flex items-center">
                        <i class="fas fa-brain mr-2 text-purple-600"></i>
                        Mémoire du Projet
                    </h2>
                    <div class="space-y-3">
                        <div class="p-3 bg-indigo-50 rounded-lg border border-indigo-100">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-2">
                                    <i class="fas fa-palette text-indigo-600 text-sm"></i>
                                </div>
                                <div>
                                    <h4 class="text-sm font-medium">Style Visuel</h4>
                                    <p class="text-xs text-gray-500">Corporate Moderne - Bleu dominant</p>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 bg-purple-50 rounded-lg border border-purple-100">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center mr-2">
                                    <i class="fas fa-user-tie text-purple-600 text-sm"></i>
                                </div>
                                <div>
                                    <h4 class="text-sm font-medium">Personnage Principal</h4>
                                    <p class="text-xs text-gray-500">Paul, 35 ans, costume bleu</p>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 bg-blue-50 rounded-lg border border-blue-100">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
                                    <i class="fas fa-microphone text-blue-600 text-sm"></i>
                                </div>
                                <div>
                                    <h4 class="text-sm font-medium">Voix Off</h4>
                                    <p class="text-xs text-gray-500">Français - Thomas - Ton professionnel</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <button class="w-full mt-3 bg-white border border-gray-300 hover:bg-gray-50 py-1 rounded-lg text-xs">
                        <i class="fas fa-plus mr-1"></i>
                        Ajouter un élément
                    </button>
                </div>

                <!-- Chapter Navigator -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <h2 class="text-lg font-semibold mb-3 flex items-center">
                        <i class="fas fa-list-ol mr-2 text-blue-600"></i>
                        Navigateur de Chapitres
                    </h2>
                    <div class="space-y-2 max-h-60 overflow-y-auto">
                        <div class="flex items-center p-2 bg-blue-50 rounded-lg">
                            <div class="w-6 h-6 rounded-full bg-blue-100 text-blue-800 flex items-center justify-center mr-2 text-xs font-bold">1</div>
                            <div class="flex-1">
                                <p class="text-sm font-medium">Introduction</p>
                                <p class="text-xs text-gray-500">0:00 - 2:30</p>
                            </div>
                            <button class="text-blue-600 hover:text-blue-800 p-1">
                                <i class="fas fa-play text-xs"></i>
                            </button>
                        </div>
                        <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                            <div class="w-6 h-6 rounded-full bg-gray-100 text-gray-800 flex items-center justify-center mr-2 text-xs font-bold">2</div>
                            <div class="flex-1">
                                <p class="text-sm font-medium">Problématique</p>
                                <p class="text-xs text-gray-500">2:30 - 8:15</p>
                            </div>
                            <button class="text-gray-600 hover:text-gray-800 p-1">
                                <i class="fas fa-play text-xs"></i>
                            </button>
                        </div>
                        <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                            <div class="w-6 h-6 rounded-full bg-gray-100 text-gray-800 flex items-center justify-center mr-2 text-xs font-bold">3</div>
                            <div class="flex-1">
                                <p class="text-sm font-medium">Solution</p>
                                <p class="text-xs text-gray-500">8:15 - 15:00</p>
                            </div>
                            <button class="text-gray-600 hover:text-gray-800 p-1">
                                <i class="fas fa-play text-xs"></i>
                            </button>
                        </div>
                        <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                            <div class="w-6 h-6 rounded-full bg-gray-100 text-gray-800 flex items-center justify-center mr-2 text-xs font-bold">4</div>
                            <div class="flex-1">
                                <p class="text-sm font-medium">Cas d'usage</p>
                                <p class="text-xs text-gray-500">15:00 - 22:45</p>
                            </div>
                            <button class="text-gray-600 hover:text-gray-800 p-1">
                                <i class="fas fa-play text-xs"></i>
                            </button>
                        </div>
                        <div class="flex items-center p-2 hover:bg-gray-50 rounded-lg">
                            <div class="w-6 h-6 rounded-full bg-gray-100 text-gray-800 flex items-center justify-center mr-2 text-xs font-bold">5</div>
                            <div class="flex-1">
                                <p class="text-sm font-medium">Conclusion</p>
                                <p class="text-xs text-gray-500">22:45 - 25:30</p>
                            </div>
                            <button class="text-gray-600 hover:text-gray-800 p-1">
                                <i class="fas fa-play text-xs"></i>
                            </button>
                        </div>
                    </div>
                    <button class="w-full mt-3 bg-indigo-600 hover:bg-indigo-700 text-white py-2 rounded-lg text-xs font-medium">
                        <i class="fas fa-plus mr-1"></i>
                        Ajouter un chapitre
                    </button>
                </div>

                <!-- Performance Optimizer -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <h2 class="text-lg font-semibold mb-3 flex items-center">
                        <i class="fas fa-tachometer-alt mr-2 text-green-600"></i>
                        Optimisation
                    </h2>
                    <div class="space-y-4">
                        <div>
                            <label class="flex items-center justify-between mb-1">
                                <span class="text-sm font-medium">Mode Rapide</span>
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" id="fast-mode" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
                                    <label for="fast-mode" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
                                </div>
                            </label>
                            <p class="text-xs text-gray-500">Réduit la qualité pour accélérer le rendu (25% plus rapide)</p>
                        </div>
                        <div>
                            <label class="flex items-center justify-between mb-1">
                                <span class="text-sm font-medium">Cache des Assets</span>
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" id="asset-cache" checked class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
                                    <label for="asset-cache" class="toggle-label block overflow-hidden h-6 rounded-full bg-green-300 cursor-pointer"></label>
                                </div>
                            </label>
                            <p class="text-xs text-gray-500">Réutilise les éléments similaires pour économiser des crédits</p>
                        </div>
                        <div>
                            <label class="block text-sm font-medium mb-1">Qualité/Rapidité</label>
                            <input type="range" min="0" max="100" value="70" class="w-full">
                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                <span>Rapide</span>
                                <span>Équilibré</span>
                                <span>Qualité</span>
                            </div>
                        </div>
                    </div>
                    <div class="mt-4 pt-3 border-t border-gray-200">
                        <div class="flex justify-between items-center text-sm">
                            <span>Temps estimé:</span>
                            <span class="font-medium">18 minutes</span>
                        </div>
                        <div class="flex justify-between items-center text-sm">
                            <span>Crédits estimés:</span>
                            <span class="font-medium">1,250</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Main Editor Area -->
            <div class="lg:col-span-3 space-y-6">
                <!-- Enhanced Video Preview with Chapter Markers -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-4">
                        <h2 class="text-xl font-semibold flex items-center">
                            <i class="fas fa-play-circle mr-2 text-indigo-600"></i>
                            Aperçu - 25:30
                        </h2>
                        <div class="flex space-x-2">
                            <button class="bg-gray-100 hover:bg-gray-200 p-2 rounded-lg">
                                <i class="fas fa-chart-line"></i>
                                Analyse
                            </button>
                            <button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg">
                                <i class="fas fa-sync-alt mr-2"></i>
                                Optimiser
                            </button>
                        </div>
                    </div>
                    
                    <div class="relative aspect-video bg-gradient-to-br from-gray-100 to-gray-200 rounded-lg mb-4 overflow-hidden">
                        <!-- Current Scene Preview -->
                        <div class="absolute inset-0 flex items-center justify-center">
                            <div class="text-center p-6 max-w-md">
                                <div class="animate-float inline-block mb-4">
                                    <i class="fas fa-video text-5xl text-indigo-600"></i>
                                </div>
                                <h3 class="text-lg font-medium text-gray-700">Formation Complète</h3>
                                <p class="text-gray-500 mt-1">25 minutes - 5 chapitres - 18 scènes</p>
                                <div class="mt-4 bg-white/90 backdrop-blur-sm rounded-lg p-3 shadow-sm">
                                    <p class="text-sm font-medium">Scène actuelle: <span class="text-indigo-600">Démonstration Produit</span></p>
                                    <p class="text-xs text-gray-500 mt-1">Chapitre 3 - 10:15 à 12:30</p>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Chapter Markers -->
                        <div class="chapter-marker" style="left: 10%" data-chapter="1"></div>
                        <div class="chapter-marker" style="left: 33%" data-chapter="2"></div>
                        <div class="chapter-marker" style="left: 59%" data-chapter="3"></div>
                        <div class="chapter-marker" style="left: 85%" data-chapter="4"></div>
                        
                        <!-- Memory Badge -->
                        <div class="memory-badge">
                            <i class="fas fa-brain mr-1"></i>
                            Mémoire active
                        </div>
                    </div>
                    
                    <!-- Enhanced Timeline with Chapters -->
                    <div class="mt-4">
                        <div class="flex justify-between text-xs text-gray-500 mb-1">
                            <span>0:00</span>
                            <span>5:00</span>
                            <span>10:00</span>
                            <span>15:00</span>
                            <span>20:00</span>
                            <span>25:30</span>
                        </div>
                        <div class="relative h-2 bg-gray-200 rounded-full w-full">
                            <!-- Chapter Backgrounds -->
                            <div class="timeline-chapter rounded-l-full" style="left: 0%; width: 10%"></div>
                            <div class="timeline-chapter" style="left: 10%; width: 23%"></div>
                            <div class="timeline-chapter" style="left: 33%; width: 26%"></div>
                            <div class="timeline-chapter" style="left: 59%; width: 26%"></div>
                            <div class="timeline-chapter rounded-r-full" style="left: 85%; width: 15%"></div>
                            
                            <!-- Scene Progress -->
                            <div class="absolute inset-y-0 left-0 bg-indigo-600 rounded-l-full" style="width: 72%"></div>
                            
                            <!-- Current Position -->
                            <div class="absolute top-1/2 h-4 w-4 bg-indigo-700 rounded-full transform -translate-y-1/2 -translate-x-1/2" style="left: 72%">
                                <div class="absolute top-full mt-1 left-1/2 transform -translate-x-1/2 text-xs font-medium">12:18</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Scene Thumbnails with Reused Assets -->
                    <div class="mt-4 flex space-x-2 overflow-x-auto pb-2">
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-indigo-100 rounded-lg mb-1">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-image text-gray-400"></i>
                                </div>
                                <div class="memory-badge">
                                    <i class="fas fa-redo mr-1"></i>
                                    3x
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">Intro</p>
                        </div>
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-blue-100 rounded-lg mb-1 asset-reused">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-user-tie text-gray-400"></i>
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">Présentation</p>
                        </div>
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-purple-100 rounded-lg mb-1">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-chart-bar text-gray-400"></i>
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">Stats</p>
                        </div>
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-pink-100 rounded-lg mb-1 asset-reused">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-user-tie text-gray-400"></i>
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">Démo</p>
                        </div>
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-yellow-100 rounded-lg mb-1">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-question text-gray-400"></i>
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">FAQ</p>
                        </div>
                        <div class="flex-shrink-0 w-24">
                            <div class="relative aspect-video bg-green-100 rounded-lg mb-1 asset-reused">
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <i class="fas fa-user-tie text-gray-400"></i>
                                </div>
                            </div>
                            <p class="text-xs text-center truncate">Conclusion</p>
                        </div>
                    </div>
                </div>
                
                <!-- Enhanced Script Editor with Semantic Analysis -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="border-b border-gray-200 p-4 bg-gray-50 flex justify-between items-center">
                        <h2 class="text-xl font-semibold flex items-center">
                            <i class="fas fa-align-left mr-2 text-indigo-600"></i>
                            Éditeur de Script Intelligent
                            <span class="ml-2 bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Analyse: 92%</span>
                        </h2>
                        <div class="flex space-x-2">
                            <button class="bg-indigo-600 text-white p-2 rounded-lg">
                                <i class="fas fa-magic"></i>
                            </button>
                            <button class="bg-gray-100 hover:bg-gray-200 p-2 rounded-lg">
                                <i class="fas fa-robot"></i>
                            </button>
                            <button class="bg-gray-100 hover:bg-gray-200 p-2 rounded-lg">
                                <i class="fas fa-history"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3">
                        <!-- Script Structure -->
                        <div class="p-4 border-r border-gray-200">
                            <h3 class="font-medium mb-3 flex items-center">
                                <i class="fas fa-project-diagram mr-2 text-blue-600"></i>
                                Structure du Script
                            </h3>
                            <div class="space-y-2">
                                <div class="p-3 bg-blue-50 rounded-lg">
                                    <div class="flex items-center">
                                        <div class="w-6 h-6 rounded-full bg-blue-100 text-blue-800 flex items-center justify-center mr-2">
                                            <i class="fas fa-play text-xs"></i>
                                        </div>
                                        <div>
                                            <p class="text-sm font-medium">Introduction</p>
                                            <p class="text-xs text-gray-500">2:30 - 3 scènes</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="p-3 bg-purple-50 rounded-lg">
                                    <div class="flex items-center">
                                        <div class="w-6 h-6 rounded-full bg-purple-100 text-purple-800 flex items-center justify-center mr-2">
                                            <i class="fas fa-question text-xs"></i>
                                        </div>
                                        <div>
                                            <p class="text-sm font-medium">Problématique</p>
                                            <p class="text-xs text-gray-500">5:45 - 5 scènes</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="p-3 bg-green-50 rounded-lg">
                                    <div class="flex items-center">
                                        <div class="w-6 h-6 rounded-full bg-green-100 text-green-800 flex items-center justify-center mr-2">
                                            <i class="fas fa-lightbulb text-xs"></i>
                                        </div>
                                        <div>
                                            <p class="text-sm font-medium">Solution</p>
                                            <p class="text-xs text-gray-500">6:45 - 4 scènes</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="p-3 bg-yellow-50 rounded-lg">
                                    <div class="flex items-center">
                                        <div class="w-6 h-6 rounded-full bg-yellow-100 text-yellow-800 flex items-center justify-center mr-2">
                                            <i class="fas fa-chart-line text-xs"></i>
                                        </div>
                                        <div>
                                            <p class="text-sm font-medium">Cas d'usage</p>
                                            <p class="text-xs text-gray-500">7:45 - 5 scènes</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="p-3 bg-red-50 rounded-lg">
                                    <div class="flex items-center">
                                        <div class="w-6 h-6 rounded-full bg-red-100 text-red-800 flex items-center justify-center mr-2">
                                            <i class="fas fa-flag text-xs"></i>
                                        </div>
                                        <div>
                                            <p class="text-sm font-medium">Conclusion</p>
                                            <p class="text-xs text-gray-500">2:45 - 1 scène</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="mt-4 pt-3 border-t border-gray-200">
                                <button class="w-full bg-white border border-gray-300 hover:bg-gray-50 py-2 rounded-lg text-sm">
                                    <i class="fas fa-balance-scale-left mr-1"></i>
                                    Analyser le rythme
                                </button>
                            </div>
                        </div>
                        
                        <!-- Text Editor with Line Numbers -->
                        <div class="p-4 border-r border-gray-200 md:col-span-2">
                            <div class="editor-line-numbers h-96 border border-gray-300 rounded-lg overflow-auto font-mono text-sm bg-white">
                                <div class="p-2 whitespace-pre"><span class="text-purple-600 font-medium">[CHAPITRE: Introduction]</span>
<span class="text-blue-600">[STYLE: Cohérent]</span>
<span class="text-gray-500">[Image: Bureau moderne avec ordinateur]</span>
Narrateur: "Bienvenue dans cette formation complète sur notre solution révolutionnaire..."

<span class="text-gray-500">[Animation: Zoom sur l'écran]</span>
Narrateur: "Au cours des 25 prochaines minutes, nous allons explorer..."

<span class="text-purple-600 font-medium">[CHAPITRE: Problématique]</span>
<span class="text-gray-500">[Image: Graphique montrant des problèmes]</span>
Narrateur: "De nombreuses entreprises rencontrent des difficultés avec..."

<span class="text-gray-500">[Infographie: Statistiques clés]</span>
Narrateur: "Comme le montre cette étude, 78% des utilisateurs..."

<span class="text-purple-600 font-medium">[CHAPITRE: Solution]</span>
<span class="text-blue-600">[STYLE: Cohérent]</span>
<span class="text-gray-500">[Image: Notre interface produit]</span>
Narrateur: "Notre solution apporte une réponse simple et efficace..."

<span class="text-gray-500">[Video: Démonstration produit]</span>
Narrateur: "Voyons comment cela fonctionne en pratique..."

<span class="text-purple-600 font-medium">[CHAPITRE: Cas d'usage]</span>
<span class="text-gray-500">[Image: Équipe en réunion]</span>
Narrateur: "Plusieurs entreprises ont déjà adopté notre solution..."

<span class="text-purple-600 font-medium">[CHAPITRE: Conclusion]</span>
<span class="text-blue-600">[STYLE: Cohérent]</span>
<span class="text-gray-500">[Image: Bureau moderne - Même décor qu'intro]</span>
Narrateur: "Pour conclure, cette solution transformera votre façon de travailler..."</div>
                            </div>
                            
                            <div class="mt-4 flex justify-between">
                                <div class="flex space-x-2">
                                    <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">
                                        <i class="fas fa-spell-check mr-1"></i>
                                        Vérifier
                                    </button>
                                    <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">
                                        <i class="fas fa-clock mr-1"></i>
                                        Timing
                                    </button>
                                </div>
                                <button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg text-sm font-medium">
                                    <i class="fas fa-check mr-1"></i>
                                    Valider les modifications
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Enhanced Asset Library with Reuse Tracking -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="border-b border-gray-200 p-4 bg-gray-50">
                        <h2 class="text-xl font-semibold flex items-center">
                            <i class="fas fa-cube mr-2 text-indigo-600"></i>
                            Bibliothèque d'Assets
                            <span class="ml-2 bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">12 réutilisés</span>
                        </h2>
                    </div>
                    
                    <div class="p-4">
                        <!-- Tabs -->
                        <div class="flex border-b border-gray-200 mb-4">
                            <button class="px-4 py-2 border-b-2 border-indigo-500 text-indigo-600 font-medium">Tous</button>
                            <button class="px-4 py-2 text-gray-500 hover:text-gray-700">Visuels (24)</button>
                            <button class="px-4 py-2 text-gray-500 hover:text-gray-700">Voix (5)</button>
                            <button class="px-4 py-2 text-gray-500 hover:text-gray-700">Musiques (8)</button>
                            <button class="px-4 py-2 text-gray-500 hover:text-gray-700">Réutilisés (12)</button>
                        </div>
                        
                        <!-- Asset Grid -->
                        <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                            <!-- Asset with Reuse Badge -->
                            <div class="border border-gray-200 rounded-lg overflow-hidden asset-reused">
                                <div class="relative pt-[56.25%] bg-gray-100">
                                    <div class="absolute inset-0 flex items-center justify-center">
                                        <i class="fas fa-user-tie text-3xl text-gray-400"></i>
                                    </div>
                                    <div class="absolute top-2 left-2 bg-green-500 text-white text-xs px-1 rounded">
                                        <i class="fas fa-redo mr-1"></i> 3x
                                    </div>
                                </div>
                                <div class="p-2 bg-white">
                                    <p class="text-sm font-medium truncate">Personnage Principal</p>
                                    <div class="flex justify-between items-center mt-1">
                                        <span class="text-xs text-gray-500">0:45, 5:30, 18:20</span>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-link text-xs"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Audio Asset -->
                            <div class="border border-gray-200 rounded-lg overflow-hidden">
                                <div class="relative pt-[56.25%] bg-indigo-100">
                                    <div class="absolute inset-0 flex items-center justify-center">
                                        <i class="fas fa-wave-square text-3xl text-indigo-400"></i>
                                    </div>
                                    <div class="waveform-container absolute bottom-0 left-0 right-0 h-6">
                                        <!-- Waveform would be here -->
                                    </div>
                                </div>
                                <div class="p-2 bg-white">
                                    <p class="text-sm font-medium truncate">Voix Off - Thomas</p>
                                    <div class="flex justify-between items-center mt-1">
                                        <span class="text-xs text-gray-500">Tout le projet</span>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-play text-xs"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Reused Background -->
                            <div class="border border-gray-200 rounded-lg overflow-hidden asset-reused">
                                <div class="relative pt-[56.25%] bg-blue-100">
                                    <div class="absolute inset-0 flex items-center justify-center">
                                        <i class="fas fa-building text-3xl text-blue-400"></i>
                                    </div>
                                    <div class="absolute top-2 left-2 bg-green-500 text-white text-xs px-1 rounded">
                                        <i class="fas fa-redo mr-1"></i> 2x
                                    </div>
                                </div>
                                <div class="p-2 bg-white">
                                    <p class="text-sm font-medium truncate">Bureau Moderne</p>
                                    <div class="flex justify-between items-center mt-1">
                                        <span class="text-xs text-gray-500">0:00, 22:45</span>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-eye text-xs"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Music Track -->
                            <div class="border border-gray-200 rounded-lg overflow-hidden">
                                <div class="relative pt-[56.25%] bg-purple-100">
                                    <div class="absolute inset-0 flex items-center justify-center">
                                        <i class="fas fa-music text-3xl text-purple-400"></i>
                                    </div>
                                </div>
                                <div class="p-2 bg-white">
                                    <p class="text-sm font-medium truncate">Musique Corporate</p>
                                    <div class="flex justify-between items-center mt-1">
                                        <span class="text-xs text-gray-500">Fond sonore</span>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-volume-up text-xs"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Add Asset Button -->
                            <div class="border-2 border-dashed border-gray-300 rounded-lg flex items-center justify-center hover:border-gray-400 cursor-pointer">
                                <button class="text-gray-400 hover:text-gray-600 p-4 text-center">
                                    <i class="fas fa-plus text-2xl block mb-1"></i>
                                    <span class="text-xs">Ajouter un asset</span>
                                </button>
                            </div>
                        </div>
                        
                        <!-- Asset Reuse Statistics -->
                        <div class="mt-6 bg-gray-50 rounded-lg p-4">
                            <h4 class="font-medium mb-2 flex items-center">
                                <i class="fas fa-chart-pie mr-2 text-indigo-600"></i>
                                Statistiques de Réutilisation
                            </h4>
                            <div class="grid grid-cols-3 gap-4 text-center">
                                <div class="bg-white p-3 rounded-lg shadow-sm">
                                    <div class="text-2xl font-bold text-indigo-600">12</div>
                                    <div class="text-xs text-gray-500">Assets réutilisés</div>
                                </div>
                                <div class="bg-white p-3 rounded-lg shadow-sm">
                                    <div class="text-2xl font-bold text-green-600">42%</div>
                                    <div class="text-xs text-gray-500">Économie crédits</div>
                                </div>
                                <div class="bg-white p-3 rounded-lg shadow-sm">
                                    <div class="text-2xl font-bold text-blue-600">8:30</div>
                                    <div class="text-xs text-gray-500">Gain de temps</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Enhanced Export Panel -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-3">
                <div class="relative">
                    <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
                        <i class="fas fa-video text-indigo-600"></i>
                    </div>
                    <div class="absolute -bottom-1 -right-1 bg-green-500 text-white text-xs w-4 h-4 rounded-full flex items-center justify-center">
                        <i class="fas fa-check"></i>
                    </div>
                </div>
                <div>
                    <p class="text-sm font-medium">Formation Complète</p>
                    <p class="text-xs text-gray-500">25:30 • 5 chapitres • 18 scènes • <span class="text-green-600">12 assets réutilisés</span></p>
                </div>
            </div>
            
            <div class="flex space-x-3">
                <button class="bg-white border border-gray-300 hover:bg-gray-50 px-4 py-2 rounded-lg flex items-center">
                    <i class="fas fa-cut mr-2"></i>
                    Découper
                </button>
                
                <div class="relative inline-block">
                    <button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-file-export mr-2"></i>
                        Exporter
                        <i class="fas fa-chevron-down ml-2 text-sm"></i>
                    </button>
                    
                    <div class="absolute bottom-full right-0 mb-2 w-64 bg-white rounded-lg shadow-xl z-10 border border-gray-200 hidden">
                        <div class="p-2">
                            <h5 class="text-xs font-medium text-gray-500 px-2 py-1">Export complet</h5>
                            <a href="#" class="flex items-center px-3 py-2 text-sm hover:bg-gray-100 rounded">
                                <i class="fas fa-file-video mr-2 text-indigo-600"></i>
                                Vidéo unique (25:30)
                            </a>
                            
                            <h5 class="text-xs font-medium text-gray-500 px-2 py-1 mt-1">Découpage automatique</h5>
                            <a href="#" class="flex items-center px-3 py-2 text-sm hover:bg-gray-100 rounded">
                                <i class="fas fa-film mr-2 text-blue-600"></i>
                                Par chapitres (5 vidéos)
                            </a>
                            <a href="#" class="flex items-center px-3 py-2 text-sm hover:bg-gray-100 rounded">
                                <i class="fas fa-clock mr-2 text-purple-600"></i>
                                Segments de 5 minutes (6 vidéos)
                            </a>
                            
                            <h5 class="text-xs font-medium text-gray-500 px-2 py-1 mt-1">Autres formats</h5>
                            <a href="#" class="flex items-center px-3 py-2 text-sm hover:bg-gray-100 rounded">
                                <i class="fas fa-file-audio mr-2 text-green-600"></i>
                                Audio uniquement
                            </a>
                            <a href="#" class="flex items-center px-3 py-2 text-sm hover:bg-gray-100 rounded">
                                <i class="fas fa-images mr-2 text-yellow-600"></i>
                                Storyboard PDF
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Script for Enhanced Functionality -->
    <script>
        // Toggle dropdown menus
        document.querySelectorAll('[class*="relative"] button').forEach(button => {
            button.addEventListener('click', function() {
                const dropdown = this.parentElement.querySelector('div');
                dropdown.classList.toggle('hidden');
            });
        });
        
        // Close dropdowns when clicking outside
        document.addEventListener('click', function(e) {
            document.querySelectorAll('.relative').forEach(div => {
                if (!div.contains(e.target)) {
                    const dropdown = div.querySelector('div');
                    if (dropdown) dropdown.classList.add('hidden');
                }
            });
        });
        
        // Toggle switches
        document.querySelectorAll('.toggle-checkbox').forEach(checkbox => {
            checkbox.addEventListener('change', function() {
                const label = this.parentElement.querySelector('.toggle-label');
                if (this.checked) {
                    label.classList.remove('bg-gray-300');
                    label.classList.add('bg-green-400');
                } else {
                    label.classList.remove('bg-green-400');
                    label.classList.add('bg-gray-300');
                }
            });
        });
        
        // Simulate asset reuse
        document.querySelectorAll('.asset-reused').forEach(asset => {
            asset.addEventListener('mouseenter', function() {
                const tooltip = document.createElement('div');
                tooltip.className = 'absolute z-10 bg-black text-white text-xs px-2 py-1 rounded';
                tooltip.textContent = 'Cet asset est réutilisé plusieurs fois';
                tooltip.style.top = '-30px';
                tooltip.style.left = '50%';
                tooltip.style.transform = 'translateX(-50%)';
                
                this.appendChild(tooltip);
                
                // Add arrow
                const arrow = document.createElement('div');
                arrow.className = 'absolute w-0 h-0 border-l-4 border-r-4 border-l-transparent border-r-transparent border-t-4 border-t-black';
                arrow.style.bottom = '-4px';
                arrow.style.left = '50%';
                arrow.style.transform = 'translateX(-50%)';
                tooltip.appendChild(arrow);
                
                this.style.transform = 'scale(1.05)';
                this.style.zIndex = '10';
                this.style.transition = 'all 0.2s ease';
            });
            
            asset.addEventListener('mouseleave', function() {
                const tooltip = this.querySelector('div.absolute');
                if (tooltip) this.removeChild(tooltip);
                
                this.style.transform = '';
                this.style.zIndex = '';
            });
        });
        
        // Chapter navigation
        document.querySelectorAll('[class*="timeline-chapter"]').forEach(chapter => {
            chapter.addEventListener('click', function() {
                // Highlight the clicked chapter
                document.querySelectorAll('[class*="timeline-chapter"]').forEach(c => {
                    c.classList.remove('bg-indigo-200');
                });
                this.classList.add('bg-indigo-200');
                
                // Update preview (simulated)
                const preview = document.querySelector('.video-preview');
                const chapterNum = this.style.left === '0%' ? 1 :
                                  this.style.left === '10%' ? 2 :
                                  this.style.left === '33%' ? 3 :
                                  this.style.left === '59%' ? 4 : 5;
                
                const chapterNames = ['Introduction', 'Problématique', 'Solution', 'Cas d\'usage', 'Conclusion'];
                preview.innerHTML = `
                    <div class="text-center p-6 max-w-md">
                        <div class="animate-float inline-block mb-4">
                            <i class="fas fa-video text-5xl text-indigo-600"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-700">${chapterNames[chapterNum-1]}</h3>
                        <div class="mt-4 bg-white/90 backdrop-blur-sm rounded-lg p-3 shadow-sm">
                            <p class="text-sm font-medium">Chapitre ${chapterNum}</p>
                            <p class="text-xs text-gray-500 mt-1">${chapterNames[chapterNum-1]}</p>
                        </div>
                    </div>
                `;
            });
        });
        
        // Memory system simulation
        const memoryBadge = document.querySelector('.memory-badge');
        setInterval(() => {
            memoryBadge.style.opacity = memoryBadge.style.opacity === '0.5' ? '1' : '0.5';
        }, 3000);
    </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=SIMOHAMR/simoia" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>