File size: 142,914 Bytes
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57abae0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
fe704ea
 
a0be42c
fe704ea
 
 
 
a0be42c
fe704ea
 
 
 
 
 
5a4baf5
a0be42c
fe704ea
5a4baf5
a0be42c
fe704ea
a0be42c
fe704ea
 
a0be42c
fe704ea
cbfc47f
 
3caca63
 
fe704ea
 
5a4baf5
3caca63
5a4baf5
3caca63
 
5a4baf5
714a212
5a4baf5
 
 
3caca63
fe704ea
 
5a4baf5
3caca63
 
5a4baf5
fe704ea
 
5a4baf5
3caca63
fe704ea
 
3caca63
 
5a4baf5
163b40c
 
 
 
 
3caca63
fe704ea
 
5a4baf5
3caca63
5a4baf5
 
 
3caca63
 
5a4baf5
 
 
 
 
 
 
3caca63
a0be42c
163b40c
a0be42c
3caca63
fe704ea
 
5a4baf5
a0be42c
163b40c
a0be42c
fe704ea
 
163b40c
 
3caca63
 
163b40c
 
 
 
 
a0be42c
 
fe704ea
a0be42c
fe704ea
a0be42c
 
 
 
 
 
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
 
 
 
fe704ea
 
a0be42c
 
 
 
 
fe704ea
 
a0be42c
 
 
fe704ea
163b40c
 
 
3caca63
 
163b40c
 
 
 
 
3caca63
 
 
 
163b40c
 
3caca63
163b40c
 
 
 
 
 
3caca63
163b40c
 
 
 
3caca63
163b40c
 
 
 
 
 
 
3caca63
163b40c
3caca63
163b40c
 
 
 
 
 
 
3caca63
163b40c
 
 
 
 
 
 
 
 
 
3caca63
163b40c
 
 
3caca63
163b40c
 
 
 
 
 
a0be42c
 
fe704ea
a0be42c
fe704ea
a0be42c
 
fe704ea
 
a0be42c
 
 
fe704ea
 
a0be42c
 
fe704ea
a0be42c
 
 
 
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
fe704ea
 
a0be42c
 
fe704ea
 
a0be42c
 
fe704ea
 
 
 
 
 
a0be42c
 
fe704ea
 
 
 
 
a0be42c
 
 
fe704ea
 
 
 
a0be42c
fe704ea
a0be42c
 
 
fe704ea
 
 
a0be42c
fe704ea
 
a0be42c
 
 
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
 
 
 
 
fe704ea
 
 
875038a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
 
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
 
fe704ea
a0be42c
fe704ea
 
a0be42c
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
 
fe704ea
 
 
 
 
 
a0be42c
fe704ea
 
a0be42c
 
 
 
fe704ea
 
3caca63
a0be42c
fe704ea
14a3951
a0be42c
fe704ea
14a3951
 
5c3e8a4
14a3951
5c3e8a4
fe704ea
 
a0be42c
fe704ea
14a3951
 
fe704ea
 
a0be42c
fe704ea
 
e40eb75
5c3e8a4
 
 
 
14a3951
 
e40eb75
 
a0be42c
14a3951
 
 
fe704ea
 
a0be42c
fe704ea
 
14a3951
 
5c3e8a4
14a3951
 
 
fe704ea
 
a0be42c
14a3951
 
 
 
 
fe704ea
 
a0be42c
 
 
 
 
 
 
 
 
 
fe704ea
 
a0be42c
 
fe704ea
 
a0be42c
fe704ea
 
a0be42c
 
fe704ea
a0be42c
 
 
fe704ea
 
a0be42c
 
 
fe704ea
 
 
a0be42c
 
 
fe704ea
 
a0be42c
 
 
fe704ea
a0be42c
fe704ea
 
 
f852379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
fe704ea
 
cbc515a
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538ded2
fe704ea
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
5a4baf5
 
3caca63
 
5a4baf5
163b40c
 
3caca63
163b40c
 
875038a
 
 
 
5c3e8a4
 
 
 
 
 
 
57abae0
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3caca63
 
 
5a4baf5
 
 
3caca63
 
5a4baf5
 
 
3caca63
 
 
5a4baf5
 
 
3caca63
 
cbc515a
 
 
163b40c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
5c3e8a4
 
 
 
 
 
 
cbc515a
5c3e8a4
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875038a
 
 
 
57abae0
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
3caca63
163b40c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
3caca63
 
 
163b40c
 
 
3caca63
163b40c
 
 
3caca63
 
 
cbc515a
 
 
 
 
 
 
875038a
 
 
 
5c3e8a4
 
 
 
 
 
 
 
 
 
f852379
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57abae0
 
 
 
fe704ea
 
 
 
 
 
 
 
cbc515a
 
 
fe704ea
 
57abae0
 
 
 
 
74b2a2e
57abae0
 
 
e936654
57abae0
e936654
57abae0
 
f852379
57abae0
 
 
 
 
 
a474026
57abae0
b62ff58
57abae0
ca808b9
57abae0
 
 
a3cd96e
57abae0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f852379
57abae0
 
 
 
 
 
 
 
126cc66
57abae0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
feeef57
57abae0
 
 
 
 
 
 
 
 
 
f852379
57abae0
 
 
 
 
 
 
 
 
 
6fa65f6
 
 
74b2a2e
6fa65f6
 
 
 
 
 
 
57abae0
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126cc66
fe704ea
 
126cc66
 
fe704ea
 
 
 
 
 
126cc66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126cc66
 
 
 
 
 
 
 
 
 
 
 
d219a3f
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
57abae0
fe704ea
 
 
 
 
 
 
 
c970835
fe704ea
a0be42c
 
 
fe704ea
 
a0be42c
 
 
 
fe704ea
 
a0be42c
 
fe704ea
 
a0be42c
 
fe704ea
 
 
 
c970835
fe704ea
163b40c
a0be42c
 
fe704ea
 
3caca63
fe704ea
a0be42c
3caca63
74b2a2e
 
 
 
3caca63
a0be42c
 
1e70707
fe704ea
a0be42c
 
 
 
 
fe704ea
 
 
 
 
f852379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14a3951
a0be42c
7a4d0d1
fe704ea
875038a
 
 
 
 
 
 
 
 
 
99ad450
875038a
fe704ea
875038a
 
14a3951
875038a
 
 
 
14a3951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875038a
 
fe704ea
 
 
a0be42c
7bb0d4b
875038a
 
14a3951
31237da
14a3951
875038a
cbfc47f
14a3951
 
 
 
 
 
4c1393d
cbfc47f
14a3951
 
4c1393d
cbfc47f
14a3951
be759b5
14a3951
4c1393d
cbfc47f
126cc66
14a3951
4c1393d
cbfc47f
14a3951
 
 
cbfc47f
14a3951
 
4c1393d
cbfc47f
14a3951
a0b7e63
a0be42c
875038a
14a3951
 
 
875038a
 
fe704ea
 
 
f852379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
57abae0
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875038a
fe704ea
 
 
 
 
 
 
 
 
adc5fc7
fe704ea
 
 
 
 
 
 
 
 
f852379
fe704ea
 
 
 
 
 
 
 
 
f852379
fe704ea
 
 
 
 
 
 
 
 
adc5fc7
fe704ea
 
 
 
 
 
cbc515a
 
fe704ea
 
cbc515a
fe704ea
 
 
 
 
 
 
d079865
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
57abae0
cbc515a
714a212
cbc515a
5c3e8a4
 
 
d85c91a
538ded2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54b214b
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
cd7e769
cbc515a
 
 
 
 
 
cd7e769
cbc515a
 
 
 
 
 
 
fe704ea
 
 
 
 
 
 
 
 
f852379
 
 
 
 
 
fe704ea
 
 
6138132
fe704ea
6138132
fe704ea
 
6138132
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3caca63
 
 
cbfc47f
7bb0d4b
 
 
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
 
 
7bb0d4b
 
a0be42c
 
 
 
4c1393d
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
 
cbfc47f
 
 
 
a0be42c
 
 
e116210
cbfc47f
 
 
 
0377966
 
cbfc47f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
 
cbfc47f
eef2ea4
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
241fcb3
 
eef2ea4
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
 
5a4baf5
eef2ea4
 
 
 
76fec6a
eef2ea4
 
 
5a4baf5
eef2ea4
 
 
 
76fec6a
eef2ea4
 
 
5a4baf5
eef2ea4
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
b3ec1ee
eef2ea4
 
 
 
 
 
76fec6a
eef2ea4
 
 
 
 
 
 
 
76fec6a
eef2ea4
 
 
241fcb3
eef2ea4
 
 
 
76fec6a
eef2ea4
 
 
 
 
0377966
 
cbfc47f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eef2ea4
 
f852379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
f852379
fe704ea
 
 
 
 
 
 
cbc515a
 
 
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126cc66
fe704ea
 
 
 
 
 
 
 
 
126cc66
 
fe704ea
 
 
 
 
 
 
 
 
57abae0
 
 
 
 
 
fe704ea
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
7bb0d4b
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
7bb0d4b
cbc515a
 
 
7bb0d4b
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
7bb0d4b
cbfc47f
7bb0d4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
 
 
 
 
 
7bb0d4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c970835
57abae0
cbfc47f
7bb0d4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
 
 
7bb0d4b
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
 
cbc515a
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
cbc515a
 
 
fe704ea
cbc515a
 
 
 
 
 
 
 
 
fe704ea
cbc515a
 
 
fe704ea
 
6138132
fe704ea
 
f852379
fe704ea
 
 
 
 
 
 
 
a0be42c
fe704ea
a0be42c
14a3951
a0be42c
99ad450
 
 
 
 
 
a0be42c
fe704ea
cbc515a
 
 
 
fe704ea
 
cbc515a
 
f852379
 
 
fe704ea
 
a0be42c
 
 
 
 
 
 
 
cbc515a
 
 
 
 
5a4baf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
 
5a4baf5
a0be42c
5a4baf5
 
a0be42c
5a4baf5
 
 
 
 
a0be42c
 
163b40c
5a4baf5
 
 
a0be42c
 
5a4baf5
a0be42c
5a4baf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163b40c
 
 
 
5a4baf5
 
 
 
 
a0be42c
 
 
 
fe704ea
 
a0be42c
fe704ea
cbc515a
 
 
 
 
fe704ea
 
 
 
 
 
 
 
520b5e6
fe704ea
 
a0be42c
 
6138132
a0be42c
 
57abae0
70c00b4
654057c
a0be42c
 
eec72f0
6138132
a0be42c
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
a0be42c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
14a3951
fe704ea
 
 
 
538ded2
 
fe704ea
 
 
 
 
 
 
f852379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
f852379
fe704ea
538ded2
fe704ea
 
14a3951
fe704ea
538ded2
fe704ea
14a3951
fe704ea
a0be42c
fe704ea
 
 
14a3951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
 
 
14a3951
 
fe704ea
 
 
 
 
 
f852379
fe704ea
538ded2
fe704ea
 
a0be42c
fe704ea
3c2da2c
fe704ea
 
a0be42c
cbfc47f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
 
 
 
 
f852379
 
 
 
 
a0be42c
cbc515a
 
 
3c2da2c
cbc515a
 
 
a0be42c
 
 
cbfc47f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
 
 
 
 
 
 
 
 
 
 
fe704ea
 
a0be42c
fe704ea
 
cbfc47f
 
 
 
 
 
 
 
 
 
 
 
 
 
7bb0d4b
cbfc47f
 
 
 
 
7bb0d4b
cbfc47f
 
 
 
7bb0d4b
cbfc47f
7bb0d4b
 
cbfc47f
 
 
 
 
fe704ea
cbfc47f
fe704ea
 
 
 
 
a0be42c
f852379
a0be42c
 
 
 
 
 
 
 
fe704ea
 
a0be42c
 
 
cbfc47f
a0be42c
 
 
 
 
 
 
 
 
1a9b591
cbfc47f
1a9b591
 
 
 
 
 
 
 
 
fe704ea
a0be42c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
a0be42c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1a9b591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
fe704ea
 
a0be42c
 
cbc515a
 
 
 
 
 
 
 
a0be42c
 
 
cbc515a
a0be42c
fe704ea
a0be42c
 
 
 
fe704ea
a0be42c
 
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0be42c
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
fe704ea
 
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
fe704ea
 
cbfc47f
fe704ea
 
cbfc47f
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126cc66
fe704ea
 
 
 
 
 
126cc66
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eef2ea4
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbfc47f
fe704ea
 
 
 
3caca63
fe704ea
 
3caca63
 
 
 
 
fe704ea
3caca63
 
 
 
 
 
 
fe704ea
 
 
 
cbc515a
 
 
3caca63
 
cbc515a
 
3caca63
 
cbc515a
3caca63
 
 
cbfc47f
3caca63
 
 
 
 
 
 
 
cbc515a
3caca63
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
3caca63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
fe704ea
 
 
 
 
 
cbc515a
 
fe704ea
cbc515a
 
 
fe704ea
cbc515a
 
 
fe704ea
cbc515a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
 
cbc515a
6138132
 
cbc515a
fe704ea
 
 
 
 
 
 
 
 
 
126cc66
fe704ea
126cc66
fe704ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbc515a
 
 
 
 
 
fe704ea
 
 
a0be42c
cbc515a
 
 
 
a0be42c
fe704ea
cbc515a
 
14a3951
fe704ea
cbfc47f
a0be42c
fe704ea
 
 
 
 
 
cbc515a
f852379
 
 
 
 
 
fe704ea
 
f852379
02237c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe704ea
14a3951
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
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard Réflexif – ReflAgent</title>

<style>

/* ================= STYLES DE BASE ================= */

body { 

  font-family: 'Segoe UI', Arial, sans-serif; 

  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

  margin: 0;

  padding: 20px;

  color: #333;

  min-height: 100vh;

}



h2, h3, h4 { 

  color: #1976D2;

  margin-top: 0;

}



h2 {

  background: linear-gradient(90deg, #1976D2, #2196F3);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  padding: 10px 0;

  border-bottom: 2px solid #e3f2fd;

  margin-bottom: 25px;

}



h3 {

  background: #e3f2fd;

  padding: 12px 15px;

  border-radius: 8px;

  margin: 25px 0 15px;

  display: flex;

  align-items: center;

  gap: 10px;

}



h3::before {

  content: '';

  display: inline-block;

  width: 6px;

  height: 24px;

  background: #1976D2;

  border-radius: 3px;

}



#reflection {

  background: white;

  padding: 30px;

  border-radius: 20px;

  max-width: 1400px;

  margin: auto;

  box-shadow: 0 10px 40px rgba(0,0,0,0.08);

  border: 1px solid #e0e0e0;

}



/* ================= SYSTEME D'ONGLETS ================= */

.tabs-container {

  margin-bottom: 30px;

}



.tabs {

  display: flex;

  background: #f8f9fa;

  border-radius: 12px;

  padding: 5px;

  margin-bottom: 20px;

  border: 1px solid #e0e0e0;

  flex-wrap: wrap;

}



.tab-btn {

  flex: 1;

  padding: 15px 20px;

  border: none;

  background: transparent;

  color: #666;

  font-weight: 600;

  font-size: 16px;

  cursor: pointer;

  border-radius: 8px;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-width: 200px;

}



.tab-btn:hover {

  background: rgba(25, 118, 210, 0.1);

  color: #1976D2;

}



.tab-btn.active {

  background: #1976D2;

  color: white;

  box-shadow: 0 3px 8px rgba(25, 118, 210, 0.2);

}



.tab-content {

  display: none;

  animation: fadeIn 0.5s ease;

}



.tab-content.active {

  display: block;

}



/* ================= NOUVEL ONGLET ACCUEIL ================= */

#tab-welcome {

  padding: 20px;

}



.welcome-header {

  text-align: center;

  margin-bottom: 40px;

  padding-bottom: 30px;

  border-bottom: 2px solid #e3f2fd;

}



.welcome-title {

  font-size: 2.2em;

  color: #1976D2;

  margin-bottom: 15px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

}



.welcome-subtitle {

  font-size: 1.2em;

  color: #666;

  max-width: 800px;

  margin: 0 auto 25px;

  line-height: 1.6;

}



.welcome-card {

  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);

  border-radius: 15px;

  padding: 30px;

  margin-bottom: 30px;

  border-left: 6px solid #1976D2;

  box-shadow: 0 5px 15px rgba(0,0,0,0.05);

}



.welcome-card h4 {

  color: #1976D2;

  margin-top: 0;

  margin-bottom: 20px;

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 1.4em;

}



.welcome-card p {

  line-height: 1.7;

  color: #333;

  margin-bottom: 15px;

}



.welcome-card ul {

  padding-left: 20px;

  margin: 15px 0;

}



.welcome-card li {

  margin-bottom: 10px;

  line-height: 1.6;

  color: #444;

}



.welcome-features {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 20px;

  margin: 30px 0;

}



.feature-item {

  background: white;

  border-radius: 12px;

  padding: 25px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  border-top: 4px solid #1976D2;

  transition: transform 0.3s;

}



.feature-item:hover {

  transform: translateY(-5px);

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);

}



.feature-icon {

  font-size: 32px;

  margin-bottom: 15px;

  color: #1976D2;

}



.feature-title {

  font-size: 1.2em;

  font-weight: 600;

  color: #1976D2;

  margin-bottom: 12px;

}



.feature-description {

  color: #555;

  line-height: 1.6;

  font-size: 0.95em;

}



.how-to-start {

  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);

  border-radius: 15px;

  padding: 30px;

  margin-top: 40px;

  border-left: 6px solid #43A047;

}



.how-to-start h4 {

  color: #2E7D32;

}



.step-list {

  counter-reset: step-counter;

  margin: 20px 0;

}



.step-item {

  counter-increment: step-counter;

  margin-bottom: 20px;

  padding-left: 50px;

  position: relative;

}



.step-item::before {

  content: counter(step-counter);

  position: absolute;

  left: 0;

  top: 0;

  background: #1976D2;

  color: white;

  width: 32px;

  height: 32px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: bold;

}



.step-item strong {

  color: #1976D2;

  display: block;

  margin-bottom: 5px;

}



/* ================= NAVIGATION ================= */

.nav {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 30px;

  background: linear-gradient(90deg, #e3f2fd, #f3e5f5);

  padding: 15px 25px;

  border-radius: 12px;

  border: 1px solid #bbdefb;

  flex-wrap: wrap;

}



#scenarioTitle {

  font-size: 1.4em;

  color: #333;

  text-align: center;

  flex-grow: 1;

  margin: 0 20px;

  word-break: break-word;

}



button {

  background: linear-gradient(135deg, #1976D2, #2196F3);

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 10px;

  cursor: pointer;

  font-weight: 600;

  font-size: 15px;

  transition: all 0.3s ease;

  box-shadow: 0 3px 8px rgba(25, 118, 210, 0.2);

  display: flex;

  align-items: center;

  gap: 8px;

  white-space: nowrap;

}



button:hover:not(:disabled) {

  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);

}



button:active:not(:disabled) {

  transform: translateY(0);

}



