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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>PerseverAI - Compagnon Pédagogique</title>
|
| 7 |
+
|
| 8 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 10 |
+
|
| 11 |
+
<style>
|
| 12 |
+
:root {
|
| 13 |
+
--primary: #1e1e1e;
|
| 14 |
+
--primary-dark: #000000;
|
| 15 |
+
--secondary: #3a3a3a;
|
| 16 |
+
--success: #2e7d32;
|
| 17 |
+
--warning: #b76e0e;
|
| 18 |
+
--danger: #c62828;
|
| 19 |
+
--info: #0d47a1;
|
| 20 |
+
--purple: #4a148c;
|
| 21 |
+
--gray-50: #fafafa;
|
| 22 |
+
--gray-100: #f5f5f5;
|
| 23 |
+
--gray-200: #e0e0e0;
|
| 24 |
+
--gray-600: #616161;
|
| 25 |
+
--gray-800: #212121;
|
| 26 |
+
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
| 27 |
+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 31 |
+
|
| 32 |
+
body {
|
| 33 |
+
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
| 34 |
+
background: var(--gray-50);
|
| 35 |
+
color: var(--gray-800);
|
| 36 |
+
line-height: 1.5;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
|
| 40 |
+
|
| 41 |
+
.header {
|
| 42 |
+
background: white;
|
| 43 |
+
border-radius: 12px;
|
| 44 |
+
padding: 24px 32px;
|
| 45 |
+
margin-bottom: 24px;
|
| 46 |
+
box-shadow: var(--shadow-sm);
|
| 47 |
+
border: 1px solid var(--gray-200);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.header h1 { font-size: 1.75rem; font-weight: 600; color: var(--gray-800); margin-bottom: 8px; }
|
| 51 |
+
.header p { color: var(--gray-600); font-size: 0.9rem; }
|
| 52 |
+
.badge { display: inline-block; background: var(--gray-100); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; color: var(--gray-600); margin-top: 12px; }
|
| 53 |
+
|
| 54 |
+
.nav-tabs {
|
| 55 |
+
display: flex;
|
| 56 |
+
background: white;
|
| 57 |
+
border-radius: 12px;
|
| 58 |
+
border: 1px solid var(--gray-200);
|
| 59 |
+
overflow-x: auto;
|
| 60 |
+
margin-bottom: 24px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.nav-tab {
|
| 64 |
+
padding: 14px 20px;
|
| 65 |
+
background: transparent;
|
| 66 |
+
border: none;
|
| 67 |
+
font-size: 0.9rem;
|
| 68 |
+
font-weight: 500;
|
| 69 |
+
color: var(--gray-600);
|
| 70 |
+
cursor: pointer;
|
| 71 |
+
transition: all 0.2s;
|
| 72 |
+
white-space: nowrap;
|
| 73 |
+
border-bottom: 2px solid transparent;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.nav-tab:hover { color: var(--primary); background: var(--gray-50); }
|
| 77 |
+
.nav-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
|
| 78 |
+
|
| 79 |
+
.card {
|
| 80 |
+
background: white;
|
| 81 |
+
border-radius: 12px;
|
| 82 |
+
border: 1px solid var(--gray-200);
|
| 83 |
+
padding: 24px;
|
| 84 |
+
margin-bottom: 24px;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.card-header {
|
| 88 |
+
display: flex;
|
| 89 |
+
justify-content: space-between;
|
| 90 |
+
align-items: center;
|
| 91 |
+
margin-bottom: 20px;
|
| 92 |
+
padding-bottom: 16px;
|
| 93 |
+
border-bottom: 1px solid var(--gray-200);
|
| 94 |
+
flex-wrap: wrap;
|
| 95 |
+
gap: 12px;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.card-header h3 { font-size: 1.25rem; font-weight: 600; color: var(--gray-800); }
|
| 99 |
+
|
| 100 |
+
.form-group { margin-bottom: 20px; }
|
| 101 |
+
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--gray-600); margin-bottom: 8px; }
|
| 102 |
+
.form-control {
|
| 103 |
+
width: 100%;
|
| 104 |
+
padding: 10px 14px;
|
| 105 |
+
border: 1px solid var(--gray-200);
|
| 106 |
+
border-radius: 8px;
|
| 107 |
+
font-size: 0.9rem;
|
| 108 |
+
transition: all 0.2s;
|
| 109 |
+
}
|
| 110 |
+
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.1); }
|
| 111 |
+
.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
|
| 112 |
+
.form-col { flex: 1; min-width: 200px; }
|
| 113 |
+
|
| 114 |
+
.btn {
|
| 115 |
+
padding: 10px 18px;
|
| 116 |
+
border-radius: 8px;
|
| 117 |
+
font-size: 0.85rem;
|
| 118 |
+
font-weight: 500;
|
| 119 |
+
cursor: pointer;
|
| 120 |
+
transition: all 0.2s;
|
| 121 |
+
border: none;
|
| 122 |
+
}
|
| 123 |
+
.btn-primary { background: var(--primary); color: white; }
|
| 124 |
+
.btn-primary:hover { background: var(--primary-dark); }
|
| 125 |
+
.btn-secondary { background: white; border: 1px solid var(--gray-200); color: var(--gray-600); }
|
| 126 |
+
.btn-secondary:hover { background: var(--gray-50); }
|
| 127 |
+
.btn-large { padding: 12px 24px; font-size: 0.9rem; }
|
| 128 |
+
|
| 129 |
+
/* Planning Stats Cards */
|
| 130 |
+
.planning-stats {
|
| 131 |
+
display: grid;
|
| 132 |
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
| 133 |
+
gap: 16px;
|
| 134 |
+
margin-bottom: 28px;
|
| 135 |
+
background: var(--gray-50);
|
| 136 |
+
border-radius: 16px;
|
| 137 |
+
padding: 20px;
|
| 138 |
+
}
|
| 139 |
+
.planning-stat-item {
|
| 140 |
+
text-align: center;
|
| 141 |
+
background: white;
|
| 142 |
+
padding: 16px;
|
| 143 |
+
border-radius: 12px;
|
| 144 |
+
border: 1px solid var(--gray-200);
|
| 145 |
+
}
|
| 146 |
+
.planning-stat-number {
|
| 147 |
+
font-size: 2rem;
|
| 148 |
+
font-weight: 700;
|
| 149 |
+
color: var(--primary);
|
| 150 |
+
}
|
| 151 |
+
.planning-stat-label {
|
| 152 |
+
font-size: 0.75rem;
|
| 153 |
+
color: var(--gray-600);
|
| 154 |
+
margin-top: 4px;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* Planning Table */
|
| 158 |
+
.planning-sessions-table {
|
| 159 |
+
width: 100%;
|
| 160 |
+
border-collapse: collapse;
|
| 161 |
+
margin-top: 20px;
|
| 162 |
+
}
|
| 163 |
+
.planning-sessions-table th {
|
| 164 |
+
text-align: left;
|
| 165 |
+
padding: 14px 12px;
|
| 166 |
+
background: var(--gray-50);
|
| 167 |
+
border-bottom: 2px solid var(--gray-200);
|
| 168 |
+
font-weight: 600;
|
| 169 |
+
font-size: 0.8rem;
|
| 170 |
+
color: var(--gray-600);
|
| 171 |
+
}
|
| 172 |
+
.planning-sessions-table td {
|
| 173 |
+
padding: 16px 12px;
|
| 174 |
+
border-bottom: 1px solid var(--gray-200);
|
| 175 |
+
vertical-align: top;
|
| 176 |
+
}
|
| 177 |
+
.session-type-badge {
|
| 178 |
+
display: inline-block;
|
| 179 |
+
padding: 4px 10px;
|
| 180 |
+
border-radius: 20px;
|
| 181 |
+
font-size: 0.7rem;
|
| 182 |
+
font-weight: 500;
|
| 183 |
+
}
|
| 184 |
+
.type-apprentissage { background: #e0e0e0; color: #1e1e1e; }
|
| 185 |
+
.type-consolidation { background: #d0d0d0; color: #1e1e1e; }
|
| 186 |
+
.type-maintien { background: #c0c0c0; color: #1e1e1e; }
|
| 187 |
+
|
| 188 |
+
.retention-slider {
|
| 189 |
+
width: 100%;
|
| 190 |
+
margin: 15px 0;
|
| 191 |
+
}
|
| 192 |
+
.retention-slider input {
|
| 193 |
+
width: 100%;
|
| 194 |
+
cursor: pointer;
|
| 195 |
+
accent-color: var(--primary);
|
| 196 |
+
}
|
| 197 |
+
.retention-labels {
|
| 198 |
+
display: flex;
|
| 199 |
+
justify-content: space-between;
|
| 200 |
+
font-size: 0.7rem;
|
| 201 |
+
color: var(--gray-600);
|
| 202 |
+
margin-top: 5px;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.time-slots-group {
|
| 206 |
+
display: flex;
|
| 207 |
+
flex-wrap: wrap;
|
| 208 |
+
gap: 12px;
|
| 209 |
+
margin-top: 8px;
|
| 210 |
+
}
|
| 211 |
+
.time-slot-checkbox {
|
| 212 |
+
display: flex;
|
| 213 |
+
align-items: center;
|
| 214 |
+
gap: 6px;
|
| 215 |
+
background: var(--gray-50);
|
| 216 |
+
padding: 6px 12px;
|
| 217 |
+
border-radius: 20px;
|
| 218 |
+
border: 1px solid var(--gray-200);
|
| 219 |
+
cursor: pointer;
|
| 220 |
+
}
|
| 221 |
+
.radio-group {
|
| 222 |
+
display: flex;
|
| 223 |
+
gap: 20px;
|
| 224 |
+
margin-top: 8px;
|
| 225 |
+
}
|
| 226 |
+
.radio-option {
|
| 227 |
+
display: flex;
|
| 228 |
+
align-items: center;
|
| 229 |
+
gap: 8px;
|
| 230 |
+
cursor: pointer;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.notifications-table {
|
| 234 |
+
width: 100%;
|
| 235 |
+
border-collapse: collapse;
|
| 236 |
+
font-size: 0.85rem;
|
| 237 |
+
}
|
| 238 |
+
.notifications-table th {
|
| 239 |
+
text-align: left;
|
| 240 |
+
padding: 12px 8px;
|
| 241 |
+
background: var(--gray-50);
|
| 242 |
+
border-bottom: 2px solid var(--gray-200);
|
| 243 |
+
font-weight: 600;
|
| 244 |
+
}
|
| 245 |
+
.notifications-table td {
|
| 246 |
+
padding: 12px 8px;
|
| 247 |
+
border-bottom: 1px solid var(--gray-200);
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
.priority-high { color: var(--danger); font-weight: 600; }
|
| 251 |
+
.priority-medium { color: var(--warning); font-weight: 600; }
|
| 252 |
+
.priority-low { color: var(--success); font-weight: 600; }
|
| 253 |
+
|
| 254 |
+
.status-badge {
|
| 255 |
+
display: inline-block;
|
| 256 |
+
padding: 4px 10px;
|
| 257 |
+
border-radius: 20px;
|
| 258 |
+
font-size: 0.7rem;
|
| 259 |
+
font-weight: 500;
|
| 260 |
+
}
|
| 261 |
+
.status-pending { background: #e0e0e0; color: #424242; }
|
| 262 |
+
.status-accepted { background: #c8e6c9; color: #1b5e20; }
|
| 263 |
+
|
| 264 |
+
.action-cell {
|
| 265 |
+
display: flex;
|
| 266 |
+
flex-wrap: wrap;
|
| 267 |
+
gap: 6px;
|
| 268 |
+
}
|
| 269 |
+
.action-icon-btn {
|
| 270 |
+
background: transparent;
|
| 271 |
+
border: none;
|
| 272 |
+
cursor: pointer;
|
| 273 |
+
padding: 6px 10px;
|
| 274 |
+
border-radius: 20px;
|
| 275 |
+
font-size: 0.7rem;
|
| 276 |
+
font-weight: 500;
|
| 277 |
+
transition: all 0.2s;
|
| 278 |
+
}
|
| 279 |
+
.action-accept { background: #e8f0e8; color: #1e1e1e; }
|
| 280 |
+
.action-reject { background: #fce4e4; color: #c62828; }
|
| 281 |
+
.action-hold { background: #e3f2fd; color: #0d47a1; }
|
| 282 |
+
.action-help { background: #fff3e0; color: #b76e0e; }
|
| 283 |
+
|
| 284 |
+
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
|
| 285 |
+
.stat-card { background: white; border: 1px solid var(--gray-200); border-radius: 8px; padding: 16px; text-align: center; }
|
| 286 |
+
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
|
| 287 |
+
|
| 288 |
+
.tab-content { display: none; }
|
| 289 |
+
.tab-content.active { display: block; }
|
| 290 |
+
|
| 291 |
+
/* Spaced Repetition Curve */
|
| 292 |
+
.spaced-repetition-container {
|
| 293 |
+
background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
|
| 294 |
+
border-radius: 16px;
|
| 295 |
+
padding: 20px;
|
| 296 |
+
margin-top: 20px;
|
| 297 |
+
}
|
| 298 |
+
.curve-legend {
|
| 299 |
+
display: flex;
|
| 300 |
+
justify-content: center;
|
| 301 |
+
gap: 24px;
|
| 302 |
+
margin-bottom: 16px;
|
| 303 |
+
font-size: 0.75rem;
|
| 304 |
+
}
|
| 305 |
+
.legend-item {
|
| 306 |
+
display: flex;
|
| 307 |
+
align-items: center;
|
| 308 |
+
gap: 8px;
|
| 309 |
+
}
|
| 310 |
+
.legend-color {
|
| 311 |
+
width: 20px;
|
| 312 |
+
height: 3px;
|
| 313 |
+
border-radius: 2px;
|
| 314 |
+
}
|
| 315 |
+
.legend-color.square {
|
| 316 |
+
width: 12px;
|
| 317 |
+
height: 12px;
|
| 318 |
+
border-radius: 50%;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
@media (max-width: 768px) {
|
| 322 |
+
.container { padding: 16px; }
|
| 323 |
+
.planning-sessions-table { font-size: 0.7rem; }
|
| 324 |
+
.planning-sessions-table td, .planning-sessions-table th { padding: 8px 6px; }
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
.session-detail-line { font-size: 0.75rem; color: var(--gray-600); margin: 4px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
| 328 |
+
.export-btn { background: white; border: 1px solid var(--gray-200); padding: 8px 16px; border-radius: 8px; cursor: pointer; }
|
| 329 |
+
.export-btn:hover { background: var(--gray-50); }
|
| 330 |
+
|
| 331 |
+
/* Profile specific styles */
|
| 332 |
+
.profile-progress {
|
| 333 |
+
background: var(--gray-100);
|
| 334 |
+
border-radius: 12px;
|
| 335 |
+
padding: 16px;
|
| 336 |
+
margin-bottom: 24px;
|
| 337 |
+
}
|
| 338 |
+
.progress-bar-container {
|
| 339 |
+
background: var(--gray-200);
|
| 340 |
+
border-radius: 20px;
|
| 341 |
+
height: 10px;
|
| 342 |
+
margin: 12px 0;
|
| 343 |
+
overflow: hidden;
|
| 344 |
+
}
|
| 345 |
+
.progress-bar-fill {
|
| 346 |
+
background: var(--primary);
|
| 347 |
+
width: 0%;
|
| 348 |
+
height: 100%;
|
| 349 |
+
border-radius: 20px;
|
| 350 |
+
transition: width 0.3s ease;
|
| 351 |
+
}
|
| 352 |
+
.big5-rating {
|
| 353 |
+
display: flex;
|
| 354 |
+
gap: 8px;
|
| 355 |
+
margin-top: 8px;
|
| 356 |
+
flex-wrap: wrap;
|
| 357 |
+
}
|
| 358 |
+
.rating-btn {
|
| 359 |
+
width: 40px;
|
| 360 |
+
height: 40px;
|
| 361 |
+
border-radius: 40px;
|
| 362 |
+
border: 1px solid var(--gray-200);
|
| 363 |
+
background: white;
|
| 364 |
+
cursor: pointer;
|
| 365 |
+
font-weight: 600;
|
| 366 |
+
transition: all 0.2s;
|
| 367 |
+
}
|
| 368 |
+
.rating-btn:hover { background: var(--gray-100); }
|
| 369 |
+
.rating-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
|
| 370 |
+
.motivation-rating {
|
| 371 |
+
display: flex;
|
| 372 |
+
gap: 8px;
|
| 373 |
+
margin-top: 8px;
|
| 374 |
+
flex-wrap: wrap;
|
| 375 |
+
}
|
| 376 |
+
.profile-recommendations {
|
| 377 |
+
background: #faf8e8;
|
| 378 |
+
border-left: 4px solid var(--warning);
|
| 379 |
+
padding: 16px;
|
| 380 |
+
border-radius: 12px;
|
| 381 |
+
margin-top: 20px;
|
| 382 |
+
}
|
| 383 |
+
.profile-summary-cards {
|
| 384 |
+
display: grid;
|
| 385 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 386 |
+
gap: 16px;
|
| 387 |
+
margin-bottom: 24px;
|
| 388 |
+
}
|
| 389 |
+
.profile-mini-card {
|
| 390 |
+
background: var(--gray-50);
|
| 391 |
+
border-radius: 12px;
|
| 392 |
+
padding: 16px;
|
| 393 |
+
text-align: center;
|
| 394 |
+
}
|
| 395 |
+
.profile-mini-card h4 { font-size: 0.75rem; color: var(--gray-600); margin-bottom: 8px; }
|
| 396 |
+
.profile-mini-card .value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
|
| 397 |
+
.flex-between { display: flex; justify-content: space-between; align-items: center; }
|
| 398 |
+
|
| 399 |
+
/* DASHBOARD PROFESSIONNEL : HEATMAP MODERNE & ELEGANT */
|
| 400 |
+
.heatmap-container {
|
| 401 |
+
background: white;
|
| 402 |
+
border-radius: 20px;
|
| 403 |
+
padding: 24px 20px;
|
| 404 |
+
margin-bottom: 32px;
|
| 405 |
+
border: 1px solid var(--gray-200);
|
| 406 |
+
box-shadow: var(--shadow-sm);
|
| 407 |
+
transition: box-shadow 0.2s ease;
|
| 408 |
+
}
|
| 409 |
+
.heatmap-container:hover {
|
| 410 |
+
box-shadow: var(--shadow-md);
|
| 411 |
+
}
|
| 412 |
+
.heatmap-title {
|
| 413 |
+
display: flex;
|
| 414 |
+
justify-content: space-between;
|
| 415 |
+
align-items: baseline;
|
| 416 |
+
flex-wrap: wrap;
|
| 417 |
+
margin-bottom: 24px;
|
| 418 |
+
padding-bottom: 8px;
|
| 419 |
+
border-bottom: 1px solid #eef2f8;
|
| 420 |
+
}
|
| 421 |
+
.heatmap-title h4 {
|
| 422 |
+
font-weight: 600;
|
| 423 |
+
font-size: 0.9rem;
|
| 424 |
+
color: var(--gray-800);
|
| 425 |
+
letter-spacing: -0.2px;
|
| 426 |
+
}
|
| 427 |
+
.heatmap-sub {
|
| 428 |
+
font-size: 0.7rem;
|
| 429 |
+
color: var(--gray-500);
|
| 430 |
+
background: #f8fafc;
|
| 431 |
+
padding: 4px 10px;
|
| 432 |
+
border-radius: 30px;
|
| 433 |
+
}
|
| 434 |
+
.heatmap-grid-wrapper {
|
| 435 |
+
display: flex;
|
| 436 |
+
justify-content: center;
|
| 437 |
+
margin: 16px 0 10px 0;
|
| 438 |
+
overflow-x: auto;
|
| 439 |
+
}
|
| 440 |
+
.heatmap-grid {
|
| 441 |
+
display: grid;
|
| 442 |
+
grid-template-columns: repeat(7, 1fr);
|
| 443 |
+
gap: 8px;
|
| 444 |
+
max-width: 700px;
|
| 445 |
+
min-width: 280px;
|
| 446 |
+
background: #ffffff;
|
| 447 |
+
padding: 8px 4px;
|
| 448 |
+
border-radius: 24px;
|
| 449 |
+
}
|
| 450 |
+
.heatmap-day-label {
|
| 451 |
+
text-align: center;
|
| 452 |
+
font-size: 0.7rem;
|
| 453 |
+
font-weight: 600;
|
| 454 |
+
color: #5b6e8c;
|
| 455 |
+
margin-bottom: 8px;
|
| 456 |
+
letter-spacing: 0.3px;
|
| 457 |
+
}
|
| 458 |
+
.heatmap-cell {
|
| 459 |
+
aspect-ratio: 1 / 1;
|
| 460 |
+
border-radius: 10px;
|
| 461 |
+
transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
|
| 462 |
+
cursor: default;
|
| 463 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.02);
|
| 464 |
+
}
|
| 465 |
+
.heatmap-cell:hover {
|
| 466 |
+
transform: scale(1.04);
|
| 467 |
+
filter: brightness(0.96);
|
| 468 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
|
| 469 |
+
}
|
| 470 |
+
/* Palette élégante en niveaux de gris */
|
| 471 |
+
.heatmap-cell.level-0 { background-color: #f5f5f5; }
|
| 472 |
+
.heatmap-cell.level-1 { background-color: #d6d6d6; }
|
| 473 |
+
.heatmap-cell.level-2 { background-color: #a0a0a0; }
|
| 474 |
+
.heatmap-cell.level-3 { background-color: #6e6e6e; }
|
| 475 |
+
.heatmap-cell.level-4 { background-color: #2c2c2c; }
|
| 476 |
+
|
| 477 |
+
.legend-heatmap {
|
| 478 |
+
display: flex;
|
| 479 |
+
justify-content: center;
|
| 480 |
+
gap: 24px;
|
| 481 |
+
margin-top: 20px;
|
| 482 |
+
flex-wrap: wrap;
|
| 483 |
+
background: #fafcff;
|
| 484 |
+
padding: 12px 20px;
|
| 485 |
+
border-radius: 60px;
|
| 486 |
+
width: fit-content;
|
| 487 |
+
margin-left: auto;
|
| 488 |
+
margin-right: auto;
|
| 489 |
+
}
|
| 490 |
+
.legend-heatmap-item {
|
| 491 |
+
display: flex;
|
| 492 |
+
align-items: center;
|
| 493 |
+
gap: 8px;
|
| 494 |
+
font-size: 0.7rem;
|
| 495 |
+
font-weight: 500;
|
| 496 |
+
color: var(--gray-700);
|
| 497 |
+
}
|
| 498 |
+
.legend-color-box {
|
| 499 |
+
width: 24px;
|
| 500 |
+
height: 24px;
|
| 501 |
+
border-radius: 8px;
|
| 502 |
+
transition: transform 0.1s;
|
| 503 |
+
}
|
| 504 |
+
.legend-color-box.level-0 { background-color: #f5f5f5; border: 1px solid #e0e0e0; }
|
| 505 |
+
.legend-color-box.level-1 { background-color: #d6d6d6; }
|
| 506 |
+
.legend-color-box.level-2 { background-color: #a0a0a0; }
|
| 507 |
+
.legend-color-box.level-3 { background-color: #6e6e6e; }
|
| 508 |
+
.legend-color-box.level-4 { background-color: #2c2c2c; }
|
| 509 |
+
|
| 510 |
+
/* Courbe symétrique */
|
| 511 |
+
.symmetry-curve-card {
|
| 512 |
+
background: white;
|
| 513 |
+
border-radius: 20px;
|
| 514 |
+
padding: 18px 20px;
|
| 515 |
+
margin-bottom: 28px;
|
| 516 |
+
border: 1px solid var(--gray-200);
|
| 517 |
+
box-shadow: var(--shadow-sm);
|
| 518 |
+
}
|
| 519 |
+
.curve-header {
|
| 520 |
+
display: flex;
|
| 521 |
+
justify-content: space-between;
|
| 522 |
+
align-items: baseline;
|
| 523 |
+
flex-wrap: wrap;
|
| 524 |
+
margin-bottom: 20px;
|
| 525 |
+
}
|
| 526 |
+
.curve-header h4 {
|
| 527 |
+
font-weight: 600;
|
| 528 |
+
font-size: 0.9rem;
|
| 529 |
+
color: var(--gray-800);
|
| 530 |
+
}
|
| 531 |
+
.curve-legend-mini {
|
| 532 |
+
display: flex;
|
| 533 |
+
gap: 20px;
|
| 534 |
+
font-size: 0.7rem;
|
| 535 |
+
}
|
| 536 |
+
.symmetry-canvas {
|
| 537 |
+
max-height: 210px;
|
| 538 |
+
width: 100%;
|
| 539 |
+
background: #ffffff;
|
| 540 |
+
border-radius: 16px;
|
| 541 |
+
}
|
| 542 |
+
|
| 543 |
+
/* Indicateurs modernes */
|
| 544 |
+
.indicator-grid {
|
| 545 |
+
display: grid;
|
| 546 |
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
| 547 |
+
gap: 20px;
|
| 548 |
+
margin-bottom: 0;
|
| 549 |
+
}
|
| 550 |
+
.indicator-card {
|
| 551 |
+
background: white;
|
| 552 |
+
border-radius: 20px;
|
| 553 |
+
padding: 20px 18px;
|
| 554 |
+
border: 1px solid var(--gray-200);
|
| 555 |
+
transition: box-shadow 0.2s;
|
| 556 |
+
box-shadow: var(--shadow-sm);
|
| 557 |
+
text-align: center;
|
| 558 |
+
}
|
| 559 |
+
.indicator-card:hover {
|
| 560 |
+
box-shadow: var(--shadow-md);
|
| 561 |
+
}
|
| 562 |
+
.indicator-header {
|
| 563 |
+
display: flex;
|
| 564 |
+
align-items: center;
|
| 565 |
+
gap: 12px;
|
| 566 |
+
margin-bottom: 16px;
|
| 567 |
+
justify-content: center;
|
| 568 |
+
}
|
| 569 |
+
.indicator-icon {
|
| 570 |
+
font-size: 1.6rem;
|
| 571 |
+
color: var(--primary);
|
| 572 |
+
background: #f0f0f0;
|
| 573 |
+
width: 44px;
|
| 574 |
+
height: 44px;
|
| 575 |
+
display: flex;
|
| 576 |
+
align-items: center;
|
| 577 |
+
justify-content: center;
|
| 578 |
+
border-radius: 44px;
|
| 579 |
+
}
|
| 580 |
+
.indicator-title {
|
| 581 |
+
font-weight: 600;
|
| 582 |
+
font-size: 0.9rem;
|
| 583 |
+
color: var(--gray-800);
|
| 584 |
+
letter-spacing: -0.2px;
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
/* JaUgES circulaires */
|
| 588 |
+
.circular-progress {
|
| 589 |
+
position: relative;
|
| 590 |
+
width: 140px;
|
| 591 |
+
height: 140px;
|
| 592 |
+
margin: 0 auto 15px;
|
| 593 |
+
}
|
| 594 |
+
.circular-progress svg {
|
| 595 |
+
width: 140px;
|
| 596 |
+
height: 140px;
|
| 597 |
+
transform: rotate(-90deg);
|
| 598 |
+
}
|
| 599 |
+
.circular-progress circle {
|
| 600 |
+
fill: none;
|
| 601 |
+
stroke-width: 10;
|
| 602 |
+
stroke-linecap: round;
|
| 603 |
+
}
|
| 604 |
+
.circular-progress .bg-circle {
|
| 605 |
+
stroke: var(--gray-200);
|
| 606 |
+
}
|
| 607 |
+
.circular-progress .progress-circle {
|
| 608 |
+
stroke: var(--primary);
|
| 609 |
+
stroke-dasharray: 377;
|
| 610 |
+
stroke-dashoffset: 377;
|
| 611 |
+
transition: stroke-dashoffset 0.8s ease;
|
| 612 |
+
}
|
| 613 |
+
.circular-progress .progress-percent {
|
| 614 |
+
position: absolute;
|
| 615 |
+
top: 50%;
|
| 616 |
+
left: 50%;
|
| 617 |
+
transform: translate(-50%, -50%);
|
| 618 |
+
font-size: 1.8rem;
|
| 619 |
+
font-weight: 700;
|
| 620 |
+
color: var(--gray-800);
|
| 621 |
+
}
|
| 622 |
+
.circular-progress .progress-label {
|
| 623 |
+
position: absolute;
|
| 624 |
+
bottom: -5px;
|
| 625 |
+
left: 50%;
|
| 626 |
+
transform: translateX(-50%);
|
| 627 |
+
font-size: 0.7rem;
|
| 628 |
+
color: var(--gray-600);
|
| 629 |
+
white-space: nowrap;
|
| 630 |
+
}
|
| 631 |
+
|
| 632 |
+
.indicator-value {
|
| 633 |
+
font-size: 0.9rem;
|
| 634 |
+
font-weight: 600;
|
| 635 |
+
color: var(--gray-700);
|
| 636 |
+
margin-top: 8px;
|
| 637 |
+
}
|
| 638 |
+
.indicator-sub {
|
| 639 |
+
font-size: 0.75rem;
|
| 640 |
+
color: var(--gray-600);
|
| 641 |
+
border-top: 1px solid var(--gray-100);
|
| 642 |
+
margin-top: 12px;
|
| 643 |
+
padding-top: 12px;
|
| 644 |
+
}
|
| 645 |
+
.effort-badge-modern {
|
| 646 |
+
display: inline-block;
|
| 647 |
+
background: #f1f5f9;
|
| 648 |
+
padding: 6px 14px;
|
| 649 |
+
border-radius: 40px;
|
| 650 |
+
font-size: 0.8rem;
|
| 651 |
+
font-weight: 500;
|
| 652 |
+
color: #1e293b;
|
| 653 |
+
}
|
| 654 |
+
.persistence-tag {
|
| 655 |
+
background: #e0e0e0;
|
| 656 |
+
color: #1e1e1e;
|
| 657 |
+
padding: 4px 12px;
|
| 658 |
+
border-radius: 40px;
|
| 659 |
+
font-size: 0.75rem;
|
| 660 |
+
font-weight: 600;
|
| 661 |
+
display: inline-block;
|
| 662 |
+
}
|
| 663 |
+
.dashboard-view-toggle {
|
| 664 |
+
display: flex;
|
| 665 |
+
gap: 12px;
|
| 666 |
+
margin-bottom: 24px;
|
| 667 |
+
}
|
| 668 |
+
.view-btn {
|
| 669 |
+
padding: 8px 18px;
|
| 670 |
+
border-radius: 40px;
|
| 671 |
+
background: white;
|
| 672 |
+
border: 1px solid var(--gray-200);
|
| 673 |
+
cursor: pointer;
|
| 674 |
+
font-weight: 500;
|
| 675 |
+
}
|
| 676 |
+
.view-btn.active {
|
| 677 |
+
background: var(--primary);
|
| 678 |
+
color: white;
|
| 679 |
+
border-color: var(--primary);
|
| 680 |
+
}
|
| 681 |
+
|
| 682 |
+
/* Journal Section - Professionnel Noir & Blanc */
|
| 683 |
+
.journal-section {
|
| 684 |
+
background: var(--gray-50);
|
| 685 |
+
border-radius: 12px;
|
| 686 |
+
padding: 18px;
|
| 687 |
+
margin-bottom: 24px;
|
| 688 |
+
border: 1px solid var(--gray-200);
|
| 689 |
+
}
|
| 690 |
+
.journal-section h4 {
|
| 691 |
+
font-size: 1rem;
|
| 692 |
+
font-weight: 600;
|
| 693 |
+
margin-bottom: 12px;
|
| 694 |
+
display: flex;
|
| 695 |
+
align-items: center;
|
| 696 |
+
gap: 8px;
|
| 697 |
+
color: var(--gray-800);
|
| 698 |
+
}
|
| 699 |
+
.journal-section textarea {
|
| 700 |
+
width: 100%;
|
| 701 |
+
border: 1px solid var(--gray-200);
|
| 702 |
+
border-radius: 10px;
|
| 703 |
+
padding: 12px;
|
| 704 |
+
font-family: inherit;
|
| 705 |
+
font-size: 0.85rem;
|
| 706 |
+
resize: vertical;
|
| 707 |
+
background: white;
|
| 708 |
+
}
|
| 709 |
+
.self-rating-group {
|
| 710 |
+
display: flex;
|
| 711 |
+
gap: 12px;
|
| 712 |
+
align-items: center;
|
| 713 |
+
margin-top: 12px;
|
| 714 |
+
flex-wrap: wrap;
|
| 715 |
+
}
|
| 716 |
+
.self-rating-group span {
|
| 717 |
+
font-size: 0.85rem;
|
| 718 |
+
font-weight: 500;
|
| 719 |
+
color: var(--gray-700);
|
| 720 |
+
}
|
| 721 |
+
.rating-stars {
|
| 722 |
+
display: flex;
|
| 723 |
+
gap: 8px;
|
| 724 |
+
}
|
| 725 |
+
.star-btn {
|
| 726 |
+
background: white;
|
| 727 |
+
border: 1px solid var(--gray-200);
|
| 728 |
+
width: 42px;
|
| 729 |
+
padding: 8px 0;
|
| 730 |
+
border-radius: 40px;
|
| 731 |
+
cursor: pointer;
|
| 732 |
+
font-weight: 600;
|
| 733 |
+
transition: all 0.2s;
|
| 734 |
+
text-align: center;
|
| 735 |
+
}
|
| 736 |
+
.star-btn.active {
|
| 737 |
+
background: var(--primary);
|
| 738 |
+
color: white;
|
| 739 |
+
border-color: var(--primary);
|
| 740 |
+
}
|
| 741 |
+
.journal-entries-list {
|
| 742 |
+
margin-top: 24px;
|
| 743 |
+
border-top: 1px solid var(--gray-200);
|
| 744 |
+
padding-top: 20px;
|
| 745 |
+
}
|
| 746 |
+
.journal-entry-item {
|
| 747 |
+
background: white;
|
| 748 |
+
border-radius: 12px;
|
| 749 |
+
padding: 14px;
|
| 750 |
+
margin-bottom: 12px;
|
| 751 |
+
border: 1px solid var(--gray-200);
|
| 752 |
+
}
|
| 753 |
+
.journal-entry-date {
|
| 754 |
+
font-size: 0.7rem;
|
| 755 |
+
color: var(--gray-500);
|
| 756 |
+
margin-bottom: 8px;
|
| 757 |
+
}
|
| 758 |
+
.journal-entry-content {
|
| 759 |
+
display: flex;
|
| 760 |
+
flex-wrap: wrap;
|
| 761 |
+
gap: 12px;
|
| 762 |
+
margin-top: 6px;
|
| 763 |
+
}
|
| 764 |
+
.journal-badge {
|
| 765 |
+
background: var(--gray-100);
|
| 766 |
+
padding: 2px 10px;
|
| 767 |
+
border-radius: 20px;
|
| 768 |
+
font-size: 0.7rem;
|
| 769 |
+
}
|
| 770 |
+
.date-selector {
|
| 771 |
+
margin-bottom: 20px;
|
| 772 |
+
display: flex;
|
| 773 |
+
align-items: center;
|
| 774 |
+
gap: 15px;
|
| 775 |
+
flex-wrap: wrap;
|
| 776 |
+
}
|
| 777 |
+
.date-selector label {
|
| 778 |
+
font-weight: 500;
|
| 779 |
+
color: var(--gray-700);
|
| 780 |
+
}
|
| 781 |
+
.journal-actions {
|
| 782 |
+
display: flex;
|
| 783 |
+
gap: 12px;
|
| 784 |
+
justify-content: flex-end;
|
| 785 |
+
margin-top: 10px;
|
| 786 |
+
}
|
| 787 |
+
</style>
|
| 788 |
+
</head>
|
| 789 |
+
<body>
|
| 790 |
+
<div class="container">
|
| 791 |
+
<header class="header">
|
| 792 |
+
<h1>EfforMind-SRL</h1>
|
| 793 |
+
<p>Compagnon SRL – Apprendre à manager l'effort et maintenir la persistance</p>
|
| 794 |
+
<div class="badge">EfforMind: AI · Aid · Effort Management · Perseverance</div>
|
| 795 |
+
</header>
|
| 796 |
+
|
| 797 |
+
<nav class="nav-tabs">
|
| 798 |
+
<button class="nav-tab" onclick="showTab('profile')">Profil</button>
|
| 799 |
+
<button class="nav-tab" onclick="showTab('objectif')">Objectif</button>
|
| 800 |
+
<button class="nav-tab" onclick="showTab('planner')">Planning</button>
|
| 801 |
+
<button class="nav-tab" onclick="showTab('dashboard')">Mon Dashboard</button>
|
| 802 |
+
<button class="nav-tab" onclick="showTab('journal')">Mon Journal</button>
|
| 803 |
+
<button class="nav-tab" onclick="showTab('notifications')">Notifications IA</button>
|
| 804 |
+
</nav>
|
| 805 |
+
|
| 806 |
+
<!-- PROFIL -->
|
| 807 |
+
<section id="profile" class="tab-content">
|
| 808 |
+
<div class="card">
|
| 809 |
+
<div class="card-header"><h3>Profil d'Apprentissage Personnalisé</h3><div><button class="btn btn-secondary" onclick="autoFillProfile()">Remplir automatiquement</button><button class="btn btn-secondary" onclick="saveProfileData()">Sauvegarder</button></div></div>
|
| 810 |
+
<div class="profile-progress"><div class="flex-between"><span><strong>Complétion du Profil</strong></span><span id="profileCompletionPercent">40%</span></div><div class="progress-bar-container"><div class="progress-bar-fill" id="profileProgressFill" style="width: 40%;"></div></div><div class="flex-between"><span>Questionnaires complétés: <span id="completedCount">2</span>/5</span><span>Profil personnalisé: <span id="profileLevel">Intermédiaire</span></span></div></div>
|
| 811 |
+
<div class="card" style="margin-bottom:20px;padding:20px;"><h4 style="margin-bottom:16px;">Profil de Personnalité (Big Five Traits)</h4><p style="font-size:0.8rem;color:var(--gray-600);margin-bottom:20px;">Évaluez vos traits de personnalité sur une échelle de 1 à 5</p>
|
| 812 |
+
<div class="form-group"><label class="form-label">Je suis quelqu'un de sociable, extraverti, énergique</label><div class="big5-rating" data-trait="extraversion"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 813 |
+
<div class="form-group"><label class="form-label">Je fais preuve de curiosité intellectuelle, j'aime les nouvelles expériences</label><div class="big5-rating" data-trait="openness"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 814 |
+
<div class="form-group"><label class="form-label">Je suis organisé, fiable, je respecte mes engagements</label><div class="big5-rating" data-trait="conscientiousness"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 815 |
+
<div class="form-group"><label class="form-label">Je suis coopératif, serviable, empathique</label><div class="big5-rating" data-trait="agreeableness"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 816 |
+
<div class="form-group"><label class="form-label">Je ressens facilement de l'anxiété, du stress, de la nervosité</label><div class="big5-rating" data-trait="neuroticism"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 817 |
+
<div style="margin-top:16px;font-size:0.8rem;background:var(--gray-50);padding:12px;border-radius:8px;">Section complétée - Score neuroticisme: <span id="neuroticismScore">4.0</span> (qualité du sommeil importante)</div>
|
| 818 |
+
</div>
|
| 819 |
+
<div class="card" style="margin-bottom:20px;padding:20px;"><h4 style="margin-bottom:16px;">Profil Motivationnel</h4><p style="font-size:0.8rem;margin-bottom:20px;">Pourquoi étudiez-vous ? Sélectionnez vos principales motivations</p>
|
| 820 |
+
<div class="form-group"><label class="form-label">J'étudie parce que j'aime apprendre, je trouve cela intéressant et plaisant</label><div class="motivation-rating" data-motivation="intrinsic"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 821 |
+
<div class="form-group"><label class="form-label">J'étudie pour obtenir de bonnes notes et faire plaisir à mes parents/professeurs</label><div class="motivation-rating" data-motivation="introjected"><button type="button" class="rating-btn" data-value="1">1</button><button type="button" class="rating-btn" data-value="2">2</button><button type="button" class="rating-btn" data-value="3">3</button><button type="button" class="rating-btn" data-value="4">4</button><button type="button" class="rating-btn" data-value="5">5</button></div></div>
|
| 822 |
+
<div style="margin-top:16px;font-size:0.8rem;background:var(--gray-50);padding:12px;border-radius:8px;">Section complétée - Motivation introjectée: <span id="introjectedScore">4.0</span> (pression interne modérée)</div>
|
| 823 |
+
</div>
|
| 824 |
+
<div class="profile-summary-cards"><div class="profile-mini-card"><h4>Big Five Traits</h4><div class="value" id="summaryExtraversion">3.0</div><div>Extraversion</div></div><div class="profile-mini-card"><div class="value" id="summaryOpenness">3.0</div><div>Ouverture</div></div><div class="profile-mini-card"><div class="value" id="summaryConscientiousness">4.0</div><div>Conscience</div></div><div class="profile-mini-card"><h4>Motivation</h4><div class="value" id="summaryIntrinsic">3.0</div><div>Intrinsèque</div></div><div class="profile-mini-card"><div class="value" id="summaryIntrojected">4.0</div><div>Introjectée</div></div></div>
|
| 825 |
+
<div class="profile-recommendations" style="background: transparent; border-left: none;"><h4>Recommandations Personnalisées</h4><div id="recommendationsContainer"><p>Qualité du sommeil: Maintenez 7-8 heures de sommeil de qualité.</p><p>Planification: Renforcez votre organisation avec des rappels.</p></div></div>
|
| 826 |
+
<button class="btn btn-primary btn-large" onclick="finalizeProfile()" style="width:100%;"><i class="fas fa-check-circle"></i> Finaliser et Générer le Profil Personnalisé</button>
|
| 827 |
+
</div>
|
| 828 |
+
</section>
|
| 829 |
+
|
| 830 |
+
<!-- OBJECTIF -->
|
| 831 |
+
<section id="objectif" class="tab-content"><div class="card"><div class="card-header"><h3>Définir mon Objectif d'Apprentissage</h3></div><div class="form-row"><div class="form-col"><label class="form-label">Compétence Cible</label><select id="competence" class="form-control"></select></div><div class="form-col"><label class="form-label">Niveau Actuel</label><select id="level" class="form-control"><option value="0">Débutant</option><option value="1" selected>Intermédiaire</option><option value="2">Avancé</option></select></div></div><div class="form-row"><div class="form-col"><label class="form-label">Date de Début</label><input type="date" id="start" class="form-control" value="2024-01-15"></div><div class="form-col"><label class="form-label">Date de Fin</label><input type="date" id="end" class="form-control" value="2024-12-31"></div></div><div class="form-row"><div class="form-col"><label class="form-label">Durée par Session (minutes)</label><select id="sessionDuration" class="form-control"><option value="20" selected>20 minutes (Optimal)</option><option value="30">30 minutes</option><option value="45">45 minutes</option></select></div><div class="form-col"><label class="form-label">Méthode Productivité</label><div class="radio-group"><label class="radio-option"><input type="radio" name="productivityMethod" value="pomodoro" checked> Pomodoro</label><label class="radio-option"><input type="radio" name="productivityMethod" value="deepwork"> Deep Work</label></div></div></div><div class="form-row"><div class="form-col"><label class="form-label">Type d'Énergie</label><div class="radio-group"><label class="radio-option"><input type="radio" name="energyType" value="morning" checked> Matinale</label><label class="radio-option"><input type="radio" name="energyType" value="evening"> Vespérale</label></div></div><div class="form-col"><label class="form-label">Créneaux Disponibles</label><div class="time-slots-group" id="timeSlotsGroup"><label class="time-slot-checkbox"><input type="checkbox" value="08:00-10:00"> 08:00-10:00</label><label class="time-slot-checkbox"><input type="checkbox" value="10:00-12:00"> 10:00-12:00</label><label class="time-slot-checkbox"><input type="checkbox" value="14:00-16:00"> 14:00-16:00</label></div></div></div><div class="form-group"><label class="form-label">Qualité Estimée de Rétention</label><div class="retention-slider"><input type="range" id="retentionQuality" min="0" max="3" step="1" value="2"><div class="retention-labels"><span>0 - Faible</span><span>1 - Moyenne</span><span>2 - Bonne</span><span>3 - Excellente</span></div></div><div id="retentionValueDisplay">Bon - Consolidation progressive</div></div><button class="btn btn-primary btn-large" onclick="generatePlanner()" style="width:100%;"><i class="fas fa-magic"></i> Générer le Planner Personnalisé</button></div></section>
|
| 832 |
+
|
| 833 |
+
<!-- PLANNING -->
|
| 834 |
+
<section id="planner" class="tab-content"><div class="card"><div class="card-header"><h3><i class="fas fa-calendar-alt"></i> Planner Personnalisé</h3><button class="export-btn" onclick="exportPlanning()"><i class="fas fa-download"></i> Exporter</button></div><div class="planning-stats" id="planningStats"><div class="planning-stat-item"><div class="planning-stat-number" id="statSessions">6</div><div class="planning-stat-label">Sessions Planifiées</div></div><div class="planning-stat-item"><div class="planning-stat-number" id="statTotalDays">270</div><div class="planning-stat-label">Jours Totaux</div></div><div class="planning-stat-item"><div class="planning-stat-number" id="statQuality">3/4</div><div class="planning-stat-label">Niveau de Qualité</div></div><div class="planning-stat-item"><div class="planning-stat-number" id="statDuration">20min</div><div class="planning-stat-label">Durée/Session</div></div></div><div style="overflow-x:auto;"><table class="planning-sessions-table" id="sessionsTable"><thead><tr><th>Date</th><th>Session</th><th>Compétence</th><th>Durée</th><th>Intervalle</th><th>Type</th><th>Stratégie</th><th>Productivité</th><th>Heure Optimale</th></tr></thead><tbody id="sessionsTableBody"></tbody></table></div><div class="spaced-repetition-container"><h4><i class="fas fa-chart-line"></i> Courbe de Répétition Espacée</h4><div class="curve-legend"><div class="legend-item"><div class="legend-color" style="background:#1e1e1e;"></div><span>Seuil de rétention</span></div><div class="legend-item"><div class="legend-color square" style="background:#424242;"></div><span>Sessions</span></div></div><canvas id="spacedRepetitionCurve" width="100%" height="200" style="max-height:200px; width:100%;"></canvas><div id="intervalDatesCurve" style="font-size:0.7rem; text-align:center; margin-top:8px;"></div></div></div></section>
|
| 835 |
+
|
| 836 |
+
<!-- DASHBOARD -->
|
| 837 |
+
<section id="dashboard" class="tab-content">
|
| 838 |
+
<div class="card">
|
| 839 |
+
<div class="card-header"><h3><i class="fas fa-chart-simple"></i> Analyse de la persistance et du management de l'effort (persévérance)</h3><div class="dashboard-view-toggle"><button class="view-btn active" data-view="combined" onclick="setDashboardView('combined')">📊 Vue d'ensemble</button></div></div>
|
| 840 |
+
<div class="heatmap-container">
|
| 841 |
+
<div class="heatmap-title">
|
| 842 |
+
<h4><i class="fas fa-fire" style="color:#f97316;"></i> Heatmap d'activité – 4 semaines</h4>
|
| 843 |
+
<span class="heatmap-sub">Intensité d'engagement quotidien</span>
|
| 844 |
+
</div>
|
| 845 |
+
<div class="heatmap-grid-wrapper">
|
| 846 |
+
<div class="heatmap-grid" id="heatmapGrid"></div>
|
| 847 |
+
</div>
|
| 848 |
+
<div class="legend-heatmap" id="heatmapLegend"></div>
|
| 849 |
+
</div>
|
| 850 |
+
<div class="symmetry-curve-card"><div class="curve-header"><h4><i class="fas fa-chart-line"></i> La moyenne d'intensité par jour</h4><div class="curve-legend-mini"><span style="color:#1e1e1e;">● Intensité moyenne</span><span style="color:#616161;">● Miroir symétrique</span></div></div><canvas id="symmetryHeatmapCurve" width="100%" height="180" style="max-height:180px; width:100%;" class="symmetry-canvas"></canvas><p style="font-size:0.7rem; color:var(--gray-500); margin-top:12px; text-align:center;"><i class="fas fa-chart-simple"></i> Courbe de la moyenne d'intensité par jour (symétrie gauche/droite). Visualisation des pics d'activité.</p></div>
|
| 851 |
+
<div class="indicator-grid">
|
| 852 |
+
<div class="indicator-card"><div class="indicator-header"><div class="indicator-icon"><i class="fas fa-clock"></i></div><div class="indicator-title">Régularité du travail</div></div><div class="circular-progress" id="regularityCircle"><svg viewBox="0 0 120 120"><circle class="bg-circle" cx="60" cy="60" r="54"></circle><circle class="progress-circle" cx="60" cy="60" r="54" id="regularityCircleProgress"></circle></svg><div class="progress-percent" id="regularityPercent">90%</div><div class="progress-label"></div></div><div class="indicator-sub">La constance de l'activité de l'apprenant dans le temps.</div></div>
|
| 853 |
+
<div class="indicator-card"><div class="indicator-header"><div class="indicator-icon"><i class="fas fa-calendar-check"></i></div><div class="indicator-title">Gestion des échéances</div></div><div class="circular-progress" id="deadlineCircle"><svg viewBox="0 0 120 120"><circle class="bg-circle" cx="60" cy="60" r="54"></circle><circle class="progress-circle" cx="60" cy="60" r="54" id="deadlineCircleProgress"></circle></svg><div class="progress-percent" id="deadlinePercent">88%</div><div class="progress-label"></div></div><div class="indicator-sub">La capacité de l'apprenant à respecter les délais.</div></div>
|
| 854 |
+
<div class="indicator-card"><div class="indicator-header"><div class="indicator-icon"><i class="fas fa-bolt"></i></div><div class="indicator-title">Schéma d'effort</div></div><div><span class="effort-badge-modern" id="effortPattern">Effort concentré (Pic d'activité jeudi/vendredi)</span></div><div class="indicator-sub">La dynamique temporelle de l'effort.</div></div>
|
| 855 |
+
<div class="indicator-card"><div class="indicator-header"><div class="indicator-icon"><i class="fas fa-chart-line"></i></div><div class="indicator-title">Persistance & gestion des efforts</div></div><div><span class="persistence-tag" id="persistenceScore">Très élevée</span></div><div class="indicator-sub">Indice de persévérance globale</div></div>
|
| 856 |
+
</div>
|
| 857 |
+
</div>
|
| 858 |
+
</section>
|
| 859 |
+
|
| 860 |
+
<!-- MON JOURNAL AVEC SELECTION DE DATE & ICONES PRO -->
|
| 861 |
+
<section id="journal" class="tab-content">
|
| 862 |
+
<div class="card">
|
| 863 |
+
<div class="card-header"><h3><i class="far fa-edit"></i> Mon Journal d'apprentissage</h3></div>
|
| 864 |
+
|
| 865 |
+
<div class="date-selector">
|
| 866 |
+
<label><i class="far fa-calendar-alt"></i> Date de l'entrée :</label>
|
| 867 |
+
<input type="date" id="journalDate" class="form-control" style="width: auto;" value="">
|
| 868 |
+
</div>
|
| 869 |
+
|
| 870 |
+
<div class="journal-section">
|
| 871 |
+
<h4><i class="fas fa-tasks"></i> Planifié (To-Do)</h4>
|
| 872 |
+
<textarea id="plannedText" rows="2" placeholder="Ce que vous prévoyez d'apprendre..."></textarea>
|
| 873 |
+
</div>
|
| 874 |
+
<div class="journal-section">
|
| 875 |
+
<h4><i class="fas fa-sync-alt"></i> En Cours (Doing)</h4>
|
| 876 |
+
<textarea id="doingText" rows="2" placeholder="Ce que vous faites actuellement..."></textarea>
|
| 877 |
+
</div>
|
| 878 |
+
<div class="journal-section">
|
| 879 |
+
<h4><i class="fas fa-check-circle"></i> Accompli (Done)</h4>
|
| 880 |
+
<textarea id="doneText" rows="2" placeholder="Ce que vous avez accompli..."></textarea>
|
| 881 |
+
<div class="self-rating-group">
|
| 882 |
+
<span><i class="fas fa-star"></i> Auto-évaluation (1-5) :</span>
|
| 883 |
+
<div class="rating-stars" id="selfRatingGroup">
|
| 884 |
+
<button type="button" class="star-btn" data-rating="1">1</button>
|
| 885 |
+
<button type="button" class="star-btn" data-rating="2">2</button>
|
| 886 |
+
<button type="button" class="star-btn" data-rating="3">3</button>
|
| 887 |
+
<button type="button" class="star-btn" data-rating="4">4</button>
|
| 888 |
+
<button type="button" class="star-btn" data-rating="5">5</button>
|
| 889 |
+
</div>
|
| 890 |
+
</div>
|
| 891 |
+
</div>
|
| 892 |
+
<div class="journal-actions">
|
| 893 |
+
<button class="btn btn-secondary" onclick="clearJournalForm()"><i class="fas fa-eraser"></i> Effacer le formulaire</button>
|
| 894 |
+
<button class="btn btn-primary" onclick="saveJournalEntry()"><i class="fas fa-save"></i> Sauvegarder l'entrée</button>
|
| 895 |
+
</div>
|
| 896 |
+
<div class="journal-entries-list" id="journalEntriesList"></div>
|
| 897 |
+
</div>
|
| 898 |
+
</section>
|
| 899 |
+
|
| 900 |
+
<!-- NOTIFICATIONS -->
|
| 901 |
+
<section id="notifications" class="tab-content"><div class="card"><div class="card-header"><h3><i class="fas fa-bell"></i> Notifications IA - Tableau des événements</h3><button class="btn btn-primary" onclick="generateRandomEvent()"><i class="fas fa-plus"></i> Générer un événement</button></div><div class="stats-grid"><div class="stat-card"><div class="stat-value" id="totalEvents">0</div><div class="stat-label">Total</div></div><div class="stat-card"><div class="stat-value" id="pendingEvents">0</div><div class="stat-label">En attente</div></div><div class="stat-card"><div class="stat-value" id="acceptedEvents">0</div><div class="stat-label">Acceptés</div></div></div><div style="overflow-x:auto;"><table class="notifications-table"><thead><tr><th>Date</th><th>Type</th><th>Titre</th><th>Message</th><th>Priorité</th><th>Statut</th><th>Actions</th></tr></thead><tbody id="notificationsTableBody"></tbody></table></div><div class="chart-container"><canvas id="notificationEfficiencyChart"></canvas></div></div></section>
|
| 902 |
+
</div>
|
| 903 |
+
|
| 904 |
+
<script>
|
| 905 |
+
// Fonctions métiers existantes (conservées)
|
| 906 |
+
const competencesData = [
|
| 907 |
+
{ "id": "D-MCONJ", "label": "Marques de la conjugaison", "category": "Discours" },
|
| 908 |
+
{ "id": "D-PDV", "label": "Points de vue adoptés", "category": "Discours" },
|
| 909 |
+
{ "id": "D-SSENT", "label": "Compréhension des mots", "category": "Discours" },
|
| 910 |
+
{ "id": "M-CHOI", "label": "Choix des mots et des expressions", "category": "Mots" },
|
| 911 |
+
{ "id": "M-COMP", "label": "Construction des phrases", "category": "Mots" },
|
| 912 |
+
{ "id": "M-DEV", "label": "Développement du vocabulaire", "category": "Mots" },
|
| 913 |
+
{ "id": "M-ORTHO", "label": "Orthographe lexicale", "category": "Mots" },
|
| 914 |
+
{ "id": "P-ART", "label": "Articulation des termes", "category": "Phrase" },
|
| 915 |
+
{ "id": "P-CONS", "label": "Reprises et continuité référentielle", "category": "Phrase" },
|
| 916 |
+
{ "id": "P-GRAM", "label": "Orthographe grammaticale", "category": "Phrase" },
|
| 917 |
+
{ "id": "P-MOD", "label": "Modalités et types de phrases", "category": "Phrase" },
|
| 918 |
+
{ "id": "T-ENCH", "label": "Enchaînement des phrases", "category": "Texte" },
|
| 919 |
+
{ "id": "T-ORG", "label": "Organisation textuelle", "category": "Texte" },
|
| 920 |
+
{ "id": "T-REP", "label": "Effets de style", "category": "Texte" }
|
| 921 |
+
];
|
| 922 |
+
let eventsList = [], currentSessions = [], spacedChart = null, symmetryChart = null;
|
| 923 |
+
let profileData = { extraversion: 3, openness: 3, conscientiousness: 4, agreeableness: 3, neuroticism: 3, intrinsic: 3, introjected: 4 };
|
| 924 |
+
const eventTemplates = [{ type: "Rappel d'étude", title: "Session de révision", message: "Votre session est prévue aujourd'hui.", priority: "high" },{ type: "Conseil IA", title: "Optimisation", message: "Révisez les conjugaisons.", priority: "medium" },{ type: "Encouragement", title: "Progression", message: "80% des objectifs atteints.", priority: "low" }];
|
| 925 |
+
let journalEntries = [];
|
| 926 |
+
|
| 927 |
+
// JOURNAL : NOUVELLES FONCTIONS AVEC DATE
|
| 928 |
+
function loadJournalEntries() {
|
| 929 |
+
const saved = localStorage.getItem('perseverAI_journal');
|
| 930 |
+
if(saved) journalEntries = JSON.parse(saved);
|
| 931 |
+
renderJournalEntries();
|
| 932 |
+
}
|
| 933 |
+
|
| 934 |
+
function saveJournalEntry() {
|
| 935 |
+
const selectedDate = document.getElementById('journalDate')?.value || new Date().toISOString().split('T')[0];
|
| 936 |
+
const planned = document.getElementById('plannedText')?.value.trim() || "";
|
| 937 |
+
const doing = document.getElementById('doingText')?.value.trim() || "";
|
| 938 |
+
const done = document.getElementById('doneText')?.value.trim() || "";
|
| 939 |
+
const activeRating = document.querySelector('#selfRatingGroup .star-btn.active');
|
| 940 |
+
let selfRating = activeRating ? parseInt(activeRating.dataset.rating) : null;
|
| 941 |
+
if(!planned && !doing && !done) { showToast("Veuillez renseigner au moins un champ"); return; }
|
| 942 |
+
const newEntry = {
|
| 943 |
+
id: Date.now(),
|
| 944 |
+
date: selectedDate,
|
| 945 |
+
dateFormatted: new Date(selectedDate).toLocaleDateString('fr-FR'),
|
| 946 |
+
planned,
|
| 947 |
+
doing,
|
| 948 |
+
done,
|
| 949 |
+
selfRating
|
| 950 |
+
};
|
| 951 |
+
journalEntries.unshift(newEntry);
|
| 952 |
+
localStorage.setItem('perseverAI_journal', JSON.stringify(journalEntries));
|
| 953 |
+
document.getElementById('plannedText').value = "";
|
| 954 |
+
document.getElementById('doingText').value = "";
|
| 955 |
+
document.getElementById('doneText').value = "";
|
| 956 |
+
document.querySelectorAll('#selfRatingGroup .star-btn').forEach(btn => btn.classList.remove('active'));
|
| 957 |
+
renderJournalEntries();
|
| 958 |
+
showToast("Journal sauvegardé");
|
| 959 |
+
}
|
| 960 |
+
|
| 961 |
+
function clearJournalForm() {
|
| 962 |
+
document.getElementById('plannedText').value = "";
|
| 963 |
+
document.getElementById('doingText').value = "";
|
| 964 |
+
document.getElementById('doneText').value = "";
|
| 965 |
+
document.querySelectorAll('#selfRatingGroup .star-btn').forEach(btn => btn.classList.remove('active'));
|
| 966 |
+
const today = new Date().toISOString().split('T')[0];
|
| 967 |
+
document.getElementById('journalDate').value = today;
|
| 968 |
+
showToast("Formulaire effacé");
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
function renderJournalEntries() {
|
| 972 |
+
const container = document.getElementById('journalEntriesList');
|
| 973 |
+
if(!container) return;
|
| 974 |
+
if(journalEntries.length === 0) {
|
| 975 |
+
container.innerHTML = '<div style="text-align:center; color:var(--gray-500); padding:20px;"><i class="fas fa-book-open"></i> Aucune entrée pour le moment</div>';
|
| 976 |
+
return;
|
| 977 |
+
}
|
| 978 |
+
container.innerHTML = journalEntries.map(entry => `<div class="journal-entry-item">
|
| 979 |
+
<div class="journal-entry-date"><i class="far fa-calendar-alt"></i> 📅 ${entry.dateFormatted || entry.date}</div>
|
| 980 |
+
${entry.planned ? `<div><span class="journal-badge"><i class="fas fa-tasks"></i> Planifié</span> ${escapeHtml(entry.planned)}</div>` : ''}
|
| 981 |
+
${entry.doing ? `<div><span class="journal-badge"><i class="fas fa-sync-alt"></i> En cours</span> ${escapeHtml(entry.doing)}</div>` : ''}
|
| 982 |
+
${entry.done ? `<div><span class="journal-badge"><i class="fas fa-check-circle"></i> Accompli</span> ${escapeHtml(entry.done)}</div>` : ''}
|
| 983 |
+
${entry.selfRating ? `<div><span class="journal-badge"><i class="fas fa-star"></i> Auto-évaluation</span> ${entry.selfRating}/5</div>` : ''}
|
| 984 |
+
</div>`).join('');
|
| 985 |
+
}
|
| 986 |
+
|
| 987 |
+
function escapeHtml(str) { return str.replace(/[&<>]/g, function(m){if(m==='&') return '&'; if(m==='<') return '<'; if(m==='>') return '>'; return m;}); }
|
| 988 |
+
|
| 989 |
+
function setupRatingStars() {
|
| 990 |
+
document.querySelectorAll('#selfRatingGroup .star-btn').forEach(btn => {
|
| 991 |
+
btn.addEventListener('click', function() {
|
| 992 |
+
document.querySelectorAll('#selfRatingGroup .star-btn').forEach(b => b.classList.remove('active'));
|
| 993 |
+
this.classList.add('active');
|
| 994 |
+
});
|
| 995 |
+
});
|
| 996 |
+
}
|
| 997 |
+
|
| 998 |
+
// Autres fonctions existantes (non modifiées)
|
| 999 |
+
function generateHeatmapData() { const days = ['Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim']; const weeks = 4; let matrix = []; for(let w = 0; w < weeks; w++) { let week = []; for(let d = 0; d < 7; d++) { let base = (w * 7 + d) % 10; let level = 0; if(base < 3) level = 1; else if(base < 6) level = 2; else if(base < 8) level = 3; else level = 4; if(d === 3 || d === 4) level = Math.min(4, level+1); week.push(level); } matrix.push(week); } return { days, weeks: matrix }; }
|
| 1000 |
+
function renderHeatmap() { const container = document.getElementById('heatmapGrid'); if(!container) return; const { days, weeks } = generateHeatmapData(); container.innerHTML = ''; for(let i = 0; i < days.length; i++) { let dayDiv = document.createElement('div'); dayDiv.className = 'heatmap-day-label'; dayDiv.innerText = days[i]; container.appendChild(dayDiv); } for(let w = 0; w < weeks.length; w++) { for(let d = 0; d < weeks[w].length; d++) { let cell = document.createElement('div'); cell.className = `heatmap-cell level-${weeks[w][d]}`; cell.title = `${days[d]} Semaine ${w+1} : Niveau ${weeks[w][d]}`; container.appendChild(cell); } } const legendContainer = document.getElementById('heatmapLegend'); if(legendContainer) { legendContainer.innerHTML = `<div class="legend-heatmap-item"><div class="legend-color-box level-0"></div><span>Aucune activité</span></div><div class="legend-heatmap-item"><div class="legend-color-box level-1"></div><span>Faible</span></div><div class="legend-heatmap-item"><div class="legend-color-box level-2"></div><span>Moyenne</span></div><div class="legend-heatmap-item"><div class="legend-color-box level-3"></div><span>Élevée</span></div><div class="legend-heatmap-item"><div class="legend-color-box level-4"></div><span>Intense</span></div>`; } }
|
| 1001 |
+
function drawSymmetryCurve() { const canvas = document.getElementById('symmetryHeatmapCurve'); if(!canvas) return; const ctx = canvas.getContext('2d'); const container = canvas.parentElement; const width = container.clientWidth - 40; const height = 160; canvas.width = width; canvas.height = height; ctx.clearRect(0, 0, width, height); const { days, weeks } = generateHeatmapData(); let avgIntensity = new Array(7).fill(0); for(let w = 0; w < weeks.length; w++) for(let d = 0; d < 7; d++) avgIntensity[d] += weeks[w][d]; avgIntensity = avgIntensity.map(v => v / weeks.length); let reversed = [...avgIntensity].reverse(); let combined = avgIntensity.map((v,i)=> (v + reversed[i])/2); const points = combined.map((val, idx) => ({ x: (idx / 6) * width, y: height - (val / 4) * height })); ctx.beginPath(); ctx.strokeStyle = '#1e1e1e'; ctx.lineWidth = 2.5; ctx.setLineDash([]); points.forEach((p,i) => i===0 ? ctx.moveTo(p.x,p.y) : ctx.lineTo(p.x,p.y)); ctx.stroke(); ctx.beginPath(); ctx.strokeStyle = '#616161'; ctx.lineWidth = 2; ctx.setLineDash([6,8]); let mirrorPoints = points.map(p => ({ x: width - p.x, y: p.y })); mirrorPoints.forEach((p,i)=> i===0 ? ctx.moveTo(p.x,p.y) : ctx.lineTo(p.x,p.y)); ctx.stroke(); ctx.setLineDash([]); points.forEach(p => { ctx.beginPath(); ctx.fillStyle = '#1e1e1e'; ctx.arc(p.x, p.y, 4, 0, 2*Math.PI); ctx.fill(); ctx.fillStyle = 'white'; ctx.beginPath(); ctx.arc(p.x, p.y, 2, 0, 2*Math.PI); ctx.fill(); }); ctx.fillStyle = '#475569'; ctx.font = '9px Inter'; days.forEach((d,i) => { let x = (i/6)*width; ctx.fillText(d, x-8, height-6); }); }
|
| 1002 |
+
function updateCircularProgress(elementId, percent) { const circle = document.getElementById(elementId); if(!circle) return; const radius = 54; const circumference = 2 * Math.PI * radius; const offset = circumference - (percent / 100) * circumference; circle.style.strokeDasharray = `${circumference}`; circle.style.strokeDashoffset = offset; }
|
| 1003 |
+
function updateIndicators() { document.getElementById('regularityPercent').innerText = '90%'; document.getElementById('deadlinePercent').innerText = '88%'; updateCircularProgress('regularityCircleProgress', 90); updateCircularProgress('deadlineCircleProgress', 88); document.getElementById('effortPattern').innerHTML = "Effort concentré (Pic d'activité jeudi/vendredi)"; document.getElementById('persistenceScore').innerHTML = "Très élevée"; }
|
| 1004 |
+
function setDashboardView(view) { if(view === 'combined') { renderHeatmap(); drawSymmetryCurve(); updateIndicators(); } }
|
| 1005 |
+
function initCompetencesSelect() { const select = document.getElementById('competence'); if(select) select.innerHTML = '<option value="comprendre_mots">Comprendre les mots</option>' + competencesData.map(c => `<option value="${c.id}">${c.label}</option>`).join(''); }
|
| 1006 |
+
function setupRatingListeners() { document.querySelectorAll('.big5-rating .rating-btn').forEach(btn => btn.addEventListener('click', function() { const container = this.closest('.big5-rating'); const trait = container.dataset.trait; const value = parseInt(this.dataset.value); profileData[trait] = value; updateRatingUI(container, value); updateProfileUI(); saveProfileToStorage(); })); document.querySelectorAll('.motivation-rating .rating-btn').forEach(btn => btn.addEventListener('click', function() { const container = this.closest('.motivation-rating'); const motivation = container.dataset.motivation; const value = parseInt(this.dataset.value); profileData[motivation] = value; updateRatingUI(container, value); updateProfileUI(); saveProfileToStorage(); })); }
|
| 1007 |
+
function updateRatingUI(container, value) { container.querySelectorAll('.rating-btn').forEach(btn => { btn.classList.remove('active'); if(parseInt(btn.dataset.value) === value) btn.classList.add('active'); }); }
|
| 1008 |
+
function updateProfileUI() { document.getElementById('summaryExtraversion').innerText = profileData.extraversion; document.getElementById('summaryOpenness').innerText = profileData.openness; document.getElementById('summaryConscientiousness').innerText = profileData.conscientiousness; document.getElementById('summaryIntrinsic').innerText = profileData.intrinsic; document.getElementById('summaryIntrojected').innerText = profileData.introjected; document.getElementById('neuroticismScore').innerText = profileData.neuroticism; document.getElementById('introjectedScore').innerText = profileData.introjected; let completed = Object.values(profileData).filter(v => v).length; const percent = Math.round((completed / 7) * 100); document.getElementById('profileCompletionPercent').innerText = percent + '%'; document.getElementById('profileProgressFill').style.width = percent + '%'; document.getElementById('completedCount').innerText = Math.min(completed, 5); let level = "Débutant"; if(profileData.conscientiousness >= 4 && profileData.intrinsic >= 4) level = "Avancé"; else if(profileData.conscientiousness >= 3) level = "Intermédiaire"; document.getElementById('profileLevel').innerText = level; const recos = ["◼ Qualité du sommeil: Maintenez 7-8 heures de sommeil de qualité.", "◼ Planification: Renforcez votre organisation avec des rappels."]; document.getElementById('recommendationsContainer').innerHTML = recos.map(r => `<p>${r}</p>`).join(''); }
|
| 1009 |
+
function autoFillProfile() { profileData = { extraversion: 4, openness: 4, conscientiousness: 5, agreeableness: 4, neuroticism: 2, intrinsic: 5, introjected: 3 }; document.querySelectorAll('.big5-rating').forEach(container => { if(profileData[container.dataset.trait]) updateRatingUI(container, profileData[container.dataset.trait]); }); document.querySelectorAll('.motivation-rating').forEach(container => { if(profileData[container.dataset.motivation]) updateRatingUI(container, profileData[container.dataset.motivation]); }); updateProfileUI(); saveProfileToStorage(); showToast("Profil automatiquement rempli !"); }
|
| 1010 |
+
function saveProfileData() { saveProfileToStorage(); showToast("Profil sauvegardé !"); }
|
| 1011 |
+
function finalizeProfile() { saveProfileToStorage(); showToast("Profil finalisé !"); }
|
| 1012 |
+
function saveProfileToStorage() { localStorage.setItem('perseverAI_profile', JSON.stringify(profileData)); }
|
| 1013 |
+
function loadProfileFromStorage() { const saved = localStorage.getItem('perseverAI_profile'); if(saved) Object.assign(profileData, JSON.parse(saved)); updateProfileUI(); }
|
| 1014 |
+
function retentionRate(days, strength = 0.5) { return Math.exp(-days / (strength * 30)) * 100; }
|
| 1015 |
+
function drawSpacedRepetitionCurve(sessions) { if(!sessions.length) return; const canvas = document.getElementById('spacedRepetitionCurve'); if(!canvas) return; const ctx = canvas.getContext('2d'); const container = canvas.parentElement; const width = container.clientWidth - 40; const height = 180; canvas.width = width; canvas.height = height; ctx.clearRect(0,0,width,height); const startDate = sessions[0].date.getTime(); const endDate = sessions[sessions.length-1].date.getTime(); const totalDays = (endDate - startDate) / (86400000); ctx.beginPath(); ctx.strokeStyle = '#1e1e1e'; ctx.lineWidth = 2.5; let first = true; for(let x = 0; x <= width; x++) { const dayProg = (x/width)*totalDays; const ret = retentionRate(dayProg,0.4); const y = height - (ret/100)*height; if(first) { ctx.moveTo(x,y); first=false; } else ctx.lineTo(x,y); } ctx.stroke(); sessions.forEach(s => { const x = ((s.date.getTime() - startDate) / (endDate - startDate)) * width; const dayProg = (s.date.getTime() - startDate)/86400000; const retAt = retentionRate(dayProg,0.4); const y = height - (retAt/100)*height; ctx.beginPath(); ctx.fillStyle = '#424242'; ctx.arc(x, y, 5, 0, 2*Math.PI); ctx.fill(); ctx.fillStyle = 'white'; ctx.beginPath(); ctx.arc(x, y, 2, 0, 2*Math.PI); ctx.fill(); }); const datesDiv = document.getElementById('intervalDatesCurve'); if(datesDiv) datesDiv.innerHTML = sessions.map(s => `<span style="margin:0 8px">${s.dateStr}</span>`).join(''); }
|
| 1016 |
+
function generatePlanner() { const competence = document.getElementById('competence')?.value || "comprendre_mots"; const competenceLabel = competencesData.find(c=>c.id===competence)?.label || "Comprendre les mots"; const startDate = new Date(document.getElementById('start')?.value || "2024-01-15"); const sessionDur = document.getElementById('sessionDuration')?.value || "20"; const method = document.querySelector('input[name="productivityMethod"]:checked')?.value || "pomodoro"; const timeSlot = document.querySelector('#timeSlotsGroup input:checked')?.value || "08:00-10:00"; const retention = document.getElementById('retentionQuality')?.value || "2"; const intervals = [1,7,16,35,70,140]; const sessions = []; for(let i=0;i<intervals.length;i++) { let currentDate = new Date(startDate); if(i>0) currentDate.setDate(startDate.getDate() + intervals[i-1]); else currentDate = new Date(startDate); const sessionTypes = ["Apprentissage","Consolidation","Consolidation","Maintien","Maintien","Maintien"]; const strategies = ["Focus intense","Révision active","Révision active","Révision active","Révision active","Révision active"]; sessions.push({ id:i+1, date:new Date(currentDate), dateStr:currentDate.toLocaleDateString('fr-FR'), dayName:currentDate.toLocaleDateString('fr-FR',{weekday:'long'}), competence:competenceLabel, duration:sessionDur+" minutes", interval:intervals[i]+" jours", type:sessionTypes[i], strategy:strategies[i], productivity:method==='pomodoro'?'Pomodoro':'Deep Work', optimalTime:timeSlot }); } currentSessions = sessions; renderPlanningTable(sessions); updatePlanningStats(sessions, retention, sessionDur); drawSpacedRepetitionCurve(sessions); showToast("Planning personnalisé généré !"); showTab('planner'); }
|
| 1017 |
+
function generateDefaultPlanning() { const startDate = new Date("2024-01-17"); const intervals = [1,7,16,35,70,140]; const sessions = []; for(let i=0;i<intervals.length;i++) { let currentDate = new Date(startDate); if(i>0) currentDate.setDate(startDate.getDate() + (i===1?1:intervals[i-1])); else currentDate = new Date(startDate); const sessionTypes = ["Apprentissage","Consolidation","Consolidation","Maintien","Maintien","Maintien"]; sessions.push({ id:i+1, date:new Date(currentDate), dateStr:currentDate.toLocaleDateString('fr-FR'), dayName:currentDate.toLocaleDateString('fr-FR',{weekday:'long'}), competence:"comprendre_mots", duration:"20 minutes", interval:intervals[i]+" jours", type:sessionTypes[i], strategy:"Révision active", productivity:"Pomodoro", optimalTime:"08:00-10:00" }); } currentSessions = sessions; renderPlanningTable(sessions); updatePlanningStats(sessions,"2","20"); drawSpacedRepetitionCurve(sessions); }
|
| 1018 |
+
function renderPlanningTable(sessions) { const tbody = document.getElementById('sessionsTableBody'); if(!tbody) return; tbody.innerHTML = sessions.map(s => `<tr><td><strong>${s.dateStr}</strong><br><span style="font-size:0.7rem;">${s.dayName}</span></td><td><strong>R${s.id}</strong></td><td>${s.competence}</td><td>${s.duration}</td><td>${s.interval}</td><td><span class="session-type-badge ${s.type==='Apprentissage'?'type-apprentissage':(s.type==='Consolidation'?'type-consolidation':'type-maintien')}">${s.type}</span></td><td>${s.strategy}</td><td>${s.productivity}</td><td>${s.optimalTime}</td></tr>`).join(''); }
|
| 1019 |
+
function updatePlanningStats(sessions, quality, duration) { document.getElementById('statSessions').innerText = sessions.length; if(sessions.length > 0) { const lastDate = sessions[sessions.length-1].date; const firstDate = sessions[0].date; const totalDays = Math.ceil((lastDate - firstDate) / (86400000)); document.getElementById('statTotalDays').innerText = totalDays; } const qualityMap = {'0':'1/4','1':'2/4','2':'3/4','3':'4/4'}; document.getElementById('statQuality').innerText = qualityMap[quality] || "3/4"; document.getElementById('statDuration').innerText = duration + "min"; }
|
| 1020 |
+
function exportPlanning() { let csv = "Date,Session,Compétence,Durée,Intervalle,Type,Stratégie,Productivité,Heure Optimale\n"; currentSessions.forEach(s => { csv += `"${s.dateStr}","R${s.id}","${s.competence}","${s.duration}","${s.interval}","${s.type}","${s.strategy}","${s.productivity}","${s.optimalTime}"\n`; }); const blob = new Blob([csv], {type: 'text/csv'}); const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = 'planning_perseverai.csv'; link.click(); showToast("Planning exporté en CSV"); }
|
| 1021 |
+
function generateRandomEvent() { const template = eventTemplates[Math.floor(Math.random() * eventTemplates.length)]; const newEvent = { id: Date.now() + Math.random(), date: new Date().toLocaleString(), type: template.type, title: template.title, message: template.message, priority: template.priority, status: 'pending' }; eventsList.unshift(newEvent); saveEvents(); renderEventsTable(); updateEventStats(); showToast(`Nouvel événement: ${template.title}`); }
|
| 1022 |
+
function executeAction(eventId, actionType, actionLabel) { const eventIndex = eventsList.findIndex(e => e.id == eventId); if(eventIndex === -1) return; eventsList[eventIndex].status = actionType === 'ACCEPT' ? 'accepted' : (actionType === 'REJECT' ? 'rejected' : 'hold'); renderEventsTable(); updateEventStats(); saveEvents(); showToast(`${actionLabel}`); }
|
| 1023 |
+
function renderEventsTable() { const tbody = document.getElementById('notificationsTableBody'); if(!tbody) return; if(eventsList.length === 0) { tbody.innerHTML = '<tr><td colspan="7" style="text-align:center;">Aucun événement</td></tr>'; return; } tbody.innerHTML = eventsList.map(event => `<tr><td>${event.date}</td><td>${event.type}</td><td><strong>${event.title}</strong></td><td>${event.message}</td><td><span class="priority-${event.priority}">${event.priority}</span></td><td><span class="status-badge ${event.status === 'accepted' ? 'status-accepted' : 'status-pending'}">${event.status === 'accepted' ? 'Accepté' : 'En attente'}</span></td><td class="action-cell"><button class="action-icon-btn action-accept" onclick="executeAction(${event.id}, 'ACCEPT', 'Accepté')">✓ Accepter</button><button class="action-icon-btn action-reject" onclick="executeAction(${event.id}, 'REJECT', 'Rejeté')">✗ Rejeter</button><button class="action-icon-btn action-hold" onclick="executeAction(${event.id}, 'HOLD', 'En attente')">⏸ Attente</button><button class="action-icon-btn action-help" onclick="executeAction(${event.id}, 'HELP', 'Aide demandée')">🆘 Aide</button></td></tr>`).join(''); }
|
| 1024 |
+
function updateEventStats() { document.getElementById('totalEvents').innerText = eventsList.length; document.getElementById('pendingEvents').innerText = eventsList.filter(e => e.status === 'pending').length; document.getElementById('acceptedEvents').innerText = eventsList.filter(e => e.status === 'accepted').length; if(efficiencyChart) efficiencyChart.data.datasets[0].data = [eventsList.filter(e=>e.status==='accepted').length, eventsList.filter(e=>e.status==='rejected').length, eventsList.filter(e=>e.status==='pending').length]; efficiencyChart?.update(); }
|
| 1025 |
+
let efficiencyChart = null;
|
| 1026 |
+
function createChart() { const ctx = document.getElementById('notificationEfficiencyChart')?.getContext('2d'); if(ctx) efficiencyChart = new Chart(ctx, { type: 'bar', data: { labels: ['Acceptés', 'Rejetés', 'En attente'], datasets: [{ label: 'Actions', data: [0,0,0], backgroundColor: ['#2e7d32','#c62828','#b76e0e'] }] }, options: { responsive: true } }); }
|
| 1027 |
+
function saveEvents() { localStorage.setItem('eventsList', JSON.stringify(eventsList)); }
|
| 1028 |
+
function loadSavedData() { const saved = localStorage.getItem('eventsList'); if(saved) eventsList = JSON.parse(saved); }
|
| 1029 |
+
function showTab(tabId) { document.querySelectorAll('.tab-content').forEach(t => t.classList.remove('active')); document.getElementById(tabId).classList.add('active'); document.querySelectorAll('.nav-tab').forEach(t => t.classList.remove('active')); if(window.event?.target) window.event.target.classList.add('active'); if(tabId === 'dashboard') { renderHeatmap(); drawSymmetryCurve(); updateIndicators(); } if(tabId === 'planner') { if(currentSessions.length === 0) generateDefaultPlanning(); else drawSpacedRepetitionCurve(currentSessions); } if(tabId === 'notifications') { renderEventsTable(); updateEventStats(); } if(tabId === 'profile') { loadProfileFromStorage(); updateProfileUI(); } if(tabId === 'journal') { loadJournalEntries(); } }
|
| 1030 |
+
function showToast(msg) { let div = document.createElement('div'); div.style.cssText = `position:fixed; bottom:20px; right:20px; background:#1e293b; color:white; padding:12px 20px; border-radius:8px; z-index:1000;`; div.innerHTML = msg; document.body.appendChild(div); setTimeout(()=>div.remove(), 2500); }
|
| 1031 |
+
|
| 1032 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 1033 |
+
initCompetencesSelect();
|
| 1034 |
+
loadSavedData();
|
| 1035 |
+
renderEventsTable();
|
| 1036 |
+
updateEventStats();
|
| 1037 |
+
createChart();
|
| 1038 |
+
initProfileModule();
|
| 1039 |
+
const retentionSlider = document.getElementById('retentionQuality');
|
| 1040 |
+
if(retentionSlider) retentionSlider.addEventListener('input', function() { const val = parseInt(this.value); const messages = {0:"0 - Faible",1:"1 - Moyenne",2:"2 - Bon - Consolidation progressive",3:"3 - Excellente"}; document.getElementById('retentionValueDisplay').innerText = messages[val]; });
|
| 1041 |
+
generateDefaultPlanning();
|
| 1042 |
+
loadProfileFromStorage();
|
| 1043 |
+
setupRatingListeners();
|
| 1044 |
+
updateProfileUI();
|
| 1045 |
+
setDashboardView('combined');
|
| 1046 |
+
setupRatingStars();
|
| 1047 |
+
loadJournalEntries();
|
| 1048 |
+
updateCircularProgress('regularityCircleProgress', 90);
|
| 1049 |
+
updateCircularProgress('deadlineCircleProgress', 88);
|
| 1050 |
+
// Initialisation de la date du journal
|
| 1051 |
+
const todayDate = new Date().toISOString().split('T')[0];
|
| 1052 |
+
const journalDateInput = document.getElementById('journalDate');
|
| 1053 |
+
if(journalDateInput) journalDateInput.value = todayDate;
|
| 1054 |
+
});
|
| 1055 |
+
function initProfileModule() { loadProfileFromStorage(); setupRatingListeners(); updateProfileUI(); }
|
| 1056 |
+
window.addEventListener('resize', () => { if(document.getElementById('dashboard').classList.contains('active')) drawSymmetryCurve(); if(document.getElementById('planner').classList.contains('active') && currentSessions.length > 0) drawSpacedRepetitionCurve(currentSessions); });
|
| 1057 |
+
</script>
|
| 1058 |
+
</body>
|
| 1059 |
+
</html>
|