@nodefony/security 10.0.0-beta.2 → 10.0.0-beta.4

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 (249) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/decorate.js +1 -2
  2. package/dist/index.js +48 -16
  3. package/dist/nodefony/command/{security-token.js → security-mcp-token.js} +62 -24
  4. package/dist/nodefony/command/security-oauth-doctor.js +68 -0
  5. package/dist/nodefony/command/security-secrets.js +52 -29
  6. package/dist/nodefony/command/security-user-add.js +9 -3
  7. package/dist/nodefony/command/security-user-delete.js +10 -7
  8. package/dist/nodefony/command/security-user-list.js +5 -3
  9. package/dist/nodefony/command/security-user-password.js +9 -14
  10. package/dist/nodefony/config/config.js +99 -8
  11. package/dist/nodefony/config/defineModuleConfig.js +1 -2
  12. package/dist/nodefony/contracts/IAccessVoter.js +1 -2
  13. package/dist/nodefony/contracts/index.js +1 -2
  14. package/dist/nodefony/errors/AccessDeniedError.js +1 -2
  15. package/dist/nodefony/errors/ApiKeyError.js +3 -2
  16. package/dist/nodefony/errors/AuthenticationError.js +1 -2
  17. package/dist/nodefony/errors/CsrfError.js +1 -2
  18. package/dist/nodefony/errors/InsecureTransportError.js +23 -0
  19. package/dist/nodefony/errors/InvalidTargetError.js +1 -2
  20. package/dist/nodefony/errors/SsrfError.js +1 -2
  21. package/dist/nodefony/errors/ThrottledError.js +1 -2
  22. package/dist/nodefony/errors/UnverifiableTokenError.js +1 -2
  23. package/dist/nodefony/errors/WebAuthnError.js +1 -2
  24. package/dist/nodefony/errors/index.js +2 -1
  25. package/dist/nodefony/keycloak/keycloakAdmin.js +254 -0
  26. package/dist/nodefony/keycloak/keycloakRealm.js +259 -0
  27. package/dist/nodefony/keycloak/keycloakRealmInput.js +123 -0
  28. package/dist/nodefony/keycloak/scaffold.js +231 -0
  29. package/dist/nodefony/keycloak/security-keycloak-realm.js +130 -0
  30. package/dist/nodefony/scaffold/contribute.js +19 -0
  31. package/dist/nodefony/service/accessTokenVerifier.js +101 -34
  32. package/dist/nodefony/service/apiKeys.js +45 -5
  33. package/dist/nodefony/service/auditService.js +4 -5
  34. package/dist/nodefony/service/authFlow.js +118 -16
  35. package/dist/nodefony/service/authorization.js +1 -2
  36. package/dist/nodefony/service/cors.js +1 -2
  37. package/dist/nodefony/service/csrf.js +1 -2
  38. package/dist/nodefony/service/firewall.js +116 -25
  39. package/dist/nodefony/service/keycloak.js +208 -0
  40. package/dist/nodefony/service/oauth2.js +403 -28
  41. package/dist/nodefony/service/securityHeaders.js +1 -2
  42. package/dist/nodefony/service/tokenService.js +94 -27
  43. package/dist/nodefony/service/totp.js +55 -11
  44. package/dist/nodefony/service/webAuthn.js +24 -7
  45. package/dist/nodefony/service/webhooks.js +4 -5
  46. package/dist/nodefony/src/RoleHierarchyWalker.js +1 -2
  47. package/dist/nodefony/src/SecuredArea.js +15 -5
  48. package/dist/nodefony/src/accountBinding.js +96 -0
  49. package/dist/nodefony/src/admin/SecurityAdminApi.js +71 -42
  50. package/dist/nodefony/src/admin/WebhookAdminApi.js +23 -7
  51. package/dist/nodefony/src/admin/adminAudit.js +1 -3
  52. package/dist/nodefony/src/admin/userRevocationCascade.js +148 -20
  53. package/dist/nodefony/src/apikey/apiKeyFormat.js +1 -2
  54. package/dist/nodefony/src/audit/MemoryAuditStore.js +1 -2
  55. package/dist/nodefony/src/audit/auditBridge.js +1 -2
  56. package/dist/nodefony/src/audit/auditFilters.js +1 -2
  57. package/dist/nodefony/src/audit/auditStoreRegistry.js +1 -2
  58. package/dist/nodefony/src/audit/readAuditContext.js +1 -2
  59. package/dist/nodefony/src/audit/recordAudit.js +1 -2
  60. package/dist/nodefony/src/authenticator/AnonymousAuthenticator.js +1 -2
  61. package/dist/nodefony/src/authenticator/ApiKeyAuthenticator.js +3 -2
  62. package/dist/nodefony/src/authenticator/ExternalJwtAuthenticator.js +14 -59
  63. package/dist/nodefony/src/authenticator/ExternalSubjectResolver.js +180 -0
  64. package/dist/nodefony/src/authenticator/FirewallRealtimeAuthenticator.js +80 -19
  65. package/dist/nodefony/src/authenticator/JwtAuthenticator.js +92 -16
  66. package/dist/nodefony/src/authenticator/SessionAuthenticator.js +9 -5
  67. package/dist/nodefony/src/authenticator/UserPasswordAuthenticator.js +14 -5
  68. package/dist/nodefony/src/authenticator/authenticatorRegistry.js +5 -12
  69. package/dist/nodefony/src/authenticator/bearer.js +1 -2
  70. package/dist/nodefony/src/authenticator/externalSubject.js +1 -2
  71. package/dist/nodefony/src/authenticator/peekIssuer.js +1 -2
  72. package/dist/nodefony/src/boot/publicRoutesNotice.js +26 -0
  73. package/dist/nodefony/src/crypto/secretCipher.js +1 -2
  74. package/dist/nodefony/src/csp.js +1 -2
  75. package/dist/nodefony/src/csrfToken.js +1 -2
  76. package/dist/nodefony/src/entryPoint.js +38 -0
  77. package/dist/nodefony/src/net/ssrfGuard.js +1 -2
  78. package/dist/nodefony/src/net/transportFailure.js +57 -0
  79. package/dist/nodefony/src/oauth/clientCredentials.js +39 -0
  80. package/dist/nodefony/src/oauth/httpJson.js +3 -3
  81. package/dist/nodefony/src/oauth/metadata.js +28 -12
  82. package/dist/nodefony/src/oauth/oauth2Client.js +61 -35
  83. package/dist/nodefony/src/oauth/oauthProviderRegistry.js +40 -8
  84. package/dist/nodefony/src/oauth/providerDiagnosis.js +282 -0
  85. package/dist/nodefony/src/oauth/providerRoles.js +78 -0
  86. package/dist/nodefony/src/oauth/providers/github.js +48 -12
  87. package/dist/nodefony/src/oauth/providers/oidc.js +90 -8
  88. package/dist/nodefony/src/openToSignup.js +46 -0
  89. package/dist/nodefony/src/realtime/UserRealtimeToken.js +17 -3
  90. package/dist/nodefony/src/realtime/frameAuthorizer.js +1 -2
  91. package/dist/nodefony/src/rolesWithin.js +57 -0
  92. package/dist/nodefony/src/sessionAuthentication.js +25 -0
  93. package/dist/nodefony/src/sessionIdentity.js +29 -3
  94. package/dist/nodefony/src/throttle/LoginThrottler.js +1 -2
  95. package/dist/nodefony/src/token/AnonymousToken.js +1 -2
  96. package/dist/nodefony/src/token/JwtKeystore.js +89 -48
  97. package/dist/nodefony/src/token/MemoryTokenStore.js +1 -2
  98. package/dist/nodefony/src/token/RemoteJwtVerifier.js +46 -16
  99. package/dist/nodefony/src/token/UserToken.js +1 -2
  100. package/dist/nodefony/src/token/jwtRuntime.js +1 -2
  101. package/dist/nodefony/src/token/scopeGrants.js +109 -0
  102. package/dist/nodefony/src/token/secretFile.js +60 -4
  103. package/dist/nodefony/src/token/tokenCriteria.js +1 -2
  104. package/dist/nodefony/src/token/tokenFilters.js +1 -2
  105. package/dist/nodefony/src/token/tokenSort.js +1 -2
  106. package/dist/nodefony/src/token/tokenStatus.js +1 -2
  107. package/dist/nodefony/src/token/tokenStoreRegistry.js +1 -2
  108. package/dist/nodefony/src/totp/MemoryTotpSecretStore.js +1 -2
  109. package/dist/nodefony/src/totp/totpCipher.js +1 -2
  110. package/dist/nodefony/src/totp/totpCrypto.js +1 -2
  111. package/dist/nodefony/src/totp/totpOperations.js +1 -2
  112. package/dist/nodefony/src/totp/totpSecretStoreRegistry.js +1 -2
  113. package/dist/nodefony/src/transport/CredentialTransportPolicy.js +50 -0
  114. package/dist/nodefony/src/voter/RoleVoter.js +1 -2
  115. package/dist/nodefony/src/voter/ScopeVoter.js +1 -2
  116. package/dist/nodefony/src/voter/voterRegistry.js +1 -2
  117. package/dist/nodefony/src/webauthn/MemoryWebAuthnCredentialStore.js +1 -2
  118. package/dist/nodefony/src/webauthn/webAuthnCredentialStoreRegistry.js +1 -2
  119. package/dist/nodefony/src/webhook/MemoryWebhookStore.js +1 -2
  120. package/dist/nodefony/src/webhook/WebhookDispatcher.js +1 -2
  121. package/dist/nodefony/src/webhook/webhookCipher.js +1 -2
  122. package/dist/nodefony/src/webhook/webhookDelivery.js +1 -2
  123. package/dist/nodefony/src/webhook/webhookFilters.js +1 -2
  124. package/dist/nodefony/src/webhook/webhookSignature.js +1 -2
  125. package/dist/nodefony/src/webhook/webhookSort.js +1 -2
  126. package/dist/nodefony/src/webhook/webhookStoreRegistry.js +1 -2
  127. package/dist/types/index.d.ts +26 -6
  128. package/dist/types/nodefony/command/{security-token.d.ts → security-mcp-token.d.ts} +16 -6
  129. package/dist/types/nodefony/command/security-oauth-doctor.d.ts +23 -0
  130. package/dist/types/nodefony/command/security-secrets.d.ts +2 -0
  131. package/dist/types/nodefony/command/security-user-delete.d.ts +4 -3
  132. package/dist/types/nodefony/command/security-user-password.d.ts +4 -4
  133. package/dist/types/nodefony/config/config.d.ts +64 -1
  134. package/dist/types/nodefony/contracts/IAuthenticator.d.ts +1 -1
  135. package/dist/types/nodefony/contracts/IFirewallDescription.d.ts +42 -1
  136. package/dist/types/nodefony/contracts/IOAuthProvider.d.ts +48 -0
  137. package/dist/types/nodefony/contracts/ISecuredArea.d.ts +22 -0
  138. package/dist/types/nodefony/contracts/ITotpSecret.d.ts +4 -1
  139. package/dist/types/nodefony/contracts/ITotpSecretStore.d.ts +7 -1
  140. package/dist/types/nodefony/contracts/IWebAuthnCredential.d.ts +4 -1
  141. package/dist/types/nodefony/contracts/IWebAuthnCredentialStore.d.ts +6 -0
  142. package/dist/types/nodefony/errors/ApiKeyError.d.ts +3 -1
  143. package/dist/types/nodefony/errors/InsecureTransportError.d.ts +20 -0
  144. package/dist/types/nodefony/errors/index.d.ts +1 -0
  145. package/dist/types/nodefony/keycloak/keycloakAdmin.d.ts +154 -0
  146. package/dist/types/nodefony/keycloak/keycloakRealm.d.ts +138 -0
  147. package/dist/types/nodefony/keycloak/keycloakRealmInput.d.ts +92 -0
  148. package/dist/types/nodefony/keycloak/scaffold.d.ts +98 -0
  149. package/dist/types/nodefony/keycloak/security-keycloak-realm.d.ts +43 -0
  150. package/dist/types/nodefony/scaffold/contribute.d.ts +15 -0
  151. package/dist/types/nodefony/service/accessTokenVerifier.d.ts +35 -14
  152. package/dist/types/nodefony/service/apiKeys.d.ts +13 -2
  153. package/dist/types/nodefony/service/authFlow.d.ts +35 -3
  154. package/dist/types/nodefony/service/firewall.d.ts +17 -3
  155. package/dist/types/nodefony/service/keycloak.d.ts +115 -0
  156. package/dist/types/nodefony/service/oauth2.d.ts +145 -9
  157. package/dist/types/nodefony/service/tokenService.d.ts +7 -1
  158. package/dist/types/nodefony/service/totp.d.ts +28 -4
  159. package/dist/types/nodefony/service/webAuthn.d.ts +23 -1
  160. package/dist/types/nodefony/src/SecuredArea.d.ts +4 -0
  161. package/dist/types/nodefony/src/accountBinding.d.ts +82 -0
  162. package/dist/types/nodefony/src/admin/userRevocationCascade.d.ts +72 -12
  163. package/dist/types/nodefony/src/authenticator/ExternalJwtAuthenticator.d.ts +2 -26
  164. package/dist/types/nodefony/src/authenticator/ExternalSubjectResolver.d.ts +99 -0
  165. package/dist/types/nodefony/src/authenticator/FirewallRealtimeAuthenticator.d.ts +17 -1
  166. package/dist/types/nodefony/src/authenticator/JwtAuthenticator.d.ts +37 -1
  167. package/dist/types/nodefony/src/authenticator/UserPasswordAuthenticator.d.ts +11 -3
  168. package/dist/types/nodefony/src/boot/publicRoutesNotice.d.ts +16 -0
  169. package/dist/types/nodefony/src/entryPoint.d.ts +37 -0
  170. package/dist/types/nodefony/src/net/transportFailure.d.ts +22 -0
  171. package/dist/types/nodefony/src/oauth/clientCredentials.d.ts +54 -0
  172. package/dist/types/nodefony/src/oauth/httpJson.d.ts +0 -8
  173. package/dist/types/nodefony/src/oauth/metadata.d.ts +24 -1
  174. package/dist/types/nodefony/src/oauth/oauth2Client.d.ts +50 -1
  175. package/dist/types/nodefony/src/oauth/oauthProviderRegistry.d.ts +46 -2
  176. package/dist/types/nodefony/src/oauth/providerDiagnosis.d.ts +117 -0
  177. package/dist/types/nodefony/src/oauth/providerRoles.d.ts +58 -0
  178. package/dist/types/nodefony/src/oauth/providers/oidc.d.ts +34 -1
  179. package/dist/types/nodefony/src/openToSignup.d.ts +36 -0
  180. package/dist/types/nodefony/src/realtime/UserRealtimeToken.d.ts +7 -1
  181. package/dist/types/nodefony/src/realtime/realtimeContracts.d.ts +6 -0
  182. package/dist/types/nodefony/src/rolesWithin.d.ts +27 -0
  183. package/dist/types/nodefony/src/sessionAuthentication.d.ts +14 -0
  184. package/dist/types/nodefony/src/sessionIdentity.d.ts +22 -0
  185. package/dist/types/nodefony/src/token/JwtKeystore.d.ts +47 -5
  186. package/dist/types/nodefony/src/token/RemoteJwtVerifier.d.ts +29 -2
  187. package/dist/types/nodefony/src/token/scopeGrants.d.ts +77 -0
  188. package/dist/types/nodefony/src/token/secretFile.d.ts +22 -0
  189. package/dist/types/nodefony/src/transport/CredentialTransportPolicy.d.ts +47 -0
  190. package/docs/api-keys.md +182 -175
  191. package/docs/audit.md +141 -141
  192. package/docs/authenticators.md +129 -96
  193. package/docs/authorization.md +116 -69
  194. package/docs/cors.md +64 -64
  195. package/docs/csrf.md +77 -72
  196. package/docs/external-jwt.md +83 -11
  197. package/docs/firewall.md +119 -83
  198. package/docs/headers.md +82 -82
  199. package/docs/index.md +16 -8
  200. package/docs/keycloak.md +835 -0
  201. package/docs/login-page.md +361 -0
  202. package/docs/oauth2.md +291 -166
  203. package/docs/obtenir-un-jeton.md +131 -34
  204. package/docs/tokens.md +197 -140
  205. package/docs/totp.md +177 -136
  206. package/docs/webauthn.md +157 -154
  207. package/docs/webhooks.md +128 -125
  208. package/keycloak/themes/nodefony/account/resources/css/nodefony.css +66 -0
  209. package/keycloak/themes/nodefony/account/resources/img/favicon.ico +0 -0
  210. package/keycloak/themes/nodefony/account/resources/img/logo.png +0 -0
  211. package/keycloak/themes/nodefony/account/theme.properties +14 -0
  212. package/keycloak/themes/nodefony/admin/resources/css/nodefony.css +66 -0
  213. package/keycloak/themes/nodefony/admin/resources/img/favicon.ico +0 -0
  214. package/keycloak/themes/nodefony/admin/resources/img/logo.png +0 -0
  215. package/keycloak/themes/nodefony/admin/theme.properties +12 -0
  216. package/keycloak/themes/nodefony/email/html/template.ftl +73 -0
  217. package/keycloak/themes/nodefony/email/messages/messages_en.properties +2 -0
  218. package/keycloak/themes/nodefony/email/messages/messages_fr.properties +3 -0
  219. package/keycloak/themes/nodefony/email/resources/img/logo.png +0 -0
  220. package/keycloak/themes/nodefony/email/theme.properties +8 -0
  221. package/keycloak/themes/nodefony/login/messages/messages_en.properties +22 -0
  222. package/keycloak/themes/nodefony/login/messages/messages_fr.properties +25 -0
  223. package/keycloak/themes/nodefony/login/resources/css/login.css +1141 -0
  224. package/keycloak/themes/nodefony/login/resources/css/nodefony.css +688 -0
  225. package/keycloak/themes/nodefony/login/resources/css/skins/blueprint.css +70 -0
  226. package/keycloak/themes/nodefony/login/resources/css/skins/console.css +57 -0
  227. package/keycloak/themes/nodefony/login/resources/css/skins/dots.css +67 -0
  228. package/keycloak/themes/nodefony/login/resources/css/skins/enterprise.css +84 -0
  229. package/keycloak/themes/nodefony/login/resources/css/skins/horizon.css +158 -0
  230. package/keycloak/themes/nodefony/login/resources/css/skins/ledger.css +224 -0
  231. package/keycloak/themes/nodefony/login/resources/css/skins/minimal.css +63 -0
  232. package/keycloak/themes/nodefony/login/resources/css/skins/photo-card.css +72 -0
  233. package/keycloak/themes/nodefony/login/resources/img/favicon.ico +0 -0
  234. package/keycloak/themes/nodefony/login/resources/img/logo.png +0 -0
  235. package/keycloak/themes/nodefony/login/template.ftl +423 -0
  236. package/keycloak/themes/nodefony/login/theme.properties +17 -0
  237. package/keycloak/themes/nodefony/welcome/resources/css/nodefony.css +32 -0
  238. package/keycloak/themes/nodefony/welcome/resources/img/logo.png +0 -0
  239. package/keycloak/themes/nodefony/welcome/theme.properties +11 -0
  240. package/keycloak/themes/nodefony-blueprint/login/theme.properties +12 -0
  241. package/keycloak/themes/nodefony-console/login/theme.properties +12 -0
  242. package/keycloak/themes/nodefony-dots/login/theme.properties +12 -0
  243. package/keycloak/themes/nodefony-enterprise/login/theme.properties +12 -0
  244. package/keycloak/themes/nodefony-horizon/login/theme.properties +12 -0
  245. package/keycloak/themes/nodefony-ledger/login/theme.properties +12 -0
  246. package/keycloak/themes/nodefony-minimal/login/theme.properties +12 -0
  247. package/keycloak/themes/nodefony-photo-card/login/theme.properties +12 -0
  248. package/package.json +19 -17
  249. package/dist/_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js +0 -6