button:disabled {

  opacity: 0.5;

  cursor: not-allowed;

  background: #b0bec5;

}



/* ================= ONGLET 1: ÉVALUATEUR GDPR ================= */

#tab-evaluator .evaluator-info {

  background: linear-gradient(135deg, #fff3e0, #ffe0b2);

  padding: 25px;

  border-radius: 15px;

  border-left: 6px solid #ff9800;

  margin: 20px 0;

}



#tab-evaluator .evaluator-info h4 {

  color: #ff9800;

  margin-top: 0;

  margin-bottom: 20px;

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 20px;

}



.evaluator-field {

  margin-bottom: 20px;

  background: white;

  padding: 20px;

  border-radius: 10px;

  border: 1px solid #FFE0B2;

}



.evaluator-field label {

  display: block;

  margin-bottom: 12px;

  color: #333;

  font-weight: 600;

  font-size: 15px;

}



.evaluator-field input[type="text"],

.evaluator-field select {

  width: 100%;

  padding: 14px 18px;

  border: 2px solid #e0e0e0;

  border-radius: 8px;

  font-size: 15px;

  transition: all 0.3s;

  box-sizing: border-box;

  background: white;

}



.evaluator-field input[type="text"]:focus,

.evaluator-field select:focus {

  outline: none;

  border-color: #1976D2;

  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);

}



.evaluator-field input:disabled,

.evaluator-field select:disabled {

  background: #f5f5f5;

  color: #999;

  cursor: not-allowed;

}



.evaluator-field small {

  display: block;

  margin-top: 8px;

  color: #666;

  font-size: 13px;

  font-style: italic;

}



/* Style pour les boutons radio GDPR */

.gdpr-options {

  display: flex;

  gap: 30px;

  margin-top: 10px;

  flex-wrap: wrap;

}



.gdpr-option {

  display: flex;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  padding: 12px 20px;

  border-radius: 8px;

  background: white;

  border: 2px solid #e0e0e0;

  transition: all 0.3s;

  flex: 1;

  min-width: 250px;

}



.gdpr-option:hover {

  border-color: #1976D2;

  background: #f0f7ff;

}



.gdpr-option input[type="radio"] {

  width: 20px;

  height: 20px;

  cursor: pointer;

}



.gdpr-option span {

  font-size: 15px;

  font-weight: 500;

  color: #333;

}



#anonymousMessage {

  background: #E3F2FD;

  padding: 18px;

  border-radius: 10px;

  margin-top: 20px;

  border-left: 4px solid #1976D2;

  animation: fadeIn 0.5s ease;

}



#anonymousMessage p {

  margin: 0;

  color: #1976D2;

  font-size: 14px;

  line-height: 1.5;

}



/* ================= ONGLET 2: DASHBOARD ÉTUDIANT COMPACT ================= */

#tab-dashboard .manifest-item {

  background: linear-gradient(135deg, #f9fbe7, #f0f4c3);

  padding: 15px;

  border-radius: 12px;

  border-left: 6px solid #cddc39;

  margin: 15px 0;

  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

  font-size: 14px;

}



.manifest-item b {

  color: #689f38;

}



/* ================= COMPÉTENCES EN MATRICE 3x4 ================= */

#competence-bars {

  background: white;

  padding: 20px;

  border-radius: 12px;

  border: 1px solid #e0e0e0;

  margin: 15px 0;

}



.compact-competences-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  grid-template-rows: repeat(3, auto);

  gap: 10px;

  margin: 10px 0;

}



.compact-competence-matrix-item {

  padding: 1px;

  background: linear-gradient(135deg, #f8f9fa, #e9ecef);

  border-radius: 1.5px;

  border-left: 1px solid #1976D2;

  transition: all 0.3s ease;

  height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 30px;

}



.compact-competence-matrix-item:hover {

  transform: translateY(-1px);

  box-shadow: 0 1px 6px rgba(0,0,0,0.05);

  background: linear-gradient(135deg, #e3f2fd, #bbdefb);

}



.compact-matrix-competence-label {

  font-size: 12px;

  font-weight: 600;

  color: #333;

  margin-bottom: 5px;

  line-height: 1.2;

  flex-grow: 1;

  overflow: hidden;

  text-overflow: ellipsis;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  max-height: 30px;

}



.compact-matrix-competence-value {

  font-size: 12px;

  font-weight: bold;

  color: #1976D2;

  text-align: center;

  margin: 3px 0;

  min-height: 15px;

}



.compact-matrix-competence-value.high { color: #43A047; }

.compact-matrix-competence-value.medium { color: #FB8C00; }

.compact-matrix-competence-value.low { color: #E53935; }



.compact-matrix-competence-bar {

  height: 3px;

  background: #e0e0e0;

  border-radius: 1px;

  overflow: hidden;

  margin: 2px 0;

}



.compact-matrix-competence-fill {

  height: 100%;

  border-radius: 1px;

  transition: width 0.5s ease;

}



/* LÉGENDE 0% - 100% RÉDUITE */

.compact-competence-matrix-item > div:last-child {

  font-size: 7px;

  margin-top: 1px;

  display: flex;

  justify-content: space-between;

  color: #999;

}



/* ================= LÉGENDE RADAR COMPACTE ================= */

.compact-radar-legend {

  display: flex;

  justify-content: center;

  gap: 15px;

  margin: 15px 0;

  flex-wrap: wrap;

  padding: 10px;

  background: white;

  border-radius: 8px;

  border: 1px solid #e0e0e0;

}



.compact-legend-item {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 6px 10px;

  background: #f8f9fa;

  border-radius: 6px;

  font-size: 12px;

}



.compact-legend-color {

  width: 16px;

  height: 16px;

  border-radius: 4px;

  border: 2px solid white;

}



.compact-legend-low { background: linear-gradient(135deg, #e53935, #f44336); }

.compact-legend-medium { background: linear-gradient(135deg, #fb8c00, #ff9800); }

.compact-legend-high { background: linear-gradient(135deg, #43a047, #4caf50); }



/* ================= MÉTRIQUES RADAR COMPACTES - 8 INDICATEURS EN 1 LIGNE ================= */

.compact-radar-metrics-grid {

  display: grid;

  grid-template-columns: repeat(8, 1fr);

  gap: 8px;

  margin: 15px 0;

}



.compact-metric-card {

  background: white;

  border-radius: 8px;

  padding: 10px;

  box-shadow: 0 2px 5px rgba(0,0,0,0.06);

  border-left: 3px solid #1976D2;

  transition: transform 0.2s;

  text-align: center;

  min-height: 90px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

}



.compact-metric-card:hover {

  transform: translateY(-2px);

  box-shadow: 0 3px 8px rgba(0,0,0,0.1);

}



.compact-metric-icon {

  font-size: 18px;

  margin-bottom: 5px;

}



.compact-metric-name {

  font-weight: 600;

  color: #333;

  margin-bottom: 3px;

  font-size: 11px;

  line-height: 1.2;

  height: 26px;

  overflow: hidden;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

}



.compact-metric-value {

  font-size: 16px;

  font-weight: bold;

  color: #1976D2;

  margin: 5px 0;

}



.compact-metric-value.high { color: #43A047; }

.compact-metric-value.medium { color: #FB8C00; }

.compact-metric-value.low { color: #E53935; }



.compact-metric-description {

  font-size: 10px;

  color: #666;

  margin-top: 3px;

  line-height: 1.2;

  height: 24px;

  overflow: hidden;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

}



/* ================= RADAR COMPACT ================= */

#radar-container {

  background: white;

  padding: 15px;

  border-radius: 12px;

  border: 1px solid #e0e0e0;

  margin: 15px 0;

}



#radar {

  max-width: 100%;

  height: auto;

}



/* ================= MESSAGE BOT RADAR COMPACT ================= */

.compact-radar-bot-message {

  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);

  padding: 15px;

  border-radius: 10px;

  border-left: 4px solid #1976D2;

  margin: 15px 0;

}



.compact-radar-bot-header {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 10px;

}



.compact-radar-bot-icon {

  font-size: 20px;

  background: #1976D2;

  color: white;

  width: 40px;

  height: 40px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

}



.compact-radar-bot-title {

  font-size: 16px;

  font-weight: 600;

  color: #1976D2;

  margin: 0;

}



.compact-radar-bot-content {

  font-size: 14px;

  line-height: 1.5;

  color: #333;

  margin: 0;

}



.compact-radar-bot-insights {

  background: white;

  padding: 10px;

  border-radius: 8px;

  margin-top: 10px;

  border: 1px solid #E3F2FD;

}



.compact-radar-insight-item {

  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 6px;

  padding: 6px 10px;

  border-radius: 6px;

  background: #F5F5F5;

  font-size: 12px;

}



/* ================= HEATMAP COMPACT ================= */

.compact-heatmap-and-indicators {

  background: white;

  padding: 15px;

  border-radius: 12px;

  border: 1px solid #e0e0e0;

  margin: 15px 0;

}



.compact-heatmap-container {

  display: flex;

  gap: 20px;

  flex-wrap: wrap;

  margin-bottom: 15px;

}



.compact-heatmap-left {

  flex: 1;

  min-width: 300px;

}



.compact-heatmap-right {

  flex: 1;

  min-width: 300px;

}



.compact-heatmap-analysis {

  margin-bottom: 15px;

}



.compact-analysis-controls {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 15px;

  padding: 10px;

  background: #f8f9fa;

  border-radius: 8px;

}



.compact-analysis-controls label {

  font-weight: 600;

  color: #1976D2;

  font-size: 14px;

}



.compact-analysis-controls select {

  padding: 8px 12px;

  border-radius: 6px;

  border: 2px solid #1976D2;

  background: white;

  color: #333;

  font-weight: 500;

  cursor: pointer;

  flex-grow: 1;

  font-size: 14px;

}



#heatmap {

  max-width: 100%;

  height: auto;

  border-radius: 8px;

}



/* ================= LÉGENDE HEATMAP COMPACTE ================= */

.compact-enriched-legend {

  background: white;

  padding: 15px;

  border-radius: 10px;

  border: 1px solid #e0e0e0;

  margin: 10px 0;

  height: auto;

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

}



.compact-legend-section h5 {

  color: #1976D2;

  margin: 0 0 10px 0;

  font-size: 14px;

  display: flex;

  align-items: center;

  gap: 6px;

}



.compact-legend-section {

  margin: 0;

  padding: 0;

  display: flex;

  flex-direction: column;

  gap: 5px;

  width: 100%;

}



.compact-legend-grid {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

}



.compact-legend-item-small {

  display: flex;

  align-items: center;

  gap: 5px;

  font-size: 11px;

  white-space: nowrap;

  padding: 4px 8px;

  background: #f8f9fa;

  border-radius: 4px;

}



.compact-legend-color-small {

  width: 14px;

  height: 14px;

  border-radius: 3px;

  border: 1px solid white;

  box-shadow: 0 1px 2px rgba(0,0,0,0.1);

}



/* ================= INDICATEURS DE PERSÉVÉRANCE COMPACTS ================= */

.compact-persistence-analysis {

  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);

  padding: 15px;

  border-radius: 10px;

  border-left: 4px solid #1976D2;

  margin: 15px 0;

}



.compact-persistence-indicators {

  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 10px;

}



.compact-indicator {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 8px 10px;

  background: white;

  border-radius: 6px;

  font-size: 12px;

  border-left: 3px solid #1976D2;

}



.compact-indicator-dot {

  width: 10px;

  height: 10px;

  border-radius: 50%;

}



.compact-persistence-text {

  font-size: 12px;

  line-height: 1.4;

}



.compact-persistence-text > div {

  margin-bottom: 6px;

  padding: 8px;

  background: white;

  border-radius: 6px;

  border-left: 3px solid #1976D2;

}



/* ================= AUDIO NARRATION STYLES PROFESSIONNELS RÉDUITS ================= */

.audio-narration-compact {

  background: #f8f9fa;

  border-radius: 8px;

  margin: 8px 0;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 8px 15px;

  border: 1px solid #e9ecef;

}



.audio-narration-compact .audio-icon {

  font-size: 18px;

  color: #1976D2;

  display: flex;

  align-items: center;

  gap: 6px;

}



.audio-narration-compact .audio-icon span {

  font-size: 12px;

  font-weight: 500;

  color: #495057;

}



.audio-narration-compact .audio-controls {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

}



.audio-narration-compact .audio-btn {

  background: #e9ecef;

  color: #495057;

  padding: 4px 10px;

  font-size: 11px;

  border-radius: 6px;

  box-shadow: none;

  font-weight: 500;

}



.audio-narration-compact .audio-btn:hover {

  background: #1976D2;

  color: white;

  transform: none;

}



.audio-narration-compact .audio-progress {

  width: 120px;

  height: 3px;

  background: #dee2e6;

  border-radius: 3px;

  overflow: hidden;

  cursor: pointer;

}



.audio-narration-compact .audio-progress-fill {

  height: 100%;

  background: #1976D2;

  width: 0%;

  transition: width 0.1s linear;

}



.audio-narration-compact .audio-time {

  font-size: 10px;

  font-family: monospace;

  color: #868e96;

}



.audio-narration-compact .audio-status {

  font-size: 10px;

  color: #6c757d;

  font-style: italic;

}



/* ================= ONGLET 3: MESSAGE RÉFLEXIF ET ÉVALUATION ================= */

#tab-evaluation #reflagent {

  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);

  padding: 25px;

  border-radius: 15px;

  border-left: 8px solid #43a047;

  margin: 25px 0;

  font-size: 16px;

  line-height: 1.6;

  position: relative;

  overflow: hidden;

  min-height: 100px;

  display: flex;

  align-items: center;

}



#tab-evaluation #reflagent::before {

  content: '🤖';

  position: absolute;

  top: 15px;

  right: 15px;

  font-size: 40px;

  opacity: 0.2;

}



/* ================= MÉTRIQUES DE CONFIANCE ================= */

#tab-evaluation hr {

  border: none;

  height: 2px;

  background: linear-gradient(90deg, #1976D2, transparent);

  margin: 40px 0;

}



.trust-item {

  margin-bottom: 20px;

  padding: 15px;

  background: #f8f9fa;

  border-radius: 12px;

  transition: transform 0.3s;

}



.trust-item:hover {

  transform: translateX(5px);

  background: #f1f3f4;

}



.trust-item b {

  display: block;

  margin-bottom: 10px;

  color: #1976D2;

  font-size: 15px;

}



.stars {

  display: flex;

  gap: 8px;

  margin: 10px 0;

}



.stars span {

  font-size: 32px;

  cursor: pointer;

  color: #e0e0e0;

  transition: all 0.2s;

  text-shadow: none;

}



.stars span.active {

  color: #ffd54f;

  text-shadow: 0 2px 4px rgba(255, 213, 79, 0.3);

}



.stars span:hover {

  transform: scale(1.2);

}



.stars span.inactive {

  color: #e0e0e0;

  text-shadow: none;

}



.stars span.inactive:hover {

  color: #ffd54f;

}



/* ================= CHAMP COMMENTAIRE ================= */

textarea {

  width: 100%;

  min-height: 120px;

  border-radius: 12px;

  padding: 15px;

  border: 2px solid #e0e0e0;

  font-family: inherit;

  font-size: 14px;

  resize: vertical;

  transition: all 0.3s;

  margin-bottom: 20px;

}



textarea:focus {

  outline: none;

  border-color: #1976D2;

  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);

}



/* ================= BARRE DE CONFIANCE ================= */

.progress-container {

  width: 100%;

  background: #f5f5f5;

  border-radius: 12px;

  height: 24px;

  margin: 8px 0 20px;

  overflow: hidden;

  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);

}



#trustBar {

  height: 100%;

  border-radius: 10px;

  color: white;

  font-size: 14px;

  text-align: center;

  line-height: 24px;

  font-weight: bold;

  transition: width 0.5s ease, background 0.5s ease;

  position: relative;

  overflow: hidden;

  width: 0%;

  background: #e0e0e0;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0 10px;

  box-sizing: border-box;

}



#trustBar::after {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(90deg, 

    transparent, 

    rgba(255,255,255,0.4), 

    transparent

  );

  animation: shimmer 2s infinite;

}



/* ================= BOUTON LECTURE CROISÉE ================= */

#crossReadersBtn {

  background: linear-gradient(135deg, #43A047, #4CAF50) !important;

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 10px;

  cursor: pointer;

  font-weight: 600;

  font-size: 15px;

  transition: all 0.3s ease;

  box-shadow: 0 3px 8px rgba(67, 160, 71, 0.2);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  width: 100%;

}



#crossReadersBtn:hover:not(:disabled) {

  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(67, 160, 71, 0.3);

  background: linear-gradient(135deg, #388E3C, #43A047) !important;

}



#crossReadersBtn:active:not(:disabled) {

  transform: translateY(0);

}



#crossReadersBtn:disabled {

  opacity: 0.5;

  cursor: not-allowed;

  background: #b0bec5 !important;

}



/* ================= MESSAGES ================= */

#saveTrustMsg {

  padding: 10px 15px;

  border-radius: 8px;

  margin: 10px 0;

  font-weight: 500;

  text-align: center;

  transition: all 0.3s;

  min-height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

}



/* ================= STATISTIQUES ================= */

.stats-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 15px;

  margin: 20px 0;

}



.stat-item {

  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);

  padding: 15px;

  border-radius: 10px;

  text-align: center;

  transition: transform 0.3s;

}



.stat-item:hover {

  transform: translateY(-3px);

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);

}



.stat-value {

  font-size: 28px;

  font-weight: bold;

  color: #1976D2;

  margin: 10px 0;

}



.stat-label {

  font-size: 13px;

  color: #666;

  font-weight: 500;

}



/* ================= ONGLET 4: EXEMPLE D'ANALYSE ================= */

#tab-example {

  padding: 20px;

}



.example-container {

  background: linear-gradient(135deg, #f3e5f5, #e1bee7);

  padding: 25px;

  border-radius: 15px;

  border-left: 6px solid #7b1fa2;

  margin-bottom: 30px;

}



.example-container h4 {

  color: #7b1fa2;

  margin-top: 0;

  display: flex;

  align-items: center;

  gap: 10px;

}



.example-analysis-box {

  background: white;

  padding: 20px;

  border-radius: 10px;

  border-left: 4px solid #7b1fa2;

  margin: 15px 0;

  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

}



.example-message {

  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);

  padding: 20px;

  border-radius: 10px;

  border-left: 6px solid #43a047;

  margin: 20px 0;

  line-height: 1.6;

  font-size: 15px;

}



.example-message::before {

  content: '🤖';

  float: left;

  margin-right: 10px;

  font-size: 24px;

}



.example-competences {

  background: #f9fbe7;

  padding: 15px;

  border-radius: 10px;

  margin: 15px 0;

}



.example-competences ul {

  margin: 10px 0;

  padding-left: 20px;

}



.example-competences li {

  margin-bottom: 8px;

  line-height: 1.4;

}



.example-metrics-table {

  width: 100%;

  border-collapse: collapse;

  margin: 20px 0;

  background: white;

  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

}



