This repository was archived by the owner on Oct 24, 2025. It is now read-only.
forked from Luuxis/Selvania-Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ejs
More file actions
1197 lines (1076 loc) · 47.8 KB
/
index.ejs
File metadata and controls
1197 lines (1076 loc) · 47.8 KB
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
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<style>
:root {
--primary: #451F21;
--secondary: #F8BA59;
--secondary-dark: #EB843B;
--white: #FFFFFF;
}
/* Preloader Container */
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: linear-gradient(135deg, var(--primary) 0%, #3A1A1C 50%, var(--primary) 100%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
overflow: hidden;
transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
.preloader.fade-out {
opacity: 0;
visibility: hidden;
}
@keyframes particleFloat {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}
/* Logo Container */
.logo-container {
position: relative;
z-index: 3;
text-align: center;
opacity: 0;
transform: scale(0.8) translateY(30px);
animation: logoEntrance 1.5s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
animation-delay: 0.3s;
}
.logo-image {
width: 120px;
height: 120px;
margin: 0 auto 2rem auto;
position: relative;
opacity: 0;
transform: scale(0.5) rotate(-180deg);
animation: logoRotateIn 1.2s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
animation-delay: 0.5s;
}
.logo-image img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 10px 30px rgba(248, 186, 89, 0.3));
}
/* Cercle lumineux derrière le logo */
.logo-image::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 140px;
height: 140px;
background: radial-gradient(circle, rgba(248, 186, 89, 0.2) 0%, transparent 70%);
border-radius: 50%;
animation: glowPulse 2s ease-in-out infinite;
z-index: -1;
}
@keyframes glowPulse {
0%, 100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.3;
}
50% {
transform: translate(-50%, -50%) scale(1.2);
opacity: 0.1;
}
}
/* Texte du logo */
.logo-text {
font-family: 'fs-mojang-studios-2', monospace, sans-serif;
font-size: 3.5rem;
font-weight: bold;
color: var(--white);
position: relative;
line-height: 1.1;
margin-bottom: 1rem;
}
.logo-text .highlight {
color: var(--secondary);
text-shadow:
0 0 10px rgba(248, 186, 89, 0.5),
0 0 20px rgba(248, 186, 89, 0.3),
0 0 30px rgba(248, 186, 89, 0.2);
}
.logo-text span {
display: inline-block;
transform: translateY(100%);
opacity: 0;
animation: textSlideUp 0.6s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Animation décalée pour chaque lettre */
.logo-text span:nth-child(1) { animation-delay: 0.8s; }
.logo-text span:nth-child(2) { animation-delay: 0.9s; }
.logo-text span:nth-child(3) { animation-delay: 1.0s; }
.logo-text span:nth-child(4) { animation-delay: 1.1s; }
.logo-text span:nth-child(5) { animation-delay: 1.2s; }
.logo-text span:nth-child(6) { animation-delay: 1.3s; }
.logo-text span:nth-child(7) { animation-delay: 1.4s; }
.logo-text span:nth-child(8) { animation-delay: 1.5s; }
.logo-text span:nth-child(9) { animation-delay: 1.6s; }
.logo-text span:nth-child(10) { animation-delay: 1.7s; }
/* Slogan */
.logo-slogan {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
letter-spacing: 0.5px;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.8s forwards ease-out;
animation-delay: 2s;
margin-bottom: 2rem;
}
/* Barre de progression */
.progress-container {
height: 4px;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
overflow: hidden;
position: relative;
opacity: 0;
transform: scaleX(0);
animation: progressAppear 0.5s forwards ease-out;
animation-delay: 2.3s;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
border-radius: 2px;
width: 0%;
animation: progressFill 2s forwards ease-in-out;
animation-delay: 2.5s;
position: relative;
overflow: hidden;
}
.progress-bar::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
animation: progressShine 2s infinite;
animation-delay: 2.5s;
}
/* Loading text */
.loading-text {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
margin-top: 1rem;
opacity: 0;
animation: fadeInUp 0.5s forwards ease-out;
animation-delay: 2.3s;
}
/* Keyframes */
@keyframes logoEntrance {
0% {
opacity: 0;
transform: scale(0.8) translateY(30px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes logoRotateIn {
0% {
opacity: 0;
transform: scale(0.5) rotate(-180deg);
}
100% {
opacity: 1;
transform: scale(1) rotate(0deg);
}
}
@keyframes textSlideUp {
0% {
transform: translateY(100%);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes progressAppear {
0% {
opacity: 0;
transform: scaleX(0);
}
100% {
opacity: 1;
transform: scaleX(1);
}
}
@keyframes progressFill {
0% { width: 0%; }
100% { width: 100%; }
}
@keyframes progressShine {
0% { left: -100%; }
100% { left: 100%; }
}
/* Responsive */
@media (max-width: 768px) {
.logo-image {
width: 100px;
height: 100px;
}
.logo-text {
font-size: 2.5rem;
}
.progress-container {
width: 250px;
}
}
</style>
<!-- Preloader HTML -->
<div class="preloader" id="preloader">
<div class="logo-container">
<div class="logo-image">
<img src="/img/logo.png" alt="MultiGameS Studio Logo">
</div>
<div class="logo-text">
<span>M</span><span>u</span><span>l</span><span>t</span><span>i</span><span class="highlight">G</span><span class="highlight">a</span><span class="highlight">m</span><span class="highlight">e</span><span class="highlight">S</span>
</div>
<div class="logo-slogan">
Événements Minecraft exclusifs
</div>
<div class="progress-container">
<div class="progress-bar"></div>
</div>
<div class="loading-text">
Chargement en cours...
</div>
</div>
</div>
<!-- Hero Section -->
<!-- Section Hero modernisée -->
<section class="hero-section relative min-h-screen flex items-center overflow-hidden">
<!-- Video background avec overlay -->
<div class="absolute inset-0 w-full h-full z-0">
<video autoplay loop muted playsinline class="w-full h-full object-cover" poster="/img/hero-poster.jpg">
<source src="/videos/bg.mp4" type="video/mp4">
</video>
<div class="absolute inset-0 bg-gradient-to-br from-[#451F21]/85 via-[#451F21]/70 to-[#EB843B]/50"></div>
</div>
<!-- Particules flottantes -->
<div class="absolute inset-0 z-5 pointer-events-none">
<div class="floating-particle" style="top: 20%; left: 10%; animation-delay: 0s;"></div>
<div class="floating-particle" style="top: 60%; left: 80%; animation-delay: 2s;"></div>
<div class="floating-particle" style="top: 30%; left: 70%; animation-delay: 4s;"></div>
<div class="floating-particle" style="top: 80%; left: 20%; animation-delay: 1s;"></div>
</div>
<!-- Contenu principal -->
<div class="container mx-auto px-6 py-24 relative z-10 text-center">
<!-- Logo avec animation -->
<div class="hero-logo mb-8 opacity-0 transform translate-y-8" data-aos="fade-up" data-aos-delay="300">
<div class="w-32 h-32 mx-auto relative group cursor-pointer">
<div class="absolute inset-0 bg-gradient-to-br from-[#F8BA59]/30 to-[#EB843B]/30 rounded-full blur-xl group-hover:blur-2xl transition-all duration-500"></div>
<img src="/img/logo.png" alt="MultiGameS Studio"
class="relative z-10 w-full h-full object-contain drop-shadow-2xl group-hover:scale-110 transition-transform duration-500">
</div>
</div>
<!-- Titre principal avec effet de frappe -->
<h1 class="hero-title text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-mojang font-bold mb-8 text-white opacity-0 transform translate-y-8"
data-aos="fade-up" data-aos-delay="600">
<span class="typing-container">
<span class="text-white">MULTIGAMES</span>
<br class="sm:hidden">
<span class="text-[#F8BA59] highlight-glow">STUDIO</span>
</span>
</h1>
<!-- Sous-titre élégant -->
<div class="hero-subtitle mb-12 opacity-0 transform translate-y-8" data-aos="fade-up" data-aos-delay="900">
<p class="text-lg md:text-2xl text-white/90 leading-relaxed max-w-4xl mx-auto">
<span class="inline-block bg-white/10 px-4 py-2 rounded-xl backdrop-blur-sm border border-white/20 mb-4">
✨ Événements Minecraft exclusifs
</span>
<br>
<span class="text-[#F8BA59] font-semibold">Tournois • Défis • Compétitions</span>
de 10 à 60 joueurs
</p>
</div>
<!-- Statistiques en direct -->
<div class="hero-stats mb-12 opacity-0 transform translate-y-8" data-aos="fade-up" data-aos-delay="1200">
<div class="flex flex-wrap justify-center gap-6 md:gap-8">
<div class="stat-card">
<div class="text-2xl md:text-3xl font-bold text-[#F8BA59] mb-1">200+</div>
<div class="text-white/80 text-sm">Joueurs actifs</div>
</div>
<div class="stat-card">
<div class="text-2xl md:text-3xl font-bold text-[#F8BA59] mb-1">150+</div>
<div class="text-white/80 text-sm">Événements</div>
</div>
<div class="stat-card">
<div class="text-2xl md:text-3xl font-bold text-[#F8BA59] mb-1">24/7</div>
<div class="text-white/80 text-sm">Support</div>
</div>
</div>
</div>
<!-- Boutons CTA modernes -->
<div class="hero-actions mb-16 opacity-0 transform translate-y-8" data-aos="fade-up" data-aos-delay="1500">
<div class="flex flex-col sm:flex-row justify-center gap-4 md:gap-6">
<a href="http://discord.multigames-studio.fr/" target="_blank"
class="cta-primary group">
<div class="flex items-center justify-center">
<svg class="w-5 h-5 mr-3 group-hover:scale-110 transition-transform" fill="currentColor" viewBox="0 0 24 24">
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.211.375-.445.865-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"/>
</svg>
<span class="font-bold">Rejoindre Discord</span>
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"/>
</svg>
</div>
</a>
<a href="/calendrier" class="cta-secondary group">
<svg class="w-5 h-5 mr-3 group-hover:scale-110 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
<span class="font-bold">Calendrier</span>
</a>
</div>
</div>
<!-- Indicateur de scroll -->
<div class="scroll-indicator absolute bottom-8 left-1/2 transform -translate-x-1/2 opacity-0"
data-aos="fade-up" data-aos-delay="1800">
<div class="scroll-mouse">
<div class="scroll-wheel"></div>
</div>
<p class="text-white/60 text-sm mt-3">Défiler pour découvrir</p>
</div>
</div>
</section>
<style>
/* Variables CSS */
:root {
--primary: #451F21;
--secondary: #F8BA59;
--secondary-dark: #EB843B;
--white: #FFFFFF;
}
/* Hero Section */
.hero-section {
min-height: 100vh;
position: relative;
background: linear-gradient(135deg, var(--primary) 0%, #3A1A1C 100%);
}
/* Particules flottantes */
.floating-particle {
position: absolute;
width: 3px;
height: 3px;
background: rgba(248, 186, 89, 0.7);
border-radius: 50%;
animation: float 8s ease-in-out infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(0px) translateX(0px);
opacity: 0.3;
}
25% {
transform: translateY(-30px) translateX(15px);
opacity: 1;
}
50% {
transform: translateY(-60px) translateX(-15px);
opacity: 0.7;
}
75% {
transform: translateY(-30px) translateX(10px);
opacity: 1;
}
}
/* Effet de surbrillance */
.highlight-glow {
text-shadow:
0 0 10px rgba(248, 186, 89, 0.5),
0 0 20px rgba(248, 186, 89, 0.3),
0 0 30px rgba(248, 186, 89, 0.2);
}
/* Cartes de statistiques */
.stat-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 16px;
padding: 1rem 1.5rem;
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
}
/* Boutons CTA */
.cta-primary {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
color: var(--primary);
font-weight: 700;
border-radius: 16px;
transition: all 0.3s ease;
transform: translateY(0);
box-shadow: 0 10px 25px rgba(248, 186, 89, 0.3);
border: none;
text-decoration: none;
}
.cta-primary:hover {
transform: translateY(-3px);
box-shadow: 0 15px 35px rgba(248, 186, 89, 0.4);
scale: 1.05;
}
.cta-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
background: rgba(255, 255, 255, 0.1);
color: white;
font-weight: 700;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
text-decoration: none;
}
.cta-secondary:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* Indicateur de scroll */
.scroll-mouse {
width: 24px;
height: 40px;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 12px;
position: relative;
margin: 0 auto;
cursor: pointer;
transition: all 0.3s ease;
}
.scroll-mouse:hover {
border-color: var(--secondary);
}
.scroll-wheel {
width: 3px;
height: 8px;
background: rgba(255, 255, 255, 0.7);
border-radius: 2px;
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
animation: scroll-wheel 2s infinite;
}
@keyframes scroll-wheel {
0% {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
100% {
transform: translateX(-50%) translateY(16px);
opacity: 0;
}
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
line-height: 1.1;
}
.hero-subtitle p {
font-size: 1.125rem;
}
.cta-primary, .cta-secondary {
padding: 0.875rem 1.5rem;
font-size: 0.875rem;
}
.stat-card {
padding: 0.75rem 1rem;
}
}
@media (max-width: 640px) {
.hero-title {
font-size: 2rem;
}
.hero-actions {
margin-bottom: 2rem;
}
}
/* Animation d'entrée */
.hero-logo,
.hero-title,
.hero-subtitle,
.hero-stats,
.hero-actions,
.scroll-indicator {
transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* États loaded pour les animations */
body.loaded .hero-logo { animation: fadeInUp 0.8s 0.3s both; }
body.loaded .hero-title { animation: fadeInUp 0.8s 0.6s both; }
body.loaded .hero-subtitle { animation: fadeInUp 0.8s 0.9s both; }
body.loaded .hero-stats { animation: fadeInUp 0.8s 1.2s both; }
body.loaded .hero-actions { animation: fadeInUp 0.8s 1.5s both; }
body.loaded .scroll-indicator { animation: fadeInUp 0.8s 1.8s both; }
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const preloader = document.getElementById('preloader');
// Attendre que toutes les ressources soient chargées
const loadPromises = [
// Attendre les polices
document.fonts.ready,
// Attendre les images
new Promise(resolve => {
const images = document.querySelectorAll('img');
let loadedImages = 0;
if (images.length === 0) resolve();
images.forEach(img => {
if (img.complete) {
loadedImages++;
if (loadedImages === images.length) resolve();
} else {
img.addEventListener('load', () => {
loadedImages++;
if (loadedImages === images.length) resolve();
});
}
});
})
];
// Temps minimum d'affichage pour voir l'animation
const minDisplayTime = new Promise(resolve => setTimeout(resolve, 4500));
Promise.all([...loadPromises, minDisplayTime]).then(() => {
// Ajouter un délai pour la transition de sortie
setTimeout(() => {
preloader.classList.add('fade-out');
// Supprimer le preloader après la transition
setTimeout(() => {
preloader.remove();
// Déclencher l'animation du hero
document.body.classList.add('loaded');
}, 800);
}, 500);
});
});
</script>
<script>
// Animation de démarrage
document.addEventListener('DOMContentLoaded', function() {
// Déclencher les animations après un court délai
setTimeout(() => {
document.body.classList.add('loaded');
}, 100);
// Animation des compteurs
const stats = document.querySelectorAll('.stat-card .text-2xl');
const values = [200, 150];
const animateStats = () => {
stats.forEach((stat, index) => {
if (values[index]) {
let current = 0;
const target = values[index];
const increment = target / 100;
const timer = setInterval(() => {
current += increment;
if (current >= target) {
current = target;
clearInterval(timer);
}
stat.textContent = Math.floor(current) + '+';
}, 30);
}
});
};
// Démarrer les compteurs après un délai
setTimeout(animateStats, 1500);
});
// Fonction de scroll fluide
function scrollToNext() {
const nextSection = document.querySelector('.hero-section').nextElementSibling;
if (nextSection) {
nextSection.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
}
// Ajouter le clic sur l'indicateur de scroll
document.addEventListener('DOMContentLoaded', function() {
const scrollIndicator = document.querySelector('.scroll-indicator');
if (scrollIndicator) {
scrollIndicator.addEventListener('click', scrollToNext);
}
});
</script>
<!-- Garder le preloader et Hero Section existants -->
<!-- ... Code preloader et Hero Section inchangé ... -->
<!-- Section "Pourquoi MultiGames" améliorée -->
<section class="py-20 bg-gradient-to-b from-white to-gray-50">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-5xl md:text-6xl font-bold text-[#451F21] font-mojang mb-4">
Pourquoi choisir <span class="text-[#F8BA59]">MultiGames</span> ?
</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Une expérience Minecraft unique avec des événements pensés pour tous les types de joueurs
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Card 1 -->
<div class="group relative overflow-hidden bg-white rounded-2xl p-8 shadow-lg border-2 border-transparent hover:border-[#F8BA59] transition-all duration-300 hover:-translate-y-2 hover:shadow-2xl">
<div class="absolute top-0 right-0 w-20 h-20 bg-[#F8BA59]/10 rounded-full transform translate-x-6 -translate-y-6 group-hover:scale-150 transition-transform duration-500"></div>
<div class="relative z-10">
<div class="w-16 h-16 bg-gradient-to-br from-[#F8BA59] to-[#EB843B] rounded-2xl flex items-center justify-center mb-6 group-hover:rotate-12 transition-transform duration-300">
<i class="bi bi-joystick text-2xl text-white"></i>
</div>
<h3 class="text-2xl font-bold text-[#451F21] mb-4">Événement communautaire</h3>
<p class="text-gray-600 leading-relaxed">
Participe en solo ou en équipe à des événements conçus spécialement pour vous. Relevez des défis uniques, collaborez ou affrontez d'autres joueurs dans une ambiance fun et compétitive.
</p>
<div class="mt-6 flex items-center text-[#F8BA59] font-semibold group-hover:translate-x-2 transition-transform duration-300">
<span>En savoir plus</span>
<i class="bi bi-arrow-right ml-2"></i>
</div>
</div>
</div>
<!-- Card 2 -->
<div class="group relative overflow-hidden bg-white rounded-2xl p-8 shadow-lg border-2 border-transparent hover:border-[#F8BA59] transition-all duration-300 hover:-translate-y-2 hover:shadow-2xl">
<div class="absolute top-0 right-0 w-20 h-20 bg-[#F8BA59]/10 rounded-full transform translate-x-6 -translate-y-6 group-hover:scale-150 transition-transform duration-500"></div>
<div class="relative z-10">
<div class="w-16 h-16 bg-gradient-to-br from-[#F8BA59] to-[#EB843B] rounded-2xl flex items-center justify-center mb-6 group-hover:rotate-12 transition-transform duration-300">
<i class="bi bi-people-fill text-2xl text-white"></i>
</div>
<h3 class="text-2xl font-bold text-[#451F21] mb-4">Communauté francophone</h3>
<p class="text-gray-600 leading-relaxed">
Une activité toujours au rendez-vous, une modération bienveillante et une ambiance conviviale pour tous les profils de joueurs. Rejoins-nous et fais partie d'une communauté soudée et accueillante.
</p>
<div class="mt-6 flex items-center text-[#F8BA59] font-semibold group-hover:translate-x-2 transition-transform duration-300">
<span>Rejoindre Discord</span>
<i class="bi bi-arrow-right ml-2"></i>
</div>
</div>
</div>
<!-- Card 3 -->
<div class="group relative overflow-hidden bg-white rounded-2xl p-8 shadow-lg border-2 border-transparent hover:border-[#F8BA59] transition-all duration-300 hover:-translate-y-2 hover:shadow-2xl">
<div class="absolute top-0 right-0 w-20 h-20 bg-[#F8BA59]/10 rounded-full transform translate-x-6 -translate-y-6 group-hover:scale-150 transition-transform duration-500"></div>
<div class="relative z-10">
<div class="w-16 h-16 bg-gradient-to-br from-[#F8BA59] to-[#EB843B] rounded-2xl flex items-center justify-center mb-6 group-hover:rotate-12 transition-transform duration-300">
<i class="bi bi-stars text-2xl text-white"></i>
</div>
<h3 class="text-2xl font-bold text-[#451F21] mb-4">Expérience Premium</h3>
<p class="text-gray-600 leading-relaxed">
Serveurs performants, plugins exclusifs et souvenirs inoubliables à chaque session
</p>
<div class="mt-6 flex items-center text-[#F8BA59] font-semibold group-hover:translate-x-2 transition-transform duration-300">
<span>Découvrir</span>
<i class="bi bi-arrow-right ml-2"></i>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section Stats redesignée -->
<section class="py-20 bg-[#451F21] relative overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-r from-[#451F21] via-[#5a2529] to-[#451F21]"></div>
<div class="absolute top-0 left-1/4 w-96 h-96 bg-[#F8BA59]/10 rounded-full blur-3xl"></div>
<div class="absolute bottom-0 right-1/4 w-96 h-96 bg-[#EB843B]/10 rounded-full blur-3xl"></div>
<div class="relative z-10 max-w-6xl mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-white font-mojang mb-4">
MultiGames en <span class="text-[#F8BA59]">chiffres</span>
</h2>
<p class="text-xl text-white/80">
Des statistiques qui parlent d'elles-mêmes
</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
<div class="text-center group">
<div class="bg-white/10 backdrop-blur-sm rounded-2xl p-8 hover:bg-white/20 transition-all duration-300 hover:scale-105">
<div class="text-5xl md:text-6xl font-bold text-[#F8BA59] mb-2" id="counter1">200+</div>
<div class="text-white/90 font-medium text-lg">Joueurs Actifs</div>
<div class="text-white/60 text-sm mt-2">Chaque semaine</div>
</div>
</div>
<div class="text-center group">
<div class="bg-white/10 backdrop-blur-sm rounded-2xl p-8 hover:bg-white/20 transition-all duration-300 hover:scale-105">
<div class="text-5xl md:text-6xl font-bold text-[#F8BA59] mb-2" id="counter2">150+</div>
<div class="text-white/90 font-medium text-lg">Événements</div>
<div class="text-white/60 text-sm mt-2">Organisés</div>
</div>
</div>
<div class="text-center group">
<div class="bg-white/10 backdrop-blur-sm rounded-2xl p-8 hover:bg-white/20 transition-all duration-300 hover:scale-105">
<div class="text-5xl md:text-6xl font-bold text-[#F8BA59] mb-2" id="counter3">50+</div>
<div class="text-white/90 font-medium text-lg">Tournois</div>
<div class="text-white/60 text-sm mt-2">Remportés</div>
</div>
</div>
<div class="text-center group">
<div class="bg-white/10 backdrop-blur-sm rounded-2xl p-8 hover:bg-white/20 transition-all duration-300 hover:scale-105">
<div class="text-5xl md:text-6xl font-bold text-[#F8BA59] mb-2" id="counter4">DISCORD ALL</div>
<div class="text-white/90 font-medium text-lg">Heures</div>
<div class="text-white/60 text-sm mt-2">De gameplay</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section À propos modernisée -->
<section class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-6">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-center">
<div class="order-2 lg:order-1">
<div class="relative">
<div class="aspect-video bg-gradient-to-br from-[#451F21] to-[#EB843B] rounded-3xl overflow-hidden shadow-2xl">
<div class="absolute inset-0 bg-black/20"></div>
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="w-20 h-20 bg-white/20 rounded-full flex items-center justify-center mb-4 mx-auto backdrop-blur-sm">
<i class="bi bi-play-fill text-3xl text-white"></i>
</div>
<p class="text-white/90 font-medium">Découvrir en vidéo</p>
</div>
</div>
</div>
<div class="absolute -bottom-6 -right-6 w-24 h-24 bg-[#F8BA59] rounded-2xl rotate-12 opacity-80"></div>
<div class="absolute -top-6 -left-6 w-16 h-16 bg-[#EB843B] rounded-xl rotate-45 opacity-60"></div>
</div>
</div>
<div class="order-1 lg:order-2">
<div class="mb-8">
<span class="inline-block px-4 py-2 bg-[#F8BA59]/10 text-[#F8BA59] font-semibold rounded-full text-sm mb-4">
À PROPOS DE NOUS
</span>
<h2 class="text-4xl md:text-5xl font-bold text-[#451F21] font-mojang mb-6">
L'aventure <span class="text-[#F8BA59]">MultiGames</span>
</h2>
</div>
<div class="space-y-6">
<p class="text-lg text-gray-600 leading-relaxed">
Depuis notre création, <span class="font-semibold text-[#451F21]">MultiGames Studio</span>
s'est imposé comme LA référence pour les événements Minecraft exclusifs.
Nous créons des expériences uniques pour 10 à 60 joueurs.
</p>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="flex items-start space-x-3">
<div class="w-6 h-6 bg-[#F8BA59] rounded-full flex-shrink-0 flex items-center justify-center mt-1">
<i class="bi bi-check text-white text-sm"></i>
</div>
<div>
<h4 class="font-semibold text-[#451F21]">Événements uniques</h4>
<p class="text-gray-600 text-sm">Conçus sur mesure</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="w-6 h-6 bg-[#F8BA59] rounded-full flex-shrink-0 flex items-center justify-center mt-1">
<i class="bi bi-check text-white text-sm"></i>
</div>
<div>
<h4 class="font-semibold text-[#451F21]">Communauté active</h4>
<p class="text-gray-600 text-sm">24h/24, 7j/7</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="w-6 h-6 bg-[#F8BA59] rounded-full flex-shrink-0 flex items-center justify-center mt-1">
<i class="bi bi-check text-white text-sm"></i>
</div>
<div>
<h4 class="font-semibold text-[#451F21]">Serveurs premium</h4>
<p class="text-gray-600 text-sm">Performance garantie</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="w-6 h-6 bg-[#F8BA59] rounded-full flex-shrink-0 flex items-center justify-center mt-1">
<i class="bi bi-check text-white text-sm"></i>
</div>
<div>
<h4 class="font-semibold text-[#451F21]">Support dédié</h4>
<p class="text-gray-600 text-sm">Équipe réactive</p>
</div>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4 pt-6">
<a href="http://discord.multigames-studio.fr/" target="_blank"
class="inline-flex items-center justify-center px-8 py-4 bg-[#F8BA59] text-[#451F21] font-bold rounded-2xl hover:bg-[#EB843B] hover:text-white transition-all duration-300 transform hover:scale-105 shadow-lg">
<i class="bi bi-discord mr-2"></i>
Rejoindre Discord
</a>
<a href="/calendrier"
class="inline-flex items-center justify-center px-8 py-4 border-2 border-[#451F21] text-[#451F21] font-bold rounded-2xl hover:bg-[#451F21] hover:text-white transition-all duration-300">
<i class="bi bi-calendar-event mr-2"></i>
Voir le calendrier
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section Projets redesignée -->
<section class="py-20 bg-gradient-to-b from-gray-50 to-white">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-16">
<span class="inline-block px-4 py-2 bg-[#F8BA59]/10 text-[#F8BA59] font-semibold rounded-full text-sm mb-4">
NOS PROJETS
</span>
<h2 class="text-4xl md:text-5xl font-bold text-[#451F21] font-mojang mb-4">
Nos <span class="text-[#F8BA59]">univers</span> de jeu
</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Découvrez nos différents modes de jeu, chacun offrant une expérience unique
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Project 1 -->
<div class="group relative overflow-hidden bg-white rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-500 hover:-translate-y-4">
<div class="aspect-[4/3] bg-gradient-to-br from-red-500 to-red-700 relative overflow-hidden">
<div class="absolute inset-0 bg-black/20"></div>
<div class="absolute inset-0 flex items-center justify-center">
<i class="bi bi-sword text-6xl text-white group-hover:scale-110 transition-transform duration-300"></i>
</div>
<div class="absolute top-4 right-4">
<span class="px-3 py-1 bg-white/20 backdrop-blur-sm text-white text-xs font-semibold rounded-full">
BIENTÔT
</span>
</div>
</div>
<div class="p-8">
<h3 class="text-2xl font-bold text-[#451F21] mb-3">MineClash</h3>
<p class="text-gray-600 mb-6 leading-relaxed">
Tournois PvP intensifs avec système de classement, récompenses exclusives et arènes épiques
</p>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2 text-[#F8BA59]">
<i class="bi bi-people text-sm"></i>
<span class="text-sm font-medium">16-32 joueurs</span>
</div>
<div class="flex items-center text-[#451F21] group-hover:text-[#F8BA59] transition-colors duration-300">
<span class="text-sm font-semibold mr-2">En savoir plus</span>
<i class="bi bi-arrow-right group-hover:translate-x-1 transition-transform duration-300"></i>
</div>
</div>
</div>
</div>
<!-- Project 2 -->
<div class="group relative overflow-hidden bg-white rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-500 hover:-translate-y-4">
<div class="aspect-[4/3] bg-gradient-to-br from-green-500 to-green-700 relative overflow-hidden">
<div class="absolute inset-0 bg-black/20"></div>
<div class="absolute inset-0 flex items-center justify-center">
<i class="bi bi-bricks text-6xl text-white group-hover:scale-110 transition-transform duration-300"></i>
</div>
<div class="absolute top-4 right-4">
<span class="px-3 py-1 bg-white/20 backdrop-blur-sm text-white text-xs font-semibold rounded-full">