File size: 23,744 Bytes
79914b8 1c9f000 ad494e0 45da2f6 1c9f000 45da2f6 1c9f000 79914b8 10970c2 45da2f6 10970c2 ad494e0 1c9f000 10970c2 79914b8 10970c2 45da2f6 10970c2 45da2f6 10970c2 ad494e0 10970c2 ad494e0 79914b8 10970c2 ad494e0 79914b8 10970c2 45da2f6 1c9f000 10970c2 1c9f000 10970c2 ad494e0 10970c2 ad494e0 45da2f6 79914b8 ad494e0 79914b8 10970c2 ae43fd8 10970c2 45da2f6 ad494e0 1c9f000 ae43fd8 10970c2 1c9f000 10970c2 1c9f000 45da2f6 10970c2 ae43fd8 10970c2 1c9f000 10970c2 ae43fd8 10970c2 1c9f000 79914b8 10970c2 45da2f6 ae43fd8 79914b8 10970c2 ae43fd8 10970c2 1c9f000 45da2f6 1c9f000 ae43fd8 10970c2 ae43fd8 10970c2 35fdca9 1c9f000 10970c2 ae43fd8 10970c2 ad494e0 10970c2 45da2f6 1c9f000 ae43fd8 79914b8 43f84cb ad494e0 ae43fd8 45da2f6 79914b8 1c9f000 79914b8 1c9f000 45da2f6 1c9f000 79914b8 10970c2 1c9f000 10970c2 45da2f6 79914b8 45da2f6 10970c2 ad494e0 45da2f6 10970c2 ad494e0 10970c2 79914b8 10970c2 45da2f6 10970c2 79914b8 10970c2 79914b8 10970c2 79914b8 1c9f000 45da2f6 10970c2 79914b8 10970c2 79914b8 10970c2 79914b8 43f84cb 45da2f6 10970c2 45da2f6 10970c2 45da2f6 10970c2 45da2f6 79914b8 10970c2 1c9f000 10970c2 1c9f000 79914b8 45da2f6 79914b8 35fdca9 45da2f6 1c9f000 45da2f6 1c9f000 45da2f6 35fdca9 1c9f000 35fdca9 79914b8 1c9f000 35fdca9 1c9f000 79914b8 45da2f6 79914b8 45da2f6 10970c2 1c9f000 10970c2 45da2f6 35fdca9 10970c2 35fdca9 79914b8 1c9f000 45da2f6 10970c2 35fdca9 45da2f6 1c9f000 45da2f6 1c9f000 10970c2 45da2f6 35fdca9 79914b8 10970c2 45da2f6 35fdca9 1c9f000 45da2f6 10970c2 45da2f6 1c9f000 45da2f6 1c9f000 10970c2 45da2f6 35fdca9 1c9f000 45da2f6 1c9f000 35fdca9 1c9f000 35fdca9 10970c2 35fdca9 79914b8 35fdca9 1c9f000 79914b8 10970c2 79914b8 45da2f6 1c9f000 45da2f6 1c9f000 ad494e0 1c9f000 ad494e0 1c9f000 10970c2 ad494e0 10970c2 1c9f000 45da2f6 1c9f000 45da2f6 10970c2 45da2f6 ad494e0 45da2f6 8df3575 45da2f6 1c9f000 8df3575 45da2f6 79914b8 1c9f000 45da2f6 ad494e0 10970c2 ad494e0 10970c2 45da2f6 ad494e0 10970c2 ad494e0 1c9f000 45da2f6 1c9f000 45da2f6 79914b8 |
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 |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solveur Expert IA - Maths, Physique, Chimie</title>
<!-- Tailwind CSS Play CDN (v3 - JIT enabled) -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Fira+Code&display=swap" rel="stylesheet">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<style>
/* Styles personnalisés complémentaires */
:root {
--primary-color: #2c3e50;
--secondary-color: #1abc9c;
--accent-color: #e74c3c;
--success-color: #27ae60;
--light-secondary-bg: #e8f8f5; /* For upload highlight */
}
body {
font-family: 'Montserrat', sans-serif;
}
.font-code {
font-family: 'Fira Code', monospace;
}
/* Gradients can be defined here or as Tailwind arbitrary values if preferred */
.gradient-primary {
background-image: linear-gradient(to right, var(--secondary-color) 0%, #16a085 100%);
}
.gradient-secondary {
background-image: linear-gradient(to right, var(--primary-color) 0%, #34495e 100%);
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.animate-spin-custom {
animation: spin 0.8s linear infinite;
}
/* This class is added by JS, so define its properties here */
.upload-highlight {
border-color: var(--secondary-color) !important; /* Use !important if Tailwind specificity is an issue */
background-color: var(--light-secondary-bg) !important;
}
</style>
<script>
// Optional: Configure Tailwind if needed (e.g., extending theme colors)
// For this example, we'll rely on arbitrary values for CSS variables,
// which the Play CDN handles well.
// tailwind.config = {
// theme: {
// extend: {
// colors: {
// 'custom-primary': 'var(--primary-color)',
// 'custom-secondary': 'var(--secondary-color)',
// 'custom-accent': 'var(--accent-color)',
// 'custom-success': 'var(--success-color)',
// }
// }
// }
// }
</script>
</head>
<body class="bg-gray-50 text-gray-700 min-h-screen flex flex-col items-center py-6 px-4">
<div class="bg-white rounded-xl shadow-lg w-full max-w-2xl p-6 md:p-8">
<h1 class="flex items-center justify-center text-3xl font-bold text-center mb-2 text-[var(--primary-color)]">
<i class="fas fa-atom text-4xl mr-3 text-[var(--secondary-color)]"></i>
Solveur Expert IA
</h1>
<p class="text-center text-gray-500 mb-8">Solutions LaTeX précises pour Maths, Physique et Chimie.</p>
<div id="upload-section" class="relative border-2 border-dashed border-gray-300 rounded-xl p-8 mb-6 cursor-pointer transition-all duration-300 bg-gray-50 text-center group hover:border-[var(--secondary-color)] hover:bg-[var(--light-secondary-bg)]">
<div class="upload-content">
<i class="fas fa-file-arrow-up text-5xl mb-4 text-[var(--secondary-color)] transition-transform duration-300 transform group-hover:scale-110 group-hover:-translate-y-1"></i>
<p class="text-lg font-medium mb-1">Déposez l'image de votre exercice ici</p>
<p class="text-sm text-gray-500">ou cliquez pour sélectionner un fichier (PNG, JPG)</p>
</div>
<input type="file" id="file-input" accept="image/png, image/jpeg, image/webp" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">
<div id="image-preview-container" class="mt-4">
<img id="image-preview" src="#" alt="Aperçu de l'énoncé" class="hidden max-w-full max-h-64 rounded-lg mx-auto border border-gray-300 shadow-sm">
</div>
</div>
<div class="bg-gray-50 rounded-xl p-5 mb-6 border border-gray-200">
<h3 class="flex items-center font-semibold text-[var(--primary-color)] mb-4">
<i class="fas fa-cogs mr-2 text-[var(--secondary-color)]"></i>Options de Formatage
</h3>
<div class="prompt-selector">
<label for="prompt-type" class="block font-medium mb-2">Style de la correction LaTeX :</label>
<div class="relative">
<select id="prompt-type" name="prompt-type" class="w-full p-3 pr-10 rounded-xl border-2 border-gray-300 appearance-none bg-white focus:outline-none focus:border-[var(--secondary-color)] focus:ring-2 focus:ring-[var(--secondary-color)]/20 transition-all">
<option value="refined">Format Raffiné & Complet (mise en page avancée)</option>
<option value="light">Format Léger & Essentiel (LaTeX standard)</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-700">
<i class="fas fa-chevron-down"></i>
</div>
</div>
</div>
</div>
<button id="solve-button" class="gradient-primary w-full py-4 px-6 rounded-xl text-white font-semibold text-lg tracking-wide flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-gray-400 disabled:shadow-none transition duration-300 transform hover:translate-y-px disabled:transform-none" disabled>
<i class="fas fa-rocket mr-2"></i>Obtenir la Solution
</button>
<a href="https://t.me/+ic4zemy1E1k0MzQ0" target="_blank" id="telegram-join-button" class="mt-4 w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold py-3 px-6 rounded-xl flex items-center justify-center transition duration-300 transform hover:translate-y-px">
<i class="fab fa-telegram-plane mr-2"></i>Rejoindre le groupe Telegram
</a>
<div id="solving-container" class="hidden mt-8">
<div class="text-center mb-5">
<div id="status-message-element" class="flex items-center justify-center flex-wrap text-lg font-medium text-[var(--primary-color)]">
<i class="fas fa-hourglass-start mr-2"></i>Prêt à résoudre votre exercice...
</div>
</div>
<div id="loading-spinner-element" class="hidden w-10 h-10 mx-auto my-6 border-4 border-gray-300 border-l-[var(--secondary-color)] rounded-full animate-spin-custom"></div>
<div class="flex items-center bg-blue-50 border-l-4 border-[var(--secondary-color)] p-4 rounded-xl my-6">
<i class="fab fa-telegram text-2xl text-[var(--secondary-color)] mr-3"></i>
<span>Une copie de la solution sera envoyée sur Telegram pour archivage.</span>
</div>
<div id="response-container-element" class="hidden mt-6 p-6 border border-gray-300 rounded-xl bg-white">
<h3 class="flex items-center font-semibold text-xl text-[var(--primary-color)] mb-4">
<i class="fas fa-file-code mr-3 text-[var(--secondary-color)]"></i>Correction LaTeX Détaillée :
</h3>
<div id="response-output" class="font-code bg-gray-900 text-gray-200 p-5 rounded-xl overflow-x-auto whitespace-pre-wrap break-words max-h-96 mb-5 border border-gray-700"></div>
<button id="copy-button" class="gradient-secondary px-6 py-3 rounded-xl text-white font-medium flex items-center justify-center transition duration-300 transform hover:translate-y-px">
<i class="fas fa-copy mr-2"></i>Copier le code LaTeX
</button>
</div>
<div id="error-display-element" class="hidden bg-red-50 border-2 border-[var(--accent-color)] text-[var(--accent-color)] p-4 rounded-xl my-5 font-medium">
</div>
</div>
</div>
<footer class="mt-12 mb-5 text-gray-500 text-sm text-center">
Solutions générées par <a href="#" target="_blank" class="text-[var(--secondary-color)] font-medium hover:underline">Mariam IA</a> © 2025 - Précision garantie.
</footer>
<script>
</script>
</body>
</html> |