nodefony 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.ai/symbols.json +91 -30
  2. package/CHANGELOG.md +25 -0
  3. package/assets/login.css +26 -1
  4. package/dist/bin/nodefony.js +1 -1
  5. package/dist/client/client/debugbar/DebugBar.js +2 -2
  6. package/dist/client/debugbar.standalone.js +2 -2
  7. package/dist/login/login.css +26 -1
  8. package/dist/node/cli/create.js +30 -10
  9. package/dist/node/cli/installCommand.js +13 -1
  10. package/dist/node/cli/scaffold/engine.js +134 -26
  11. package/dist/node/cli/scaffold/invisibleChars.js +52 -0
  12. package/dist/node/cli/scaffold/versions.js +7 -7
  13. package/dist/node/cli/startPanel.js +70 -0
  14. package/dist/node/index.js +1 -1
  15. package/dist/node/kernel/checks/packageDeps.js +11 -1
  16. package/dist/node/package.json.js +1 -1
  17. package/dist/types/cli/installCommand.d.ts +10 -0
  18. package/dist/types/cli/scaffold/engine.d.ts +47 -9
  19. package/dist/types/cli/scaffold/invisibleChars.d.ts +10 -0
  20. package/dist/types/cli/startPanel.d.ts +75 -0
  21. package/man/nodefony.1 +1 -1
  22. package/package.json +6 -6
  23. package/templates/app/base/README.md.tpl +1 -1
  24. package/templates/app/base/env.ts.tpl +7 -4
  25. package/templates/app/base/nodefony.config.ts.tpl +12 -3
  26. package/templates/app/complete/env.example.tpl +4 -4
  27. package/templates/app/frontend/angular/frontend/src/accent.css.tpl +7 -39
  28. package/templates/app/frontend/angular/frontend/src/app/app.component.ts.tpl +276 -25
  29. package/templates/app/frontend/react/frontend/src/App.tsx.tpl +313 -44
  30. package/templates/app/frontend/react/frontend/src/accent.css.tpl +7 -35
  31. package/templates/app/frontend/shared/frontend/src/brand.ts.tpl +12 -9
  32. package/templates/app/frontend/shared/frontend/src/devHome.ts.tpl +45 -0
  33. package/templates/app/frontend/shared/frontend/src/homeContent.ts.tpl +229 -0
  34. package/templates/app/frontend/shared/frontend/src/homeEffects.ts.tpl +115 -0
  35. package/templates/app/frontend/shared/frontend/src/showcase.css.tpl +729 -205
  36. package/templates/app/frontend/shared/nodefony/controllers/AppController.ts.tpl +17 -7
  37. package/templates/app/frontend/svelte/frontend/src/App.svelte.tpl +248 -29
  38. package/templates/app/frontend/svelte/frontend/src/accent.css.tpl +7 -39
  39. package/templates/app/frontend/vue/frontend/src/App.vue.tpl +255 -28
  40. package/templates/app/frontend/vue/frontend/src/accent.css.tpl +7 -39
  41. package/templates/app/home/nodefony/controllers/HomeController.ts.tpl +40 -25
  42. package/templates/app/home/nodefony/home/homePage.ts.tpl +163 -0
  43. package/templates/controller/duplex/nodefony/controllers/__NAME__.ts.tpl +1 -1
  44. package/templates/controller/realtime/nodefony/controllers/__NAME__.ts.tpl +1 -1
  45. package/templates/controller/rest/nodefony/controllers/__NAME__.ts.tpl +1 -1
  46. package/templates/demo/front/frontend/src/App.tsx.tpl +57 -84
  47. package/templates/demo/front/frontend/src/demo.css.tpl +12 -134
  48. package/templates/demo/front/frontend/src/effects.ts.tpl +5 -36
  49. package/templates/entity/controller/nodefony/controllers/__PASCAL__Controller.ts.tpl +1 -1
  50. package/templates/demo/front/frontend/src/debugBar.ts.tpl +0 -56
  51. package/templates/demo/front/frontend/src/kit/theme.ts.tpl +0 -51
@@ -1,270 +1,794 @@
1
1
  /*
2
- * Feuille de style de la page de démonstration — PARTAGÉE par les trois
3
- * vitrines (React, Vue, Angular).
2
+ * Feuille de la page d'accueil — PARTAGÉE par les quatre fronts (React, Vue,
3
+ * Angular, Svelte) et par l'accueil d'une application sans front. Mêmes jetons,
4
+ * même en-tête, mêmes cartes que la démo : une application neuve ressemble à
5
+ * ce que montre le framework. Seule la couleur du front vient d'`accent.css`.
4
6
  *
5
- * Pourquoi un fichier CSS et non le bloc de styles de chaque framework : la
6
- * mise en page, la palette et les composants (`.nf-card`, `.nf-hero`…) sont les
7
- * mêmes dans les trois ; seul l'ACCENT change (la couleur du framework et
8
- * l'animation de son logo). Tenir trois copies faisait qu'une retouche
9
- * n'atteignait qu'une vitrine — et les trois avaient déjà commencé à diverger.
7
+ * Classes préfixées `nf-` : `.card`, `.btn` ou `.grid` entreraient en
8
+ * collision avec la première bibliothèque d'interface que tu ajouteras.
10
9
  *
11
- * L'accent se déclare en VARIABLES, posées par la vitrine qui importe ce
12
- * fichier : `--nf-accent`, `--nf-accent-glow`, `--nf-accent-wash`,
13
- * `--nf-accent-line`, `--nf-logo-anim` (plus le `@keyframes` qu'elle nomme).
14
- *
15
- * C'est TA page : supprime ce fichier et l'import qui le charge dès que la
16
- * démonstration ne te sert plus.
10
+ * C'est TA page : retouche ou remplace ce fichier comme ton propre code.
17
11
  */
