File size: 3,090 Bytes
41cacc0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9e66e53
 
 
 
 
 
 
41cacc0
 
9e66e53
 
 
 
41cacc0
 
9e66e53
 
 
 
 
 
 
41cacc0
 
 
9e66e53
 
 
 
 
 
 
 
41cacc0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    width: 320px;
}

.controls-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    cursor: grab;
}

.controls-title:active {
    cursor: grabbing;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.control-group {
    text-align: center;
}

.control-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.slider {
    width: 100%;
}

.slider-value {
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    font-size: 16px;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.confusion-matrix-layout {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto; /* Center the block horizontally */
    top: 50%;       /* Center the block vertically */
    transform: translateY(-50%);
}

.matrix-ylabel,
.matrix-xlabel {
    position: absolute;
    font-weight: bold;
    color: #555;
    font-style: italic;
    white-space: nowrap;
}

.matrix-ylabel {
    top: 50%;
    left: -20px; /* Position label just outside the container */
    transform: translateY(-50%) rotate(-90deg);
}

.matrix-xlabel {
    bottom: -25px; /* Position label just outside the container */
    left: 50%;
    transform: translateX(-50%);
}

.matrix-canvas-container {
    width: 100%;
    height: 100%;
}

#matrixChart {
    max-width: 100%;
    max-height: 100%;
}

/* [NOUVEAU] Style pour le footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

@media (max-width: 1200px) {
    .charts-container {
        grid-template-columns: 1fr;
    }

    .floating-controls {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
}