@@ -0,0 +1,1141 @@
1
+ /* ═══ nodefony/login.css — feuille UNIQUE de la page de connexion ═══════════
2
+ Publiée par le paquet `nodefony` (`exports["./login.css"]`), servie par la
3
+ page `/login` du framework (ADR-0015).
4
+
5
+ Un balisage, des variables : la page ne change jamais de structure. Une
6
+ application l'habille en surchargeant les variables `--nf-login-*` dans sa
7
+ propre feuille, et choisit la mise en page sur
8
+ `<body data-layout="split|card|bare">` (`split` par défaut). Une mise à jour
9
+ du framework ne touche donc rien chez elle.
10
+
11
+ Thème : le système décide (`prefers-color-scheme`), `<html data-theme>`
12
+ force `light` ou `dark`. Le jeu clair est écrit DEUX fois — sous la requête
13
+ média et sous `[data-theme="light"]` — parce qu'une page de connexion ne
14
+ dépend pas de `light-dark()` ; un test exige que les deux copies restent
15
+ identiques.
16
+
17
+ Couleurs de MARQUE : cette feuille en est la source. Les copies que des
18
+ frontières imposent (console Studio, thème Keycloak, gabarits d'application,
19
+ barre de debug) sont confrontées à elle par
20
+ `src/tests/loginStylesheet.test.ts`.
21
+
22
+ Couleurs pleines : aucun dégradé décoratif ni halo. Seuls un voile
23
+ semi-transparent et une découpe sont admis. */
24
+
25
+ :root {
26
+ /* Marque — le bleu, le vert et le cyan du logo (`assets/nodefony-logo.svg`). */
27
+ --nf-login-brand: #0067ba;
28
+ --nf-login-brand-hover: #00579c;
29
+ --nf-login-brand-green: #448438;
30
+ --nf-login-brand-cyan: #00a0f2;
31
+ --nf-login-on-brand: #ffffff;
32
+ --nf-login-accent: #3aa0ff;
33
+ --nf-login-ok: #36b37e;
34
+ --nf-login-warn: #ffab00;
35
+ --nf-login-crit: #ff6b4a;
36
+
37
+ /* Surfaces — sombre par défaut (celui de la barre de debug) */
38
+ --nf-login-bg: #14161a;
39
+ --nf-login-surface: #1c1f26;
40
+ --nf-login-raised: #22262e;
41
+ --nf-login-line: #2a2e36;
42
+ --nf-login-line-strong: #3a3f49;
43
+ --nf-login-heading: #f1f3f5;
44
+ --nf-login-text: #cfd3d8;
45
+ --nf-login-muted: #8a9099;
46
+ --nf-login-field: #171a1f;
47
+ --nf-login-crit-bg: rgba(255, 107, 74, 0.08);
48
+ --nf-login-ok-bg: rgba(54, 179, 126, 0.1);
49
+ --nf-login-home-green: #7cc46c;
50
+
51
+ /* Fond d'écran : image, motif, ou rien. Le voile garantit le contraste. */
52
+ --nf-login-backdrop: none;
53
+ --nf-login-backdrop-size: auto;
54
+ --nf-login-backdrop-position: center;
55
+ --nf-login-veil: transparent;
56
+
57
+ /* Panneau de marque (mise en page « split ») : un fond, une image facultative
58
+ (`url(...)` posée par l'application), un voile PLEIN par-dessus. */
59
+ --nf-login-hero-bg: #0f1114;
60
+ --nf-login-hero-image: none;
61
+ --nf-login-hero-veil: rgba(10, 14, 22, 0.6);
62
+ --nf-login-hero-fg: #f1f3f5;
63
+ --nf-login-hero-muted: #8a9099;
64
+ /* Les trois arcs du logo (bleu, vert, cyan) posés sur la jonction courbe. */
65
+ --nf-login-arcs: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%230067ba%22%20d%3D%22M100.00%200.00%20L99.52%201.11%20L99.04%202.22%20L98.58%203.33%20L98.13%204.44%20L97.69%205.56%20L97.26%206.67%20L96.84%207.78%20L96.44%208.89%20L96.04%2010.00%20L95.65%2011.11%20L95.28%2012.22%20L94.92%2013.33%20L94.56%2014.44%20L94.22%2015.56%20L93.89%2016.67%20L93.57%2017.78%20L93.26%2018.89%20L92.96%2020.00%20L92.67%2021.11%20L92.40%2022.22%20L92.13%2023.33%20L91.87%2024.44%20L91.63%2025.56%20L91.40%2026.67%20L91.17%2027.78%20L90.96%2028.89%20L90.76%2030.00%20L90.57%2031.11%20L90.39%2032.22%20L90.22%2033.33%20L90.06%2034.44%20L89.92%2035.56%20L89.78%2036.67%20L89.66%2037.78%20L89.54%2038.89%20L89.44%2040.00%20L89.35%2041.11%20L89.27%2042.22%20L89.20%2043.33%20L89.14%2044.44%20L89.09%2045.56%20L89.05%2046.67%20L89.02%2047.78%20L89.01%2048.89%20L89.00%2050.00%20L89.01%2051.11%20L89.02%2052.22%20L89.05%2053.33%20L89.09%2054.44%20L89.14%2055.56%20L89.20%2056.67%20L89.27%2057.78%20L89.35%2058.89%20L89.44%2060.00%20L89.54%2061.11%20L89.66%2062.22%20L89.78%2063.33%20L89.92%2064.44%20L90.06%2065.56%20L90.22%2066.67%20L90.39%2067.78%20L90.57%2068.89%20L90.76%2070.00%20L90.96%2071.11%20L91.17%2072.22%20L91.40%2073.33%20L91.63%2074.44%20L91.87%2075.56%20L92.13%2076.67%20L92.40%2077.78%20L92.67%2078.89%20L92.96%2080.00%20L93.26%2081.11%20L93.57%2082.22%20L93.89%2083.33%20L94.22%2084.44%20L94.56%2085.56%20L94.92%2086.67%20L95.28%2087.78%20L95.65%2088.89%20L96.04%2090.00%20L96.44%2091.11%20L96.84%2092.22%20L97.26%2093.33%20L97.69%2094.44%20L98.13%2095.56%20L98.58%2096.67%20L99.04%2097.78%20L99.52%2098.89%20L100.00%20100.00%20L100.00%20100.00%20L99.42%2098.89%20L98.87%2097.78%20L98.33%2096.67%20L97.81%2095.56%20L97.31%2094.44%20L96.81%2093.33%20L96.34%2092.22%20L95.87%2091.11%20L95.41%2090.00%20L94.97%2088.89%20L94.54%2087.78%20L94.12%2086.67%20L93.72%2085.56%20L93.33%2084.44%20L92.95%2083.33%20L92.58%2082.22%20L92.22%2081.11%20L91.88%2080.00%20L91.55%2078.89%20L91.23%2077.78%20L90.92%2076.67%20L90.63%2075.56%20L90.34%2074.44%20L90.07%2073.33%20L89.82%2072.22%20L89.57%2071.11%20L89.34%2070.00%20L89.12%2068.89%20L88.91%2067.78%20L88.72%2066.67%20L88.54%2065.56%20L88.37%2064.44%20L88.21%2063.33%20L88.06%2062.22%20L87.93%2061.11%20L87.81%2060.00%20L87.70%2058.89%20L87.61%2057.78%20L87.53%2056.67%20L87.46%2055.56%20L87.40%2054.44%20L87.36%2053.33%20L87.33%2052.22%20L87.31%2051.11%20L87.30%2050.00%20L87.31%2048.89%20L87.33%2047.78%20L87.36%2046.67%20L87.40%2045.56%20L87.46%2044.44%20L87.53%2043.33%20L87.61%2042.22%20L87.70%2041.11%20L87.81%2040.00%20L87.93%2038.89%20L88.06%2037.78%20L88.21%2036.67%20L88.37%2035.56%20L88.54%2034.44%20L88.72%2033.33%20L88.91%2032.22%20L89.12%2031.11%20L89.34%2030.00%20L89.57%2028.89%20L89.82%2027.78%20L90.07%2026.67%20L90.34%2025.56%20L90.63%2024.44%20L90.92%2023.33%20L91.23%2022.22%20L91.55%2021.11%20L91.88%2020.00%20L92.22%2018.89%20L92.58%2017.78%20L92.95%2016.67%20L93.33%2015.56%20L93.72%2014.44%20L94.12%2013.33%20L94.54%2012.22%20L94.97%2011.11%20L95.41%2010.00%20L95.87%208.89%20L96.34%207.78%20L96.81%206.67%20L97.31%205.56%20L97.81%204.44%20L98.33%203.33%20L98.87%202.22%20L99.42%201.11%20L100.00%200.00Z%22/%3E%3Cpath%20fill%3D%22%23448438%22%20d%3D%22M93.79%2012.22%20L93.37%2013.33%20L92.97%2014.44%20L92.58%2015.56%20L92.20%2016.67%20L91.83%2017.78%20L91.47%2018.89%20L91.13%2020.00%20L90.80%2021.11%20L90.48%2022.22%20L90.17%2023.33%20L89.88%2024.44%20L89.59%2025.56%20L89.32%2026.67%20L89.07%2027.78%20L88.82%2028.89%20L88.59%2030.00%20L88.37%2031.11%20L88.16%2032.22%20L87.97%2033.33%20L87.79%2034.44%20L87.62%2035.56%20L87.46%2036.67%20L87.31%2037.78%20L87.18%2038.89%20L87.06%2040.00%20L86.95%2041.11%20L86.86%2042.22%20L86.78%2043.33%20L86.71%2044.44%20L86.65%2045.56%20L86.61%2046.67%20L86.58%2047.78%20L86.56%2048.89%20L86.55%2050.00%20L86.56%2051.11%20L86.58%2052.22%20L86.61%2053.33%20L86.65%2054.44%20L86.71%2055.56%20L86.78%2056.67%20L86.86%2057.78%20L86.95%2058.89%20L87.06%2060.00%20L87.18%2061.11%20L87.31%2062.22%20L87.46%2063.33%20L87.62%2064.44%20L87.79%2065.56%20L87.97%2066.67%20L88.16%2067.78%20L88.37%2068.89%20L88.59%2070.00%20L88.82%2071.11%20L89.07%2072.22%20L89.32%2073.33%20L89.59%2074.44%20L89.88%2075.56%20L90.17%2076.67%20L90.48%2077.78%20L90.80%2078.89%20L91.13%2080.00%20L91.47%2081.11%20L91.83%2082.22%20L92.20%2083.33%20L92.58%2084.44%20L92.97%2085.56%20L93.37%2086.67%20L93.79%2087.78%20L93.77%2087.78%20L93.26%2086.67%20L92.78%2085.56%20L92.31%2084.44%20L91.86%2083.33%20L91.43%2082.22%20L91.01%2081.11%20L90.61%2080.00%20L90.22%2078.89%20L89.84%2077.78%20L89.48%2076.67%20L89.14%2075.56%20L88.81%2074.44%20L88.49%2073.33%20L88.18%2072.22%20L87.90%2071.11%20L87.62%2070.00%20L87.36%2068.89%20L87.12%2067.78%20L86.88%2066.67%20L86.67%2065.56%20L86.47%2064.44%20L86.28%2063.33%20L86.11%2062.22%20L85.95%2061.11%20L85.81%2060.00%20L85.68%2058.89%20L85.57%2057.78%20L85.47%2056.67%20L85.39%2055.56%20L85.32%2054.44%20L85.27%2053.33%20L85.23%2052.22%20L85.21%2051.11%20L85.20%2050.00%20L85.21%2048.89%20L85.23%2047.78%20L85.27%2046.67%20L85.32%2045.56%20L85.39%2044.44%20L85.47%2043.33%20L85.57%2042.22%20L85.68%2041.11%20L85.81%2040.00%20L85.95%2038.89%20L86.11%2037.78%20L86.28%2036.67%20L86.47%2035.56%20L86.67%2034.44%20L86.88%2033.33%20L87.12%2032.22%20L87.36%2031.11%20L87.62%2030.00%20L87.90%2028.89%20L88.18%2027.78%20L88.49%2026.67%20L88.81%2025.56%20L89.14%2024.44%20L89.48%2023.33%20L89.84%2022.22%20L90.22%2021.11%20L90.61%2020.00%20L91.01%2018.89%20L91.43%2017.78%20L91.86%2016.67%20L92.31%2015.56%20L92.78%2014.44%20L93.26%2013.33%20L93.77%2012.22Z%22/%3E%3Cpath%20fill%3D%22%2300a0f2%22%20d%3D%22M87.15%2028.89%20L86.87%2030.00%20L86.61%2031.11%20L86.37%2032.22%20L86.13%2033.33%20L85.92%2034.44%20L85.72%2035.56%20L85.53%2036.67%20L85.36%2037.78%20L85.20%2038.89%20L85.06%2040.00%20L84.93%2041.11%20L84.82%2042.22%20L84.72%2043.33%20L84.64%2044.44%20L84.57%2045.56%20L84.52%2046.67%20L84.48%2047.78%20L84.46%2048.89%20L84.45%2050.00%20L84.46%2051.11%20L84.48%2052.22%20L84.52%2053.33%20L84.57%2054.44%20L84.64%2055.56%20L84.72%2056.67%20L84.82%2057.78%20L84.93%2058.89%20L85.06%2060.00%20L85.20%2061.11%20L85.36%2062.22%20L85.53%2063.33%20L85.72%2064.44%20L85.92%2065.56%20L86.13%2066.67%20L86.37%2067.78%20L86.61%2068.89%20L86.87%2070.00%20L87.15%2071.11%20L87.04%2071.11%20L86.67%2070.00%20L86.32%2068.89%20L85.99%2067.78%20L85.68%2066.67%20L85.39%2065.56%20L85.12%2064.44%20L84.87%2063.33%20L84.64%2062.22%20L84.42%2061.11%20L84.23%2060.00%20L84.06%2058.89%20L83.90%2057.78%20L83.77%2056.67%20L83.66%2055.56%20L83.57%2054.44%20L83.49%2053.33%20L83.44%2052.22%20L83.41%2051.11%20L83.40%2050.00%20L83.41%2048.89%20L83.44%2047.78%20L83.49%2046.67%20L83.57%2045.56%20L83.66%2044.44%20L83.77%2043.33%20L83.90%2042.22%20L84.06%2041.11%20L84.23%2040.00%20L84.42%2038.89%20L84.64%2037.78%20L84.87%2036.67%20L85.12%2035.56%20L85.39%2034.44%20L85.68%2033.33%20L85.99%2032.22%20L86.32%2031.11%20L86.67%2030.00%20L87.04%2028.89Z%22/%3E%3C/svg%3E");
66
+
67
+ /* Forme */
68
+ --nf-login-radius: 8px;
69
+ --nf-login-card-radius: 12px;
70
+ /* Largeur de la carte : une part de l'écran (`ratio`), bornée entre un
71
+ minimum et un MAXIMUM (`width`) — elle grandit avec l'écran sans jamais
72
+ s'étirer, et le téléphone garde toute sa largeur (`100%`). Le calcul
73
+ s'écrit sur `.nf-card`, jamais dans une variable de `:root` : celle-ci
74
+ serait figée à la racine, et une surcharge posée plus bas (le thème
75
+ Keycloak, une application) n'y entrerait plus. Au-delà de 1 800 px, le
76
+ `zoom` des paliers « grand écran » s'y ajoute. */
77
+ --nf-login-card-min: 380px;
78
+ --nf-login-card-ratio: 34vw;
79
+ --nf-login-card-width: 520px;
80
+ --nf-login-card-shadow: none;
81
+ --nf-login-card-blur: 0px;
82
+ --nf-login-font:
83
+ Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
84
+ "Segoe UI", Roboto, sans-serif;
85
+ --nf-login-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
86
+ --nf-login-label-font: 600 13px/1.3 var(--nf-login-font);
87
+ --nf-login-title-size: 22px;
88
+ color-scheme: dark;
89
+ }
90
+
91
+ /* Jeu CLAIR — copie 1/2 : le système le demande et l'utilisateur ne force pas le sombre. */
92
+ @media (prefers-color-scheme: light) {
93
+ :root:not([data-theme="dark"]) {
94
+ --nf-login-accent: #0067ba;
95
+ --nf-login-ok: #1f8a5b;
96
+ --nf-login-warn: #8a5a00;
97
+ --nf-login-crit: #c4321a;
98
+ --nf-login-bg: #ffffff;
99
+ --nf-login-surface: #ffffff;
100
+ --nf-login-raised: #f0f2f5;
101
+ --nf-login-line: #e3e6ea;
102
+ --nf-login-line-strong: #cdd2d8;
103
+ --nf-login-heading: #111317;
104
+ --nf-login-text: #343a40;
105
+ --nf-login-muted: #5d646d;
106
+ --nf-login-field: #ffffff;
107
+ --nf-login-crit-bg: #fff3f0;
108
+ --nf-login-ok-bg: #edf8f2;
109
+ --nf-login-home-green: #2f6a27;
110
+ --nf-login-hero-bg: #f5f6f8;
111
+ --nf-login-hero-veil: rgba(246, 248, 251, 0.65);
112
+ --nf-login-hero-fg: #111317;
113
+ --nf-login-hero-muted: #5d646d;
114
+ color-scheme: light;
115
+ }
116
+ }
117
+ /* Jeu CLAIR — copie 2/2 : l'utilisateur le force. */
118
+ :root[data-theme="light"] {
119
+ --nf-login-accent: #0067ba;
120
+ --nf-login-ok: #1f8a5b;
121
+ --nf-login-warn: #8a5a00;
122
+ --nf-login-crit: #c4321a;
123
+ --nf-login-bg: #ffffff;
124
+ --nf-login-surface: #ffffff;
125
+ --nf-login-raised: #f0f2f5;
126
+ --nf-login-line: #e3e6ea;
127
+ --nf-login-line-strong: #cdd2d8;
128
+ --nf-login-heading: #111317;
129
+ --nf-login-text: #343a40;
130
+ --nf-login-muted: #5d646d;
131
+ --nf-login-field: #ffffff;
132
+ --nf-login-crit-bg: #fff3f0;
133
+ --nf-login-ok-bg: #edf8f2;
134
+ --nf-login-home-green: #2f6a27;
135
+ --nf-login-hero-bg: #f5f6f8;
136
+ --nf-login-hero-veil: rgba(246, 248, 251, 0.65);
137
+ --nf-login-hero-fg: #111317;
138
+ --nf-login-hero-muted: #5d646d;
139
+ color-scheme: light;
140
+ }
141
+
142
+ *,
143
+ *::before,
144
+ *::after {
145
+ box-sizing: border-box;
146
+ }
147
+ html,
148
+ body {
149
+ min-height: 100%;
150
+ }
151
+ body {
152
+ display: flex;
153
+ flex-direction: column;
154
+ min-height: 100vh;
155
+ margin: 0;
156
+ color: var(--nf-login-text);
157
+ font: 15px/1.5 var(--nf-login-font);
158
+ background-color: var(--nf-login-bg);
159
+ background-image: var(--nf-login-backdrop);
160
+ background-size: var(--nf-login-backdrop-size);
161
+ background-position: var(--nf-login-backdrop-position);
162
+ background-attachment: fixed;
163
+ -webkit-font-smoothing: antialiased;
164
+ }
165
+ /* Voile PLEIN au-dessus du fond : c'est lui, pas l'image, qui tient le contraste. */
166
+ body::before {
167
+ content: "";
168
+ position: fixed;
169
+ inset: 0;
170
+ z-index: -1;
171
+ background: var(--nf-login-veil);
172
+ pointer-events: none;
173
+ }
174
+ [hidden] {
175
+ display: none !important;
176
+ }
177
+ button,
178
+ input {
179
+ font: inherit;
180
+ color: inherit;
181
+ }
182
+ :focus-visible {
183
+ outline: 2px solid var(--nf-login-accent);
184
+ outline-offset: 2px;
185
+ }
186
+ .nf-icon {
187
+ width: 16px;
188
+ height: 16px;
189
+ flex: none;
190
+ fill: none;
191
+ stroke: currentColor;
192
+ stroke-width: 1.75;
193
+ stroke-linecap: round;
194
+ stroke-linejoin: round;
195
+ }
196
+ .nf-mark {
197
+ width: 16px;
198
+ height: 16px;
199
+ flex: none;
200
+ fill: currentColor;
201
+ }
202
+ .nf-logo {
203
+ display: block;
204
+ width: auto;
205
+ height: 20px;
206
+ }
207
+
208
+ /* ── Bandeau d'état ─────────────────────────────────────────────────────── */
209
+ .nf-strip {
210
+ display: flex;
211
+ align-items: center;
212
+ gap: 14px;
213
+ min-height: 52px;
214
+ padding: 0 20px;
215
+ border-bottom: 1px solid var(--nf-login-line);
216
+ background: var(--nf-login-surface);
217
+ }
218
+ .nf-strip-brand {
219
+ display: flex;
220
+ align-items: center;
221
+ gap: 9px;
222
+ font-weight: 650;
223
+ color: var(--nf-login-heading);
224
+ }
225
+ .nf-sep {
226
+ width: 1px;
227
+ height: 18px;
228
+ background: var(--nf-login-line);
229
+ }
230
+ .nf-spacer {
231
+ flex: 1;
232
+ }
233
+ .nf-chip {
234
+ display: inline-flex;
235
+ align-items: center;
236
+ gap: 6px;
237
+ height: 24px;
238
+ padding: 0 9px;
239
+ border: 1px solid var(--nf-login-line);
240
+ border-radius: 12px;
241
+ background: var(--nf-login-raised);
242
+ font: 700 10px/1 var(--nf-login-mono);
243
+ letter-spacing: 0.6px;
244
+ text-transform: uppercase;
245
+ color: var(--nf-login-muted);
246
+ white-space: nowrap;
247
+ }
248
+ .nf-chip.env {
249
+ color: var(--nf-login-warn);
250
+ }
251
+ .nf-dot {
252
+ width: 7px;
253
+ height: 7px;
254
+ border-radius: 50%;
255
+ background: var(--nf-login-ok);
256
+ }
257
+
258
+ /* ── Scène ──────────────────────────────────────────────────────────────── */
259
+ .nf-layout {
260
+ display: flex;
261
+ flex: 1;
262
+ }
263
+ .nf-hero {
264
+ display: none;
265
+ }
266
+ .nf-stage {
267
+ display: flex;
268
+ flex: 1;
269
+ flex-direction: column;
270
+ align-items: center;
271
+ justify-content: safe center;
272
+ gap: 18px;
273
+ padding: 40px 16px;
274
+ }
275
+ .nf-card {
276
+ width: min(
277
+ clamp(
278
+ var(--nf-login-card-min),
279
+ var(--nf-login-card-ratio),
280
+ var(--nf-login-card-width)
281
+ ),
282
+ 100%
283
+ );
284
+ border: 1px solid var(--nf-login-line);
285
+ border-radius: var(--nf-login-card-radius);
286
+ background: var(--nf-login-surface);
287
+ box-shadow: var(--nf-login-card-shadow);
288
+ backdrop-filter: blur(var(--nf-login-card-blur));
289
+ }
290
+ .nf-head {
291
+ padding: 26px 28px 0;
292
+ }
293
+ .nf-head .nf-brand {
294
+ display: none;
295
+ align-items: center;
296
+ gap: 10px;
297
+ margin-bottom: 18px;
298
+ font-weight: 700;
299
+ color: var(--nf-login-heading);
300
+ }
301
+ .nf-head .nf-brand .nf-logo {
302
+ height: 26px;
303
+ }
304
+ h1 {
305
+ margin: 0;
306
+ font-size: var(--nf-login-title-size);
307
+ font-weight: 650;
308
+ letter-spacing: -0.015em;
309
+ line-height: 1.2;
310
+ color: var(--nf-login-heading);
311
+ }
312
+ .nf-sub {
313
+ margin: 4px 0 0;
314
+ color: var(--nf-login-muted);
315
+ }
316
+
317
+ /* Étapes — les onglets de la barre de debug, en lecture seule. Ils vivent
318
+ DANS le corps, juste au-dessus du formulaire qu'ils décrivent : posés sous
319
+ le titre, ils restaient en haut quand les fournisseurs passent d'abord, et
320
+ l'on ne voyait plus à quoi ils se rapportaient. */
321
+ .nf-steps {
322
+ display: flex;
323
+ gap: 18px;
324
+ margin: 0 0 18px;
325
+ padding: 0;
326
+ border-bottom: 1px solid var(--nf-login-line);
327
+ list-style: none;
328
+ }
329
+ .nf-steps li {
330
+ padding: 0 0 9px;
331
+ margin-bottom: -1px;
332
+ border-bottom: 2px solid transparent;
333
+ font: 700 10px/1 var(--nf-login-mono);
334
+ letter-spacing: 0.6px;
335
+ text-transform: uppercase;
336
+ color: var(--nf-login-muted);
337
+ }
338
+ .nf-steps li[aria-current="step"] {
339
+ border-bottom-color: var(--nf-login-accent);
340
+ color: var(--nf-login-heading);
341
+ }
342
+ .nf-steps li.done {
343
+ color: var(--nf-login-text);
344
+ }
345
+ .nf-steps li.done::before {
346
+ content: "✓ ";
347
+ color: var(--nf-login-ok);
348
+ }
349
+
350
+ .nf-body {
351
+ padding: 22px 28px 14px;
352
+ }
353
+ form {
354
+ display: grid;
355
+ gap: 16px;
356
+ }
357
+ .nf-field {
358
+ display: grid;
359
+ gap: 6px;
360
+ }
361
+ .nf-label-row {
362
+ display: flex;
363
+ align-items: baseline;
364
+ justify-content: space-between;
365
+ gap: 8px;
366
+ }
367
+ label {
368
+ font: var(--nf-login-label-font);
369
+ color: var(--nf-login-heading);
370
+ }
371
+ .nf-input {
372
+ display: flex;
373
+ align-items: center;
374
+ min-height: 44px;
375
+ border: 1px solid var(--nf-login-line-strong);
376
+ border-radius: var(--nf-login-radius);
377
+ background: var(--nf-login-field);
378
+ }
379
+ .nf-input:focus-within {
380
+ border-color: var(--nf-login-accent);
381
+ box-shadow: 0 0 0 1px var(--nf-login-accent);
382
+ }
383
+ .nf-input > .nf-icon {
384
+ margin-left: 12px;
385
+ color: var(--nf-login-muted);
386
+ }
387
+ .nf-input input {
388
+ flex: 1;
389
+ min-width: 0;
390
+ height: 42px;
391
+ padding: 0 12px 0 10px;
392
+ border: 0;
393
+ background: transparent;
394
+ color: var(--nf-login-heading);
395
+ font-size: 16px; /* 16 px : iOS ne zoome pas au focus */
396
+ outline: none;
397
+ }
398
+ .nf-reveal {
399
+ display: grid;
400
+ place-items: center;
401
+ width: 40px;
402
+ height: 36px;
403
+ margin-right: 3px;
404
+ border: 0;
405
+ border-radius: 6px;
406
+ background: none;
407
+ color: var(--nf-login-muted);
408
+ cursor: pointer;
409
+ }
410
+ .nf-reveal:hover {
411
+ color: var(--nf-login-heading);
412
+ background: var(--nf-login-raised);
413
+ }
414
+
415
+ .nf-btn {
416
+ display: inline-flex;
417
+ align-items: center;
418
+ justify-content: center;
419
+ gap: 9px;
420
+ min-height: 44px;
421
+ padding: 0 14px;
422
+ border: 1px solid var(--nf-login-line-strong);
423
+ border-radius: var(--nf-login-radius);
424
+ background: var(--nf-login-surface);
425
+ color: var(--nf-login-heading);
426
+ font-weight: 600;
427
+ font-size: 14px;
428
+ text-decoration: none;
429
+ cursor: pointer;
430
+ }
431
+ .nf-btn:hover {
432
+ background: var(--nf-login-raised);
433
+ }
434
+ /* Fournisseur d'organisation : le mot de l'utilisateur, puis le logiciel en
435
+ petit (`SSO · Keycloak`) pour qui le connaît. */
436
+ .nf-btn .nf-label {
437
+ display: flex;
438
+ flex-direction: column;
439
+ align-items: flex-start;
440
+ gap: 2px;
441
+ padding: 5px 0;
442
+ line-height: 1.15;
443
+ text-align: left;
444
+ }
445
+ .nf-btn .nf-label small {
446
+ font-size: 11.5px;
447
+ font-weight: 500;
448
+ color: var(--nf-login-muted);
449
+ }
450
+
451
+ /* Sélecteur d'aperçu (développement, `loginPage.previewPicker`) : un outil
452
+ du développeur posé dans un coin, jamais une partie de la page livrée. */
453
+ .nf-picker {
454
+ position: fixed;
455
+ left: 14px;
456
+ bottom: 14px;
457
+ z-index: 3;
458
+ display: flex;
459
+ flex-wrap: wrap;
460
+ gap: 10px;
461
+ padding: 8px 10px;
462
+ border: 1px dashed var(--nf-login-line-strong);
463
+ border-radius: var(--nf-login-radius);
464
+ background: var(--nf-login-surface);
465
+ font: 600 11px/1 var(--nf-login-mono);
466
+ color: var(--nf-login-muted);
467
+ }
468
+ .nf-picker label {
469
+ display: inline-flex;
470
+ align-items: center;
471
+ gap: 6px;
472
+ }
473
+ .nf-picker select {
474
+ font: inherit;
475
+ color: var(--nf-login-heading);
476
+ background: var(--nf-login-raised);
477
+ border: 1px solid var(--nf-login-line-strong);
478
+ border-radius: 6px;
479
+ padding: 4px 6px;
480
+ }
481
+
482
+ /* Bascule clair / sombre : l'icône montre le thème où l'on VA. */
483
+ .nf-theme {
484
+ position: fixed;
485
+ top: 14px;
486
+ right: 14px;
487
+ z-index: 3;
488
+ display: grid;
489
+ place-items: center;
490
+ width: 38px;
491
+ height: 38px;
492
+ border: 1px solid var(--nf-login-line-strong);
493
+ border-radius: 50%;
494
+ background: var(--nf-login-surface);
495
+ color: var(--nf-login-heading);
496
+ cursor: pointer;
497
+ }
498
+ .nf-theme:hover {
499
+ background: var(--nf-login-raised);
500
+ }
501
+ .nf-theme .t-moon {
502
+ display: none;
503
+ }
504
+ @media (prefers-color-scheme: light) {
505
+ :root:not([data-theme="dark"]) .nf-theme .t-moon {
506
+ display: block;
507
+ }
508
+ :root:not([data-theme="dark"]) .nf-theme .t-sun {
509
+ display: none;
510
+ }
511
+ }
512
+ :root[data-theme="light"] .nf-theme .t-moon {
513
+ display: block;
514
+ }
515
+ :root[data-theme="light"] .nf-theme .t-sun {
516
+ display: none;
517
+ }
518
+ .nf-btn.primary {
519
+ width: 100%;
520
+ border-color: var(--nf-login-brand);
521
+ background: var(--nf-login-brand);
522
+ color: var(--nf-login-on-brand);
523
+ font-size: 15px;
524
+ }
525
+ .nf-btn.primary:hover {
526
+ border-color: var(--nf-login-brand-hover);
527
+ background: var(--nf-login-brand-hover);
528
+ }
529
+ .nf-btn.primary .nf-icon {
530
+ transition: transform 0.12s;
531
+ }
532
+ .nf-btn.primary:hover .nf-icon {
533
+ transform: translateX(2px);
534
+ }
535
+ .nf-link {
536
+ padding: 2px 0;
537
+ border: 0;
538
+ background: none;
539
+ color: var(--nf-login-accent);
540
+ font-size: 13px;
541
+ font-weight: 600;
542
+ text-decoration: none;
543
+ cursor: pointer;
544
+ }
545
+ .nf-link:hover {
546
+ text-decoration: underline;
547
+ text-underline-offset: 3px;
548
+ }
549
+ .nf-center {
550
+ justify-self: center;
551
+ }
552
+
553
+ .nf-account {
554
+ display: flex;
555
+ align-items: center;
556
+ gap: 10px;
557
+ padding: 8px 10px;
558
+ border: 1px solid var(--nf-login-line);
559
+ border-radius: var(--nf-login-radius);
560
+ background: var(--nf-login-raised);
561
+ }
562
+ .nf-avatar {
563
+ display: grid;
564
+ place-items: center;
565
+ width: 28px;
566
+ height: 28px;
567
+ border-radius: 50%;
568
+ background: var(--nf-login-brand);
569
+ color: var(--nf-login-on-brand);
570
+ font-weight: 700;
571
+ font-size: 13px;
572
+ }
573
+ .nf-account .who {
574
+ flex: 1;
575
+ min-width: 0;
576
+ overflow: hidden;
577
+ text-overflow: ellipsis;
578
+ font: 600 13px var(--nf-login-mono);
579
+ color: var(--nf-login-heading);
580
+ }
581
+
582
+ .nf-otp {
583
+ display: grid;
584
+ grid-template-columns: repeat(6, 1fr);
585
+ gap: 8px;
586
+ }
587
+ .nf-otp input {
588
+ width: 100%;
589
+ height: 52px;
590
+ border: 1px solid var(--nf-login-line-strong);
591
+ border-radius: var(--nf-login-radius);
592
+ background: var(--nf-login-field);
593
+ color: var(--nf-login-heading);
594
+ font: 600 22px var(--nf-login-mono);
595
+ text-align: center;
596
+ caret-color: var(--nf-login-accent);
597
+ }
598
+ .nf-otp input:focus {
599
+ outline: none;
600
+ border-color: var(--nf-login-accent);
601
+ box-shadow: 0 0 0 1px var(--nf-login-accent);
602
+ }
603
+ .nf-hint {
604
+ margin: 0;
605
+ font-size: 13px;
606
+ color: var(--nf-login-muted);
607
+ }
608
+
609
+ .nf-or {
610
+ display: flex;
611
+ align-items: center;
612
+ gap: 12px;
613
+ margin: 20px 0 14px;
614
+ font: 700 10px/1 var(--nf-login-mono);
615
+ letter-spacing: 0.8px;
616
+ text-transform: uppercase;
617
+ color: var(--nf-login-muted);
618
+ }
619
+ .nf-or::before,
620
+ .nf-or::after {
621
+ content: "";
622
+ flex: 1;
623
+ height: 1px;
624
+ background: var(--nf-login-line);
625
+ }
626
+ .nf-alt {
627
+ display: grid;
628
+ grid-template-columns: 1fr 1fr;
629
+ gap: 8px;
630
+ }
631
+ .nf-alt .span {
632
+ grid-column: 1 / -1;
633
+ }
634
+ /* SSO d'abord : les comptes de l'organisation passent AVANT le formulaire
635
+ local, en lignes de registre ; le formulaire vient après « ou ». */
636
+ body[data-sso-first] .nf-body {
637
+ display: flex;
638
+ flex-direction: column;
639
+ }
640
+ body[data-sso-first] [data-alt] {
641
+ display: flex;
642
+ flex-direction: column;
643
+ order: -1;
644
+ }
645
+ body[data-sso-first] .nf-alt {
646
+ order: -1;
647
+ grid-template-columns: 1fr;
648
+ }
649
+ body[data-sso-first] .nf-alt .nf-btn {
650
+ justify-content: flex-start;
651
+ padding: 0 14px;
652
+ }
653
+ body[data-sso-first] .nf-alt .nf-btn::after {
654
+ content: "→";
655
+ margin-left: auto;
656
+ font-weight: 500;
657
+ color: var(--nf-login-muted);
658
+ }
659
+ body[data-sso-first] .nf-or {
660
+ order: 0;
661
+ margin: 22px 0 16px;
662
+ }
663
+
664
+ .nf-message {
665
+ min-height: 38px;
666
+ margin-top: 12px;
667
+ }
668
+ .nf-alert {
669
+ display: flex;
670
+ align-items: flex-start;
671
+ gap: 10px;
672
+ margin: 0;
673
+ padding: 9px 12px;
674
+ border: 1px solid var(--nf-login-line);
675
+ border-left: 2px solid var(--nf-login-crit);
676
+ border-radius: 6px;
677
+ background: var(--nf-login-crit-bg);
678
+ color: var(--nf-login-heading);
679
+ font-size: 13px;
680
+ }
681
+ .nf-alert .code {
682
+ font: 700 11px/20px var(--nf-login-mono);
683
+ color: var(--nf-login-crit);
684
+ }
685
+
686
+ .nf-done {
687
+ display: grid;
688
+ justify-items: center;
689
+ gap: 10px;
690
+ padding: 14px 0 4px;
691
+ text-align: center;
692
+ }
693
+ .nf-done .ring {
694
+ display: grid;
695
+ place-items: center;
696
+ width: 44px;
697
+ height: 44px;
698
+ border: 1px solid var(--nf-login-ok);
699
+ border-radius: 50%;
700
+ background: var(--nf-login-ok-bg);
701
+ color: var(--nf-login-ok);
702
+ }
703
+ .nf-done .ring .nf-icon {
704
+ width: 20px;
705
+ height: 20px;
706
+ stroke-width: 2.2;
707
+ }
708
+ .nf-done strong {
709
+ font-size: 15px;
710
+ color: var(--nf-login-heading);
711
+ }
712
+ .nf-done .dest {
713
+ font: 12px var(--nf-login-mono);
714
+ color: var(--nf-login-muted);
715
+ }
716
+ .nf-progress {
717
+ width: 100%;
718
+ height: 2px;
719
+ margin-top: 6px;
720
+ overflow: hidden;
721
+ border-radius: 1px;
722
+ background: var(--nf-login-line);
723
+ }
724
+ .nf-progress span {
725
+ display: block;
726
+ width: 40%;
727
+ height: 100%;
728
+ background: var(--nf-login-accent);
729
+ animation: nf-bar 1s ease-in-out infinite alternate;
730
+ }
731
+ @keyframes nf-bar {
732
+ from {
733
+ margin-left: 0;
734
+ }
735
+ to {
736
+ margin-left: 60%;
737
+ }
738
+ }
739
+ @media (prefers-reduced-motion: reduce) {
740
+ .nf-progress span {
741
+ animation: none;
742
+ width: 100%;
743
+ }
744
+ }
745
+
746
+ .nf-facts {
747
+ display: flex;
748
+ flex-wrap: wrap;
749
+ justify-content: center;
750
+ gap: 6px 16px;
751
+ margin: 0;
752
+ padding: 0;
753
+ list-style: none;
754
+ font: 600 10px/1 var(--nf-login-mono);
755
+ letter-spacing: 0.6px;
756
+ text-transform: uppercase;
757
+ color: var(--nf-login-muted);
758
+ }
759
+ .nf-facts li {
760
+ display: inline-flex;
761
+ align-items: center;
762
+ gap: 6px;
763
+ }
764
+ .nf-facts .nf-icon {
765
+ width: 12px;
766
+ height: 12px;
767
+ color: var(--nf-login-ok);
768
+ }
769
+ .nf-powered {
770
+ display: inline-flex;
771
+ align-items: center;
772
+ gap: 6px;
773
+ font-size: 12px;
774
+ color: var(--nf-login-muted);
775
+ text-decoration: none;
776
+ }
777
+ .nf-powered .nf-logo {
778
+ height: 14px;
779
+ }
780
+ .nf-powered:hover {
781
+ color: var(--nf-login-heading);
782
+ }
783
+ /* Sur un fond d'image, le pied passe sur une pastille pleine pour rester lisible. */
784
+ .nf-foot {
785
+ display: grid;
786
+ justify-items: center;
787
+ gap: 12px;
788
+ }
789
+ body[data-backdrop] .nf-foot {
790
+ padding: 8px 14px;
791
+ border: 1px solid var(--nf-login-line);
792
+ border-radius: 10px;
793
+ background: var(--nf-login-surface);
794
+ }
795
+
796
+ /* ── Mise en page « split » (défaut) : panneau de marque + formulaire ──────
797
+ Le panneau tient la marque en typographie ; son image, facultative, vit sur
798
+ un calque à part (::before), le voile PLEIN sur un autre (::after). Avec
799
+ `clip-path: shape()`, la jonction devient une courbe qui porte les trois
800
+ arcs du logo, calculés sur la MÊME quadratique que la découpe ; sans elle,
801
+ bord droit et filet, sans arcs — des arcs qui ne coïncideraient pas avec la
802
+ découpe vaudraient moins que rien. */
803
+ body[data-layout="split"] .nf-strip {
804
+ display: none;
805
+ }
806
+ body[data-layout="split"] .nf-hero {
807
+ position: relative;
808
+ isolation: isolate;
809
+ display: flex;
810
+ flex: 1.1;
811
+ flex-direction: column;
812
+ justify-content: space-between;
813
+ gap: 32px;
814
+ padding: 40px 56px 44px;
815
+ border-right: 1px solid var(--nf-login-line);
816
+ color: var(--nf-login-hero-fg);
817
+ }
818
+ body[data-layout="split"] .nf-hero::before,
819
+ body[data-layout="split"] .nf-hero::after {
820
+ content: "";
821
+ position: absolute;
822
+ inset: 0;
823
+ z-index: -1;
824
+ pointer-events: none;
825
+ }
826
+ body[data-layout="split"] .nf-hero::before {
827
+ background-color: var(--nf-login-hero-bg);
828
+ background-image: var(--nf-login-hero-image);
829
+ background-size: cover;
830
+ background-position: center 40%;
831
+ }
832
+ body[data-layout="split"] .nf-hero::after {
833
+ background: var(--nf-login-hero-veil);
834
+ }
835
+ @supports (clip-path: shape(from 0 0, hline to 100%)) {
836
+ /* La courbe mange ~22 % du panneau à mi-hauteur : le contenu lui laisse sa place. */
837
+ body[data-layout="split"] .nf-hero {
838
+ border-right: 0;
839
+ padding-right: max(56px, 20%);
840
+ }
841
+ body[data-layout="split"] .nf-hero::before,
842
+ body[data-layout="split"] .nf-hero::after {
843
+ clip-path: shape(
844
+ from 0% 0%,
845
+ hline to 100%,
846
+ curve to 100% 100% with 78% 50%,
847
+ hline to 0%,
848
+ close
849
+ );
850
+ }
851
+ /* Arcs par-dessus le voile, légèrement flous : le flou s'applique AVANT la
852
+ découpe, le bord de la courbe reste net. */
853
+ body[data-layout="split"] .nf-hero::after {
854
+ background:
855
+ var(--nf-login-arcs) center / 100% 100% no-repeat,
856
+ var(--nf-login-hero-veil);
857
+ filter: blur(0.8px);
858
+ }
859
+ }
860
+ body[data-layout="split"] .nf-stage {
861
+ position: relative;
862
+ z-index: 0;
863
+ flex: 0 0 min(500px, 42%);
864
+ padding: 48px 32px;
865
+ }
866
+ body[data-layout="split"] .nf-card {
867
+ border-color: transparent;
868
+ background: transparent;
869
+ }
870
+ .nf-hero-brand {
871
+ display: flex;
872
+ align-items: center;
873
+ gap: 12px;
874
+ font-size: 16px;
875
+ font-weight: 650;
876
+ }
877
+ .nf-hero-brand::after {
878
+ content: "";
879
+ flex: 1;
880
+ height: 1px;
881
+ margin-left: 10px;
882
+ background: var(--nf-login-line);
883
+ }
884
+ .nf-hero-brand .nf-logo {
885
+ height: 30px;
886
+ }
887
+ .nf-hero h2 {
888
+ margin: 0 0 12px;
889
+ max-width: 9ch;
890
+ font-size: clamp(44px, 5.4vw, 68px);
891
+ font-weight: 650;
892
+ line-height: 1;
893
+ letter-spacing: -0.035em;
894
+ }
895
+ .nf-hero p {
896
+ margin: 0;
897
+ max-width: 400px;
898
+ font-size: 18px;
899
+ line-height: 1.45;
900
+ color: var(--nf-login-hero-muted);
901
+ }
902
+ .nf-hero-panel {
903
+ padding: 18px 20px;
904
+ border-radius: 12px;
905
+ background: var(--nf-login-hero-plate, transparent);
906
+ }
907
+ .nf-hero small {
908
+ display: flex;
909
+ align-items: center;
910
+ gap: 12px;
911
+ font: 600 11px/1 var(--nf-login-mono);
912
+ letter-spacing: 0.6px;
913
+ text-transform: uppercase;
914
+ color: var(--nf-login-hero-muted);
915
+ }
916
+ .nf-hero small::before {
917
+ content: "";
918
+ width: 28px;
919
+ height: 1px;
920
+ background: var(--nf-login-line-strong);
921
+ }
922
+ /* La composition « accueil » dans le panneau : ses titres l'emportent sur ceux du panneau. */
923
+ .nf-hero .nf-home h2 {
924
+ max-width: none;
925
+ margin: 18px auto 8px;
926
+ font-size: 38px;
927
+ line-height: 1.12;
928
+ letter-spacing: -0.028em;
929
+ }
930
+ .nf-hero .nf-home p {
931
+ max-width: 520px;
932
+ margin-inline: auto;
933
+ line-height: 1.5;
934
+ }
935
+ .nf-hero .nf-home .sub {
936
+ font-size: 16px;
937
+ margin-bottom: 8px;
938
+ }
939
+ .nf-hero .nf-home .sig {
940
+ font-size: 14px;
941
+ }
942
+ .nf-hero .nf-home .feature p {
943
+ font-size: 12.5px;
944
+ max-width: none;
945
+ }
946
+
947
+ /* ── Mise en page « bare » : pas de carte, le formulaire sur la page ───── */
948
+ body[data-layout="bare"] .nf-strip {
949
+ border-bottom-color: transparent;
950
+ background: transparent;
951
+ }
952
+ body[data-layout="bare"] .nf-card {
953
+ border-color: transparent;
954
+ background: transparent;
955
+ }
956
+ body[data-layout="bare"] .nf-head .nf-brand {
957
+ display: flex;
958
+ }
959
+
960
+ @media (max-width: 899px) {
961
+ body[data-layout="split"] .nf-hero {
962
+ display: none;
963
+ }
964
+ body[data-layout="split"] .nf-stage {
965
+ flex: 1 1 auto;
966
+ padding: 32px 16px;
967
+ }
968
+ /* Sans panneau ni bandeau, la marque revient en tête du formulaire. */
969
+ body[data-layout="split"] .nf-head .nf-brand {
970
+ display: flex;
971
+ }
972
+ }
973
+ /* Grand écran : le bloc de connexion grandit TOUT ENTIER — texte, champs,
974
+ boutons —, par paliers. Mesuré en 2 560 × 1 440 : la carte n'occupait que
975
+ 16 % de la largeur et 33 % de la hauteur, perdue au milieu de l'écran.
976
+ Élargir la seule carte allongerait les lignes sans rien rendre plus lisible ;
977
+ `zoom` garde les proportions — le bandeau de marque grandit avec lui. La hauteur compte autant que la largeur : un
978
+ écran large mais bas n'a pas la place de grandir. */
979
+ @media (min-width: 1800px) and (min-height: 1000px) {
980
+ .nf-strip,
981
+ .nf-stage {
982
+ zoom: 1.12;
983
+ }
984
+ }
985
+ @media (min-width: 2400px) and (min-height: 1300px) {
986
+ .nf-strip,
987
+ .nf-stage {
988
+ zoom: 1.3;
989
+ }
990
+ }
991
+ @media (max-width: 520px) {
992
+ .nf-strip .hide-sm {
993
+ display: none;
994
+ }
995
+ .nf-stage {
996
+ padding: 24px 12px;
997
+ }
998
+ .nf-head {
999
+ padding: 22px 20px 0;
1000
+ }
1001
+ .nf-steps {
1002
+ gap: 14px;
1003
+ }
1004
+ .nf-body {
1005
+ padding: 20px 20px 12px;
1006
+ }
1007
+ .nf-alt {
1008
+ grid-template-columns: 1fr;
1009
+ }
1010
+ .nf-otp {
1011
+ gap: 6px;
1012
+ }
1013
+ }
1014
+
1015
+ /* ── Panneau d'information « accueil » — la composition de la page d'accueil du cœur
1016
+ (nodefony/views/index.eta) : logo, titre, sous-titre, phrase, pastilles, commande,
1017
+ puis une grille de fonctionnalités. Couleurs de la marque : l'accent pour
1018
+ les icônes (lisible dans les deux thèmes), le cyan du logo pour l'invite
1019
+ sur le bandeau de commande toujours sombre, le vert lisible du thème. ── */
1020
+ .nf-home {
1021
+ --nf-home-blue: var(--nf-login-accent);
1022
+ --nf-home-cyan: var(--nf-login-brand-cyan);
1023
+ --nf-home-green: var(--nf-login-home-green);
1024
+ width: min(640px, 100%);
1025
+ margin: auto;
1026
+ text-align: center;
1027
+ color: var(--nf-login-heading);
1028
+ }
1029
+ .nf-home .nf-home-logo {
1030
+ display: block;
1031
+ width: auto;
1032
+ height: 64px;
1033
+ margin: 0 auto;
1034
+ }
1035
+ .nf-home h2 {
1036
+ margin: 18px auto 8px;
1037
+ font-size: 38px;
1038
+ line-height: 1.12;
1039
+ letter-spacing: -0.028em;
1040
+ color: var(--nf-login-heading);
1041
+ }
1042
+ .nf-home .sub {
1043
+ margin: 0 auto 8px;
1044
+ font-size: 16px;
1045
+ font-weight: 500;
1046
+ color: var(--nf-login-text);
1047
+ }
1048
+ .nf-home .sig {
1049
+ margin: 0 auto;
1050
+ max-width: 520px;
1051
+ font-size: 14px;
1052
+ color: var(--nf-login-muted);
1053
+ }
1054
+ .nf-home .badges {
1055
+ display: flex;
1056
+ flex-wrap: wrap;
1057
+ justify-content: center;
1058
+ gap: 8px;
1059
+ margin: 18px 0 0;
1060
+ padding: 0;
1061
+ list-style: none;
1062
+ }
1063
+ .nf-home .badges li {
1064
+ padding: 4px 12px;
1065
+ border: 1px solid var(--nf-login-line);
1066
+ border-radius: 999px;
1067
+ background: var(--nf-login-surface);
1068
+ font-size: 12px;
1069
+ font-weight: 600;
1070
+ color: var(--nf-login-muted);
1071
+ }
1072
+ .nf-home .badges li.agentic {
1073
+ color: var(--nf-home-green);
1074
+ border-color: color-mix(
1075
+ in srgb,
1076
+ var(--nf-home-green) 45%,
1077
+ var(--nf-login-line)
1078
+ );
1079
+ }
1080
+ .nf-home .install {
1081
+ display: inline-flex;
1082
+ align-items: center;
1083
+ gap: 12px;
1084
+ margin: 20px auto 0;
1085
+ padding: 11px 20px;
1086
+ border: 1px solid var(--nf-login-line);
1087
+ border-radius: 12px;
1088
+ background: #0e1726;
1089
+ color: #d9e6f5;
1090
+ font: 14px var(--nf-login-mono);
1091
+ }
1092
+ .nf-home .install .p {
1093
+ color: var(--nf-home-cyan);
1094
+ }
1095
+ .nf-home .features {
1096
+ display: grid;
1097
+ grid-template-columns: 1fr 1fr;
1098
+ gap: 12px;
1099
+ margin: 28px 0 0;
1100
+ text-align: left;
1101
+ }
1102
+ .nf-home .feature {
1103
+ padding: 14px 16px;
1104
+ border: 1px solid var(--nf-login-line);
1105
+ border-radius: 12px;
1106
+ background: var(--nf-login-surface);
1107
+ }
1108
+ .nf-home .feature .ic {
1109
+ display: grid;
1110
+ place-items: center;
1111
+ width: 30px;
1112
+ height: 30px;
1113
+ border-radius: 8px;
1114
+ color: var(--nf-home-blue);
1115
+ background: color-mix(in srgb, var(--nf-home-blue) 12%, transparent);
1116
+ }
1117
+ .nf-home .feature .ic svg {
1118
+ width: 16px;
1119
+ height: 16px;
1120
+ }
1121
+ .nf-home .feature h3 {
1122
+ margin: 10px 0 4px;
1123
+ font-size: 14px;
1124
+ color: var(--nf-login-heading);
1125
+ }
1126
+ .nf-home .feature p {
1127
+ margin: 0;
1128
+ font-size: 12.5px;
1129
+ line-height: 1.5;
1130
+ color: var(--nf-login-muted);
1131
+ }
1132
+
1133
+ /* Logo chargé depuis sa source (`<img>`) : les variantes d'une seule couleur
1134
+ passent par un filtre, un masque CSS étant refusé en file:// (CORS). */
1135
+ .nf-logo-white {
1136
+ filter: brightness(0) invert(1);
1137
+ }
1138
+ .nf-logo-mono {
1139
+ filter: grayscale(1);
1140
+ opacity: 0.75;
1141
+ }