| <!DOCTYPE html> |
| <html lang="fr"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>Documentation API - SECUTOR PRO IA</title> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet"> |
| <style> |
| body { font-family: 'Inter', sans-serif; } |
| .gradient-bg { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); } |
| .code-block { background: #1e293b; color: #e2e8f0; } |
| </style> |
| </head> |
| <body class="bg-gray-50 text-gray-800"> |
| |
| <nav class="bg-white shadow-sm sticky top-0 z-50"> |
| <div class="container mx-auto px-6 py-4 flex justify-between items-center"> |
| <a href="index.html" class="text-2xl font-bold text-[#1a1a2e]">SECUTOR <span class="text-[#ff6b35]">PRO IA</span></a> |
| <div class="hidden md:flex gap-6 text-sm font-medium"> |
| <a href="index.html" class="text-gray-600 hover:text-[#ff6b35] transition-colors">Accueil</a> |
| <a href="download.html" class="text-gray-600 hover:text-[#ff6b35] transition-colors">Téléchargement</a> |
| <a href="api-docs.html" class="text-[#ff6b35]">Documentation</a> |
| <a href="https://github.com" target="_blank" class="text-gray-600 hover:text-[#ff6b35] transition-colors flex items-center gap-1"> |
| <i data-lucide="github" class="w-4 h-4"></i> GitHub |
| </a> |
| </div> |
| </div> |
| </nav> |
|
|
| <div class="flex min-h-screen"> |
| |
| <aside class="w-64 bg-white border-r border-gray-200 hidden md:block"> |
| <div class="p-6"> |
| <h3 class="font-bold text-gray-900 mb-4">Documentation</h3> |
| <nav class="space-y-2"> |
| <a href="#introduction" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Introduction</a> |
| <a href="#installation" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Installation</a> |
| <a href="#configuration" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Configuration</a> |
| <a href="#utilisation" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Utilisation</a> |
| <a href="#api" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Référence API</a> |
| <a href="#securite" class="block text-sm text-gray-600 hover:text-[#ff6b35] py-1">Sécurité</a> |
| </nav> |
| </div> |
| </aside> |
|
|
| |
| <main class="flex-1 p-6 md:p-12 max-w-4xl"> |
| <h1 class="text-4xl font-bold mb-8">Documentation Technique</h1> |
|
|
| <section id="introduction" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Introduction</h2> |
| <p class="text-gray-600 mb-4 leading-relaxed"> |
| SECUTOR PRO IA est un système expert de détection de fraude conçu pour analyser les fichiers FEC (Fichier d'Écritures Comptables). |
| L'application utilise une combinaison d'algorithmes statistiques (Loi de Benford), de détection de doublons, |
| et d'analyse par intelligence artificielle pour identifier les anomalies suspectes. |
| </p> |
| <div class="bg-blue-50 border-l-4 border-blue-500 p-4 rounded-r-lg"> |
| <p class="text-blue-800 text-sm"> |
| <strong>Note:</strong> Ce logiciel est conçu pour fonctionner 100% en local. |
| Seule l'analyse IA optionnelle nécessite une connexion à l'API Groq. |
| </p> |
| </div> |
| </section> |
|
|
| <section id="installation" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Installation</h2> |
| <h3 class="font-semibold mb-2 text-lg">Méthode 1: Installation via pip</h3> |
| <div class="code-block rounded-lg p-4 mb-4 overflow-x-auto"> |
| <code class="text-sm"> |
| <span class="text-green-400"># Créer un environnement virtuel (recommandé)</span><br> |
| python -m venv secutor-env<br> |
| secutor-env\Scripts\activate<br><br> |
| <span class="text-green-400"># Installer les dépendances</span><br> |
| pip install PyQt6 pandas numpy openpyxl |
| </code> |
| </div> |
|
|
| <h3 class="font-semibold mb-2 text-lg">Méthode 2: Exécutable Windows</h3> |
| <p class="text-gray-600 mb-4"> |
| Téléchargez l'installateur .msi depuis la page de téléchargement et suivez l'assistant d'installation. |
| </p> |
| </section> |
|
|
| <section id="configuration" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Configuration</h2> |
| <p class="text-gray-600 mb-4"> |
| Les paramètres sont stockés dans <code class="bg-gray-100 px-2 py-1 rounded">~/.secutor/config.json</code>. |
| </p> |
| |
| <h3 class="font-semibold mb-2">Options disponibles:</h3> |
| <ul class="list-disc list-inside text-gray-600 space-y-2 mb-4"> |
| <li><code>groq_api_key</code>: Clé API pour l'analyse IA (optionnel)</li> |
| <li><code>encryption_enabled</code>: Activer/désactiver le chiffrement AES-256</li> |
| <li><code>validation_enabled</code>: Validation stricte des entrées</li> |
| <li><code>threshold</code>: Seuil de confiance par défaut (50-99%)</li> |
| </ul> |
| </section> |
|
|
| <section id="utilisation" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Guide d'Utilisation</h2> |
| |
| <div class="space-y-6"> |
| <div class="bg-white rounded-lg p-6 shadow-sm border border-gray-200"> |
| <h3 class="font-semibold mb-2 flex items-center gap-2"> |
| <span class="w-8 h-8 bg-[#ff6b35] text-white rounded-full flex items-center justify-center text-sm">1</span> |
| Import du fichier FEC |
| </h3> |
| <p class="text-gray-600 text-sm ml-10"> |
| Cliquez sur "Parcourir" et sélectionnez votre fichier FEC au format .txt, .fec ou .csv. |
| Le fichier doit respecter le format standard FEC français. |
| </p> |
| </div> |
|
|
| <div class="bg-white rounded-lg p-6 shadow-sm border border-gray-200"> |
| <h3 class="font-semibold mb-2 flex items-center gap-2"> |
| <span class="w-8 h-8 bg-[#ff6b35] text-white rounded-full flex items-center justify-center text-sm">2</span> |
| Configuration de l'analyse |
| </h3> |
| <p class="text-gray-600 text-sm ml-10"> |
| Sélectionnez les modules d'analyse souhaités (Benford, Doublons, Montants ronds). |
| Activez l'IA uniquement si vous avez configuré une clé API. |
| </p> |
| </div> |
|
|
| <div class="bg-white rounded-lg p-6 shadow-sm border border-gray-200"> |
| <h3 class="font-semibold mb-2 flex items-center gap-2"> |
| <span class="w-8 h-8 bg-[#ff6b35] text-white rounded-full flex items-center justify-center text-sm">3</span> |
| Export des résultats |
| </h3> |
| <p class="text-gray-600 text-sm ml-10"> |
| Une fois l'analyse terminée, exportez les résultats en PDF, JSON ou CSV |
| pour intégration dans vos rapports d'audit. |
| </p> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="api" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Référence API (Python)</h2> |
| |
| <h3 class="font-semibold mb-2">FECAnalyzer</h3> |
| <div class="code-block rounded-lg p-4 mb-4 overflow-x-auto"> |
| <code class="text-sm"> |
| <span class="text-purple-400">from</span> secutor_fec_analyzer <span class="text-purple-400">import</span> FECAnalyzer<br><br> |
| analyzer = FECAnalyzer()<br> |
| analyzer.configure(<br> |
| benford=<span class="text-orange-400">True</span>,<br> |
| duplicates=<span class="text-orange-400">True</span>,<br> |
| threshold=<span class="text-blue-400">80</span><br> |
| )<br><br> |
| results = analyzer.analyze_file(<span class="text-green-300">"chemin/fichier.fec"</span>) |
| </code> |
| </div> |
|
|
| <h3 class="font-semibold mb-2">SafeguardsManager</h3> |
| <div class="code-block rounded-lg p-4 overflow-x-auto"> |
| <code class="text-sm"> |
| <span class="text-purple-400">from</span> secutor_safeguards <span class="text-purple-400">import</span> SafeguardsManager<br><br> |
| safeguards = SafeguardsManager()<br> |
| validation = safeguards.validate_results(results)<br> |
| <span class="text-gray-500"># Retourne: {'valid': bool, 'sanitized': dict}</span> |
| </code> |
| </div> |
| </section> |
|
|
| <section id="securite" class="mb-12"> |
| <h2 class="text-2xl font-bold mb-4 text-[#1a1a2e]">Sécurité & Conformité</h2> |
| <div class="grid md:grid-cols-2 gap-4"> |
| <div class="bg-green-50 border border-green-200 rounded-lg p-4"> |
| <h4 class="font-semibold text-green-900 mb-2">✓ RGPD Compliant</h4> |
| <p class="text-green-800 text-sm">Traitement local des données, aucune collecte de données personnelles.</p> |
| </div> |
| <div class="bg-blue-50 border border-blue-200 rounded-lg p-4"> |
| <h4 class="font-semibold text-blue-900 mb-2">✓ Chiffrement AES-256</h4> |
| <p class="text-blue-800 text-sm">Protection des fichiers de configuration sensibles.</p> |
| </div> |
| </div> |
| </section> |
| </main> |
| </div> |
|
|
| <script src="https://unpkg.com/lucide@latest"></script> |
| <script>lucide.createIcons();</script> |
| </body> |
| </html> |