File size: 20,236 Bytes
fc87229
 
 
 
 
97f213d
fc87229
 
 
97f213d
fc87229
 
97f213d
 
fc87229
 
 
 
97f213d
fc87229
97f213d
fc87229
 
 
 
97f213d
fc87229
 
 
 
 
 
 
 
 
 
97f213d
fc87229
 
97f213d
fc87229
97f213d
 
 
fc87229
 
97f213d
 
 
fc87229
 
97f213d
 
 
 
fc87229
 
 
97f213d
 
 
 
 
fc87229
97f213d
fc87229
 
97f213d
 
 
 
fc87229
 
97f213d
 
 
 
fc87229
 
 
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
 
 
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
 
 
97f213d
 
 
 
 
 
 
 
 
 
fc87229
 
 
 
97f213d
 
 
 
 
 
 
 
fc87229
 
 
 
97f213d
 
 
 
 
 
 
 
fc87229
 
 
 
97f213d
 
 
 
 
 
 
 
fc87229
 
97f213d
 
 
 
 
 
 
 
 
fc87229
 
 
97f213d
 
 
 
 
 
 
 
 
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
fc87229
 
 
 
 
97f213d
fc87229
 
97f213d
 
 
 
fc87229
 
97f213d
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
97f213d
 
 
 
fc87229
97f213d
 
fc87229
97f213d
 
 
fc87229
97f213d
 
 
 
 
fc87229
97f213d
fc87229
97f213d
 
 
 
 
 
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
 
fc87229
97f213d
 
 
 
 
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
97f213d
 
 
 
 
 
fc87229
97f213d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc87229
 
97f213d
 
 
fc87229
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CinéFutur - Lecteur de Films</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
        
        :root {
            --primary: #ff6b00;
            --secondary: #8a2be2;
            --dark: #0a0a1a;
        }
        
        body {
            font-family: 'Orbitron', sans-serif;
            background-color: var(--dark);
            color: white;
            overflow-x: hidden;
        }
        
        .glow {
            text-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
        }
        
        .cyber-button {
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .cyber-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
        }
        
        .film-card {
            transition: all 0.3s;
            background: rgba(30, 30, 60, 0.5);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .film-card:hover {
            transform: scale(1.03);
            box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
        }
        
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 */
            height: 0;
            overflow: hidden;
        }
        
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .progress-bar {
            height: 4px;
            background: rgba(255,255,255,0.2);
            margin-top: 10px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--secondary), var(--primary));
            width: 0%;
        }
    </style>