18
-
19
12
  :root {
20
- --nf-bg: #f7f9fc;
21
- --nf-fg: #1a1f26;
22
- --nf-card: #fff;
23
- --nf-border: #e2e8f0;
24
- --nf-dim: #5b6472;
13
+ --blue: #0067ba;
14
+ --link: var(--blue);
15
+ --cyan: #00699f;
16
+ --green: #3b7430;
17
+ --bg: #e9f0f8;
18
+ --bg-soft: #dde7f3;
19
+ --fg: #0a2440;
20
+ --muted: #3d5571;
21
+ --card: #f7fafd;
22
+ --border: #c4d4e6;
23
+ --code-bg: #0a2440;
24
+ --code-fg: #d9e6f5;
25
+ --wash-blue: rgba(0, 160, 242, 0.16);
26
+ --wash-green: rgba(68, 132, 56, 0.1);
27
+ --shadow:
28
+ 0 1px 2px rgba(10, 36, 64, 0.06), 0 8px 24px rgba(0, 103, 186, 0.08);
29
+ --shadow-hover:
30
+ 0 2px 4px rgba(10, 36, 64, 0.08), 0 14px 34px rgba(0, 103, 186, 0.2);
31
+ --spring: linear(
32
+ 0,
33
+ 0.009,
34
+ 0.035 2.1%,
35
+ 0.141 4.4%,
36
+ 0.723 12.9%,
37
+ 0.938 16.7%,
38
+ 1.017 19.4%,
39
+ 1.067,
40
+ 1.084 26.3%,
41
+ 1.077 29.4%,
42
+ 1.006 41.1%,
43
+ 0.993 46.5%,
44
+ 1
45
+ );
25
46
  }