.example-metrics-table th {

  background: linear-gradient(135deg, #7b1fa2, #9c27b0);

  color: white;

  padding: 15px;

  text-align: left;

  font-weight: 600;

}



.example-metrics-table td {

  padding: 15px;

  border-bottom: 1px solid #eee;

}



.example-metrics-table tr:last-child td {

  border-bottom: none;

}



.example-metrics-table tr:hover {

  background: #f5f5f5;

}



.metric-stars {

  color: #ffd54f;

  font-size: 18px;

}



.metric-observation {

  font-size: 13px;

  line-height: 1.4;

}



.metric-observation .success {

  color: #43a047;

  font-weight: 600;

}



.metric-observation .warning {

  color: #fb8c00;

  font-weight: 600;

}



.metric-observation .error {

  color: #e53935;

  font-weight: 600;

}



.example-summary {

  background: #e3f2fd;

  padding: 20px;

  border-radius: 10px;

  margin: 20px 0;

}



.example-summary ul {

  margin: 10px 0;

  padding-left: 20px;

}



.example-summary li {

  margin-bottom: 8px;

  line-height: 1.4;

  padding-left: 5px;

}



.example-separator {

  height: 1px;

  background: linear-gradient(90deg, #7b1fa2, transparent);

  margin: 25px 0;

  border: none;

}



/* ================= ANIMATIONS ================= */

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(20px); }

  to { opacity: 1; transform: translateY(0); }

}



@keyframes slideIn {

  from { transform: translateX(100%); opacity: 0; }

  to { transform: translateX(0); opacity: 1; }

}



@keyframes slideOut {

  from { transform: translateX(0); opacity: 1; }

  to { transform: translateX(100%); opacity: 0; }

}



@keyframes pulse {

  0% { transform: scale(1); }

  50% { transform: scale(1.05); }

  100% { transform: scale(1); }

}



@keyframes spin {

  0% { transform: rotate(0deg); }

  100% { transform: rotate(360deg); }

}



@keyframes shimmer {

  0% { transform: translateX(-100%); }

  100% { transform: translateX(100%); }

}



/* ================= TOOLTIPS ================= */

.tooltip {

  position: absolute;

  background: rgba(25, 118, 210, 0.95);

  color: white;

  padding: 12px 18px;

  border-radius: 10px;

  font-size: 14px;

  pointer-events: none;

  opacity: 0;

  transition: opacity 0.3s;

  z-index: 1000;

  max-width: 300px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.2);

  border: 2px solid white;

  backdrop-filter: blur(5px);

}



.tooltip::after {

  content: '';

  position: absolute;

  top: 100%;

  left: 50%;

  margin-left: -10px;

  border-width: 10px;

  border-style: solid;

  border-color: rgba(25, 118, 210, 0.95) transparent transparent transparent;

}



/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {

  width: 10px;

}



::-webkit-scrollbar-track {

  background: #f1f1f1;

  border-radius: 5px;

}



::-webkit-scrollbar-thumb {

  background: linear-gradient(135deg, #1976D2, #2196F3);

  border-radius: 5px;

}



::-webkit-scrollbar-thumb:hover {

  background: linear-gradient(135deg, #1565c0, #1976D2);

}



/* ================= LOADING ================= */

.loading {

  display: inline-block;

  width: 20px;

  height: 20px;

  border: 3px solid #f3f3f3;

  border-top: 3px solid #1976D2;

  border-radius: 50%;

  animation: spin 1s linear infinite;

}



/* ================= NOTIFICATIONS ================= */

.notification {

  position: fixed;

  top: 20px;

  right: 20px;

  background: white;

  padding: 18px;

  border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  border-left: 6px solid #1976D2;

  z-index: 10000;

  max-width: 320px;

  animation: slideIn 0.4s ease-out;

  display: flex;

  align-items: flex-start;

  gap: 12px;

}



.notification-icon {

  font-size: 28px;

  flex-shrink: 0;

}



.notification-content {

  flex-grow: 1;

}



.notification-title {

  font-weight: bold;

  color: #1976D2;

  margin-bottom: 5px;

  font-size: 15px;

}



.notification-message {

  color: #555;

  font-size: 13px;

  line-height: 1.4;

}



.notification-close {

  background: none;

  border: none;

  color: #999;

  cursor: pointer;

  padding: 0;

  font-size: 20px;

  line-height: 1;

}



/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {

  #reflection {

    padding: 20px;

  }

  

  .tabs {

    flex-direction: column;

  }

  

  .tab-btn {

    width: 100%;

  }

  

  .compact-competences-grid {

    grid-template-columns: repeat(3, 1fr);

    grid-template-rows: repeat(5, auto);

  }

  

  .compact-radar-metrics-grid {

    grid-template-columns: repeat(4, 1fr);

    grid-template-rows: repeat(2, auto);

  }

  

  .compact-heatmap-container {

    flex-direction: column;

  }

  

  .compact-enriched-legend {

    height: auto;

    flex-direction: column;

    gap: 10px;

    padding: 12px;

  }

  

  .welcome-features {

    grid-template-columns: repeat(2, 1fr);

  }

}



@media (max-width: 768px) {

  body {

    padding: 10px;

  }

  

  .nav {

    flex-direction: column;

    gap: 15px;

    text-align: center;

  }

  

  #scenarioTitle {

    margin: 10px 0;

    font-size: 1.2em;

  }

  

  button {

    width: 100%;

    justify-content: center;

  }

  

  .gdpr-options {

    flex-direction: column;

    gap: 10px;

  }

  

  .gdpr-option {

    min-width: 100%;

  }

  

  .compact-competences-grid {

    grid-template-columns: repeat(2, 1fr);

    grid-template-rows: repeat(7, auto);

    gap: 6px;

  }

  

  .compact-competence-matrix-item {

    padding: 5px;

    min-height: 50px;

  }

  

  .compact-matrix-competence-label {

    font-size: 8px;

    -webkit-line-clamp: 2;

    max-height: 18px;

  }

  

  .compact-matrix-competence-value {

    font-size: 11px;

    min-height: 13px;

  }

  

  .compact-radar-metrics-grid {

    grid-template-columns: repeat(4, 1fr);

    grid-template-rows: repeat(2, auto);

    gap: 6px;

  }

  

  .compact-metric-card {

    min-height: 85px;

    padding: 8px;

  }

  

  .compact-metric-name {

    font-size: 10px;

    height: 24px;

  }

  

  .compact-metric-value {

    font-size: 14px;

  }

  

  .compact-metric-description {

    font-size: 9px;

    height: 22px;

  }

  

  .compact-radar-legend {

    flex-direction: column;

    align-items: center;

    gap: 8px;

  }

  

  .compact-enriched-legend {

    height: auto;

    flex-direction: column;

    gap: 8px;

    padding: 10px;

  }

  

  .compact-legend-grid {

    flex-wrap: wrap;

    justify-content: center;

  }

  

  .compact-legend-item-small {

    font-size: 8px;

  }

  

  .compact-legend-color-small {

    width: 10px;

    height: 10px;

  }

  

  .compact-analysis-controls {

    flex-direction: column;

    align-items: stretch;

  }

  

  .compact-persistence-indicators {

    flex-direction: column;

  }

  

  .stats-grid {

    grid-template-columns: repeat(2, 1fr);

  }

  

  .tab-btn {

    min-width: 100%;

  }

  

  .example-metrics-table {

    display: block;

    overflow-x: auto;

  }

  

  .compact-heatmap-container {

    flex-direction: column;

  }

  

  .welcome-features {

    grid-template-columns: 1fr;

  }

  

  .welcome-title {

    font-size: 1.8em;

    flex-direction: column;

    gap: 10px;

  }

  

  .feature-item {

    padding: 20px;

  }

}



@media (max-width: 480px) {

  .stats-grid {

    grid-template-columns: 1fr;

  }

  

  .compact-radar-metrics-grid {

    grid-template-columns: repeat(2, 1fr);

    grid-template-rows: repeat(4, auto);

    gap: 5px;

  }

  

  .compact-metric-card {

    min-height: 80px;

    padding: 6px;

  }

  

  .compact-metric-name {

    font-size: 9px;

    height: 22px;

  }

  

  .compact-metric-value {

    font-size: 13px;

  }

  

  .compact-metric-description {

    font-size: 8px;

    height: 20px;

  }

  

  .compact-competences-grid {

    grid-template-columns: 1fr;

    grid-template-rows: repeat(14, auto);

    gap: 5px;

  }

  

  .compact-competence-matrix-item {

    min-height: 45px;

  }

  

  .compact-matrix-competence-label {

    font-size: 7px;

    -webkit-line-clamp: 2;

    max-height: 16px;

  }

  

  .example-metrics-table th,

  .example-metrics-table td {

    padding: 10px 8px;

    font-size: 13px;

  }

  

  .compact-heatmap-container {

    flex-direction: column;

  }

  

  .compact-enriched-legend {

    height: auto;

    padding: 8px;

  }

  

  .compact-legend-item-small {

    font-size: 7px;

    gap: 2px;

  }

  

  .audio-narration-compact {

    flex-wrap: wrap;

    justify-content: center;

  }

}

</style>
</head>

<body>

<div id="reflection">

  <!-- NAVIGATION SCÉNARIOS -->
  <div class="nav">
    <button id="prevScenario">⬅️ Scénario précédent</button>
    <h3 id="scenarioTitle">Chargement...</h3>
    <button id="nextScenario">Scénario suivant ➡️</button>
  </div>

  <!-- SYSTEME D'ONGLETS -->
  <div class="tabs-container">
    <div class="tabs">
      <button class="tab-btn active" data-tab="tab-welcome">
        <span>🏠</span> Accueil
      </button>
      <button class="tab-btn" data-tab="tab-evaluator">
        <span>👤</span> Évaluateur (RGPD)
      </button>
      <button class="tab-btn" data-tab="tab-dashboard">
        <span>📊</span> Dashboard Étudiant
      </button>
      <button class="tab-btn" data-tab="tab-evaluation">
        <span>🤖</span> Message Réflexif & Évaluation
      </button>
      <button class="tab-btn" data-tab="tab-example">
        <span>📋</span> Exemple d'Analyse
      </button>
    </div>

    <!-- NOUVEL ONGLET 1: ACCUEIL ET PRÉSENTATION -->
    <div id="tab-welcome" class="tab-content active">
      <div class="welcome-header">
        <h1 class="welcome-title">🎓 Dashboard Réflexif – ReflAgent</h1>
        <p class="welcome-subtitle">
Bienvenue sur notre outil d'évaluation qualitative des messages auto-réflexifs générés par l'IA et adaptés aux profils des apprenants.        </p>
      </div>
      
      <div class="welcome-card">
        <h4><span>🎯</span> Objectif de l'outil</h4>
        <p>
          Cet outil permet d'<strong>évaluer la qualité des messages auto-réflexifs</strong> générés par <strong>ReflAgent</strong>, 
          un tuteur pédagogique personnalisé basé sur l'IA, conçu pour favoriser l'apprentissage auto-régulé (SRL) 
          en renforçant la conscience métacognitive par un accompagnement réflexif.
          Les messages réflexifs ciblent des dimensions clés, notamment la sensibilisation aux risques d'inactivité et d'échec, le degré d'activité et d'implication, ainsi que la stimulation de l'engagement et de la motivation. 
        </p>
        
        <h4 style="margin-top: 25px;"><span>🤖</span> Qu'est-ce que ReflAgent ?</h4>
        <p>
          <strong>ReflAgent</strong> est un compagnon tutoriel IA sensible aux profils, conçu pour favoriser 
          l'apprentissage auto-régulé (SRL) en améliorant la conscience métacognitive grâce à un soutien réflexif.
          Les messages auto-réflexifs sont personnalisés en fonction des profils des apprenants, tels que les étudiants en difficulté, inactifs, en progression ou à risque.
        </p>
    
        <p>
         Nous vous invitons à évaluer les messages réflexifs selon cinq métriques, en utilisant une échelle de Likert allant de 1 (très faible) à 5 (très élevée).
        </p>
      </div>
      
      <h3>📋 Présentation des volets de l'outil</h3>
      
      <div class="welcome-features">
        <div class="feature-item">
          <div class="feature-icon">👤</div>
          <div class="feature-title">Évaluateur (RGPD)</div>
          <div class="feature-description">
            <strong>Authentification et consentement RGPD</strong><br>
            Définissez votre profil d'évaluateur, votre niveau d'expertise et donnez votre consentement 
            pour le traitement de vos données personnelles selon le règlement européen.
          </div>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">📊</div>
          <div class="feature-title">Dashboard Étudiant</div>
          <div class="feature-description">
            <strong>Visualisation complète du profil d'apprentissage</strong><br>
            Explorez le manifeste de l'étudiant, ses compétences et son engagement à l'aide d'un radar, ainsi que sa persistance et la gestion de l'effort via une heatmap temporelle intégrant des indicateurs de persévérance.
          </div>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">🤖</div>
          <div class="feature-title">Message Réflexif & Évaluation</div>
          <div class="feature-description">
            <strong>Évaluation des messages générés par ReflAgent</strong><br>
            Analysez les messages auto-réflexifs et évaluez leur qualité selon 5 métriques: 
            Authenticité Réflexive, Alignement Empathique, Encouragement Sensible au Risque, 
            Support aux Défis Mentaux et Support Métacognitif.
          </div>
        </div>
        
        <div class="feature-item">
          <div class="feature-icon">📋</div>
          <div class="feature-title">Exemple d'Analyse</div>
          <div class="feature-description">
            <strong>Cas d'étude avec évaluation détaillée</strong><br>
            Découvrez un exemple concret d'analyse d'un étudiant en difficulté, avec le message réflexif 
            généré, son évaluation métrique et des observations pédagogiques détaillées.
          </div>
        </div>
      </div>
      
      <div class="how-to-start">
        <h4><span>🚀</span> Comment commencer ?</h4>
        <div class="step-list">
          <div class="step-item">
            <strong>Configurez votre profil d'évaluateur</strong>
            <p>Accédez à l'onglet "Évaluateur (RGPD)" pour définir vos informations et consentements.</p>
          </div>
          <div class="step-item">
            <strong>Explorez les profils d'apprenants</strong>
            <p>Naviguez entre les 14 scénarios d'apprenants différents via les boutons de navigation.</p>
          </div>
          <div class="step-item">
            <strong>Analysez les messages réflexifs</strong>
            <p>Évaluez la qualité des messages générés par ReflAgent dans l'onglet "Message Réflexif & Évaluation".</p>
          </div>
          <div class="step-item">
            <strong>Explorer l'exemple d'analyse</strong>
            <p>Consultez l'onglet "Exemple d'Analyse" pour comprendre la méthodologie d'évaluation.</p>
          </div>
        </div>
        
        <p style="margin-top: 20px; font-style: italic; color: #2E7D32;">
          <strong>Conseil :</strong> Commencez par explorer l'exemple d'analyse pour comprendre 
          comment évaluer les messages avant de procéder à vos propres évaluations.
        </p>
      </div>
      
     <div style="text-align: center; margin-top: 40px; padding: 20px; background: #f8f9fa; border-radius: 10px;">
  <p style="color: #666; font-size: 14px;">
    <strong>Laboratoire d'informatique de l'Université du Mans</strong><br>
    Travaux de recherche sur l'apprentissage auto-régulé et l'intelligence artificielle éducative
    dans le cadre du projet écri+ :
    <a href="https://ecriplus.fr/" target="_blank" style="color: #007bff; text-decoration: none;">
      https://ecriplus.fr/
    </a>
  </p>
