Premier commit

Cette révision appartient à :
Théo Gastinel a révisé 2026-10-11 01:57:33 +02:00
révision 0ec3f0e133
109 fichiers modifiés
+17644

Aucun fichier ne correspond à votre recherche

+66
Voir le fichier
@@ -0,0 +1,66 @@
# --- double-push : exclusions generiques (secrets, builds, binaires, gros fichiers) ---
target/
node_modules/
build/
build-*/
dist/
out/
.gradle/
.idea/
venv/
.venv/
env/
__pycache__/
*.pyc
.cache/
.next/
.env
.env.*
!.env.example
accounts.json
Clee.API/
*.pem
*.key
*.p12
*.pfx
*.jks
*.keystore
keystore.properties
id_rsa*
id_ed25519*
*.kdbx
*.odt
*.sqlite
*.sqlite3
*.db
*.log
*.exe
*.dll
*.msi
*.jar
*.zip
*.7z
*.rar
*.tar
*.tar.gz
*.tgz
*.gguf
*.safetensors
*.onnx
*.pt
*.pth
*.bin
*.iso
*.gws
*.apk
*.aab
*.so
*.o
*.a
*.lib
*.pdb
*.mp4
*.mkv
*.wav
*.flac
+50
Voir le fichier
@@ -0,0 +1,50 @@
# =============================================================
# Apache — à laisser à la racine du site
# (utile si tu pars sur un hébergement mutualisé classique)
# Sur Nginx ou Caddy ce fichier est ignoré : voir deploy/
# =============================================================
# ---- Compression --------------------------------------------
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css
AddOutputFilterByType DEFLATE application/javascript text/javascript
AddOutputFilterByType DEFLATE application/json image/svg+xml
# .webp et .woff2 sont déjà compressés : ne pas les repasser au gzip.
</IfModule>
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/css
AddOutputFilterByType BROTLI_COMPRESS application/javascript image/svg+xml
</IfModule>
# ---- Cache ---------------------------------------------------
<IfModule mod_expires.c>
ExpiresActive On
# Assets : 1 an. Renomme le fichier si tu le modifies,
# sinon les visiteurs déjà venus garderont l'ancienne version.
ExpiresByType image/webp "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
# HTML : toujours revalidé.
ExpiresByType text/html "access plus 0 seconds"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(webp|woff2|css|js)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "\.html$">
Header set Cache-Control "no-cache"
</FilesMatch>
Header set X-Content-Type-Options "nosniff"
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
# ---- Types MIME (si le serveur ne les connaît pas) ------------
<IfModule mod_mime.c>
AddType image/webp .webp
AddType font/woff2 .woff2
</IfModule>
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 11 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 15 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 6.8 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 7.3 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 87 KiB

Fichier binaire non affiché.
Fichier binaire non affiché.
Fichier binaire non affiché.
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 59 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 5.1 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 21 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 128 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 40 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 55 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 75 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 12 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 8.2 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 18 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 126 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 69 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 109 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 58 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 112 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 107 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 8.8 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 7.6 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 116 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 82 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 54 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 54 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 3.4 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 69 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 4.1 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 47 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 17 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 14 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 56 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 23 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 42 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 4.3 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 11 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 71 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 6.7 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 8.3 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 108 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 17 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 40 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 8.5 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 4.1 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 30 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 5.8 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 83 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 22 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 11 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 10 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 13 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 13 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 76 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 19 KiB

