#!/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 = /