</div>

    </div>

    <!-- ONGLET 2: INFORMATIONS ÉVALUATEUR GDPR -->
    <div id="tab-evaluator" class="tab-content">
      <h3>👤 Informations de l'évaluateur (RGPD)</h3>
      
      <div class="evaluator-info">
        <!-- Consentement RGPD -->
        <div class="evaluator-field">
          <label for="gdprConsent">
            <strong><span style="color: #1976D2; margin-right: 5px;">🔒</span> Consentement RGPD <span style="color: #e53935;">*</span></strong>
          </label>
          <div class="gdpr-options">
            <label class="gdpr-option">
              <input type="radio" name="gdprConsent" value="accept" id="gdprAccept" required>
              <span>J'accepte de partager mes informations pour l'évaluation</span>
            </label>
            <label class="gdpr-option">
              <input type="radio" name="gdprConsent" value="decline" id="gdprDecline">
              <span>Je préfère rester anonyme</span>
            </label>
          </div>
          <small>Veuillez accepter le consentement RGPD pour pouvoir remplir les champs d'identification</small>
        </div>
        
        <!-- Champs conditionnels (masqués par défaut) -->
        <div id="evaluatorFields" style="display: none;">
          <!-- Informations optionnelles -->
          <div class="evaluator-field">
            <label for="evaluatorName">
              <strong><span style="color: #1976D2; margin-right: 5px;">📝</span> Nom et prénom</strong>
              <span style="color: #666; font-size: 13px; font-weight: normal;"> (optionnel)</span>
            </label>
            <input type="text" 

                   id="evaluatorName" 

                   placeholder="Ex: Dupont Jean ou Marie Curie"

                   maxlength="100"

                   disabled>
            <small>Veuillez saisir votre nom et prénom si vous souhaitez être identifié</small>
          </div>
          
          <!-- Email optionnel -->
          <div class="evaluator-field">
            <label for="evaluatorEmail">
              <strong><span style="color: #1976D2; margin-right: 5px;">📧</span> Adresse email</strong>
              <span style="color: #666; font-size: 13px; font-weight: normal;"> (optionnel)</span>
            </label>
            <input type="email" 

                   id="evaluatorEmail" 

                   placeholder="votre.email@exemple.fr"

                   maxlength="100"

                   disabled>
            <small>Pour être contacté concernant les résultats de l'étude</small>
          </div>
          
          <!-- Rôle -->
          <div class="evaluator-field">
            <label for="evaluatorRole"><strong><span style="color: #1976D2; margin-right: 5px;">👔</span> Rôle principal <span style="color: #e53935;">*</span></strong></label>
            <select id="evaluatorRole" disabled>
              <option value="">Sélectionnez votre rôle...</option>
              <option value="enseignant">Enseignant / Formateur</option>
              <option value="chercheur">Chercheur / Scientifique</option>
              <option value="expert_pedago">Expert pédagogique</option>
              <option value="etudiant_avance">Étudiant avancé / Doctorant</option>
              <option value="conseiller">Conseiller pédagogique</option>
              <option value="responsable">Responsable de formation</option>
              <option value="autre">Autre professionnel de l'éducation</option>
            </select>
            <small>Sélectionnez votre rôle principal dans le domaine éducatif</small>
          </div>
          
          <!-- Niveau de maîtrise des messages réflexifs -->
          <div class="evaluator-field">
            <label for="messageMastery"><strong><span style="color: #1976D2; margin-right: 5px;">💬</span> Niveau de maîtrise de l'apprentissage auto-régulé <span style="color: #e53935;">*</span></strong></label>
            <select id="messageMastery" disabled>
              <option value="">Sélectionnez votre niveau...</option>
              <option value="novice_srl">Novice – Je découvre l'apprentissage auto-régulé et ses fondements pédagogiques</option>
              <option value="intermediaire_srl">Intermédiaire – J'intègre occasionnellement des activités favorisant l'apprentissage auto-régulé</option>
              <option value="avance_srl">Avancé – Je conçois et mets en œuvre des dispositifs pédagogiques liés à l'apprentissage auto-régulé, en lien avec mon domaine de recherche</option>
              <option value="expert_srl">Expert – Je mène des travaux de recherche et forme d'autres enseignants à l'apprentissage auto-régulé</option>
            </select>
            <small>Indiquez votre niveau d'expertise dans l'enseignement et la recherche liés à l'apprentissage auto-régulé</small>
          </div>
          
          <!-- Niveau d'expertise en réflexivité -->
          <div class="evaluator-field">
            <label for="expertiseLevel"><strong><span style="color: #1976D2; margin-right: 5px;">🎓</span> Niveau d'expertise en réflexivité <span style="color: #e53935;">*</span></strong></label>
            <select id="expertiseLevel" disabled>
              <option value="">Sélectionnez votre niveau...</option>
              <option value="debutant">Débutant - Je découvre la réflexivité</option>
              <option value="intermediaire">Intermédiaire - J'utilise régulièrement des outils réflexifs</option>
              <option value="avance">Avancé - Je conçois des dispositifs réflexifs</option>
              <option value="expert">Expert - Je forme à la réflexivité pédagogique</option>
            </select>
            <small>Indiquez votre niveau de maîtrise des concepts et outils de réflexivité</small>
          </div>
        </div>
        
        <!-- Message pour utilisateurs anonymes -->
        <div id="anonymousMessage" style="display: none;">
          <p>
            <strong><span style="margin-right: 5px;">🕵️</span> Évaluation anonyme :</strong> Vos évaluations seront enregistrées sans information personnelle. 
            Seules vos réponses aux métriques de confiance seront conservées.
          </p>
        </div>
        
        <!-- Boutons d'action -->
        <div style="display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap;">
          <button onclick="fillSampleEvaluator()" type="button" style="background: #666; flex: 1;" id="fillExampleBtn">
            <span style="margin-right: 5px;">📋</span> Remplir exemple
          </button>
          <button onclick="clearEvaluatorFields()" type="button" style="background: #9e9e9e; flex: 1;" id="clearFieldsBtn">
            <span style="margin-right: 5px;">🗑️</span> Effacer
          </button>
        </div>
      </div>
    </div>

    <!-- ONGLET 3: DASHBOARD ÉTUDIANT COMPACT -->
    <div id="tab-dashboard" class="tab-content">
      <h3>📝 Manifeste étudiant</h3>
      <div id="manifest-list">
        <div class="manifest-item">
          <em>Chargement des données...</em>
        </div>
      </div>

      <h3> Progression par compétence </h3>
      <div id="competence-bars">
        <div id="compact-competences">
          <em>Chargement des compétences...</em>
        </div>
      </div>

      <!-- LÉGENDE RADAR COMPACTE -->
      <div class="compact-radar-legend">
        <div class="compact-legend-item">
          <div class="compact-legend-color compact-legend-low"></div>
          <span>Faible (0-50%)</span>
        </div>
        <div class="compact-legend-item">
          <div class="compact-legend-color compact-legend-medium"></div>
          <span>Moyen (50-70%)</span>
        </div>
        <div class="compact-legend-item">
          <div class="compact-legend-color compact-legend-high"></div>
          <span>Élevé (70-100%)</span>
        </div>
      </div>
      
      <h3> Analyse de l'engagement: Indicateurs de comportement d'apprentissage </h3>

      <!-- Grille des métriques radar compacte - 8 indicateurs en 1 ligne -->
      <div class="compact-radar-metrics-grid" id="compact-radar-metrics-grid">
        <!-- Les métriques seront ajoutées dynamiquement -->
      </div>
      
      <!-- Container Radar et Bot Message -->
      <div id="radar-container">
        <div style="display: flex; gap: 20px; flex-wrap: wrap;">
          <!-- Canvas Radar Compact -->
          <div style="flex: 1; min-width: 300px; text-align: center;">
            <canvas id="radar" width="500" height="500" style="max-width: 100%; height: auto;"></canvas>
          </div>
          
          <!-- Message Bot Radar Compact -->
          <div class="compact-radar-bot-message" style="flex: 1; min-width: 300px;">
            <div class="compact-radar-bot-header">
              <h4 class="compact-radar-bot-title">Analyse du radar des métriques d'engagement</h4>
            </div>
            <p class="compact-radar-bot-content" id="compact-radar-bot-content">Analyse en cours...</p>
            <div class="compact-radar-bot-insights">
              <div id="compact-radar-bot-insights">
                <!-- Les insights seront ajoutés dynamiquement -->
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- AUDIO NARRATION COMPACTE POUR LE RADAR -->
      <div class="audio-narration-compact" id="radarAudioContainer">
        <div class="audio-icon">
          <span>🎙️</span>
          <span>Radar</span>
        </div>
        <div class="audio-controls">
          <button class="audio-btn" id="playRadarAudioBtn" onclick="playRadarNarration()">▶️</button>
          <button class="audio-btn" id="pauseRadarAudioBtn" onclick="pauseRadarNarration()">⏸️</button>
          <button class="audio-btn" id="stopRadarAudioBtn" onclick="stopRadarNarration()">⏹️</button>
          <div class="audio-progress" id="radarAudioProgress">
            <div class="audio-progress-fill" id="radarAudioProgressFill"></div>
          </div>
          <span class="audio-time" id="radarAudioTime">00:00</span>
        </div>
        <div class="audio-status" id="radarAudioStatus">Prêt</div>
      </div>

      <!-- HEATMAP COMPACTE AVEC TITRES ALIGNÉS -->
      <div class="compact-heatmap-and-indicators">
        <h3>🔥 Heatmap d'activité - Analyse de la persistance et du management de l'effort (persévérance)</h3>
        
        <div class="compact-heatmap-container">
          <!-- Colonne gauche : Heatmap et contrôles -->
          <div class="compact-heatmap-left">
            <div class="compact-heatmap-analysis">
              <div class="compact-analysis-controls">
                <label for="persistenceMode">Mode d'analyse :</label>
                <select id="persistenceMode" onchange="changePersistenceAnalysis()">
                  <option value="regularity">📊 Régularité du travail</option>
                  <option value="effortPattern">🔄 Schéma d'effort</option>
                  <option value="deadline">⏰ Gestion des échéances</option>
                  <option value="combined" selected>🎯 Vue combinée</option>
                </select>
              </div>
              
              <!-- Canvas pour le heatmap -->
              <canvas id="heatmap" width="800" height="350" style="max-width: 100%; height: auto;"></canvas>
              
              <!-- Légende des niveaux d'activité compacte -->
              <div class="compact-enriched-legend">
                <div class="compact-legend-section">
                  <h5 style="margin: 0 0 10px 0; font-size: 14px; color: #1976D2; display: flex; align-items: center; gap: 6px;">
                    <span>📈</span> Niveaux d'activité
                  </h5>
                  <div class="compact-legend-grid">
                    <div class="compact-legend-item-small">
                      <div class="compact-legend-color-small" style="background:#EBEDF0;"></div>
                      <span>Aucune</span>
                    </div>
                    <div class="compact-legend-item-small">
                      <div class="compact-legend-color-small" style="background:#C6E48B;"></div>
                      <span>Faible</span>
                    </div>
                    <div class="compact-legend-item-small">
                      <div class="compact-legend-color-small" style="background:#7BC96F;"></div>
                      <span>Moyenne</span>
                    </div>
                    <div class="compact-legend-item-small">
                      <div class="compact-legend-color-small" style="background:#239A3B;"></div>
                      <span>Élevée</span>
                    </div>
                    <div class="compact-legend-item-small">
                      <div class="compact-legend-color-small" style="background:#196127;"></div>
                      <span>Intense</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          
          <!-- Colonne droite : Indicateurs de la persistance et du management de l'effort -->
          <div class="compact-heatmap-right">
            <div class="compact-persistence-analysis" id="compact-persistenceAnalysis">
              <h5 style="margin: 0 0 15px 0; font-size: 14px; color: #1976D2; display: flex; align-items: center; gap: 6px;">
                <span>🕖</span> Indicateurs de la gestion du temps et régularité
              </h5>
              <div class="compact-persistence-indicators">
                <div class="compact-indicator" id="regularity-indicator">
                  <span class="compact-indicator-dot" style="background:#FF6B6B;"></span>
                  <span>
                    Régularité du travail :
                    <strong id="compact-regularityScore">-</strong>
                  </span>
                </div>

                <div style="margin-left: 18px; margin-top: 0; font-size: 12px; color: #888;" id="regularity-description">
                  La constance de l'activité de l'apprenant dans le temps.
                </div>

                <div class="compact-indicator" id="deadline-indicator"> 
                  <span class="compact-indicator-dot" style="background:#FFD166;"></span>
                  <span>Gestion des échéances : <strong id="compact-deadlineScore">-</strong></span>
                </div>

                <div style="margin-left: 18px; margin-top: 0; font-size: 12px; color: #888;" id="deadline-description">
                  La capacité de l'apprenant à respecter les délais.
                </div>

                <div class="compact-indicator" style="margin-top: 10px;" id="effort-indicator">
                  <span class="compact-indicator-dot" style="background:#4ECDC4;"></span>
                  <span>
                    <strong>Schéma d'effort :</strong>
                    <span id="compact-effortPattern">-</span>
                  </span>
                </div>

                <div style="margin-left: 18px; margin-top: 0; font-size: 12px; color: #888;" id="effort-description">
                  La dynamique temporelle de l'effort.
                </div>
              </div>
              
              <div style="text-align: center; margin-top: 15px;">
                <strong>Persistance et gestion des efforts :</strong>
                <span id="compact-regularityText">Analyse en cours...</span>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- AUDIO NARRATION COMPACTE POUR LA HEATMAP -->
      <div class="audio-narration-compact" id="heatmapAudioContainer">
        <div class="audio-icon">
          <span>🎙️</span>
          <span>Heatmap</span>
        </div>
        <div class="audio-controls">
          <button class="audio-btn" id="playHeatmapAudioBtn" onclick="playHeatmapNarration()">▶️</button>
          <button class="audio-btn" id="pauseHeatmapAudioBtn" onclick="pauseHeatmapNarration()">⏸️</button>
          <button class="audio-btn" id="stopHeatmapAudioBtn" onclick="stopHeatmapNarration()">⏹️</button>
          <div class="audio-progress" id="heatmapAudioProgress">
            <div class="audio-progress-fill" id="heatmapAudioProgressFill"></div>
          </div>
          <span class="audio-time" id="heatmapAudioTime">00:00</span>
        </div>
        <div class="audio-status" id="heatmapAudioStatus">Prêt</div>
      </div>
    </div>

    <!-- ONGLET 4: MESSAGE RÉFLEXIF ET ÉVALUATION -->
    <div id="tab-evaluation" class="tab-content">
      <h3>🤖 ReflAgent – Analyse & accompagnement</h3>
      <div id="reflagent">
        <em>Le message d'analyse apparaîtra ici après chargement...</em>
      </div>

      <hr>

      <h3>🧑‍⚖️ Volet Expert – Métriques de Confiance</h3>
      <p style="color: #666; margin-bottom: 20px; font-style: italic;">
        Évaluez votre confiance dans l'analyse de ReflAgent pour ce scénario :
      </p>

      <!-- MÉTRIQUES TRADUITES EN FRANÇAIS -->
      <div class="trust-item">
        <b>Authenticité Réflexive (AR)</b>
        <div class="stars" data-metric="AR">
          <!-- Les étoiles seront ajoutées par JavaScript -->
        </div>
        <small style="color: #666; display: block; margin-top: 5px;">
         Le message auto-réflexif reflète-t-il fidèlement la situation réelle de l'étudiant (profil d'apprenant) ?
        </small>
      </div>
      
      <div class="trust-item">
        <b>Alignement Empathique (AE)</b>
        <div class="stars" data-metric="AE">
          <!-- Les étoiles seront ajoutées par JavaScript -->
        </div>
        <small style="color: #666; display: block; margin-top: 5px;">
          Le message auto-réflexif inclut-il des marques linguistiques empathiques ?
        </small>
      </div>
      
      <div class="trust-item">
        <b>Encouragement Sensible au Risque (ESR)</b>
        <div class="stars" data-metric="ESR">
          <!-- Les étoiles seront ajoutées par JavaScript -->
        </div>
        <small style="color: #666; display: block; margin-top: 5px;">
          Le message auto-réflexif montre un équilibre harmonieux entre les encouragements et l'indication du niveau de risque de l'apprenant ?
        </small>
      </div>
      
      <div class="trust-item">
        <b>Support aux Défis Mentaux (SDM)</b>
        <div class="stars" data-metric="SDM">
          <!-- Les étoiles seront ajoutées par JavaScript -->
        </div>
        <small style="color: #666; display: block; margin-top: 5px;">
          Le message auto-réflexif stimule l'étudiant et le rend compétitif ?
        </small>
      </div>
      
      <div class="trust-item">
        <b>Support Métacognitif (SM)</b>
        <div class="stars" data-metric="SM">
          <!-- Les étoiles seront ajoutées par JavaScript -->
        </div>
        <small style="color: #666; display: block; margin-top: 5px;">
          Le message auto-réflexif aide-t-il l'étudiant à réfléchir sur ses stratégies d'apprentissage et sa méthode de travail sur la plateforme ?
        </small>
      </div>

      <h4>💬 Commentaire expert</h4>
      <textarea id="trustComment" placeholder="Ajoutez vos observations, suggestions ou critiques concernant l'analyse de ReflAgent..."></textarea>

      <div style="display: flex; justify-content: space-between; align-items: center; margin: 25px 0; flex-wrap: wrap; gap: 20px;">
        <div style="flex-grow: 1; min-width: 300px;">
          <h4 style="margin-bottom: 10px;">🔒 Indice global de confiance</h4>
          <div class="progress-container">
            <div id="trustBar">0%</div>
          </div>
          <div style="display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; color: #666;">
            <span>Faible confiance</span>
            <span>Confidence moyenne</span>
            <span>Forte confiance</span>
          </div>
        </div>
       <div style="display: flex; flex-direction: column; gap: 10px; align-items: flex-end; min-width: 200px;">
  <button id="saveTrustBtn" style="height: fit-content; width: 100%;">
    💾 Sauvegarder l'évaluation
  </button>

  <button

    id="crossReadersBtn"

    style="height: fit-content; width: 100%; background-color: #ccc; color: #666; cursor: not-allowed;"

    disabled

  >
    📊 Lecture croisée
  </button>
</div>

      </div>

      <div id="saveTrustMsg"></div>

      <!-- Statistiques rapides -->
      <div class="stats-grid">
        <div class="stat-item">
          <div class="stat-label">Scénario actuel</div>
          <div class="stat-value" id="currentScenarioNum">-</div>
        </div>
        <div class="stat-item">
          <div class="stat-label">Confiance moyenne</div>
          <div class="stat-value" id="avgTrustScore">0%</div>
        </div>
        <div class="stat-item">
          <div class="stat-label">Niveau de risque</div>
          <div class="stat-value" id="riskLevel">-</div>
        </div>
        <div class="stat-item">
          <div class="stat-label">Activité moyenne</div>
          <div class="stat-value" id="avgActivity">-</div>
        </div>
      </div>
    </div>

    <!-- ONGLET 5: EXEMPLE D'ANALYSE -->
    <div id="tab-example" class="tab-content">
      <h3>📋 Exemple d'Analyse – Étudiant en difficulté / évitement de l'échec : peur de l'échec supérieure à la motivation de réussite.</h3>
      
      <div class="example-separator"></div>
        
        <div class="example-analysis-box">
          <h4> Éléments clés de l'analyse du profil de l'apprenant</h4>
          <ul>
  <li>
    <strong>Profil global :</strong><br>
    Étudiant à risque, faible engagement et compétences fragiles.
  </li>
  <br>
  <li>
    <strong>Points forts :</strong><br>
    Volonté minimale de progresser (essayer malgré l'échec), possibilité de reconstruire la motivation par petites actions.
  </li>
  <br>
  <li>
    <strong>Points à améliorer :</strong><br>
    Niveau d'activité et d'implication, Organisation et stratégies d'apprentissage.
  </li>
  <br>
  <li>
    <strong>Objectif pédagogique :</strong><br>
    Réintroduire l'étudiant dans un rythme régulier avec des objectifs accessibles, renforcer la confiance et la motivation, fournir un soutien plus concret.
  </li>
</ul>

      </div>
      
        <div class="example-analysis-box">
          <h4>Message auto-réflexif</h4>
            Ton niveau d'engagement est actuellement très faible : seulement 35 % des activités ont été démarrées et 30 % achevées. 😔 Tes compétences restent fragiles (40 %), ce qui indique un risque élevé de décrochage.
            Tu sembles parfois éviter les situations qui pourraient mener à l'échec, mais il est important de te rappeler que l'échec fait partie de l'apprentissage et peut devenir une véritable source de progression. 🛡️
            Commence par fixer des objectifs minuscules et accessibles, et entreprends de petites actions régulières dès le début de la semaine. Cela te permettra de reconstruire progressivement un rythme stable et de retrouver confiance et motivation.
            Tu dois travailler les compétences mises en avant : la compétence Favoriser la progression du domaine Paragraphe et la compétence Valoriser les petites victoires du domaine Texte.
        </div>
        
     
        
        <div class="example-separator"></div>
        
        <div class="example-analysis-box">
          <h4> Évaluation métrique avec observations</h4>
          <table class="example-metrics-table">
            <thead>
              <tr>
                <th width="25%">Métrique</th>
                <th width="15%">Niveau ★</th>
                <th width="60%">Observations (avec passage du message)</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td><strong>Authenticité Réflexive (AR)</strong></td>
                <td><span class="metric-stars">★★★★☆</span></td>
                <td class="metric-observation">
                  <span class="success">L'analyse reflète fidèlement la situation :</span> « Ton niveau d'engagement est actuellement très faible … Tes compétences restent fragiles » ✅
                </td>
              </tr>
              <tr>
                <td><strong>Alignement Empathique (AE)</strong></td>
                <td><span class="metric-stars">★★★☆☆</span></td>
                <td class="metric-observation">
                  <span class="warning">L'agent montre une compréhension partielle des émotions (peur de l'échec supérieure à la motivation de réussite) :</span> « Tu sembles parfois éviter les situations qui pourraient mener à l'échec » ⚠️ Peut être renforcé avec plus de soutien émotionnel direct
                </td>
              </tr>
              <tr>
                <td><strong>Encouragement Sensible au Risque (ESR)</strong></td>
                <td><span class="metric-stars">★☆☆☆☆</span></td>
                <td class="metric-observation">
                  <span class="error">L'agent indique le risque mais le soutien reste limité :</span> « …ce qui indique un risque élevé de décrochage » ❌ Faible guidance concrète pour sécuriser la progression
                </td>
              </tr>
              <tr>
                <td><strong>Support aux Défis Mentaux (SDM)</strong></td>
                <td><span class="metric-stars">★☆☆☆☆</span></td>
                <td class="metric-observation">
                  <span class="error">Usage très limité de défis mentaux comme stimulus et de compétition :</span> « Commence par fixer des objectifs minuscules et accessibles » ❌ Absence de stratégies autour des défis mentaux.
                </td>
              </tr>
              <tr>
                <td><strong>Support Métacognitif (SM)</strong></td>
                <td><span class="metric-stars">★★☆☆☆</span></td>
                <td class="metric-observation">
                  <span class="warning">Encouragement minimal à réfléchir sur sa méthode, Suggestions très limitées pour développer la réflexion ou les compétences :</span> « entreprends de petites actions régulières » ⚠️ Peu d'indication sur planification ou révision de stratégie
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        
    </div>
  </div>
