cweigel commited on
Commit
d7c2f90
·
verified ·
1 Parent(s): 2e7fe79

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +612 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Diagclient
3
- emoji: 👁
4
- colorFrom: pink
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: diagclient
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,612 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>XPERT RSE - Diagnostic de l'entreprise</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .sidebar {
11
+ transition: all 0.3s;
12
+ }
13
+ .sidebar-collapsed {
14
+ width: 70px;
15
+ }
16
+ .sidebar-expanded {
17
+ width: 250px;
18
+ }
19
+ .main-content {
20
+ transition: all 0.3s;
21
+ }
22
+ .content-expanded {
23
+ margin-left: 250px;
24
+ }
25
+ .content-collapsed {
26
+ margin-left: 70px;
27
+ }
28
+ .nav-item-collapsed .nav-text {
29
+ display: none;
30
+ }
31
+ .nav-item-expanded .nav-text {
32
+ display: inline;
33
+ }
34
+ .progress-ring__circle {
35
+ transition: stroke-dashoffset 0.35s;
36
+ transform: rotate(-90deg);
37
+ transform-origin: 50% 50%;
38
+ }
39
+ .esg-section {
40
+ transition: all 0.3s;
41
+ }
42
+ .esg-section.collapsed .questions-container {
43
+ display: none;
44
+ }
45
+ .esg-section.collapsed .section-header::after {
46
+ content: '+';
47
+ }
48
+ .esg-section.expanded .section-header::after {
49
+ content: '-';
50
+ }
51
+ </style>
52
+ </head>
53
+ <body class="bg-gray-100">
54
+ <div class="flex h-screen overflow-hidden">
55
+ <!-- Sidebar -->
56
+ <div class="sidebar sidebar-expanded bg-blue-800 text-white flex flex-col">
57
+ <div class="p-4 flex items-center justify-between border-b border-blue-700">
58
+ <div class="flex items-center">
59
+ <i class="fas fa-leaf text-2xl text-green-400 mr-3"></i>
60
+ <span class="text-xl font-bold">XPERT RSE</span>
61
+ </div>
62
+ <button id="toggleSidebar" class="text-white focus:outline-none">
63
+ <i class="fas fa-bars"></i>
64
+ </button>
65
+ </div>
66
+ <div class="flex-1 overflow-y-auto py-4">
67
+ <nav>
68
+ <ul>
69
+ <li class="px-4 py-2 hover:bg-blue-700">
70
+ <a href="#" class="flex items-center text-blue-200">
71
+ <i class="fas fa-building mr-3"></i>
72
+ <span class="nav-text">Informations entreprise</span>
73
+ </a>
74
+ </li>
75
+ <li class="px-4 py-2 hover:bg-blue-700">
76
+ <a href="#" class="flex items-center text-blue-200">
77
+ <i class="fas fa-user mr-3"></i>
78
+ <span class="nav-text">Profil</span>
79
+ </a>
80
+ </li>
81
+ <li class="px-4 py-2 hover:bg-blue-700">
82
+ <a href="#" class="flex items-center text-blue-200">
83
+ <i class="fas fa-book-open mr-3"></i>
84
+ <span class="nav-text">Préambule</span>
85
+ </a>
86
+ </li>
87
+ <li class="px-4 py-2 hover:bg-blue-700">
88
+ <a href="#" class="flex items-center text-blue-200">
89
+ <i class="fas fa-chart-line mr-3"></i>
90
+ <span class="nav-text">Diagnostic maturité</span>
91
+ </a>
92
+ </li>
93
+ <li class="px-4 py-2 bg-blue-900">
94
+ <a href="#" class="flex items-center text-white">
95
+ <i class="fas fa-clipboard-check mr-3"></i>
96
+ <span class="nav-text">Diagnostic entreprise</span>
97
+ </a>
98
+ </li>
99
+ <li class="px-4 py-2 hover:bg-blue-700">
100
+ <a href="#" class="flex items-center text-blue-200">
101
+ <i class="fas fa-print mr-3"></i>
102
+ <span class="nav-text">Impression diagnostic</span>
103
+ </a>
104
+ </li>
105
+ </ul>
106
+ </nav>
107
+ </div>
108
+ <div class="p-4 border-t border-blue-700">
109
+ <div class="flex items-center">
110
+ <img src="https://via.placeholder.com/40" alt="User" class="rounded-full mr-3">
111
+ <div>
112
+ <div class="font-medium">Conseiller RSE</div>
113
+ <div class="text-xs text-blue-300">Connecté</div>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </div>
118
+
119
+ <!-- Main Content -->
120
+ <div class="main-content content-expanded flex-1 overflow-auto">
121
+ <header class="bg-white shadow-sm p-4">
122
+ <div class="flex justify-between items-center">
123
+ <h1 class="text-2xl font-bold text-gray-800">Diagnostic de l'entreprise</h1>
124
+ <div class="flex items-center space-x-4">
125
+ <div class="relative">
126
+ <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">
127
+ <option>Secteur: BTP</option>
128
+ <option>Industrie</option>
129
+ <option>Services</option>
130
+ <option>Commerce</option>
131
+ </select>
132
+ <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
133
+ <i class="fas fa-chevron-down"></i>
134
+ </div>
135
+ </div>
136
+ <button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center">
137
+ <i class="fas fa-save mr-2"></i>
138
+ <span>Sauvegarder</span>
139
+ </button>
140
+ </div>
141
+ </div>
142
+ </header>
143
+
144
+ <main class="p-6">
145
+ <!-- ESG Scores Overview -->
146
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
147
+ <!-- Environmental Score -->
148
+ <div class="bg-white rounded-lg shadow p-6">
149
+ <div class="flex justify-between items-start">
150
+ <div>
151
+ <h3 class="text-lg font-semibold text-gray-800">Environnemental</h3>
152
+ <p class="text-sm text-gray-500">Score global</p>
153
+ </div>
154
+ <div class="relative w-16 h-16">
155
+ <svg class="w-full h-full" viewBox="0 0 36 36">
156
+ <path class="text-gray-200" d="M18 2.0845
157
+ a 15.9155 15.9155 0 0 1 0 31.831
158
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
159
+ <path class="text-green-500 progress-ring__circle" stroke-dasharray="75, 100" d="M18 2.0845
160
+ a 15.9155 15.9155 0 0 1 0 31.831
161
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
162
+ <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">75%</text>
163
+ </svg>
164
+ </div>
165
+ </div>
166
+ <div class="mt-4">
167
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
168
+ <span>Changement climatique</span>
169
+ <span>65%</span>
170
+ </div>
171
+ <div class="w-full bg-gray-200 rounded-full h-2">
172
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 65%"></div>
173
+ </div>
174
+ </div>
175
+ <div class="mt-2">
176
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
177
+ <span>Biodiversité</span>
178
+ <span>80%</span>
179
+ </div>
180
+ <div class="w-full bg-gray-200 rounded-full h-2">
181
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 80%"></div>
182
+ </div>
183
+ </div>
184
+ </div>
185
+
186
+ <!-- Social Score -->
187
+ <div class="bg-white rounded-lg shadow p-6">
188
+ <div class="flex justify-between items-start">
189
+ <div>
190
+ <h3 class="text-lg font-semibold text-gray-800">Social</h3>
191
+ <p class="text-sm text-gray-500">Score global</p>
192
+ </div>
193
+ <div class="relative w-16 h-16">
194
+ <svg class="w-full h-full" viewBox="0 0 36 36">
195
+ <path class="text-gray-200" d="M18 2.0845
196
+ a 15.9155 15.9155 0 0 1 0 31.831
197
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
198
+ <path class="text-yellow-500 progress-ring__circle" stroke-dasharray="60, 100" d="M18 2.0845
199
+ a 15.9155 15.9155 0 0 1 0 31.831
200
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
201
+ <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">60%</text>
202
+ </svg>
203
+ </div>
204
+ </div>
205
+ <div class="mt-4">
206
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
207
+ <span>Conditions de travail</span>
208
+ <span>55%</span>
209
+ </div>
210
+ <div class="w-full bg-gray-200 rounded-full h-2">
211
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 55%"></div>
212
+ </div>
213
+ </div>
214
+ <div class="mt-2">
215
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
216
+ <span>Santé & Sécurité</span>
217
+ <span>70%</span>
218
+ </div>
219
+ <div class="w-full bg-gray-200 rounded-full h-2">
220
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 70%"></div>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ <!-- Governance Score -->
226
+ <div class="bg-white rounded-lg shadow p-6">
227
+ <div class="flex justify-between items-start">
228
+ <div>
229
+ <h3 class="text-lg font-semibold text-gray-800">Gouvernance</h3>
230
+ <p class="text-sm text-gray-500">Score global</p>
231
+ </div>
232
+ <div class="relative w-16 h-16">
233
+ <svg class="w-full h-full" viewBox="0 0 36 36">
234
+ <path class="text-gray-200" d="M18 2.0845
235
+ a 15.9155 15.9155 0 0 1 0 31.831
236
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
237
+ <path class="text-red-500 progress-ring__circle" stroke-dasharray="45, 100" d="M18 2.0845
238
+ a 15.9155 15.9155 0 0 1 0 31.831
239
+ a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/>
240
+ <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">45%</text>
241
+ </svg>
242
+ </div>
243
+ </div>
244
+ <div class="mt-4">
245
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
246
+ <span>Éthique des affaires</span>
247
+ <span>40%</span>
248
+ </div>
249
+ <div class="w-full bg-gray-200 rounded-full h-2">
250
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 40%"></div>
251
+ </div>
252
+ </div>
253
+ <div class="mt-2">
254
+ <div class="flex justify-between text-sm text-gray-600 mb-1">
255
+ <span>Transparence</span>
256
+ <span>50%</span>
257
+ </div>
258
+ <div class="w-full bg-gray-200 rounded-full h-2">
259
+ <div class="bg-blue-400 h-2 rounded-full" style="width: 50%"></div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ </div>
264
+
265
+ <!-- ESG Sections -->
266
+ <div class="space-y-6">
267
+ <!-- Environmental Section -->
268
+ <div class="esg-section expanded bg-white rounded-lg shadow overflow-hidden">
269
+ <div class="section-header bg-green-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
270
+ <h2 class="text-xl font-bold">
271
+ <i class="fas fa-leaf mr-2"></i>
272
+ Environnemental
273
+ </h2>
274
+ <span class="font-bold"></span>
275
+ </div>
276
+ <div class="questions-container p-6">
277
+ <!-- Pillar: Changement climatique -->
278
+ <div class="mb-8">
279
+ <div class="flex justify-between items-center mb-4 border-b pb-2">
280
+ <h3 class="text-lg font-semibold text-gray-800">
281
+ <i class="fas fa-cloud-sun mr-2 text-blue-500"></i>
282
+ Changement climatique
283
+ </h3>
284
+ <div class="flex items-center">
285
+ <span class="text-sm font-medium text-gray-500 mr-2">Score:</span>
286
+ <span class="text-lg font-bold text-blue-600">65%</span>
287
+ </div>
288
+ </div>
289
+
290
+ <!-- Theme: Adaptation aux changements climatiques -->
291
+ <div class="ml-6 mb-6">
292
+ <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
293
+ <i class="fas fa-umbrella mr-2 text-blue-400"></i>
294
+ Adaptation aux changements climatiques
295
+ </h4>
296
+
297
+ <!-- Question 1 -->
298
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
299
+ <div class="flex justify-between items-start mb-3">
300
+ <p class="font-medium text-gray-800">
301
+ 1. L'entreprise a-t-elle réalisé une évaluation des risques climatiques pour ses activités dans le secteur du BTP?
302
+ </p>
303
+ <div class="flex space-x-2">
304
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
305
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
306
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
307
+ </div>
308
+ </div>
309
+ <div class="mt-3">
310
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
311
+ <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>
312
+ </div>
313
+ <div class="mt-3 flex items-center">
314
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
315
+ <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">
316
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
317
+ <option>%</option>
318
+ <option>tonnes</option>
319
+ <option>€</option>
320
+ <option>kWh</option>
321
+ </select>
322
+ </div>
323
+ </div>
324
+
325
+ <!-- Question 2 -->
326
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
327
+ <div class="flex justify-between items-start mb-3">
328
+ <p class="font-medium text-gray-800">
329
+ 2. Des mesures d'adaptation aux événements climatiques extrêmes sont-elles intégrées dans les chantiers?
330
+ </p>
331
+ <div class="flex space-x-2">
332
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
333
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
334
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
335
+ </div>
336
+ </div>
337
+ <div class="mt-3">
338
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
339
+ <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>
340
+ </div>
341
+ <div class="mt-3 flex items-center">
342
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
343
+ <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">
344
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
345
+ <option>%</option>
346
+ <option>tonnes</option>
347
+ <option>€</option>
348
+ <option>kWh</option>
349
+ </select>
350
+ </div>
351
+ </div>
352
+ </div>
353
+
354
+ <!-- Theme: Atténuation du changement climatique -->
355
+ <div class="ml-6 mb-6">
356
+ <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
357
+ <i class="fas fa-wind mr-2 text-blue-400"></i>
358
+ Atténuation du changement climatique
359
+ </h4>
360
+
361
+ <!-- Question 1 -->
362
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
363
+ <div class="flex justify-between items-start mb-3">
364
+ <p class="font-medium text-gray-800">
365
+ 1. L'entreprise mesure-t-elle ses émissions de gaz à effet de serre (scope 1, 2 et 3)?
366
+ </p>
367
+ <div class="flex space-x-2">
368
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
369
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
370
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
371
+ </div>
372
+ </div>
373
+ <div class="mt-3">
374
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
375
+ <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>
376
+ </div>
377
+ <div class="mt-3 flex items-center">
378
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
379
+ <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">
380
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
381
+ <option>tonnes CO2e</option>
382
+ <option>%</option>
383
+ <option>€</option>
384
+ <option>kWh</option>
385
+ </select>
386
+ </div>
387
+ </div>
388
+
389
+ <!-- Question 2 -->
390
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
391
+ <div class="flex justify-between items-start mb-3">
392
+ <p class="font-medium text-gray-800">
393
+ 2. Existe-t-il un plan de réduction des émissions de GES avec des objectifs chiffrés?
394
+ </p>
395
+ <div class="flex space-x-2">
396
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
397
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
398
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
399
+ </div>
400
+ </div>
401
+ <div class="mt-3">
402
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
403
+ <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>
404
+ </div>
405
+ <div class="mt-3 flex items-center">
406
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
407
+ <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">
408
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
409
+ <option>% réduction</option>
410
+ <option>tonnes CO2e</option>
411
+ <option>€</option>
412
+ <option>kWh</option>
413
+ </select>
414
+ </div>
415
+ </div>
416
+ </div>
417
+
418
+ <!-- Theme: Energie -->
419
+ <div class="ml-6 mb-6">
420
+ <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center">
421
+ <i class="fas fa-bolt mr-2 text-blue-400"></i>
422
+ Energie
423
+ </h4>
424
+
425
+ <!-- Question 1 -->
426
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
427
+ <div class="flex justify-between items-start mb-3">
428
+ <p class="font-medium text-gray-800">
429
+ 1. L'entreprise utilise-t-elle des énergies renouvelables sur ses chantiers (groupes électrogènes solaires, etc.)?
430
+ </p>
431
+ <div class="flex space-x-2">
432
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
433
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
434
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
435
+ </div>
436
+ </div>
437
+ <div class="mt-3">
438
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
439
+ <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>
440
+ </div>
441
+ <div class="mt-3 flex items-center">
442
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
443
+ <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">
444
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
445
+ <option>%</option>
446
+ <option>kWh</option>
447
+ <option>€</option>
448
+ <option>tonnes</option>
449
+ </select>
450
+ </div>
451
+ </div>
452
+
453
+ <!-- Question 2 -->
454
+ <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg">
455
+ <div class="flex justify-between items-start mb-3">
456
+ <p class="font-medium text-gray-800">
457
+ 2. Des mesures d'efficacité énergétique sont-elles mises en place (isolation des bâtiments, matériel performant, etc.)?
458
+ </p>
459
+ <div class="flex space-x-2">
460
+ <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button>
461
+ <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button>
462
+ <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button>
463
+ </div>
464
+ </div>
465
+ <div class="mt-3">
466
+ <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label>
467
+ <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>
468
+ </div>
469
+ <div class="mt-3 flex items-center">
470
+ <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label>
471
+ <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">
472
+ <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
473
+ <option>% économie</option>
474
+ <option>kWh</option>
475
+ <option>€</option>
476
+ <option>tonnes</option>
477
+ </select>
478
+ </div>
479
+ </div>
480
+ </div>
481
+ </div>
482
+ </div>
483
+ </div>
484
+
485
+ <!-- Social Section -->
486
+ <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden">
487
+ <div class="section-header bg-yellow-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
488
+ <h2 class="text-xl font-bold">
489
+ <i class="fas fa-users mr-2"></i>
490
+ Social
491
+ </h2>
492
+ <span class="font-bold">+</span>
493
+ </div>
494
+ <div class="questions-container p-6 hidden">
495
+ <!-- Contenu des questions sociales -->
496
+ <p class="text-gray-500">Section sociale - Questions à venir</p>
497
+ </div>
498
+ </div>
499
+
500
+ <!-- Governance Section -->
501
+ <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden">
502
+ <div class="section-header bg-red-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center">
503
+ <h2 class="text-xl font-bold">
504
+ <i class="fas fa-landmark mr-2"></i>
505
+ Gouvernance
506
+ </h2>
507
+ <span class="font-bold">+</span>
508
+ </div>
509
+ <div class="questions-container p-6 hidden">
510
+ <!-- Contenu des questions de gouvernance -->
511
+ <p class="text-gray-500">Section gouvernance - Questions à venir</p>
512
+ </div>
513
+ </div>
514
+ </div>
515
+ </main>
516
+ </div>
517
+ </div>
518
+
519
+ <script>
520
+ // Toggle sidebar
521
+ document.getElementById('toggleSidebar').addEventListener('click', function() {
522
+ const sidebar = document.querySelector('.sidebar');
523
+ const mainContent = document.querySelector('.main-content');
524
+
525
+ if (sidebar.classList.contains('sidebar-expanded')) {
526
+ sidebar.classList.remove('sidebar-expanded');
527
+ sidebar.classList.add('sidebar-collapsed');
528
+ mainContent.classList.remove('content-expanded');
529
+ mainContent.classList.add('content-collapsed');
530
+
531
+ // Update nav items
532
+ document.querySelectorAll('nav li').forEach(item => {
533
+ item.classList.add('nav-item-collapsed');
534
+ item.classList.remove('nav-item-expanded');
535
+ });
536
+ } else {
537
+ sidebar.classList.remove('sidebar-collapsed');
538
+ sidebar.classList.add('sidebar-expanded');
539
+ mainContent.classList.remove('content-collapsed');
540
+ mainContent.classList.add('content-expanded');
541
+
542
+ // Update nav items
543
+ document.querySelectorAll('nav li').forEach(item => {
544
+ item.classList.remove('nav-item-collapsed');
545
+ item.classList.add('nav-item-expanded');
546
+ });
547
+ }
548
+ });
549
+
550
+ // Toggle ESG sections
551
+ document.querySelectorAll('.section-header').forEach(header => {
552
+ header.addEventListener('click', function() {
553
+ const section = this.parentElement;
554
+ if (section.classList.contains('collapsed')) {
555
+ section.classList.remove('collapsed');
556
+ section.classList.add('expanded');
557
+ section.querySelector('.questions-container').style.display = 'block';
558
+ } else {
559
+ section.classList.remove('expanded');
560
+ section.classList.add('collapsed');
561
+ section.querySelector('.questions-container').style.display = 'none';
562
+ }
563
+ });
564
+ });
565
+
566
+ // Handle answer buttons
567
+ document.querySelectorAll('.answer-btn').forEach(btn => {
568
+ btn.addEventListener('click', function() {
569
+ // Remove active class from all buttons in this group
570
+ this.parentElement.querySelectorAll('.answer-btn').forEach(b => {
571
+ b.classList.remove('bg-blue-500', 'text-white');
572
+ b.classList.add('bg-gray-100', 'text-gray-800');
573
+ });
574
+
575
+ // Add active class to clicked button
576
+ const value = this.getAttribute('data-value');
577
+ if (value === 'yes') {
578
+ this.classList.remove('bg-green-100', 'text-green-800');
579
+ this.classList.add('bg-green-500', 'text-white');
580
+ } else if (value === 'no') {
581
+ this.classList.remove('bg-red-100', 'text-red-800');
582
+ this.classList.add('bg-red-500', 'text-white');
583
+ } else {
584
+ this.classList.remove('bg-gray-100', 'text-gray-800');
585
+ this.classList.add('bg-gray-500', 'text-white');
586
+ }
587
+
588
+ // Update score (simplified example)
589
+ // In a real app, you would calculate this based on all answers
590
+ const scoreElement = this.closest('.esg-section').querySelector('.progress-ring__circle');
591
+ const currentScore = parseInt(scoreElement.getAttribute('stroke-dasharray').split(',')[0]);
592
+ let newScore = currentScore;
593
+
594
+ if (value === 'yes') newScore = Math.min(currentScore + 5, 100);
595
+ else if (value === 'no') newScore = Math.max(currentScore - 5, 0);
596
+
597
+ scoreElement.setAttribute('stroke-dasharray', `${newScore}, 100`);
598
+ scoreElement.parentElement.querySelector('text').textContent = `${newScore}%`;
599
+ });
600
+ });
601
+
602
+ // Initialize sections
603
+ document.querySelectorAll('.esg-section').forEach(section => {
604
+ if (section.classList.contains('expanded')) {
605
+ section.querySelector('.questions-container').style.display = 'block';
606
+ } else {
607
+ section.querySelector('.questions-container').style.display = 'none';
608
+ }
609
+ });
610
+ </script>
611
+ <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>
612
+ </html>