File size: 39,478 Bytes
d7c2f90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>XPERT RSE - Diagnostic de l'entreprise</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>
        .sidebar {
            transition: all 0.3s;
        }
        .sidebar-collapsed {
            width: 70px;
        }
        .sidebar-expanded {
            width: 250px;
        }
        .main-content {
            transition: all 0.3s;
        }
        .content-expanded {
            margin-left: 250px;
        }
        .content-collapsed {
            margin-left: 70px;
        }
        .nav-item-collapsed .nav-text {
            display: none;
        }
        .nav-item-expanded .nav-text {
            display: inline;
        }
        .progress-ring__circle {
            transition: stroke-dashoffset 0.35s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        .esg-section {
            transition: all 0.3s;
        }
        .esg-section.collapsed .questions-container {
            display: none;
        }
        .esg-section.collapsed .section-header::after {
            content: '+';
        }
        .esg-section.expanded .section-header::after {
            content: '-';
        }
    </style>
</head>
<body class="bg-gray-100">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="sidebar sidebar-expanded bg-blue-800 text-white flex flex-col">
            <div class="p-4 flex items-center justify-between border-b border-blue-700">
                <div class="flex items-center">
                    <i class="fas fa-leaf text-2xl text-green-400 mr-3"></i>
                    <span class="text-xl font-bold">XPERT RSE</span>
                </div>
                <button id="toggleSidebar" class="text-white focus:outline-none">
                    <i class="fas fa-bars"></i>
                </button>
            </div>
            <div class="flex-1 overflow-y-auto py-4">
                <nav>
                    <ul>
                        <li class="px-4 py-2 hover:bg-blue-700">
                            <a href="#" class="flex items-center text-blue-200">
                                <i class="fas fa-building mr-3"></i>
                                <span class="nav-text">Informations entreprise</span>
                            </a>
                        </li>
                        <li class="px-4 py-2 hover:bg-blue-700">
                            <a href="#" class="flex items-center text-blue-200">
                                <i class="fas fa-user mr-3"></i>
                                <span class="nav-text">Profil</span>
                            </a>
                        </li>
                        <li class="px-4 py-2 hover:bg-blue-700">
                            <a href="#" class="flex items-center text-blue-200">
                                <i class="fas fa-book-open mr-3"></i>
                                <span class="nav-text">Préambule</span>
                            </a>
                        </li>
                        <li class="px-4 py-2 hover:bg-blue-700">
                            <a href="#" class="flex items-center text-blue-200">
                                <i class="fas fa-chart-line mr-3"></i>
                                <span class="nav-text">Diagnostic maturité</span>
                            </a>
                        </li>
                        <li class="px-4 py-2 bg-blue-900">
                            <a href="#" class="flex items-center text-white">
                                <i class="fas fa-clipboard-check mr-3"></i>
                                <span class="nav-text">Diagnostic entreprise</span>
                            </a>
                        </li>
                        <li class="px-4 py-2 hover:bg-blue-700">
                            <a href="#" class="flex items-center text-blue-200">
                                <i class="fas fa-print mr-3"></i>
                                <span class="nav-text">Impression diagnostic</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="p-4 border-t border-blue-700">
                <div class="flex items-center">
                    <img src="https://via.placeholder.com/40" alt="User" class="rounded-full mr-3">
                    <div>
                        <div class="font-medium">Conseiller RSE</div>
                        <div class="text-xs text-blue-300">Connecté</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="main-content content-expanded flex-1 overflow-auto">
            <header class="bg-white shadow-sm p-4">
                <div class="flex justify-between items-center">
                    <h1 class="text-2xl font-bold text-gray-800">Diagnostic de l'entreprise</h1>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <select class="block appearance-none bg-white border border-gray-300 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-blue-500">
                                <option>Secteur: BTP</option>
                                <option>Industrie</option>
                                <option>Services</option>
                                <option>Commerce</option>
                            </select>
                            <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
                                <i class="fas fa-chevron-down"></i>
                            </div>
                        </div>
                        <button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center">
                            <i class="fas fa-save mr-2"></i>
                            <span>Sauvegarder</span>
                        </button>
                    </div>
                </div>
            </header>

            <main class="p-6">
                <!-- ESG Scores Overview -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                    <!-- Environmental Score -->
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="text-lg font-semibold text-gray-800">Environnemental</h3>
                                <p class="text-sm text-gray-500">Score global</p>
                            </div>
                            <div class="relative w-16 h-16">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path class="text-gray-200" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <path class="text-green-500 progress-ring__circle" stroke-dasharray="75, 100" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">75%</text>
                                </svg>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Changement climatique</span>
                                <span>65%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 65%"></div>
                            </div>
                        </div>
                        <div class="mt-2">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Biodiversité</span>
                                <span>80%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 80%"></div>
                            </div>
                        </div>
                    </div>

                    <!-- Social Score -->
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="text-lg font-semibold text-gray-800">Social</h3>
                                <p class="text-sm text-gray-500">Score global</p>
                            </div>
                            <div class="relative w-16 h-16">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path class="text-gray-200" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <path class="text-yellow-500 progress-ring__circle" stroke-dasharray="60, 100" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">60%</text>
                                </svg>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Conditions de travail</span>
                                <span>55%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 55%"></div>
                            </div>
                        </div>
                        <div class="mt-2">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Santé & Sécurité</span>
                                <span>70%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 70%"></div>
                            </div>
                        </div>
                    </div>

                    <!-- Governance Score -->
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="text-lg font-semibold text-gray-800">Gouvernance</h3>
                                <p class="text-sm text-gray-500">Score global</p>
                            </div>
                            <div class="relative w-16 h-16">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path class="text-gray-200" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <path class="text-red-500 progress-ring__circle" stroke-dasharray="45, 100" d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
                                    <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">45%</text>
                                </svg>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Éthique des affaires</span>
                                <span>40%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 40%"></div>
                            </div>
                        </div>
                        <div class="mt-2">
                            <div class="flex justify-between text-sm text-gray-600 mb-1">
                                <span>Transparence</span>
                                <span>50%</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-blue-400 h-2 rounded-full" style="width: 50%"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- ESG Sections -->
                <div class="space-y-6">
                    <!-- Environmental Section -->
                    <div class="esg-section expanded bg-white rounded-lg shadow overflow-hidden">
                        <div class="section-header bg-green-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
                            <h2 class="text-xl font-bold">
                                <i class="fas fa-leaf mr-2"></i>
                                Environnemental
                            </h2>
                            <span class="font-bold"></span>
                        </div>
                        <div class="questions-container p-6">
                            <!-- Pillar: Changement climatique -->
                            <div class="mb-8">
                                <div class="flex justify-between items-center mb-4 border-b pb-2">
                                    <h3 class="text-lg font-semibold text-gray-800">
                                        <i class="fas fa-cloud-sun mr-2 text-blue-500"></i>
                                        Changement climatique
                                    </h3>
                                    <div class="flex items-center">
                                        <span class="text-sm font-medium text-gray-500 mr-2">Score:</span>
                                        <span class="text-lg font-bold text-blue-600">65%</span>
                                    </div>
                                </div>

                                <!-- Theme: Adaptation aux changements climatiques -->
                                <div class="ml-6 mb-6">
                                    <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
                                        <i class="fas fa-umbrella mr-2 text-blue-400"></i>
                                        Adaptation aux changements climatiques
                                    </h4>

                                    <!-- Question 1 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                1. L'entreprise a-t-elle réalisé une évaluation des risques climatiques pour ses activités dans le secteur du BTP?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>%</option>
                                                <option>tonnes</option>
                                                <option>€</option>
                                                <option>kWh</option>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Question 2 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                2. Des mesures d'adaptation aux événements climatiques extrêmes sont-elles intégrées dans les chantiers?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>%</option>
                                                <option>tonnes</option>
                                                <option>€</option>
                                                <option>kWh</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <!-- Theme: Atténuation du changement climatique -->
                                <div class="ml-6 mb-6">
                                    <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
                                        <i class="fas fa-wind mr-2 text-blue-400"></i>
                                        Atténuation du changement climatique
                                    </h4>

                                    <!-- Question 1 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                1. L'entreprise mesure-t-elle ses émissions de gaz à effet de serre (scope 1, 2 et 3)?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>tonnes CO2e</option>
                                                <option>%</option>
                                                <option>€</option>
                                                <option>kWh</option>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Question 2 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                2. Existe-t-il un plan de réduction des émissions de GES avec des objectifs chiffrés?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>% réduction</option>
                                                <option>tonnes CO2e</option>
                                                <option>€</option>
                                                <option>kWh</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <!-- Theme: Energie -->
                                <div class="ml-6 mb-6">
                                    <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
                                        <i class="fas fa-bolt mr-2 text-blue-400"></i>
                                        Energie
                                    </h4>

                                    <!-- Question 1 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                1. L'entreprise utilise-t-elle des énergies renouvelables sur ses chantiers (groupes électrogènes solaires, etc.)?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>%</option>
                                                <option>kWh</option>
                                                <option>€</option>
                                                <option>tonnes</option>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Question 2 -->
                                    <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
                                        <div class="flex justify-between items-start mb-3">
                                            <p class="font-medium text-gray-800">
                                                2. Des mesures d'efficacité énergétique sont-elles mises en place (isolation des bâtiments, matériel performant, etc.)?
                                            </p>
                                            <div class="flex space-x-2">
                                                <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
                                                <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
                                                <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
                                            </div>
                                        </div>
                                        <div class="mt-3">
                                            <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
                                            <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea>
                                        </div>
                                        <div class="mt-3 flex items-center">
                                            <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
                                            <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                            <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
                                                <option>% économie</option>
                                                <option>kWh</option>
                                                <option>€</option>
                                                <option>tonnes</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Social Section -->
                    <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden">
                        <div class="section-header bg-yellow-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
                            <h2 class="text-xl font-bold">
                                <i class="fas fa-users mr-2"></i>
                                Social
                            </h2>
                            <span class="font-bold">+</span>
                        </div>
                        <div class="questions-container p-6 hidden">
                            <!-- Contenu des questions sociales -->
                            <p class="text-gray-500">Section sociale - Questions à venir</p>
                        </div>
                    </div>

                    <!-- Governance Section -->
                    <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden">
                        <div class="section-header bg-red-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
                            <h2 class="text-xl font-bold">
                                <i class="fas fa-landmark mr-2"></i>
                                Gouvernance
                            </h2>
                            <span class="font-bold">+</span>
                        </div>
                        <div class="questions-container p-6 hidden">
                            <!-- Contenu des questions de gouvernance -->
                            <p class="text-gray-500">Section gouvernance - Questions à venir</p>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Toggle sidebar
        document.getElementById('toggleSidebar').addEventListener('click', function() {
            const sidebar = document.querySelector('.sidebar');
            const mainContent = document.querySelector('.main-content');
            
            if (sidebar.classList.contains('sidebar-expanded')) {
                sidebar.classList.remove('sidebar-expanded');
                sidebar.classList.add('sidebar-collapsed');
                mainContent.classList.remove('content-expanded');
                mainContent.classList.add('content-collapsed');
                
                // Update nav items
                document.querySelectorAll('nav li').forEach(item => {
                    item.classList.add('nav-item-collapsed');
                    item.classList.remove('nav-item-expanded');
                });
            } else {
                sidebar.classList.remove('sidebar-collapsed');
                sidebar.classList.add('sidebar-expanded');
                mainContent.classList.remove('content-collapsed');
                mainContent.classList.add('content-expanded');
                
                // Update nav items
                document.querySelectorAll('nav li').forEach(item => {
                    item.classList.remove('nav-item-collapsed');
                    item.classList.add('nav-item-expanded');
                });
            }
        });

        // Toggle ESG sections
        document.querySelectorAll('.section-header').forEach(header => {
            header.addEventListener('click', function() {
                const section = this.parentElement;
                if (section.classList.contains('collapsed')) {
                    section.classList.remove('collapsed');
                    section.classList.add('expanded');
                    section.querySelector('.questions-container').style.display = 'block';
                } else {
                    section.classList.remove('expanded');
                    section.classList.add('collapsed');
                    section.querySelector('.questions-container').style.display = 'none';
                }
            });
        });

        // Handle answer buttons
        document.querySelectorAll('.answer-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                // Remove active class from all buttons in this group
                this.parentElement.querySelectorAll('.answer-btn').forEach(b => {
                    b.classList.remove('bg-blue-500', 'text-white');
                    b.classList.add('bg-gray-100', 'text-gray-800');
                });
                
                // Add active class to clicked button
                const value = this.getAttribute('data-value');
                if (value === 'yes') {
                    this.classList.remove('bg-green-100', 'text-green-800');
                    this.classList.add('bg-green-500', 'text-white');
                } else if (value === 'no') {
                    this.classList.remove('bg-red-100', 'text-red-800');
                    this.classList.add('bg-red-500', 'text-white');
                } else {
                    this.classList.remove('bg-gray-100', 'text-gray-800');
                    this.classList.add('bg-gray-500', 'text-white');
                }
                
                // Update score (simplified example)
                // In a real app, you would calculate this based on all answers
                const scoreElement = this.closest('.esg-section').querySelector('.progress-ring__circle');
                const currentScore = parseInt(scoreElement.getAttribute('stroke-dasharray').split(',')[0]);
                let newScore = currentScore;
                
                if (value === 'yes') newScore = Math.min(currentScore + 5, 100);
                else if (value === 'no') newScore = Math.max(currentScore - 5, 0);
                
                scoreElement.setAttribute('stroke-dasharray', `${newScore}, 100`);
                scoreElement.parentElement.querySelector('text').textContent = `${newScore}%`;
            });
        });

        // Initialize sections
        document.querySelectorAll('.esg-section').forEach(section => {
            if (section.classList.contains('expanded')) {
                section.querySelector('.questions-container').style.display = 'block';
            } else {
                section.querySelector('.questions-container').style.display = 'none';
            }
        });
    </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=cweigel/diagclient" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>