</div>

<script>

// ================= VARIABLES =================

let scenarios = [];

let currentScenarioIndex = 0;

let radarMetrics = [];



// Objets Audio pour la narration

let radarAudio = null;

let heatmapAudio = null;

let currentRadarAudioSrc = "";

let currentHeatmapAudioSrc = "";



// Métriques de radar par défaut (sans abréviations)

const DEFAULT_RADAR_METRICS = [

  { label: "Démarrage des activités", value: 85 },

  { label: "Éléments des connaissances validées", value: 72 },

  { label: "Niveau moyen de compétence", value: 68 },

  { label: "Taux d'erreur", value: 35 },

  { label: "Achèvement des activités", value: 74 },

  { label: "Interactions avec les ressources", value: 80 },

  { label: "Score", value: 78 }

];



// Noms des métriques traduits en français

const trustMetrics = { 

  "AR": 0,  // Authenticité Réflexive

  "AE": 0,  // Alignement Empathique

  "ESR": 0, // Encouragement Sensible au Risque

  "SDM": 0, // Support aux Défis Mentaux

  "SM": 0   // Support Métacognitif

};



const trustWeights = { 

  "AR": 0.30, 

  "AE": 0.20, 

  "ESR": 0.20, 

  "SDM": 0.10, 

  "SM": 0.20 

};



// URL du script Google Apps Script pour la sauvegarde

const GOOGLE_SCRIPT_URL = 'https://script.google.com/macros/s/AKfycbyB_Q1RH9IctsE_jEbZUmyxv4WXlpGFFgtyEUsLmV72W3htK1YO3GSeoyjQIoWCKEod/exec';



// SCÉNARIOS PAR DÉFAUT (16 profils)

const DEFAULT_SCENARIOS = [

  { id: 1, title: "Étudiant engagé", manifest: { type: "Engagement élevé", manifeste: "Je suis très motivé et j'essaie de faire toutes les activités", description: "Étudiant avec un fort engagement et une régularité dans le travail" } },

  { id: 2, title: "Étudiant actif mais inefficace", manifest: { type: "Activité désorganisée", manifeste: "Je travaille beaucoup mais je ne vois pas les résultats", description: "Beaucoup d'effort mais peu de résultats concrets" } },

  { id: 3, title: "Étudiant orienté vers le succès", manifest: { type: "Performance orientée", manifeste: "Je vise l'excellence dans tout ce que je fais", description: "Très orienté vers les résultats et la réussite" } },

  { id: 4, title: "Étudiant motivé", manifest: { type: "Motivation soutenue", manifeste: "Je suis déterminé à réussir ce cours", description: "Bonne motivation avec des objectifs clairs" } },

  { id: 5, title: "Étudiant surmotivé", manifest: { type: "Surinvestissement", manifeste: "Je passe trop de temps sur le cours au détriment du reste", description: "Investissement excessif pouvant mener à l'épuisement" } },

  { id: 6, title: "Étudiant stratégique", manifest: { type: "Approche calculée", manifeste: "Je choisis les activités qui rapportent le plus de points", description: "Approche rationnelle et ciblée de l'apprentissage" } },

  { id: 7, title: "Étudiant en amélioration", manifest: { type: "Progression constante", manifeste: "Je vois mes progrès semaine après semaine", description: "Évolution positive des compétences et résultats" } },

  { id: 8, title: "Étudiant en difficulté", manifest: { type: "Difficultés persistantes", manifeste: "J'ai du mal à comprendre malgré mes efforts", description: "Rencontre des obstacles d'apprentissage importants" } },

  { id: 9, title: "Étudiant évitant l'échec", manifest: { type: "Évitement", manifeste: "J'ai peur de me tromper donc je ne tente pas", description: "Anxiété face à l'échec limitant les tentatives" } },

  { id: 10, title: "Étudiant à risque", manifest: { type: "Risque d'abandon", manifeste: "Je pense abandonner le cours", description: "Très faible engagement et motivation" } },

  { id: 11, title: "Étudiant en progression", manifest: { type: "Amélioration technique", manifeste: "Mes compétences techniques s'améliorent régulièrement", description: "Développement progressif des compétences techniques" } },

  { id: 12, title: "Étudiant acceptant l'échec", manifest: { type: "Résilience", manifeste: "Je vois l'échec comme une opportunité d'apprendre", description: "Attitude positive face aux erreurs et échecs" } },

  { id: 13, title: "Étudiant inactif", manifest: { type: "Inactivité", manifeste: "Je ne trouve pas la motivation pour commencer", description: "Très faible participation et engagement" } },

  { id: 14, title: "Étudiant non engagé", manifest: { type: "Désengagement", manifeste: "Ce cours ne m'intéresse pas vraiment", description: "Manque d'intérêt et d'implication" } },

  { id: 15, title: "Étudiant persévérant", manifest: { type: "Persévérance", manifeste: "Je continue malgré les difficultés", description: "Efforts maintenus malgré les doutes" } },

  { id: 16, title: "Étudiant actif", manifest: { type: "Actif", manifeste: "Je suis très actif sur la plateforme", description: "Forte implication et nombreux efforts" } }

];



// MAPPING PERSÉVÉRANCE PAR PROFIL

const perseveranceProfiles = {

  "Étudiant engagé": {

    level: "Très élevée",

    interpretation: "Efforts constants, persévère même face aux difficultés",

    color: "#43A047",

    regularity: 90,

    deadline: 88,

    effortPattern: "Effort concentré (Pic d'activité jeudi/vendredi)"

  },

  "Étudiant actif mais inefficace": {

    level: "Moyenne",

    interpretation: "Efforts importants mais mal régulés, persévérance peu productive",

    color: "#FB8C00",

    regularity: 55,

    deadline: 44,

    effortPattern: "Travail weekend (Activité principalement le weekend)"

  },

  "Étudiant orienté vers le succès": {

    level: "Élevée",

    interpretation: "Persévérance principalement guidée par l'atteinte des objectifs",

    color: "#4CAF50",

    regularity: 75,

    deadline: 66,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  },

  "Étudiant motivé": {

    level: "Élevée",

    interpretation: "Engagement soutenu et continuité stable de l'effort",

    color: "#4CAF50",

    regularity: 75,

    deadline: 66,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  },

  "Étudiant surmotivé": {

    level: "Très élevée",

    interpretation: "Effort intense, parfois excessif, avec risque de surcharge",

    color: "#43A047",

    regularity: 90,

    deadline: 91,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  },

  "Étudiant stratégique": {

    level: "Élevée",

    interpretation: "Effort bien dosé, persévérance optimisée selon le rendement attendu",

    color: "#4CAF50",

    regularity: 75,

    deadline: 66,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  },

  "Étudiant en amélioration": {

    level: "Moyenne à élevée",

    interpretation: "Efforts croissants, persévérance en cours de structuration",

    color: "#FF9800",

    regularity: 55,

    deadline: 50,

    effortPattern: "Travail weekend (Activité principalement le weekend)"

  },

  "Étudiant en difficulté": {

    level: "Faible",

    interpretation: "Découragement fréquent et difficulté à maintenir l'effort",

    color: "#E53935",

    regularity: 35,

    deadline: 13,

    effortPattern: "Très faible (Activité minimale toute la semaine)"

  },

  "Étudiant évitant l'échec": {

    level: "Moyenne",

    interpretation: "Persévérance motivée par la peur de l'échec plutôt que par l'apprentissage",

    color: "#FB8C00",

    regularity: 55,

    deadline: 19,

    effortPattern: "Effort concentré (Pic d'activité jeudi/vendredi)"

  },

  "Étudiant à risque": {

    level: "Très faible",

    interpretation: "Abandon rapide et très faible tolérance à l'effort",

    color: "#C62828",

    regularity: 20,

    deadline: 9,

    effortPattern: "Très faible (Activité minimale toute la semaine)"

  },

  "Étudiant en progression": {

    level: "Élevée",

    interpretation: "Efforts réguliers et de mieux en mieux maîtrisés",

    color: "#4CAF50",

    regularity: 75,

    deadline: 47,

    effortPattern: "Très faible (Activité minimale toute la semaine)"

  },

  "Étudiant acceptant l'échec": {

    level: "Élevée",

    interpretation: "Bonne résilience, persévère malgré les erreurs et les échecs",

    color: "#4CAF50",

    regularity: 75,

    deadline: 47,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  },

  "Étudiant inactif": {

    level: "Très faible",

    interpretation: "Manque d'engagement, difficulté à initier et maintenir l'effort",

    color: "#C62828",

    regularity: 20,

    deadline: 0,

    effortPattern: "Très faible (Activité minimale toute la semaine)"

  },

  "Étudiant non engagé": {

    level: "Faible",

    interpretation: "Manque de motivation, faible persévérance dans l'effort",

    color: "#E53935",

    regularity: 35,

    deadline: 3,

    effortPattern: "Très faible (Activité minimale toute la semaine)"

  },

  "Étudiant persévérant": {

    level: "Moyenne à élevée",

    interpretation: "Efforts maintenus malgré les doutes, persévérance réelle mais freinée par le manque de confiance",

    color: "#FF9800",

    regularity: 55,

    deadline: 56,

    effortPattern: "Accélération progressive (Démarrage lent, fin forte)"

  },

  "Étudiant actif": {

    level: "Élevée",

    interpretation: "Forte implication et nombreux efforts, mais difficulté à maintenir l'énergie jusqu'au bout",

    color: "#4CAF50",

    regularity: 75,

    deadline: 41,

    effortPattern: "Régulier (Effort équilibré toute la semaine)"

  }

};



// Messages de profils complets (16 profils)

const profileMessages = {

  "Étudiant engagé": {

    title: "Démarrage Rapide & Engagement Soutenu",

    message: "Tu démarres 85% des activités avec enthousiasme et les termines à 74% ! Ton interaction avec les ressources (80%) montre une implication active.",

    insights: [

      { icon: "🚀", text: "Démarrage élevé (85%)" },

      { icon: "✅", text: "Achèvement solide (74%)" },

      { icon: "📚", text: "Interaction soutenue (80%)" }

    ]

  },

  "Étudiant actif mais inefficace": {

    title: "Activité Intense mais Performance Perfectible",

    message: " Tu interagis beaucoup avec les ressources (85%) mais ton taux de réussite reste à 65% seulement. La qualité prime sur la quantité.",

    insights: [

      { icon: "🔄", text: "Interactions maximales (85%)" },

      { icon: "📉", text: "Score modéré (65%)" },

      { icon: "🎯", text: "Concentration requise" }

    ]

  },

  "Étudiant orienté vers le succès": {

    title: "Excellence dans l'Action",

    message: "Tu excelles dans le démarrage (90%) ET l'achèvement (90%) des activités ! Ton score de 85% reflète une implication exceptionnelle.",

    insights: [

      { icon: "⭐", text: "Démarrage maximal (90%)" },

      { icon: "✅", text: "Achèvement parfait (90%)" },

      { icon: "📈", text: "Performance élevée (85%)" }

    ]

  },

  "Étudiant motivé": {

    title: "Premiers Pas Encourageants",

    message: "Tu commences 65% des activités avec curiosité ! Ton interaction avec les ressources (70%) montre une belle ouverture d'esprit.",

    insights: [

      { icon: "🌟", text: "Démarrage encourageant (65%)" },

      { icon: "📖", text: "Engagement actif (70%)" },

      { icon: "🧱", text: "Compétences en développement" }

    ]

  },

  "Étudiant surmotivé": {

    title: "Surinvestissement dans l'Action",

    message: "Ton implication est exceptionnelle : 98% d'interaction avec les ressources ! Mais attention à l'équilibre pour éviter l'épuisement.",

    insights: [

      { icon: "⚡", text: "Interaction extrême (98%)" },

      { icon: "🚀", text: "Démarrage quasi-parfait (95%)" },

      { icon: "⚖️", text: "Équilibre nécessaire" }

    ]

  },

  "Étudiant stratégique": {

    title: "Action Réfléchie et Ciblée",

    message: "Tu achèves 75% des activités avec seulement 55% d'interaction. Preuve d'une approche intelligente et efficiente.",

    insights: [

      { icon: "🧠", text: "Efficience démontrée" },

      { icon: "✅", text: "Bon achèvement (75%)" },

      { icon: "📊", text: "Ressources ciblées (55%)" }

    ]

  },

  "Étudiant en amélioration": {

    title: "Progression dans l'Action",

    message: "Tu démarres 70% des activités et les termines à 68%. Une progression régulière et encourageante !",

    insights: [

      { icon: "🔄", text: "Démarrage constant (70%)" },

      { icon: "📝", text: "Achèvement régulier (68%)" },

      { icon: "🎨", text: "Trajectoire d'apprentissage prometteuse" }

    ]

  },

  "Étudiant en difficulté": {

    title: "Approche Collaborative Active",

    message: "Tu interagis beaucoup (85%) et démarres 72% des activités. Ta force réside dans l'apprentissage social.",

    insights: [

      { icon: "👥", text: "Interactions élevées (85%)" },

      { icon: "🚀", text: "Démarrage solide (72%)" },

      { icon: "💬", text: "Taux d'erreurs observées" }

    ]

  },

  "Étudiant évitant l'échec": {

    title: "Démarrage Hésitant",

    message: "Seulement 35% des activités sont commencées, et 30% terminées. Chaque petit pas d'action compte.",

    insights: [

      { icon: "😨", text: "Démarrage faible (35%)" },

      { icon: "⏱️", text: "Achèvement limité (30%)" },

      { icon: "🌱", text: "Niveau d'activité et d'engagement limité" }

    ]

  },

  "Étudiant à risque": {

    title: "Action Inconstante",

    message: "Tu commences 75% des activités mais n'en achèves que 55%. La régularité dans l'action te serait bénéfique.",

    insights: [

      { icon: "📉", text: "Inconstance d'achèvement" },

      { icon: "🚀", text: "Démarrage bon (75%)" },

      { icon: "⚙️", text: "Continuité à développer" }

    ]

  },

  "Étudiant en progression": {

    title: "Action Techniquement Maîtrisée",

    message: "Tu démontres une belle constance : 70% de démarrage, 68% d'achèvement, et un score de 78% !",

    insights: [

      { icon: "🔧", text: "Un apprentissage de plus en plus maîtrisé" },

      { icon: "📊", text: "Score élevé (78%)" },

      { icon: "🔄", text: "Constance démontrée" }

    ]

  },

  "Étudiant acceptant l'échec": {

    title: "Planification vs Action",

    message: "Tu planifies bien (85% de démarrage) mais l'achèvement reste à 58%. L'action prime sur la perfection.",

    insights: [

      { icon: "📋", text: "Planification solide (85%)" },

      { icon: "⚡", text: "Action à intensifier" },

      { icon: "✅", text: "Achèvement perfectible (58%)" }

    ]

  },

  "Étudiant inactif": {

    title: "Paralysie de l'Action",

    message: "Seulement 15% des activités sont commencées. Le premier pas d'action est le plus important.",

    insights: [

      { icon: "😰", text: "Démarrage minimal (15%)" },

      { icon: "🐌", text: "Achèvement faible (10%)" },

      { icon: "✨", text: "Difficultés à choisir, démarrer et compléter une activité" }

    ]

  },

  "Étudiant non engagé": {

    title: "Reprise de l'Action",

    message: "Après un échec, seulement 30% des activités sont commencées. Chaque nouvelle action est une nouvelle chance.",

    insights: [

      { icon: "😔", text: "Démarrage faible (30%)" },

      { icon: "📉", text: "Achèvement bas (25%)" },

      { icon: "🔄", text: "Redémarrage progressif" }

    ]

  },

  "Étudiant persévérant": {

    title: "Efforts Réels malgré le Doute",

    message: "Tu avances avec persévérance malgré des doutes sur toi-même. Tu démarres 55% des activités et en termines 58%. Tes résultats montrent que tes capacités sont bien là, même si tu hésites encore à te faire confiance.",

    insights: [

      { icon: "🌱", text: "Efforts constants malgré les doutes" },

      { icon: "🧠", text: "Compétences bien présentes (66%)" },

      { icon: "💪", text: "Persévérance visible" }

    ]

  },

  "Étudiant actif": {

    title: "Engagement Fort mais Énergie à Préserver",

    message: "Tu démarres beaucoup d'activités (85%) et tu t'appuies largement sur les ressources (75%). Cet engagement montre ta motivation, mais il rend parfois difficile l'achèvement des tâches (45%). Mieux répartir tes efforts t'aidera à avancer plus sereinement.",

    insights: [

      { icon: "⚡", text: "Engagement élevé dès le départ (85%)" },

      { icon: "📚", text: "Usage fréquent des ressources (75%)" },

      { icon: "🧘", text: "Besoin de mieux doser l'effort" }

    ]

  }

};



// ================= FONCTIONS AUDIO NARRATION =================



// Version CORRECTE pour dossier static/audio/

function getRadarAudioPath(scenarioId) {

  return `static/audio/radar_${scenarioId}.mp3`;

}



// Également pour la heatmap

function getHeatmapAudioPath(scenarioId) {

  return `static/audio/heatmap_${scenarioId}.mp3`;

}

