Spaces:
Running

File size: 35,550 Bytes
0fff85c
 
 
 
 
6f766dc
7e96f3d
 
 
 
 
0fff85c
 
 
 
7e96f3d
 
 
 
 
 
 
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7e96f3d
0fff85c
1153dab
6f766dc
0fff85c
 
1153dab
6f766dc
0fff85c
 
1153dab
 
0fff85c
 
1153dab
 
0fff85c
 
1153dab
 
0fff85c
 
1153dab
 
0fff85c
 
 
 
 
 
 
 
 
2f8ac17
0fff85c
 
 
2f8ac17
0fff85c
 
 
2f8ac17
0fff85c
 
 
 
 
 
 
 
a9d3d46
0fff85c
a9d3d46
 
 
 
 
 
 
 
0fff85c
 
 
a9d3d46
 
 
 
 
 
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f766dc
7e96f3d
2f8ac17
 
 
 
6f766dc
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7e96f3d
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2f8ac17
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2f8ac17
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2f8ac17
0fff85c
 
 
 
 
 
 
 
 
1153dab
0fff85c
 
 
 
 
 
 
 
 
 
 
1153dab
0fff85c
 
 
 
 
 
 
 
 
 
 
1153dab
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153dab
0fff85c
 
1153dab
0fff85c
 
1153dab
0fff85c
 
1153dab
0fff85c
 
 
 
 
 
7e96f3d
1153dab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a9d3d46
 
 
 
 
 
 
 
 
 
 
 
