File size: 30,434 Bytes
bcf3801
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ZenTech Pause - Votre espace de relaxation</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>
        .breathing-text {
            animation: breathing 8s ease-in-out infinite;
        }
        
        @keyframes breathing {
            0% {
                transform: scale(0.95);
                opacity: 0.8;
            }
            50% {
                transform: scale(1.05);
                opacity: 1;
            }
            100% {
                transform: scale(0.95);
                opacity: 0.8;
            }
        }
        
        .breath-instruction {
            transition: all 0.5s;
        }
        
        .sound-btn {
            transition: all 0.3s;
        }
        
        .sound-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        .sound-btn.active {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            border: 2px solid #3b82f6;
        }
        
        .bubble {
            position: absolute;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }
        
        .bubble:hover {
            transform: scale(1.1);
        }
        
        .bubble:active {
            opacity: 0;
            transform: scale(1.5);
        }
        
        .stretch-card {
            transition: all 0.3s;
        }
        
        .stretch-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
    </style>
</head>
<body class="bg-white font-sans min-h-screen flex flex-col">
    <!-- Header -->
    <header class="bg-white shadow-sm py-4">
        <div class="container mx-auto px-4 flex justify-between items-center">
            <h1 class="text-2xl font-bold text-gray-800">Zen<span class="text-blue-500">Tech</span> Pause</h1>
            <nav>
                <ul class="flex space-x-6">
                    <li><button onclick="showTab('home')" class="text-gray-600 hover:text-blue-500 font-medium">Accueil</button></li>
                    <li><button onclick="showTab('pause')" class="text-gray-600 hover:text-blue-500 font-medium">Pause</button></li>
                    <li><button onclick="showTab('game')" class="text-gray-600 hover:text-blue-500 font-medium">Mini-jeu</button></li>
                    <li><button onclick="showTab('tips')" class="text-gray-600 hover:text-blue-500 font-medium">Astuces</button></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- Main Content -->
    <main class="flex-grow container mx-auto px-4 py-8">
        <!-- Home Tab -->
        <div id="home" class="tab-content active">
            <section class="text-center py-16">
                <div class="max-w-3xl mx-auto">
                    <h2 class="text-4xl md:text-5xl font-bold text-gray-800 mb-8 breathing-text">Faites une vraie pause.</h2>
                    <div class="flex flex-col items-center justify-center mb-12">
                        <div id="breath-instruction" class="text-2xl font-medium text-blue-500 mb-4 breath-instruction">Inspirez...</div>
                        <div class="w-40 h-40 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                            <div id="breath-circle" class="w-20 h-20 bg-blue-500 rounded-full transition-all duration-4000"></div>
                        </div>
                        <p class="text-gray-600 max-w-md">Prenez un moment pour vous détendre. Suivez l'animation pour une respiration consciente.</p>
                    </div>
                    <button onclick="showTab('pause')" class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-3 px-8 rounded-full transition-all duration-300 transform hover:scale-105">
                        Commencer ma pause
                    </button>
                </div>
            </section>
        </div>

        <!-- Pause Tab -->
        <div id="pause" class="tab-content">
            <section class="py-8">
                <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Choisissez votre pause</h2>
                
                <!-- Sounds Section -->
                <div class="mb-12">
                    <h3 class="text-xl font-semibold text-gray-700 mb-6 flex items-center">
                        <i class="fas fa-music mr-2 text-blue-500"></i> Sons relaxants
                    </h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <button onclick="playSound('tibetan')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center">
                            <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4">
                                <i class="fas fa-spa text-blue-500 text-3xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Bol tibétain</h4>
                            <p class="text-gray-600 text-sm text-center">Son pur et résonnant pour calmer l'esprit</p>
                            <audio id="tibetan-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-singing-bowl-1683.mp3"></audio>
                        </button>
                        
                        <button onclick="playSound('waves')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center">
                            <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4">
                                <i class="fas fa-water text-blue-500 text-3xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Vagues océanes</h4>
                            <p class="text-gray-600 text-sm text-center">Bruit apaisant des vagues sur le rivage</p>
                            <audio id="waves-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-waves-on-the-beach-1183.mp3"></audio>
                        </button>
                        
                        <button onclick="playSound('wind')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center">
                            <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4">
                                <i class="fas fa-wind text-blue-500 text-3xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Vent dans les arbres</h4>
                            <p class="text-gray-600 text-sm text-center">Douce brise à travers les feuilles</p>
                            <audio id="wind-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-wind-in-the-trees-1681.mp3"></audio>
                        </button>
                    </div>
                </div>
                
                <!-- Stretches Section -->
                <div>
                    <h3 class="text-xl font-semibold text-gray-700 mb-6 flex items-center">
                        <i class="fas fa-running mr-2 text-green-500"></i> Étirements rapides
                    </h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                        <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100">
                            <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4">
                                <i class="fas fa-hands text-green-500 text-5xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Étirement des bras</h4>
                            <p class="text-gray-600 text-sm mb-3">Levez les bras, croisez les doigts et étirez-vous vers le haut pendant 15 secondes.</p>
                            <div class="flex items-center text-green-500 text-sm">
                                <i class="fas fa-clock mr-1"></i>
                                <span>15 secondes</span>
                            </div>
                        </div>
                        
                        <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100">
                            <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4">
                                <i class="fas fa-user text-green-500 text-5xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Rotation du cou</h4>
                            <p class="text-gray-600 text-sm mb-3">Tournez lentement la tête d'un côté à l'autre, puis faites des cercles pendant 20 secondes.</p>
                            <div class="flex items-center text-green-500 text-sm">
                                <i class="fas fa-clock mr-1"></i>
                                <span>20 secondes</span>
                            </div>
                        </div>
                        
                        <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100">
                            <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4">
                                <i class="fas fa-hand-paper text-green-500 text-5xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Étirement des poignets</h4>
                            <p class="text-gray-600 text-sm mb-3">Tirez doucement chaque main vers l'arrière pendant 10 secondes de chaque côté.</p>
                            <div class="flex items-center text-green-500 text-sm">
                                <i class="fas fa-clock mr-1"></i>
                                <span>10 secondes par main</span>
                            </div>
                        </div>
                        
                        <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100">
                            <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4">
                                <i class="fas fa-eye text-green-500 text-5xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-800 mb-2">Pause visuelle</h4>
                            <p class="text-gray-600 text-sm mb-3">Fermez les yeux et couvrez-les avec vos paumes pendant 30 secondes pour reposer vos yeux.</p>
                            <div class="flex items-center text-green-500 text-sm">
                                <i class="fas fa-clock mr-1"></i>
                                <span>30 secondes</span>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>

        <!-- Game Tab -->
        <div id="game" class="tab-content">
            <section class="py-8">
                <h2 class="text-3xl font-bold text-gray-800 mb-2 text-center">Bubbles Burst</h2>
                <p class="text-gray-600 text-center mb-8">Cliquez sur les bulles pour les faire éclater et vous détendre</p>
                
                <div class="flex justify-center mb-6">
                    <div class="bg-white rounded-full px-6 py-3 shadow-md flex items-center">
                        <i class="fas fa-bullseye text-blue-500 mr-2"></i>
                        <span class="font-medium text-gray-800">Bulles éclatées: </span>
                        <span id="bubble-counter" class="font-bold text-blue-500 ml-1">0</span>
                    </div>
                </div>
                
                <div id="bubble-container" class="relative w-full h-96 bg-white rounded-xl shadow-inner border border-gray-200 overflow-hidden">
                    <div class="absolute inset-0 flex items-center justify-center">
                        <p class="text-gray-400">Cliquez n'importe où pour commencer</p>
                    </div>
                </div>
                
                <div class="flex justify-center mt-6">
                    <button onclick="resetBubbleGame()" class="bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-6 rounded-full transition-all duration-300">
                        <i class="fas fa-redo mr-2"></i> Recommencer
                    </button>
                </div>
            </section>
        </div>

        <!-- Tips Tab -->
        <div id="tips" class="tab-content">
            <section class="py-8">
                <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Astuces pour assistants techniques</h2>
                
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                    <!-- Raccourcis clavier -->
                    <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-blue-50 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-keyboard text-blue-500"></i>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-800">Raccourcis clavier</h3>
                        </div>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + L</span>
                                <span>Verrouiller rapidement votre poste</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Ctrl + Shift + Esc</span>
                                <span>Ouvrir directement le gestionnaire des tâches</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + V</span>
                                <span>Historique du presse-papiers (Windows 10+)</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + .</span>
                                <span>Ouvrir l'émoticône et le sélecteur de symboles</span>
                            </li>
                        </ul>
                    </div>
                    
                    <!-- Outils utiles -->
                    <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-green-50 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-tools text-green-500"></i>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-800">Outils utiles</h3>
                        </div>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Process Explorer</span>
                                <span>Alternative avancée au gestionnaire des tâches</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Wireshark</span>
                                <span>Analyseur de paquets réseau</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Everything</span>
                                <span>Recherche ultra-rapide de fichiers</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Greenshot</span>
                                <span>Outil de capture d'écran léger et efficace</span>
                            </li>
                        </ul>
                    </div>
                    
                    <!-- Bonnes pratiques -->
                    <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-50 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-check-circle text-purple-500"></i>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-800">Bonnes pratiques</h3>
                        </div>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">1</span>
                                <span>Documentez chaque intervention, même mineure</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">2</span>
                                <span>Faites des sauvegardes avant toute modification importante</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">3</span>
                                <span>Planifiez des pauses régulières pour maintenir votre concentration</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">4</span>
                                <span>Restez à jour avec les nouvelles technologies et vulnérabilités</span>
                            </li>
                        </ul>
                    </div>
                    
                    <!-- Gestion du stress -->
                    <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-yellow-50 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-heart text-yellow-500"></i>
                            </div>
                            <h3 class="text-xl font-semibold text-gray-800">Gestion du stress</h3>
                        </div>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">1</span>
                                <span>Priorisez les tâches et décomposez les problèmes complexes</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">2</span>
                                <span>Communiquez clairement les délais réalistes aux utilisateurs</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">3</span>
                                <span>Apprenez à dire non quand la charge de travail est trop importante</span>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">4</span>
                                <span>Pratiquez la respiration consciente lors des situations stressantes</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </section>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-50 py-8 border-t border-gray-200">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h2 class="text-xl font-bold text-gray-800">Zen<span class="text-blue-500">Tech</span> Pause</h2>
                    <p class="text-gray-600 text-sm">Votre espace de relaxation pour assistants techniques</p>
                </div>
                <div class="flex space-x-4">
                    <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors">
                        <i class="fab fa-twitter text-xl"></i>
                    </a>
                    <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors">
                        <i class="fab fa-linkedin text-xl"></i>
                    </a>
                    <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors">
                        <i class="fab fa-github text-xl"></i>
                    </a>
                </div>
            </div>
            <div class="mt-8 pt-8 border-t border-gray-200 text-center text-sm text-gray-500">
                <p>© 2023 ZenTech Pause. Un projet de <a href="#" class="text-blue-500 hover:underline">TechAssist Lab</a>.</p>
                <p class="mt-2">Conçu pour aider les professionnels de l'informatique à gérer leur stress et prévenir l'épuisement.</p>
            </div>
        </div>
    </footer>

    <script>
        // Tab navigation
        function showTab(tabId) {
            // Hide all tabs
            document.querySelectorAll('.tab-content').forEach(tab => {
                tab.classList.remove('active');
            });
            
            // Show selected tab
            document.getElementById(tabId).classList.add('active');
            
            // If showing game tab, start bubble game
            if (tabId === 'game') {
                setTimeout(() => {
                    startBubbleGame();
                }, 500);
            }
            
            // If showing home tab, start breathing animation
            if (tabId === 'home') {
                startBreathingAnimation();
            } else {
                stopBreathingAnimation();
            }
            
            // Stop any playing sounds when switching tabs
            stopAllSounds();
        }
        
        // Breathing animation
        let breathingInterval;
        let isInhaling = true;
        
        function startBreathingAnimation() {
            const breathCircle = document.getElementById('breath-circle');
            const breathInstruction = document.getElementById('breath-instruction');
            
            breathCircle.style.transform = 'scale(1)';
            breathInstruction.textContent = 'Inspirez...';
            isInhaling = true;
            
            breathingInterval = setInterval(() => {
                if (isInhaling) {
                    // Exhale
                    breathCircle.style.transform = 'scale(0.5)';
                    breathInstruction.textContent = 'Expirez...';
                    isInhaling = false;
                } else {
                    // Inhale
                    breathCircle.style.transform = 'scale(1)';
                    breathInstruction.textContent = 'Inspirez...';
                    isInhaling = true;
                }
            }, 8000); // 8 seconds total (4 in, 4 out)
        }
        
        function stopBreathingAnimation() {
            clearInterval(breathingInterval);
        }
        
        // Sound controls
        let currentSound = null;
        
        function playSound(soundType) {
            // Stop any currently playing sound
            stopAllSounds();
            
            // Get the sound element
            const soundElement = document.getElementById(`${soundType}-sound`);
            
            // Play the sound
            soundElement.currentTime = 0;
            soundElement.play();
            currentSound = soundElement;
            
            // Highlight the active button
            document.querySelectorAll('.sound-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            
            // Find the button that was clicked and add active class
            const buttons = document.querySelectorAll('.sound-btn');
            buttons.forEach(btn => {
                if (btn.getAttribute('onclick').includes(soundType)) {
                    btn.classList.add('active');
                }
            });
        }
        
        function stopAllSounds() {
            if (currentSound) {
                currentSound.pause();
                currentSound.currentTime = 0;
                currentSound = null;
            }
            
            // Remove active class from all sound buttons
            document.querySelectorAll('.sound-btn').forEach(btn => {
                btn.classList.remove('active');
            });
        }
        
        // Bubble game
        let bubbleCount = 0;
        let bubbleInterval;
        
        function startBubbleGame() {
            const container = document.getElementById('bubble-container');
            container.innerHTML = ''; // Clear any existing bubbles
            
            // Start creating bubbles
            bubbleInterval = setInterval(createBubble, 800);
            
            // Click handler for bubbles
            container.addEventListener('click', function(e) {
                // If clicking directly on a bubble, the event will bubble up
                if (e.target.classList.contains('bubble')) {
                    popBubble(e.target);
                }
            });
        }
        
        function createBubble() {
            const container = document.getElementById('bubble-container');
            const containerRect = container.getBoundingClientRect();
            
            const size = Math.random() * 50 + 30; // 30-80px
            const x = Math.random() * (containerRect.width - size);
            const y = Math.random() * (containerRect.height - size);
            
            const colors = ['bg-blue-400', 'bg-green-400', 'bg-purple-400', 'bg-yellow-400', 'bg-pink-400'];
            const color = colors[Math.floor(Math.random() * colors.length)];
            
            const bubble = document.createElement('div');
            bubble.className = `bubble ${color} opacity-90`;
            bubble.style.width = `${size}px`;
            bubble.style.height = `${size}px`;
            bubble.style.left = `${x}px`;
            bubble.style.top = `${y}px`;
            
            container.appendChild(bubble);
            
            // Remove bubble after some time if not popped
            setTimeout(() => {
                if (bubble.parentNode === container) {
                    bubble.style.opacity = '0';
                    bubble.style.transform = 'scale(0.5)';
                    setTimeout(() => {
                        if (bubble.parentNode === container) {
                            container.removeChild(bubble);
                        }
                    }, 200);
                }
            }, 5000);
        }
        
        function popBubble(bubble) {
            bubble.style.opacity = '0';
            bubble.style.transform = 'scale(1.5)';
            
            // Remove bubble after animation
            setTimeout(() => {
                if (bubble.parentNode) {
                    bubble.parentNode.removeChild(bubble);
                }
            }, 200);
            
            // Increment counter
            bubbleCount++;
            document.getElementById('bubble-counter').textContent = bubbleCount;
        }
        
        function resetBubbleGame() {
            clearInterval(bubbleInterval);
            bubbleCount = 0;
            document.getElementById('bubble-counter').textContent = '0';
            startBubbleGame();
        }
        
        // Initialize the page with home tab
        document.addEventListener('DOMContentLoaded', function() {
            startBreathingAnimation();
        });
    </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=Taallion/ztpause" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>