function initAudioElements() {

  radarAudio = new Audio();

  heatmapAudio = new Audio();

  

  radarAudio.addEventListener('timeupdate', function() {

    if (radarAudio.duration) {

      const percent = (radarAudio.currentTime / radarAudio.duration) * 100;

      const fill = document.getElementById('radarAudioProgressFill');

      if (fill) fill.style.width = percent + '%';

      const timeEl = document.getElementById('radarAudioTime');

      if (timeEl) {

        timeEl.textContent = formatTime(radarAudio.currentTime);

      }

    }

  });

  

  radarAudio.addEventListener('ended', function() {

    const statusEl = document.getElementById('radarAudioStatus');

    if (statusEl) statusEl.textContent = 'Terminé';

    const fill = document.getElementById('radarAudioProgressFill');

    if (fill) fill.style.width = '0%';

  });

  

  radarAudio.addEventListener('play', function() {

    const statusEl = document.getElementById('radarAudioStatus');

    if (statusEl) statusEl.textContent = 'Lecture...';

  });

  

  radarAudio.addEventListener('pause', function() {

    const statusEl = document.getElementById('radarAudioStatus');

    if (statusEl) statusEl.textContent = 'Pause';

  });

  

  heatmapAudio.addEventListener('timeupdate', function() {

    if (heatmapAudio.duration) {

      const percent = (heatmapAudio.currentTime / heatmapAudio.duration) * 100;

      const fill = document.getElementById('heatmapAudioProgressFill');

      if (fill) fill.style.width = percent + '%';

      const timeEl = document.getElementById('heatmapAudioTime');

      if (timeEl) {

        timeEl.textContent = formatTime(heatmapAudio.currentTime);

      }

    }

  });

  

  heatmapAudio.addEventListener('ended', function() {

    const statusEl = document.getElementById('heatmapAudioStatus');

    if (statusEl) statusEl.textContent = 'Terminé';

    const fill = document.getElementById('heatmapAudioProgressFill');

    if (fill) fill.style.width = '0%';

  });

  

  heatmapAudio.addEventListener('play', function() {

    const statusEl = document.getElementById('heatmapAudioStatus');

    if (statusEl) statusEl.textContent = 'Lecture...';

  });

  

  heatmapAudio.addEventListener('pause', function() {

    const statusEl = document.getElementById('heatmapAudioStatus');

    if (statusEl) statusEl.textContent = 'Pause';

  });

  

  const radarProgress = document.getElementById('radarAudioProgress');

  if (radarProgress) {

    radarProgress.addEventListener('click', function(e) {

      if (radarAudio.duration) {

        const rect = this.getBoundingClientRect();

        const percent = (e.clientX - rect.left) / rect.width;

        radarAudio.currentTime = percent * radarAudio.duration;

      }

    });

  }

  

  const heatmapProgress = document.getElementById('heatmapAudioProgress');

  if (heatmapProgress) {

    heatmapProgress.addEventListener('click', function(e) {

      if (heatmapAudio.duration) {

        const rect = this.getBoundingClientRect();

        const percent = (e.clientX - rect.left) / rect.width;

        heatmapAudio.currentTime = percent * heatmapAudio.duration;

      }

    });

  }

}



function formatTime(seconds) {

  if (isNaN(seconds)) return '00:00';

  const mins = Math.floor(seconds / 60);

  const secs = Math.floor(seconds % 60);

  return mins.toString().padStart(2, '0') + ':' + secs.toString().padStart(2, '0');

}



function loadRadarAudioForScenario(scenarioId) {

  if (!radarAudio) initAudioElements();

  const audioPath = getRadarAudioPath(scenarioId);

  currentRadarAudioSrc = audioPath;

  radarAudio.src = audioPath;

  radarAudio.load();

  const statusEl = document.getElementById('radarAudioStatus');

  if (statusEl) statusEl.textContent = 'Prêt';

  const timeEl = document.getElementById('radarAudioTime');

  if (timeEl) timeEl.textContent = '00:00';

  const fill = document.getElementById('radarAudioProgressFill');

  if (fill) fill.style.width = '0%';

}



function loadHeatmapAudioForScenario(scenarioId) {

  if (!heatmapAudio) initAudioElements();

  const audioPath = getHeatmapAudioPath(scenarioId);

  currentHeatmapAudioSrc = audioPath;

  heatmapAudio.src = audioPath;

  heatmapAudio.load();

  const statusEl = document.getElementById('heatmapAudioStatus');

  if (statusEl) statusEl.textContent = 'Prêt';

  const timeEl = document.getElementById('heatmapAudioTime');

  if (timeEl) timeEl.textContent = '00:00';

  const fill = document.getElementById('heatmapAudioProgressFill');

  if (fill) fill.style.width = '0%';

}



function playRadarNarration() {

  if (radarAudio && radarAudio.src) {

    radarAudio.play().catch(e => {

      console.warn('Impossible de lire le fichier audio radar:', e);

      const statusEl = document.getElementById('radarAudioStatus');

      if (statusEl) statusEl.textContent = 'Fichier non trouvé';

    });

  } else {

    const statusEl = document.getElementById('radarAudioStatus');

    if (statusEl) statusEl.textContent = 'Aucun fichier';

  }

}



function pauseRadarNarration() {

  if (radarAudio) radarAudio.pause();

}



function stopRadarNarration() {

  if (radarAudio) {

    radarAudio.pause();

    radarAudio.currentTime = 0;

    const fill = document.getElementById('radarAudioProgressFill');

    if (fill) fill.style.width = '0%';

    const statusEl = document.getElementById('radarAudioStatus');

    if (statusEl) statusEl.textContent = 'Arrêté';

  }

}



function playHeatmapNarration() {

  if (heatmapAudio && heatmapAudio.src) {

    heatmapAudio.play().catch(e => {

      console.warn('Impossible de lire le fichier audio heatmap:', e);

      const statusEl = document.getElementById('heatmapAudioStatus');

      if (statusEl) statusEl.textContent = 'Fichier non trouvé';

    });

  } else {

    const statusEl = document.getElementById('heatmapAudioStatus');

    if (statusEl) statusEl.textContent = 'Aucun fichier';

  }

}



function pauseHeatmapNarration() {

  if (heatmapAudio) heatmapAudio.pause();

}



function stopHeatmapNarration() {

  if (heatmapAudio) {

    heatmapAudio.pause();

    heatmapAudio.currentTime = 0;

    const fill = document.getElementById('heatmapAudioProgressFill');

    if (fill) fill.style.width = '0%';

    const statusEl = document.getElementById('heatmapAudioStatus');

    if (statusEl) statusEl.textContent = 'Arrêté';

  }

}



// ================= INIT =================

document.addEventListener("DOMContentLoaded", () => {

  console.log("✅ DOM chargé, initialisation...");

  initAudioElements();

  loadScenarios();

  initTrustStars();

  initTrustSave();

  initTabs();

  initGDPR();

  

  updateTrustBar();

  

  document.getElementById("prevScenario").onclick = () => loadScenario(currentScenarioIndex - 1);

  document.getElementById("nextScenario").onclick = () => loadScenario(currentScenarioIndex + 1);

  document.getElementById("crossReadersBtn").onclick = navigateToCrossReading;

});



// ================= SYSTEME D'ONGLETS =================

function initTabs() {

  const tabBtns = document.querySelectorAll('.tab-btn');

  const tabContents = document.querySelectorAll('.tab-content');

  

  tabBtns.forEach(btn => {

    btn.addEventListener('click', () => {

      const tabId = btn.getAttribute('data-tab');

      

      tabBtns.forEach(b => b.classList.remove('active'));

      tabContents.forEach(c => c.classList.remove('active'));

      

      btn.classList.add('active');

      document.getElementById(tabId).classList.add('active');

    });

  });

}



// ================= GDPR =================

function initGDPR() {

  const gdprAccept = document.getElementById('gdprAccept');

  const gdprDecline = document.getElementById('gdprDecline');

  const evaluatorFields = document.getElementById('evaluatorFields');

  const anonymousMessage = document.getElementById('anonymousMessage');

  

  function updateGDPRFields() {

    if (gdprAccept.checked) {

      evaluatorFields.style.display = 'block';

      anonymousMessage.style.display = 'none';

      

      document.getElementById('evaluatorName').disabled = false;

      document.getElementById('evaluatorEmail').disabled = false;

      document.getElementById('evaluatorRole').disabled = false;

      document.getElementById('expertiseLevel').disabled = false;

      document.getElementById('messageMastery').disabled = false;

    } else if (gdprDecline.checked) {

      evaluatorFields.style.display = 'none';

      anonymousMessage.style.display = 'block';

      

      document.getElementById('evaluatorName').disabled = true;

      document.getElementById('evaluatorName').value = '';

      document.getElementById('evaluatorEmail').disabled = true;

      document.getElementById('evaluatorEmail').value = '';

      document.getElementById('evaluatorRole').disabled = true;

      document.getElementById('evaluatorRole').value = '';

      document.getElementById('expertiseLevel').disabled = true;

      document.getElementById('expertiseLevel').value = '';

      document.getElementById('messageMastery').disabled = true;

      document.getElementById('messageMastery').value = '';

    }

  }

  

  if (gdprAccept && gdprDecline) {

    gdprAccept.addEventListener('change', updateGDPRFields);

    gdprDecline.addEventListener('change', updateGDPRFields);

    

    updateGDPRFields();

  }

}



// ================= CHARGEMENT JSON =================

function loadScenarios() {

  console.log("Chargement des scénarios...");

  const possiblePaths = [

    "/static/scenarios.json",

    "scenarios.json",

    "./scenarios.json",

    "../scenarios.json"

  ];

  

  let loadAttempts = 0;

  

  function tryLoad(pathIndex) {

    if (pathIndex >= possiblePaths.length) {

      console.error("❌ Impossible de charger les scénarios depuis aucun chemin");

      console.log("Utilisation des scénarios par défaut (16 profils)");

      scenarios = generateDefaultScenarios();

      

      if (scenarios.length === 0) {

        showError("Impossible de charger les scénarios.");

        return;

      }

      

      loadScenario(0);

      return;

    }

    

    const path = possiblePaths[pathIndex];

    console.log(`Tentative de chargement depuis: ${path}`);

    

    fetch(path)

      .then(r => {

        if (!r.ok) throw new Error(`Erreur HTTP ${r.status}`);

        return r.json();

      })

      .then(data => {

        console.log("✅ Scénarios chargés:", data.scenarios?.length || 0);

        scenarios = data.scenarios || generateDefaultScenarios();

        

        if (scenarios.length === 0) {

          console.warn("Aucun scénario trouvé dans le fichier");

          scenarios = generateDefaultScenarios();

        }

        

        loadScenario(0);

      })

      .catch(error => {

        console.warn(`Échec pour ${path}:`, error.message);

        loadAttempts++;

        tryLoad(pathIndex + 1);

      });

  }

  

  tryLoad(0);

}



function generateDefaultScenarios() {

  console.log("Génération des 16 scénarios par défaut");

  

  const defaultScenarios = [...DEFAULT_SCENARIOS];

  

  defaultScenarios.forEach((scenario, index) => {

    scenario.competences = generateRandomCompetences(14);

    scenario.radar = generateProfileRadarData(scenario.title);

    scenario.reflAgent = generateReflAgentMessage(scenario.title);

    scenario.risk = calculateRiskLevel(scenario.title);

  });

  

  return defaultScenarios;

}



function generateRandomCompetences(count) {

  const competenceLabels = [

    "Analyse de texte", "Rédaction académique", "Recherche documentaire", 

    "Présentation orale", "Travail collaboratif", "Gestion du temps",

    "Résolution de problèmes", "Pensée critique", "Communication écrite",

    "Organisation personnelle", "Auto-évaluation", "Utilisation des TICE",

    "Métacognition", "Adaptabilité"

  ];

  

  const competences = [];

  for (let i = 0; i < count; i++) {

    const labelIndex = i % competenceLabels.length;

    const value = 30 + Math.floor(Math.random() * 65);

    competences.push({

      label: competenceLabels[labelIndex],

      value: value

    });

  }

  

  return competences;

}



function generateProfileRadarData(profileTitle) {

  let baseValues;

  

  switch(profileTitle) {

    case "Étudiant engagé":

      baseValues = [85, 72, 68, 35, 74, 80, 78];

      break;

    case "Étudiant actif mais inefficace":

      baseValues = [90, 65, 60, 60, 70, 85, 65];

      break;

    case "Étudiant orienté vers le succès":

      baseValues = [90, 85, 80, 25, 90, 75, 85];

      break;

    case "Étudiant motivé":

      baseValues = [65, 70, 65, 45, 60, 70, 68];

      break;

    case "Étudiant surmotivé":

      baseValues = [95, 80, 75, 20, 88, 98, 82];

      break;

    case "Étudiant stratégique":

      baseValues = [70, 78, 72, 40, 75, 55, 80];

      break;

    case "Étudiant en amélioration":

      baseValues = [70, 68, 65, 50, 68, 72, 70];

      break;

    case "Étudiant en difficulté":

      baseValues = [72, 60, 55, 70, 65, 85, 58];

      break;

    case "Étudiant évitant l'échec":

      baseValues = [35, 40, 38, 80, 30, 45, 40];

      break;

    case "Étudiant à risque":

      baseValues = [75, 60, 55, 65, 55, 70, 58];

      break;

    case "Étudiant en progression":

      baseValues = [70, 78, 75, 45, 68, 65, 78];

      break;

    case "Étudiant acceptant l'échec":

      baseValues = [85, 70, 68, 55, 58, 62, 72];

      break;

    case "Étudiant inactif":

      baseValues = [15, 20, 18, 90, 10, 25, 22];

      break;

    case "Étudiant non engagé":

      baseValues = [30, 35, 32, 75, 25, 40, 38];

      break;

    case "Étudiant persévérant":

      baseValues = [55, 65, 64, 68, 58, 60, 66];

      break;

    case "Étudiant actif":

      baseValues = [85, 62, 60, 58, 45, 75, 63];

      break;

    default:

      baseValues = [70, 65, 62, 50, 65, 70, 68];

  }

  

  return DEFAULT_RADAR_METRICS.map((metric, index) => ({

    label: metric.label,

    value: Math.max(10, Math.min(100, baseValues[index] + (Math.random() * 10 - 5)))

  }));

}



function generateReflAgentMessage(profileTitle) {

  const messages = {

    "Étudiant engagé": "Félicitations ! Ton engagement est remarquable. Continue sur cette lancée en maintenant ta régularité de travail.",

    "Étudiant actif mais inefficace": "Tu travailles beaucoup, mais l'efficacité pourrait être améliorée. Concentre-toi sur la qualité plutôt que la quantité.",

    "Étudiant orienté vers le succès": "Ton orientation vers la réussite est excellente. N'oublie pas que l'apprentissage est aussi important que les résultats.",

    "Étudiant motivé": "Ta motivation est un atout précieux. Structure ton travail pour transformer cette motivation en résultats concrets.",

    "Étudiant surmotivé": "Attention au surinvestissement. Un équilibre est nécessaire pour éviter l'épuisement. Priorise les activités essentielles.",

    "Étudiant stratégique": "Ton approche stratégique est intelligente. Assure-toi de ne pas négliger les compétences transversales importantes.",

    "Étudiant en amélioration": "Tes progrès sont visibles ! Continue à travailler régulièrement pour consolider ces améliorations.",

    "Étudiant en difficulté": "Tu rencontres des difficultés, mais ne baisse pas les bras. Demande de l'aide et concentre-toi sur les bases.",

    "Étudiant évitant l'échec": "La peur de l'échec peut être paralysante. Rappelle-toi que l'erreur fait partie de l'apprentissage.",

    "Étudiant à risque": "Ton engagement est fragile. Commence par de petits objectifs réalisables pour reprendre confiance.",

    "Étudiant en progression": "Tes compétences techniques s'améliorent bien. Maintenant, travaille sur leur application dans des contextes variés.",

    "Étudiant acceptant l'échec": "Ton attitude face à l'échec est constructive. Utilise ces expériences pour identifier tes points d'amélioration.",

    "Étudiant inactif": "Le premier pas est le plus difficile. Choisis une seule activité simple pour commencer, sans pression.",

    "Étudiant non engagé": "Il est normal de manquer d'intérêt parfois. Cherche un aspect du cours qui pourrait te motiver davantage.",

    "Étudiant persévérant": "Tes compétences sont solides. Fais confiance à ton potentiel et ose t'investir pleinement.",

    "Étudiant actif": "Ton engagement est fort mais attention à ne pas t'épuiser. Apprends à mieux doser tes efforts."

  };

  

  return messages[profileTitle] || "Analyse de votre profil d'apprentissage en cours...";

}



function calculateRiskLevel(profileTitle) {

  const riskLevels = {

    "Étudiant engagé": 20,

    "Étudiant actif mais inefficace": 50,

    "Étudiant orienté vers le succès": 25,

    "Étudiant motivé": 30,

    "Étudiant surmotivé": 40,

    "Étudiant stratégique": 35,

    "Étudiant en amélioration": 45,

    "Étudiant en difficulté": 70,

    "Étudiant évitant l'échec": 65,

    "Étudiant à risque": 85,

    "Étudiant en progression": 40,

    "Étudiant acceptant l'échec": 55,

    "Étudiant inactif": 90,

    "Étudiant non engagé": 75,

    "Étudiant persévérant": 45,

    "Étudiant actif": 60

  };

  

  return riskLevels[profileTitle] || 50;

}



function showError(message) {

  const manifestList = document.getElementById("manifest-list");

  if (manifestList) {

    manifestList.innerHTML = 

      `<div class="manifest-item" style="background:#FFEBEE;color:#C62828;">

        ${message}<br>

        <small>Veuillez vérifier que le fichier scenarios.json est présent.</small>

      </div>`;

  }

  

  console.error(message);

  

  document.getElementById("prevScenario").disabled = true;

  document.getElementById("nextScenario").disabled = true;

}



// ================= CHARGER SCÉNARIO =================

function loadScenario(index) {

  console.log("Chargement scénario", index);

  if (!scenarios || scenarios.length === 0) {

    console.error("Aucun scénario disponible");

    return;

  }

  

  if (index < 0 || index >= scenarios.length) {

    console.warn(`Index ${index} hors limites (0-${scenarios.length-1})`);

    return;

  }

  

  currentScenarioIndex = index;

  const s = scenarios[index];



  const titleElement = document.getElementById("scenarioTitle");

  if (titleElement) {

    titleElement.textContent = `Scénario ${s.id}${s.title}`;

  }



  const manifestList = document.getElementById("manifest-list");

  if (manifestList) {

    manifestList.innerHTML = `

      <div class="manifest-item">

        <b>Type de Manifest :</b> ${s.manifest?.type || "Non spécifié"}<br>

        <b>Manifeste (écrit par l'étudiant) :</b> ${s.manifest?.manifeste || "Non disponible"}<br>

        <b>Description du Profil :</b> ${s.manifest?.description || "Non disponible"}

      </div>`;

  }



  if (s.competences) {

    updateCompactCompetences(s.competences);

  }



  if (s.radar && s.radar.length > 0) {

    radarMetrics = s.radar.filter(metric => metric.label !== "Engagement global");

  } else {

    radarMetrics = DEFAULT_RADAR_METRICS.map(metric => {

      const variation = (index % 7) * 5 - 15;

      const newValue = Math.max(10, Math.min(95, metric.value + variation));

      return {

        label: metric.label,

        value: newValue

      };

    });

  }

  

  updateCompactRadarMetricsGrid();

  drawRadar();

  updateCompactRadarBotMessage(s);

  drawCompactEnrichedHeatmapWithAxes(s);

  

  const modeSelect = document.getElementById("persistenceMode");

  if (modeSelect) {

    modeSelect.value = "combined";

    updatePersistenceIndicators("combined");

  }

  

  updatePerseveranceProfile(s.title);



  const reflagentElement = document.getElementById("reflagent");

  if (reflagentElement) {

    reflagentElement.textContent = s.reflAgent || "Message d'analyse non disponible pour ce scénario.";

  }



  updateNavButtons();

  updateStats(s);

  resetTrustEvaluation();

  

  loadRadarAudioForScenario(s.id);

  loadHeatmapAudioForScenario(s.id);

}