26
47
  @media (prefers-color-scheme: dark) {
27
- :root {
28
- --nf-bg: #12161c;
29
- --nf-fg: #e8ecf1;
30
- --nf-card: #1a2028;
31
- --nf-border: #2a3340;
32
- --nf-dim: #98a2b3;
48
+ :root:not([data-theme="light"]) {
49
+ --blue: #096bbf;
50
+ --link: color-mix(in srgb, var(--blue) 50%, var(--fg));
51
+ --cyan: #1ea0ec;
52
+ --green: #4a8b3e;
53
+ --wash-blue: rgba(30, 160, 236, 0.08);
54
+ --wash-green: rgba(74, 139, 62, 0.06);
55
+ --bg: #0a0f1c;
56
+ --bg-soft: #0e1524;
57
+ --fg: #e8edf6;
58
+ --muted: #93a1ba;
59
+ --card: #111828;
60
+ --border: #223046;
61
+ --code-bg: #0b1220;
62
+ --code-fg: #cfe0f2;
63
+ --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
64
+ --shadow-hover:
65
+ 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(30, 160, 236, 0.18);
66
+ color-scheme: dark;
33
67
  }
34
68
  }
69
+ :root[data-theme="dark"] {
70
+ --blue: #096bbf;
71
+ --link: color-mix(in srgb, var(--blue) 50%, var(--fg));
72
+ --cyan: #1ea0ec;
73
+ --green: #4a8b3e;
74
+ --wash-blue: rgba(30, 160, 236, 0.08);
75
+ --wash-green: rgba(74, 139, 62, 0.06);
76
+ --bg: #0a0f1c;
77
+ --bg-soft: #0e1524;
78
+ --fg: #e8edf6;
79
+ --muted: #93a1ba;
80
+ --card: #111828;
81
+ --border: #223046;
82
+ --code-bg: #0b1220;
83
+ --code-fg: #cfe0f2;
84
+ --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
85
+ --shadow-hover:
86
+ 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(30, 160, 236, 0.18);
87
+ color-scheme: dark;
88
+ }
89
+ :root[data-theme="light"] {
90
+ color-scheme: light;
91
+ }
35
92
 
93
+ * {
94
+ box-sizing: border-box;
95
+ }
96
+ html {
97
+ scrollbar-gutter: stable;
98
+ }
99
+ /* Police, fond et encre sur la PAGE : le premier élément rendu par n'importe
100
+ quel front en hérite, aucune enveloppe à ne pas oublier. */
36
101
  body {
37
102
  margin: 0;
103
+ min-height: 100vh;
104
+ font-family:
105
+ ui-sans-serif,
106
+ system-ui,
107
+ -apple-system,
108
+ "Segoe UI",
109
+ Roboto,
110
+ sans-serif;
111
+ font-size: 15px;
112
+ line-height: 1.6;
113
+ color: var(--fg);
114
+ background:
115
+ radial-gradient(
116
+ 1100px 520px at 30% -12%,
117
+ var(--wash-blue),
118
+ transparent 62%
119
+ ),
120
+ radial-gradient(900px 460px at 78% -8%, var(--wash-green), transparent 60%),
121
+ var(--bg);
122
+ /* La barre de debug (développement) publie sa hauteur : la page la réserve. */
123
+ padding-bottom: var(--nodefony-debugbar-height, 0px);
38
124
  }
39
125
  app-root {
40
126
  display: block;
41
127
  }
128
+ a {
129
+ color: var(--link);
130
+ }
131
+ a:focus-visible,
132
+ button:focus-visible {
133
+ outline: 2px solid var(--cyan);
134
+ outline-offset: 3px;
135
+ border-radius: 4px;
136
+ }
137
+ /* Le code de l'ACCUEIL seulement : une pastille sur tout `code` de la page
138
+ imposerait son style aux pages que tu ajouteras (la démo a les siennes). */
139
+ .nf-main code {
140
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
141
+ font-size: 0.85em;
142
+ padding: 1px 6px;
143
+ border-radius: 6px;
144
+ background: var(--bg-soft);
145
+ border: 1px solid var(--border);
146
+ }
147
+ p,
148
+ li {
149
+ text-wrap: pretty;
150
+ }
42
151
 
43
- .nf-split {
152
+ /* ─── En-tête : la marque, puis les outils et le compte ─────────────────── */
153
+ .nf-topbar {
154
+ position: sticky;
155
+ top: 0;
156
+ z-index: 20;
44
157
  display: flex;
45
- min-height: 100vh;
46
- font-family: system-ui, sans-serif;
47
- background: var(--nf-bg);
48
- color: var(--nf-fg);
49
- }
50
- .nf-hero {
51
- flex: 1.05;
52
- position: relative;
53
- overflow: hidden;
54
- color: #fff;
158
+ align-items: center;
159
+ gap: 18px;
160
+ padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px
161
+ max(16px, env(safe-area-inset-left, 0px));
162
+ background: color-mix(in srgb, var(--bg) 82%, transparent);
163
+ backdrop-filter: blur(12px);
164
+ -webkit-backdrop-filter: blur(12px);
165
+ border-bottom: 1px solid var(--border);
166
+ }
167
+ .nf-brand {
55
168
  display: flex;
56
- flex-direction: column;
57
- justify-content: space-between;
58
- padding: 48px;
59
- box-sizing: border-box;
60
- background: linear-gradient(140deg, #022c4e 0%, #004d8c 45%, #0067ba 100%);
169
+ align-items: center;
170
+ gap: 10px;
171
+ text-decoration: none;
172
+ color: var(--fg);
173
+ font-weight: 700;
61
174
  }
62
- .nf-glow {
63
- position: absolute;
64
- inset: 0;
65
- pointer-events: none;
66
- background:
67
- radial-gradient(
68
- circle at 26% 16%,
69
- rgba(255, 255, 255, 0.16),
70
- transparent 46%
71
- ),
72
- radial-gradient(
73
- circle at 88% 92%,
74
- rgba(255, 255, 255, 0.08),
75
- transparent 42%
76
- );
77
- }
78
- /* `h2` et non `h1` : le titre de la PAGE est celui du contenu principal, et il
79
- ne peut y en avoir qu'un. Cette bannière annonce, elle ne titre pas — sa
80
- taille vient du style, jamais du niveau de titre. */
81
- .nf-hero h2 {
82
- font-size: clamp(30px, 3.4vw, 42px);
83
- font-weight: 800;
84
- line-height: 1.12;
85
- margin: 0;
175
+ .nf-brand img {
176
+ height: 30px;
177
+ width: auto;
86
178
  }
87
- .nf-hero .nf-sub {
88
- font-size: 18px;
89
- color: rgba(255, 255, 255, 0.82);
90
- margin: 10px 0 0;
179
+ .nf-brand .nf-tag {
180
+ font-size: 0.72rem;
181
+ font-weight: 600;
182
+ color: var(--muted);
183
+ border: 1px solid var(--border);
184
+ border-radius: 999px;
185
+ padding: 1px 9px;
91
186
  }
92
- .nf-feature {
187
+ .nf-topnav {
188
+ margin-left: auto;
93
189
  display: flex;
94
- gap: 14px;
95
- align-items: flex-start;
96
- margin-top: 22px;
190
+ align-items: center;
191
+ gap: 4px;
192
+ flex-wrap: wrap;
97
193
  }
98
- .nf-ficon {
99
- width: 42px;
100
- height: 42px;
101
- border-radius: 10px;
194
+ .nf-topnav a {
195
+ text-decoration: none;
196
+ /* La barre est translucide : `--muted` mêlé au texte tient 4,5:1 quel que
197
+ soit le dessous. */
198
+ color: color-mix(in srgb, var(--muted) 80%, var(--fg));
199
+ font-size: 0.9rem;
200
+ font-weight: 500;
201
+ padding: 7px 12px;
202
+ border-radius: 8px;
203
+ }
204
+ .nf-topnav a:hover {
205
+ color: var(--fg);
206
+ background: var(--bg-soft);
207
+ }
208
+ /* Les liens qui SORTENT de l'application : marqués d'une flèche. */
209
+ .nf-topnav a.nf-ext::after {
210
+ content: " ↗";
211
+ font-size: 0.8em;
212
+ opacity: 0.7;
213
+ }
214
+ .nf-topnav-sep {
102
215
  flex: none;
103
- display: grid;
104
- place-items: center;
105
- background: rgba(255, 255, 255, 0.14);
106
- border: 1px solid rgba(255, 255, 255, 0.18);
107
- }
108
- .nf-ficon svg {
109
- width: 22px;
110
- height: 22px;
111
- fill: #fff;
112
- stroke: #fff;
113
- }
114
- .nf-fdesc {
115
- font-size: 14px;
116
- color: rgba(255, 255, 255, 0.78);
117
- }
118
-
119
- .nf-main {
120
- flex: 1;
121
- padding: 48px 40px;
122
- box-sizing: border-box;
123
- overflow-y: auto;
124
- }
125
- .nf-card {
126
- background: var(--nf-card);
127
- border: 1px solid var(--nf-border);
128
- border-radius: 10px;
129
- padding: 20px;
130
- margin-bottom: 18px;
131
- }
132
- .nf-card h2 {
133
- margin: 0 0 10px;
134
- font-size: 17px;
216
+ width: 1px;
217
+ height: 18px;
218
+ margin-inline: 6px;
219
+ background: var(--border);
135
220
  }
136
- .nf-card pre {
137
- background: rgba(127, 127, 127, 0.08);
138
- padding: 10px;
139
- border-radius: 6px;
140
- overflow-x: auto;
221
+ .nf-topbar-tools {
222
+ margin-left: auto;
223
+ display: flex;
224
+ align-items: center;
225
+ gap: 10px;
141
226
  }
142
- .nf-card input {
143
- padding: 7px 10px;
144
- border-radius: 6px;
145
- border: 1px solid var(--nf-border);
146
- background: var(--nf-bg);
147
- color: var(--nf-fg);
148
- margin-right: 6px;
227
+ .nf-topnav + .nf-topbar-tools {
228
+ margin-left: 0;
149
229
  }
150
- .nf-card button {
151
- padding: 7px 14px;
152
- border-radius: 6px;
153
- border: none;
230
+ /* Les outils d'affichage en UN groupe : thème, barre de debug. */
231
+ .nf-tools {
232
+ display: inline-flex;
233
+ gap: 2px;
234
+ padding: 2px;
235
+ border: 1px solid var(--border);
236
+ border-radius: 9px;
237
+ background: var(--card);
238
+ }
239
+ .nf-tool {
240
+ display: inline-grid;
241
+ place-items: center;
242
+ width: 32px;
243
+ height: 32px;
244
+ border: 0;
245
+ border-radius: 7px;
246
+ background: transparent;
247
+ color: var(--muted);
154
248
  cursor: pointer;
155
- background: #0067ba;
156
- color: #fff;
157
- font-weight: 600;
249
+ transition:
250
+ background 0.2s ease,
251
+ color 0.2s ease;
252
+ }
253
+ .nf-tool:hover {
254
+ color: var(--fg);
255
+ background: var(--bg-soft);
256
+ }
257
+ /* Bouton ENFONCÉ (thème sombre actif, barre de debug cachée) : creusé dans
258
+ le groupe — ombre intérieure, fond de l'accent, icône à l'accent. L'état
259
+ se lit aussi par `aria-pressed`, jamais par la couleur seule. */
260
+ .nf-tool[aria-pressed="true"] {
261
+ color: var(--link);
262
+ background: color-mix(in srgb, var(--blue) 26%, var(--bg-soft));
263
+ box-shadow:
264
+ inset 0 2px 4px rgba(0, 0, 0, 0.18),
265
+ inset 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent);
266
+ }
267
+ .nf-tool[aria-pressed="true"] svg {
268
+ transform: translateY(1px);
269
+ }
270
+ /* Le geste lui-même : la touche s'enfonce sous le doigt. */
271
+ .nf-tool:active {
272
+ transform: scale(0.92);
273
+ box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
274
+ }
275
+ .nf-tool {
276
+ transition:
277
+ background 0.2s ease,
278
+ color 0.2s ease,
279
+ box-shadow 0.2s ease,
280
+ transform 0.12s ease;
281
+ }
282
+ .nf-tool svg {
283
+ width: 17px;
284
+ height: 17px;
285
+ }
286
+ @media (max-width: 720px) {
287
+ .nf-topbar {
288
+ flex-wrap: wrap;
289
+ }
290
+ .nf-topnav {
291
+ order: 3;
292
+ flex-basis: 100%;
293
+ margin-left: 0;
294
+ }
158
295
  }
159
- .nf-card button:hover {
160
- background: #0a79d6;
296
+ /* Téléphone : la marque et les outils tiennent sur UNE ligne. */
297
+ @media (max-width: 520px) {
298
+ .nf-brand .nf-tag {
299
+ display: none;
300
+ }
161
301
  }
162
- /* Un lien qui AGIT (aller se connecter) a l'allure du bouton : plus spécifique
163
- que la règle `a` plus bas, il garde son blanc sur bleu (5,75:1) dans les
164
- deux thèmes. */
165
- .nf-card a.nf-action {
166
- display: inline-block;
302
+ .nf-topbar-tools a.nf-login {
167
303
  padding: 7px 14px;
168
- border-radius: 6px;
169
- background: #0067ba;
170
- color: #fff;
304
+ border-radius: 8px;
305
+ font-size: 0.9rem;
171
306
  font-weight: 600;
172
307
  text-decoration: none;
308
+ color: #fff;
309
+ background: var(--blue);
173
310
  }
174
- .nf-card a.nf-action:hover {
175
- background: #0a79d6;
311
+ .nf-account {
312
+ display: flex;
313
+ align-items: center;
314
+ gap: 8px;
176
315
  }
177
- /* Pastille de session : l'état que tient la liaison du front. Le point dit
178
- ouvert ou non ; le texte le dit aussi, la couleur n'est jamais seule. */
179
316
  .nf-session {
180
317
  display: inline-flex;
181
318
  align-items: center;
182
319
  gap: 6px;
183
- margin-right: 8px;
184
- padding: 4px 12px;
185
- border-radius: 999px;
186
- border: 1px solid var(--nf-border);
187
- font-size: 14px;
320
+ font-size: 0.9rem;
321
+ font-weight: 600;
188
322
  }
189
323
  .nf-session::before {
190
324
  content: "";
191
325
  width: 8px;
192
326
  height: 8px;
193
327
  border-radius: 50%;
194
- background: var(--nf-dim);
195
- }
196
- .nf-session[data-open]::before {
197
328
  background: #2ea043;
198
329
  }
199
- .nf-dim {
200
- color: var(--nf-dim);
201
- font-size: 14px;
330
+ .nf-account-out {
331
+ min-height: 36px;
332
+ padding: 6px 12px;
333
+ font: inherit;
334
+ font-size: 0.85rem;
335
+ color: var(--fg);
336
+ background: none;
337
+ border: 1px solid var(--border);
338
+ border-radius: 8px;
339
+ cursor: pointer;
340
+ }
341
+ .nf-account-out:hover {
342
+ background: var(--bg-soft);
202
343
  }
203
344
 
204
- .nf-fwhead {
345
+ /* ─── Hero ──────────────────────────────────────────────────────────────── */
346
+ .nf-main {
347
+ max-width: 1080px;
348
+ margin: 0 auto;
349
+ padding: 0 max(16px, env(safe-area-inset-right, 0px)) 40px
350
+ max(16px, env(safe-area-inset-left, 0px));
351
+ }
352
+ .nf-hero {
353
+ position: relative;
354
+ isolation: isolate;
355
+ text-align: center;
356
+ padding-block: clamp(44px, 8vw, 84px) clamp(28px, 5vw, 48px);
357
+ }
358
+ /* Deux halos, le bleu et le vert du logo, qui dérivent derrière lui. */
359
+ .nf-hero::before,
360
+ .nf-hero::after {
361
+ content: "";
362
+ position: absolute;
363
+ z-index: -1;
364
+ border-radius: 50%;
365
+ filter: blur(60px);
366
+ opacity: 0.5;
367
+ pointer-events: none;
368
+ }
369
+ .nf-hero::before {
370
+ width: 420px;
371
+ height: 300px;
372
+ top: 4%;
373
+ left: calc(50% - 360px);
374
+ background: color-mix(in srgb, var(--blue) 26%, transparent);
375
+ }
376
+ .nf-hero::after {
377
+ width: 360px;
378
+ height: 280px;
379
+ top: 10%;
380
+ left: calc(50% - 20px);
381
+ background: color-mix(in srgb, var(--green) 18%, transparent);
382
+ }
383
+ .nf-hero-logo {
384
+ height: 80px;
385
+ width: auto;
386
+ filter: drop-shadow(
387
+ 0 10px 28px color-mix(in srgb, var(--blue) 35%, transparent)
388
+ );
389
+ }
390
+ .nf-hero h1 {
391
+ margin: 18px auto 10px;
392
+ max-width: 860px;
393
+ font-size: clamp(2rem, 5vw, 3.2rem);
394
+ line-height: 1.12;
395
+ letter-spacing: -0.028em;
396
+ text-wrap: balance;
397
+ background-image: linear-gradient(
398
+ 100deg,
399
+ var(--fg) 0 42%,
400
+ color-mix(in srgb, var(--cyan) 70%, var(--fg)) 50%,
401
+ var(--fg) 58% 100%
402
+ );
403
+ background-size: 260% 100%;
404
+ background-position: 0% 0;
405
+ -webkit-background-clip: text;
406
+ background-clip: text;
407
+ color: transparent;
408
+ }
409
+ .nf-hero .nf-sub {
410
+ opacity: 0.82;
411
+ font-size: clamp(1rem, 2vw, 1.18rem);
412
+ font-weight: 500;
413
+ margin: 0 auto 8px;
414
+ max-width: 700px;
415
+ }
416
+ .nf-hero .nf-sig {
417
+ color: var(--muted);
418
+ max-width: 640px;
419
+ margin: 0 auto;
420
+ text-wrap: balance;
421
+ }
422
+ .nf-badges {
205
423
  display: flex;
424
+ flex-wrap: wrap;
206
425
  align-items: center;
207
- gap: 16px;
208
- margin-bottom: 8px;
209
- }
210
- .nf-fwhead h1 {
211
- margin: 0;
426
+ gap: 8px;
427
+ justify-content: center;
428
+ margin-top: 20px;
212
429
  }
213
- /* Logo et badge du framework — l'accent vient des variables ci-dessus. */
214
- .nf-fwlogo {
215
- width: 52px;
216
- height: auto;
217
- flex: none;
218
- filter: drop-shadow(0 6px 14px var(--nf-accent-glow));
219
- animation: var(--nf-logo-anim);
220
- }
221
- /* Le texte prend l'ENCRE, pas la couleur de marque : celle-ci, posée sur son
222
- propre lavis, tombait à 2,78:1 — sous le seuil AA de 4,5:1. Même teinte,
223
- luminosité abaissée ; le repli garde la marque si l'encre n'est pas définie. */
224
- .nf-fwbadge {
225
- display: inline-block;
226
- margin-top: 4px;
227
- padding: 2px 10px;
430
+ .nf-badge {
431
+ font-size: 0.76rem;
432
+ font-weight: 600;
433
+ color: var(--muted);
434
+ border: 1px solid var(--border);
435
+ background: var(--card);
228
436
  border-radius: 999px;
229
- font-size: 12.5px;
437
+ padding: 4px 12px;
438
+ }
439
+ .nf-badge.nf-agentic {
440
+ color: color-mix(in srgb, var(--green) 50%, var(--fg));
441
+ border-color: color-mix(in srgb, var(--green) 45%, var(--border));
442
+ }
443
+ /* Le front de l'application : son logo dans sa couleur, le texte reste à
444
+ l'encre (la couleur de marque seule ne tient pas 4,5:1 sur ce fond). */
445
+ .nf-badge.nf-front {
446
+ display: inline-flex;
447
+ align-items: center;
448
+ gap: 6px;
449
+ color: var(--fg);
450
+ border-color: color-mix(in srgb, var(--nf-front) 55%, var(--border));
451
+ }
452
+ .nf-badge.nf-front svg {
453
+ width: 14px;
454
+ height: 14px;
455
+ /* Le cyan de React sur le fond clair s'effaçait : un cran plus sombre en
456
+ clair, la couleur pure en sombre. */
457
+ color: color-mix(in srgb, var(--nf-front) 60%, #000);
458
+ }
459
+ @media (prefers-color-scheme: dark) {
460
+ :root:not([data-theme="light"]) .nf-badge.nf-front svg {
461
+ color: var(--nf-front);
462
+ }
463
+ }
464
+ :root[data-theme="dark"] .nf-badge.nf-front svg {
465
+ color: var(--nf-front);
466
+ }
467
+ /* Commande d'installation : bordure en dégradé conique qui tourne. */
468
+ @property --spin {
469
+ syntax: "<angle>";
470
+ inherits: false;
471
+ initial-value: 0deg;
472
+ }
473
+ .nf-install {
474
+ position: relative;
475
+ display: inline-flex;
476
+ gap: 12px;
477
+ margin-top: 24px;
478
+ max-width: 100%;
479
+ overflow-x: auto;
480
+ font-family: ui-monospace, Menlo, monospace;
481
+ font-size: 0.92rem;
482
+ color: var(--code-fg);
483
+ background: var(--code-bg);
484
+ border-radius: 12px;
485
+ padding: 12px 20px;
486
+ box-shadow: var(--shadow);
487
+ white-space: nowrap;
488
+ }
489
+ .nf-install::before {
490
+ content: "";
491
+ position: absolute;
492
+ inset: -1px;
493
+ border-radius: 13px;
494
+ padding: 1px;
495
+ pointer-events: none;
496
+ background: conic-gradient(
497
+ from var(--spin),
498
+ transparent 0 55%,
499
+ var(--cyan),
500
+ var(--green),
501
+ transparent 85%
502
+ );
503
+ -webkit-mask:
504
+ linear-gradient(#000 0 0) content-box,
505
+ linear-gradient(#000 0 0);
506
+ -webkit-mask-composite: xor;
507
+ mask-composite: exclude;
508
+ }
509
+ .nf-install .nf-p {
510
+ color: var(--cyan);
511
+ user-select: none;
512
+ }
513
+ .nf-install b {
514
+ color: #8fd18a;
230
515
  font-weight: 600;
231
- color: var(--nf-accent-ink, var(--nf-accent));
232
- background: var(--nf-accent-wash);
233
- border: 1px solid var(--nf-accent-line);
234
516
  }
235
- .nf-hello {
236
- margin-left: auto;
237
- padding: 7px 16px;
238
- border-radius: 999px;
517
+ /* La démo non installée se nomme sous le haut de page : la commande d'une app
518
+ jetable qui la porte (développement seulement). */
519
+ .nf-learn {
520
+ margin: 26px auto 0;
521
+ max-width: 640px;
522
+ color: var(--muted);
523
+ font-size: 0.92rem;
524
+ }
525
+ .nf-cta {
526
+ display: flex;
527
+ gap: 12px;
528
+ justify-content: center;
529
+ flex-wrap: wrap;
530
+ margin-top: 24px;
531
+ }
532
+ .nf-btn {
533
+ display: inline-flex;
534
+ align-items: center;
535
+ text-decoration: none;
536
+ font-weight: 600;
537
+ font-size: 0.95rem;
538
+ border: 0;
539
+ border-radius: 10px;
540
+ padding: 11px 22px;
541
+ }
542
+ .nf-btn.nf-primary {
543
+ color: #fff;
544
+ background: var(--blue);
545
+ }
546
+
547
+ /* ─── Sections et cartes (celles de la démo) ────────────────────────────── */
548
+ .nf-section {
549
+ padding-block: clamp(30px, 5vw, 50px);
550
+ }
551
+ /* Bande pleine largeur sans débordement : l'ombre peint jusqu'aux bords, le
552
+ clip-path la retient à la hauteur de la section. */
553
+ .nf-band {
554
+ box-shadow: 0 0 0 100vmax var(--bg-soft);
555
+ clip-path: inset(0 -100vmax);
556
+ background: var(--bg-soft);
557
+ }
558
+ .nf-sec-head {
559
+ max-width: 720px;
560
+ margin: 0 0 24px;
561
+ }
562
+ .nf-kicker {
563
+ text-transform: uppercase;
564
+ letter-spacing: 0.16em;
565
+ font-size: 0.72rem;
239
566
  font-weight: 700;
240
- font-size: 15px;
241
- color: #2ea043;
567
+ margin: 0 0 8px;
568
+ color: color-mix(in srgb, var(--accent, var(--blue)) 50%, var(--fg));
569
+ }
570
+ .nf-sec-head h2 {
571
+ margin: 0 0 8px;
572
+ font-size: clamp(1.4rem, 2.8vw, 1.85rem);
573
+ letter-spacing: -0.02em;
574
+ text-wrap: balance;
575
+ }
576
+ .nf-sec-head p {
577
+ margin: 0;
578
+ color: var(--muted);
579
+ }
580
+ .nf-grid {
581
+ display: grid;
582
+ gap: 14px;
583
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
584
+ }
585
+ .nf-card {
586
+ --accent: var(--cyan);
587
+ position: relative;
588
+ isolation: isolate;
589
+ display: flex;
590
+ flex-direction: column;
591
+ gap: 8px;
592
+ text-decoration: none;
593
+ color: var(--fg);
594
+ background: var(--card);
595
+ border: 1px solid var(--border);
596
+ border-radius: 14px;
597
+ padding: 18px;
598
+ box-shadow: var(--shadow);
599
+ min-width: 0;
600
+ transition:
601
+ transform 0.5s var(--spring),
602
+ box-shadow 0.3s ease,
603
+ border-color 0.3s ease,
604
+ opacity 0.3s ease;
605
+ }
606
+ /* Lumière qui suit le pointeur (`--mx`/`--my`, posés par la page). */
607
+ .nf-card::before {
608
+ content: "";
609
+ position: absolute;
610
+ inset: 0;
611
+ z-index: -1;
612
+ border-radius: inherit;
613
+ opacity: 0;
614
+ transition: opacity 0.3s ease;
615
+ pointer-events: none;
616
+ background: radial-gradient(
617
+ 320px circle at var(--mx, 50%) var(--my, 50%),
618
+ color-mix(in srgb, var(--accent) 14%, transparent),
619
+ transparent 70%
620
+ );
621
+ }
622
+ .nf-card:hover::before {
623
+ opacity: 1;
624
+ }
625
+ .nf-card:hover {
626
+ border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
627
+ box-shadow: var(--shadow-hover);
628
+ }
629
+ .nf-grid:has(.nf-card:hover) .nf-card:not(:hover) {
630
+ opacity: 0.62;
631
+ }
632
+ .nf-card h3 {
633
+ margin: 0;
634
+ font-size: 1.05rem;
635
+ }
636
+ .nf-card p {
637
+ margin: 0;
638
+ color: var(--muted);
639
+ font-size: 0.88rem;
640
+ }
641
+ .nf-card .nf-go {
642
+ margin-top: auto;
643
+ padding-top: 6px;
644
+ font-size: 0.82rem;
645
+ font-weight: 600;
646
+ color: color-mix(in srgb, var(--accent) 55%, var(--fg));
647
+ transition: letter-spacing 0.3s ease;
648
+ }
649
+ a.nf-card:hover .nf-go {
650
+ letter-spacing: 0.02em;
651
+ }
652
+ .nf-creds {
653
+ display: flex;
654
+ flex-wrap: wrap;
655
+ align-items: center;
656
+ gap: 6px;
657
+ font-size: 0.95rem;
658
+ }
659
+ /* Un identifiant se recopie : jamais coupé en deux sur un téléphone. */
660
+ .nf-creds code {
242
661
  white-space: nowrap;
243
- background: rgba(46, 160, 67, 0.12);
244
- border: 1px solid rgba(46, 160, 67, 0.35);
245
662
  }
246
-
247
- /* Un cran plus foncé que le bleu de lien habituel : sur le gris très clair des
248
- cartes, celui-ci tombait à 4,21:1 — sous les 4,5:1 exigés pour du texte de
249
- 14 px. Mesuré, pas estimé. */
250
- a {
251
- color: #0a6ec2;
663
+ /* Sélecteur d’habillages de la page de connexion : un formulaire GET, qui
664
+ marche sans JavaScript, dans tous les fronts. */
665
+ .nf-skins {
666
+ display: flex;
667
+ flex-wrap: wrap;
668
+ gap: 8px;
669
+ margin-top: auto;
670
+ padding-top: 6px;
671
+ }
672
+ .nf-skins select,
673
+ .nf-skins button {
674
+ min-height: 36px;
675
+ font: inherit;
676
+ font-size: 0.88rem;
677
+ border: 1px solid var(--border);
678
+ border-radius: 8px;
679
+ }
680
+ .nf-skins select {
681
+ flex: 1;
682
+ min-width: 0;
683
+ padding: 6px 10px;
684
+ color: var(--fg);
685
+ background: var(--bg-soft);
252
686
  }
253
- /* 🔴 Et le MÊME lien en thème SOMBRE, où #0a6ec2 tombe à 3,48:1 sur le fond
254
- #12161c. La correction précédente n'avait regardé que le thème clair : c'est
255
- la même faute que pour l'encre de la pastille, au même endroit du fichier.
256
- Un bleu plus clair, mesuré : 4,80:1. */
257
- @media (prefers-color-scheme: dark) {
258
- a {
259
- color: #3688cd;
260
- }
687
+ .nf-skins button {
688
+ padding: 6px 14px;
689
+ font-weight: 600;
690
+ color: #fff;
691
+ background: var(--blue);
692
+ border-color: transparent;
693
+ cursor: pointer;
694
+ }
695
+ /* La carte de la garantie de production : en vert. */
696
+ .nf-card.nf-safe {
697
+ --accent: var(--green);
698
+ }
699
+ .nf-note {
700
+ margin: 18px 0 0;
701
+ text-align: center;
702
+ color: var(--muted);
703
+ font-size: 0.85rem;
261
704
  }
262
705
 
263
- @media (max-width: 920px) {
264
- .nf-split {
265
- flex-direction: column;
706
+ /* ─── Mouvement — seulement si l'utilisateur ne l'a pas refusé ──────────── */
707
+ @media (prefers-reduced-motion: no-preference) {
708
+ @keyframes nf-drift {
709
+ 50% {
710
+ transform: translate(40px, 18px) scale(1.08);
711
+ }
712
+ }
713
+ @keyframes nf-spin {
714
+ to {
715
+ --spin: 360deg;
716
+ }
717
+ }
718
+ @keyframes nf-logo-in {
719
+ from {
720
+ opacity: 0;
721
+ transform: translateY(18px) scale(0.82);
722
+ filter: blur(8px);
723
+ }
724
+ }
725
+ @keyframes nf-sheen {
726
+ from {
727
+ background-position: 100% 0;
728
+ }
729
+ to {
730
+ background-position: 0% 0;
731
+ }
266
732
  }
267
- .nf-hero {
268
- padding: 32px 24px;
733
+ @keyframes nf-title-in {
734
+ from {
735
+ opacity: 0;
736
+ transform: translateY(14px);
737
+ letter-spacing: -0.05em;
738
+ }
739
+ }
740
+ @keyframes nf-bar {
741
+ to {
742
+ box-shadow: 0 6px 24px rgba(14, 23, 38, 0.08);
743
+ background: color-mix(in srgb, var(--bg) 92%, transparent);
744
+ }
745
+ }
746
+ @keyframes nf-rise {
747
+ from {
748
+ opacity: 0.5;
749
+ transform: translateY(28px) scale(0.985);
750
+ }
751
+ }
752
+ .nf-hero::before {
753
+ animation: nf-drift 14s ease-in-out infinite;
754
+ }
755
+ .nf-hero::after {
756
+ animation: nf-drift 17s ease-in-out infinite reverse;
757
+ }
758
+ .nf-install::before {
759
+ animation: nf-spin 6s linear infinite;
760
+ }
761
+ .nf-hero-logo {
762
+ animation: nf-logo-in 1.1s var(--spring) backwards;
763
+ }
764
+ .nf-hero h1 {
765
+ animation:
766
+ nf-title-in 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) backwards,
767
+ nf-sheen 2.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
768
+ }
769
+ .nf-card:hover {
770
+ transform: translateY(-4px);
771
+ }
772
+ @supports (animation-timeline: scroll()) {
773
+ .nf-topbar {
774
+ animation: nf-bar linear both;
775
+ animation-timeline: scroll(root);
776
+ animation-range: 0 160px;
777
+ }
778
+ .nf-sec-head,
779
+ .nf-card {
780
+ animation: nf-rise linear both;
781
+ animation-timeline: view();
782
+ animation-range: entry 0% entry 55%;
783
+ }
784
+ }
785
+ }
786
+
787
+ @media (max-width: 520px) {
788
+ .nf-install {
789
+ white-space: normal;
790
+ text-align: left;
791
+ font-size: 0.78rem;
792
+ padding: 11px 14px;
269
793
  }
270
794
  }