+102
Voir le fichier
@@ -0,0 +1,102 @@
# Brouillon v5.6 : pages légales (CGV, confidentialité, mentions)
Fichier : `brouillon_v5.6/index.html`. Il a été reconstruit sur le `_Site/index.html` publié le 25/09 (frise sans l'étape Google, formulations d'hébergement CornafSuisse / Plan-les-Ouates). **Tout ce qui se trouve hors des trois panneaux légaux est identique octet pour octet** à `_Site/index.html` (vérifié par script).
Contrôle HTML des panneaux : `<div` 170 → 178 et `</div>` 170 → 178. Il y a 8 div en plus : Article 2, garanties légales, section Annexe (3) et section Gastinel Mind (3). La pile de balises est vide et aucune erreur d'imbrication n'a été relevée.
Rien n'a été publié ni déployé.
À la publication : remplacer `{{DATE_PUBLICATION}}` (3 occurrences) et traiter le `<!-- TODO médiateur -->`.
## 1. Articles disparus : recherche dans les anciennes versions
J'ai comparé les numéros, titres et textes des articles dans `_Site/index.html`, `.bak`, `.bak-20260913` et `.bak-avant-legal-20260925_080613`, ainsi que dans `Actual_Website/index.html` et sa version `.gz`. J'ai aussi cherché « FORCE PROBANTE » dans `server-infra`, `_tools`, `_Site/deploy` et `_Site/tools`.
- **Les 92 articles sont identiques dans toutes les versions** : mêmes titres, même texte. Aucune de ces versions ne contient d'Article 2. Il n'y avait donc aucun ancien Article 2 à récupérer : le trou existe depuis la plus ancienne copie disponible. Il n'y a pas de dépôt git pour `_Site` ni pour `Actual_Website`.
- Seules différences trouvées (dans le `.bak-avant-legal`) : paragraphes d'hébergement (« CornafServer, France »), mention de Google Analytics et adresse abrégée. Tout cela est volontairement obsolète et **n'est pas réintégré**.
- Conséquence : l'Article 2 a été **rédigé à neuf** (Objet et champ d'application).
## 2. Table de correspondance des numéros
| Ancien | Nouveau | Remarque |
|---|---|---|
| 1 | 1 | |
| — | **2** | NOUVEAU : Objet et champ d'application |
| 3 → 48 | 3 → 48 | inchangés |
| — | **49** | NOUVEAU : Garanties légales du consommateur (Titre VI) |
| 49 → 51 | 50 → 52 | Titre VII déplacé dans les CGV |
| 52 → 64 | 53 → 65 | Titre VIII (56 → **57** médiateur, 57 → **58** juridiction) |
| 65 → 69 | 66 → 70 | Titre IX |
| 70 → 76 | 71 → 77 | Titre X (73 → **74**, 75 → **76** Mind) |
| 77 → 81 | 78 → 82 | Titre XI |
| 82 → 85 | 83 → 86 | Titre XII |
| 86 → 89 | 87 → 90 | Titre XIII |
| 90 → 93 | 91 → 94 | Politique de confidentialité (« Services de l'écosystème ») |
Renvois mis à jour : dans l'Art. 7, l'ancien « Art. 73 » devient 74 ; les Art. 9 et 13 renvoient à l'Art. 6 ; l'Art. 22 renvoie à l'Art. 49 ; l'Art. 27 renvoie à l'Art. 20 ; dans les mentions, l'ancien « Article 56 » devient **57**. « Article suivant/précédent » (Art. 48→49, 72→73, 86→85) : toujours exacts. « Titre IV » et « Titre V » : inchangés.
**Choix pour le Titre VII** : **déplacé dans les CGV**, entre VI et VIII. Ses articles (droits Informatique et Libertés, archivage comptable, succession numérique) sont contractuels et la numérotation devient ainsi continue et lisible. Le lien « Dispositions contractuelles » a été retiré de la barre de la page confidentialité, et « Titre VII : Données Personnelles » a été ajouté à celle des CGV. L'Art. 50 renvoie maintenant à la Politique de confidentialité.
## 3. Modifications article par article
**Les trois panneaux** : version « 5.6 — Date d'entrée en vigueur : {{DATE_PUBLICATION}} » ; bloc texte final « Richard GASTINEL, entrepreneur individuel (EI) — Lans-en-Vercors ».
**CGV**
- Barre latérale : ajout du Titre VII et de l'« Annexe : Formulaire de rétractation » ; « Titre XIII : CornafServer » devient « Titre XIII : Hébergement ».
- **Art. 2 (nouveau)** : parties (Richard GASTINEL, entrepreneur individuel (EI), SIRET, adresse), application B2C/B2B, primauté des CGV sur les conditions du client, primauté du devis et des conditions particulières sur les CGV.
- **Art. 6** : l'acompte de 30 % conservé est supprimé. Nouveau régime :
- aucun acompte ;
- en cas d'annulation par le client : (a) frais engagés, sur justificatifs ; (b) heures justifiées × taux horaire ÷ 2 (exemple : 10 h × 7,50 € = 75 €) ; total plafonné à 60 % du prix (exemple : 600 € pour 1 000 €) ; les sommes versées d'avance s'imputent et le surplus est remboursé ;
- réciproque : si le Prestataire annule hors force majeure, il rembourse intégralement ;
- définition du taux horaire.
- **Art. 7** : réécrit pour s'aligner sur l'Art. 74. Il couvre le délai de 14 jours pour les consommateurs, l'exception « loisirs à date déterminée » formulée prudemment (avec repli sur l'art. L221-25), la renonciation seulement par case distincte non pré-cochée et les tirages (renvoi à l'Art. 45 et à l'annexe).
- **Art. 9** : la pénalité est calculée sur le taux horaire de la prestation (Art. 6). Au-delà de 2 h 30, le retard est traité comme une annulation par le client (Art. 6, avec plafond) : l'acompte n'est plus « acquis ».
- **Art. 10** : proposition d'une nouvelle date, puis restitution des sommes versées. L'exclusion de dommages et intérêts ne vise plus que les professionnels.
- **Art. 13** : la part déjà exécutée reste due ; pour le reste, le régime de l'Art. 6 s'applique. « Sommes acquises » est supprimé.
- **Art. 20** (anciennement « Mentions sur la facture ») : devient « Prix, moyens et délais de paiement et de livraison ». Il contient :
- la mention TVA 293 B ;
- les moyens de paiement : virement, virement instantané, carte via SumUp Tap to Pay (PIN au-delà de 50 €) ;
- l'absence de frais supplémentaires ;
- des délais renvoyés au devis, avec L441-10 C. com. (B2B) et L216-1 C. conso (30 jours à défaut, B2C).
- **Art. 22, 23, 27** : réserves sous 15 jours, « réputé conforme », réception tacite et délais indicatifs ne s'appliquent qu'aux professionnels. Pour les consommateurs, renvoi aux garanties légales et à la date annoncée.
- **Titre V (Cloud 2049), Titre VI (boutique/tirages), Titres XI (Frame) et XII (Vercora)** : mention « service non commercialisé à ce jour — dispositions applicables à compter de son ouverture ». Dans le Titre VI, elle remplace l'ancienne mention « prévu entre Août 2026 et Février 2027 ».
- **Art. 43 / 44** : exonération « transporteurs » et « réputé livré en parfait état » limitées au B2B. En B2C, le transfert des risques a lieu à la prise de possession (L216-4).
- **Art. 45** : réécrit. Tirages non personnalisés : rétractation de 14 jours à compter de la réception, notification, retour sous 14 jours, frais de retour à la charge du client, remboursement sous 14 jours (livraison standard incluse, report possible jusqu'au retour du bien) et règle sur la dépréciation. Tirages personnalisés ou sur mesure : droit exclu (L221-28 3°).
- **Art. 48** : garantie de 6 mois du support limitée au B2B. Elle était plus courte que la garantie légale de 2 ans et donc irrégulière en B2C.
- **Art. 49 (nouveau)** : garanties légales. Conformité : 2 ans, présomption, réparation/remplacement/réduction du prix/résolution, prolongation de 7 jours, L217-3 s., L224-25-12 s. pour le numérique, L241-5. Vices cachés : art. 1641 s. C. civ.
- **Art. 53 / 54** (plafond de responsabilité, dommages indirects) : limités aux professionnels. « Faute lourde » devient « faute lourde ou dolosive ».
- **Art. 57** (médiateur) : fond inchangé et `<!-- TODO médiateur -->`.
- **Art. 58** (juridiction) : « Tribunal de Commerce » remplacé par « tribunal judiciaire de Grenoble » (B2B) ; en B2C, règles légales (lieu du domicile du consommateur).
- **Titre X** : note indiquant que seul Gastinel Mind est ouvert (formule neutre : « conditions d'accès précisées sur la page du service ») et que les autres services ne sont pas commercialisés. L'Art. 76 précise que le contenu des échanges n'est pas conservé.
- **Titre XIII et Art. 87 / 89** : CornafSuisse (VPS Infomaniak, Plan-les-Ouates, Genève) héberge le site, et certains services sont sur CornafServer (France). L'environnement résidentiel ne concerne plus que CornafServer, et l'hébergeur du VPS est ajouté aux causes extérieures. Art. 88 et 90 : fond inchangé.
- **Annexe (nouvelle)** : formulaire type de rétractation, modèle de l'annexe à l'art. R221-1, adressé à Richard GASTINEL EI.
**Politique de confidentialité**
- Responsable : « Richard GASTINEL, entrepreneur individuel (EI) ». L'hébergement (CornafSuisse, Plan-les-Ouates) est conservé tel que publié, sans doublon.
- Finalités : ajout de la finalité « 5. Gastinel Mind » (intérêt légitime) ; l'audience devient la finalité 6.
- **Nouvelle section « Gastinel Mind »**, avec un lien dans la barre latérale. Données enregistrées : envoi d'un message, nombre de tokens, vitesse et temps de génération. Ne sont conservés ni le contenu ni les adresses IP (anonymisées) ; pas d'entraînement, pas de transmission.
- Panier/boutique : « service non commercialisé à ce jour ». Art. 91 (Frame) : même mention.
- Art. 94 : mesures de sécurité portant sur CornafSuisse et CornafServer.
- Encadré « Transition technologique » (dans le panneau) : ne promet plus un « serveur domestique très prochainement ». Il décrit le VPS CornafSuisse et la migration progressive vers CornafServer.
- Titre VII retiré de cette page (déplacé dans les CGV).
**Mentions légales** : éditeur et directeur de la publication deviennent « Richard GASTINEL, entrepreneur individuel (EI) » ; médiation renvoie à l'**Article 57** ; périmètre des activités : « seul Gastinel Mind est ouvert ». L'hébergement est inchangé (déjà à jour).
## 4. Recherche SumUp Tap to Pay (France), 25/09/2026
- https://www.sumup.com/fr-fr/tap-to-pay/ :
- **1,75 % par transaction** sans abonnement ni frais mensuels ;
- formule « Paiements Plus » : 0,89 % sur les cartes consommateur de l'EEE (1,75 % sur les cartes pro/premium/hors EEE et Amex), à partir de 16 €/mois selon la page Tap to Pay. D'autres sources indiquent 19 €/mois (https://www.sumup.com/fr-fr/paiements-plus/) : **à vérifier dans l'appli** ;
- **pas de plafond de montant** : « au-delà de 50 €, votre client n'a qu'à saisir son code PIN » sur le téléphone.
- Autres sources : https://fr.mobiletransaction.org/tap-to-pay-france/ et https://www.entrepreneurhero.fr/terminal-de-paiement/tap-to-pay-sumup/ (mêmes chiffres).
- **Pourquoi la commission n'est pas répercutée** : l'art. L112-12 du Code monétaire et financier (transposition de la DSP2) interdit de facturer des frais au payeur pour l'usage d'un instrument de paiement soumis au règlement (UE) 2015/751, c'est-à-dire les cartes de débit et de crédit de consommateurs. Mettre la commission SumUp à la charge du client serait donc illégal. Le coût (1,75 % : 17,50 € pour 1 000 €) doit être intégré aux prix. Les CGV précisent donc seulement que le paiement est traité par SumUp, que le code PIN est demandé au-delà de 50 € et qu'aucun frais n'est ajouté. (Pour les seules cartes d'entreprise, une répercussion serait juridiquement discutable ; elle n'est pas proposée, par simplicité.)
## 5. Points juridiques à faire relire (je ne suis pas avocat)
1. **Art. 6** : indemnité d'annulation plafonnée à 60 %. Le risque d'être qualifiée de clause pénale (réductible par le juge, art. 1231-5 C. civ.) ou de clause abusive en B2C (R212-2 3°) est réduit par la réciprocité, les justificatifs et le plafond, sans être nul. Il faut aussi vérifier la cohérence avec l'Art. 9 (pénalité de retard de 1/4 du taux horaire par heure pour un consommateur).
2. **Art. 7** : l'exception « loisirs à date déterminée » (L221-28 12°) appliquée à un shooting photo reste discutable. C'est pour cela que le texte prévoit un repli (L221-25).
3. **Art. 58** : choix du tribunal judiciaire de Grenoble plutôt que du ressort de la cour d'appel. Une clause attributive de compétence n'est valable qu'entre commerçants (art. 48 CPC) : à vérifier si le client professionnel n'est pas commerçant.
4. **Art. 20** : pour les délais B2B, renvoi à L441-10 sans chiffre. À compléter au devis ou à la facture, avec la mention de l'indemnité de 40 € (Art. 55).
5. **Art. 49** : le texte d'information sur les garanties est une reformulation fidèle, pas la copie mot pour mot du modèle de l'arrêté du 2021 (D211-2 / décret 2021-1247). À comparer au modèle officiel.
6. **Art. 1** : « signature manuscrite ou électronique » est conservé ; à vérifier au regard du processus réel (devis signé ?).
7. **Art. 2** : dans l'ancienne version, la « primauté des CGV » s'appliquait aussi face aux conditions d'un acheteur professionnel. En B2B, un conflit de conditions générales rend les clauses contradictoires inapplicables (art. 1119 C. civ.).
8. **Médiateur** (Art. 57) : TODO en attente. L'adhésion est obligatoire avant toute vente aux consommateurs.
9. Gastinel Mind « gratuit » : la formule reste neutre (« conditions d'accès précisées sur la page du service »), à confirmer.
10. **Hors panneaux, non modifié** : le prompt de l'assistant légal (`FALLBACK_SYS_PROMPT`, vers la ligne 3560 de `index.html`) mentionne encore « Acompte : 30 % acquis ([Article 6]) », « micro-entreprise GASTINEL Richard », « Cloud 2049 sur CornafServer » et d'anciens numéros (Article 50 → 51, 71 → 72, 80 → 81). **À mettre à jour en même temps que la publication**, sinon l'assistant contredira les CGV.
+3750
Voir le fichier
Diff désactivé car ce fichier est trop long. Voir la Diff
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+26
Voir le fichier
@@ -0,0 +1,26 @@
[
{
"id": 3,
"date": "2026-09",
"tag": "Infrastructure",
"title": "Souveraineté numérique : Architecture CornafServer et bouclier suisse",
"desc": "Mise en place d'un reverse-proxy Nginx durci sous TLS 1.3 avec masquage d'IP d'origine et tunnel WireGuard chiffré.",
"link": "https://news.gastinel.me/cornafserver-infra-vps"
},
{
"id": 2,
"date": "2026-08",
"tag": "Audiovisuel",
"title": "Prises de vues 4K en haute montagne : équipement et retours d'expédition",
"desc": "Retour d'expérience sur le tournage au crépuscule dans les hauts plateaux du Vercors avec boîtier plein format et drone FPV.",
"link": "https://news.gastinel.me/tournage-vercors-4k"
},
{
"id": 1,
"date": "2026-07",
"tag": "Logiciel",
"title": "Vercora Engine : Rendu géologique et moteur 3D en C++ et Vulkan",
"desc": "Avancées sur le pipeline graphique haute fidélité pour la modélisation topographique alpine sans dépendances lourdes.",
"link": "https://news.gastinel.me/vercora-engine-vulkan"
}
]
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+49
Voir le fichier
@@ -0,0 +1,49 @@
# =============================================================
# Caddy — le plus simple : compression + HTTPS automatiques
# Lancer : caddy run --config Caddyfile
# =============================================================
# Remplace par ton domaine (ex: gastinel.me) pour un HTTPS auto.
# Pour un test local, garde :8080
:8080 {
root * /srv/site
file_server
# Brotli si dispo, sinon gzip. S'applique au HTML/CSS/JS.
encode zstd gzip
# Assets versionnés par leur contenu -> cache très long.
@assets path /assets/*
header @assets Cache-Control "public, max-age=31536000, immutable"
# Le HTML doit toujours être revalidé (sinon tes mises à jour
# ne parviennent jamais aux visiteurs déjà venus).
@html path *.html /
header @html Cache-Control "no-cache"
# Télémétrie système : reverse-proxy sécurisé vers le démon local (GET uniquement)
@stats {
method GET
path /api/stats /api/stats/
}
handle @stats {
reverse_proxy 127.0.0.1:8085
header Cache-Control "public, max-age=2"
}
# Assistant légal Groq : reverse-proxy vers le démon local (POST et OPTIONS)
@assistant {
method POST OPTIONS
path /api/assistant /api/assistant/
}
handle @assistant {
reverse_proxy 127.0.0.1:8085
header Cache-Control "no-store, no-cache, must-revalidate"
}
header {
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
-Server
}
}
+31
Voir le fichier
@@ -0,0 +1,31 @@
[Unit]
Description=CornafServer System Telemetry Daemon
After=network.target
[Service]
Type=simple
# Exécution sous utilisateur non-privilégié
User=nobody
Group=nogroup
# Chemin vers le script sur le serveur
WorkingDirectory=/srv/site/deploy
ExecStart=/usr/bin/python3 /srv/site/deploy/telemetry_daemon.py
# Redémarrage automatique en cas de pépin
Restart=always
RestartSec=5
# Durcissement de sécurité (sandboxing systemd)
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
CapabilityBoundingSet=
[Install]
WantedBy=multi-user.target
+211
Voir le fichier
@@ -0,0 +1,211 @@
# ==============================================================================
# Nginx — Configuration VPS Suisse (Bouclier Reverse-Proxy & Statique AOT)
# Domaine : gastinel.me / www.gastinel.me
# Cible : VPS Suisse (Alpine / Debian 12) devant Livebox résidentielle
# ==============================================================================
# Note : Si compilé avec le module ngx_brotli (recommandé : nginx:alpine-brotli ou ppa:ondrej/nginx)
# load_module modules/ngx_http_brotli_filter_module.so;
# load_module modules/ngx_http_brotli_static_module.so;
# Limite de requêtes sur les API proxifiées
limit_req_zone $binary_remote_addr zone=api_ratelimit:10m rate=5r/s;
# ------------------------------------------------------------------------------
# 1. Redirection HTTP vers HTTPS (Port 80 -> 443)
# ------------------------------------------------------------------------------
server {
listen 80;
listen [::]:80;
server_name gastinel.me www.gastinel.me;
# Défi ACME Let's Encrypt / Certbot
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
# ------------------------------------------------------------------------------
# 2. Serveur Principal HTTPS (TLS 1.3 Exclusif & HTTP/2 / HTTP/3 QUIC)
# ------------------------------------------------------------------------------
server {
listen 443 ssl;
listen [::]:443 ssl;
# Nginx 1.25+ supporte la directive native http2 on;
http2 on;
# Option HTTP/3 QUIC (décommenter si Nginx 1.25+ compilé avec --with-http_v3_module) :
# listen 443 quic reuseport;
# listen [::]:443 quic reuseport;
# add_header Alt-Svc 'h3=":443"; ma=86400' always;
server_name gastinel.me www.gastinel.me;
root /usr/share/nginx/html;
index index.html;
# ---- Certificats & Durcissement TLS --------------------------------------
ssl_certificate /etc/letsencrypt/live/gastinel.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/gastinel.me/privkey.pem;
# TLS 1.3 EXCLUSIF (élimine toute vulnérabilité héritée et réduit les allers-retours handshake)
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_ecdh_curve X25519:prime256v1;
# Optimisation de session SSL (0-RTT / Fast Resumption sécurisé)
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1d;
ssl_session_tickets off;
# Résolveur DNS local avec validation DNSSEC pour OCSP Stapling
ssl_stapling on;
ssl_stapling_verify on;
resolver 1.1.1.1 9.9.9.9 valid=300s;
resolver_timeout 5s;
# ---- Masquage du serveur & Optimisation TCP Système ----------------------
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_body_buffer_size 16k;
client_header_buffer_size 1k;
client_max_body_size 2m;
large_client_header_buffers 4 8k;
# ---- En-têtes HTTP de Sécurité Stricts (Grade A+) -----------------------
# 1. HSTS (2 ans + sous-domaines + éligible preload list HSTS)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
# 2. Protection contre le sniffing de type MIME
add_header X-Content-Type-Options "nosniff" always;
# 3. Interdiction d'encapsulation (Clickjacking)
add_header X-Frame-Options "DENY" always;
# 4. Politique de Referrer étanche
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# 5. Désactivation des API matérielles intrusives
add_header Permissions-Policy "geolocation=(), camera=(), microphone=(), payment=(), usb=()" always;
# 6. Content-Security-Policy (CSP) statique épuré
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://news.gastinel.me; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" always;
# ---- Compression Extrême AOT (Brotli Statique 11 & Gzip Statique 9) -----
# Nginx sert directement les fichiers .br et .gz générés hors-ligne (zéro CPU)
brotli_static on;
gzip_static on;
# Repli dynamique à la volée si le fichier statique n'a pas été pré-compressé
brotli on;
brotli_comp_level 6;
brotli_types text/plain text/css application/javascript application/json image/svg+xml;
gzip on;
gzip_vary on;
gzip_min_length 256;
gzip_comp_level 6;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
# ---- Politiques de Cache HTTP --------------------------------------------
# 1. Assets immuables (images WebP, polices Inter & Comfortaa WOFF2)
location /assets/ {
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable" always;
add_header X-Content-Type-Options "nosniff" always;
access_log off;
}
# 2. Document HTML (index.html) : 5 minutes avec stale-while-revalidate
# Assure une mise à jour quasi-instantanée sans forcer le rechargement lourd
location = / {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
try_files /index.html =404;
}
location = /index.html {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
}
# 3. Flux d'actualités (data/news.json) : 5 minutes de cache
location = /data/news.json {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
add_header Content-Type "application/json; charset=utf-8" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Access-Control-Allow-Origin "https://gastinel.me" always;
}
# ---- Reverse-Proxy Sécurisé vers Backend Livebox (Télémétrie & API) -----
# IMPORTANT : L'IP résidentielle de la Livebox n'apparaît JAMAIS publiquement.
# La communication transite EXCLUSIVEMENT par le tunnel chiffré WireGuard (10.8.0.2).
# Intercepter les erreurs pour servir une page 502/504 locale au VPS
# Empêche tout équipement résidentiel Orange/Livebox de signer une page d'erreur
proxy_intercept_errors on;
error_page 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}
location /api/stats {
limit_except GET { deny all; }
limit_req zone=api_ratelimit burst=10 nodelay;
# Adresse IP interne du serveur local dans le tunnel WireGuard
proxy_pass http://10.8.0.2:8085;
proxy_http_version 1.1;
# Masquage strict de l'origine et des signatures du backend
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
# Suppression impérative de tout en-tête fuitant du backend
proxy_hide_header X-Powered-By;
proxy_hide_header Server;
proxy_hide_header Via;
proxy_hide_header X-Varnish;
proxy_hide_header X-Runtime;
proxy_hide_header X-Backend-Server;
# Micro-cache de 2 secondes pour immuniser la Livebox contre les pics
add_header Cache-Control "public, max-age=2, stale-while-revalidate=1" always;
add_header X-Content-Type-Options "nosniff" always;
}
location /api/assistant {
limit_except POST OPTIONS { deny all; }
limit_req zone=api_ratelimit burst=5 nodelay;
proxy_pass http://10.8.0.2:8085;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
proxy_hide_header X-Powered-By;
proxy_hide_header Server;
proxy_hide_header Via;
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
add_header X-Content-Type-Options "nosniff" always;
}
}
+102
Voir le fichier
@@ -0,0 +1,102 @@
# =============================================================
# Nginx — à placer dans conf.d/ ou sites-available/
# (le choix par défaut si tu passes par Docker / CasaOS)
# =============================================================
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# ---- Compression Extrême (AOT Brotli 11 & Gzip 9) --------
brotli_static on;
gzip_static on;
gzip on;
gzip_vary on;
gzip_min_length 256;
gzip_comp_level 6;
gzip_types
text/plain
text/css
text/javascript
application/javascript
application/json
image/svg+xml;
# Brotli dynamique en repli
brotli on;
brotli_comp_level 6;
brotli_types text/plain text/css application/javascript application/json image/svg+xml;
# ---- Cache ----------------------------------------------
# Assets immuables : 1 an de cache strict
location /assets/ {
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable" always;
access_log off;
}
# Document HTML : 300s (5min) avec revalidation en arrière-plan
location = /index.html {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
}
location = / {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
try_files /index.html =404;
}
# Flux actualités JSON : 300s (5min) avec revalidation en arrière-plan
location = /data/news.json {
add_header Cache-Control "public, max-age=300, stale-while-revalidate=60" always;
add_header Content-Type "application/json; charset=utf-8" always;
}
# ---- Télémétrie Système (/api/stats) --------------------
# Reverse-proxy sécurisé vers le démon local (127.0.0.1:8085)
location /api/stats {
# Restriction stricte à la méthode GET
limit_except GET {
deny all;
}
# Décommente la ligne ci-dessous si la zone limit_req_zone est active :
# limit_req zone=telemetry_ratelimit burst=4 nodelay;
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# Micro-cache client (2s) : immunise contre les requêtes massives simultanées
add_header Cache-Control "public, max-age=2, stale-while-revalidate=1";
add_header X-Content-Type-Options nosniff;
}
# ---- Assistant Légal Groq (/api/assistant) ---------------
location /api/assistant {
# Restriction stricte aux méthodes POST et OPTIONS
limit_except POST OPTIONS {
deny all;
}
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Cache-Control "no-store, no-cache, must-revalidate";
add_header X-Content-Type-Options nosniff;
}
# ---- Divers ---------------------------------------------
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy strict-origin-when-cross-origin;
server_tokens off;
}
+582
Voir le fichier
@@ -0,0 +1,582 @@
#!/usr/bin/env python3
"""
CornafServer - Daemon de Télémétrie Système Sécurisé
---------------------------------------------------
Micro-service en lecture seule pour la supervision système.
- Aucun appel shell (pas de subprocess/os.system).
- Lecture directe des pseudo-fichiers noyau /proc.
- Écoute strictement locale sur 127.0.0.1 (inaccessible de l'extérieur sans reverse-proxy).
- Ne requiert aucune dépendance tierce (bibliothèque standard Python 3 uniquement).
- Conçu pour s'exécuter sous un utilisateur non privilégié (ex: nobody).
"""
import json
import os
import re
import sys
import threading
import time
import unicodedata
import urllib.request
import urllib.error
from html.parser import HTMLParser
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
HOST = os.environ.get("TELEMETRY_HOST", "127.0.0.1")
PORT = int(os.environ.get("TELEMETRY_PORT", "8085"))
NODE_NAME = os.environ.get("TELEMETRY_NODE", "cornafserver")
# LLM local (llama-server, API compatible OpenAI) qui tourne en continu.
# Configuration uniquement par variables d'environnement (aucune valeur en dur) :
# LEGAL_LLM_URL : base de l'API, se terminant par /v1 (obligatoire)
# LEGAL_LLM_MODEL : alias du modèle (défaut : VercorNaf-Flash, alias -a de llama-server)
# LEGAL_LLM_API_KEY : jeton Bearer, seulement si le serveur LLM en exige un
# LEGAL_LLM_TIMEOUT : délai max en secondes (défaut : 60)
LLM_BASE_URL = os.environ.get("LEGAL_LLM_URL", "").rstrip("/")
LLM_MODEL = os.environ.get("LEGAL_LLM_MODEL", "VercorNaf-Flash")
LLM_API_KEY = os.environ.get("LEGAL_LLM_API_KEY", "")
LLM_TIMEOUT = float(os.environ.get("LEGAL_LLM_TIMEOUT", "60"))
MAX_QUESTION_CHARS = 400
# Page publiée qui contient les CGV, la politique de confidentialité et les
# mentions légales. Les réponses s'appuient sur CE texte, relu à chaque
# modification du fichier : plus de résumé écrit à la main qui vieillit.
SITE_HTML = os.environ.get("LEGAL_SITE_HTML", "")
# Place laissée aux extraits dans le prompt (le modèle a un contexte de 8192 jetons).
CONTEXT_CHARS = int(os.environ.get("LEGAL_CONTEXT_CHARS", "4500"))
SYSTEM_PROMPT = """AVERTISSEMENT : tes réponses sont purement informatives et n'ont aucune valeur juridique ; seul le texte publié fait foi. En cas de doute ou si l'information ne figure pas dans les extraits, dis-le franchement au lieu d'inventer. N'écris AUCUNE formule de fin, AUCUN numéro de téléphone ni adresse e-mail : le contact et le rappel « seul le texte publié fait foi » sont ajoutés automatiquement après ta réponse.
Tu es l'assistant d'accueil et d'information juridique de l'espace légal de Théo Gastinel (micro-entreprise GASTINEL Richard, SIRET 10481674900014), photographe, vidéaste et développeur basé à Lans-en-Vercors (38250).
TON ET OBJECTIF :
- Ton : Très agréable, chaleureux, bienveillant, clair et professionnel.
- Longueur : Maximum 250 mots par réponse, sauf si l'utilisateur demande explicitement plus de détails ou une réponse exhaustive.
- CITATIONS CLÉ : Cite systématiquement les articles ou sections concernés avec un lien d'ancre Markdown cliquable :
* Pour les articles numérotés des CGV : [Article X (Titre court)](#article-X) (ex: [Article 21 (Conservation des fichiers)](#article-21), [Article 6 (Acompte)](#article-6)).
* Pour les rubriques RGPD : [Vos droits RGPD](#rgpd-droits), [Hébergement CornafServer & Responsable](#rgpd-responsable), [Mesure d'audience sans cookies](#rgpd-audience), [Services de l'écosystème](#rgpd-ecosysteme).
* Pour les mentions légales : [Éditeur et mentions](#mentions-identite), [Périmètre des activités](#mentions-activites).
- Sécurité des données : Ne demande jamais d'informations personnelles identifiantes (noms, coordonnées bancaires, etc.).
SOURCE UNIQUE : les EXTRAITS DU TEXTE PUBLIÉ fournis plus bas, tirés de la page en ligne au moment de la question.
- Réponds uniquement à partir de ces extraits. N'invente ni chiffre, ni délai, ni montant, ni article.
- Si les extraits ne contiennent pas la réponse, dis-le simplement et invite à consulter le texte ou à contacter Théo.
- Pour citer un article, reprends son numéro exact tel qu'il apparaît dans les extraits."""
# ---------------------------------------------------------------------------
# Texte publié : extraction des articles et sélection de ceux qui répondent
# ---------------------------------------------------------------------------
class _Extracteur(HTMLParser):
"""Récupère les cartes d'articles (CGV) et les rubriques identifiées
(rgpd-*, mentions-*) de la page, sous forme de texte brut."""
def __init__(self):
super().__init__(convert_charrefs=True)
self.blocs = []
self._pile = None # [balise, profondeur, ancre, titre, morceaux, dans_titre]
def handle_starttag(self, tag, attrs):
d = dict(attrs)
if self._pile is not None:
if tag == self._pile[0]:
self._pile[1] += 1
if tag in ("h2", "h3", "h4") and not self._pile[3]:
self._pile[5] = True
if tag in ("p", "li", "br", "div"):
self._pile[4].append("\n")
return
classes = (d.get("class") or "").split()
ident = d.get("id") or ""
if "article-card" in classes:
self._pile = [tag, 1, "", "", [], False]
elif re.match(r"^(rgpd|mentions)-[a-z0-9-]+$", ident):
self._pile = [tag, 1, "#" + ident, "", [], False]
def handle_endtag(self, tag):
if self._pile is None:
return
if tag in ("h2", "h3", "h4"):
self._pile[5] = False
if tag == self._pile[0]:
self._pile[1] -= 1
if self._pile[1] == 0:
_, _, ancre, titre, morceaux, _ = self._pile
texte = re.sub(r"[ \t]+", " ", "".join(morceaux))
texte = re.sub(r"\s*\n\s*", "\n", texte).strip()
m = re.match(r"ARTICLE\s+(\d+)", titre.strip(), re.I)
if m:
ancre = f"#article-{m.group(1)}"
if texte:
self.blocs.append({"ancre": ancre, "titre": titre.strip() or ancre, "texte": texte})
self._pile = None
def handle_data(self, data):
if self._pile is None:
return
if self._pile[5]:
self._pile[3] += data
else:
self._pile[4].append(data)
_cache_texte = {"mtime": None, "blocs": []}
_verrou_texte = threading.Lock()
def blocs_publies():
"""Articles de la page publiée, relus seulement si le fichier a changé."""
if not SITE_HTML:
return []
try:
mtime = os.stat(SITE_HTML).st_mtime
except OSError:
return _cache_texte["blocs"]
with _verrou_texte:
if mtime != _cache_texte["mtime"]:
ex = _Extracteur()
with open(SITE_HTML, encoding="utf-8") as f:
ex.feed(f.read())
for b in ex.blocs:
b["racines"] = racines(b["titre"]), racines(b["texte"])
_cache_texte.update(mtime=mtime, blocs=ex.blocs)
return _cache_texte["blocs"]
_MOTS_VIDES = set("""avec dans pour sont cette cela comme mais plus tous tout toute quel quelle quels
quelles votre vous nous leur leurs elle elles sans chez entre aussi alors donc etre avoir fait faire
peut peux puis quoi dont ainsi apres avant article articles""".split())
def racines(texte):
t = unicodedata.normalize("NFD", texte.lower())
t = "".join(c for c in t if unicodedata.category(c) != "Mn")
return {w[:6] for w in re.findall(r"[a-z0-9]+", t) if len(w) >= 4 and w not in _MOTS_VIDES}
# Mots de tous les jours -> vocabulaire du texte juridique (racines de 6 lettres).
# Sans cela, « combien de temps gardez-vous mes photos » ne trouve pas
# l'article sur la « conservation des fichiers ».
SYNONYMES = {
"photo": ("fichie", "livrab"), "photos": ("fichie", "livrab"), "video": ("fichie", "livrab"),
"videos": ("fichie", "livrab"), "images": ("fichie",), "rushs": ("fichie", "bruts"),
"garde": ("conser", "archiv"), "gardez": ("conser", "archiv"), "garder": ("conser", "archiv"),
"gardes": ("conser",), "stocke": ("conser", "archiv"), "temps": ("duree", "delai"),
"annule": ("annula",), "annuler": ("annula",), "rembou": ("rembou", "acompt"),
"payer": ("paieme", "factur", "reglem"), "paiement": ("paieme",), "prix": ("tarif", "devis"),
"tarif": ("tarif", "devis"), "retard": ("retard", "tolera"), "donnee": ("person", "rgpd"),
"donnees": ("person", "rgpd"), "supprim": ("suppre", "effac"), "effacer": ("effac", "suppre"),
"droits": ("auteur", "cessio"), "utilis": ("cessio", "diffus"), "publie": ("diffus", "cessio"),
}
def extraits_pour(question):
"""Articles les plus proches de la question, dans la limite de CONTEXT_CHARS."""
blocs = blocs_publies()
q = racines(question)
q |= {syn for mot in list(q) for syn in SYNONYMES.get(mot, ())}
cites = set(re.findall(r"article\s*(\d+)", question.lower()))
notes = []
for b in blocs:
r_titre, r_texte = b["racines"]
score = 3 * len(q & r_titre) + len(q & r_texte)
if b["ancre"].split("-")[-1] in cites and b["ancre"].startswith("#article-"):
score += 100
if score > 0:
notes.append((score, b))
notes.sort(key=lambda x: -x[0])
choisis, taille = [], 0
for _, b in notes:
bloc = f"[{b['titre']}] (ancre {b['ancre']})\n{b['texte']}"
if taille + len(bloc) > CONTEXT_CHARS:
continue
choisis.append(bloc)
taille += len(bloc)
sommaire = "\n".join(f"- {b['titre']} ({b['ancre']})" for b in blocs if b["ancre"].startswith("#article-"))
return choisis, sommaire
def construire_messages(question):
# Ordre voulu : partie fixe (consignes + sommaire) d'abord, extraits ensuite.
# llama-server (--cache-prompt) réutilise alors le début déjà calculé et ne
# relit que les extraits : le premier mot arrive bien plus vite.
choisis, sommaire = extraits_pour(question)
fixe = SYSTEM_PROMPT + ("\n\nSOMMAIRE DES ARTICLES :\n" + sommaire if sommaire else "")
extraits = "EXTRAITS DU TEXTE PUBLIÉ :\n\n" + ("\n\n".join(choisis) if choisis else "(aucun extrait ne correspond à la question)")
return [
{"role": "system", "content": fixe + "\n\n" + extraits},
{"role": "user", "content": question},
]
# Rate limiting simple en mémoire : max 12 requêtes par minute par IP
_ip_rate_limits = {}
def check_rate_limit(ip: str) -> bool:
now = time.time()
timestamps = _ip_rate_limits.get(ip, [])
# Garde les requêtes des 60 dernières secondes
timestamps = [t for t in timestamps if now - t < 60]
if len(timestamps) >= 12:
_ip_rate_limits[ip] = timestamps
return False
timestamps.append(now)
_ip_rate_limits[ip] = timestamps
return True
def _requete_llm(question: str, flux: bool):
if not LLM_BASE_URL:
raise RuntimeError("LEGAL_LLM_URL non configurée")
payload = {
"model": LLM_MODEL,
"messages": construire_messages(question),
"max_tokens": 450,
"temperature": 0.3,
"stream": flux,
}
headers = {
"Content-Type": "application/json",
"User-Agent": "CornafServer-Assistant/2.1"
}
if LLM_API_KEY:
headers["Authorization"] = f"Bearer {LLM_API_KEY}"
req = urllib.request.Request(
LLM_BASE_URL + "/chat/completions",
headers=headers,
data=json.dumps(payload).encode("utf-8")
)
return urllib.request.urlopen(req, timeout=LLM_TIMEOUT)
# Fin de réponse écrite par le serveur, mot pour mot : le modèle déformait le
# numéro et collait les mots de sa formule finale (mesuré le 25/09/2026 :
# numéro abîmé dans 8 réponses sur 8).
FIN_DE_REPONSE = (
"\n\nThéo reste disponible pour toute question : WhatsApp au 06 36 27 64 19 ou "
"studio@gastinel.me (réponse sous 48 h). Seul le texte publié fait foi : consultez l'article cité."
)
def call_legal_assistant(question: str) -> str:
"""Réponse complète en une fois (endpoint /chat/completions compatible OpenAI)."""
with _requete_llm(question, False) as resp:
body = json.loads(resp.read().decode("utf-8"))
content = (body["choices"][0]["message"].get("content") or "").strip()
if not content:
raise RuntimeError("Réponse vide du LLM")
return content + FIN_DE_REPONSE
def stream_legal_assistant(question: str):
"""Morceaux de réponse au fil de la génération (SSE de llama-server)."""
with _requete_llm(question, True) as resp:
for ligne in resp:
ligne = ligne.decode("utf-8", "replace").strip()
if not ligne.startswith("data:"):
continue
donnee = ligne[5:].strip()
if donnee == "[DONE]":
return
try:
delta = json.loads(donnee)["choices"][0].get("delta", {})
except (ValueError, KeyError, IndexError):
continue
morceau = delta.get("content")
if morceau:
yield morceau
# État interne pour le calcul CPU différentiel (/proc/stat)
_last_cpu_time = 0.0
_last_cpu_idle = 0.0
_last_cpu_total = 0.0
_cached_cpu_pct = 0.0
def read_proc_stat():
"""Calcule le pourcentage d'utilisation CPU depuis /proc/stat."""
global _last_cpu_time, _last_cpu_idle, _last_cpu_total, _cached_cpu_pct
now = time.time()
# Met en cache pour au moins 500ms afin d'éviter les calculs sur delta nul
if (now - _last_cpu_time) < 0.5 and _last_cpu_time > 0:
return _cached_cpu_pct
try:
with open("/proc/stat", "r", encoding="utf-8") as f:
line = f.readline()
if not line.startswith("cpu "):
return _cached_cpu_pct
fields = [float(x) for x in line.strip().split()[1:]]
idle = fields[3] + (fields[4] if len(fields) > 4 else 0.0) # idle + iowait
total = sum(fields)
if _last_cpu_total > 0:
delta_total = total - _last_cpu_total
delta_idle = idle - _last_cpu_idle
if delta_total > 0:
cpu_usage = 100.0 * (1.0 - (delta_idle / delta_total))
_cached_cpu_pct = round(max(0.0, min(100.0, cpu_usage)), 1)
else:
_cached_cpu_pct = 0.0
_last_cpu_time = now
_last_cpu_idle = idle
_last_cpu_total = total
return _cached_cpu_pct
except Exception:
# Fallback pour environnement de test sans /proc (Windows/Mac)
return 1.2
def read_proc_meminfo():
"""Lit la RAM totale et disponible depuis /proc/meminfo."""
try:
mem = {}
with open("/proc/meminfo", "r", encoding="utf-8") as f:
for line in f:
parts = line.split(":")
if len(parts) == 2:
key = parts[0].strip()
val = parts[1].strip().split()[0]
mem[key] = float(val)
total_kb = mem.get("MemTotal", 0.0)
avail_kb = mem.get("MemAvailable", mem.get("MemFree", 0.0))
used_kb = max(0.0, total_kb - avail_kb)
total_gb = round(total_kb / (1024.0 * 1024.0), 2)
used_gb = round(used_kb / (1024.0 * 1024.0), 2)
pct = round((used_kb / total_kb * 100.0), 1) if total_kb > 0 else 0.0
return used_gb, total_gb, pct
except Exception:
# Fallback test
return 4.58, 15.40, 29.7
def read_proc_uptime():
"""Lit l'uptime depuis /proc/uptime et formate en chaîne lisible."""
try:
with open("/proc/uptime", "r", encoding="utf-8") as f:
raw_uptime = float(f.readline().split()[0])
seconds = int(raw_uptime)
days = seconds // 86400
hours = (seconds % 86400) // 3600
minutes = (seconds % 3600) // 60
if days > 0:
uptime_str = f"{days}j {hours:02d}h {minutes:02d}m"
else:
uptime_str = f"{hours:02d}h {minutes:02d}m"
return uptime_str, seconds
except Exception:
return "24/7 ACTIF", 86400
def read_proc_loadavg():
"""Lit la charge moyenne système depuis /proc/loadavg."""
try:
with open("/proc/loadavg", "r", encoding="utf-8") as f:
parts = f.readline().split()
loads = [float(parts[0]), float(parts[1]), float(parts[2])]
return loads
except Exception:
return [0.12, 0.08, 0.05]
def get_telemetry_payload():
"""Construit la charge utile JSON de télémétrie assainie."""
cpu_pct = read_proc_stat()
ram_used, ram_total, ram_pct = read_proc_meminfo()
uptime_str, uptime_sec = read_proc_uptime()
load_avg = read_proc_loadavg()
return {
"status": "online",
"node": NODE_NAME,
"cpu_pct": cpu_pct,
"ram_used_gb": ram_used,
"ram_total_gb": ram_total,
"ram_pct": ram_pct,
"uptime_str": uptime_str,
"uptime_seconds": uptime_sec,
"load_avg": load_avg,
"timestamp": int(time.time()),
}
class SecureTelemetryHandler(BaseHTTPRequestHandler):
"""Gestionnaire HTTP ultra-restreint : GET /api/stats uniquement."""
server_version = "CornafTelemetry/1.0"
sys_version = ""
def do_GET(self):
# Restriction stricte de chemin
if self.path in ("/api/stats", "/api/stats/"):
payload = get_telemetry_payload()
data = json.dumps(payload, separators=(",", ":")).encode("utf-8")
self.send_response(200)
self.send_header("Content-Type", "application/json; charset=utf-8")
self.send_header("Content-Length", str(len(data)))
self.send_header("Cache-Control", "no-store, no-cache, must-revalidate")
self.send_header("X-Content-Type-Options", "nosniff")
self.send_header("Access-Control-Allow-Origin", "*")
self.end_headers()
self.wfile.write(data)
else:
self.send_error(404, "Not Found")
def _send_json(self, status_code, payload):
data = json.dumps(payload, ensure_ascii=False).encode("utf-8")
self.send_response(status_code)
self.send_header("Content-Type", "application/json; charset=utf-8")
self.send_header("Content-Length", str(len(data)))
self.send_header("Cache-Control", "no-store, no-cache, must-revalidate")
self.send_header("X-Content-Type-Options", "nosniff")
self.send_header("Access-Control-Allow-Origin", "*")
self.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
self.send_header("Access-Control-Allow-Headers", "Content-Type")
self.end_headers()
self.wfile.write(data)
def do_OPTIONS(self):
if self.path in ("/api/stats", "/api/stats/", "/api/assistant", "/api/assistant/"):
self.send_response(204)
self.send_header("Access-Control-Allow-Origin", "*")
self.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
self.send_header("Access-Control-Allow-Headers", "Content-Type")
self.end_headers()
else:
self.send_error(404, "Not Found")
def do_POST(self):
if self.path in ("/api/assistant", "/api/assistant/"):
client_ip = (
self.headers.get("X-Real-IP")
or self.headers.get("X-Forwarded-For", "").split(",")[0].strip()
or self.client_address[0]
)
if not check_rate_limit(client_ip):
return self._send_json(429, {
"error": "Trop de requêtes envoyées. Merci de patienter quelques instants avant de poser une nouvelle question."
})
try:
content_length = int(self.headers.get("Content-Length", 0))
except ValueError:
return self._send_json(400, {"error": "En-tête Content-Length invalide."})
if content_length <= 0:
return self._send_json(400, {"error": "Requête vide."})
if content_length > 4096:
return self._send_json(413, {"error": "Question trop volumineuse (maximum 4 Ko)."})
try:
raw_body = self.rfile.read(content_length).decode("utf-8")
body = json.loads(raw_body)
except Exception:
return self._send_json(400, {"error": "Format JSON invalide."})
question = str(body.get("question", "")).strip()
if len(question) < 2:
return self._send_json(400, {"error": "Merci de saisir une question plus détaillée."})
if len(question) > MAX_QUESTION_CHARS:
return self._send_json(400, {"error": f"Votre question dépasse la limite de {MAX_QUESTION_CHARS} caractères."})
if body.get("stream") is True:
return self._repondre_en_flux(question)
try:
answer = call_legal_assistant(question)
return self._send_json(200, {"answer": answer})
except Exception:
return self._send_json(503, {
"error": "L'assistant est momentanément indisponible. Les documents ci-dessus restent consultables, et vous pouvez écrire à studio@gastinel.me."
})
else:
self.send_error(405, "Method Not Allowed")
def _repondre_en_flux(self, question):
"""Server-Sent Events : un événement par morceau, puis {"done": true}.
Si le LLM échoue avant le premier morceau, réponse 503 JSON classique."""
indispo = "L'assistant est momentanément indisponible. Les documents ci-dessus restent consultables, et vous pouvez écrire à studio@gastinel.me."
morceaux = stream_legal_assistant(question)
try:
premier = next(morceaux)
except StopIteration:
return self._send_json(503, {"error": indispo})
except Exception:
return self._send_json(503, {"error": indispo})
self.send_response(200)
self.send_header("Content-Type", "text/event-stream; charset=utf-8")
self.send_header("Cache-Control", "no-store, no-cache, must-revalidate")
self.send_header("X-Accel-Buffering", "no")
self.send_header("X-Content-Type-Options", "nosniff")
self.end_headers()
def envoyer(obj):
self.wfile.write(("data: " + json.dumps(obj, ensure_ascii=False) + "\n\n").encode("utf-8"))
self.wfile.flush()
try:
envoyer({"t": premier})
for m in morceaux:
envoyer({"t": m})
envoyer({"t": FIN_DE_REPONSE})
envoyer({"done": True})
except (BrokenPipeError, ConnectionResetError):
pass # visiteur parti : la génération s'arrête avec la connexion
except Exception:
try:
envoyer({"error": indispo})
except Exception:
pass
def do_PUT(self):
self.send_error(405, "Method Not Allowed")
def do_DELETE(self):
self.send_error(405, "Method Not Allowed")
def do_HEAD(self):
if self.path in ("/api/stats", "/api/stats/"):
self.send_response(200)
self.send_header("Content-Type", "application/json; charset=utf-8")
self.send_header("Cache-Control", "no-store")
self.send_header("X-Content-Type-Options", "nosniff")
self.end_headers()
else:
self.send_error(404, "Not Found")
def log_message(self, format, *args):
# Désactiver les logs verbeux en console pour limiter l'empreinte disque/I/O
pass
def run_daemon():
# Initialisation de la première lecture CPU
read_proc_stat()
server_address = (HOST, PORT)
# Un fil par requête : une réponse en flux ne bloque pas les autres visiteurs.
httpd = ThreadingHTTPServer(server_address, SecureTelemetryHandler)
httpd.daemon_threads = True
print(f"[*] CornafServer Telemetry Daemon démarré sur http://{HOST}:{PORT}")
print(f"[*] Route télémétrie : http://{HOST}:{PORT}/api/stats")
print(f"[*] Route assistant IA : http://{HOST}:{PORT}/api/assistant")
try:
httpd.serve_forever()
except KeyboardInterrupt:
print("\n[*] Arrêt du démon.")
httpd.server_close()
if __name__ == "__main__":
run_daemon()
+653
Voir le fichier
@@ -0,0 +1,653 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Télécharger Gastinel Weather Studio (Windows 64-bit) — Canal Officiel</title>
<meta name="description" content="Téléchargement officiel de Gastinel Weather Studio (GWS) v0.4.8. Installateur standard (.exe) et paquet de mise à jour rapide (.gws) pour Windows 10 et 11.">
<link rel="canonical" href="https://gastinel.me/gws/download/">
<meta name="robots" content="index, follow">
<meta name="author" content="Théo Gastinel">
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:url" content="https://gastinel.me/gws/download/">
<meta property="og:site_name" content="Gastinel Weather Studio">
<meta property="og:title" content="Télécharger Gastinel Weather Studio (v0.4.8)">
<meta property="og:description" content="Installateur standard (.exe) et paquet autonome de mise à jour rapide (.gws) pour Windows 10 et 11 (64-bit).">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%231e4d8b'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
<link rel="preload" href="../../assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
<style>
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
--blue-900: #123a6b;
--blue-700: #1e4d8b;
--blue-500: #3a72bd;
--blue-050: #eef3fa;
--grey-900: #1a1d21;
--grey-700: #3f464f;
--grey-500: #6b7480;
--grey-300: #b9c0c9;
--grey-200: #e8eaed;
--grey-100: #f1f3f5;
--bg: #fafbfc;
--card-bg: #ffffff;
--ok: #1c6b45;
--ok-bg: #e9f5ef;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(18, 58, 107, 0.05);
--shadow-md: 0 1px 3px rgba(18, 58, 107, 0.08), 0 4px 12px rgba(18, 58, 107, 0.04);
--shadow-lg: 0 8px 24px rgba(18, 58, 107, 0.08);
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--grey-900);
font-family: var(--font-sans);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Nav */
.gws-nav {
background: #ffffff;
border-bottom: 1px solid var(--grey-200);
box-shadow: var(--shadow-sm);
padding: 12px 24px;
}
.gws-nav-inner {
max-width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.gws-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--grey-900);
}
.gws-nav-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
border: 1px solid var(--grey-200);
background: #ffffff;
padding: 2px;
}
.gws-brand-title {
font-weight: 700;
font-size: 1.15rem;
letter-spacing: -0.3px;
color: var(--blue-900);
}
.gws-nav-actions {
display: flex;
align-items: center;
gap: 12px;
}
.gws-link-subtle {
font-size: 0.86rem;
font-weight: 600;
color: var(--blue-700);
text-decoration: none;
padding: 6px 12px;
}
.gws-link-subtle:hover {
text-decoration: underline;
color: var(--blue-900);
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}
/* Hero Téléchargement */
.dl-hero {
padding: 48px 0 32px;
text-align: center;
}
.dl-badge-tag {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--blue-050);
border: 1px solid #d4e2f4;
padding: 5px 14px;
border-radius: 20px;
font-size: 0.78rem;
font-weight: 700;
color: var(--blue-700);
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 16px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--ok);
}
.dl-hero h1 {
font-size: clamp(2rem, 4vw, 2.8rem);
font-weight: 800;
color: var(--blue-900);
margin: 0 0 10px 0;
letter-spacing: -0.02em;
}
.dl-hero p {
color: var(--grey-700);
font-size: 1rem;
max-width: 680px;
margin: 0 auto;
}
/* Grille des 2 Paquets */
.dl-choice-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
margin-bottom: 40px;
}
@media (max-width: 768px) {
.dl-choice-grid { grid-template-columns: 1fr; }
}
.dl-card {
border-radius: var(--radius-md);
padding: 28px;
display: flex;
flex-direction: column;
justify-content: space-between;
box-shadow: var(--shadow-sm);
}
.dl-card.primary {
background: #f7faff;
border: 2px solid #c8daf0;
}
.dl-card.secondary {
background: #f9fdfa;
border: 2px solid #b7dfcb;
}
.dl-card-badge-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.dl-tag {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 3px 8px;
border-radius: 4px;
}
.tag-blue {
background: var(--blue-050);
color: var(--blue-700);
border: 1px solid #d4e2f4;
}
.tag-green {
background: var(--ok-bg);
color: var(--ok);
border: 1px solid #b7dfcb;
}
.dl-size {
font-size: 0.82rem;
color: var(--grey-500);
font-weight: 600;
}
.dl-card-title {
font-size: 1.3rem;
font-weight: 800;
color: var(--blue-900);
margin: 0 0 6px 0;
}
.dl-card-for {
font-size: 0.9rem;
font-weight: 700;
margin: 0 0 16px 0;
}
.dl-card.primary .dl-card-for { color: var(--blue-700); }
.dl-card.secondary .dl-card-for { color: var(--ok); }
.dl-list {
list-style: none;
padding: 0;
margin: 0 0 24px 0;
display: flex;
flex-direction: column;
gap: 10px;
font-size: 0.9rem;
color: var(--grey-700);
}
.dl-list li {
position: relative;
padding-left: 20px;
line-height: 1.45;
}
.dl-list li::before {
content: '—';
position: absolute;
left: 0;
font-weight: 700;
}
.dl-card.primary .dl-list li::before { color: var(--blue-700); }
.dl-card.secondary .dl-list li::before { color: var(--ok); }
.btn-dl-action {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 14px 20px;
border-radius: var(--radius-sm);
font-size: 1rem;
font-weight: 700;
text-decoration: none;
transition: all 0.15s ease;
}
.btn-dl-exe {
background: var(--blue-700);
color: #ffffff !important;
box-shadow: 0 2px 6px rgba(30, 77, 139, 0.25);
}
.btn-dl-exe:hover {
background: var(--blue-900);
transform: translateY(-1px);
}
.btn-dl-gws {
background: var(--ok);
color: #ffffff !important;
box-shadow: 0 2px 6px rgba(28, 107, 69, 0.25);
}
.btn-dl-gws:hover {
background: #145034;
transform: translateY(-1px);
}
/* Guide Defender Simplifié & Rassurant */
.defender-guide-box {
background: #ffffff;
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 26px 28px;
margin-bottom: 36px;
box-shadow: var(--shadow-sm);
}
.defender-guide-box h3 {
font-size: 1.15rem;
color: var(--blue-900);
margin: 0 0 10px 0;
}
.defender-note {
font-size: 0.9rem;
color: var(--grey-700);
line-height: 1.6;
margin: 0 0 20px 0;
background: var(--grey-100);
border-left: 3px solid var(--blue-700);
padding: 12px 16px;
border-radius: 4px;
}
.steps-horizontal {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
}
@media (max-width: 768px) {
.steps-horizontal { grid-template-columns: 1fr; }
}
.step-item {
background: var(--bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-sm);
padding: 16px;
}
.step-num {
font-size: 0.8rem;
font-weight: 700;
color: var(--blue-700);
margin-bottom: 6px;
}
.step-item h4 {
font-size: 0.95rem;
color: var(--blue-900);
margin: 0 0 6px 0;
}
.step-item p {
font-size: 0.84rem;
color: var(--grey-700);
margin: 0;
line-height: 1.45;
}
/* Changelog Rapide */
.changelog-box {
background: #ffffff;
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 24px 28px;
margin-bottom: 40px;
box-shadow: var(--shadow-sm);
}
.changelog-box h3 {
font-size: 1.15rem;
color: var(--blue-900);
margin: 0 0 14px 0;
}
.changelog-box ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 8px;
font-size: 0.9rem;
color: var(--grey-700);
}
.changelog-box li {
position: relative;
padding-left: 18px;
line-height: 1.5;
}
.changelog-box li::before {
content: '▸';
position: absolute;
left: 0;
color: var(--blue-700);
font-weight: 700;
}
.back-to-pres-bar {
text-align: center;
padding-bottom: 40px;
}
.back-to-pres-bar a {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--blue-700);
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
}
.back-to-pres-bar a:hover {
text-decoration: underline;
color: var(--blue-900);
}
.gws-footer {
margin-top: auto;
background: var(--grey-100);
border-top: 1px solid var(--grey-200);
padding: 30px 20px;
text-align: center;
font-size: 0.86rem;
color: var(--grey-500);
}
.gws-footer a {
color: var(--blue-700);
text-decoration: none;
}
/* Téléchargement principal seul en tête ; mise à jour .gws reléguée plus bas */
.dl-choice-grid { grid-template-columns: minmax(0, 640px); justify-content: center; }
.dl-update-section { margin: 0 0 40px 0; }
.dl-update-heading { font-size: 1.05rem; font-weight: 700; color: var(--grey-700); margin: 0 0 14px 0; }
.dl-card.dl-update-card { padding: 22px; box-shadow: none; border-width: 1px; }
.dl-update-card .dl-card-title { font-size: 1.1rem; }
.dl-update-card .dl-list { font-size: 0.86rem; }
.btn-dl-action.btn-dl-secondary { background: transparent; color: var(--ok) !important; border: 1.5px solid var(--ok); box-shadow: none; width: auto; align-self: flex-start; padding: 10px 18px; font-size: 0.92rem; }
.btn-dl-action.btn-dl-secondary:hover { background: var(--ok-bg); transform: none; }
.maj-banner { margin: 24px 0 0; padding: 16px 20px; border-radius: var(--radius-md); background: var(--ok-bg); border: 1px solid #b7dfcb; color: var(--grey-900); font-size: 0.95rem; }
.maj-banner.warn { background: #fff7e6; border-color: #f0d49a; }
.maj-banner strong { display: block; margin-bottom: 4px; color: var(--ok); }
.maj-banner.warn strong { color: #8a5a00; }
.maj-banner p { margin: 0; }
.maj-banner a { color: var(--blue-700); font-weight: 600; }
</style>
</head>
<body>
<div class="page-wrapper">
<header class="gws-nav">
<div class="gws-nav-inner">
<a href="https://gastinel.me/gws/" class="gws-brand">
<img src="../../assets/apps/gastinel-weather-studio/icone.webp" alt="Icône GWS" class="gws-nav-icon" width="36" height="36">
<span class="gws-brand-title">Gastinel Weather Studio</span>
</a>
<div class="gws-nav-actions">
<a href="https://gastinel.me/gws/" class="gws-link-subtle">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-right:4px;"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
Présentation du logiciel
</a>
<a href="https://gastinel.me/gws/stack/" class="gws-link-subtle">Stack technique</a>
</div>
</div>
</header>
<main class="container">
<div class="maj-banner" id="maj-banner" role="status" aria-live="polite" hidden>
<strong id="maj-titre"></strong>
<p id="maj-texte"></p>
<p id="maj-secours" hidden>Le téléchargement ne démarre pas ? <a id="maj-lien" href="#mise-a-jour">Téléchargez le paquet ici</a>.</p>
</div>
<div class="dl-hero">
<div class="dl-badge-tag">
<span class="status-dot"></span>
<span>Version 0.4.8 &middot; Canal stable officiel</span>
</div>
<h1>Télécharger Gastinel Weather Studio</h1>
<p>Compatible Windows 10 et Windows 11 (64-bit) — <a href="https://gastinel.me/gws/stack/#configuration">configuration requise</a>. Déjà installé ? Le <a href="#mise-a-jour">paquet de mise à jour .gws</a> se trouve plus bas.</p>
</div>
<!-- Grille des 2 Téléchargements -->
<div class="dl-choice-grid">
<!-- Option 1 : .exe -->
<div class="dl-card primary">
<div>
<div class="dl-card-badge-row">
<span class="dl-tag tag-blue">Nouvelle installation</span>
<span class="dl-size">3,7 Mo &middot; x64</span>
</div>
<h2 class="dl-card-title">Installateur Windows (.exe)</h2>
<div class="dl-card-for">Pour votre première installation sur l'ordinateur</div>
<ul class="dl-list">
<li><strong>Quand l'utiliser :</strong> Si Gastinel Weather Studio n'est pas encore présent sur votre PC.</li>
<li><strong>Ce qu'il fait :</strong> Installe le logiciel, crée les raccourcis Bureau et Menu Démarrer, et associe les fichiers de mise à jour <code>.gws</code>.</li>
<li><strong>Premier lancement :</strong> Windows Defender peut afficher un écran bleu de prévention (voir explication ci-dessous).</li>
</ul>
</div>
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.4.8_x64-setup.exe" class="btn-dl-action btn-dl-exe" download>
<span>Télécharger l'Installateur (.exe)</span>
</a>
</div>
</div>
<!-- Guide Defender -->
<div class="defender-guide-box">
<h3>Premier lancement de l'installateur : que faire avec Windows Defender ?</h3>
<div class="defender-note">
Gastinel Weather Studio est un logiciel artisanal et indépendant développé dans le Vercors. Microsoft réserve l'absence totale d'alerte aux éditeurs payant un abonnement annuel commercial très coûteux. L'application est saine et respecte strictement la confidentialité de vos données.
</div>
<div class="steps-horizontal">
<div class="step-item">
<div class="step-num">Étape 1</div>
<h4>L'écran bleu apparaît</h4>
<p>Windows affiche « Windows a protégé votre ordinateur ». Cliquez sur le lien <strong>« Informations complémentaires »</strong>.</p>
</div>
<div class="step-item">
<div class="step-num">Étape 2</div>
<h4>Autoriser l'exécution</h4>
<p>Le bouton <strong>« Exécuter quand même »</strong> apparaît en bas à droite de la fenêtre. Cliquez dessus.</p>
</div>
<div class="step-item">
<div class="step-num">Étape 3</div>
<h4>C'est terminé</h4>
<p>L'installation se termine normalement. Les futures mises à jour se feront directement par paquet <strong>.gws</strong> sans aucune alerte.</p>
</div>
</div>
</div>
<!-- Changelog -->
<div class="changelog-box">
<h3>Nouveautés de la version 0.4.8</h3>
<ul>
<li><strong>Import par glisser-déposer :</strong> déposez un fichier n'importe où sur la fenêtre ; son format est reconnu et le bon onglet d'import s'ouvre (également avec le bouton de choix de fichier).</li>
<li><strong>Projet d'exemple :</strong> découvrez l'application avant d'avoir vos propres données.</li>
<li><strong>Carte 3D :</strong> plus légère en mémoire avec l'extension Carte 3D 1.0.2.</li>
<li><strong>Import :</strong> un fichier CSV ordinaire n'est plus pris pour un export ElitechLog.</li>
<li><strong>Raccourcis clavier :</strong> Ctrl+I pour importer, Ctrl+, pour les Paramètres.</li>
</ul>
</div>
<!-- Mise à jour .gws : section secondaire (utilisateurs déjà équipés) -->
<section class="dl-update-section" id="mise-a-jour">
<h3 class="dl-update-heading">Déjà installé ? Mettre à jour avec le paquet .gws</h3>
<!-- Option 2 : .gws -->
<div class="dl-card secondary dl-update-card">
<div>
<div class="dl-card-badge-row">
<span class="dl-tag tag-green">Mise à jour rapide</span>
<span class="dl-size">4,5 Mo &middot; Format .gws</span>
</div>
<h2 class="dl-card-title">Paquet de Mise à Jour (.gws)</h2>
<div class="dl-card-for">Si vous avez déjà Gastinel Weather Studio</div>
<ul class="dl-list">
<li><strong>Quand l'utiliser :</strong> Si l'application est déjà installée sur votre machine.</li>
<li><strong>Ce qu'il fait :</strong> Met à jour directement le moteur de l'application en quelques secondes.</li>
<li><strong>Utilisation :</strong> Double-cliquez sur le fichier <code>.gws</code> ou glissez-le simplement dans la fenêtre de GWS.</li>
<li><strong>Avantage :</strong> Aucune alerte Windows Defender et conservation intégrale de toutes vos stations et mesures.</li>
</ul>
</div>
<a href="https://gastinel.me/gws/downloads/update-0.4.8.gws" id="lien-gws" class="btn-dl-action btn-dl-gws btn-dl-secondary" download>
<span>Télécharger le Paquet (.gws)</span>
</a>
</div>
</section>
<div class="back-to-pres-bar">
<a href="https://gastinel.me/gws/">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
<span>Consulter la présentation complète des fonctionnalités</span>
</a>
</div>
</main>
<footer class="gws-footer">
<p>Gastinel Weather Studio &middot; Conçu et développé au cœur du Vercors &middot; Architecture native Rust + Tauri</p>
</footer>
</div>
<script>
/* Ouverte par l'application avec ?maj=<version> : lance le paquet .gws de
cette version. La version est validée strictement et n'est jamais insérée
comme HTML ; le fichier est toujours pris sous /gws/downloads/. */
(function () {
var v = new URLSearchParams(location.search).get('maj');
if (v === null) return;
var banner = document.getElementById('maj-banner');
var titre = document.getElementById('maj-titre');
var texte = document.getElementById('maj-texte');
function montrer(t, x, alerte) {
titre.textContent = t; texte.textContent = x;
banner.classList.toggle('warn', !!alerte); banner.hidden = false;
}
var semver = /^(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})\.(0|[1-9][0-9]{0,3})(-[0-9A-Za-z]+(\.[0-9A-Za-z]+)*)?$/;
if (v.length > 40 || !semver.test(v)) {
montrer('Version non reconnue', 'Utilisez le bouton « Télécharger le Paquet (.gws) » plus bas.', true);
return;
}
var url = '/gws/downloads/update-' + v + '.gws';
fetch(url, { method: 'HEAD', cache: 'no-store' }).then(function (r) {
if (!r.ok) throw new Error(String(r.status));
var a = document.createElement('a');
a.href = url; a.download = 'update-' + v + '.gws';
document.body.appendChild(a); a.click(); a.remove();
montrer('Téléchargement de la mise à jour ' + v + ' lancé',
'Une fois le fichier update-' + v + '.gws téléchargé, double-cliquez dessus (ou glissez-le dans la fenêtre de Gastinel Weather Studio) : vos stations et mesures sont conservées.');
var lien = document.getElementById('maj-lien');
lien.href = url; lien.setAttribute('download', a.download);
document.getElementById('maj-secours').hidden = false;
}).catch(function () {
montrer('Paquet ' + v + ' introuvable', 'Le paquet de cette version n’est pas (encore) en ligne. Utilisez le paquet proposé plus bas.', true);
});
})();
</script>
</body>
</html>
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+564
Voir le fichier
@@ -0,0 +1,564 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gastinel Weather Studio — Présentation officielle & Analyse microclimatique</title>
<meta name="description" content="Présentation officielle de Gastinel Weather Studio (GWS) : suite native d'acquisition et d'investigation thermique des trous à froid (TAF) du Vercors. Cartographie IGN, décodage Elitech RC-5 et comparateur studio.">
<link rel="canonical" href="https://gastinel.me/gws/">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="author" content="Théo Gastinel">
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:url" content="https://gastinel.me/gws/">
<meta property="og:site_name" content="Gastinel Weather Studio">
<meta property="og:title" content="Gastinel Weather Studio — Présentation officielle">
<meta property="og:description" content="Suite logicielle dédiée à l'investigation des dépressions fermées et trous à froid du Vercors. Décodage USB Elitech RC-5 natif, comparateur multi-séries et cartographie IGN.">
<meta property="og:image" content="https://gastinel.me/assets/apps/gastinel-weather-studio/studio.webp">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%231e4d8b'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
<link rel="preload" href="../assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
<style>
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
--blue-900: #123a6b;
--blue-700: #1e4d8b;
--blue-500: #3a72bd;
--blue-050: #eef3fa;
--grey-900: #1a1d21;
--grey-700: #3f464f;
--grey-500: #6b7480;
--grey-300: #b9c0c9;
--grey-200: #e8eaed;
--grey-100: #f1f3f5;
--bg: #fafbfc;
--card-bg: #ffffff;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(18, 58, 107, 0.05);
--shadow-md: 0 1px 3px rgba(18, 58, 107, 0.08), 0 4px 12px rgba(18, 58, 107, 0.04);
--shadow-lg: 0 8px 24px rgba(18, 58, 107, 0.08);
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--grey-900);
font-family: var(--font-sans);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header & Nav */
.gws-nav {
position: sticky;
top: 0;
z-index: 50;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--grey-200);
box-shadow: var(--shadow-sm);
padding: 12px 24px;
}
.gws-nav-inner {
max-width: 1140px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.gws-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--grey-900);
}
.gws-nav-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
border: 1px solid var(--grey-200);
background: #ffffff;
padding: 2px;
}
.gws-brand-title {
font-weight: 700;
font-size: 1.15rem;
letter-spacing: -0.3px;
color: var(--blue-900);
}
.gws-brand-badge {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.8px;
background: var(--blue-050);
color: var(--blue-700);
border: 1px solid #d4e2f4;
padding: 2px 8px;
border-radius: 4px;
font-weight: 700;
}
.gws-nav-actions {
display: flex;
align-items: center;
gap: 14px;
}
.gws-nav-link-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.86rem;
font-weight: 600;
color: #ffffff !important;
background: var(--blue-700);
padding: 8px 18px;
border-radius: var(--radius-sm);
text-decoration: none;
transition: all 0.15s ease;
box-shadow: 0 2px 6px rgba(30, 77, 139, 0.2);
}
.gws-nav-link-btn:hover {
background: var(--blue-900);
transform: translateY(-1px);
}
.gws-back-site {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.84rem;
font-weight: 600;
color: var(--grey-700);
background: var(--grey-100);
border: 1px solid var(--grey-200);
padding: 7px 14px;
border-radius: var(--radius-sm);
text-decoration: none;
transition: all 0.15s ease;
}
.gws-back-site:hover {
background: var(--grey-200);
color: var(--grey-900);
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 20px;
}
/* Hero Présentation */
.gws-presentation-hero {
padding: 60px 0 44px;
text-align: center;
background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
border-bottom: 1px solid var(--grey-200);
}
.gws-badge-row {
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--blue-050);
border: 1px solid #d4e2f4;
padding: 6px 16px;
border-radius: 30px;
margin-bottom: 18px;
}
.status-dot {
width: 8px;
height: 8px;
background-color: #1c6b45;
border-radius: 50%;
}
.status-text {
font-size: 0.8rem;
font-weight: 600;
color: var(--blue-700);
letter-spacing: 0.3px;
}
.gws-presentation-hero h1 {
font-size: clamp(2.3rem, 4.5vw, 3.4rem);
font-weight: 800;
color: var(--blue-900);
letter-spacing: -0.03em;
margin: 0 0 12px 0;
line-height: 1.15;
}
.gws-hero-subtitle {
font-size: clamp(1.1rem, 2vw, 1.3rem);
color: var(--blue-700);
max-width: 760px;
margin: 0 auto 16px auto;
font-weight: 600;
}
.gws-hero-desc {
font-size: 1rem;
color: var(--grey-700);
max-width: 760px;
margin: 0 auto;
line-height: 1.65;
}
/* Sections */
.gws-content-section {
padding: 56px 0;
}
.section-heading-clean {
margin-bottom: 34px;
}
.section-tag-clean {
font-size: 0.74rem;
text-transform: uppercase;
letter-spacing: 1.2px;
color: var(--blue-700);
font-weight: 700;
margin-bottom: 6px;
display: inline-block;
}
.section-title-clean {
font-size: clamp(1.6rem, 3vw, 2.2rem);
font-weight: 800;
color: var(--blue-900);
margin: 0 0 8px 0;
}
.section-sub-clean {
color: var(--grey-700);
font-size: 0.96rem;
margin: 0;
}
/* Problématique */
.problem-card {
background: #ffffff;
border: 1px solid var(--grey-200);
border-left: 4px solid var(--blue-700);
border-radius: var(--radius-md);
padding: 26px 30px;
margin-bottom: 40px;
box-shadow: var(--shadow-sm);
}
.problem-card h3 {
color: var(--blue-900);
margin: 0 0 10px 0;
font-size: 1.15rem;
}
.problem-card p {
color: var(--grey-700);
margin: 0;
line-height: 1.65;
font-size: 0.95rem;
}
/* Grille Fonctionnalités */
.features-grid-clean {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
margin-bottom: 44px;
}
@media (max-width: 800px) {
.features-grid-clean { grid-template-columns: 1fr; }
}
.feature-card-clean {
background: #ffffff;
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 24px;
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
justify-content: space-between;
}
.feature-card-clean h4 {
font-size: 1.1rem;
color: var(--blue-900);
margin: 0 0 8px 0;
font-weight: 700;
}
.feature-card-clean p {
font-size: 0.92rem;
color: var(--grey-700);
margin: 0 0 16px 0;
line-height: 1.55;
flex: 1;
}
.feature-media-clean {
border-radius: var(--radius-sm);
overflow: hidden;
border: 1px solid var(--grey-200);
background: var(--grey-100);
}
.feature-media-clean img {
width: 100%;
height: auto;
display: block;
}
/* Bandeau Vers Téléchargement (En Bas) */
.footer-cta-download {
background: linear-gradient(135deg, #123a6b 0%, #1e4d8b 100%);
border-radius: var(--radius-lg);
padding: 36px 32px;
color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 22px;
box-shadow: var(--shadow-md);
margin-top: 20px;
}
.footer-cta-download h3 {
font-size: 1.4rem;
margin: 0 0 6px 0;
color: #ffffff;
}
.footer-cta-download p {
margin: 0;
color: #d4e2f4;
font-size: 0.96rem;
}
.btn-cta-large-white {
background: #ffffff;
color: var(--blue-900) !important;
font-weight: 700;
font-size: 1.05rem;
padding: 14px 26px;
border-radius: var(--radius-sm);
text-decoration: none;
white-space: nowrap;
transition: all 0.15s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-cta-large-white:hover {
background: var(--blue-050);
transform: translateY(-2px);
box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
/* Footer */
.gws-footer {
margin-top: auto;
background: var(--grey-100);
border-top: 1px solid var(--grey-200);
padding: 34px 20px;
text-align: center;
font-size: 0.86rem;
color: var(--grey-500);
}
.gws-footer a {
color: var(--blue-700);
text-decoration: none;
}
.gws-footer a:hover {
text-decoration: underline;
}
.gws-footer-links {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 12px;
}
</style>
</head>
<body>
<div class="page-wrapper">
<!-- Header -->
<header class="gws-nav">
<div class="gws-nav-inner">
<a href="https://gastinel.me/" class="gws-brand">
<img src="../assets/apps/gastinel-weather-studio/icone.webp" alt="Icône GWS" class="gws-nav-icon" width="36" height="36">
<span class="gws-brand-title">Gastinel Weather Studio</span>
<span class="gws-brand-badge">v0.4.8</span>
</a>
<div class="gws-nav-actions">
<a href="https://gastinel.me/gws/download/" class="gws-nav-link-btn">
<span>Télécharger v0.4.8</span>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
</a>
<a href="https://gastinel.me/#apps" class="gws-back-site">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
Écosystème Gastinel
</a>
</div>
</div>
</header>
<!-- Hero Présentation -->
<div class="gws-presentation-hero">
<div class="container">
<div class="gws-badge-row">
<div class="status-dot"></div>
<span class="status-text">Station microclimatique &middot; Canal de distribution officiel</span>
</div>
<h1>Gastinel Weather Studio</h1>
<p class="gws-hero-subtitle">« Traquer, comparer, comprendre le froid. »</p>
<p class="gws-hero-desc">
Suite native d'acquisition et d'investigation thermique conçue pour l'instrumentation des dépressions fermées et trous à froid (TAF) du massif du Vercors. Binaire autonome, sans dépendance logicielle lourde, compilé en code machine natif en Rust.
</p>
</div>
</div>
<!-- Contenu Présentation -->
<main class="gws-content-section">
<div class="container">
<!-- Problématique de terrain -->
<div class="problem-card">
<h3>Problématique de terrain : Traquer le froid dans le Vercors</h3>
<p>
Dans le massif du Vercors, certaines dépressions fermées et dolines génèrent des microclimats d'inversion thermique exceptionnels : l'air froid, plus dense, s'accumule au fond des cuvettes lors de nuits radiatives sans vent, produisant des froids records (comme le minimum de <strong>-34,6°C mesuré à Darbounouse</strong>). L'identification, l'instrumentation et la comparaison rigoureuse de ces « trous à froid » (TAF) étaient jusqu'ici entravées par des outils disparates : logiciels constructeurs fermés et spécifiques à chaque modèle de capteur, formats de fichiers incompatibles et dispersion des séries chronologiques. Gastinel Weather Studio a été créé pour unifier l'ensemble du cycle de recherche.
</p>
</div>
<div class="section-heading-clean">
<span class="section-tag-clean">Architecture & Outils</span>
<h2 class="section-title-clean">Les fonctionnalités principales</h2>
<p class="section-sub-clean">Un ensemble complet de modules calibrés pour l'usage in situ et l'analyse de séries temporelles.</p>
</div>
<!-- Grille des fonctionnalités -->
<div class="features-grid-clean">
<div class="feature-card-clean">
<div>
<h4>Carte de terrain interactive du Vercors</h4>
<p>Conçue comme un instrument de travail technique plutôt qu'un visualiseur grand public. Superposition dynamique du fond topographique IGN haute fidélité et d'imagerie satellite. Indexation des reliefs et création immédiate de stations de mesure par clic droit géoréférencé.</p>
</div>
<div class="feature-media-clean">
<img src="../assets/apps/gastinel-weather-studio/accueil.webp" alt="Carte topographique GWS" loading="lazy">
</div>
</div>
<div class="feature-card-clean">
<div>
<h4>Acquisition multi-source & protocole direct</h4>
<p>Prise en charge directe des enregistreurs Elitech RC-5 via décodage USB natif en Rust, interconnexion aux stations Davis Vantage Pro 2 par l'API Infoclimat et intégration des flux de sommets (Grande Moucherolle). Traçabilité stricte de chaque relevé brut sans altération.</p>
</div>
<div class="feature-media-clean">
<img src="../assets/apps/gastinel-weather-studio/logger.webp" alt="Importation directe pour logger" loading="lazy">
</div>
</div>
<div class="feature-card-clean">
<div>
<h4>Comparateur studio multi-séries</h4>
<p>Juxtaposition synchrone des séries de mesures : confrontation directe des minima absolus, calculs des moyennes quotidiennes et des amplitudes thermiques extrêmes, le tout aligné sur des courbes temporelles claires et interactives.</p>
</div>
<div class="feature-media-clean">
<img src="../assets/apps/gastinel-weather-studio/studio.webp" alt="Comparateur multi-séries thermiques" loading="lazy">
</div>
</div>
<div class="feature-card-clean">
<div>
<h4>Classification thermique morphologique</h4>
<p>Grille d'analyse méthodique à 4 catégories, calibrée par l'observation in situ. Intègre la volumétrie et la profondeur de la doline (petit ou grand volume) pour caractériser l'inertie thermique et la vitesse de refroidissement radiative du site.</p>
</div>
<div style="background:var(--grey-100); border:1px solid var(--grey-200); border-radius:6px; padding:14px; font-size:0.86rem; color:var(--grey-700);">
<strong>Catégories intégrées :</strong> Dépression fermée standard, Doline d'accumulation radiative, Pente d'écoulement thermique et Plateau sommital de référence.
</div>
</div>
</div>
<!-- Encart vers la page Performance & stack technique -->
<div class="stack-teaser" style="margin:48px 0 28px; padding:22px 24px; border:1px solid var(--grey-200); border-radius:10px; background:var(--grey-100); display:flex; flex-wrap:wrap; gap:18px 28px; align-items:center; justify-content:space-between;">
<div style="flex:1 1 320px; min-width:0;">
<h3 style="margin:0 0 6px;">Sous le capot : performance &amp; stack technique</h3>
<p style="margin:0; color:var(--grey-700); font-size:0.95rem;">Rust + Tauri, installateur de 3,7 Mo, données locales en SQLite et Cloud chiffré de bout en bout. Vérifiez aussi la configuration requise avant d'installer.</p>
</div>
<div style="display:flex; flex-wrap:wrap; gap:10px;">
<a href="https://gastinel.me/gws/stack/#configuration" style="padding:10px 16px; border-radius:6px; border:1.5px solid var(--blue-900); color:var(--blue-900); font-weight:600; text-decoration:none; white-space:nowrap;">Configuration requise</a>
<a href="https://gastinel.me/gws/stack/" style="padding:10px 16px; border-radius:6px; background:var(--blue-900); color:#fff; font-weight:600; text-decoration:none; white-space:nowrap;">Voir la stack technique →</a>
</div>
</div>
<!-- Bandeau vers le téléchargement -->
<div class="footer-cta-download">
<div>
<h3>Télécharger Gastinel Weather Studio</h3>
<p>Installez le logiciel sur votre PC ou récupérez la mise à jour officielle v0.4.8.</p>
</div>
<a href="https://gastinel.me/gws/download/" class="btn-cta-large-white">
<span>Accéder aux Téléchargements (v0.4.8)</span>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-left:6px;"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
</a>
</div>
</div>
</main>
<footer class="gws-footer">
<div class="container">
<div class="gws-footer-links">
<a href="https://gastinel.me/gws/">Présentation</a>
<a href="https://gastinel.me/gws/download/">Téléchargements</a>
<a href="https://gastinel.me/gws/stack/">Performance &amp; stack technique</a>
<a href="https://gastinel.me/">Écosystème Théo Gastinel</a>
</div>
<p>Gastinel Weather Studio &middot; Conçu et développé au cœur du Vercors &middot; Architecture native Rust + Tauri</p>
</div>
</footer>
</div>
</body>
</html>
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+318
Voir le fichier
@@ -0,0 +1,318 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Performance et stack technique — Gastinel Weather Studio</title>
<meta name="description" content="Configuration requise, architecture Rust + Tauri, Cloud chiffré de bout en bout et mesures de performance de Gastinel Weather Studio.">
<link rel="canonical" href="https://gastinel.me/gws/stack/">
<meta name="robots" content="index, follow">
<meta name="author" content="Théo Gastinel">
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:url" content="https://gastinel.me/gws/stack/">
<meta property="og:site_name" content="Gastinel Weather Studio">
<meta property="og:title" content="Performance et stack technique — Gastinel Weather Studio">
<meta property="og:description" content="Configuration requise, choix d'architecture et mesures de performance réelles.">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%231e4d8b'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
<link rel="preload" href="../../assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
<style>
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
--blue-900: #123a6b;
--blue-700: #1e4d8b;
--blue-500: #3a72bd;
--blue-050: #eef3fa;
--grey-900: #1a1d21;
--grey-700: #3f464f;
--grey-500: #6b7480;
--grey-300: #b9c0c9;
--grey-200: #e8eaed;
--grey-100: #f1f3f5;
--bg: #fafbfc;
--card-bg: #ffffff;
--ok: #1c6b45;
--ok-bg: #e9f5ef;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(18, 58, 107, 0.05);
--shadow-md: 0 1px 3px rgba(18, 58, 107, 0.08), 0 4px 12px rgba(18, 58, 107, 0.04);
--shadow-lg: 0 8px 24px rgba(18, 58, 107, 0.08);
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--grey-900);
font-family: var(--font-sans);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Nav */
.gws-nav {
background: #ffffff;
border-bottom: 1px solid var(--grey-200);
box-shadow: var(--shadow-sm);
padding: 12px 24px;
}
.gws-nav-inner {
max-width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.gws-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--grey-900);
}
.gws-nav-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
border: 1px solid var(--grey-200);
background: #ffffff;
padding: 2px;
}
.gws-brand-title {
font-weight: 700;
font-size: 1.15rem;
letter-spacing: -0.3px;
color: var(--blue-900);
}
.gws-nav-actions {
display: flex;
align-items: center;
gap: 12px;
}
.gws-link-subtle {
font-size: 0.86rem;
font-weight: 600;
color: var(--blue-700);
text-decoration: none;
padding: 6px 12px;
}
.gws-link-subtle:hover {
text-decoration: underline;
color: var(--blue-900);
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}
/* Page Performance & stack */
.st-hero { padding: 48px 0 28px; text-align: center; }
.st-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--blue-900); margin: 0 0 10px; letter-spacing: -0.02em; }
.st-hero p { color: var(--grey-700); max-width: 680px; margin: 0 auto; }
.st-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-050); border: 1px solid #d4e2f4; padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; color: var(--blue-700); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.st-box { background: var(--card-bg); border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 26px 28px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.st-box h2 { font-size: 1.3rem; color: var(--blue-900); margin: 0 0 14px; letter-spacing: -0.01em; }
.st-box h3 { font-size: 1.02rem; color: var(--blue-900); margin: 22px 0 8px; }
.st-box p, .st-box li { font-size: 0.93rem; color: var(--grey-700); line-height: 1.65; }
.st-box p { margin: 0 0 12px; }
.st-box ul { margin: 0 0 12px; padding-left: 20px; }
.st-box li { margin-bottom: 6px; }
.st-box code { font-size: 0.85em; background: var(--grey-100); padding: 1px 5px; border-radius: 4px; }
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.st-table th, .st-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.st-table thead th { background: var(--blue-050); color: var(--blue-900); font-weight: 700; font-size: 0.85rem; }
.st-table tbody th { color: var(--grey-900); font-weight: 600; width: 26%; }
.st-table td { color: var(--grey-700); }
.st-note { font-size: 0.84rem; color: var(--grey-500); margin: 14px 0 0; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 6px 0 4px; }
.st-kpi { background: var(--bg); border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 14px 16px; }
.st-kpi b { display: block; font-size: 1.35rem; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.st-kpi span { font-size: 0.82rem; color: var(--grey-500); }
.st-archi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 14px; }
@media (max-width: 768px) { .st-archi { grid-template-columns: 1fr; } }
.st-couche { border: 1px solid #c8daf0; background: #f7faff; border-radius: var(--radius-sm); padding: 14px 16px; }
.st-couche strong { display: block; color: var(--blue-900); font-size: 0.95rem; margin-bottom: 4px; }
.st-couche span { font-size: 0.84rem; color: var(--grey-700); line-height: 1.5; }
.st-back { text-align: center; padding-bottom: 40px; }
.st-back a { color: var(--blue-700); font-weight: 600; text-decoration: none; margin: 0 12px; }
.st-back a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="page-wrapper">
<header class="gws-nav">
<div class="gws-nav-inner">
<a href="https://gastinel.me/gws/" class="gws-brand">
<img src="../../assets/apps/gastinel-weather-studio/icone.webp" alt="Icône GWS" class="gws-nav-icon" width="36" height="36">
<span class="gws-brand-title">Gastinel Weather Studio</span>
</a>
<div class="gws-nav-actions">
<a href="https://gastinel.me/gws/" class="gws-link-subtle">Présentation</a>
<a href="https://gastinel.me/gws/download/" class="gws-link-subtle">Télécharger</a>
</div>
</div>
</header>
<main class="container">
<div class="st-hero">
<div class="st-badge">Performance &amp; stack technique</div>
<h1>Sous le capot de Gastinel Weather Studio</h1>
<p>Configuration requise, choix d'architecture et mesures de performance réelles de l'application.</p>
</div>
<!-- 1. Configuration requise -->
<section class="st-box" id="configuration">
<h2>Configuration requise</h2>
<div class="st-table-wrap">
<table class="st-table">
<thead>
<tr><th></th><th>Usage classique</th><th>Usage intensif (avec extensions)</th></tr>
</thead>
<tbody>
<tr><th>Système</th><td>Windows 10 ou 11, 64 bits</td><td>Windows 11, 64 bits</td></tr>
<tr><th>Processeur</th><td>64 bits (Intel ou AMD), 2 cœurs</td><td>64 bits, 4 cœurs</td></tr>
<tr><th>Mémoire (RAM)</th><td>4 Go</td><td>8 Go</td></tr>
<tr><th>Carte graphique</th><td>Aucune exigence particulière</td><td>Compatible DirectX 11 (extension Carte 3D)</td></tr>
<tr><th>Espace disque</th><td>Environ 10 Mo pour l'application, plus vos données (quelques centaines de Mo pour un projet courant)</td><td>Selon le volume de mesures importées ; un SSD est conseillé pour les gros projets</td></tr>
<tr><th>Composant Windows</th><td colspan="2">Microsoft Edge WebView2 : déjà présent sur Windows 11, installé automatiquement si nécessaire</td></tr>
<tr><th>Connexion Internet</th><td colspan="2">Facultative. Nécessaire pour les fonds de carte non mis en cache, l'assistant IA, le Cloud et les extensions</td></tr>
<tr><th>Matériel</th><td colspan="2">Port USB pour la lecture directe des enregistreurs Elitech RC-5</td></tr>
</tbody>
</table>
</div>
<p class="st-note">Mesuré le 25 septembre 2026 sur la version de production : environ 240 Mo de mémoire au démarrage, 600 Mo au plus avec la Carte 3D ouverte, et un cinquième d'un cœur de processeur en utilisation.</p>
</section>
<!-- 2. En bref -->
<section class="st-box" id="en-bref">
<h2>En bref</h2>
<p>Gastinel Weather Studio est une application de bureau légère : l'installateur pèse moins de 4 Mo, là où beaucoup de logiciels comparables en demandent plusieurs dizaines. Elle s'ouvre vite, fonctionne sans connexion et garde vos données chez vous, dans un fichier local.</p>
<p>Ce résultat tient à deux choix. Le cœur de l'application est écrit en <strong>Rust</strong>, un langage réputé pour sa rapidité et sa fiabilité. L'interface s'appuie sur <strong>Tauri</strong>, qui utilise le moteur d'affichage déjà présent dans Windows au lieu d'embarquer un navigateur complet.</p>
<p>Les fonctions facultatives (Carte 3D, analyse thermique…) sont des extensions que vous installez depuis l'application, uniquement si vous en avez besoin. Quant au Cloud, il chiffre vos données sur votre ordinateur avant tout envoi : le serveur ne peut pas les lire.</p>
</section>
<!-- 3. Détails techniques -->
<section class="st-box" id="technique">
<h2>Détails techniques</h2>
<h3>Pourquoi Tauri et Rust</h3>
<ul>
<li><strong>Empreinte réduite.</strong> Tauri s'appuie sur WebView2, le moteur de rendu fourni par Windows. L'installateur fait environ 3,7 Mo, contre 80 à 150 Mo pour une application Electron qui embarque son propre Chromium.</li>
<li><strong>Un cœur en Rust.</strong> Import, calculs statistiques, protocole série des enregistreurs RC-5, base de données et chiffrement sont exécutés en code natif compilé. La sûreté mémoire de Rust écarte des classes entières de bugs (accès hors limites, données partagées sans verrou).</li>
<li><strong>Une interface sans framework.</strong> JavaScript natif, sans React ni bundler : pas de dépendance lourde à charger ni à maintenir, et une politique de sécurité stricte (aucun script externe).</li>
<li><strong>Zéro dépendance à installer.</strong> SQLite est compilé dans l'application ; aucune DLL tierce n'est livrée à côté de l'exécutable.</li>
</ul>
<h3>Architecture</h3>
<div class="st-archi">
<div class="st-couche"><strong>Interface</strong><span>HTML, CSS et JavaScript natifs dans WebView2. Carte Leaflet avec cache de tuiles hors ligne, graphiques Chart.js.</span></div>
<div class="st-couche"><strong>Cœur Rust</strong><span>Commandes Tauri exécutées hors du fil d'affichage : imports, statistiques, synchronisation, lecture des enregistreurs (pour les opérations longues).</span></div>
<div class="st-couche"><strong>Données locales</strong><span>SQLite en mode WAL, indexé par série et par date, avec un état tenu à jour mois par mois.</span></div>
</div>
<h3>Données et volumétrie</h3>
<ul>
<li>Toutes les dates sont stockées en <strong>UTC absolu</strong> ; l'horodatage brut de chaque enregistreur est conservé pour pouvoir recalculer un décalage d'horloge après coup.</li>
<li>Un état par série et par mois (nombre de mesures, version) est maintenu automatiquement par la base. Les listes s'affichent sans recompter les mesures, et la synchronisation sait ce qui a changé sans relire les données.</li>
<li>Au-delà de 500 points, la carte regroupe les stations en pastilles chiffrées pour rester fluide.</li>
</ul>
<h3>Cloud chiffré de bout en bout</h3>
<ul>
<li>La clé est dérivée de votre mot de passe (<strong>Argon2id</strong>) et ne quitte jamais votre ordinateur. Chaque envoi est compressé puis chiffré en <strong>AES-256-GCM</strong> : le serveur ne stocke que des blocs illisibles.</li>
<li>Les séries sont découpées par mois : ajouter une journée de mesures ne renvoie qu'un mois, jamais la série entière. Les mois sont lus un à un, sans charger une série complète en mémoire, et une synchronisation interrompue reprend là où elle s'est arrêtée.</li>
<li>Hébergement en France et en Suisse. Chaque projet peut être exclu de la synchronisation.</li>
</ul>
<h3>Extensions</h3>
<ul>
<li>Les extensions sont des bibliothèques natives, téléchargées depuis l'application. Chaque archive est vérifiée par son empreinte SHA-256 et une <strong>signature Ed25519</strong> : une archive non signée ou modifiée est refusée.</li>
<li>Choix assumé : une extension s'exécute dans l'application, sans isolation, pour offrir des performances natives. C'est pourquoi seules des extensions signées sont proposées, et qu'une copie de la base est faite avant le chargement de toute extension qui demande à y écrire.</li>
<li>La Carte 3D charge le relief du modèle numérique de terrain <strong>LiDAR HD de l'IGN</strong> en une seule requête, recouvert du Plan IGN.</li>
</ul>
<h3>Performances mesurées</h3>
<div class="st-kpis">
<div class="st-kpi"><b>3,7 Mo</b><span>installateur Windows</span></div>
<div class="st-kpi"><b>240 Mo</b><span>mémoire au démarrage</span></div>
<div class="st-kpi"><b>3,58 M</b><span>mesures importées en 46 s</span></div>
<div class="st-kpi"><b>&lt; 0,3 s</b><span>ouverture de l'écran Paramètres</span></div>
</div>
<p class="st-note">Mesures réalisées le 25 septembre 2026 sur la version de production, sous Windows 11. Elles varient selon la machine.</p>
<h3>Limites connues</h3>
<ul>
<li>Application disponible uniquement pour Windows 64 bits pour l'instant ; les versions Linux et Android arrivent bientôt. Windows XP et Vista ne sont pas compatibles avec la technologie utilisée.</li>
<li>Pas de version pour processeurs ARM (Snapdragon…) à ce jour.</li>
</ul>
</section>
<div class="st-back">
<a href="https://gastinel.me/gws/">Présentation du logiciel</a>
<a href="https://gastinel.me/gws/download/">Télécharger</a>
</div>
</main>
<footer class="gws-footer">
<p>Gastinel Weather Studio &middot; Conçu et développé au cœur du Vercors &middot; Architecture native Rust + Tauri</p>
</footer>
</div>
</body>
</html>
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+3765
Voir le fichier
Diff désactivé car ce fichier est trop long. Voir la Diff
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+28
Voir le fichier
@@ -0,0 +1,28 @@
# Théo Gastinel — Références & Profil
> Créateur indépendant, réalisateur audiovisuel de montagne et développeur système.
## Identité & Cadre légal
- Nom : Théo Gastinel
- Localisation : Lans-en-Vercors (Isère, France)
- Cadre professionnel : Micro-entreprise individuelle enregistrée (prestations sur devis et facturation en règle).
- Interventions terrain : Vercors et massif alpin, avec accompagnement légal et présence sur place assurée par son représentant légal.
## Domaines d'activité
### 1. Audiovisuel & Production de terrain
- Prises de vue en montagne et conditions de terrain exigeantes.
- Captation aérienne : pilotage de drones civils et prises de vue dynamiques en FPV.
- Post-production complète : tri rigoureux, retouche photo avancée et étalonnage vidéo soigné.
### 2. Ingénierie logicielle & Systèmes
- Développement orienté bas niveau et architectures logicielles poussées (Rust, C++20, Win32 natif).
- Gastinel Weather Studio (GWS) : station logicielle d'analyse microclimatique et de traque des trous à froid (TAF) du Vercors. Décodage USB natif de loggers Elitech RC-5, comparateur multi-séries thermiques et exports HTML autonomes.
- Conception d'outils interactifs, d'applications système et de plateformes indépendantes.
- Infrastructure souveraine : auto-hébergement, sécurité réseau, maîtrise totale des flux de données et optimisation maximale des performances.
## Présence en ligne
- gastinel.me : Site principal et vitrine technique.
- gastinel.me/gws/ : Sas et hub de téléchargement officiel de Gastinel Weather Studio (binaire Windows 64-bit et paquets .gws).
- news.gastinel.me : Journal d'actualités des projets et du terrain.
- Gastinel Hub : Espace centralisé pour les services indépendants.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+40
Voir le fichier
@@ -0,0 +1,40 @@
# robots.txt — gastinel.me
# Directives pour moteurs de recherche et crawlers IA (GEO)
User-agent: *
Allow: /
Allow: /assets/img/
Allow: /assets/video/
Allow: /data/news.json
Disallow: /tools/
Disallow: /deploy/
Disallow: /*.br$
Disallow: /*.gz$
Disallow: /*.bak*
# Crawlers IA & Moteurs Génératifs (GEO)
User-agent: GPTBot
Allow: /
Allow: /llms.txt
User-agent: ChatGPT-User
Allow: /
User-agent: ClaudeBot
Allow: /
Allow: /llms.txt
User-agent: PerplexityBot
Allow: /
Allow: /llms.txt
User-agent: Google-Extended
Allow: /
User-agent: Applebot
Allow: /
User-agent: CCBot
Disallow: /
Sitemap: https://gastinel.me/sitemap.xml
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+37
Voir le fichier
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://gastinel.me/</loc>
<lastmod>2026-09-24</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
<image:image>
<image:loc>https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp</image:loc>
<image:title>Horizon flamboyant au crépuscule dans le massif du Vercors</image:title>
<image:caption>Prise de vue aérienne au drone par Théo Gastinel</image:caption>
</image:image>
</url>
<url>
<loc>https://gastinel.me/gws/</loc>
<lastmod>2026-09-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.95</priority>
<image:image>
<image:loc>https://gastinel.me/assets/apps/gastinel-weather-studio/studio.webp</image:loc>
<image:title>Gastinel Weather Studio — Station logicielle d'analyse microclimatique</image:title>
<image:caption>Interface de comparaison multi-séries thermiques et TAF du Vercors</image:caption>
</image:image>
</url>
<url>
<loc>https://gastinel.me/gws/download/</loc>
<lastmod>2026-09-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.90</priority>
<image:image>
<image:loc>https://gastinel.me/assets/apps/gastinel-weather-studio/icon-512.png</image:loc>
<image:title>Télécharger Gastinel Weather Studio pour Windows</image:title>
<image:caption>Centre de téléchargement officiel de Gastinel Weather Studio</image:caption>
</image:image>
</url>
</urlset>
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+611
Voir le fichier
@@ -0,0 +1,611 @@
#!/usr/bin/env node
/**
* tools/admin-news.js
*
* Gestionnaire local autonome pour l'administration et la synchronisation
* des dépêches et articles de gastinel.me.
*
* Zéro dépendance externe (Node.js natif : http, fs, path, child_process).
* Écoute strictement sur 127.0.0.1:3000.
*
* Usage :
* node tools/admin-news.js -> Lance le serveur d'administration web sur http://127.0.0.1:3000
* node tools/admin-news.js sync -> Déclenche la synchronisation SSH/SCP immédiate sans interface
*/
const http = require('http');
const fs = require('fs');
const path = require('path');
const { exec, spawn } = require('child_process');
// Configuration
const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000;
const HOST = '127.0.0.1';
const NEWS_FILE = path.resolve(__dirname, '../data/news.json');
// Paramètres de synchronisation VPS Suisse (surchargeables via variables d'environnement)
const VPS_CONFIG = {
host: process.env.VPS_HOST || 'vps.gastinel.me',
user: process.env.VPS_USER || 'root',
port: process.env.VPS_PORT || '22',
remotePath: process.env.VPS_PATH || '/usr/share/nginx/html/data/',
sshKey: process.env.SSH_KEY || '' // ex: C:/Users/theog/.ssh/id_ed25519 ou ~/.ssh/id_ed25519
};
function ensureDataFile() {
const dir = path.dirname(NEWS_FILE);
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
if (!fs.existsSync(NEWS_FILE)) fs.writeFileSync(NEWS_FILE, '[]', 'utf8');
}
function readNews() {
ensureDataFile();
try {
const raw = fs.readFileSync(NEWS_FILE, 'utf8');
return JSON.parse(raw);
} catch (err) {
return [];
}
}
function writeNews(items) {
ensureDataFile();
fs.writeFileSync(NEWS_FILE, JSON.stringify(items, null, 2), 'utf8');
}
function runSync(callback) {
ensureDataFile();
// Vérifier si rsync est disponible (Linux/WSL/Git Bash), sinon utiliser scp (Windows natif)
exec('rsync --version', (err) => {
let cmd = '';
const keyOpt = VPS_CONFIG.sshKey ? `-i "${VPS_CONFIG.sshKey}"` : '';
if (!err) {
const sshCmd = VPS_CONFIG.port !== '22' || keyOpt ? `-e "ssh -p ${VPS_CONFIG.port} ${keyOpt}"` : '';
cmd = `rsync -avz ${sshCmd} "${NEWS_FILE}" ${VPS_CONFIG.user}@${VPS_CONFIG.host}:${VPS_CONFIG.remotePath}`;
} else {
// Repli robuste sur SCP natif
const portOpt = VPS_CONFIG.port !== '22' ? `-P ${VPS_CONFIG.port}` : '';
cmd = `scp ${keyOpt} ${portOpt} "${NEWS_FILE}" ${VPS_CONFIG.user}@${VPS_CONFIG.host}:${VPS_CONFIG.remotePath}`;
}
const startTime = Date.now();
exec(cmd, (execErr, stdout, stderr) => {
const duration = Date.now() - startTime;
if (execErr) {
callback({
success: false,
command: cmd,
durationMs: duration,
error: execErr.message,
stderr: stderr || execErr.message
});
} else {
callback({
success: true,
command: cmd,
durationMs: duration,
stdout: stdout || 'news.json transféré avec succès.'
});
}
});
});
}
// Mode CLI direct : node tools/admin-news.js sync
if (process.argv[2] === 'sync') {
console.log(`[SYNC] Démarrage de la synchronisation vers ${VPS_CONFIG.user}@${VPS_CONFIG.host}...`);
runSync((res) => {
if (res.success) {
console.log(`[OK] Synchronisé en ${res.durationMs}ms`);
console.log(res.stdout);
process.exit(0);
} else {
console.error(`[ERREUR] Échec de la synchronisation :`);
console.error(res.error);
if (res.stderr) console.error(res.stderr);
console.error(`Commande exécutée : ${res.command}`);
process.exit(1);
}
});
return;
}
// HTML & CSS de l'interface locale
const HTML_UI = `<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin News — gastinel.me</title>
<style>
:root {
--bg: #0d0e12;
--panel: #16181f;
--border: #262933;
--text: #e1e3ea;
--muted: #8b90a0;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--danger: #dc2626;
--success: #10b981;
--radius: 8px;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
padding: 30px 20px;
line-height: 1.5;
}
.container {
max-width: 960px;
margin: 0 auto;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
padding-bottom: 18px;
margin-bottom: 28px;
}
h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.badge-local {
background: rgba(37, 99, 235, 0.15);
color: #60a5fa;
padding: 4px 10px;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
}
.layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 28px;
}
@media (max-width: 820px) {
.layout { grid-template-columns: 1fr; }
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
}
.card h2 {
font-size: 1.1rem;
margin-bottom: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.form-group {
margin-bottom: 14px;
}
label {
display: block;
font-size: 0.82rem;
font-weight: 600;
color: var(--muted);
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
input, select, textarea {
width: 100%;
background: #090a0d;
border: 1px solid var(--border);
color: var(--text);
padding: 10px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 0.92rem;
transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--accent);
}
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row .form-group { flex: 1; }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 18px;
font-size: 0.9rem;
font-weight: 600;
border-radius: 6px;
border: none;
cursor: pointer;
transition: background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sync {
background: #1f2937;
color: #e5e7eb;
border: 1px solid #374151;
}
.btn-sync:hover { background: #374151; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.news-list {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 480px;
overflow-y: auto;
padding-right: 4px;
}
.news-item {
background: #090a0d;
border: 1px solid var(--border);
border-radius: 6px;
padding: 14px;
position: relative;
}
.item-meta {
display: flex;
justify-content: space-between;
font-size: 0.75rem;
margin-bottom: 6px;
}
.item-tag {
background: rgba(255,255,255,0.08);
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
color: #d1d5db;
}
.item-date { color: var(--muted); }
.item-title {
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 4px;
}
.item-desc {
font-size: 0.85rem;
color: var(--muted);
margin-bottom: 8px;
line-height: 1.4;
}
.item-actions {
display: flex;
justify-content: space-between;
align-items: center;
}
.item-link {
font-size: 0.78rem;
color: #60a5fa;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 75%;
}
.item-link:hover { text-decoration: underline; }
.btn-delete {
background: none;
border: none;
color: #f87171;
cursor: pointer;
font-size: 0.75rem;
padding: 2px 6px;
border-radius: 4px;
}
.btn-delete:hover { background: rgba(239, 68, 68, 0.15); }
.sync-panel {
margin-top: 24px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
}
.sync-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.console {
background: #090a0d;
border: 1px solid var(--border);
border-radius: 6px;
padding: 12px;
font-family: monospace;
font-size: 0.82rem;
color: #94a3b8;
white-space: pre-wrap;
max-height: 150px;
overflow-y: auto;
}
</style>
</head>
<body>
<div class="container">
<header>
<div>
<h1>Dépêches & Articles — Gastinel.me</h1>
<span style="font-size:0.8rem; color:var(--muted)">Gestionnaire local statique pour news.json</span>
</div>
<span class="badge-local">127.0.0.1:3000 (LOCAL ONLY)</span>
</header>
<div class="layout">
<!-- Formulaire d'ajout -->
<div class="card">
<h2>Rédiger une dépêche</h2>
<form id="newsForm">
<div class="row">
<div class="form-group">
<label>Date (YYYY-MM)</label>
<input type="text" id="date" required value="${new Date().toISOString().slice(0, 7)}">
</div>
<div class="form-group">
<label>Tag / Thème</label>
<input type="text" id="tag" required placeholder="Audiovisuel, Infrastructure..." list="tagList">
<datalist id="tagList">
<option value="Audiovisuel">
<option value="Infrastructure">
<option value="Logiciel">
<option value="Expédition">
<option value="Radio / Réseau">
</datalist>
</div>
</div>
<div class="form-group">
<label>Titre de l'article</label>
<input type="text" id="title" required placeholder="Ex: Tournage 4K au crépuscule...">
</div>
<div class="form-group">
<label>Résumé court (2 à 3 lignes max)</label>
<textarea id="desc" required placeholder="Description percutante affichée sur la carte d'accueil..."></textarea>
</div>
<div class="form-group">
<label>Lien complet de l'article</label>
<input type="url" id="link" required placeholder="https://news.gastinel.me/mon-article">
</div>
<button type="submit" class="btn btn-primary" id="submitBtn">
+ Ajouter en tête de news.json
</button>
</form>
</div>
<!-- Liste des articles -->
<div class="card">
<h2>
Articles enregistrés
<span id="countBadge" style="font-size:0.8rem; color:var(--muted); font-weight:normal">0 article</span>
</h2>
<div class="news-list" id="newsList"></div>
</div>
</div>
<!-- Panneau de synchronisation VPS -->
<div class="sync-panel">
<div class="sync-header">
<div>
<h3 style="font-size:1rem; font-weight:600">Déploiement VPS Suisse (SSH / SCP / Rsync)</h3>
<p style="font-size:0.8rem; color:var(--muted)">Cible : ${VPS_CONFIG.user}@${VPS_CONFIG.host}:${VPS_CONFIG.remotePath}</p>
</div>
<button class="btn btn-sync" id="syncBtn">⚡ Synchroniser maintenant</button>
</div>
<div class="console" id="syncConsole">En attente d'une action...</div>
</div>
</div>
<script>
const form = document.getElementById('newsForm');
const newsList = document.getElementById('newsList');
const countBadge = document.getElementById('countBadge');
const syncBtn = document.getElementById('syncBtn');
const syncConsole = document.getElementById('syncConsole');
function log(msg) {
syncConsole.textContent = msg;
}
async function loadNews() {
try {
const res = await fetch('/api/news');
const items = await res.json();
countBadge.textContent = items.length + ' article' + (items.length > 1 ? 's' : '');
if (!items.length) {
newsList.innerHTML = '<div style="color:var(--muted); font-size:0.85rem; padding:20px; text-align:center">Aucun article dans news.json</div>';
return;
}
newsList.innerHTML = items.map(a => \`
<div class="news-item">
<div class="item-meta">
<span class="item-tag">\${escapeHtml(a.tag)}</span>
<span class="item-date">\${escapeHtml(a.date)} (ID: \${a.id})</span>
</div>
<div class="item-title">\${escapeHtml(a.title)}</div>
<div class="item-desc">\${escapeHtml(a.desc)}</div>
<div class="item-actions">
<a href="\${escapeHtml(a.link)}" target="_blank" class="item-link">\${escapeHtml(a.link)}</a>
<button class="btn-delete" onclick="deleteItem(\${a.id})">Supprimer</button>
</div>
</div>
\`).join('');
} catch (err) {
newsList.innerHTML = '<div style="color:var(--danger)">Erreur de chargement des articles</div>';
}
}
function escapeHtml(str) {
if (!str) return '';
return String(str)
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
}
form.addEventListener('submit', async (e) => {
e.preventDefault();
const item = {
date: document.getElementById('date').value.trim(),
tag: document.getElementById('tag').value.trim(),
title: document.getElementById('title').value.trim(),
desc: document.getElementById('desc').value.trim(),
link: document.getElementById('link').value.trim()
};
try {
const res = await fetch('/api/news', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(item)
});
if (res.ok) {
form.reset();
document.getElementById('date').value = new Date().toISOString().slice(0, 7);
log('[SUCCÈS] Article ajouté en tête de news.json ! Pense à synchroniser.');
loadNews();
} else {
const err = await res.json();
alert('Erreur: ' + (err.error || 'Échec de l\\ajout'));
}
} catch (err) {
alert('Erreur réseau: ' + err.message);
}
});
async function deleteItem(id) {
if (!confirm('Supprimer cet article ?')) return;
try {
const res = await fetch('/api/news/' + id, { method: 'DELETE' });
if (res.ok) {
log('[INFO] Article ID ' + id + ' supprimé.');
loadNews();
}
} catch (err) {
alert('Erreur: ' + err.message);
}
}
syncBtn.addEventListener('click', async () => {
syncBtn.disabled = true;
syncBtn.textContent = 'Transfert en cours...';
log('[SYNC] Démarrage du déploiement vers le VPS suisse...');
try {
const res = await fetch('/api/sync', { method: 'POST' });
const data = await res.json();
if (data.success) {
log('[SUCCÈS] ' + data.stdout + '\\nDurée : ' + data.durationMs + ' ms\\nCommande : ' + data.command);
} else {
log('[ERREUR] Échec de synchronisation :\\n' + (data.stderr || data.error) + '\\nCommande : ' + data.command);
}
} catch (err) {
log('[ERREUR RÉSEAU] ' + err.message);
} finally {
syncBtn.disabled = false;
syncBtn.textContent = '⚡ Synchroniser maintenant';
}
});
loadNews();
</script>
</body>
</html>`;
// Serveur HTTP local
const server = http.createServer((req, res) => {
const parsedUrl = new URL(req.url, `http://${req.headers.host || HOST}`);
const pathname = parsedUrl.pathname;
// GET / -> Page d'administration
if (req.method === 'GET' && pathname === '/') {
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
res.end(HTML_UI);
return;
}
// GET /api/news -> Flux d'articles
if (req.method === 'GET' && pathname === '/api/news') {
const news = readNews();
res.writeHead(200, {
'Content-Type': 'application/json; charset=utf-8',
'Cache-Control': 'no-store'
});
res.end(JSON.stringify(news));
return;
}
// POST /api/news -> Ajouter un article en tête
if (req.method === 'POST' && pathname === '/api/news') {
let body = '';
req.on('data', chunk => { body += chunk; });
req.on('end', () => {
try {
const payload = JSON.parse(body);
if (!payload.title || !payload.desc || !payload.link) {
res.writeHead(400, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ error: 'Champs obligatoires manquants.' }));
return;
}
const news = readNews();
const nextId = news.reduce((max, item) => Math.max(max, item.id || 0), 0) + 1;
const newEntry = {
id: nextId,
date: payload.date || new Date().toISOString().slice(0, 7),
tag: payload.tag || 'Actualité',
title: payload.title,
desc: payload.desc,
link: payload.link
};
// Ajout automatique en tête de tableau
news.unshift(newEntry);
writeNews(news);
res.writeHead(201, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ success: true, item: newEntry }));
} catch (err) {
res.writeHead(500, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ error: err.message }));
}
});
return;
}
// DELETE /api/news/:id
if (req.method === 'DELETE' && pathname.startsWith('/api/news/')) {
const idToDelete = parseInt(pathname.replace('/api/news/', ''), 10);
const news = readNews();
const filtered = news.filter(n => n.id !== idToDelete);
writeNews(filtered);
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ success: true, deletedId: idToDelete }));
return;
}
// POST /api/sync -> Synchronisation VPS
if (req.method === 'POST' && pathname === '/api/sync') {
runSync((result) => {
res.writeHead(result.success ? 200 : 500, { 'Content-Type': 'application/json' });
res.end(JSON.stringify(result));
});
return;
}
res.writeHead(404, { 'Content-Type': 'text/plain' });
res.end('Not Found');
});
server.listen(PORT, HOST, () => {
console.log('====================================================');
console.log(` Admin News gastinel.me en écoute sur :`);
console.log(` http://${HOST}:${PORT}`);
console.log(` Cible VPS : ${VPS_CONFIG.user}@${VPS_CONFIG.host}:${VPS_CONFIG.remotePath}`);
console.log('====================================================');
});
+965
Voir le fichier
@@ -0,0 +1,965 @@
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const SITE_DIR = path.resolve(__dirname, '..');
const ACTUAL_DIR = path.resolve(SITE_DIR, '../Actual_Website');
const GWS_HTML_PATH = path.join(SITE_DIR, 'gws/index.html');
const INDEX_HTML_PATH = path.join(SITE_DIR, 'index.html');
console.log('[AUTHENTIC-DA] Harmonisation de la DA avec la charte officielle GWS...');
// =========================================================================
// 1. MISE À JOUR DU STYLE DE gws/index.html (Design System Officiel GWS)
// =========================================================================
let gwsHtml = fs.readFileSync(GWS_HTML_PATH, 'utf8');
const newGwsCss = `
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
/* Charte officielle Gastinel Weather Studio (src/styles.css) */
--blue-900: #123a6b;
--blue-700: #1e4d8b;
--blue-500: #3a72bd;
--blue-050: #eef3fa;
--grey-900: #1a1d21;
--grey-700: #3f464f;
--grey-500: #6b7480;
--grey-300: #b9c0c9;
--grey-200: #e8eaed;
--grey-100: #f1f3f5;
--bg: #fafbfc;
--card-bg: #ffffff;
--danger: #b3261e;
--danger-bg: #fdeceb;
--warn: #8a5a00;
--warn-bg: #fff6e5;
--ok: #1c6b45;
--ok-bg: #e9f5ef;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(18, 58, 107, 0.05);
--shadow-md: 0 1px 3px rgba(18, 58, 107, 0.08), 0 4px 12px rgba(18, 58, 107, 0.04);
--shadow-lg: 0 8px 24px rgba(18, 58, 107, 0.08);
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--grey-900);
font-family: var(--font-sans);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
position: relative;
}
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header & Navigation */
.gws-nav {
position: sticky;
top: 0;
z-index: 50;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--grey-200);
box-shadow: var(--shadow-sm);
padding: 12px 24px;
}
.gws-nav-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.gws-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--grey-900);
}
.gws-nav-icon {
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
border: 1px solid var(--grey-200);
background: #ffffff;
padding: 2px;
}
.gws-brand-title {
font-weight: 700;
font-size: 1.15rem;
letter-spacing: -0.3px;
color: var(--blue-900);
}
.gws-brand-badge {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.8px;
background: var(--blue-050);
color: var(--blue-700);
border: 1px solid #d4e2f4;
padding: 2px 8px;
border-radius: 4px;
font-weight: 700;
}
.gws-nav-links {
display: flex;
align-items: center;
gap: 20px;
list-style: none;
margin: 0;
padding: 0;
}
.gws-nav-links a {
color: var(--grey-700);
text-decoration: none;
font-size: 0.88rem;
font-weight: 500;
transition: color 0.15s ease;
}
.gws-nav-links a:hover {
color: var(--blue-700);
}
.gws-back-site {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.84rem;
font-weight: 600;
color: var(--grey-700);
background: var(--grey-100);
border: 1px solid var(--grey-200);
padding: 6px 14px;
border-radius: var(--radius-sm);
text-decoration: none;
transition: all 0.15s ease;
}
.gws-back-site:hover {
background: var(--grey-200);
color: var(--grey-900);
}
/* Container */
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 20px;
}
/* Hero Section */
.gws-hero {
padding: 64px 0 50px;
text-align: center;
}
.gws-badge-row {
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--blue-050);
border: 1px solid #d4e2f4;
padding: 6px 16px;
border-radius: 30px;
margin-bottom: 22px;
}
.status-dot {
width: 8px;
height: 8px;
background-color: var(--ok);
border-radius: 50%;
box-shadow: 0 0 6px var(--ok);
animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(1.15); }
}
.status-text {
font-size: 0.8rem;
font-weight: 600;
color: var(--blue-700);
letter-spacing: 0.3px;
}
.gws-hero h1 {
font-size: clamp(2.2rem, 5vw, 3.4rem);
font-weight: 800;
color: var(--blue-900);
letter-spacing: -0.03em;
margin: 0 0 14px 0;
line-height: 1.18;
}
.gws-hero-subtitle {
font-size: clamp(1.05rem, 2vw, 1.25rem);
color: var(--blue-700);
max-width: 760px;
margin: 0 auto 16px auto;
font-weight: 600;
line-height: 1.45;
}
.gws-hero-desc {
font-size: 0.96rem;
color: var(--grey-700);
max-width: 720px;
margin: 0 auto 36px auto;
line-height: 1.65;
}
/* Téléchargement Hero Box */
.download-action-box {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-lg);
padding: 32px 28px;
max-width: 820px;
margin: 0 auto;
box-shadow: var(--shadow-lg);
position: relative;
}
.download-action-box::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 3px;
background: linear-gradient(90deg, var(--blue-900), var(--blue-500), var(--blue-900));
}
.download-options-grid {
display: grid;
grid-template-columns: 1.25fr 1fr;
gap: 22px;
align-items: stretch;
}
@media (max-width: 768px) {
.download-options-grid { grid-template-columns: 1fr; }
}
/* Carte Principale (.exe) */
.primary-download-card {
background: #f7faff;
border: 1px solid #c8daf0;
border-radius: var(--radius-md);
padding: 24px;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: left;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-download-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.btn-main-download {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
background: var(--blue-700);
color: #ffffff;
font-weight: 700;
font-size: 1.02rem;
padding: 14px 22px;
border-radius: var(--radius-sm);
text-decoration: none;
box-shadow: 0 2px 6px rgba(30, 77, 139, 0.25);
transition: all 0.15s ease;
margin-top: 18px;
}
.btn-main-download:hover {
background: var(--blue-900);
box-shadow: 0 4px 12px rgba(18, 58, 107, 0.35);
color: #ffffff;
}
.btn-main-download svg {
width: 20px;
height: 20px;
fill: currentColor;
flex-shrink: 0;
}
/* Carte Alternative (.gws) */
.alt-download-card {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 24px;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: left;
transition: border-color 0.2s ease, background 0.2s ease;
}
.alt-download-card:hover {
border-color: var(--blue-500);
background: #fbfcfe;
}
.btn-alt-download {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
background: #ffffff;
color: var(--blue-700);
font-weight: 600;
font-size: 0.94rem;
padding: 13px 18px;
border-radius: var(--radius-sm);
border: 1px solid var(--blue-700);
text-decoration: none;
transition: all 0.15s ease;
margin-top: 18px;
}
.btn-alt-download:hover {
background: var(--blue-050);
border-color: var(--blue-900);
color: var(--blue-900);
}
.card-title-row {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 6px;
}
.card-title {
font-size: 1.08rem;
font-weight: 700;
color: var(--blue-900);
margin: 0;
}
.card-tag {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 2px 8px;
border-radius: 4px;
}
.tag-recommended {
background: var(--blue-050);
color: var(--blue-700);
border: 1px solid #d4e2f4;
}
.tag-nosmartscreen {
background: var(--ok-bg);
color: var(--ok);
border: 1px solid #b7dfcb;
}
.card-desc {
font-size: 0.86rem;
color: var(--grey-700);
margin: 0;
line-height: 1.5;
}
.card-meta-list {
font-size: 0.78rem;
color: var(--grey-500);
margin-top: 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
/* API Status Live Bar */
.api-live-bar {
margin-top: 22px;
padding-top: 16px;
border-top: 1px solid var(--grey-200);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
font-size: 0.8rem;
color: var(--grey-500);
}
.api-status-badge {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--ok);
font-weight: 600;
}
.api-status-badge svg {
width: 14px;
height: 14px;
fill: currentColor;
}
.api-refresh-btn {
background: none;
border: none;
color: var(--blue-700);
cursor: pointer;
font-size: 0.8rem;
font-family: inherit;
font-weight: 600;
padding: 0;
text-decoration: underline;
}
.api-refresh-btn:hover {
color: var(--blue-900);
}
/* Section Intégrité SHA-256 */
.sha-section {
padding: 44px 0;
}
.sha-card {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 24px 28px;
box-shadow: var(--shadow-sm);
}
.sha-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 12px;
}
.sha-title {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.02rem;
font-weight: 700;
color: var(--blue-900);
}
.sha-title svg {
width: 18px;
height: 18px;
fill: var(--blue-700);
}
.sha-code-container {
display: flex;
align-items: center;
gap: 12px;
background: var(--grey-100);
border: 1px solid var(--grey-200);
border-radius: var(--radius-sm);
padding: 10px 14px;
margin-bottom: 12px;
overflow-x: auto;
}
.sha-hash {
font-family: var(--font-mono);
font-size: 0.84rem;
color: var(--blue-900);
letter-spacing: 0.5px;
word-break: break-all;
flex: 1;
font-variant-numeric: tabular-nums;
font-weight: 600;
}
.copy-btn {
background: var(--blue-050);
border: 1px solid #d4e2f4;
color: var(--blue-700);
padding: 6px 14px;
border-radius: 4px;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s ease;
}
.copy-btn:hover {
background: var(--blue-700);
color: #ffffff;
border-color: var(--blue-700);
}
.copy-btn.copied {
background: var(--ok-bg);
border-color: var(--ok);
color: var(--ok);
}
.sha-terminal-cmd {
font-size: 0.8rem;
color: var(--grey-700);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
background: var(--grey-100);
padding: 8px 12px;
border-radius: 4px;
border-left: 3px solid var(--blue-700);
}
.sha-terminal-cmd code {
font-family: var(--font-mono);
color: var(--blue-900);
font-variant-numeric: tabular-nums;
}
/* Guide Anti-SmartScreen */
.smartscreen-section {
padding: 56px 0;
border-top: 1px solid var(--grey-200);
}
.section-intro-header {
text-align: center;
max-width: 750px;
margin: 0 auto 36px auto;
}
.section-tag {
font-size: 0.74rem;
text-transform: uppercase;
letter-spacing: 1.2px;
color: var(--blue-700);
font-weight: 700;
margin-bottom: 6px;
display: inline-block;
}
.section-intro-header h2 {
font-size: clamp(1.6rem, 3.2vw, 2.2rem);
font-weight: 700;
color: var(--blue-900);
margin: 0 0 10px 0;
}
.section-intro-header p {
color: var(--grey-700);
font-size: 0.96rem;
margin: 0;
}
/* Explication Transparente */
.transparency-banner {
background: var(--blue-050);
border: 1px solid #d4e2f4;
border-left: 4px solid var(--blue-700);
border-radius: var(--radius-md);
padding: 20px 24px;
margin-bottom: 36px;
display: flex;
gap: 16px;
align-items: flex-start;
}
.transparency-icon {
width: 26px;
height: 26px;
fill: var(--blue-700);
flex-shrink: 0;
margin-top: 2px;
}
.transparency-content h3 {
font-size: 1.02rem;
font-weight: 700;
color: var(--blue-900);
margin: 0 0 6px 0;
}
.transparency-content p {
font-size: 0.88rem;
color: var(--grey-700);
margin: 0;
line-height: 1.6;
}
/* Grille des étapes SmartScreen */
.steps-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
margin-bottom: 36px;
}
@media (max-width: 900px) {
.steps-grid { grid-template-columns: 1fr; }
}
.step-card {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 22px;
display: flex;
flex-direction: column;
position: relative;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
transform: translateY(-2px);
border-color: var(--blue-500);
}
.step-num-badge {
width: 30px;
height: 30px;
border-radius: 50%;
background: var(--blue-050);
border: 1px solid #d4e2f4;
color: var(--blue-700);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.88rem;
margin-bottom: 14px;
}
.step-title {
font-size: 1.02rem;
font-weight: 700;
color: var(--blue-900);
margin: 0 0 6px 0;
}
.step-text {
font-size: 0.86rem;
color: var(--grey-700);
margin: 0 0 16px 0;
line-height: 1.5;
flex: 1;
}
/* Simulation Visuelle Windows SmartScreen */
.mockup-window {
background: #004275; /* Bleu officiel Windows Defender */
border-radius: 6px;
padding: 14px;
color: #fff;
font-size: 0.78rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
user-select: none;
}
.mockup-header {
font-size: 0.84rem;
font-weight: 600;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.mockup-header svg {
width: 15px;
height: 15px;
fill: #fff;
}
.mockup-body {
color: #e0f2fe;
line-height: 1.4;
margin-bottom: 10px;
}
.mockup-link-target {
color: #fff;
text-decoration: underline;
font-weight: 700;
padding: 1px 4px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.2);
display: inline-block;
outline: 2px solid #38bdf8;
}
.mockup-btn-row {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 12px;
}
.mockup-btn {
padding: 5px 12px;
font-size: 0.74rem;
border-radius: 3px;
font-weight: 600;
border: none;
cursor: default;
}
.mockup-btn-primary {
background: #38bdf8;
color: #00223d;
font-weight: 700;
}
.mockup-btn-secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
/* Changelog */
.changelog-section {
padding: 56px 0;
border-top: 1px solid var(--grey-200);
}
.timeline-list {
display: flex;
flex-direction: column;
gap: 24px;
max-width: 860px;
margin: 0 auto;
}
.timeline-card {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
padding: 24px 26px;
position: relative;
box-shadow: var(--shadow-sm);
}
.timeline-card.is-latest {
border-color: #c8daf0;
box-shadow: var(--shadow-md);
}
.timeline-card.is-latest::before {
content: 'Dernière Version';
position: absolute;
top: -10px;
right: 22px;
background: var(--blue-700);
color: #ffffff;
font-size: 0.68rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 2px 10px;
border-radius: 20px;
}
.timeline-top {
display: flex;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
gap: 10px;
border-bottom: 1px solid var(--grey-200);
padding-bottom: 10px;
margin-bottom: 16px;
}
.timeline-version {
font-size: 1.25rem;
font-weight: 700;
color: var(--blue-900);
margin: 0;
}
.timeline-date {
font-size: 0.82rem;
color: var(--grey-500);
}
.changelog-items {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.changelog-items li {
font-size: 0.9rem;
color: var(--grey-700);
position: relative;
padding-left: 20px;
line-height: 1.5;
}
.changelog-items li::before {
content: '▸';
position: absolute;
left: 0;
color: var(--blue-700);
font-weight: 700;
}
.changelog-items li strong {
color: var(--grey-900);
}
/* Captures d'écran */
.visuals-section {
padding: 56px 0;
border-top: 1px solid var(--grey-200);
}
.visuals-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 22px;
}
@media (max-width: 768px) {
.visuals-grid { grid-template-columns: 1fr; }
}
.visual-card {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.visual-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.visual-card img {
width: 100%;
height: auto;
display: block;
}
.visual-caption {
padding: 12px 16px;
font-size: 0.84rem;
color: var(--grey-700);
border-top: 1px solid var(--grey-200);
background: var(--grey-100);
}
/* Spécifications & Exigences */
.specs-section {
padding: 56px 0 70px;
border-top: 1px solid var(--grey-200);
}
.specs-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
@media (max-width: 900px) {
.specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
.specs-grid { grid-template-columns: 1fr; }
}
.spec-box {
background: var(--card-bg);
border: 1px solid var(--grey-200);
border-radius: var(--radius-sm);
padding: 16px;
box-shadow: var(--shadow-sm);
}
.spec-label {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--blue-700);
font-weight: 700;
margin-bottom: 4px;
}
.spec-val {
font-size: 0.94rem;
font-weight: 700;
color: var(--blue-900);
margin-bottom: 4px;
}
.spec-note {
font-size: 0.8rem;
color: var(--grey-500);
}
/* Footer Global */
.gws-footer {
margin-top: auto;
background: var(--grey-100);
border-top: 1px solid var(--grey-200);
padding: 36px 20px;
text-align: center;
font-size: 0.86rem;
color: var(--grey-500);
}
.gws-footer a {
color: var(--blue-700);
text-decoration: none;
}
.gws-footer a:hover {
text-decoration: underline;
color: var(--blue-900);
}
.gws-footer-links {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 14px;
}
`;
// Remplacer le contenu <style>...</style> dans gws/index.html
const styleRegex = /<style>([\s\S]*?)<\/style>/i;
if (styleRegex.test(gwsHtml)) {
gwsHtml = gwsHtml.replace(styleRegex, `<style>${newGwsCss}\n</style>`);
fs.writeFileSync(GWS_HTML_PATH, gwsHtml, 'utf8');
console.log('✓ gws/index.html : CSS recale sur la DA officielle (fond #fafbfc, bleu #1e4d8b, Inter)');
} else {
console.error('Erreur: <style> introuvable dans gws/index.html');
}
// =========================================================================
// 2. SYNCHRONISATION AVEC Actual_Website
// =========================================================================
function copyDirSync(src, dest) {
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
const entries = fs.readdirSync(src, { withFileTypes: true });
for (const entry of entries) {
const srcPath = path.join(src, entry.name);
const destPath = path.join(dest, entry.name);
if (entry.isDirectory()) {
if (entry.name === '.git' || entry.name === 'node_modules') continue;
copyDirSync(srcPath, destPath);
} else {
fs.copyFileSync(srcPath, destPath);
}
}
}
copyDirSync(path.join(SITE_DIR, 'gws'), path.join(ACTUAL_DIR, 'gws'));
console.log('✓ Synchronisé avec Actual_Website/gws');
// =========================================================================
// 3. PRÉCOMPRESSION BROTLI 11 & GZIP 9
// =========================================================================
console.log('[AUTHENTIC-DA] Exécution de la pré-compression statique...');
execSync('node ' + path.join(SITE_DIR, 'tools/precompress.js'), { stdio: 'inherit', cwd: SITE_DIR });
// =========================================================================
// 4. VALIDATION VIA LA SUITE DE TESTS
// =========================================================================
console.log('[AUTHENTIC-DA] Lancement de la suite de vérification...');
execSync('node ' + path.join(SITE_DIR, 'tools/test-verify.js'), { stdio: 'inherit', cwd: SITE_DIR });
console.log('[AUTHENTIC-DA] Succès intégral !');
+839
Voir le fichier
@@ -0,0 +1,839 @@
#!/usr/bin/env node
/**
* tools/apply-gws-refonte.js
*
* Refonte complète et harmonisation de Gastinel Weather Studio (GWS) sur gastinel.me :
* 1. Intégration du sas/hub de téléchargement dédié (#gws)
* 2. Harmonisation de la Direction Artistique (DA darkroom alpine, cyan givre #38bdf8 / #0284c7)
* 3. Remplacement du tag obsolète "Disponible prochainement au téléchargement" par des boutons actifs (.exe / .gws / hub)
* 4. Guide anti-SmartScreen Windows Defender pas-à-pas avec schémas
* 5. Empreinte d'intégrité SHA-256 avec bouton de copie 1-clic et commande PowerShell
* 6. Connexion live à l'API de mise à jour (https://gastinel.me/gws/api/v1/update/windows/x86_64/0.0.0)
* 7. Mise à jour de la navigation SPA (.spa-nav), du footer et du routeur
*/
const fs = require('fs');
const path = require('path');
const ROOT_DIR = path.resolve(__dirname, '..');
const INDEX_HTML = path.join(ROOT_DIR, 'index.html');
console.log('[GWS-REFONTE] Lecture de index.html...');
let html = fs.readFileSync(INDEX_HTML, 'utf8');
const eol = html.includes('\r\n') ? '\r\n' : '\n';
// 1. MISE À JOUR DE LA NAVIGATION SPA (.spa-nav CSS)
const oldSpaNavCss = `.spa-nav { position:sticky; top:0; z-index:6000; display:flex; gap:6px; background:#fff; border-bottom:1px solid #e8e8e8; padding:12px 18px; overflow-x:auto; }
.spa-nav a { color:#444; font-family:var(--font-sans); font-weight:500; font-size:.78rem; text-transform:uppercase; letter-spacing:1px; text-decoration:none; padding:6px 12px; border-radius:4px; white-space:nowrap; transition:.25s; }
.spa-nav a:hover, .spa-nav a.active { color:#000; background:rgba(0,0,0,.06); }
body.spa-nav-hidden .spa-nav { display:none; }`;
const newSpaNavCss = `.spa-nav { position:sticky; top:0; z-index:6000; display:flex; gap:6px; background:#fff; border-bottom:1px solid #e8e8e8; padding:12px 18px; overflow-x:auto; }
.spa-nav a { color:#444; font-family:var(--font-sans); font-weight:500; font-size:.78rem; text-transform:uppercase; letter-spacing:1px; text-decoration:none; padding:6px 12px; border-radius:4px; white-space:nowrap; transition:.25s; }
.spa-nav a:hover, .spa-nav a.active { color:#000; background:rgba(0,0,0,.06); }
.spa-nav a.spa-nav-gws { color:#0284c7; border:1px solid rgba(2,132,199,.35); background:rgba(56,189,248,.08); font-weight:700; display:inline-flex; align-items:center; gap:6px; }
.spa-nav a.spa-nav-gws:hover, .spa-nav a.spa-nav-gws.active { background:#0284c7; color:#fff; border-color:#0284c7; }
.spa-nav .nav-gws-pulse { width:7px; height:7px; border-radius:50%; background:#38bdf8; display:inline-block; box-shadow:0 0 8px #38bdf8; }
body.spa-nav-hidden .spa-nav { display:none; }`;
if (html.includes(oldSpaNavCss.replace(/\n/g, eol))) {
html = html.replace(oldSpaNavCss.replace(/\n/g, eol), newSpaNavCss.replace(/\n/g, eol));
console.log('✓ CSS .spa-nav mis à jour avec le style Weather Studio.');
} else {
console.log('ℹ Remplacement souple de .spa-nav CSS...');
html = html.replace(/\.spa-nav a:hover, \.spa-nav a\.active \{ color:#000; background:rgba\(0,0,0,\.06\); \}/,
`.spa-nav a:hover, .spa-nav a.active { color:#000; background:rgba(0,0,0,.06); }${eol}.spa-nav a.spa-nav-gws { color:#0284c7; border:1px solid rgba(2,132,199,.35); background:rgba(56,189,248,.08); font-weight:700; display:inline-flex; align-items:center; gap:6px; }${eol}.spa-nav a.spa-nav-gws:hover, .spa-nav a.spa-nav-gws.active { background:#0284c7; color:#fff; border-color:#0284c7; }${eol}.spa-nav .nav-gws-pulse { width:7px; height:7px; border-radius:50%; background:#38bdf8; display:inline-block; box-shadow:0 0 8px #38bdf8; }`);
console.log('✓ CSS .spa-nav mis à jour.');
}
// 2. CSS DARKROOM ALPINE POUR #apps ET #gws
const oldAppsCssRegex = /#apps \{ font-family:'Inter'[\s\S]*?#apps \.app-card-top \{ flex-direction:column; align-items:flex-start; gap:12px; \}\s*\}/;
const newDarkroomCss = `/* ==========================================================================
DA DARKROOM ALPINE : MES APPLICATIONS (#apps) & SAS WEATHER STUDIO (#gws)
========================================================================== */
#apps {
font-family: var(--font-sans);
color: #f1f5f9;
background: #06090f;
background-image:
radial-gradient(ellipse 80% 50% at 50% 0%, rgba(2, 132, 199, 0.18), transparent 70%),
radial-gradient(circle 500px at 90% 20%, rgba(56, 189, 248, 0.06), transparent 50%);
line-height: 1.6;
}
#apps .apps-pad { max-width: 1120px; margin: 0 auto; padding: 70px 24px 100px; }
#apps .apps-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 32px; margin-bottom: 48px; }
#apps .apps-header h1 { font-family: 'Comfortaa', cursive; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.5px; margin: 0 0 14px 0; color: #fff; text-shadow: 0 2px 14px rgba(56, 189, 248, 0.15); }
#apps .apps-intro { font-size: 1.02rem; color: #94a3b8; max-width: 680px; margin: 0 0 18px 0; line-height: 1.65; }
#apps .apps-note { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 4px; padding: 5px 12px; background: rgba(56, 189, 248, 0.08); }
#apps .apps-category { margin-bottom: 65px; }
#apps .apps-category-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(56, 189, 248, 0.25); padding-bottom: 12px; margin-bottom: 20px; }
#apps .apps-category-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin: 0; color: #fff; }
#apps .apps-category-count { font-size: .78rem; font-weight: 600; color: #38bdf8; letter-spacing: .5px; text-transform: uppercase; }
#apps .apps-category-desc { font-size: .92rem; color: #94a3b8; margin: 0 0 28px 0; line-height: 1.5; }
#apps .apps-detailed-list { display: flex; flex-direction: column; gap: 40px; }
#apps .app-card-detailed { border: 1px solid rgba(56, 189, 248, 0.16); border-radius: 10px; background: rgba(14, 22, 37, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 34px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: border-color .2s ease, transform .2s ease; }
#apps .app-card-detailed:hover { border-color: rgba(56, 189, 248, 0.4); }
#apps .app-card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
#apps .app-title-group { display: flex; align-items: center; gap: 16px; }
#apps .app-icon-img { width: 48px; height: 48px; border-radius: 8px; border: 1px solid rgba(56, 189, 248, 0.3); background: #0a0f18; padding: 2px; object-fit: contain; flex-shrink: 0; box-shadow: 0 0 12px rgba(56, 189, 248, 0.15); }
#apps .app-main-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.3px; }
#apps .app-status-tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #94a3b8; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; padding: 6px 12px; white-space: nowrap; }
/* Status badge disponible & actions rapides GWS */
#apps .app-status-badge.available { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #38bdf8; background: rgba(2, 132, 199, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 4px; padding: 6px 14px; white-space: nowrap; box-shadow: 0 0 10px rgba(56, 189, 248, 0.15); }
#apps .app-status-badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
#apps .app-status-actions-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#apps .app-btn-download-quick { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff; font-weight: 700; font-size: .84rem; text-decoration: none; padding: 8px 16px; border-radius: 6px; box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35); transition: all .2s ease; }
#apps .app-btn-download-quick:hover { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); transform: translateY(-1px); color: #fff; box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4); }
#apps .app-btn-hub-quick { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.06); color: #f1f5f9; font-weight: 600; font-size: .84rem; text-decoration: none; padding: 8px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.15); transition: all .2s ease; }
#apps .app-btn-hub-quick:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
#apps .app-pitch { font-size: 1.05rem; font-weight: 600; color: #38bdf8; font-style: italic; border-left: 3px solid #0284c7; padding-left: 14px; margin: 0 0 22px 0; }
#apps .app-problem { background: rgba(10, 15, 26, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; padding: 18px 20px; margin-bottom: 24px; }
#apps .app-problem h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #38bdf8; margin: 0 0 8px 0; }
#apps .app-problem p { font-size: .92rem; color: #cbd5e1; margin: 0; line-height: 1.65; }
#apps .app-hero-visual { border-radius: 6px; overflow: hidden; border: 1px solid rgba(56, 189, 248, 0.2); margin: 22px 0 26px; background: #080d16; }
#apps .app-hero-visual img { width: 100%; height: auto; display: block; }
#apps .app-visual-caption { font-size: .78rem; color: #94a3b8; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(10, 15, 26, 0.9); }
#apps .app-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
#apps .app-feature-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
#apps .app-feature-card h4 { font-size: .88rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: #fff; margin: 0 0 8px 0; }
#apps .app-feature-card p { font-size: .88rem; color: #94a3b8; line-height: 1.6; margin: 0; }
#apps .app-feature-media { margin-top: 14px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
#apps .app-feature-media img { width: 100%; height: auto; display: block; }
#apps .app-meta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
#apps .app-meta-grid.two-cols { grid-template-columns: 1fr 1fr; }
#apps .app-meta-item { background: rgba(10, 15, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 6px; padding: 16px 18px; }
#apps .app-meta-item h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #38bdf8; margin: 0 0 6px 0; }
#apps .app-meta-item p { font-size: .86rem; color: #cbd5e1; margin: 0; line-height: 1.55; }
/* Bloc intégrité rapide dans la fiche */
#apps .app-inline-integrity { margin-top: 20px; background: rgba(5, 8, 15, 0.8); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 6px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
#apps .app-inline-integrity code { font-family: var(--font-mono, monospace); color: #7dd3fc; font-size: .78rem; word-break: break-all; }
#apps .app-inline-copy-btn { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); color: #38bdf8; padding: 4px 10px; border-radius: 4px; font-size: .74rem; font-weight: 600; cursor: pointer; transition: all .2s; }
#apps .app-inline-copy-btn:hover { background: rgba(56, 189, 248, 0.3); color: #fff; }
/* Grille compacte des projets annoncés */
#apps .apps-compact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
#apps .app-card-compact { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: rgba(14, 22, 37, 0.6); overflow: hidden; transition: border-color .2s ease, background .2s ease; }
#apps .app-card-compact:hover { border-color: rgba(56, 189, 248, 0.3); background: rgba(14, 22, 37, 0.85); }
#apps .app-card-compact[open] { background: rgba(14, 22, 37, 0.95); border-color: rgba(56, 189, 248, 0.45); }
#apps .app-compact-summary { list-style: none; padding: 18px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; user-select: none; }
#apps .app-compact-summary::-webkit-details-marker { display: none; }
#apps .app-compact-info { display: flex; flex-direction: column; gap: 4px; }
#apps .app-compact-name { font-size: 1.05rem; font-weight: 700; margin: 0; color: #fff; letter-spacing: -.2px; }
#apps .app-compact-status { font-size: .72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .8px; }
#apps .app-compact-arrow { width: 14px; height: 14px; fill: #64748b; transition: transform .25s ease, fill .25s ease; flex-shrink: 0; }
#apps .app-card-compact[open] .app-compact-arrow { transform: rotate(180deg); fill: #38bdf8; }
#apps .app-compact-body { padding: 0 20px 18px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 2px; padding-top: 14px; }
#apps .app-keywords { font-size: .88rem; font-weight: 600; color: #38bdf8; margin-bottom: 8px; letter-spacing: .2px; line-height: 1.4; }
#apps .app-timeline { font-size: .8rem; color: #94a3b8; line-height: 1.4; }
@media (max-width: 850px) {
#apps .app-meta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
#apps .apps-pad { padding: 45px 18px 60px; }
#apps .app-card-detailed { padding: 22px 18px; }
#apps .app-features-grid, #apps .app-meta-grid.two-cols { grid-template-columns: 1fr; }
#apps .apps-compact-grid { grid-template-columns: 1fr; }
#apps .app-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ==========================================================================
CSS DU HUB DÉDIÉ WEATHER STUDIO (#gws)
========================================================================== */
#gws {
font-family: var(--font-sans);
color: #f1f5f9;
background: #05080f;
background-image:
radial-gradient(ellipse 80% 50% at 50% 0%, rgba(2, 132, 199, 0.22), transparent 70%),
radial-gradient(circle 600px at 90% 20%, rgba(56, 189, 248, 0.08), transparent 60%),
radial-gradient(circle 500px at 10% 70%, rgba(14, 165, 233, 0.06), transparent 50%);
min-height: 100vh;
padding: 60px 0 100px;
}
#gws .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
#gws .gws-hero { text-align: center; padding-bottom: 60px; }
#gws .gws-badge-row { display: inline-flex; align-items: center; gap: 10px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(56, 189, 248, 0.25); padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
#gws .status-dot { width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; animation: pulse-dot 2s infinite ease-in-out; }
#gws .status-text { font-size: 0.78rem; font-weight: 600; color: #38bdf8; letter-spacing: 0.5px; text-transform: uppercase; }
#gws .gws-hero h1 { font-family: 'Comfortaa', cursive; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin: 0 0 16px 0; line-height: 1.15; text-shadow: 0 2px 20px rgba(56, 189, 248, 0.15); }
#gws .gws-hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #7dd3fc; max-width: 780px; margin: 0 auto 20px auto; font-weight: 500; line-height: 1.5; }
#gws .gws-hero-desc { font-size: 0.98rem; color: #94a3b8; max-width: 700px; margin: 0 auto 40px auto; line-height: 1.65; }
#gws .download-action-box { background: rgba(14, 22, 37, 0.82); border: 1px solid rgba(56, 189, 248, 0.25); border-radius: 16px; padding: 36px 30px; max-width: 840px; margin: 0 auto; box-shadow: 0 20px 45px rgba(0,0,0,0.4), 0 0 30px rgba(56, 189, 248, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; overflow: hidden; }
#gws .download-action-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); }
#gws .download-options-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 768px) { #gws .download-options-grid { grid-template-columns: 1fr; } }
#gws .primary-download-card { background: linear-gradient(145deg, rgba(2, 132, 199, 0.15), rgba(15, 23, 42, 0.7)); border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
#gws .primary-download-card:hover { transform: translateY(-2px); border-color: #38bdf8; box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25); }
#gws .btn-main-download { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff; font-weight: 700; font-size: 1.05rem; padding: 16px 22px; border-radius: 6px; text-decoration: none; box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4); transition: all 0.2s ease; margin-top: 18px; }
#gws .btn-main-download:hover { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5); color: #fff; }
#gws .btn-main-download svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
#gws .alt-download-card { background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transition: border-color .2s ease, background .2s ease; }
#gws .alt-download-card:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(15, 23, 42, 0.8); }
#gws .btn-alt-download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, 0.06); color: #f1f5f9; font-weight: 600; font-size: 0.95rem; padding: 14px 18px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.15); text-decoration: none; transition: all 0.2s ease; margin-top: 18px; }
#gws .btn-alt-download:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
#gws .card-title-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
#gws .card-title { font-size: 1.12rem; font-weight: 700; color: #fff; margin: 0; }
#gws .card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 3px 8px; border-radius: 4px; }
#gws .tag-recommended { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
#gws .tag-nosmartscreen { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
#gws .card-desc { font-size: 0.86rem; color: #94a3b8; margin: 0; line-height: 1.5; }
#gws .card-meta-list { font-size: 0.78rem; color: #64748b; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
#gws .api-live-bar { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: #94a3b8; }
#gws .api-status-badge { display: inline-flex; align-items: center; gap: 6px; color: #10b981; font-weight: 500; }
#gws .api-status-badge svg { width: 14px; height: 14px; fill: currentColor; }
#gws .api-refresh-btn { background: none; border: none; color: #38bdf8; cursor: pointer; font-size: 0.8rem; font-family: inherit; padding: 0; text-decoration: underline; transition: opacity .2s; }
#gws .sha-section { padding: 45px 0; }
#gws .sha-card { background: rgba(14, 22, 37, 0.78); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 10px; padding: 26px 30px; position: relative; }
#gws .sha-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
#gws .sha-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; color: #fff; }
#gws .sha-title svg { width: 20px; height: 20px; fill: #38bdf8; }
#gws .sha-code-container { display: flex; align-items: center; gap: 12px; background: #04060a; border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; overflow-x: auto; }
#gws .sha-hash { font-family: var(--font-mono, monospace); font-size: 0.84rem; color: #7dd3fc; letter-spacing: 0.5px; word-break: break-all; flex: 1; }
#gws .copy-btn { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); color: #38bdf8; padding: 6px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; }
#gws .copy-btn:hover { background: rgba(56, 189, 248, 0.25); color: #fff; border-color: #38bdf8; }
#gws .copy-btn.copied { background: rgba(16, 185, 129, 0.15); border-color: #10b981; color: #10b981; }
#gws .sha-terminal-cmd { font-size: 0.8rem; color: #94a3b8; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: rgba(0, 0, 0, 0.35); padding: 8px 12px; border-radius: 4px; border-left: 3px solid #0284c7; }
#gws .sha-terminal-cmd code { font-family: var(--font-mono, monospace); color: #cbd5e1; }
#gws .smartscreen-section { padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#gws .section-intro-header { text-align: center; max-width: 750px; margin: 0 auto 40px auto; }
#gws .section-tag { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.5px; color: #38bdf8; font-weight: 700; margin-bottom: 8px; display: inline-block; }
#gws .section-intro-header h2 { font-family: 'Comfortaa', cursive; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff; margin: 0 0 14px 0; }
#gws .section-intro-header p { color: #94a3b8; font-size: 0.98rem; margin: 0; }
#gws .transparency-banner { background: rgba(2, 132, 199, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); border-left: 4px solid #38bdf8; border-radius: 10px; padding: 22px 26px; margin-bottom: 40px; display: flex; gap: 18px; align-items: flex-start; }
#gws .transparency-icon { width: 28px; height: 28px; fill: #38bdf8; flex-shrink: 0; margin-top: 2px; }
#gws .transparency-content h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 8px 0; }
#gws .transparency-content p { font-size: 0.9rem; color: #cbd5e1; margin: 0; line-height: 1.6; }
#gws .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
@media (max-width: 900px) { #gws .steps-grid { grid-template-columns: 1fr; } }
#gws .step-card { background: rgba(14, 22, 37, 0.78); border: 1px solid rgba(56, 189, 248, 0.16); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; position: relative; transition: transform .25s ease, border-color .25s ease; }
#gws .step-card:hover { transform: translateY(-3px); border-color: #38bdf8; }
#gws .step-num-badge { width: 32px; height: 32px; border-radius: 50%; background: rgba(56, 189, 248, 0.15); border: 1px solid #38bdf8; color: #38bdf8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; }
#gws .step-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 8px 0; }
#gws .step-text { font-size: 0.88rem; color: #94a3b8; margin: 0 0 18px 0; line-height: 1.55; flex: 1; }
#gws .mockup-window { background: #004275; border-radius: 6px; padding: 16px; color: #fff; font-size: 0.78rem; box-shadow: 0 8px 20px rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.2); user-select: none; }
#gws .mockup-header { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
#gws .mockup-header svg { width: 16px; height: 16px; fill: #fff; }
#gws .mockup-body { color: #e0f2fe; line-height: 1.4; margin-bottom: 12px; }
#gws .mockup-link-target { color: #fff; text-decoration: underline; font-weight: 700; padding: 2px 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); display: inline-block; }
#gws .mockup-btn-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
#gws .mockup-btn { padding: 6px 14px; font-size: 0.76rem; border-radius: 3px; font-weight: 600; border: none; cursor: default; }
#gws .mockup-btn-primary { background: #38bdf8; color: #00223d; font-weight: 700; box-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
#gws .mockup-btn-secondary { background: rgba(255, 255, 255, 0.15); color: #fff; }
#gws .changelog-section { padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#gws .timeline-list { display: flex; flex-direction: column; gap: 28px; max-width: 860px; margin: 0 auto; }
#gws .timeline-card { background: rgba(14, 22, 37, 0.78); border: 1px solid rgba(56, 189, 248, 0.16); border-radius: 10px; padding: 28px; position: relative; }
#gws .timeline-card.is-latest { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 25px rgba(56, 189, 248, 0.08); }
#gws .timeline-card.is-latest::before { content: 'Dernière Version'; position: absolute; top: -10px; right: 24px; background: #38bdf8; color: #05080f; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 2px 10px; border-radius: 20px; }
#gws .timeline-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 12px; margin-bottom: 18px; }
#gws .timeline-version { font-family: 'Comfortaa', cursive; font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0; }
#gws .timeline-date { font-size: 0.82rem; color: #94a3b8; }
#gws .changelog-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
#gws .changelog-items li { font-size: 0.92rem; color: #cbd5e1; position: relative; padding-left: 20px; line-height: 1.5; }
#gws .changelog-items li::before { content: '▸'; position: absolute; left: 0; color: #38bdf8; }
#gws .visuals-section { padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#gws .visuals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { #gws .visuals-grid { grid-template-columns: 1fr; } }
#gws .visual-card { background: rgba(14, 22, 37, 0.78); border: 1px solid rgba(56, 189, 248, 0.16); border-radius: 10px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
#gws .visual-card:hover { transform: translateY(-3px); border-color: #38bdf8; }
#gws .visual-card img { width: 100%; height: auto; display: block; }
#gws .visual-caption { padding: 14px 18px; font-size: 0.86rem; color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(10, 15, 24, 0.9); }
#gws .specs-section { padding: 60px 0 80px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#gws .specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { #gws .specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { #gws .specs-grid { grid-template-columns: 1fr; } }
#gws .spec-box { background: rgba(14, 22, 37, 0.78); border: 1px solid rgba(56, 189, 248, 0.16); border-radius: 6px; padding: 18px; }
#gws .spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #38bdf8; font-weight: 700; margin-bottom: 6px; }
#gws .spec-val { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
#gws .spec-note { font-size: 0.8rem; color: #64748b; }
`;
if (!oldAppsCssRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver le bloc CSS #apps existant');
process.exit(1);
}
html = html.replace(oldAppsCssRegex, newDarkroomCss);
console.log('✓ CSS #apps modernisé en darkroom alpine et styles #gws intégrés.');
// 3. NAVIGATION HTML (spa-nav)
const oldNavRegex = /<nav class="spa-nav">[\s\S]*?<\/nav>/;
const newNavHtml = `<nav class="spa-nav">
<a href="#accueil" data-spa="accueil">Accueil</a>
<a href="#portfolio" data-spa="portfolio">Portfolio</a>
<a href="#realisations" data-spa="realisations">Réalisations</a>
<a href="#apropos" data-spa="apropos">L'envers du Décor</a>
<a href="#apps" data-spa="apps">Écosystème &amp; Apps</a>
<a href="#gws" data-spa="gws" class="spa-nav-gws"><span class="nav-gws-pulse"></span>Weather Studio</a>
<a href="#news" data-spa="news">Carnet de bord</a>
</nav>`;
if (!oldNavRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver le bloc <nav class="spa-nav">');
process.exit(1);
}
html = html.replace(oldNavRegex, newNavHtml);
console.log('✓ Navigation HTML .spa-nav enrichie avec Écosystème et Weather Studio.');
// 4. FICHE GWS DANS #apps : REMPLACEMENT DU TAG OBSOLÈTE PAR DES ACTIONS ACTIVES ET SHA-256
const oldGwsTopCardRegex = /<article class="app-card-detailed" id="app-weather-studio">[\s\S]*?<div class="app-card-top">[\s\S]*?<span class="app-status-tag">Disponible prochainement au téléchargement<\/span>[\s\S]*?<\/div>/;
const newGwsTopCardHtml = `<article class="app-card-detailed" id="app-weather-studio">
<div class="app-card-top">
<div class="app-title-group">
<img src="assets/apps/gastinel-weather-studio/icone.webp" alt="Icône Gastinel Weather Studio" class="app-icon-img" width="48" height="48" loading="lazy">
<div>
<h3 class="app-main-title">Gastinel Weather Studio</h3>
<div style="font-size:0.78rem;color:#38bdf8;font-weight:600;margin-top:2px;">Station logicielle d'analyse microclimatique du Vercors</div>
</div>
</div>
<div class="app-status-actions-wrap">
<span class="app-status-badge available"><span class="badge-dot"></span>Disponible &middot; v0.3.5 (Windows 64-bit)</span>
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.3.5_x64-setup.exe" class="app-btn-download-quick" download>
<svg class="svg-icon" viewBox="0 0 448 512" aria-hidden="true" style="width:14px;height:14px;"><path d="M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"/></svg>
<span>Télécharger (.exe)</span>
</a>
<a href="#gws" data-spa="gws" class="app-btn-hub-quick">
<span>Hub &amp; Guide Defender ➔</span>
</a>
</div>
</div>`;
if (!oldGwsTopCardRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver le bloc en-tête de Gastinel Weather Studio');
process.exit(1);
}
html = html.replace(oldGwsTopCardRegex, newGwsTopCardHtml);
console.log('✓ En-tête de la fiche GWS mis à jour avec badges de disponibilité et boutons de téléchargement direct.');
// Ajout du bloc d'intégrité rapide à la fin de la fiche GWS dans #apps
const oldGwsCardEndRegex = /<\/div>\s*<\/article>\s*<article class="app-card-detailed" id="app-vercors-map">/;
const newGwsCardEndHtml = ` <div class="app-inline-integrity">
<div>
<span style="color:#38bdf8;font-weight:700;margin-right:6px;">Empreinte officielle SHA-256 :</span>
<code>6B2935E732A35175D01F586D7D8578DF63FB445444460464039FEBC7EA841CCA</code>
</div>
<button type="button" class="app-inline-copy-btn" data-copy="6B2935E732A35175D01F586D7D8578DF63FB445444460464039FEBC7EA841CCA">Copier le hash</button>
</div>
</div>
</article>
<article class="app-card-detailed" id="app-vercors-map">`;
if (!oldGwsCardEndRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver la fin de la fiche GWS');
process.exit(1);
}
html = html.replace(oldGwsCardEndRegex, newGwsCardEndHtml);
console.log('✓ Bloc intégrité SHA-256 1-clic injecté dans la fiche GWS.');
// 5. INJECTION DE LA SECTION #gws DANS INDEX.HTML
const appsSectionEndRegex = /<\/section>\s*<section id="deroulement" class="spa-section">/;
const gwsSectionHtml = `</section>
<!-- ==========================================================================
SECTION SPA DÉDIÉE : SAS & HUB OFFICIEL GASTINEL WEATHER STUDIO (#gws)
========================================================================== -->
<section id="gws" class="spa-section">
<div class="container">
<!-- En-tête héroïque -->
<div class="gws-hero" id="spa-gws-telecharger">
<div class="gws-badge-row">
<div class="status-dot"></div>
<span class="status-text">Station microclimatique &middot; Canal de distribution officiel</span>
</div>
<h1>Gastinel Weather Studio</h1>
<p class="gws-hero-subtitle">« Traquer, comparer, comprendre le froid. »</p>
<p class="gws-hero-desc">
Suite d'investigation thermique et cartographique conçue pour l'instrumentation des dépressions fermées et trous à froid (TAF) du massif du Vercors. Binaire autonome, sans dépendance logicielle lourde, compilé en code machine natif en Rust.
</p>
<!-- Boîte de téléchargement direct -->
<div class="download-action-box">
<div class="download-options-grid">
<!-- Option 1 : Installateur Standard (.exe) -->
<div class="primary-download-card">
<div>
<div class="card-title-row">
<h3 class="card-title">Installateur Windows</h3>
<span class="card-tag tag-recommended">Recommandé</span>
</div>
<p class="card-desc">Assistant d'installation complet pour Windows 10 &amp; 11 (64-bit).</p>
<div class="card-meta-list">
<span>Architecture : <strong>x86_64 native (Rust + Tauri)</strong></span>
<span>Poids : <strong>~3.6 Mo</strong> &middot; Version : <strong id="spaHeroVersionLabel">v0.3.5</strong></span>
</div>
</div>
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.3.5_x64-setup.exe" class="btn-main-download" id="spaHeroDownloadBtnExe" download>
<svg viewBox="0 0 448 512" aria-hidden="true"><path d="M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"/></svg>
<span>Télécharger l'installateur (.exe)</span>
</a>
</div>
<!-- Option 2 : Paquet de mise à jour (.gws) -->
<div class="alt-download-card">
<div>
<div class="card-title-row">
<h3 class="card-title">Paquet Autonome</h3>
<span class="card-tag tag-nosmartscreen">Sans SmartScreen</span>
</div>
<p class="card-desc">Archive cryptographiquement signée, ouvrable directement au sein de GWS sans alerte antivirus.</p>
<div class="card-meta-list">
<span>Format : <strong>Archive .gws (manifeste + binaire)</strong></span>
<span>Idéal si GWS est déjà installé ou pour mise à jour rapide.</span>
</div>
</div>
<a href="https://gastinel.me/gws/downloads/update-0.3.5.gws" class="btn-alt-download" id="spaHeroDownloadBtnGws" download>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
<span>Télécharger le paquet (.gws)</span>
</a>
</div>
</div>
<!-- API Live Bar -->
<div class="api-live-bar">
<div class="api-status-badge">
<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
<span id="spaApiStatusMessage">Connecté au canal de version en direct (gastinel.me/gws/api/v1)</span>
</div>
<button type="button" class="api-refresh-btn" id="spaApiRefreshBtn">Vérifier les mises à jour</button>
</div>
</div>
</div>
<!-- Section Intégrité SHA-256 -->
<div class="sha-section">
<div class="sha-card">
<div class="sha-header">
<div class="sha-title">
<svg viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>
<span>Empreinte cryptographique officielle (SHA-256)</span>
</div>
<span style="font-size:0.78rem;color:#94a3b8;">Contrôle d'intégrité strict avant exécution</span>
</div>
<div class="sha-code-container">
<span class="sha-hash" id="spaSha256Value">6B2935E732A35175D01F586D7D8578DF63FB445444460464039FEBC7EA841CCA</span>
<button type="button" class="copy-btn" id="spaCopyShaBtn" aria-label="Copier le hash SHA-256">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
<span id="spaCopyShaText">Copier le hash</span>
</button>
</div>
<div class="sha-terminal-cmd">
<div>
<span style="color:#38bdf8;font-weight:600;margin-right:6px;">Commande PowerShell :</span>
<code>Get-FileHash "Gastinel_Weather_Studio_*.exe" -Algorithm SHA256</code>
</div>
<button type="button" class="copy-btn" id="spaCopyCmdBtn" style="padding:4px 10px;font-size:0.74rem;">
Copier la commande
</button>
</div>
</div>
</div>
<!-- Guide Pas-à-Pas Anti-SmartScreen / Windows Defender -->
<div class="smartscreen-section">
<div class="section-intro-header">
<span class="section-tag">Transparence & Sécurité</span>
<h2>Installation sereine sous Windows</h2>
<p>
Lors du premier lancement d'un exécutable indépendant, Microsoft Defender SmartScreen peut afficher un écran bleu de prévention. Voici la marche à suivre pas-à-pas en toute sérénité.
</p>
</div>
<!-- Explication transparente -->
<div class="transparency-banner">
<svg class="transparency-icon" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
<div class="transparency-content">
<h3>Pourquoi Windows affiche-t-il cet avertissement ?</h3>
<p>
Gastinel Weather Studio est un logiciel artisanal développé dans le Vercors, compilé localement en Rust natif, sans publicité ni télémétrie commerciale. Microsoft impose un certificat d'entreprise payant (EV, plusieurs centaines d'euros par an) pour dispenser les applications de cet écran. En l'absence de ce certificat commercial, Windows alerte par défaut sur les binaires récents. Le code est sain et certifié par l'empreinte SHA-256 ci-dessus.
</p>
</div>
</div>
<!-- Grille 3 étapes interactives -->
<div class="steps-grid">
<!-- Étape 1 -->
<div class="step-card">
<div class="step-num-badge">1</div>
<h3 class="step-title">L'écran d'alerte apparaît</h3>
<p class="step-text">
Windows affiche la fenêtre bleue « Windows a protégé votre ordinateur ». Ne cliquez pas sur « Ne pas exécuter ». Cliquez sur le lien textuel discret <strong>« Informations complémentaires »</strong>.
</p>
<div class="mockup-window">
<div class="mockup-header">
<svg viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>
<span>Windows a protégé votre ordinateur</span>
</div>
<div class="mockup-body">
Microsoft Defender SmartScreen a empêché le démarrage d'une application non reconnue...<br><br>
<span class="mockup-link-target">Informations complémentaires ➔</span>
</div>
<div class="mockup-btn-row">
<div class="mockup-btn mockup-btn-secondary">Ne pas exécuter</div>
</div>
</div>
</div>
<!-- Étape 2 -->
<div class="step-card">
<div class="step-num-badge">2</div>
<h3 class="step-title">Débloquer l'exécution</h3>
<p class="step-text">
Les détails du fichier s'affichent (« Application : Gastinel Weather Studio »). Le bouton <strong>« Exécuter quand même »</strong> apparaît alors en bas à droite. Cliquez dessus.
</p>
<div class="mockup-window">
<div class="mockup-header">
<svg viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>
<span>Windows a protégé votre ordinateur</span>
</div>
<div class="mockup-body" style="font-size:0.72rem;">
Application : <strong>Gastinel_Weather_Studio_setup.exe</strong><br>
Éditeur : <strong>Théo Gastinel</strong>
</div>
<div class="mockup-btn-row">
<div class="mockup-btn mockup-btn-primary">Exécuter quand même ➔</div>
<div class="mockup-btn mockup-btn-secondary">Ne pas exécuter</div>
</div>
</div>
</div>
<!-- Étape 3 -->
<div class="step-card">
<div class="step-num-badge">3</div>
<h3 class="step-title">Lancement instantané</h3>
<p class="step-text">
L'assistant d'installation ou l'application se lance normalement. Windows mémorise votre choix et ne vous redemandera plus cette confirmation pour les lancements ultérieurs.
</p>
<div class="mockup-window" style="background:#0a1726;border-color:rgba(16,185,129,0.3);">
<div class="mockup-header" style="color:#10b981;">
<svg viewBox="0 0 24 24" style="fill:#10b981;"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
<span>Installation autorisée</span>
</div>
<div class="mockup-body" style="color:#94a3b8;">
Le binaire est vérifié et s'exécute dans un environnement local sécurisé. Vos projets de terrain sont prêts.
</div>
<div class="mockup-btn-row">
<div class="mockup-btn" style="background:#10b981;color:#040d1a;font-weight:700;">Prêt à l'emploi ✓</div>
</div>
</div>
</div>
</div>
</div>
<!-- Changelog & Nouveautés Grand Format -->
<div class="changelog-section">
<div class="section-intro-header">
<span class="section-tag">Historique des versions</span>
<h2>Nouveautés & Évolutions</h2>
<p>Retrouvez le journal exhaustif des évolutions architecturales et fonctionnelles de Gastinel Weather Studio.</p>
</div>
<div class="timeline-list">
<!-- v0.3.5 / v0.3.4 -->
<article class="timeline-card is-latest">
<div class="timeline-top">
<h3 class="timeline-version">Version 0.3.5 &middot; Affinage Cartographique & Ergonomie</h3>
<span class="timeline-date">23 septembre 2026</span>
</div>
<ul class="changelog-items">
<li><strong>Carte de terrain allégée :</strong> Remplacement de l'infobulle volumineuse par un badge compact sombre et contrasté (nom, altitude, typologie de cuvette) au survol des stations.</li>
<li><strong>Création intuitive de stations :</strong> Suppression des bandeaux textuels encombrants et du bouton flottant ; création directe de points d'acquisition par clic droit géoréférencé ou appui long tactile.</li>
<li><strong>Guide de démarrage pas-à-pas :</strong> Nouveau guide visuel au premier lancement présentant les grands principes de l'inversion thermique et des TAF, réactivable à tout moment depuis les Paramètres.</li>
<li><strong>Format de paquet souverain <code>.gws</code> :</strong> Intégration de la distribution autonome évitant les déclenchements SmartScreen lors des mises à jour incrémentales.</li>
<li><strong>Moteur d'analyse synchrone :</strong> Alignement temporel automatique des séries brutes issues de loggers hétérogènes.</li>
</ul>
</article>
<!-- v0.3.3 & v0.3.2 -->
<article class="timeline-card">
<div class="timeline-top">
<h3 class="timeline-version">Version 0.3.3 &amp; 0.3.2 &middot; Décodage USB RC-5 Natif</h3>
<span class="timeline-date">23 septembre 2026</span>
</div>
<ul class="changelog-items">
<li><strong>Pilote Elitech RC-5 / RC-5+ direct :</strong> Décodage direct des trames USB propriétaires sans dépendre de logiciels constructeurs fermés.</li>
<li><strong>Filtrage thermique physique :</strong> Détection automatisée des capteurs enfouis sous le manteau neigeux modifiant artificiellement la cinétique thermique.</li>
<li><strong>Supervision mémoire :</strong> Réduction de 40% de l'empreinte RAM lors de la manipulation de séries dépassant 50 000 points.</li>
</ul>
</article>
<!-- v0.3.1 & v0.3.0 -->
<article class="timeline-card">
<div class="timeline-top">
<h3 class="timeline-version">Version 0.3.0 &middot; Architecture Tauri 2 & Dossiers HTML</h3>
<span class="timeline-date">19 septembre 2026</span>
</div>
<ul class="changelog-items">
<li><strong>Moteur d'exportation universel :</strong> Génération de classeurs d'analyse HTML autonomes et interactifs, lisibles hors-ligne sans installation.</li>
<li><strong>Interconnexion API Infoclimat :</strong> Synchronisation automatique des données de la station Grande Moucherolle et des balises Davis Vantage Pro 2 environnantes.</li>
<li><strong>Classification à 4 degrés morphologiques :</strong> Grille de lecture spécifique à la volumétrie des dépressions alpines (fond de doline vs crête d'écoulement).</li>
</ul>
</article>
</div>
</div>
<!-- Captures d'écran Grand Format -->
<div class="visuals-section">
<div class="section-intro-header">
<span class="section-tag">Aperçu en situation</span>
<h2>Conçu pour le terrain et le laboratoire</h2>
<p>Une ergonomie unifiée pensée pour les conditions extrêmes, calquée sur les standards de précision technique.</p>
</div>
<div class="visuals-grid">
<div class="visual-card">
<img src="assets/apps/gastinel-weather-studio/studio.webp" alt="Comparateur multi-séries thermiques" loading="lazy" width="1200" height="648">
<div class="visual-caption">Interface Studio : confrontation synchronisée des minima radiatifs et identification des anomalies de refroidissement.</div>
</div>
<div class="visual-card">
<img src="assets/apps/gastinel-weather-studio/accueil.webp" alt="Carte topographique du Vercors" loading="lazy" width="1200" height="653">
<div class="visual-caption">Cartographie IGN haute précision : indexation des reliefs et création géoréférencée des stations d'observation.</div>
</div>
<div class="visual-card">
<img src="assets/apps/gastinel-weather-studio/logger.webp" alt="Importation de logger USB" loading="lazy" width="500" height="694" style="max-height:450px;object-fit:cover;object-position:top;">
<div class="visual-caption">Module d'acquisition directe : lecture immédiate des loggers Elitech RC-5 sans pilote externe.</div>
</div>
<div class="visual-card" style="display:flex;flex-direction:column;justify-content:center;padding:30px;background:linear-gradient(145deg,rgba(2,132,199,0.1),rgba(15,23,42,0.8));">
<h3 style="font-family:'Comfortaa',cursive;color:#fff;font-size:1.4rem;margin:0 0 12px 0;">Souveraineté des données de mesure</h3>
<p style="color:#94a3b8;font-size:0.92rem;line-height:1.6;margin:0 0 20px 0;">
Chaque température enregistrée reste stockée dans une base SQLite locale sur votre propre machine. Aucune télémétrie, aucune transmission vers un serveur distant, aucune dépendance au cloud.
</p>
<a href="#spa-gws-telecharger" class="btn-main-download" style="margin-top:0;align-self:flex-start;">
<span>Télécharger Gastinel Weather Studio</span>
</a>
</div>
</div>
</div>
<!-- Spécifications & Exigences système -->
<div class="specs-section">
<div class="section-intro-header">
<span class="section-tag">Spécifications techniques</span>
<h2>Exigences minimales du système</h2>
</div>
<div class="specs-grid">
<div class="spec-box">
<div class="spec-label">Système d'exploitation</div>
<div class="spec-val">Windows 10 / 11</div>
<div class="spec-note">Architecture 64-bit (x86_64)</div>
</div>
<div class="spec-box">
<div class="spec-label">Mémoire vive (RAM)</div>
<div class="spec-val">&lt; 200 Mo</div>
<div class="spec-note">Empreinte ultra-légère en exécution</div>
</div>
<div class="spec-box">
<div class="spec-label">Espace disque</div>
<div class="spec-val">~35 Mo</div>
<div class="spec-note">Binaire compact + runtime WebView2</div>
</div>
<div class="spec-box">
<div class="spec-label">Matériel supporté</div>
<div class="spec-val">Elitech RC-5 / RC-5+</div>
<div class="spec-note">USB natif, CSV/XLS, Davis VP2</div>
</div>
</div>
</div>
</div>
</section>
<section id="deroulement" class="spa-section">`;
if (!appsSectionEndRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver la fin de la section #apps');
process.exit(1);
}
html = html.replace(appsSectionEndRegex, gwsSectionHtml);
console.log('✓ Section SPA dédiée #gws insérée avec succès dans index.html.');
// 6. ROUTEUR SPA (ROUTES, go(route) et Modules.gws)
const oldRoutesRegex = /var ROUTES=\['accueil','portfolio','realisations','apropos','apps','application','deroulement','termes','news','carnet'\];/;
const newRoutesStr = `var ROUTES=['accueil','portfolio','realisations','apropos','apps','application','gws','telechargement','deroulement','termes','news','carnet'];`;
if (!oldRoutesRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver la déclaration de var ROUTES');
process.exit(1);
}
html = html.replace(oldRoutesRegex, newRoutesStr);
console.log('✓ Déclaration var ROUTES étendue avec gws et telechargement.');
// Redirection de telechargement vers gws dans go(route)
const oldGoRouteCheck = `if(route==='application') route='apps';`;
const newGoRouteCheck = `if(route==='application') route='apps';${eol} if(route==='telechargement') route='gws';`;
if (!html.includes(oldGoRouteCheck)) {
console.error('[ERREUR] Impossible de trouver oldGoRouteCheck');
process.exit(1);
}
html = html.replace(oldGoRouteCheck, newGoRouteCheck);
console.log('✓ Router go(route) mis à jour pour rediriger telechargement vers gws.');
// Ajout du module Modules.gws et enrichissement de Modules.apps
const oldModulesAppsRegex = /apps:function\(root\)\{\s*initSmoothDetails\(root\);\s*\},/;
const newModulesAppsStr = `apps:function(root){
initSmoothDetails(root);
var copyBtn = root.querySelector('.app-inline-copy-btn');
if(copyBtn){
copyBtn.addEventListener('click', function(){
var hash = copyBtn.getAttribute('data-copy');
if(navigator.clipboard && hash){
navigator.clipboard.writeText(hash).then(function(){
var orig = copyBtn.textContent;
copyBtn.textContent = 'Hash copié !';
setTimeout(function(){ copyBtn.textContent = orig; }, 2000);
});
}
});
}
},
gws:function(root){
var API_URL = 'https://gastinel.me/gws/api/v1/update/windows/x86_64/0.0.0';
var DEFAULT_VERSION = '0.3.5';
// Copie SHA-256
var copyShaBtn = root.querySelector('#spaCopyShaBtn');
var sha256Value = root.querySelector('#spaSha256Value');
var copyShaText = root.querySelector('#spaCopyShaText');
if (copyShaBtn && sha256Value) {
copyShaBtn.addEventListener('click', function() {
var text = sha256Value.textContent.trim();
if (navigator.clipboard) {
navigator.clipboard.writeText(text).then(function() {
copyShaBtn.classList.add('copied');
if (copyShaText) copyShaText.textContent = 'Hash copié !';
setTimeout(function() {
copyShaBtn.classList.remove('copied');
if (copyShaText) copyShaText.textContent = 'Copier le hash';
}, 2200);
});
}
});
}
// Copie Commande PowerShell
var copyCmdBtn = root.querySelector('#spaCopyCmdBtn');
if (copyCmdBtn) {
copyCmdBtn.addEventListener('click', function() {
var cmd = 'Get-FileHash "Gastinel_Weather_Studio_*.exe" -Algorithm SHA256';
if (navigator.clipboard) {
navigator.clipboard.writeText(cmd).then(function() {
copyCmdBtn.textContent = 'Commande copiée !';
setTimeout(function() { copyCmdBtn.textContent = 'Copier la commande'; }, 2000);
});
}
});
}
// Interrogation de l'API en direct
function checkLive() {
var statusMsg = root.querySelector('#spaApiStatusMessage');
var heroVer = root.querySelector('#spaHeroVersionLabel');
var exeBtn = root.querySelector('#spaHeroDownloadBtnExe');
var gwsBtn = root.querySelector('#spaHeroDownloadBtnGws');
if (statusMsg) statusMsg.textContent = 'Interrogation de l\\'API gastinel.me en cours...';
fetch(API_URL, { cache: 'no-cache' })
.then(function(resp) {
if (!resp.ok && resp.status !== 204) throw new Error('HTTP ' + resp.status);
if (resp.status === 204) return null;
return resp.json();
})
.then(function(data) {
if (data && data.version) {
var v = data.version;
if (heroVer) heroVer.textContent = 'v' + v;
if (data.url && exeBtn) exeBtn.href = data.url;
if (gwsBtn) gwsBtn.href = 'https://gastinel.me/gws/downloads/update-' + v + '.gws';
if (statusMsg) statusMsg.textContent = 'Dernière version confirmée en ligne : v' + v + ' (Canal stable)';
} else {
if (statusMsg) statusMsg.textContent = 'Version courante vérifiée : v' + DEFAULT_VERSION;
}
})
.catch(function() {
if (statusMsg) statusMsg.textContent = 'Canal officiel actif · Version locale par défaut v' + DEFAULT_VERSION;
});
}
var refreshBtn = root.querySelector('#spaApiRefreshBtn');
if (refreshBtn) {
refreshBtn.addEventListener('click', function(e) {
e.preventDefault();
checkLive();
});
}
checkLive();
},`;
if (!oldModulesAppsRegex.test(html)) {
console.error('[ERREUR] Impossible de trouver Modules.apps');
process.exit(1);
}
html = html.replace(oldModulesAppsRegex, newModulesAppsStr);
console.log('✓ Modules.apps et Modules.gws connectés avec gestion du presse-papier et de l\'API live.');
// 7. FOOTER : AJOUT D'UN LIEN DIRECT VERS LE HUB WEATHER STUDIO
const oldFooterBottomRegex = /<div class="footer-bottom">© 2026 THÉO - SOLUTIONS VISUELLES & ACQUISITION OPTIQUE \|/;
const newFooterBottomStr = `<div class="footer-bottom">© 2026 THÉO - SOLUTIONS VISUELLES & ACQUISITION OPTIQUE | <a href="#gws" data-spa="gws" style="color:#38bdf8;font-weight:600;">Téléchargement GWS</a> |`;
if (oldFooterBottomRegex.test(html)) {
html = html.replace(oldFooterBottomRegex, newFooterBottomStr);
console.log('✓ Lien Téléchargement GWS ajouté dans le footer.');
}
// 8. ÉCRITURE DU FICHIER MIS À JOUR
fs.writeFileSync(INDEX_HTML, html, 'utf8');
console.log('🎉 SUCCÈS : _Site/index.html mis à jour intégralement !');
+76
Voir le fichier
@@ -0,0 +1,76 @@
#!/usr/bin/env node
/**
* tools/apply-selection.js
*
* Synchronise la galerie de index.html avec les photos retenues dans
* C:\Users\theog\Desktop\Selection_Photos_Portfolio
*
* Usage :
* node tools/apply-selection.js
*/
const fs = require('fs');
const path = require('path');
const ROOT_DIR = path.resolve(__dirname, '..');
const INDEX_HTML = path.join(ROOT_DIR, 'index.html');
const DESKTOP_DIR = 'C:\\Users\\theog\\Desktop\\Selection_Photos_Portfolio';
if (!fs.existsSync(DESKTOP_DIR)) {
console.error(`[ERREUR] Le dossier de sélection n'existe pas : ${DESKTOP_DIR}`);
process.exit(1);
}
const keptFiles = new Set(
fs.readdirSync(DESKTOP_DIR)
.filter(f => !f.startsWith('.') && fs.statSync(path.join(DESKTOP_DIR, f)).isFile())
);
console.log(`[SELECTION] ${keptFiles.size} fichier(s) détecté(s) dans le dossier de sélection.`);
if (keptFiles.size === 0) {
console.error('[ERREUR] Aucun fichier trouvé dans le dossier de sélection.');
process.exit(1);
}
let html = fs.readFileSync(INDEX_HTML, 'utf8');
// Extraction des éléments .gallery-item
const itemRegex = /<div class="gallery-item[^"]*">[\s\S]*?<\/div>/g;
const rootMatch = html.match(/(<div class="grid-layout" id="gallery-root">)([\s\S]*?)(<\/div>\s*<div class="cloud-wrapper")/);
if (!rootMatch) {
console.error('[ERREUR] Impossible de cibler #gallery-root dans index.html');
process.exit(1);
}
const prefix = rootMatch[1];
const galleryBody = rootMatch[2];
const suffix = rootMatch[3];
const items = [];
let itemMatch;
while ((itemMatch = itemRegex.exec(galleryBody)) !== null) {
const itemHtml = itemMatch[0];
const srcM = itemHtml.match(/src="assets\/img\/([^"]+)"/);
if (srcM) {
const filename = srcM[1];
items.push({ filename, html: itemHtml });
}
}
console.log(`[ANALYSE] ${items.length} éléments galerie trouvés dans le code.`);
const retained = items.filter(it => keptFiles.has(it.filename));
console.log(`[FILTRE] ${retained.length} éléments correspondent aux fichiers conservés.`);
if (retained.length === 0) {
console.error('[ERREUR] Aucune correspondance trouvée entre le dossier et index.html.');
process.exit(1);
}
const newGalleryBody = '\n ' + retained.map(it => it.html).join('\n ') + '\n ';
const updatedHtml = html.replace(rootMatch[0], prefix + newGalleryBody + suffix);
fs.writeFileSync(INDEX_HTML, updatedHtml, 'utf8');
console.log(`[SUCCÈS] index.html mis à jour avec la sélection resserrée (${retained.length} clichés).`);
+197
Voir le fichier
@@ -0,0 +1,197 @@
#!/usr/bin/env node
/**
* tools/apply-seo-geo.js
*
* Met à jour index.html selon les recommandations strictes SEO & GEO :
* 1. Balises <head> complètes : title, description, canonical, robots, author, geo
* 2. Open Graph (og:*) et Twitter Cards complètes
* 3. Données structurées JSON-LD Schema.org unifiées (Person + ProfessionalService)
* sans name-dropping d'outils tiers, axées sur les compétences.
* 4. Nettoyage des balises <img> (remplacement des alts génériques et correction des "with").
*/
const fs = require('fs');
const path = require('path');
const ROOT_DIR = path.resolve(__dirname, '..');
const INDEX_HTML = path.join(ROOT_DIR, 'index.html');
console.log('[SEO/GEO] Lecture de index.html...');
let html = fs.readFileSync(INDEX_HTML, 'utf8');
const eol = html.includes('\r\n') ? '\r\n' : '\n';
// 1. MISE À JOUR DU <HEAD>
const headStartRegex = /<head>[\s\S]*?<link rel="icon"/;
const newHeadContent = `<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Théo Gastinel — Photographe &amp; Vidéaste Drone FPV | Vercors</title>
<meta name="description" content="Photographe et vidéaste drone FPV basé dans le massif du Vercors. Captations aériennes 4K, paysages alpins, créations visuelles et solutions techniques sur mesure.">
<link rel="canonical" href="https://gastinel.me/">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<meta name="author" content="Théo Gastinel">
<meta name="geo.region" content="FR-38">
<meta name="geo.placename" content="Lans-en-Vercors">
<!-- Open Graph / Facebook / LinkedIn / Discord -->
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:url" content="https://gastinel.me/">
<meta property="og:site_name" content="Théo Gastinel — Portfolio &amp; Écosystème">
<meta property="og:title" content="Théo Gastinel — Photographe &amp; Vidéaste Drone FPV | Vercors">
<meta property="og:description" content="Photographe et vidéaste drone FPV au cœur du Vercors. Prestations audiovisuelles alpines, immersions aériennes 4K et écosystème numérique indépendant.">
<meta property="og:image" content="https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp">
<meta property="og:image:alt" content="Perspective aérienne crépusculaire sur le plateau du Vercors par Théo Gastinel">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Théo Gastinel — Photographe &amp; Vidéaste Drone FPV | Vercors">
<meta name="twitter:description" content="Captations aériennes 4K, immersion alpine et photographie de montagne dans le massif du Vercors.">
<meta name="twitter:image" content="https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp">
<!-- Schema.org JSON-LD unifié (Person + ProfessionalService) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://gastinel.me/#website",
"url": "https://gastinel.me/",
"name": "Théo Gastinel",
"description": "Portfolio audiovisuel de montagne, captations aériennes et projets logiciels indépendants.",
"publisher": {
"@id": "https://gastinel.me/#person"
},
"inLanguage": "fr-FR"
},
{
"@type": "Person",
"@id": "https://gastinel.me/#person",
"name": "Théo Gastinel",
"jobTitle": "Photographe & Vidéaste Aérien Drone FPV",
"url": "https://gastinel.me/",
"image": "https://gastinel.me/assets/img/unnamed.webp",
"description": "Créateur indépendant et télépilote drone basé dans le Vercors, spécialisé dans l'acquisition visuelle en milieu alpin et les architectures logicielles indépendantes.",
"knowsAbout": [
"Photographie de montagne et animalière",
"Prise de vue aérienne et pilotage drone FPV",
"Post-production, retouche photo et étalonnage vidéo",
"Ingénierie logicielle et développement bas niveau",
"Infrastructures numériques souveraines et auto-hébergement"
],
"address": {
"@type": "PostalAddress",
"addressLocality": "Lans-en-Vercors",
"addressRegion": "Isère",
"addressCountry": "FR"
},
"sameAs": [
"https://www.link.gastinel.me/",
"https://www.hub.gastinel.me/",
"https://news.gastinel.me/"
]
},
{
"@type": "ProfessionalService",
"@id": "https://gastinel.me/#business",
"name": "Théo Gastinel — Solutions Visuelles & Acquisition Optique",
"url": "https://gastinel.me/",
"logo": "https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp",
"image": "https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp",
"description": "Prestations de production visuelle en extérieur, captation aérienne FPV, photographie d'altitude et développements informatiques dédiés.",
"areaServed": [
{
"@type": "AdministrativeArea",
"name": "Massif du Vercors"
},
{
"@type": "AdministrativeArea",
"name": "Isère"
},
{
"@type": "AdministrativeArea",
"name": "Drôme"
},
{
"@type": "AdministrativeArea",
"name": "Auvergne-Rhône-Alpes"
},
{
"@type": "Country",
"name": "France"
}
],
"priceRange": "$$",
"parentOrganization": {
"@id": "https://gastinel.me/#person"
}
}
]
}
</script>
<link rel="icon"`.replace(/\n/g, eol);
if (!headStartRegex.test(html)) {
console.error('[ERREUR] Impossible de cibler le haut de <head>');
process.exit(1);
}
html = html.replace(headStartRegex, newHeadContent);
console.log('✓ Balises <head>, Open Graph, Twitter Cards et JSON-LD Schema.org intégrés.');
// 2. NETTOYAGE DES ALTS GÉNÉRIQUES ET CORRECTION DES "WITH"
// Images présentation à propos
html = html.replace(
'src="assets/img/1.webp" width="871" height="667" alt="Photo 1"',
'src="assets/img/1.webp" width="871" height="667" alt="Théo Gastinel en repérage technique sur les crêtes du Vercors"'
);
html = html.replace(
'src="assets/img/2.webp" width="390" height="799" alt="Photo 3"',
'src="assets/img/2.webp" width="390" height="799" alt="Matériel de prise de vue et équipement d\'expédition hivernale"'
);
html = html.replace(
'src="assets/img/3.webp" width="1000" height="667" alt="Photo 2"',
'src="assets/img/3.webp" width="1000" height="667" alt="Vue d\'ensemble du massif alpin depuis un sommet du Vercors"'
);
// Roche 4 -> description experte
html = html.replace(
'src="assets/img/img-3301.webp" width="1000" height="667" alt="Roche 4"',
'src="assets/img/img-3301.webp" width="1000" height="667" alt="Architecture minérale vertigineuse sculptée par les millénaires dans les Dolomites"'
);
// Corrections coquilles "with"
html = html.replace(
'alt="Lumières rasantes sculptant les reliefs with des bouquetins paisibles."',
'alt="Lumières rasantes de fin d\'après-midi sculptant les reliefs avec des bouquetins alpins dans les Dolomites"'
);
html = html.replace(
'alt="Chamois aligné with une cavité rocheuse."',
'alt="Chamois en équilibre aligné avec une cavité rocheuse dans les Dolomites"'
);
html = html.replace(
'sujet with cette cavité rocheuse',
'sujet avec cette cavité rocheuse'
);
html = html.replace(
'alt="Contact visuel furtif et complice with la faune."',
'alt="Contact visuel furtif et complice avec la faune alpine sauvage"'
);
html = html.replace(
's\'alignant with une précision troublante',
's\'alignant avec une précision troublante'
);
html = html.replace(
'contraste with la netteté chirurgicale',
'contraste avec la netteté chirurgicale'
);
console.log('✓ Attributs alt enrichis et coquilles de langue corrigées.');
// Enregistrement
fs.writeFileSync(INDEX_HTML, html, 'utf8');
console.log('[SUCCÈS] index.html mis à jour avec les optimisations SEO & GEO !');
Affichage de 100 fichiers sur 109. Ce diff contient trop de modifications pour tout afficher. Voir plus