// ================= FONCTIONS POUR LA VERSION COMPACTE =================



function updateCompactCompetences(competences) {

  const container = document.getElementById("compact-competences");

  if (!container) return;

  

  container.innerHTML = '';

  

  if (!competences || competences.length === 0) {

    container.innerHTML = '<em>Aucune donnée de compétence disponible</em>';

    return;

  }

  

  const gridContainer = document.createElement('div');

  gridContainer.className = 'compact-competences-grid';

  

  const maxCompetences = 14;

  const displayedCompetences = competences.slice(0, maxCompetences);

  

  displayedCompetences.forEach(comp => {

    let color, colorClass;

    if (comp.value < 50) {

      color = '#E53935';

      colorClass = 'low';

    } else if (comp.value < 70) {

      color = '#FB8C00';

      colorClass = 'medium';

    } else {

      color = '#43A047';

      colorClass = 'high';

    }

    

    const compItem = document.createElement('div');

    compItem.className = 'compact-competence-matrix-item';

    compItem.innerHTML = `

      <div class="compact-matrix-competence-label">

        ${comp.label}

      </div>

      <div class="compact-matrix-competence-value ${colorClass}">

        ${comp.value}%

      </div>

      <div class="compact-matrix-competence-bar">

        <div class="compact-matrix-competence-fill" style="width: ${comp.value}%; background: ${color};">

        </div>

      </div>

      <div>

        <span>0%</span>

        <span>100%</span>

      </div>

    `;

    

    gridContainer.appendChild(compItem);

  });

  

  const emptySlots = maxCompetences - displayedCompetences.length;

  for (let i = 0; i < emptySlots; i++) {

    const emptyItem = document.createElement('div');

    emptyItem.className = 'compact-competence-matrix-item';

    emptyItem.style.opacity = '0.3';

    emptyItem.innerHTML = `

      <div class="compact-matrix-competence-label" style="color: #999;">

        Compétence non définie

      </div>

      <div class="compact-matrix-competence-value" style="color: #999;">

        --

      </div>

      <div class="compact-matrix-competence-bar">

        <div class="compact-matrix-competence-fill" style="width: 0%; background: #999;">

        </div>

      </div>

      <div>

        <span>0%</span>

        <span>100%</span>

      </div>

    `;

    gridContainer.appendChild(emptyItem);

  }

  

  container.appendChild(gridContainer);

}



function updateCompactRadarMetricsGrid() {

  const grid = document.getElementById("compact-radar-metrics-grid");

  if (!grid) return;

  

  grid.innerHTML = '';

  

  if (!radarMetrics || radarMetrics.length === 0) {

    grid.innerHTML = '<em>Aucune métrique radar disponible</em>';

    return;

  }

  

  radarMetrics.forEach(metric => {

    let colorClass = "";

    if (metric.value >= 70) colorClass = "high";

    else if (metric.value >= 40) colorClass = "medium";

    else colorClass = "low";

    

    let icon = "📊";

    if (metric.label.includes("Démarrage")) icon = "🚀";

    else if (metric.label.includes("Éléments des connaissances validées")) icon = "🎓";

    else if (metric.label.includes("Niveau moyen")) icon = "📈";

    else if (metric.label.includes("Taux d'erreur")) icon = "🎯";

    else if (metric.label.includes("Achèvement")) icon = "🏁";

    else if (metric.label.includes("Interactions")) icon = "📚";

    else if (metric.label.includes("Score")) icon = "🔧";

    

    let description = "";

    if (metric.label.includes("Démarrage")) description = "Rapidité d'initiation de l'activité d'apprentissage";

    else if (metric.label.includes("Éléments des connaissances validées")) description = "Taux de validation des skills";

    else if (metric.label.includes("Niveau moyen")) description = "Degré de maîtrise des compétences";

    else if (metric.label.includes("Taux d'erreur")) description = "Précision et attention";

    else if (metric.label.includes("Achèvement")) description = "Terminaison des tâches";

    else if (metric.label.includes("Interactions")) description = "Usage des micro-ressources (vidéos)";

    else if (metric.label.includes("Score")) description = "Degré d'activité et d'implication";

    

    const metricCard = document.createElement("div");

    metricCard.className = "compact-metric-card";

    metricCard.innerHTML = `

      <div class="compact-metric-icon">${icon}</div>

      <div class="compact-metric-name">${metric.label}</div>

      <div class="compact-metric-value ${colorClass}">${metric.value}%</div>

      <div class="compact-metric-description">${description}</div>

    `;

    

    grid.appendChild(metricCard);

  });

}



function updateCompactRadarBotMessage(scenario) {

  const radarBotContent = document.getElementById("compact-radar-bot-content");

  const radarBotInsights = document.getElementById("compact-radar-bot-insights");

  

  if (!radarBotContent || !radarBotInsights) return;

  

  const profileMessage = profileMessages[scenario.title] || {

    title: "Profil d'Apprentissage",

    message: "Analyse de votre profil d'apprentissage en cours...",

    insights: [

      { icon: "📊", text: "Évaluation indicateurs" },

      { icon: "🎯", text: "Forces et améliorations" },

      { icon: "🚀", text: "Recommandations" }

    ]

  };

  

  radarBotContent.innerHTML = `<strong>${profileMessage.title}</strong><br>${profileMessage.message}`;

  

  radarBotInsights.innerHTML = '';

  profileMessage.insights.forEach(insight => {

    const insightElement = document.createElement('div');

    insightElement.className = 'compact-radar-insight-item';

    insightElement.innerHTML = `

      <div class="radar-insight-icon">${insight.icon}</div>

      <div class="radar-insight-text">${insight.text}</div>

    `;

    radarBotInsights.appendChild(insightElement);

  });

}



function drawCompactEnrichedHeatmapWithAxes(scenario) {

  const canvas = document.getElementById("heatmap");

  if (!canvas) return;

  

  const ctx = canvas.getContext("2d");

  const cellSize = 15;

  const padding = 1;

  const days = ["L", "M", "M", "J", "V", "S", "D"];

  const weeks = 4;

  const totalDays = weeks * 7;

  

  ctx.clearRect(0, 0, canvas.width, canvas.height);

  

  const scenarioTitles = {

    1: { title: "Engagé mais désorganisé", emoji: "😅", pattern: "Effort concentré avant échéances" },

    2: { title: "Actif mais peu efficace", emoji: "😰", pattern: "Démarrage lent, accélération tardive" },

    3: { title: "Autonome et stratégique", emoji: "😊", pattern: "Travail régulier et équilibré" },

    4: { title: "Motivé et constant", emoji: "👍", pattern: "Rythme régulier toute la semaine" },

    5: { title: "Surinvestissement", emoji: "🔥", pattern: "Activité intense, risque de surcharge" },

    6: { title: "Stratégique et ciblé", emoji: "🎯", pattern: "Efforts concentrés sur les priorités" },

    7: { title: "Amélioration continue", emoji: "📈", pattern: "Progression visible semaine après semaine" },

    8: { title: "Difficultés persistantes", emoji: "😔", pattern: "Efforts dispersés, peu de régularité" },

    9: { title: "Évitement", emoji: "😨", pattern: "Activité minimale, pics sporadiques" },

    10: { title: "Risque d'abandon", emoji: "⚠️", pattern: "Très faible activité, irrégularité totale" },

    11: { title: "Progression technique", emoji: "🔧", pattern: "Amélioration régulière des compétences" },

    12: { title: "Résilience", emoji: "💪", pattern: "Persévérance malgré les difficultés" },

    13: { title: "Inactivité", emoji: "😴", pattern: "Très peu d'activité détectée" },

    14: { title: "Désengagement", emoji: "😑", pattern: "Activité sporadique et décroissante" },

    15: { title: "Persévérant malgré le doute", emoji: "🌱", pattern: "Accélération progressive en fin de semaine" },

    16: { title: "Actif mais à risque d'épuisement", emoji: "⚡", pattern: "Forte activité en début de semaine" }

  };

  

  const scenarioInfo = scenarioTitles[scenario.id] || { title: "Votre activité", emoji: "📊", pattern: "Schéma à analyser" };

  

  ctx.font = "bold 14px Arial";

  ctx.fillStyle = "#1976D2";

  ctx.textAlign = "center";

  ctx.fillText(`${scenarioInfo.emoji} ${scenarioInfo.title}`, canvas.width / 2, 25);

  

  ctx.font = "12px Arial";

  ctx.fillStyle = "#666";

  ctx.fillText(`${scenarioInfo.pattern}`, canvas.width / 2, 45);

  

  const activityData = generateCompactPersistenceData(scenario.id, totalDays);

  

  const colors = ["#EBEDF0", "#C6E48B", "#7BC96F", "#239A3B", "#196127"];

  

  const startX = 60;

  const startY = 80;

  

  ctx.font = "11px Arial";

  ctx.fillStyle = "#555";

  ctx.textAlign = "right";

  ctx.textBaseline = "middle";

  

  for (let weekday = 0; weekday < 7; weekday++) {

    const y = startY + weekday * (cellSize + padding) + cellSize / 2;

    ctx.fillText(days[weekday], startX - 10, y);

  }

  

  ctx.font = "11px Arial";

  ctx.fillStyle = "#555";

  ctx.textAlign = "center";

  ctx.textBaseline = "bottom";

  

  for (let week = 0; week < weeks; week++) {

    const x = startX + week * (cellSize * 7 + padding * 7) + (cellSize * 7) / 2;

    ctx.fillText(`S${week + 1}`, x, startY - 5);

  }

  

  ctx.font = "10px Arial";

  ctx.fillStyle = "#777";

  ctx.textAlign = "center";

  ctx.fillText("Semaines", canvas.width / 2, startY - 15);

  

  ctx.save();

  ctx.translate(startX - 25, startY + (cellSize * 7) / 2);

  ctx.rotate(-Math.PI / 2);

  ctx.fillText("Jours", 0, 0);

  ctx.restore();

  

  for (let day = 0; day < totalDays; day++) {

    const week = Math.floor(day / 7);

    const weekday = day % 7;

    

    const x = startX + week * (cellSize * 7 + padding * 7) + weekday * (cellSize + padding);

    const y = startY + weekday * (cellSize + padding);

    

    const intensity = activityData[day];

    

    ctx.fillStyle = colors[intensity];

    ctx.fillRect(x, y, cellSize, cellSize);

    

    if (weekday === 4) {

      ctx.strokeStyle = "#FF6B6B";

      ctx.lineWidth = 1.5;

    } else {

      ctx.strokeStyle = intensity > 0 ? "#239A3B" : "#eee";

      ctx.lineWidth = 0.5;

    }

    ctx.strokeRect(x, y, cellSize, cellSize);

  }

  

  analyzeCompactPersistenceMetrics(activityData, scenario.id);

  

  const currentMode = document.getElementById("persistenceMode").value;

  updatePersistenceIndicators(currentMode);

}



function updatePersistenceIndicators(mode) {

  const regularityIndicator = document.getElementById("regularity-indicator");

  const regularityDesc = document.getElementById("regularity-description");

  const deadlineIndicator = document.getElementById("deadline-indicator");

  const deadlineDesc = document.getElementById("deadline-description");

  const effortIndicator = document.getElementById("effort-indicator");

  const effortDesc = document.getElementById("effort-description");

  

  const regularityText = document.getElementById("compact-regularityText");

  

  if (!regularityIndicator || !deadlineIndicator || !effortIndicator) return;

  

  regularityIndicator.style.display = "none";

  regularityDesc.style.display = "none";

  deadlineIndicator.style.display = "none";

  deadlineDesc.style.display = "none";

  effortIndicator.style.display = "none";

  effortDesc.style.display = "none";

  

  const currentScenario = scenarios[currentScenarioIndex];

  if (!currentScenario) return;

  

  const profile = perseveranceProfiles[currentScenario.title];

  

  switch(mode) {

    case "regularity":

      regularityIndicator.style.display = "flex";

      regularityDesc.style.display = "block";

      if (regularityText) {

        regularityText.innerHTML = `

          <div style="font-size: 12px; color: #555; line-height: 1.4;">

            <strong>Analyse de la régularité du travail</strong><br>

            ${profile ? profile.interpretation : "La constance de l'activité de l'apprenant dans le temps."}

          </div>

        `;

      }

      break;

    case "deadline":

      deadlineIndicator.style.display = "flex";

      deadlineDesc.style.display = "block";

      if (regularityText) {

        regularityText.innerHTML = `

          <div style="font-size: 12px; color: #555; line-height: 1.4;">

            <strong>Analyse de la gestion des échéances</strong><br>

            Capacité à respecter les délais et à organiser le travail avant les dates limites.

          </div>

        `;

      }

      break;

    case "effortPattern":

      effortIndicator.style.display = "flex";

      effortDesc.style.display = "block";

      if (regularityText) {

        regularityText.innerHTML = `

          <div style="font-size: 12px; color: #555; line-height: 1.4;">

            <strong>Analyse du schéma d'effort</strong><br>

            La dynamique temporelle de l'effort et la distribution de l'activité.

          </div>

        `;

      }

      break;

    case "combined":

      regularityIndicator.style.display = "flex";

      regularityDesc.style.display = "block";

      deadlineIndicator.style.display = "flex";

      deadlineDesc.style.display = "block";

      effortIndicator.style.display = "flex";

      effortDesc.style.display = "block";

      if (regularityText) {

        regularityText.innerHTML = `

          <div style="font-size: 12px; color: #555; line-height: 1.4;">

            <strong>Vue combinée</strong><br>

            ${profile ? profile.interpretation : "Analyse complète de la persévérance et de la gestion des efforts."}

          </div>

        `;

      }

      break;

    default:

      regularityIndicator.style.display = "flex";

      regularityDesc.style.display = "block";

      deadlineIndicator.style.display = "flex";

      deadlineDesc.style.display = "block";

      effortIndicator.style.display = "flex";

      effortDesc.style.display = "block";

  }

}



function updatePerseveranceProfile(scenarioTitle) {

  const profile = perseveranceProfiles[scenarioTitle];

  

  const regularityScore = document.getElementById("compact-regularityScore");

  const deadlineScore = document.getElementById("compact-deadlineScore");

  const effortPattern = document.getElementById("compact-effortPattern");

  const regularityText = document.getElementById("compact-regularityText");

  

  if (!profile) {

    if (regularityText) {

      regularityText.innerHTML = `

        <div style="font-size: 12px; color: #555; line-height: 1.4;">

          Analyse de persévérance non disponible pour ce profil.

        </div>

      `;

    }

    return;

  }

  

  if (regularityScore) {

    regularityScore.textContent = profile.regularity + "%";

    regularityScore.style.color = profile.color;

  }

  

  if (deadlineScore) {

    deadlineScore.textContent = profile.deadline + "%";

    deadlineScore.style.color = profile.color;

  }

  

  if (effortPattern) {

    effortPattern.textContent = profile.effortPattern;

    effortPattern.style.color = profile.color;

  }

  

  if (regularityText) {

    regularityText.innerHTML = `

      <div style="display: flex; align-items: center; gap: 8px; margin-bottom: 5px;">

        <div style="width: 12px; height: 12px; border-radius: 50%; background: ${profile.color};"></div>

        <strong style="color: ${profile.color};">${profile.level}</strong>

      </div>

      <div style="font-size: 12px; color: #555; line-height: 1.4;">

        ${profile.interpretation}

      </div>

    `;

  }

}



function generateCompactPersistenceData(scenarioId, totalDays) {

  const data = new Array(totalDays).fill(0);

  

  const profile = Object.values(perseveranceProfiles)[scenarioId - 1] || perseveranceProfiles["Étudiant engagé"];

  

  for (let i = 0; i < totalDays; i++) {

    const weekday = i % 7;

    const week = Math.floor(i / 7);

    const progress = i / totalDays;

    

    if (profile.effortPattern.includes("Pic d'activité jeudi/vendredi")) {

      if (weekday === 3 || weekday === 4) {

        data[i] = 4;

      } else if (weekday === 5 || weekday === 6) {

        data[i] = 1;

      } else {

        data[i] = 2;

      }

    } else if (profile.effortPattern.includes("Travail weekend")) {

      if (weekday === 5 || weekday === 6) {

        data[i] = 4;

      } else {

        data[i] = 2;

      }

    } else if (profile.effortPattern.includes("Accélération progressive")) {

      data[i] = Math.min(4, Math.floor(progress * 4) + 1);

    } else if (profile.effortPattern.includes("Activité minimale")) {

      if (week === 0) {

        data[i] = Math.random() > 0.7 ? 1 : 0;

      } else {

        data[i] = Math.random() > 0.8 ? 1 : 0;

      }

    } else {

      if (weekday === 5 || weekday === 6) {

        data[i] = 2;

      } else {

        data[i] = 3;

      }

    }

  }

  

  return data;

}



function analyzeCompactPersistenceMetrics(activityData, scenarioId) {

  // Fonction conservée pour compatibilité

}



// ================= RADAR =================

function drawRadar() {

  const canvas = document.getElementById("radar");

  if (!canvas) {

    console.error("Canvas radar non trouvé!");

    return;

  }

  

  const ctx = canvas.getContext("2d");

  const cx = canvas.width / 2;

  const cy = canvas.height / 2;

  const radius = Math.min(cx, cy) - 40;

  const n = radarMetrics.length;



  ctx.clearRect(0, 0, canvas.width, canvas.height);



  for (let i = 1; i <= 5; i++) {

    ctx.beginPath();

    ctx.arc(cx, cy, (radius / 5) * i, 0, 2 * Math.PI);

    ctx.strokeStyle = "#e0e0e0";

    ctx.stroke();

    

    if (i % 2 === 0 || i === 1 || i === 5) {

      const percent = (i * 20) + "%";

      ctx.save();

      ctx.font = "10px Arial";

      ctx.fillStyle = "#666";

      ctx.textAlign = "center";

      ctx.textBaseline = "middle";

      ctx.fillText(percent, cx, cy - (radius / 5) * i - 5);

      ctx.restore();

    }

  }



  radarMetrics.forEach((m, i) => {

    const angle = (2 * Math.PI * i) / n - Math.PI / 2;



    ctx.beginPath();

    ctx.moveTo(cx, cy);

    ctx.lineTo(cx + radius * Math.cos(angle), cy + radius * Math.sin(angle));

    ctx.strokeStyle = "#b0bec5";

    ctx.stroke();



    const tx = cx + (radius + 25) * Math.cos(angle);

    const ty = cy + (radius + 25) * Math.sin(angle);



    ctx.font = "10px Arial";

    ctx.fillStyle = "#000";

    ctx.textAlign = angle > Math.PI / 2 || angle < -Math.PI / 2 ? "right" : "left";

    ctx.textBaseline = "middle";

    

    let label = m.label;

    if (label.length > 15) {

      label = label.substring(0, 12) + "...";

    }

    ctx.fillText(label, tx, ty);

  });



  ctx.beginPath();

  radarMetrics.forEach((m, i) => {

    const angle = (2 * Math.PI * i) / n - Math.PI / 2;

    const r = radius * (m.value / 100);

    const x = cx + r * Math.cos(angle);

    const y = cy + r * Math.sin(angle);

    i === 0 ? ctx.moveTo(x, y) : ctx.lineTo(x, y);

  });

  ctx.closePath();



  ctx.fillStyle = "rgba(25,118,210,0.25)";

  ctx.fill();

  ctx.strokeStyle = "#1976D2";

  ctx.lineWidth = 2;

  ctx.stroke();



  radarMetrics.forEach((m, i) => {

    const angle = (2 * Math.PI * i) / n - Math.PI / 2;

    const r = radius * (m.value / 100);

    const x = cx + r * Math.cos(angle);

    const y = cy + r * Math.sin(angle);



    ctx.beginPath();

    ctx.arc(x, y, 4, 0, 2 * Math.PI);

    ctx.fillStyle = "#1976D2";

    ctx.fill();

    

    ctx.save();

    ctx.font = "bold 11px Arial";

    ctx.fillStyle = "#1976D2";

    ctx.textAlign = "center";

    ctx.textBaseline = "middle";

    

    const labelOffset = 15;

    const labelX = x + labelOffset * Math.cos(angle);

    const labelY = y + labelOffset * Math.sin(angle);

    

    ctx.fillStyle = "rgba(255, 255, 255, 0.8)";

    ctx.fillRect(labelX - 15, labelY - 8, 30, 16);

    

    ctx.fillStyle = "#1976D2";

    ctx.fillText(m.value + "%", labelX, labelY);

    ctx.restore();

  });

}