</head>
<body class="min-h-screen bg-gradient-to-br from-gray-900 to-gray-800">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="flex justify-between items-center mb-8">
            <div class="flex items-center">
                <i class="fas fa-film text-3xl text-orange-500 mr-3"></i>
                <h1 class="text-2xl font-bold glow">CinéFutur <span class="text-sm text-gray-400">Lecteur Premium</span></h1>
            </div>
            <div class="flex items-center space-x-4">
                <button id="autoPlayBtn" class="cyber-button bg-gradient-to-r from-purple-600 to-orange-500 text-white py-2 px-4 rounded-lg flex items-center">
                    <i class="fas fa-play mr-2"></i> Auto
                </button>
                <div class="relative">
                    <input type="text" placeholder="Rechercher..." class="bg-gray-800 border border-gray-700 rounded-lg py-2 px-4 text-white focus:outline-none focus:border-orange-500">
                    <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                </div>
            </div>
        </header>
        
        <!-- Main Content -->
        <main>
            <!-- Current Video Player -->
            <div class="mb-8 bg-gray-900 rounded-xl overflow-hidden shadow-2xl">
                <div class="video-container" id="mainVideoContainer">
                    <iframe id="mainVideo" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                </div>
                <div class="p-4">
                    <h2 id="currentFilmTitle" class="text-xl font-bold mb-2">Sélectionnez un film</h2>
                    <div class="flex justify-between items-center">
                        <div class="flex space-x-2">
                            <span class="text-sm text-gray-400"><i class="fas fa-clock mr-1"></i> <span id="currentFilmDuration">--:--</span></span>
                            <span class="text-sm text-gray-400"><i class="fas fa-star mr-1 text-yellow-400"></i> <span id="currentFilmRating">--</span>/10</span>
                        </div>
                        <div class="flex space-x-2">
                            <button id="fullscreenBtn" class="cyber-button bg-gray-800 text-white py-1 px-3 rounded-lg text-sm">
                                <i class="fas fa-expand mr-1"></i> Plein écran
                            </button>
                            <button id="nextFilmBtn" class="cyber-button bg-gradient-to-r from-purple-600 to-orange-500 text-white py-1 px-3 rounded-lg text-sm">
                                <i class="fas fa-step-forward mr-1"></i> Suivant
                            </button>
                        </div>
                    </div>
                    <div class="progress-bar">
                        <div class="progress-fill" id="progressFill"></div>
                    </div>
                </div>
            </div>
            
            <!-- Film Library -->
            <section>
                <h2 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fas fa-film text-orange-500 mr-2"></i>
                    <span>Bibliothèque de Films</span>
                </h2>
                
                <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4">
                    <!-- Film 1 - Dune -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/w0HgHet0sxg" data-title="Dune (2021)" data-duration="2h35m" data-rating="8.0">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BN2FjNmEyNWMtYzM0ZS00NjIyLTg5YzYtYThlMGVjNzE1OGViXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Dune</h3>
                                    <p class="text-xs text-gray-300">2021 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 2 - Interstellar -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/zSWdZVtXT7E" data-title="Interstellar (2014)" data-duration="2h49m" data-rating="8.6">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BZjdkOTU5MDktM2IxOS00OGEyLWFmMjktY2FiMmZkNWIyODZiXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Interstellar</h3>
                                    <p class="text-xs text-gray-300">2014 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 3 - Blade Runner 2049 -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/gCcx85zbxz4" data-title="Blade Runner 2049 (2017)" data-duration="2h44m" data-rating="8.0">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BNzA1Njg4NzYxOV5BMl5BanBnXkFtZTgwODk5NjU3MzI@._V1_FMjpg_UX1000_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Blade Runner 2049</h3>
                                    <p class="text-xs text-gray-300">2017 • Cyberpunk</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 4 - The Matrix -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/vKQi3bBA1y8" data-title="The Matrix (1999)" data-duration="2h16m" data-rating="8.7">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BNzQzOTk3OTAtNDQ0Zi00ZTVkLWI0MTEtMDllZjNkYzNjNTc4L2ltYWdlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">The Matrix</h3>
                                    <p class="text-xs text-gray-300">1999 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 5 - Inception -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/YoHD9XEInc0" data-title="Inception (2010)" data-duration="2h28m" data-rating="8.8">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_FMjpg_UX1000_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Inception</h3>
                                    <p class="text-xs text-gray-300">2010 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 6 - Tenet -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/LdOM0x0XDMo" data-title="Tenet (2020)" data-duration="2h30m" data-rating="7.5">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BYzg0NGM2NjAtNmIxOC00MDJmLTg5ZmItMjE3M2JkMTYyOTQzXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Tenet</h3>
                                    <p class="text-xs text-gray-300">2020 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 7 - Arrival -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/tFMo3UJ4B4g" data-title="Arrival (2016)" data-duration="1h56m" data-rating="7.9">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BNGU0NTA2YjctYWNlYy00ZDg1LTg5ZTItZWM3MWZiMDI5OGYzL2ltYWdlXkEyXkFqcGdeQXVyNDM3ODU2NDM@._V1_FMjpg_UX1000_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Arrival</h3>
                                    <p class="text-xs text-gray-300">2016 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Film 8 - Ex Machina -->
                    <div class="film-card" data-video="https://www.youtube.com/embed/EoQuVnKhxaM" data-title="Ex Machina (2014)" data-duration="1h48m" data-rating="7.7">
                        <div class="h-40 bg-cover bg-center" style="background-image: url('https://m.media-amazon.com/images/M/MV5BMTUxNzc0OTIxMV5BMl5BanBnXkFtZTgwNDI3NzU2NDE@._V1_.jpg')">
                            <div class="bg-black bg-opacity-60 h-full flex items-end p-3">
                                <div>
                                    <h3 class="font-bold">Ex Machina</h3>
                                    <p class="text-xs text-gray-300">2014 • Sci-Fi</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </main>
        
        <!-- Footer -->
        <footer class="mt-12 pt-6 border-t border-gray-800 text-center text-gray-400 text-sm">
            <p>© 2024 CinéFutur - Tous droits réservés</p>
            <p class="mt-1">Films intégrés depuis YouTube - À des fins éducatives uniquement</p>
        </footer>
    </div>

    <script>
        // Configuration des films
        const films = [
            {
                title: "Dune (2021)",
                video: "https://www.youtube.com/embed/w0HgHet0sxg",
                duration: "2h35m",
                rating: "8.0"
            },
            {
                title: "Interstellar (2014)",
                video: "https://www.youtube.com/embed/zSWdZVtXT7E",
                duration: "2h49m",
                rating: "8.6"
            },
            {
                title: "Blade Runner 2049 (2017)",
                video: "https://www.youtube.com/embed/gCcx85zbxz4",
                duration: "2h44m",
                rating: "8.0"
            },
            {
                title: "The Matrix (1999)",
                video: "https://www.youtube.com/embed/vKQi3bBA1y8",
                duration: "2h16m",
                rating: "8.7"
            },
            {
                title: "Inception (2010)",
                video: "https://www.youtube.com/embed/YoHD9XEInc0",
                duration: "2h28m",
                rating: "8.8"
            },
            {
                title: "Tenet (2020)",
                video: "https://www.youtube.com/embed/LdOM0x0XDMo",
                duration: "2h30m",
                rating: "7.5"
            },
            {
                title: "Arrival (2016)",
                video: "https://www.youtube.com/embed/tFMo3UJ4B4g",
                duration: "1h56m",
                rating: "7.9"
            },
            {
                title: "Ex Machina (2014)",
                video: "https://www.youtube.com/embed/EoQuVnKhxaM",
                duration: "1h48m",
                rating: "7.7"
            }
        ];

        // Éléments DOM
        const mainVideo = document.getElementById('mainVideo');
        const currentFilmTitle = document.getElementById('currentFilmTitle');
        const currentFilmDuration = document.getElementById('currentFilmDuration');
        const currentFilmRating = document.getElementById('currentFilmRating');
        const progressFill = document.getElementById('progressFill');
        const autoPlayBtn = document.getElementById('autoPlayBtn');
        const nextFilmBtn = document.getElementById('nextFilmBtn');
        const fullscreenBtn = document.getElementById('fullscreenBtn');
        const filmCards = document.querySelectorAll('.film-card');
        const mainVideoContainer = document.getElementById('mainVideoContainer');

        // Variables d'état
        let currentFilmIndex = 0;
        let isAutoPlaying = false;
        let autoPlayInterval;
        let progressInterval;

        // Charger un film
        function loadFilm(index) {
            if (index >= 0 && index < films.length) {
                currentFilmIndex = index;
                const film = films[index];
                
                mainVideo.src = film.video;
                currentFilmTitle.textContent = film.title;
                currentFilmDuration.textContent = film.duration;
                currentFilmRating.textContent = film.rating;
                
                // Réinitialiser la barre de progression
                progressFill.style.width = '0%';
                
                // Démarrer la mise à jour de la progression
                if (progressInterval) clearInterval(progressInterval);
                progressInterval = setInterval(updateProgress, 1000);
                
                // Si en mode auto, passer au film suivant après la durée estimée
                if (isAutoPlaying) {
                    if (autoPlayInterval) clearInterval(autoPlayInterval);
                    const durationInMs = convertDurationToMs(film.duration);
                    autoPlayInterval = setTimeout(playNextFilm, durationInMs);
                }
            }
        }

        // Convertir la durée en millisecondes (approximatif)
        function convertDurationToMs(duration) {
            const [hours, minutes] = duration.split('h');
            const mins = minutes ? minutes.replace('m', '') : '0';
            return (parseInt(hours) * 3600 + parseInt(mins) * 60) * 1000;
        }

        // Mettre à jour la barre de progression
        function updateProgress() {
            const duration = convertDurationToMs(films[currentFilmIndex].duration);
            const elapsed = parseInt(progressFill.style.width || '0');
            
            if (elapsed < 100) {
                progressFill.style.width = (elapsed + (100 / (duration / 1000))) + '%';
            } else {
                clearInterval(progressInterval);
                if (isAutoPlaying) playNextFilm();
            }
        }

        // Jouer le film suivant
        function playNextFilm() {
            const nextIndex = (currentFilmIndex + 1) % films.length;
            loadFilm(nextIndex);
        }

        // Basculer le mode auto
        function toggleAutoPlay() {
            isAutoPlaying = !isAutoPlaying;
            
            if (isAutoPlaying) {
                autoPlayBtn.innerHTML = '<i class="fas fa-pause mr-2"></i> Auto';
                const durationInMs = convertDurationToMs(films[currentFilmIndex].duration);
                autoPlayInterval = setTimeout(playNextFilm, durationInMs);
            } else {
                autoPlayBtn.innerHTML = '<i class="fas fa-play mr-2"></i> Auto';
                if (autoPlayInterval) clearInterval(autoPlayInterval);
            }
        }

        // Plein écran
        function toggleFullscreen() {
            if (!document.fullscreenElement) {
                mainVideoContainer.requestFullscreen().catch(err => {
                    alert(`Erreur plein écran: ${err.message}`);
                });
            } else {
                document.exitFullscreen();
            }
        }

        // Événements
        autoPlayBtn.addEventListener('click', toggleAutoPlay);
        nextFilmBtn.addEventListener('click', playNextFilm);
        fullscreenBtn.addEventListener('click', toggleFullscreen);

        filmCards.forEach((card, index) => {
            card.addEventListener('click', () => {
                // Arrêter le mode auto si actif
                if (isAutoPlaying) {
                    toggleAutoPlay();
                }
                
                // Charger le film sélectionné
                loadFilm(index);
            });
        });

        // Charger le premier film au démarrage
        loadFilm(0);
    </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/importation" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>