File size: 33,468 Bytes
68327cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tableau de Bord Financier - Entreprise de Gestion Touristique Tlemcen</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">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        .negative {
            color: #ef4444;
        }
        .positive {
            color: #10b981;
        }
        .neutral {
            color: #64748b;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .tab-active {
            border-bottom: 3px solid #3b82f6;
            color: #3b82f6;
            font-weight: 600;
        }
        .animate-bounce {
            animation: bounce 2s infinite;
        }
        @keyframes bounce {
            0%, 100% {
                transform: translateY(-5px);
            }
            50% {
                transform: translateY(5px);
            }
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="mb-8">
            <div class="flex justify-between items-center">
                <div>
                    <h1 class="text-3xl font-bold text-blue-800">Entreprise de Gestion Touristique Tlemcen</h1>
                    <p class="text-gray-600">Tableau de Bord Financier - Comparatif Trimestriel</p>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="bg-white p-3 rounded-lg shadow-sm flex items-center">
                        <i class="fas fa-calendar-alt text-blue-500 mr-2"></i>
                        <span>1<sup>er</sup> Trimestre 2024 vs 2025</span>
                    </div>
                    <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-download mr-2"></i> Exporter
                    </button>
                </div>
            </div>
        </header>

        <!-- Summary Cards -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
            <div class="bg-white p-6 rounded-xl shadow-sm card-hover transition-all duration-300">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">Ventes Totales</p>
                        <h3 class="text-2xl font-bold mt-1">381 033 DA</h3>
                        <p class="text-sm mt-2"><span class="negative">▼ 58%</span> vs 2024</p>
                    </div>
                    <div class="bg-blue-100 p-3 rounded-full">
                        <i class="fas fa-chart-line text-blue-600 text-xl"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white p-6 rounded-xl shadow-sm card-hover transition-all duration-300">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">Valeur Ajoutée</p>
                        <h3 class="text-2xl font-bold mt-1">206 934 DA</h3>
                        <p class="text-sm mt-2"><span class="negative">▼ 27%</span> vs 2024</p>
                    </div>
                    <div class="bg-green-100 p-3 rounded-full">
                        <i class="fas fa-coins text-green-600 text-xl"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white p-6 rounded-xl shadow-sm card-hover transition-all duration-300">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">EBE Global</p>
                        <h3 class="text-2xl font-bold mt-1">-37 833 DA</h3>
                        <p class="text-sm mt-2"><span class="negative">▼ 172%</span> vs 2024</p>
                    </div>
                    <div class="bg-red-100 p-3 rounded-full">
                        <i class="fas fa-exclamation-triangle text-red-600 text-xl"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white p-6 rounded-xl shadow-sm card-hover transition-all duration-300">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">Résultat Net</p>
                        <h3 class="text-2xl font-bold mt-1">-84 883 DA</h3>
                        <p class="text-sm mt-2"><span class="negative">▼ 38%</span> vs 2024</p>
                    </div>
                    <div class="bg-purple-100 p-3 rounded-full">
                        <i class="fas fa-file-invoice-dollar text-purple-600 text-xl"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
            <!-- Tabs -->
            <div class="border-b border-gray-200">
                <nav class="flex -mb-px">
                    <button onclick="showTab('entreprise')" class="mr-8 py-4 px-1 text-center border-b-2 font-medium text-sm tab-active" id="entreprise-tab">
                        <i class="fas fa-building mr-2"></i> Entreprise
                    </button>
                    <button onclick="showTab('bouhanifia')" class="mr-8 py-4 px-1 text-center border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700" id="bouhanifia-tab">
                        <i class="fas fa-hotel mr-2"></i> Bouhanifia
                    </button>
                    <button onclick="showTab('boughrara')" class="mr-8 py-4 px-1 text-center border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700" id="boughrara-tab">
                        <i class="fas fa-umbrella-beach mr-2"></i> Boughrara
                    </button>
                    <button onclick="showTab('bouhdjar')" class="mr-8 py-4 px-1 text-center border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700" id="bouhdjar-tab">
                        <i class="fas fa-swimming-pool mr-2"></i> Bouhdjar
                    </button>
                    <button onclick="showTab('others')" class="py-4 px-1 text-center border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700" id="others-tab">
                        <i class="fas fa-ellipsis-h mr-2"></i> Autres Unités
                    </button>
                </nav>
            </div>

            <!-- Tab Content -->
            <div class="p-6">
                <!-- Entreprise Tab -->
                <div id="entreprise" class="tab-content">
                    <div class="mb-6">
                        <h2 class="text-xl font-bold text-gray-800 mb-4">Performance Globale</h2>
                        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <canvas id="salesChart"></canvas>
                            </div>
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <canvas id="resultChart"></canvas>
                            </div>
                        </div>
                    </div>

                    <h2 class="text-xl font-bold text-gray-800 mb-4">Détails Financiers</h2>
                    <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">Désignation</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">1<sup>er</sup> Trim 2024</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">1<sup>er</sup> Trim 2025</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Évolution</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Prévisions 2025</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Taux Réalisations</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Ventes et produits</td>
                                    <td class="px-6 py-4 whitespace-nowrap">195 979 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">5 759 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-97%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">252 868 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">2%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Valeur Ajoutée d'exploitation</td>
                                    <td class="px-6 py-4 whitespace-nowrap">144 327 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">105 387 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-27%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">167 912 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">63%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Charges Activités ordinaires</td>
                                    <td class="px-6 py-4 whitespace-nowrap">270 956 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-84 883 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-131%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">303 425 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-28%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Dont Frais du Personnel</td>
                                    <td class="px-6 py-4 whitespace-nowrap">153 830 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">140 048 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-9%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">138 576 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">101%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">EBE</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-13 905 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-37 833 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-172%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">24 052 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-157%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Résultat net Activités ordinaires</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-61 479 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-84 883 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-38%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-34 824 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap positive">244%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Résultat Exercice</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-61 479 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-84 883 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-38%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-34 824 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap positive">244%</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- Bouhanifia Tab -->
                <div id="bouhanifia" class="tab-content hidden">
                    <div class="mb-6">
                        <h2 class="text-xl font-bold text-gray-800 mb-4">Performance - Bouhanifia</h2>
                        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <canvas id="bouhanifiaSalesChart"></canvas>
                            </div>
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <canvas id="bouhanifiaResultChart"></canvas>
                            </div>
                        </div>
                    </div>

                    <h2 class="text-xl font-bold text-gray-800 mb-4">Détails Financiers</h2>
                    <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">Désignation</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">1<sup>er</sup> Trim 2024</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">1<sup>er</sup> Trim 2025</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Évolution</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Prévisions 2025</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Taux Réalisations</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Ventes et produits</td>
                                    <td class="px-6 py-4 whitespace-nowrap">85 900 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">66 053 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-23%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">92 930 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">71%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Valeur Ajoutée d'exploitation</td>
                                    <td class="px-6 py-4 whitespace-nowrap">70 756 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">51 872 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-27%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">63 930 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">81%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Charges Activités ordinaires</td>
                                    <td class="px-6 py-4 whitespace-nowrap">86 974 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">81 071 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-7%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">96 840 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">84%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Dont Frais du Personnel</td>
                                    <td class="px-6 py-4 whitespace-nowrap">54 853 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">46 955 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-14%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">48 600 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">97%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">EBE</td>
                                    <td class="px-6 py-4 whitespace-nowrap">13 760 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">3 247 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-76%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">12 530 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">26%</td>
                                </tr>
                                <tr class="bg-gray-50">
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Résultat net Activités ordinaires</td>
                                    <td class="px-6 py-4 whitespace-nowrap">2 886 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-9 623 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-433%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-2 680 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap positive">359%</td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">Résultat Exercice</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-773 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-9 623 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap negative">-1145%</td>
                                    <td class="px-6 py-4 whitespace-nowrap">-2 680 DA</td>
                                    <td class="px-6 py-4 whitespace-nowrap positive">359%</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- Other tabs would follow the same pattern -->
                <!-- For brevity, I've included only two tabs in this example -->
            </div>
        </div>

        <!-- Key Insights -->
        <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
            <div class="p-6">
                <h2 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                    <i class="fas fa-lightbulb text-yellow-500 mr-2"></i> Principales Observations
                </h2>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                    <div class="bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500">
                        <h3 class="font-semibold text-blue-800 mb-2">Chute des Ventes</h3>
                        <p class="text-gray-700">Les ventes ont chuté de 97% au niveau de l'entreprise principale, avec seulement 5 759 DA réalisés contre 195 979 DA en 2024.</p>
                    </div>
                    <div class="bg-red-50 p-4 rounded-lg border-l-4 border-red-500">
                        <h3 class="font-semibold text-red-800 mb-2">Dégradation de l'EBE</h3>
                        <p class="text-gray-700">L'EBE global est passé de -13 905 DA à -37 833 DA, soit une dégradation de 172%.</p>
                    </div>
                    <div class="bg-green-50 p-4 rounded-lg border-l-4 border-green-500">
                        <h3 class="font-semibold text-green-800 mb-2">Point Positif: Boughrara</h3>
                        <p class="text-gray-700">Boughrara est la seule unité avec un résultat net positif (7 703 DA), bien qu'en baisse de 22% par rapport à 2024.</p>
                    </div>
                    <div class="bg-purple-50 p-4 rounded-lg border-l-4 border-purple-500">
                        <h3 class="font-semibold text-purple-800 mb-2">Maîtrise des Charges</h3>
                        <p class="text-gray-700">Les charges ont été réduites de 9% à Bouhanifia et de 14% pour les frais de personnel, montrant des efforts de rationalisation.</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Recommendations -->
        <div class="bg-white rounded-xl shadow-sm overflow-hidden">
            <div class="p-6">
                <h2 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                    <i class="fas fa-bullseye text-red-500 mr-2 animate-bounce"></i> Recommandations Stratégiques
                </h2>
                <div class="space-y-4">
                    <div class="flex items-start">
                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
                            <i class="fas fa-search-dollar text-blue-600"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium text-gray-900">Analyse des Coûts</h3>
                            <p class="mt-1 text-gray-600">Audit approfondi des charges pour identifier les postes à optimiser, particulièrement pour l'entreprise principale où les charges dépassent largement les produits.</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
                            <i class="fas fa-chart-pie text-green-600"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium text-gray-900">Diversification des Revenus</h3>
                            <p class="mt-1 text-gray-600">Développer de nouvelles sources de revenus pour les unités performantes comme Boughrara pour compenser les déficits des autres.</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
                            <i class="fas fa-users-cog text-purple-600"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium text-gray-900">Optimisation RH</h3>
                            <p class="mt-1 text-gray-600">Révision de la politique RH pour aligner les effectifs avec la réalité des activités, tout en maintenant la qualité de service.</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center">
                            <i class="fas fa-project-diagram text-yellow-600"></i>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium text-gray-900">Plan de Relance</h3>
                            <p class="mt-1 text-gray-600">Élaboration d'un plan d'urgence pour les unités les plus déficitaires (Hamama Rabbi, Zianide) avec des objectifs trimestriels précis.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Tab functionality
        function showTab(tabName) {
            // Hide all tab contents
            document.querySelectorAll('.tab-content').forEach(tab => {
                tab.classList.add('hidden');
            });
            
            // Remove active class from all tabs
            document.querySelectorAll('[id$="-tab"]').forEach(tab => {
                tab.classList.remove('tab-active');
                tab.classList.add('text-gray-500');
            });
            
            // Show selected tab content
            document.getElementById(tabName).classList.remove('hidden');
            
            // Add active class to selected tab
            document.getElementById(`${tabName}-tab`).classList.add('tab-active');
            document.getElementById(`${tabName}-tab`).classList.remove('text-gray-500');
        }

        // Charts for Entreprise
        const salesCtx = document.getElementById('salesChart').getContext('2d');
        const salesChart = new Chart(salesCtx, {
            type: 'bar',
            data: {
                labels: ['Ventes et produits', 'Valeur Ajoutée'],
                datasets: [
                    {
                        label: '2024',
                        data: [195979, 144327],
                        backgroundColor: 'rgba(59, 130, 246, 0.7)',
                        borderColor: 'rgba(59, 130, 246, 1)',
                        borderWidth: 1
                    },
                    {
                        label: '2025',
                        data: [5759, 105387],
                        backgroundColor: 'rgba(16, 185, 129, 0.7)',
                        borderColor: 'rgba(16, 185, 129, 1)',
                        borderWidth: 1
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    title: {
                        display: true,
                        text: 'Comparatif Ventes et Valeur Ajoutée'
                    },
                },
                scales: {
                    y: {
                        beginAtZero: false
                    }
                }
            }
        });

        const resultCtx = document.getElementById('resultChart').getContext('2d');
        const resultChart = new Chart(resultCtx, {
            type: 'line',
            data: {
                labels: ['EBE', 'Résultat Net'],
                datasets: [
                    {
                        label: '2024',
                        data: [-13905, -61479],
                        borderColor: 'rgba(59, 130, 246, 1)',
                        backgroundColor: 'rgba(59, 130, 246, 0.1)',
                        borderWidth: 2,
                        tension: 0.1,
                        fill: true
                    },
                    {
                        label: '2025',
                        data: [-37833, -84883],
                        borderColor: 'rgba(239, 68, 68, 1)',
                        backgroundColor: 'rgba(239, 68, 68, 0.1)',
                        borderWidth: 2,
                        tension: 0.1,
                        fill: true
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    title: {
                        display: true,
                        text: 'Comparatif Résultats Financiers'
                    },
                },
                scales: {
                    y: {
                        beginAtZero: false
                    }
                }
            }
        });

        // Charts for Bouhanifia
        const bouhanifiaSalesCtx = document.getElementById('bouhanifiaSalesChart').getContext('2d');
        const bouhanifiaSalesChart = new Chart(bouhanifiaSalesCtx, {
            type: 'bar',
            data: {
                labels: ['Ventes et produits', 'Valeur Ajoutée'],
                datasets: [
                    {
                        label: '2024',
                        data: [85900, 70756],
                        backgroundColor: 'rgba(59, 130, 246, 0.7)',
                        borderColor: 'rgba(59, 130, 246, 1)',
                        borderWidth: 1
                    },
                    {
                        label: '2025',
                        data: [66053, 51872],
                        backgroundColor: 'rgba(16, 185, 129, 0.7)',
                        borderColor: 'rgba(16, 185, 129, 1)',
                        borderWidth: 1
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    title: {
                        display: true,
                        text: 'Bouhanifia: Ventes et Valeur Ajoutée'
                    },
                },
                scales: {
                    y: {
                        beginAtZero: false
                    }
                }
            }
        });

        const bouhanifiaResultCtx = document.getElementById('bouhanifiaResultChart').getContext('2d');
        const bouhanifiaResultChart = new Chart(bouhanifiaResultCtx, {
            type: 'line',
            data: {
                labels: ['EBE', 'Résultat Net'],
                datasets: [
                    {
                        label: '2024',
                        data: [13760, -773],
                        borderColor: 'rgba(59, 130, 246, 1)',
                        backgroundColor: 'rgba(59, 130, 246, 0.1)',
                        borderWidth: 2,
                        tension: 0.1,
                        fill: true
                    },
                    {
                        label: '2025',
                        data: [3247, -9623],
                        borderColor: 'rgba(239, 68, 68, 1)',
                        backgroundColor: 'rgba(239, 68, 68, 0.1)',
                        borderWidth: 2,
                        tension: 0.1,
                        fill: true
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    title: {
                        display: true,
                        text: 'Bouhanifia: Résultats Financiers'
                    },
                },
                scales: {
                    y: {
                        beginAtZero: false
                    }
                }
            }
        });
    </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=MEROUANE1777/situation" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>