// ================= NAVIGATION =================

function updateNavButtons() {

  if (!scenarios || scenarios.length === 0) {

    document.getElementById("prevScenario").disabled = true;

    document.getElementById("nextScenario").disabled = true;

    return;

  }

  

  document.getElementById("prevScenario").disabled = currentScenarioIndex === 0;

  document.getElementById("nextScenario").disabled = currentScenarioIndex === scenarios.length - 1;

}



// ================= BOUTON LECTURE CROISÉE =================

function navigateToCrossReading() {

  console.log('Navigation vers la page de lecture croisée...');

  

  const reflectionDiv = document.getElementById('reflection');

  if (reflectionDiv) {

    reflectionDiv.style.opacity = '0.7';

    reflectionDiv.style.transition = 'opacity 0.3s ease';

  }

  

  setTimeout(() => {

    const possiblePaths = [

      'cross_reading/cross_readers.html',

      './cross_reading/cross_readers.html',

      '../cross_reading/cross_readers.html',

      'cross_readers.html',

      './cross_readers.html'

    ];

    

    function tryRedirect(index) {

      if (index >= possiblePaths.length) {

        console.error('Page de lecture croisée introuvable');

        showNotification('Erreur', 'Page de lecture croisée introuvable', 'error');

        

        if (reflectionDiv) {

          reflectionDiv.style.opacity = '1';

        }

        return;

      }

      

      const path = possiblePaths[index];

      

      fetch(path, { method: 'HEAD' })

        .then(response => {

          if (response.ok) {

            window.location.href = path;

          } else {

            tryRedirect(index + 1);

          }

        })

        .catch(() => {

          tryRedirect(index + 1);

        });

    }

    

    tryRedirect(0);

  }, 300);

}



// ================= MÉTRIQUES DE CONFIANCE =================

function initTrustStars(){

  console.log("Initialisation des étoiles...");

  

  for (const key in trustMetrics) {

    trustMetrics[key] = 0;

  }

  

  let starsCreated = 0;

  

  document.querySelectorAll(".stars").forEach(div => {

    const metric = div.dataset.metric;

    console.log(`Création des étoiles pour: ${metric}`);

    

    if (!trustMetrics.hasOwnProperty(metric)) {

      console.error(`Métrique inconnue: ${metric}`);

      return;

    }

    

    div.innerHTML = '';

    

    for (let i = 1; i <= 5; i++) {

      const star = document.createElement("span");

      star.textContent = "★";

      star.classList.add("inactive");

      star.style.cursor = "pointer";

      star.title = `${i} étoile${i > 1 ? 's' : ''}`;

      

      star.dataset.value = i;

      star.dataset.metric = metric;

      

      star.onclick = function() {

        const value = parseInt(this.dataset.value);

        const metric = this.dataset.metric;

        console.log(`Clic sur ${metric}: ${value} étoiles`);

        

        trustMetrics[metric] = value;

        

        const allStarsInGroup = this.parentElement.children;

        for (let j = 0; j < allStarsInGroup.length; j++) {

          const starElem = allStarsInGroup[j];

          const starValue = parseInt(starElem.dataset.value);

          

          if (starValue <= value) {

            starElem.classList.remove("inactive");

            starElem.classList.add("active");

          } else {

            starElem.classList.add("inactive");

            starElem.classList.remove("active");

          }

        }

        

        updateTrustBar();

      };

      

      div.appendChild(star);

      starsCreated++;

    }

  });

  

  console.log(`${starsCreated} étoiles créées pour ${Object.keys(trustMetrics).length} métriques`);

  console.log("Métriques initialisées:", trustMetrics);

}



function updateTrustBar(){

  console.log("=== MISE À JOUR BARRE DE CONFIANCE ===");

  

  let scoreTotal = 0;

  let scoreMaxPossible = 0;

  let details = [];

  

  for (const metric in trustMetrics) {

    const valeur = trustMetrics[metric];

    const poids = trustWeights[metric];

    const contribution = valeur * poids;

    const maxContribution = 5 * poids;

    

    scoreTotal += contribution;

    scoreMaxPossible += maxContribution;

    

    details.push({

trique: metric,

      valeur: valeur,

      poids: poids,

      contribution: contribution.toFixed(2),

      max: maxContribution.toFixed(2)

    });

  }

  

  console.log("Détails du calcul:");

  details.forEach(d => {

    console.log(`${d.métrique}: ${d.valeur}/5 × ${d.poids} = ${d.contribution} / ${d.max}`);

  });

  

  console.log(`Total: ${scoreTotal.toFixed(2)} / ${scoreMaxPossible.toFixed(2)}`);

  

  let pourcentage = 0;

  if (scoreMaxPossible > 0) {

    pourcentage = Math.round((scoreTotal / scoreMaxPossible) * 100);

  }

  

  console.log(`Pourcentage calculé: ${pourcentage}%`);

  

  const barre = document.getElementById("trustBar");

  if (barre) {

    barre.style.width = pourcentage + "%";

    barre.textContent = pourcentage + "%";

    

    if (pourcentage < 40) {

      barre.style.background = "#E53935";

      barre.title = `Faible confiance (${pourcentage}%)`;

    } else if (pourcentage < 70) {

      barre.style.background = "#FB8C00";

      barre.title = `Confiance moyenne (${pourcentage}%)`;

    } else {

      barre.style.background = "#43A047";

      barre.title = `Forte confiance (${pourcentage}%)`;

    }

    

    console.log(`Barre mise à jour: ${pourcentage}% (width: ${pourcentage}%)`);

  } else {

    console.error("Élément #trustBar non trouvé!");

  }

  

  const avgTrustElem = document.getElementById("avgTrustScore");

  if (avgTrustElem) {

    avgTrustElem.textContent = pourcentage + "%";

    console.log(`Statistique moyenne mise à jour: ${pourcentage}%`);

  }

  

  console.log("=== RÉSUMÉ FINAL ===");

  console.log(`Indice global de confiance: ${pourcentage}%`);

  console.log("Valeurs des métriques:", JSON.stringify(trustMetrics, null, 2));

  console.log("====================");

  

  return pourcentage;

}



function initTrustSave(){

  const saveBtn = document.getElementById("saveTrustBtn");

  if (!saveBtn) {

    console.error("Bouton de sauvegarde non trouvé!");

    return;

  }

  

  saveBtn.onclick = () => {

    console.log("=== DÉBUT SAUVEGARDE ===");

    

    const gdprAccept = document.getElementById('gdprAccept').checked;

    const gdprDecline = document.getElementById('gdprDecline').checked;

    

    let evaluatorName = "";

    let evaluatorEmail = "";

    let evaluatorRole = "";

    let expertiseLevel = "";

    let messageMastery = "";

    

    if (gdprAccept) {

      evaluatorName = document.getElementById("evaluatorName").value.trim();

      evaluatorEmail = document.getElementById("evaluatorEmail").value.trim();

      evaluatorRole = document.getElementById("evaluatorRole").value;

      expertiseLevel = document.getElementById("expertiseLevel").value;

      messageMastery = document.getElementById("messageMastery").value;

    }

    

    const comment = document.getElementById("trustComment").value;

    const msgDiv = document.getElementById("saveTrustMsg");



    if (!gdprAccept && !gdprDecline) {

      const message = "❌ Veuillez sélectionner une option de consentement RGPD.";

      console.error(message);

      

      if (msgDiv) {

        msgDiv.textContent = message;

        msgDiv.style.background = "#FFEBEE";

        msgDiv.style.color = "#C62828";

      }

      return;

    }



    if (gdprAccept) {

      if (!evaluatorRole) {

        const message = "❌ Veuillez sélectionner votre rôle.";

        console.error(message);

        

        if (msgDiv) {

          msgDiv.textContent = message;

          msgDiv.style.background = "#FFEBEE";

          msgDiv.style.color = "#C62828";

        }

        return;

      }

      

      if (!expertiseLevel) {

        const message = "❌ Veuillez sélectionner votre niveau d'expertise en réflexivité.";

        console.error(message);

        

        if (msgDiv) {

          msgDiv.textContent = message;

          msgDiv.style.background = "#FFEBEE";

          msgDiv.style.color = "#C62828";

        }

        return;

      }

      

      if (!messageMastery) {

        const message = "❌ Veuillez sélectionner votre niveau de maîtrise de l'apprentissage auto-régulé.";

        console.error(message);

        

        if (msgDiv) {

          msgDiv.textContent = message;

          msgDiv.style.background = "#FFEBEE";

          msgDiv.style.color = "#C62828";

        }

        return;

      }

    }



    let hasEvaluation = false;

    for (const metric in trustMetrics) {

      if (trustMetrics[metric] > 0) {

        hasEvaluation = true;

        break;

      }

    }

    

    if (!hasEvaluation) {

      const message = "⚠️ Veuillez évaluer au moins une métrique avant de sauvegarder.";

      console.warn(message);

      

      if (msgDiv) {

        msgDiv.textContent = message;

        msgDiv.style.background = "#FFF3E0";

        msgDiv.style.color = "#EF6C00";

      }

      return;

    }



    const trustScore = updateTrustBar();

    

    console.log(`Indice calculé pour sauvegarde: ${trustScore}%`);



    const data = {

      timestamp: new Date().toISOString(),

      scenario_id: scenarios[currentScenarioIndex].id,

      scenario_title: scenarios[currentScenarioIndex].title,

      ar: trustMetrics["AR"],

      ae: trustMetrics["AE"],

      esr: trustMetrics["ESR"],

      sdm: trustMetrics["SDM"],

      sm: trustMetrics["SM"],

      trust_score: trustScore,

      comment: comment || "",

      consent: gdprAccept ? "accept" : "decline",

      evaluator_name: gdprAccept ? (evaluatorName || "") : "",

      evaluator_email: gdprAccept ? (evaluatorEmail || "") : "",

      role: gdprAccept ? evaluatorRole : "",

      expertise_reflexivite: gdprAccept ? expertiseLevel : "",

      maitrise_srl: gdprAccept ? messageMastery : ""

    };

    

    console.log("Données à envoyer:", JSON.stringify(data, null, 2));



    if (msgDiv) {

      msgDiv.innerHTML = `

        <div style="display: flex; align-items: center; gap: 10px;">

          <div class="loading"></div>

          <div>Envoi en cours vers le serveur...</div>

        </div>

      `;

      msgDiv.style.background = "#E3F2FD";

      msgDiv.style.color = "#1976D2";

    }



    fetch(GOOGLE_SCRIPT_URL, {

      method: 'POST',

      mode: 'no-cors',

      headers: {

        'Content-Type': 'application/x-www-form-urlencoded',

      },

      body: new URLSearchParams(data)

    })

    .then(() => {

      console.log("✅ Données envoyées avec succès");

      

      if (msgDiv) {

        const nameDisplay = gdprAccept ? (evaluatorName || "Évaluateur") : "Évaluateur anonyme";

        msgDiv.innerHTML = `

          <div style="display: flex; align-items: center; gap: 10px;">

            <div style="font-size: 24px;">✅</div>

            <div>

              <strong>Évaluation sauvegardée avec succès !</strong><br>

              <small>Merci ${nameDisplay} pour votre contribution.</small><br>

              <small><em>Indice global: ${trustScore}%</em></small>

            </div>

          </div>

        `;

        msgDiv.style.background = "#E8F5E9";

        msgDiv.style.color = "#2E7D32";

        msgDiv.style.padding = "15px";

      }

      

      setTimeout(() => {

        if (msgDiv) {

          msgDiv.innerHTML = "";

          msgDiv.style.background = "";

          msgDiv.style.color = "";

          msgDiv.style.padding = "";

        }

      }, 5000);

    })

    .catch(error => {

      console.error("❌ Erreur lors de l'envoi:", error);

      

      if (msgDiv) {

        msgDiv.innerHTML = `

          <div style="display: flex; align-items: center; gap: 10px;">

            <div style="font-size: 24px;">❌</div>

            <div>

              <strong>Erreur lors de la sauvegarde</strong><br>

              <small>${error.message}</small><br>

              <small>Veuillez réessayer ou contacter l'administrateur.</small>

            </div>

          </div>

        `;

        msgDiv.style.background = "#FFEBEE";

        msgDiv.style.color = "#C62828";

        msgDiv.style.padding = "15px";

      }

    });

  };

  

  console.log("✅ Bouton de sauvegarde initialisé avec Google Sheets");

}



function resetTrustEvaluation() {

  console.log("Réinitialisation de l'évaluation...");

  

  for (const key in trustMetrics) {

    trustMetrics[key] = 0;

  }

  

  document.querySelectorAll(".stars").forEach(div => {

    Array.from(div.children).forEach(star => {

      star.classList.add("inactive");

      star.classList.remove("active");

    });

  });

  

  updateTrustBar();

  

  const commentField = document.getElementById("trustComment");

  if (commentField) {

    commentField.value = "";

  }

  

  console.log("Évaluation réinitialisée");

}



// ================= FONCTIONS UTILITAIRES =================



function updateStats(scenario) {

  if (!scenario) return;

  

  const currentScenarioNum = document.getElementById("currentScenarioNum");

  const riskLevelElem = document.getElementById("riskLevel");

  const avgActivityElem = document.getElementById("avgActivity");

  

  if (currentScenarioNum) {

    currentScenarioNum.textContent = scenario.id || "-";

  }

  

  if (riskLevelElem) {

    const risk = scenario.risk || 50;

    let riskLevel = "Moyen";

    let riskColor = "#FB8C00";

    

    if (risk < 40) {

      riskLevel = "Faible";

      riskColor = "#43A047";

    } else if (risk > 70) {

      riskLevel = "Élevé";

      riskColor = "#E53935";

    }

    

    riskLevelElem.textContent = riskLevel;

    riskLevelElem.style.color = riskColor;

  }

  

  if (avgActivityElem && scenario.radar && scenario.radar.length > 0) {

    const filteredRadar = scenario.radar.filter(metric => metric.label !== "Engagement global");

    const avgRadar = filteredRadar.reduce((sum, item) => sum + item.value, 0) / filteredRadar.length;

    avgActivityElem.textContent = Math.round(avgRadar) + "%";

  }

}



function fillSampleEvaluator() {

  document.getElementById('gdprAccept').checked = true;

  document.getElementById('gdprDecline').checked = false;

  

  initGDPR();

  

  document.getElementById("evaluatorName").value = "Martin Sophie";

  document.getElementById("evaluatorEmail").value = "sophie.martin@exemple.fr";

  document.getElementById("evaluatorRole").value = "enseignant";

  document.getElementById("messageMastery").value = "intermediaire_srl";

  document.getElementById("expertiseLevel").value = "avance";

  

  showNotification("Exemple", "Champs d'évaluateur remplis avec un exemple", "info");

}



function clearEvaluatorFields() {

  document.getElementById('gdprDecline').checked = true;

  document.getElementById('gdprAccept').checked = false;

  

  initGDPR();

  

  showNotification("Champs effacés", "Les informations d'évaluateur ont été effacées", "info");

}



function showNotification(title, message, type = "info") {

  console.log(`[${type}] ${title}: ${message}`);

  

  const msgDiv = document.getElementById("saveTrustMsg");

  if (msgDiv) {

    msgDiv.textContent = `${title}: ${message}`;

    msgDiv.style.background = type === "success" ? "#E8F5E9" : 

                             type === "error" ? "#FFEBEE" : "#E3F2FD";

    msgDiv.style.color = type === "success" ? "#2E7D32" : 

                        type === "error" ? "#C62828" : "#1565C0";

    

    setTimeout(() => {

      msgDiv.textContent = "";

      msgDiv.style.background = "";

      msgDiv.style.color = "";

    }, 5000);

  }

}



function changePersistenceAnalysis() {

  const modeSelect = document.getElementById("persistenceMode");

  if (!modeSelect) return;

  

  const mode = modeSelect.value;

  const currentScenario = scenarios[currentScenarioIndex];

  

  if (!currentScenario) return;

  

  drawCompactEnrichedHeatmapWithAxes(currentScenario);

  

  updatePersistenceIndicators(mode);

}



window.changePersistenceAnalysis = changePersistenceAnalysis;

window.updateStats = updateStats;

window.showNotification = showNotification;

window.fillSampleEvaluator = fillSampleEvaluator;

window.clearEvaluatorFields = clearEvaluatorFields;

window.loadScenario = loadScenario;

window.playRadarNarration = playRadarNarration;

window.pauseRadarNarration = pauseRadarNarration;

window.stopRadarNarration = stopRadarNarration;

window.playHeatmapNarration = playHeatmapNarration;

window.pauseHeatmapNarration = pauseHeatmapNarration;

window.stopHeatmapNarration = stopHeatmapNarration;

</script>

</div>

<div style="

    margin-top: 40px;

    padding: 20px;

    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    border-top: 1px solid #e0e0e0;

    text-align: center;

    color: #666;

    font-size: 14px;

    line-height: 1.6;

    border-radius: 0 0 20px 20px;

">
    <div style="font-weight: bold; color: #1976D2; margin-bottom: 8px;">
        Laboratoire d'informatique de l'Université du Mans
    </div>
    <div>Bâtiment IC2</div>
    <div>Avenue Olivier Messiaen</div>
    <div>F-72085 - LE MANS CEDEX 9</div>
    <div>Tél : +33 (0) 2 43 83 38 58</div>
</div>

</body>
</html>