File size: 56,360 Bytes
69aa626
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cours ACV - STI2D</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>
        .slide {
            display: none;
        }
        .active-slide {
            display: block;
            animation: fadeIn 0.5s;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .progress-bar {
            height: 5px;
            background-color: #3b82f6;
            width: 0%;
            transition: width 0.3s;
        }
        .interactive-element:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .flip-card {
            perspective: 1000px;
        }
        .flip-card-inner {
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }
        .flip-card:hover .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            backface-visibility: hidden;
        }
        .flip-card-back {
            transform: rotateY(180deg);
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <div class="container mx-auto px-4 py-8 max-w-6xl">
        <!-- Header -->
        <header class="bg-white shadow-md rounded-lg mb-8 p-6">
            <div class="flex items-center justify-between">
                <div>
                    <h1 class="text-3xl font-bold text-blue-800">Analyse du Cycle de Vie (ACV)</h1>
                    <p class="text-gray-600">Cours complet pour la classe de Première STI2D</p>
                </div>
                <div class="bg-blue-100 p-3 rounded-full">
                    <i class="fas fa-leaf text-blue-600 text-2xl"></i>
                </div>
            </div>
            <div class="progress-bar mt-4"></div>
        </header>

        <!-- Navigation -->
        <nav class="bg-white shadow-sm rounded-lg mb-8 p-4 sticky top-0 z-10">
            <ul class="flex flex-wrap justify-around">
                <li><button onclick="showSlide(1)" class="nav-btn px-4 py-2 rounded hover:bg-blue-50 text-blue-600 font-medium"><i class="fas fa-home mr-2"></i>Introduction</button></li>
                <li><button onclick="showSlide(2)" class="nav-btn px-4 py-2 rounded hover:bg-blue-50 text-blue-600 font-medium"><i class="fas fa-book mr-2"></i>Théorie</button></li>
                <li><button onclick="showSlide(3)" class="nav-btn px-4 py-2 rounded hover:bg-blue-50 text-blue-600 font-medium"><i class="fas fa-flask mr-2"></i>TP</button></li>
                <li><button onclick="showSlide(4)" class="nav-btn px-4 py-2 rounded hover:bg-blue-50 text-blue-600 font-medium"><i class="fas fa-pencil-alt mr-2"></i>TD</button></li>
                <li><button onclick="showSlide(5)" class="nav-btn px-4 py-2 rounded hover:bg-blue-50 text-blue-600 font-medium"><i class="fas fa-question-circle mr-2"></i>Quiz</button></li>
            </ul>
        </nav>

        <!-- Slides -->
        <div class="slides-container">
            <!-- Slide 1 - Introduction -->
            <div class="slide active-slide bg-white rounded-lg shadow-md p-8 mb-8">
                <h2 class="text-2xl font-bold text-blue-700 mb-6"><i class="fas fa-home mr-3"></i>Introduction à l'ACV</h2>
                
                <div class="grid md:grid-cols-2 gap-6 mb-8">
                    <div class="bg-blue-50 p-6 rounded-lg interactive-element">
                        <h3 class="text-xl font-semibold text-blue-800 mb-3">Qu'est-ce que l'ACV ?</h3>
                        <p class="text-gray-700">L'Analyse du Cycle de Vie (ACV) est une méthode d'évaluation environnementale qui permet de quantifier les impacts d'un produit, d'un service ou d'un système, depuis l'extraction des matières premières jusqu'à sa fin de vie (recyclage ou élimination).</p>
                    </div>
                    
                    <div class="bg-green-50 p-6 rounded-lg interactive-element">
                        <h3 class="text-xl font-semibold text-green-800 mb-3">Pourquoi étudier l'ACV ?</h3>
                        <p class="text-gray-700">Dans un contexte de développement durable, l'ACV permet de prendre des décisions éclairées pour réduire les impacts environnementaux des produits que nous concevons et utilisons au quotidien.</p>
                    </div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold mb-4 text-gray-800">Exemple concret : une bouteille en plastique</h3>
                    <div class="flip-card w-full h-64 mb-6">
                        <div class="flip-card-inner w-full h-full">
                            <div class="flip-card-front bg-gradient-to-r from-blue-100 to-blue-200 rounded-lg p-6 flex flex-col justify-center items-center">
                                <i class="fas fa-wine-bottle text-5xl text-blue-600 mb-4"></i>
                                <p class="text-lg font-medium">Cliquez pour voir le cycle de vie</p>
                            </div>
                            <div class="flip-card-back bg-gradient-to-r from-green-100 to-green-200 rounded-lg p-6">
                                <h4 class="font-bold text-lg mb-3 text-green-800">Cycle de vie d'une bouteille</h4>
                                <ol class="list-decimal pl-5 space-y-1">
                                    <li>Extraction du pétrole</li>
                                    <li>Production du plastique</li>
                                    <li>Fabrication de la bouteille</li>
                                    <li>Transport et distribution</li>
                                    <li>Utilisation par le consommateur</li>
                                    <li>Fin de vie (recyclage, incinération, décharge)</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i class="fas fa-exclamation-circle text-yellow-500 text-xl mt-1 mr-3"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-yellow-800">Objectifs du cours</h4>
                            <p class="text-yellow-700">À la fin de ce module, vous serez capable de comprendre les principes de l'ACV, réaliser une analyse simplifiée et interpréter les résultats pour améliorer la conception d'un produit.</p>
                        </div>
                    </div>
                </div>
                
                <button onclick="showSlide(2)" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300 flex items-center">
                    Commencer le cours <i class="fas fa-arrow-right ml-2"></i>
                </button>
            </div>

            <!-- Slide 2 - Théorie -->
            <div class="slide bg-white rounded-lg shadow-md p-8 mb-8">
                <h2 class="text-2xl font-bold text-blue-700 mb-6"><i class="fas fa-book mr-3"></i>Partie Théorique</h2>
                
                <div class="grid md:grid-cols-3 gap-6 mb-8">
                    <div class="bg-purple-50 p-4 rounded-lg interactive-element">
                        <div class="bg-purple-100 w-12 h-12 rounded-full flex items-center justify-center mb-3 mx-auto">
                            <i class="fas fa-project-diagram text-purple-600"></i>
                        </div>
                        <h3 class="text-lg font-semibold text-center text-purple-800 mb-2">Les 4 étapes de l'ACV</h3>
                        <ol class="list-decimal pl-5 text-sm text-gray-700">
                            <li>Définition des objectifs</li>
                            <li>Analyse des flux (inventaire)</li>
                            <li>Évaluation des impacts</li>
                            <li>Interprétation des résultats</li>
                        </ol>
                    </div>
                    
                    <div class="bg-indigo-50 p-4 rounded-lg interactive-element">
                        <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-3 mx-auto">
                            <i class="fas fa-balance-scale text-indigo-600"></i>
                        </div>
                        <h3 class="text-lg font-semibold text-center text-indigo-800 mb-2">Frontières du système</h3>
                        <p class="text-sm text-gray-700">Il faut définir ce qui est inclus dans l'étude (matières premières, énergie, transport, etc.) et ce qui est exclu. Cette étape est cruciale pour la pertinence des résultats.</p>
                    </div>
                    
                    <div class="bg-teal-50 p-4 rounded-lg interactive-element">
                        <div class="bg-teal-100 w-12 h-12 rounded-full flex items-center justify-center mb-3 mx-auto">
                            <i class="fas fa-chart-pie text-teal-600"></i>
                        </div>
                        <h3 class="text-lg font-semibold text-center text-teal-800 mb-2">Indicateurs clés</h3>
                        <ul class="list-disc pl-5 text-sm text-gray-700">
                            <li>Changement climatique (CO₂eq)</li>
                            <li>Épuisement des ressources</li>
                            <li>Eutrophisation</li>
                            <li>Toxicologie humaine</li>
                        </ul>
                    </div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold mb-4 text-gray-800">Schéma du processus ACV</h3>
                    <div class="bg-white p-6 border border-gray-200 rounded-lg">
                        <div class="flex flex-col md:flex-row justify-between items-center mb-6">
                            <div class="bg-blue-100 p-3 rounded-full mb-3 md:mb-0">
                                <i class="fas fa-bullseye text-blue-600 text-xl"></i>
                            </div>
                            <div class="text-center mx-4 text-gray-500">
                                <i class="fas fa-arrow-right text-xl hidden md:block"></i>
                                <i class="fas fa-arrow-down text-xl md:hidden"></i>
                            </div>
                            <div class="bg-green-100 p-3 rounded-full mb-3 md:mb-0">
                                <i class="fas fa-boxes text-green-600 text-xl"></i>
                            </div>
                            <div class="text-center mx-4 text-gray-500">
                                <i class="fas fa-arrow-right text-xl hidden md:block"></i>
                                <i class="fas fa-arrow-down text-xl md:hidden"></i>
                            </div>
                            <div class="bg-yellow-100 p-3 rounded-full mb-3 md:mb-0">
                                <i class="fas fa-chart-line text-yellow-600 text-xl"></i>
                            </div>
                            <div class="text-center mx-4 text-gray-500">
                                <i class="fas fa-arrow-right text-xl hidden md:block"></i>
                                <i class="fas fa-arrow-down text-xl md:hidden"></i>
                            </div>
                            <div class="bg-red-100 p-3 rounded-full">
                                <i class="fas fa-search text-red-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="flex flex-col md:flex-row justify-between text-center">
                            <div class="mb-4 md:mb-0">
                                <h4 class="font-medium text-blue-700">Objectifs</h4>
                                <p class="text-sm text-gray-600">Définir le but de l'étude</p>
                            </div>
                            <div class="mb-4 md:mb-0">
                                <h4 class="font-medium text-green-700">Inventaire</h4>
                                <p class="text-sm text-gray-600">Collecte des données</p>
                            </div>
                            <div class="mb-4 md:mb-0">
                                <h4 class="font-medium text-yellow-700">Impacts</h4>
                                <p class="text-sm text-gray-600">Évaluation</p>
                            </div>
                            <div>
                                <h4 class="font-medium text-red-700">Interprétation</h4>
                                <p class="text-sm text-gray-600">Analyse des résultats</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="grid md:grid-cols-2 gap-6 mb-8">
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Exercice interactif</h3>
                        <p class="mb-4 text-gray-700">Classez ces étapes du cycle de vie d'un smartphone dans le bon ordre :</p>
                        <div id="sortable" class="space-y-2">
                            <div class="bg-white p-3 rounded border cursor-move" draggable="true">Utilisation par le consommateur</div>
                            <div class="bg-white p-3 rounded border cursor-move" draggable="true">Extraction des métaux rares</div>
                            <div class="bg-white p-3 rounded border cursor-move" draggable="true">Assemblage des composants</div>
                            <div class="bg-white p-3 rounded border cursor-move" draggable="true">Recyclage ou mise en décharge</div>
                            <div class="bg-white p-3 rounded border cursor-move" draggable="true">Transport et distribution</div>
                        </div>
                        <button onclick="checkOrder()" class="mt-4 bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded">Vérifier l'ordre</button>
                        <p id="feedback" class="mt-2 hidden"></p>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg border border-gray-200">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Cas pratique : T-shirt en coton</h3>
                        <p class="mb-4 text-gray-700">Quels sont les impacts environnementaux principaux d'un t-shirt en coton ?</p>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <input type="checkbox" id="impact1" class="mr-2">
                                <label for="impact1" class="cursor-pointer">Consommation d'eau pour la culture du coton</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="impact2" class="mr-2">
                                <label for="impact2" class="cursor-pointer">Émissions de CO₂ du transport</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="impact3" class="mr-2">
                                <label for="impact3" class="cursor-pointer">Utilisation de pesticides</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="impact4" class="mr-2">
                                <label for="impact4" class="cursor-pointer">Énergie pour la fabrication</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="impact5" class="mr-2">
                                <label for="impact5" class="cursor-pointer">Tous ces éléments</label>
                            </div>
                        </div>
                        <button onclick="checkTshirtAnswer()" class="mt-4 bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded">Vérifier</button>
                        <p id="tshirt-feedback" class="mt-2 hidden"></p>
                    </div>
                </div>
                
                <div class="flex justify-between mt-8">
                    <button onclick="showSlide(1)" class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        <i class="fas fa-arrow-left mr-2"></i> Retour
                    </button>
                    <button onclick="showSlide(3)" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        TP <i class="fas fa-arrow-right ml-2"></i>
                    </button>
                </div>
            </div>

            <!-- Slide 3 - TP -->
            <div class="slide bg-white rounded-lg shadow-md p-8 mb-8">
                <h2 class="text-2xl font-bold text-blue-700 mb-6"><i class="fas fa-flask mr-3"></i>Travaux Pratiques</h2>
                
                <div class="bg-blue-50 border-l-4 border-blue-400 p-4 mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i class="fas fa-info-circle text-blue-500 text-xl mt-1 mr-3"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-blue-800">Objectif du TP</h4>
                            <p class="text-blue-700">Réaliser une analyse simplifiée du cycle de vie d'un objet du quotidien et comparer deux options pour identifier la plus écologique.</p>
                        </div>
                    </div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold mb-4 text-gray-800">TP : Comparaison gobelet jetable vs réutilisable</h3>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-6">
                        <div class="bg-white p-6 rounded-lg border border-gray-200 shadow-sm interactive-element">
                            <div class="flex items-center mb-4">
                                <div class="bg-red-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-times-circle text-red-600"></i>
                                </div>
                                <h4 class="text-lg font-semibold text-gray-800">Gobelet jetable en plastique</h4>
                            </div>
                            <ul class="space-y-2 text-gray-700">
                                <li><i class="fas fa-cog mr-2 text-gray-500"></i> Matière : Polystyrène</li>
                                <li><i class="fas fa-weight mr-2 text-gray-500"></i> Poids : 5g</li>
                                <li><i class="fas fa-industry mr-2 text-gray-500"></i> Production : 0,02 kWh</li>
                                <li><i class="fas fa-truck mr-2 text-gray-500"></i> Transport : 50km</li>
                                <li><i class="fas fa-trash mr-2 text-gray-500"></i> Fin de vie : Incinération</li>
                            </ul>
                        </div>
                        
                        <div class="bg-white p-6 rounded-lg border border-gray-200 shadow-sm interactive-element">
                            <div class="flex items-center mb-4">
                                <div class="bg-green-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-check-circle text-green-600"></i>
                                </div>
                                <h4 class="text-lg font-semibold text-gray-800">Gobelet réutilisable en céramique</h4>
                            </div>
                            <ul class="space-y-2 text-gray-700">
                                <li><i class="fas fa-cog mr-2 text-gray-500"></i> Matière : Céramique</li>
                                <li><i class="fas fa-weight mr-2 text-gray-500"></i> Poids : 200g</li>
                                <li><i class="fas fa-industry mr-2 text-gray-500"></i> Production : 1,5 kWh</li>
                                <li><i class="fas fa-truck mr-2 text-gray-500"></i> Transport : 200km</li>
                                <li><i class="fas fa-recycle mr-2 text-gray-500"></i> Durée de vie : 1000 utilisations</li>
                                <li><i class="fas fa-tint mr-2 text-gray-500"></i> Lavage : 0,1L d'eau/utilisation</li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <h4 class="text-lg font-semibold mb-4 text-gray-800">Consignes de travail</h4>
                        <ol class="list-decimal pl-5 space-y-2 text-gray-700">
                            <li>Calculer l'impact pour 1 utilisation du gobelet jetable</li>
                            <li>Calculer l'impact pour 1 utilisation du gobelet réutilisable (en incluant production et lavage)</li>
                            <li>Déterminer à partir de combien d'utilisations le gobelet réutilisable devient plus écologique</li>
                            <li>Considérer différents scénarios (distance de transport, mode de lavage)</li>
                            <li>Présenter vos résultats sous forme de graphiques</li>
                        </ol>
                    </div>
                    
                    <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
                        <h4 class="text-lg font-semibold mb-4 text-gray-800">Données pour les calculs</h4>
                        <div class="overflow-x-auto">
                            <table class="min-w-full bg-white">
                                <thead>
                                    <tr class="bg-gray-100">
                                        <th class="py-2 px-4 border">Facteur</th>
                                        <th class="py-2 px-4 border">Valeur</th>
                                        <th class="py-2 px-4 border">Unité</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td class="py-2 px-4 border">Émission CO₂ plastique</td>
                                        <td class="py-2 px-4 border">3,5</td>
                                        <td class="py-2 px-4 border">kg CO₂/kg</td>
                                    </tr>
                                    <tr class="bg-gray-50">
                                        <td class="py-2 px-4 border">Émission CO₂ céramique</td>
                                        <td class="py-2 px-4 border">0,9</td>
                                        <td class="py-2 px-4 border">kg CO₂/kg</td>
                                    </tr>
                                    <tr>
                                        <td class="py-2 px-4 border">Émission transport routier</td>
                                        <td class="py-2 px-4 border">0,1</td>
                                        <td class="py-2 px-4 border">kg CO₂/km.kg</td>
                                    </tr>
                                    <tr class="bg-gray-50">
                                        <td class="py-2 px-4 border">Émission électricité</td>
                                        <td class="py-2 px-4 border">0,05</td>
                                        <td class="py-2 px-4 border">kg CO₂/kWh</td>
                                    </tr>
                                    <tr>
                                        <td class="py-2 px-4 border">Émission traitement eau</td>
                                        <td class="py-2 px-4 border">0,002</td>
                                        <td class="py-2 px-4 border">kg CO₂/L</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-lg border border-gray-200 mb-8">
                    <h3 class="text-lg font-semibold mb-4 text-gray-800">Simulateur ACV</h3>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <div class="mb-4">
                                <label class="block text-gray-700 mb-2">Nombre d'utilisations</label>
                                <input type="range" id="usageRange" min="1" max="1000" value="100" class="w-full" oninput="updateSimulator()">
                                <div class="flex justify-between text-xs text-gray-600 mt-1">
                                    <span>1</span>
                                    <span>100</span>
                                    <span>500</span>
                                    <span>1000</span>
                                </div>
                            </div>
                            <div class="mb-4">
                                <label class="block text-gray-700 mb-2">Distance de transport (km)</label>
                                <input type="range" id="transportRange" min="10" max="500" value="200" class="w-full" oninput="updateSimulator()">
                            </div>
                        </div>
                        <div>
                            <div class="bg-gray-100 p-4 rounded-lg">
                                <h4 class="font-medium mb-2 text-gray-800">Résultats comparés</h4>
                                <div class="h-40 relative">
                                    <div class="absolute bottom-0 left-0 w-1/2 bg-red-400" id="disposableBar" style="height: 30%;"></div>
                                    <div class="absolute bottom-0 right-0 w-1/2 bg-green-400" id="reusableBar" style="height: 60%;"></div>
                                    <div class="absolute top-0 left-0 w-full border-b border-gray-300 flex justify-between text-xs text-gray-600">
                                        <span>0</span>
                                        <span id="maxValue">10</span>
                                    </div>
                                </div>
                                <div class="flex justify-between mt-4">
                                    <div class="text-center">
                                        <div class="w-4 h-4 bg-red-400 mx-auto mb-1"></div>
                                        <span class="text-xs">Jetable</span>
                                        <p class="text-sm font-medium" id="disposableValue">3.5 kg CO₂</p>
                                    </div>
                                    <div class="text-center">
                                        <div class="w-4 h-4 bg-green-400 mx-auto mb-1"></div>
                                        <span class="text-xs">Réutilisable</span>
                                        <p class="text-sm font-medium" id="reusableValue">1.2 kg CO₂</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="flex justify-between mt-8">
                    <button onclick="showSlide(2)" class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        <i class="fas fa-arrow-left mr-2"></i> Retour
                    </button>
                    <button onclick="showSlide(4)" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        TD <i class="fas fa-arrow-right ml-2"></i>
                    </button>
                </div>
            </div>

            <!-- Slide 4 - TD -->
            <div class="slide bg-white rounded-lg shadow-md p-8 mb-8">
                <h2 class="text-2xl font-bold text-blue-700 mb-6"><i class="fas fa-pencil-alt mr-3"></i>Travaux Dirigés</h2>
                
                <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i class="fas fa-lightbulb text-yellow-500 text-xl mt-1 mr-3"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-yellow-800">Objectifs des TD</h4>
                            <p class="text-yellow-700">Approfondir les concepts théoriques à travers des études de cas et des problèmes concrets. Développer votre esprit critique sur les résultats d'ACV.</p>
                        </div>
                    </div>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold mb-4 text-gray-800">Exercice 1 : Interprétation de résultats</h3>
                    
                    <div class="bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <p class="mb-4 text-gray-700">Vous disposez des résultats d'une ACV comparant trois types d'emballages pour un même produit alimentaire :</p>
                        
                        <div class="overflow-x-auto mb-6">
                            <table class="min-w-full bg-white">
                                <thead>
                                    <tr class="bg-gray-100">
                                        <th class="py-2 px-4 border">Impact</th>
                                        <th class="py-2 px-4 border">Unité</th>
                                        <th class="py-2 px-4 border">Plastique</th>
                                        <th class="py-2 px-4 border">Carton</th>
                                        <th class="py-2 px-4 border">Verre</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td class="py-2 px-4 border">Changement climatique</td>
                                        <td class="py-2 px-4 border">kg CO₂eq</td>
                                        <td class="py-2 px-4 border">0,12</td>
                                        <td class="py-2 px-4 border">0,08</td>
                                        <td class="py-2 px-4 border">0,25</td>
                                    </tr>
                                    <tr class="bg-gray-50">
                                        <td class="py-2 px-4 border">Épuisement ressources</td>
                                        <td class="py-2 px-4 border">kg Sb eq</td>
                                        <td class="py-2 px-4 border">0,0005</td>
                                        <td class="py-2 px-4 border">0,0002</td>
                                        <td class="py-2 px-4 border">0,001</td>
                                    </tr>
                                    <tr>
                                        <td class="py-2 px-4 border">Eutrophisation</td>
                                        <td class="py-2 px-4 border">kg PO₄eq</td>
                                        <td class="py-2 px-4 border">0,0003</td>
                                        <td class="py-2 px-4 border">0,0005</td>
                                        <td class="py-2 px-4 border">0,0004</td>
                                    </tr>
                                    <tr class="bg-gray-50">
                                        <td class="py-2 px-4 border">Consommation eau</td>
                                        <td class="py-2 px-4 border">L</td>
                                        <td class="py-2 px-4 border">2</td>
                                        <td class="py-2 px-4 border">10</td>
                                        <td class="py-2 px-4 border">5</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 1 : Quel emballage semble le plus écologique ? Justifiez.</h4>
                                <textarea class="w-full p-3 border border-gray-300 rounded-lg" rows="3" placeholder="Votre réponse..."></textarea>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 2 : Quels critères pourraient influencer votre choix final ?</h4>
                                <div class="space-y-2">
                                    <div class="flex items-center">
                                        <input type="checkbox" id="critere1" class="mr-2">
                                        <label for="critere1" class="cursor-pointer">Prix de l'emballage</label>
                                    </div>
                                    <div class="flex items-center">
                                        <input type="checkbox" id="critere2" class="mr-2">
                                        <label for="critere2" class="cursor-pointer">Acceptation par les consommateurs</label>
                                    </div>
                                    <div class="flex items-center">
                                        <input type="checkbox" id="critere3" class="mr-2">
                                        <label for="critere3" class="cursor-pointer">Facilité de recyclage</label>
                                    </div>
                                    <div class="flex items-center">
                                        <input type="checkbox" id="critere4" class="mr-2">
                                        <label for="critere4" class="cursor-pointer">Protection du produit</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 3 : Proposez une amélioration pour l'emballage en verre.</h4>
                                <textarea class="w-full p-3 border border-gray-300 rounded-lg" rows="2" placeholder="Votre proposition..."></textarea>
                            </div>
                        </div>
                    </div>
                    
                    <h3 class="text-xl font-semibold mb-4 text-gray-800">Exercice 2 : Analyse critique</h3>
                    
                    <div class="bg-white p-6 rounded-lg border border-gray-200">
                        <p class="mb-4 text-gray-700">Lisez attentivement ce résumé d'étude ACV puis répondez aux questions :</p>
                        
                        <div class="bg-gray-50 p-4 rounded-lg mb-6">
                            <p class="italic text-gray-700">"Une étude ACV a comparé les impacts environnementaux des sacs en plastique à usage unique avec des sacs réutilisables en coton. Les résultats montrent qu'un sac en coton doit être utilisé au moins 131 fois pour avoir un impact climatique inférieur à celui des sacs plastiques à usage unique. Cette conclusion est basée sur l'hypothèse que le sac plastique n'est pas recyclé et que le sac en coton est produit en Inde et transporté en Europe."</p>
                        </div>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 1 : Quels éléments de l'étude pourraient être remis en question ?</h4>
                                <textarea class="w-full p-3 border border-gray-300 rounded-lg" rows="3" placeholder="Votre analyse..."></textarea>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 2 : Comment modifieriez-vous l'étude pour obtenir des résultats plus représentatifs ?</h4>
                                <textarea class="w-full p-3 border border-gray-300 rounded-lg" rows="3" placeholder="Vos suggestions..."></textarea>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-2 text-gray-800">Question 3 : Proposez un scénario alternatif qui pourrait changer les conclusions.</h4>
                                <div class="grid md:grid-cols-2 gap-4">
                                    <div class="bg-white p-4 rounded border border-gray-200">
                                        <div class="flex items-center mb-2">
                                            <input type="radio" id="scenario1" name="scenario" class="mr-2">
                                            <label for="scenario1" class="cursor-pointer">Sac plastique recyclé à 50%</label>
                                        </div>
                                    </div>
                                    <div class="bg-white p-4 rounded border border-gray-200">
                                        <div class="flex items-center mb-2">
                                            <input type="radio" id="scenario2" name="scenario" class="mr-2">
                                            <label for="scenario2" class="cursor-pointer">Production locale du coton</label>
                                        </div>
                                    </div>
                                    <div class="bg-white p-4 rounded border border-gray-200">
                                        <div class="flex items-center mb-2">
                                            <input type="radio" id="scenario3" name="scenario" class="mr-2">
                                            <label for="scenario3" class="cursor-pointer">Utilisation de coton bio</label>
                                        </div>
                                    </div>
                                    <div class="bg-white p-4 rounded border border-gray-200">
                                        <div class="flex items-center mb-2">
                                            <input type="radio" id="scenario4" name="scenario" class="mr-2">
                                            <label for="scenario4" class="cursor-pointer">Tous ces éléments</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="flex justify-between mt-8">
                    <button onclick="showSlide(3)" class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        <i class="fas fa-arrow-left mr-2"></i> Retour
                    </button>
                    <button onclick="showSlide(5)" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        Quiz <i class="fas fa-arrow-right ml-2"></i>
                    </button>
                </div>
            </div>

            <!-- Slide 5 - Quiz -->
            <div class="slide bg-white rounded-lg shadow-md p-8 mb-8">
                <h2 class="text-2xl font-bold text-blue-700 mb-6"><i class="fas fa-question-circle mr-3"></i>Quiz d'évaluation</h2>
                
                <div class="bg-purple-50 border-l-4 border-purple-400 p-4 mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i class="fas fa-graduation-cap text-purple-500 text-xl mt-1 mr-3"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-purple-800">Testez vos connaissances</h4>
                            <p class="text-purple-700">Ce quiz vous permet d'évaluer votre compréhension des concepts clés de l'ACV. Vous obtiendrez une correction à la fin.</p>
                        </div>
                    </div>
                </div>
                
                <div class="mb-8">
                    <div class="quiz-question bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Question 1 : Quelles sont les 4 étapes principales d'une ACV ?</h3>
                        <div class="grid md:grid-cols-2 gap-4">
                            <div class="flex items-center">
                                <input type="checkbox" id="q1a" class="mr-2">
                                <label for="q1a" class="cursor-pointer">Définition des objectifs</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="q1b" class="mr-2">
                                <label for="q1b" class="cursor-pointer">Analyse des flux</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="q1c" class="mr-2">
                                <label for="q1c" class="cursor-pointer">Évaluation des impacts</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="q1d" class="mr-2">
                                <label for="q1d" class="cursor-pointer">Interprétation</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="q1e" class="mr-2">
                                <label for="q1e" class="cursor-pointer">Commercialisation</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="q1f" class="mr-2">
                                <label for="q1f" class="cursor-pointer">Tests utilisateurs</label>
                            </div>
                        </div>
                    </div>
                    
                    <div class="quiz-question bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Question 2 : Quel est l'objectif principal de l'ACV ?</h3>
                        <div class="space-y-2">
                            <div class="flex items-center">
                                <input type="radio" id="q2a" name="q2" class="mr-2">
                                <label for="q2a" class="cursor-pointer">Calculer le prix de vente d'un produit</label>
                            </div>
                            <div class="flex items-center">
                                <input type="radio" id="q2b" name="q2" class="mr-2">
                                <label for="q2b" class="cursor-pointer">Évaluer les impacts environnementaux d'un produit sur tout son cycle de vie</label>
                            </div>
                            <div class="flex items-center">
                                <input type="radio" id="q2c" name="q2" class="mr-2">
                                <label for="q2c" class="cursor-pointer">Déterminer la durée de vie d'un produit</label>
                            </div>
                            <div class="flex items-center">
                                <input type="radio" id="q2d" name="q2" class="mr-2">
                                <label for="q2d" class="cursor-pointer">Comparer l'esthétique de différents produits</label>
                            </div>
                        </div>
                    </div>
                    
                    <div class="quiz-question bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Question 3 : Associez chaque indicateur d'impact à sa définition</h3>
                        <div class="grid md:grid-cols-2 gap-4">
                            <div class="bg-gray-50 p-3 rounded border border-gray-200">
                                <p class="font-medium mb-2">Changement climatique</p>
                                <select class="w-full p-2 border border-gray-300 rounded">
                                    <option value="">Choisir...</option>
                                    <option value="1">Mesuré en kg CO₂eq</option>
                                    <option value="2">Mesuré en kg PO₄eq</option>
                                    <option value="3">Mesuré en kg Sb eq</option>
                                </select>
                            </div>
                            <div class="bg-gray-50 p-3 rounded border border-gray-200">
                                <p class="font-medium mb-2">Eutrophisation</p>
                                <select class="w-full p-2 border border-gray-300 rounded">
                                    <option value="">Choisir...</option>
                                    <option value="1">Mesuré en kg CO₂eq</option>
                                    <option value="2">Mesuré en kg PO₄eq</option>
                                    <option value="3">Mesuré en kg Sb eq</option>
                                </select>
                            </div>
                            <div class="bg-gray-50 p-3 rounded border border-gray-200">
                                <p class="font-medium mb-2">Épuisement des ressources</p>
                                <select class="w-full p-2 border border-gray-300 rounded">
                                    <option value="">Choisir...</option>
                                    <option value="1">Mesuré en kg CO₂eq</option>
                                    <option value="2">Mesuré en kg PO₄eq</option>
                                    <option value="3">Mesuré en kg Sb eq</option>
                                </select>
                            </div>
                            <div class="bg-gray-50 p-3 rounded border border-gray-200">
                                <p class="font-medium mb-2">Toxicité humaine</p>
                                <select class="w-full p-2 border border-gray-300 rounded">
                                    <option value="">Choisir...</option>
                                    <option value="1">Mesuré en kg CO₂eq</option>
                                    <option value="2">Mesuré en kg PO₄eq</option>
                                    <option value="3">Mesuré en kg 1,4-DB eq</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    
                    <div class="quiz-question bg-white p-6 rounded-lg border border-gray-200 mb-6">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Question 4 : Vrai ou Faux ?</h3>
                        <div class="space-y-3">
                            <div class="flex items-start">
                                <input type="checkbox" id="q4a" class="mr-2 mt-1">
                                <label for="q4a" class="cursor-pointer">L'ACV ne prend pas en compte la phase d'utilisation du produit</label>
                            </div>
                            <div class="flex items-start">
                                <input type="checkbox" id="q4b" class="mr-2 mt-1">
                                <label for="q4b" class="cursor-pointer">Les résultats d'une ACV dépendent fortement des frontières du système définies</label>
                            </div>
                            <div class="flex items-start">
                                <input type="checkbox" id="q4c" class="mr-2 mt-1">
                                <label for="q4c" class="cursor-pointer">Un produit recyclable a toujours un meilleur bilan environnemental</label>
                            </div>
                            <div class="flex items-start">
                                <input type="checkbox" id="q4d" class="mr-2 mt-1">
                                <label for="q4d" class="cursor-pointer">L'ACV peut être utilisée comme outil d'écoconception</label>
                            </div>
                        </div>
                    </div>
                    
                    <div class="quiz-question bg-white p-6 rounded-lg border border-gray-200">
                        <h3 class="text-lg font-semibold mb-3 text-gray-800">Question 5 : À partir de combien d'utilisations un gobelet réutilisable en céramique devient-il plus écologique qu'un gobelet jetable en plastique ? (voir TP)</h3>
                        <div class="flex items-center space-x-4">
                            <input type="number" id="q5" class="w-20 p-2 border border-gray-300 rounded">
                            <span>utilisations</span>
                        </div>
                    </div>
                </div>
                
                <div class="flex justify-between">
                    <button onclick="showSlide(4)" class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        <i class="fas fa-arrow-left mr-2"></i> Retour
                    </button>
                    <button onclick="submitQuiz()" class="bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                        Valider le quiz <i class="fas fa-check ml-2"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Footer -->
        <footer class="bg-white shadow-md rounded-lg mt-8 p-6 text-center text-gray-600">
            <p>Cours d'Analyse du Cycle de Vie - Première STI2D</p>
            <p class="mt-2">Matthieu Cremet - Académie de Normandie</p>
            <div class="mt-4 flex justify-center space-x-4">
                <a href="#" class="text-blue-600 hover:text-blue-800"><i class="fas fa-envelope"></i> matthieu.cremet@ac-normandie.fr</a>
                <a href="#" class="text-blue-600 hover:text-blue-800"><i class="fas fa-download"></i> Télécharger le cours complet</a>
            </div>
        </footer>
    </div>

    <script>
        // Navigation between slides
        let currentSlide = 1;
        const totalSlides = 5;
        
        function showSlide(n) {
            document.querySelector('.active-slide').classList.remove('active-slide');
            document.querySelectorAll('.slide')[n-1].classList.add('active-slide');
            currentSlide = n;
            
            // Update progress bar
            const progress = (n / totalSlides) * 100;
            document.querySelector('.progress-bar').style.width = `${progress}%`;
            
            // Update active nav button
            document.querySelectorAll('.nav-btn').forEach(btn => btn.classList.remove('bg-blue-100'));
            document.querySelectorAll('.nav-btn')[n-1].classList.add('bg-blue-100');
        }
        
        // Interactive elements
        function checkOrder() {
            const feedback = document.getElementById('feedback');
            // In a real scenario, we would check the order of dragged elements
            feedback.textContent = "Ordre correct : Extraction → Production → Transport → Utilisation → Fin de vie";
            feedback.classList.remove('hidden');
            feedback.classList.add('text-green-600');
        }
        
        function checkTshirtAnswer() {
            const feedback = document.getElementById('tshirt-feedback');
            const correct = document.getElementById('impact5').checked;
            
            if (correct) {
                feedback.textContent = "Correct ! Tous ces éléments contribuent à l'impact environnemental d'un t-shirt en coton.";
                feedback.classList.remove('text-red-600');
                feedback.classList.add('text-green-600');
            } else {
                feedback.textContent = "Presque ! En réalité, tous ces éléments doivent être pris en compte dans l'ACV d'un t-shirt.";
                feedback.classList.remove('text-green-600');
                feedback.classList.add('text-red-600');
            }
            feedback.classList.remove('hidden');
        }
        
        function updateSimulator() {
            const usage = parseInt(document.getElementById('usageRange').value);
            const transport = parseInt(document.getElementById('transportRange').value);
            
            // Simplified calculations for demonstration
            const disposableImpact = 0.12 + (transport * 0.0005);
            const reusableImpact = (0.18 + (transport * 0.02) + (usage * 0.002)) / usage;
            
            // Update bars
            const maxImpact = Math.max(disposableImpact, reusableImpact * 5); // Scale for visualization
            document.getElementById('maxValue').textContent = maxImpact.toFixed(1) + " kg CO₂";
            
            document.getElementById('disposableBar').style.height = `${(disposableImpact / maxImpact) * 100}%`;
            document.getElementById('reusableBar').style.height = `${(reusableImpact / maxImpact) * 100}%`;
            
            document.getElementById('disposableValue').textContent = disposableImpact.toFixed(2) + " kg CO₂";
            document.getElementById('reusableValue').textContent = reusableImpact.toFixed(2) + " kg CO₂";
        }
        
        function submitQuiz() {
            alert("Quiz soumis ! Dans une version complète, vos réponses seraient évaluées et vous obtiendriez un score.");
            showSlide(1); // Return to first slide
        }
        
        // Initialize simulator
        document.addEventListener('DOMContentLoaded', function() {
            updateSimulator();
            document.querySelectorAll('.nav-btn')[0].classList.add('bg-blue-100');
        });
    </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=Cremet/acv" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>