0fff85c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="GesTemps - Solution complète de gestion du temps pour PME avec pointage, suivi des congés, gestion d'équipe et rapports">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <title>GesTemps | Logiciel de gestion du temps pour PME</title>
    <meta property="og:title" content="GesTemps - Solution de gestion du temps">
    <meta property="og:description" content="Optimisez la gestion du temps de votre équipe avec notre solution complète pour PME">
    <meta name="keywords" content="gestion temps, pointage, congés, équipe, PME, rapports">
    <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=Inter:wght@300;400;500;600;700&display=swap');
        @font-face {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc;
        }
        
        .sidebar {
            transition: all 0.3s ease;
        }
        
        .sidebar.collapsed {
            width: 80px;
        }
        
        .sidebar.collapsed .nav-text {
            display: none;
        }
        
        .sidebar.collapsed .logo-text {
            display: none;
        }
        
        .sidebar.collapsed .nav-item {
            justify-content: center;
        }
        
        .main-content {
            transition: margin-left 0.3s ease;
        }
        
        .time-card {
            transition: all 0.3s ease;
        }
        
        .time-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .chart-container {
            height: 300px;
        }
        
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                z-index: 50;
                transform: translateX(-100%);
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0 !important;
            }
            
            .mobile-menu-button {
                display: block;
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Sidebar -->
    <div class="sidebar bg-white h-screen fixed shadow-lg flex flex-col w-64">
        <!-- Logo -->
        <div class="flex items-center justify-between p-4 border-b">
            <div class="flex items-center">
                <div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center text-white font-bold text-xl">GT</div>
                <span class="logo-text ml-3 text-xl font-semibold text-gray-800">GesTemps</span>
            </div>
            <button id="toggle-sidebar" class="text-gray-500 hover:text-gray-700 focus:outline-none">
                <i class="fas fa-chevron-left"></i>
            </button>
        </div>
        
        <!-- Navigation -->
        <nav class="flex-1 overflow-y-auto py-4" aria-label="Navigation principale">
            <div class="space-y-1 px-4">
                <a href="dashboard.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
                    <i class="fas fa-home text-gray-500 mr-3"></i>
                    <span class="nav-text">Tableau de bord</span>
                </a>
                <a href="pointage.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
                    <i class="fas fa-clock text-blue-600 mr-3"></i>
                    <span class="nav-text">Pointage</span>
                </a>
                <a href="conges.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
                    <i class="fas fa-calendar-alt text-blue-600 mr-3"></i>
                    <span class="nav-text">Congés</span>
                </a>
                <a href="equipe.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
                    <i class="fas fa-user-friends text-blue-600 mr-3"></i>
                    <span class="nav-text">Équipe</span>
                </a>
                <a href="rapports.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
                    <i class="fas fa-chart-bar text-blue-600 mr-3"></i>
                    <span class="nav-text">Rapports</span>
                </a>
                <a href="parametres.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
                    <i class="fas fa-cog text-blue-600 mr-3"></i>
                    <span class="nav-text">Paramètres</span>
                </a>
            </div>
            
            <div class="mt-8 px-4">
                <h3 class="px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider nav-text">
                    Mon équipe
                </h3>
                <div class="mt-1 space-y-1">
                    <a href="profil.html?id=jd" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
                        <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center text-white text-xs mr-3">JD</div>
                        <span class="nav-text">Jean Dupont</span>
                    </a>
                    <a href="profil.html?id=ml" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
                        <div class="w-6 h-6 rounded-full bg-purple-500 flex items-center justify-center text-white text-xs mr-3">ML</div>
                        <span class="nav-text">Marie Lambert</span>
                    </a>
                    <a href="profil.html?id=pt" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
                        <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center text-white text-xs mr-3">PT</div>
                        <span class="nav-text">Pierre Tremblay</span>
                    </a>
                </div>
            </div>
        </nav>
        
        <!-- User Profile -->
        <div class="p-4 border-t relative">
            <div class="flex items-center">
                <a href="profil.html?id=admin" class="flex items-center">
                    <div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center text-white font-bold text-sm">AD</div>
                    <div class="ml-3 nav-text">
                        <p class="text-sm font-medium text-gray-800">Admin Demo</p>
                        <p class="text-xs text-gray-500">Administrateur</p>
                    </div>
                </a>
                <button id="user-menu-button" class="ml-auto text-gray-500 hover:text-gray-700 focus:outline-none">
                    <i class="fas fa-ellipsis-v"></i>
                </button>
            </div>
            <!-- User dropdown menu -->
            <div id="user-dropdown" class="hidden absolute bottom-16 left-4 right-4 bg-white rounded-md shadow-lg py-1 z-10">
                <a href="profil.html?id=admin" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Mon profil</a>
                <a href="parametres.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Paramètres</a>
                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Déconnexion</a>
            </div>
        </div>
    </div>
    
    <!-- Main Content -->
    <div class="main-content ml-64">
        <!-- Mobile Header -->
        <header class="bg-white shadow-sm lg:hidden">
            <div class="flex items-center justify-between px-4 py-3">
                <button id="mobile-menu-button" class="mobile-menu-button text-gray-500 hover:text-gray-600 focus:outline-none">
                    <i class="fas fa-bars"></i>
                </button>
                <div class="flex items-center">
                    <div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center text-white font-bold text-xs">AD</div>
                </div>
            </div>
        </header>
        
        <!-- Content -->
        <main class="p-6">
            <!-- Header -->
            <div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
                <div>
                    <h1 class="text-2xl font-bold text-gray-800">Tableau de bord</h1>
                    <p class="text-gray-600">Bienvenue sur votre espace de gestion du temps</p>
                </div>
                <div class="mt-4 md:mt-0">
                    <div class="flex space-x-4 mb-4">
                        <a href="pointage.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Pointage</a>
                        <a href="conges.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Congés</a>
                        <a href="equipe.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Équipe</a>
                        <a href="rapports.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Rapports</a>
                        <a href="parametres.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Paramètres</a>
                    </div>
                    <div class="relative">
                        <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                            <i class="fas fa-calendar-alt text-gray-400"></i>
                        </div>
                        <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Sélectionner une période" value="Aujourd'hui">
                    </div>
                </div>
            </div>
            
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
                <div class="time-card bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-blue-100 text-blue-600">
                            <i class="fas fa-clock"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-sm font-medium text-gray-500">Temps travaillé</p>
                            <p class="text-2xl font-semibold text-gray-800">7h 42m</p>
                        </div>
                    </div>
                    <div class="mt-4">
                        <div class="flex items-center justify-between text-sm">
                            <span class="text-green-600 font-medium">+12%</span>
                            <span class="text-gray-500">vs hier</span>
                        </div>
                    </div>
                </div>
                
                <div class="time-card bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-green-100 text-green-600">
                            <i class="fas fa-check-circle"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-sm font-medium text-gray-500">Tâches complétées</p>
                            <p class="text-2xl font-semibold text-gray-800">14/18</p>
                        </div>
                    </div>
                    <div class="mt-4">
                        <div class="flex items-center justify-between text-sm">
                            <span class="text-green-600 font-medium">+3</span>
                            <span class="text-gray-500">vs hier</span>
                        </div>
                    </div>
                </div>
                
                <div class="time-card bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-purple-100 text-purple-600">
                            <i class="fas fa-calendar-alt"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-sm font-medium text-gray-500">Congés restants</p>
                            <p class="text-2xl font-semibold text-gray-800">18 jours</p>
                        </div>
                    </div>
                    <div class="mt-4">
                        <div class="flex items-center justify-between text-sm">
                            <span class="text-red-600 font-medium">-2</span>
                            <span class="text-gray-500">ce mois</span>
                        </div>
                    </div>
                </div>
                
                <div class="time-card bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
                            <i class="fas fa-users"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-sm font-medium text-gray-500">Équipe active</p>
                            <p class="text-2xl font-semibold text-gray-800">8/12</p>
                        </div>
                    </div>
                    <div class="mt-4">
                        <div class="flex items-center justify-between text-sm">
                            <span class="text-green-600 font-medium">+2</span>
                            <span class="text-gray-500">en ligne</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Charts and Recent Activity -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
                <!-- Weekly Hours Chart -->
                <div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Heures travaillées cette semaine</h2>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-xs font-medium rounded-md bg-blue-50 text-blue-600">Semaine</button>
                            <button class="px-3 py-1 text-xs font-medium rounded-md text-gray-500 hover:bg-gray-50">Mois</button>
                            <button class="px-3 py-1 text-xs font-medium rounded-md text-gray-500 hover:bg-gray-50">Année</button>
                        </div>
                    </div>
                    <div class="chart-container">
                        <canvas id="weeklyHoursChart"></canvas>
                    </div>
                </div>
                
                <!-- Recent Activity -->
                <div class="bg-white rounded-lg shadow p-6">
                    <h2 class="text-lg font-semibold text-gray-800 mb-4">Activité récente</h2>
                    <div class="space-y-4">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
                                    <i class="fas fa-clock"></i>
                                </div>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium text-gray-800">Marie Lambert a pointé</p>
                                <p class="text-sm text-gray-500">Il y a 15 minutes</p>
                            </div>
                        </div>
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
                                    <i class="fas fa-check-circle"></i>
                                </div>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium text-gray-800">Pierre Tremblay a terminé une tâche</p>
                                <p class="text-sm text-gray-500">Il y a 1 heure</p>
                            </div>
                        </div>
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
                                    <i class="fas fa-calendar-alt"></i>
                                </div>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium text-gray-800">Jean Dupont a demandé un congé</p>
                                <p class="text-sm text-gray-500">Il y a 2 heures</p>
                            </div>
                        </div>
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
                                    <i class="fas fa-users"></i>
                                </div>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm font-medium text-gray-800">Nouveau membre dans l'équipe</p>
                                <p class="text-sm text-gray-500">Il y a 5 heures</p>
                            </div>
                        </div>
                    </div>
                    <button class="mt-4 w-full py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                        Voir toute l'activité
                    </button>
                </div>
            </div>
            
            <!-- Team Time Tracking -->
            <div class="bg-white rounded-lg shadow overflow-hidden mb-6">
                <div class="px-6 py-4 border-b border-gray-200">
                    <h2 class="text-lg font-semibold text-gray-800">Suivi du temps de l'équipe</h2>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider" id="member-header">Membre</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Temps travaillé</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tâches</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-500 flex items-center justify-center text-white font-bold text-sm">JD</div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">Jean Dupont</div>
                                            <div class="text-sm text-gray-500">Développeur</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">En ligne</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6h 45m</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/15</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <a href="details.html?id=1" class="text-blue-600 hover:text-blue-900">Détails</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-bold text-sm">ML</div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">Marie Lambert</div>
                                            <div class="text-sm text-gray-500">Designer</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">En ligne</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7h 30m</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8/10</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <a href="details.html?id=2" class="text-blue-600 hover:text-blue-900">Détails</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-500 flex items-center justify-center text-white font-bold text-sm">PT</div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">Pierre Tremblay</div>
                                            <div class="text-sm text-gray-500">Marketing</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Hors ligne</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5h 15m</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6/8</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <a href="details.html?id=3" class="text-blue-600 hover:text-blue-900">Détails</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <!-- Quick Actions -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <button onclick="location.href='pointage.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-blue-100 text-blue-600">
                            <i class="fas fa-fingerprint"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="text-lg font-medium text-gray-800">Pointer maintenant</h3>
                            <p class="text-sm text-gray-500">Enregistrez votre heure d'arrivée ou de départ</p>
                        </div>
                    </div>
                </button>
                
                <button onclick="location.href='conges.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-green-100 text-green-600">
                            <i class="fas fa-calendar-plus"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="text-lg font-medium text-gray-800">Demander un congé</h3>
                            <p class="text-sm text-gray-500">Soumettre une demande de congé</p>
                        </div>
                    </div>
                </button>
                
                <button onclick="location.href='taches.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-purple-100 text-purple-600">
                            <i class="fas fa-tasks"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="text-lg font-medium text-gray-800">Ajouter une tâche</h3>
                            <p class="text-sm text-gray-500">Créer une nouvelle tâche pour votre équipe</p>
                        </div>
                    </div>
                </button>
            </div>
        </main>
    </div>
    
    <!-- Floating Action Button -->
    <div class="fixed bottom-6 right-6">
        <button id="quick-action-btn" class="w-14 h-14 rounded-full bg-blue-600 text-white shadow-lg flex items-center justify-center hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
            <i class="fas fa-plus text-xl"></i>
        </button>
    </div>
    
    <!-- Quick Action Menu (hidden by default) -->
    <div id="quick-action-menu" class="fixed bottom-20 right-6 hidden">
        <div class="bg-white rounded-lg shadow-lg overflow-hidden w-56">
            <a href="pointage.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="pointageNow()">
                <i class="fas fa-fingerprint text-blue-500 mr-2"></i> Pointer maintenant
            </a>
            <a href="conges.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="requestLeave()">
                <i class="fas fa-calendar-plus text-green-500 mr-2"></i> Demander un congé
            </a>
            <a href="taches.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="addTask()">
                <i class="fas fa-tasks text-purple-500 mr-2"></i> Ajouter une tâche
            </a>
            <a href="rapports.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="createReport()">
                <i class="fas fa-file-alt text-yellow-500 mr-2"></i> Créer un rapport
            </a>
        </div>
    </div>
    
    <!-- Scripts -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js" defer></script>
    <script>
        function pointageNow() {
            // Logique de pointage
            console.log("Pointage en cours...");
        }
        
        function requestLeave() {
            // Logique de demande de congé
            console.log("Demande de congé...");
        }
        
        function addTask() {
            // Logique d'ajout de tâche
            console.log("Ajout de tâche...");
        }
        
        function createReport() {
            // Logique de création de rapport
            console.log("Création de rapport...");
        }
    </script>
    <script>
        // Toggle sidebar
        const toggleSidebar = document.getElementById('toggle-sidebar');
        const sidebar = document.querySelector('.sidebar');
        const mainContent = document.querySelector('.main-content');
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        
        toggleSidebar.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            if (sidebar.classList.contains('collapsed')) {
                mainContent.style.marginLeft = '80px';
                toggleSidebar.innerHTML = '<i class="fas fa-chevron-right"></i>';
            } else {
                mainContent.style.marginLeft = '256px';
                toggleSidebar.innerHTML = '<i class="fas fa-chevron-left"></i>';
            }
        });
        
        // Mobile menu toggle
        mobileMenuButton.addEventListener('click', () => {
            sidebar.classList.toggle('open');
        });
        
        // Quick action button
        const quickActionBtn = document.getElementById('quick-action-btn');
        const quickActionMenu = document.getElementById('quick-action-menu');
        
        quickActionBtn.addEventListener('click', () => {
            quickActionMenu.classList.toggle('hidden');
        });
        
        // Close quick action menu when clicking outside
        document.addEventListener('click', (e) => {
            if (!quickActionBtn.contains(e.target) && !quickActionMenu.contains(e.target)) {
                quickActionMenu.classList.add('hidden');
            }
            if (!userMenuButton.contains(e.target) && !userDropdown.contains(e.target)) {
                userDropdown.classList.add('hidden');
            }
        });

        // User dropdown menu
        const userMenuButton = document.getElementById('user-menu-button');
        const userDropdown = document.getElementById('user-dropdown');

        userMenuButton.addEventListener('click', () => {
            userDropdown.classList.toggle('hidden');
            quickActionMenu.classList.add('hidden');
        });
        
        // Initialize charts
        document.addEventListener('DOMContentLoaded', () => {
            // Weekly Hours Chart
            const weeklyHoursCtx = document.getElementById('weeklyHoursChart').getContext('2d');
            const weeklyHoursChart = new Chart(weeklyHoursCtx, {
                type: 'bar',
                data: {
                    labels: ['Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche'],
                    datasets: [
                        {
                            label: 'Heures travaillées',
                            data: [6.5, 7.2, 6.8, 7.5, 8.0, 0, 0],
                            backgroundColor: '#3B82F6',
                            borderRadius: 4
                        },
                        {
                            label: 'Heures estimées',
                            data: [8, 8, 8, 8, 8, 0, 0],
                            backgroundColor: '#EFF6FF',
                            borderRadius: 4
                        }
                    ]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true,
                            ticks: {
                                callback: function(value) {
                                    return value + 'h';
                                }
                            }
                        }
                    },
                    plugins: {
                        legend: {
                            position: 'top',
                        },
                        tooltip: {
                            callbacks: {
                                label: function(context) {
                                    let label = context.dataset.label || '';
                                    if (label) {
                                        label += ': ';
                                    }
                                    if (context.parsed.y !== null) {
                                        const hours = Math.floor(context.parsed.y);
                                        const minutes = Math.round((context.parsed.y - hours) * 60);
                                        label += hours + 'h ' + (minutes < 10 ? '0' + minutes : minutes) + 'm';
                                    }
                                    return label;
                                }
                            }
                        }
                    }
                }
            });
        });
    </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=dSteve01/gesttemps" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>