@promodev/form-builder-vue3 0.0.0-stage → 0.1.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.
- package/README.md +65 -2
- package/dist/form-builder-vue3.js +16691 -0
- package/dist/form-builder-vue3.umd.cjs +534 -0
- package/dist/index-DRqJOqUR.js +3484 -0
- package/dist/index-DiIAwrIy.js +21839 -0
- package/dist/style.css +862 -0
- package/dist/widget/form-builder-vue3.css +1 -0
- package/dist/widget/form-builder-vue3.iife.js +534 -0
- package/package.json +42 -4
package/dist/style.css
ADDED
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
/* =========================================================================
|
|
2
|
+
Houston Form Builder — feuille de style OPTIONNELLE, THÉMATISABLE, RESPONSIVE.
|
|
3
|
+
|
|
4
|
+
• DÉSACTIVER : ne pas importer ce fichier (le module JS ne l'importe pas).
|
|
5
|
+
Le formulaire reste 100% fonctionnel, stylez via `.fb-*`.
|
|
6
|
+
• RE-THÉMER : surchargez les variables `--fb-*` sur `.fb-form` (ou :root).
|
|
7
|
+
Couleurs, arrondis, bordures, ombres, espacements, typo.
|
|
8
|
+
|
|
9
|
+
Design : moderne, sobre, rassurant (données sensibles), mobile-first.
|
|
10
|
+
========================================================================= */
|
|
11
|
+
|
|
12
|
+
.fb-form {
|
|
13
|
+
/* — Couleurs — */
|
|
14
|
+
--fb-color-primary: #2f6bff;
|
|
15
|
+
--fb-color-primary-hover: #1f56e6;
|
|
16
|
+
--fb-color-primary-contrast: #ffffff;
|
|
17
|
+
--fb-color-text: #10131a;
|
|
18
|
+
--fb-color-muted: #6a7180;
|
|
19
|
+
--fb-color-error: #e5484d;
|
|
20
|
+
--fb-color-error-bg: #fdf0f0;
|
|
21
|
+
--fb-color-success: #12a150;
|
|
22
|
+
--fb-color-border: #dfe3ea;
|
|
23
|
+
--fb-color-border-hover: #c4cad4;
|
|
24
|
+
--fb-color-border-focus: var(--fb-color-primary);
|
|
25
|
+
--fb-color-field-bg: #ffffff;
|
|
26
|
+
--fb-color-disabled-bg: #f4f6f9;
|
|
27
|
+
--fb-color-surface: #ffffff;
|
|
28
|
+
--fb-color-track: #eef1f6;
|
|
29
|
+
|
|
30
|
+
/* — Formes / ombres — */
|
|
31
|
+
--fb-radius: 10px;
|
|
32
|
+
--fb-radius-sm: 7px;
|
|
33
|
+
--fb-radius-pill: 999px;
|
|
34
|
+
--fb-border-width: 1.5px;
|
|
35
|
+
--fb-shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.04);
|
|
36
|
+
--fb-shadow-focus: 0 0 0 3px rgba(47, 107, 255, 0.16);
|
|
37
|
+
--fb-shadow-card: 0 4px 24px rgba(16, 19, 26, 0.06);
|
|
38
|
+
|
|
39
|
+
/* — Espacements / typo (compacts mais tactiles) — */
|
|
40
|
+
--fb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
|
|
41
|
+
Arial, sans-serif;
|
|
42
|
+
--fb-font-size: 16px; /* ≥16px : évite le zoom auto iOS sur focus */
|
|
43
|
+
--fb-field-gap: 15px;
|
|
44
|
+
--fb-field-pad-y: 10px;
|
|
45
|
+
--fb-field-pad-x: 13px;
|
|
46
|
+
--fb-control-min: 44px; /* cible tactile ok, plus compact */
|
|
47
|
+
--fb-label-weight: 600;
|
|
48
|
+
--fb-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
49
|
+
|
|
50
|
+
font-family: var(--fb-font);
|
|
51
|
+
font-size: var(--fb-font-size);
|
|
52
|
+
color: var(--fb-color-text);
|
|
53
|
+
line-height: 1.5;
|
|
54
|
+
-webkit-font-smoothing: antialiased;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
/* 100% de la largeur du conteneur hôte ; aucune marge — c'est le bloc parent
|
|
57
|
+
qui intègre le module qui gère largeur et centrage. */
|
|
58
|
+
width: 100%;
|
|
59
|
+
margin: 0;
|
|
60
|
+
}
|
|
61
|
+
.fb-form *,
|
|
62
|
+
.fb-form *::before,
|
|
63
|
+
.fb-form *::after {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* — Barre de progression des étapes — */
|
|
68
|
+
.fb-progress {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 8px;
|
|
72
|
+
margin-bottom: var(--fb-field-gap);
|
|
73
|
+
}
|
|
74
|
+
.fb-progress-step {
|
|
75
|
+
height: 6px;
|
|
76
|
+
flex: 1;
|
|
77
|
+
border-radius: var(--fb-radius-pill);
|
|
78
|
+
background: var(--fb-color-track);
|
|
79
|
+
transition: background var(--fb-transition);
|
|
80
|
+
}
|
|
81
|
+
.fb-progress-step.is-done {
|
|
82
|
+
background: var(--fb-color-primary);
|
|
83
|
+
}
|
|
84
|
+
.fb-progress-step.is-current {
|
|
85
|
+
background: var(--fb-color-primary);
|
|
86
|
+
opacity: 0.55;
|
|
87
|
+
}
|
|
88
|
+
.fb-step-counter {
|
|
89
|
+
font-size: 0.82em;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
color: var(--fb-color-muted);
|
|
92
|
+
margin-bottom: 6px;
|
|
93
|
+
}
|
|
94
|
+
.fb-step-title {
|
|
95
|
+
font-size: 1.16em;
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
letter-spacing: -0.01em;
|
|
98
|
+
margin: 0 0 var(--fb-field-gap);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* — Corps d'étape — */
|
|
102
|
+
.fb-step {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: var(--fb-field-gap);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* — Champ (wrapper) — */
|
|
109
|
+
.fb-field {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: 7px;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
}
|
|
115
|
+
/* Un champ peut être un <fieldset> (radio/civilité) : on retire la bordure et la
|
|
116
|
+
marge natives disgracieuses, la <legend> se comporte comme un label. */
|
|
117
|
+
fieldset.fb-field {
|
|
118
|
+
border: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
margin: 0;
|
|
121
|
+
}
|
|
122
|
+
.fb-field > legend {
|
|
123
|
+
float: left;
|
|
124
|
+
width: 100%;
|
|
125
|
+
padding: 0;
|
|
126
|
+
margin-bottom: 8px;
|
|
127
|
+
}
|
|
128
|
+
.fb-field > legend + * {
|
|
129
|
+
clear: both;
|
|
130
|
+
}
|
|
131
|
+
/* Libellé et options sur une seule ligne (civilité), comme en v1. */
|
|
132
|
+
.fb-field--inline {
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
align-items: center;
|
|
136
|
+
column-gap: 16px;
|
|
137
|
+
}
|
|
138
|
+
.fb-field--inline > legend {
|
|
139
|
+
width: auto;
|
|
140
|
+
margin-bottom: 0;
|
|
141
|
+
}
|
|
142
|
+
.fb-field--inline > .fb-error {
|
|
143
|
+
flex-basis: 100%;
|
|
144
|
+
}
|
|
145
|
+
.fb-label {
|
|
146
|
+
font-weight: var(--fb-label-weight);
|
|
147
|
+
color: var(--fb-color-text);
|
|
148
|
+
line-height: 1.35;
|
|
149
|
+
}
|
|
150
|
+
.fb-required-star {
|
|
151
|
+
color: var(--fb-color-error);
|
|
152
|
+
margin-left: 2px;
|
|
153
|
+
}
|
|
154
|
+
.fb-info {
|
|
155
|
+
font-size: 0.86em;
|
|
156
|
+
color: var(--fb-color-muted);
|
|
157
|
+
line-height: 1.4;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Sous-champ (ex. « Précisez » d'un Select). */
|
|
161
|
+
.fb-subfield {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
gap: 7px;
|
|
165
|
+
margin-top: 12px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Bloc HTML libre (affichage) — reste responsive. */
|
|
169
|
+
.fb-blochtml {
|
|
170
|
+
line-height: 1.5;
|
|
171
|
+
}
|
|
172
|
+
.fb-blochtml img {
|
|
173
|
+
max-width: 100%;
|
|
174
|
+
height: auto;
|
|
175
|
+
}
|
|
176
|
+
.fb-blochtml ul {
|
|
177
|
+
padding-left: 20px;
|
|
178
|
+
margin: 10px 0;
|
|
179
|
+
}
|
|
180
|
+
/* Typographie du bloc HTML rétablie EXPLICITEMENT (valeurs = défauts navigateur,
|
|
181
|
+
celles qu'applique déjà le front mini-site). Sans ça, le preflight Tailwind de
|
|
182
|
+
l'hôte backoffice remet h1..h6/p/strong à plat -> le titre « Bonjour … » perdait
|
|
183
|
+
sa taille dans l'éditeur alors qu'il est en <h1> côté front. Le front fait foi :
|
|
184
|
+
ces règles ne le changent pas, elles alignent seulement l'éditeur dessus. */
|
|
185
|
+
.fb-blochtml h1 { font-size: 2em; font-weight: 700; margin: 0.67em 0; }
|
|
186
|
+
.fb-blochtml h2 { font-size: 1.5em; font-weight: 700; margin: 0.83em 0; }
|
|
187
|
+
.fb-blochtml h3 { font-size: 1.17em; font-weight: 700; margin: 1em 0; }
|
|
188
|
+
.fb-blochtml h4 { font-size: 1em; font-weight: 700; margin: 1.33em 0; }
|
|
189
|
+
.fb-blochtml h5 { font-size: 0.83em; font-weight: 700; margin: 1.67em 0; }
|
|
190
|
+
.fb-blochtml h6 { font-size: 0.67em; font-weight: 700; margin: 2.33em 0; }
|
|
191
|
+
.fb-blochtml p { margin: 1em 0; }
|
|
192
|
+
.fb-blochtml strong,
|
|
193
|
+
.fb-blochtml b { font-weight: 700; }
|
|
194
|
+
.fb-error-update {
|
|
195
|
+
color: var(--fb-color-error);
|
|
196
|
+
padding: 14px 16px;
|
|
197
|
+
border-radius: var(--fb-radius);
|
|
198
|
+
background: var(--fb-color-error-bg);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* IBAN : titre de section + encart d'avertissement. */
|
|
202
|
+
.fb-iban-title {
|
|
203
|
+
margin: 0 0 4px;
|
|
204
|
+
font-size: 1em;
|
|
205
|
+
font-weight: 600;
|
|
206
|
+
}
|
|
207
|
+
.fb-iban-warning {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: flex-start;
|
|
210
|
+
gap: 10px;
|
|
211
|
+
background: #fff8e6;
|
|
212
|
+
border: 1px solid #ffcf5c;
|
|
213
|
+
border-left: 4px solid #ff9800;
|
|
214
|
+
border-radius: var(--fb-radius-sm);
|
|
215
|
+
padding: 12px;
|
|
216
|
+
margin-top: 10px;
|
|
217
|
+
}
|
|
218
|
+
.fb-iban-warning svg {
|
|
219
|
+
width: 20px;
|
|
220
|
+
height: 20px;
|
|
221
|
+
flex: none;
|
|
222
|
+
color: #ff9800;
|
|
223
|
+
margin-top: 1px;
|
|
224
|
+
}
|
|
225
|
+
.fb-iban-warning p {
|
|
226
|
+
margin: 0;
|
|
227
|
+
font-size: 0.8em;
|
|
228
|
+
color: #7a5a00;
|
|
229
|
+
line-height: 1.5;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Fichier. */
|
|
233
|
+
.fb-file-input {
|
|
234
|
+
font: inherit;
|
|
235
|
+
max-width: 100%;
|
|
236
|
+
}
|
|
237
|
+
.fb-file-status {
|
|
238
|
+
color: var(--fb-color-muted);
|
|
239
|
+
font-size: 0.9em;
|
|
240
|
+
}
|
|
241
|
+
.fb-file-selected {
|
|
242
|
+
display: inline-block;
|
|
243
|
+
margin-top: 8px;
|
|
244
|
+
font-size: 0.85em;
|
|
245
|
+
font-weight: 500;
|
|
246
|
+
color: var(--fb-color-success);
|
|
247
|
+
}
|
|
248
|
+
.fb-file-btn {
|
|
249
|
+
display: inline-flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 9px;
|
|
252
|
+
width: fit-content;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
padding: 12px 20px;
|
|
255
|
+
border-radius: var(--fb-radius);
|
|
256
|
+
background: var(--fb-color-primary);
|
|
257
|
+
color: var(--fb-color-primary-contrast);
|
|
258
|
+
font-weight: 600;
|
|
259
|
+
transition: background var(--fb-transition);
|
|
260
|
+
}
|
|
261
|
+
.fb-file-btn:hover {
|
|
262
|
+
background: var(--fb-color-primary-hover);
|
|
263
|
+
}
|
|
264
|
+
.fb-file-hidden {
|
|
265
|
+
position: absolute;
|
|
266
|
+
width: 1px;
|
|
267
|
+
height: 1px;
|
|
268
|
+
opacity: 0;
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
}
|
|
271
|
+
.fb-file-link {
|
|
272
|
+
display: flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
gap: 10px;
|
|
275
|
+
padding: 12px 14px;
|
|
276
|
+
border: var(--fb-border-width) solid var(--fb-color-border);
|
|
277
|
+
border-radius: var(--fb-radius);
|
|
278
|
+
}
|
|
279
|
+
.fb-file-link a {
|
|
280
|
+
color: var(--fb-color-primary);
|
|
281
|
+
word-break: break-all;
|
|
282
|
+
text-decoration: none;
|
|
283
|
+
}
|
|
284
|
+
.fb-file-delete {
|
|
285
|
+
margin-left: auto;
|
|
286
|
+
display: inline-flex;
|
|
287
|
+
border: none;
|
|
288
|
+
background: transparent;
|
|
289
|
+
color: var(--fb-color-error);
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
padding: 4px;
|
|
292
|
+
border-radius: 6px;
|
|
293
|
+
}
|
|
294
|
+
.fb-file-delete:hover {
|
|
295
|
+
background: var(--fb-color-error-bg);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* — Contrôles texte — */
|
|
299
|
+
.fb-input,
|
|
300
|
+
.fb-textarea,
|
|
301
|
+
.fb-select {
|
|
302
|
+
width: 100%;
|
|
303
|
+
min-height: var(--fb-control-min);
|
|
304
|
+
font: inherit;
|
|
305
|
+
color: var(--fb-color-text);
|
|
306
|
+
background: var(--fb-color-field-bg);
|
|
307
|
+
border: var(--fb-border-width) solid var(--fb-color-border);
|
|
308
|
+
border-radius: var(--fb-radius);
|
|
309
|
+
padding: var(--fb-field-pad-y) var(--fb-field-pad-x);
|
|
310
|
+
box-shadow: var(--fb-shadow-sm);
|
|
311
|
+
transition: border-color var(--fb-transition), box-shadow var(--fb-transition),
|
|
312
|
+
background var(--fb-transition);
|
|
313
|
+
appearance: none;
|
|
314
|
+
-webkit-appearance: none;
|
|
315
|
+
}
|
|
316
|
+
.fb-input::placeholder,
|
|
317
|
+
.fb-textarea::placeholder {
|
|
318
|
+
color: var(--fb-color-muted);
|
|
319
|
+
opacity: 0.75;
|
|
320
|
+
}
|
|
321
|
+
.fb-input:hover:not(:disabled),
|
|
322
|
+
.fb-textarea:hover:not(:disabled),
|
|
323
|
+
.fb-select:hover:not(:disabled) {
|
|
324
|
+
border-color: var(--fb-color-border-hover);
|
|
325
|
+
}
|
|
326
|
+
.fb-input:focus,
|
|
327
|
+
.fb-textarea:focus,
|
|
328
|
+
.fb-select:focus {
|
|
329
|
+
outline: none;
|
|
330
|
+
border-color: var(--fb-color-border-focus);
|
|
331
|
+
box-shadow: var(--fb-shadow-focus);
|
|
332
|
+
}
|
|
333
|
+
.fb-input:disabled,
|
|
334
|
+
.fb-textarea:disabled,
|
|
335
|
+
.fb-select:disabled {
|
|
336
|
+
background: var(--fb-color-disabled-bg);
|
|
337
|
+
color: var(--fb-color-muted);
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
}
|
|
340
|
+
.fb-input.fb-invalid,
|
|
341
|
+
.fb-textarea.fb-invalid,
|
|
342
|
+
.fb-select.fb-invalid {
|
|
343
|
+
border-color: var(--fb-color-error);
|
|
344
|
+
background: var(--fb-color-error-bg);
|
|
345
|
+
}
|
|
346
|
+
.fb-input.fb-valid,
|
|
347
|
+
.fb-select.fb-valid {
|
|
348
|
+
border-color: var(--fb-color-success);
|
|
349
|
+
}
|
|
350
|
+
.fb-textarea {
|
|
351
|
+
resize: vertical;
|
|
352
|
+
min-height: 104px;
|
|
353
|
+
}
|
|
354
|
+
.fb-select {
|
|
355
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236a7180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
|
|
356
|
+
background-repeat: no-repeat;
|
|
357
|
+
background-position: right 14px center;
|
|
358
|
+
padding-right: 42px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* — Groupe input + suffixe (✓, unité…) — */
|
|
362
|
+
.fb-control {
|
|
363
|
+
position: relative;
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
}
|
|
367
|
+
.fb-control-suffix {
|
|
368
|
+
position: absolute;
|
|
369
|
+
right: 14px;
|
|
370
|
+
display: inline-flex;
|
|
371
|
+
color: var(--fb-color-success);
|
|
372
|
+
pointer-events: none;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* — Choix (radio / checkbox) : contrôle + libellé en ligne, comme en v1 — */
|
|
376
|
+
.fb-choice-list {
|
|
377
|
+
display: flex;
|
|
378
|
+
flex-direction: column;
|
|
379
|
+
gap: 8px;
|
|
380
|
+
}
|
|
381
|
+
.fb-choice-list--inline {
|
|
382
|
+
flex-direction: row;
|
|
383
|
+
flex-wrap: wrap;
|
|
384
|
+
column-gap: 20px;
|
|
385
|
+
}
|
|
386
|
+
.fb-choice {
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
gap: 8px;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Contrôles checkbox / radio CUSTOM (indépendants du rendu OS). */
|
|
394
|
+
.fb-choice input[type="checkbox"],
|
|
395
|
+
.fb-choice input[type="radio"] {
|
|
396
|
+
appearance: none;
|
|
397
|
+
-webkit-appearance: none;
|
|
398
|
+
flex: none;
|
|
399
|
+
width: 18px;
|
|
400
|
+
height: 18px;
|
|
401
|
+
margin: 0;
|
|
402
|
+
border: 2px solid var(--fb-color-border);
|
|
403
|
+
background: #fff;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
position: relative;
|
|
406
|
+
transition: border-color var(--fb-transition), background var(--fb-transition);
|
|
407
|
+
}
|
|
408
|
+
.fb-choice input[type="checkbox"] {
|
|
409
|
+
border-radius: 4px;
|
|
410
|
+
}
|
|
411
|
+
.fb-choice input[type="radio"] {
|
|
412
|
+
border-radius: 50%;
|
|
413
|
+
}
|
|
414
|
+
.fb-choice input:hover {
|
|
415
|
+
border-color: var(--fb-color-primary);
|
|
416
|
+
}
|
|
417
|
+
.fb-choice input:checked {
|
|
418
|
+
border-color: var(--fb-color-primary);
|
|
419
|
+
background: var(--fb-color-primary);
|
|
420
|
+
}
|
|
421
|
+
.fb-choice input[type="checkbox"]:checked::after {
|
|
422
|
+
content: "";
|
|
423
|
+
position: absolute;
|
|
424
|
+
inset: 0;
|
|
425
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
|
|
426
|
+
center / 12px no-repeat;
|
|
427
|
+
}
|
|
428
|
+
.fb-choice input[type="radio"]:checked::after {
|
|
429
|
+
content: "";
|
|
430
|
+
position: absolute;
|
|
431
|
+
inset: 4px;
|
|
432
|
+
border-radius: 50%;
|
|
433
|
+
background: #fff;
|
|
434
|
+
}
|
|
435
|
+
.fb-choice input:focus-visible {
|
|
436
|
+
outline: none;
|
|
437
|
+
box-shadow: var(--fb-shadow-focus);
|
|
438
|
+
}
|
|
439
|
+
.fb-choice-label {
|
|
440
|
+
line-height: 1.4;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* — Erreurs — */
|
|
444
|
+
.fb-error {
|
|
445
|
+
display: flex;
|
|
446
|
+
align-items: flex-start;
|
|
447
|
+
gap: 6px;
|
|
448
|
+
color: var(--fb-color-error);
|
|
449
|
+
font-size: 0.86em;
|
|
450
|
+
line-height: 1.4;
|
|
451
|
+
}
|
|
452
|
+
.fb-error::before {
|
|
453
|
+
content: "";
|
|
454
|
+
flex: none;
|
|
455
|
+
width: 15px;
|
|
456
|
+
height: 15px;
|
|
457
|
+
margin-top: 1px;
|
|
458
|
+
background: currentColor;
|
|
459
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E")
|
|
460
|
+
center / contain no-repeat;
|
|
461
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E")
|
|
462
|
+
center / contain no-repeat;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* — Boutons — */
|
|
466
|
+
.fb-buttons {
|
|
467
|
+
display: flex;
|
|
468
|
+
flex-direction: column-reverse;
|
|
469
|
+
gap: 12px;
|
|
470
|
+
margin-top: 4px;
|
|
471
|
+
}
|
|
472
|
+
.fb-button {
|
|
473
|
+
font: inherit;
|
|
474
|
+
font-weight: 650;
|
|
475
|
+
cursor: pointer;
|
|
476
|
+
border: none;
|
|
477
|
+
border-radius: var(--fb-radius);
|
|
478
|
+
min-height: var(--fb-control-min);
|
|
479
|
+
padding: 14px 24px;
|
|
480
|
+
display: inline-flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
justify-content: center;
|
|
483
|
+
gap: 9px;
|
|
484
|
+
transition: background var(--fb-transition), box-shadow var(--fb-transition),
|
|
485
|
+
opacity var(--fb-transition), transform var(--fb-transition);
|
|
486
|
+
}
|
|
487
|
+
.fb-button--primary {
|
|
488
|
+
background: var(--fb-color-primary);
|
|
489
|
+
color: var(--fb-color-primary-contrast);
|
|
490
|
+
box-shadow: var(--fb-shadow-sm);
|
|
491
|
+
}
|
|
492
|
+
.fb-button--primary:hover:not(:disabled) {
|
|
493
|
+
background: var(--fb-color-primary-hover);
|
|
494
|
+
}
|
|
495
|
+
.fb-button--primary:active:not(:disabled) {
|
|
496
|
+
transform: translateY(1px);
|
|
497
|
+
}
|
|
498
|
+
.fb-button--ghost {
|
|
499
|
+
background: transparent;
|
|
500
|
+
color: var(--fb-color-text);
|
|
501
|
+
border: var(--fb-border-width) solid var(--fb-color-border);
|
|
502
|
+
}
|
|
503
|
+
.fb-button--ghost:hover:not(:disabled) {
|
|
504
|
+
border-color: var(--fb-color-border-hover);
|
|
505
|
+
}
|
|
506
|
+
.fb-button:disabled {
|
|
507
|
+
opacity: 0.55;
|
|
508
|
+
cursor: not-allowed;
|
|
509
|
+
}
|
|
510
|
+
.fb-button:focus-visible {
|
|
511
|
+
outline: none;
|
|
512
|
+
box-shadow: var(--fb-shadow-focus);
|
|
513
|
+
}
|
|
514
|
+
.fb-spinner {
|
|
515
|
+
display: inline-block;
|
|
516
|
+
width: 1.05em;
|
|
517
|
+
height: 1.05em;
|
|
518
|
+
border: 2px solid currentColor;
|
|
519
|
+
border-right-color: transparent;
|
|
520
|
+
border-radius: 50%;
|
|
521
|
+
animation: fb-spin 0.7s linear infinite;
|
|
522
|
+
}
|
|
523
|
+
@keyframes fb-spin {
|
|
524
|
+
to {
|
|
525
|
+
transform: rotate(360deg);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.fb-mention {
|
|
530
|
+
font-size: 0.84em;
|
|
531
|
+
color: var(--fb-color-muted);
|
|
532
|
+
line-height: 1.45;
|
|
533
|
+
}
|
|
534
|
+
.fb-rgpd {
|
|
535
|
+
font-size: 0.8em;
|
|
536
|
+
color: var(--fb-color-muted);
|
|
537
|
+
line-height: 1.5;
|
|
538
|
+
margin-top: 4px;
|
|
539
|
+
}
|
|
540
|
+
.fb-rgpd #noticelink {
|
|
541
|
+
cursor: pointer;
|
|
542
|
+
text-decoration: underline;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* — Popup (modale globale) — */
|
|
546
|
+
.fb-popup-overlay {
|
|
547
|
+
position: fixed;
|
|
548
|
+
inset: 0;
|
|
549
|
+
background: rgba(16, 19, 26, 0.55);
|
|
550
|
+
backdrop-filter: blur(2px);
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
justify-content: center;
|
|
554
|
+
padding: 18px;
|
|
555
|
+
z-index: 2147483000;
|
|
556
|
+
animation: fb-fade 160ms ease;
|
|
557
|
+
}
|
|
558
|
+
.fb-popup {
|
|
559
|
+
background: var(--fb-color-surface, #fff);
|
|
560
|
+
color: var(--fb-color-text, #10131a);
|
|
561
|
+
border-radius: var(--fb-radius, 12px);
|
|
562
|
+
max-width: 460px;
|
|
563
|
+
width: 100%;
|
|
564
|
+
padding: 26px;
|
|
565
|
+
box-shadow: var(--fb-shadow-card, 0 20px 50px rgba(0, 0, 0, 0.25));
|
|
566
|
+
animation: fb-pop 180ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
567
|
+
}
|
|
568
|
+
.fb-popup-title {
|
|
569
|
+
font-weight: 700;
|
|
570
|
+
font-size: 1.12em;
|
|
571
|
+
margin: 0 0 10px;
|
|
572
|
+
}
|
|
573
|
+
.fb-popup-body {
|
|
574
|
+
color: var(--fb-color-muted);
|
|
575
|
+
line-height: 1.5;
|
|
576
|
+
}
|
|
577
|
+
.fb-popup-actions {
|
|
578
|
+
margin-top: 20px;
|
|
579
|
+
display: flex;
|
|
580
|
+
justify-content: flex-end;
|
|
581
|
+
}
|
|
582
|
+
@keyframes fb-fade {
|
|
583
|
+
from {
|
|
584
|
+
opacity: 0;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
@keyframes fb-pop {
|
|
588
|
+
from {
|
|
589
|
+
opacity: 0;
|
|
590
|
+
transform: translateY(8px) scale(0.98);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* — Responsive : ≥ 600px, boutons en ligne (précédent / suivant) — */
|
|
595
|
+
@media (min-width: 600px) {
|
|
596
|
+
.fb-buttons {
|
|
597
|
+
flex-direction: row;
|
|
598
|
+
}
|
|
599
|
+
.fb-button--primary {
|
|
600
|
+
flex: 1;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* — Accessibilité : mouvement réduit — */
|
|
605
|
+
@media (prefers-reduced-motion: reduce) {
|
|
606
|
+
.fb-form *,
|
|
607
|
+
.fb-popup-overlay,
|
|
608
|
+
.fb-popup {
|
|
609
|
+
animation: none !important;
|
|
610
|
+
transition: none !important;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* EAN validé (option reconnue). */
|
|
615
|
+
.fb-ean-ok {
|
|
616
|
+
display: inline-flex;
|
|
617
|
+
align-items: center;
|
|
618
|
+
gap: 5px;
|
|
619
|
+
color: var(--fb-color-success);
|
|
620
|
+
font-size: 0.85em;
|
|
621
|
+
font-weight: 500;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* Vérification téléphone (SMS). */
|
|
625
|
+
.fb-phone-verif {
|
|
626
|
+
display: flex;
|
|
627
|
+
flex-direction: column;
|
|
628
|
+
gap: 10px;
|
|
629
|
+
margin-top: 4px;
|
|
630
|
+
}
|
|
631
|
+
.fb-phone-code {
|
|
632
|
+
display: flex;
|
|
633
|
+
gap: 10px;
|
|
634
|
+
}
|
|
635
|
+
.fb-phone-code .fb-input {
|
|
636
|
+
flex: 1;
|
|
637
|
+
}
|
|
638
|
+
.fb-phone-verified {
|
|
639
|
+
display: inline-flex;
|
|
640
|
+
align-items: center;
|
|
641
|
+
gap: 6px;
|
|
642
|
+
color: var(--fb-color-success);
|
|
643
|
+
font-weight: 600;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/* Adresse (Google Places + repli manuel). */
|
|
647
|
+
.fb-address-ac,
|
|
648
|
+
.fb-address-ac gmp-place-autocomplete {
|
|
649
|
+
width: 100%;
|
|
650
|
+
}
|
|
651
|
+
/* Autocomplétion BAN (France) — combobox maison. */
|
|
652
|
+
.fb-address-ban {
|
|
653
|
+
position: relative;
|
|
654
|
+
}
|
|
655
|
+
.fb-address-suggestions {
|
|
656
|
+
position: absolute;
|
|
657
|
+
z-index: 30;
|
|
658
|
+
top: calc(100% + 2px);
|
|
659
|
+
left: 0;
|
|
660
|
+
right: 0;
|
|
661
|
+
margin: 0;
|
|
662
|
+
padding: 4px;
|
|
663
|
+
list-style: none;
|
|
664
|
+
background: var(--fb-color-field-bg, #fff);
|
|
665
|
+
border: 1px solid var(--fb-color-border, #dfe3ea);
|
|
666
|
+
border-radius: var(--fb-radius, 10px);
|
|
667
|
+
box-shadow: 0 8px 24px rgba(16, 19, 26, 0.12);
|
|
668
|
+
max-height: 280px;
|
|
669
|
+
overflow-y: auto;
|
|
670
|
+
}
|
|
671
|
+
.fb-address-suggestion {
|
|
672
|
+
padding: 8px 10px;
|
|
673
|
+
border-radius: calc(var(--fb-radius, 10px) - 4px);
|
|
674
|
+
cursor: pointer;
|
|
675
|
+
font-size: 14px;
|
|
676
|
+
line-height: 1.3;
|
|
677
|
+
color: var(--fb-color-text, inherit);
|
|
678
|
+
}
|
|
679
|
+
.fb-address-suggestion.is-active,
|
|
680
|
+
.fb-address-suggestion:hover {
|
|
681
|
+
background: var(--fb-color-primary, #2f6bff);
|
|
682
|
+
color: var(--fb-color-primary-contrast, #fff);
|
|
683
|
+
}
|
|
684
|
+
.fb-address-toggle {
|
|
685
|
+
align-self: flex-start;
|
|
686
|
+
background: none;
|
|
687
|
+
border: none;
|
|
688
|
+
color: var(--fb-color-primary);
|
|
689
|
+
cursor: pointer;
|
|
690
|
+
font: inherit;
|
|
691
|
+
text-decoration: underline;
|
|
692
|
+
padding: 2px 0;
|
|
693
|
+
}
|
|
694
|
+
.fb-address-manual {
|
|
695
|
+
display: flex;
|
|
696
|
+
flex-direction: column;
|
|
697
|
+
gap: var(--fb-field-gap);
|
|
698
|
+
margin-top: 4px;
|
|
699
|
+
}
|
|
700
|
+
.fb-address-row {
|
|
701
|
+
display: grid;
|
|
702
|
+
grid-template-columns: 1fr 1fr;
|
|
703
|
+
gap: 14px;
|
|
704
|
+
}
|
|
705
|
+
@media (max-width: 480px) {
|
|
706
|
+
.fb-address-row {
|
|
707
|
+
grid-template-columns: 1fr;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/* Fichiers multiples. */
|
|
712
|
+
.fb-mf-row {
|
|
713
|
+
margin-bottom: 8px;
|
|
714
|
+
}
|
|
715
|
+
.fb-mf-actions {
|
|
716
|
+
display: flex;
|
|
717
|
+
gap: 10px;
|
|
718
|
+
margin-top: 4px;
|
|
719
|
+
}
|
|
720
|
+
.fb-mf-btn {
|
|
721
|
+
min-height: auto;
|
|
722
|
+
padding: 9px 14px;
|
|
723
|
+
font-size: 0.9em;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* Récapitulatif (affichage). */
|
|
727
|
+
.fb-recap {
|
|
728
|
+
display: flex;
|
|
729
|
+
flex-direction: column;
|
|
730
|
+
gap: 4px;
|
|
731
|
+
}
|
|
732
|
+
.fb-recap-label {
|
|
733
|
+
font-weight: 600;
|
|
734
|
+
}
|
|
735
|
+
.fb-recap-value {
|
|
736
|
+
color: var(--fb-color-muted);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/* Échelle NPS / satisfaction. */
|
|
740
|
+
.fb-cem {
|
|
741
|
+
display: flex;
|
|
742
|
+
list-style: none;
|
|
743
|
+
padding: 0;
|
|
744
|
+
margin: 0 0 6px;
|
|
745
|
+
gap: 6px;
|
|
746
|
+
justify-content: space-between;
|
|
747
|
+
flex-wrap: wrap;
|
|
748
|
+
}
|
|
749
|
+
.fb-cem-item {
|
|
750
|
+
flex: 1 1 40px;
|
|
751
|
+
min-width: 40px;
|
|
752
|
+
max-width: 54px;
|
|
753
|
+
aspect-ratio: 1;
|
|
754
|
+
display: flex;
|
|
755
|
+
align-items: center;
|
|
756
|
+
justify-content: center;
|
|
757
|
+
border-radius: 50%;
|
|
758
|
+
background: #dae3ec;
|
|
759
|
+
color: #1f324f;
|
|
760
|
+
cursor: pointer;
|
|
761
|
+
font-weight: 600;
|
|
762
|
+
transition: background var(--fb-transition);
|
|
763
|
+
}
|
|
764
|
+
.fb-cem-item:focus-visible {
|
|
765
|
+
outline: none;
|
|
766
|
+
box-shadow: var(--fb-shadow-focus);
|
|
767
|
+
}
|
|
768
|
+
.fb-cem-item.cem-green.is-active,
|
|
769
|
+
.fb-cem-item.cem-green:hover {
|
|
770
|
+
background: #66c10a;
|
|
771
|
+
color: #fff;
|
|
772
|
+
}
|
|
773
|
+
.fb-cem-item.cem-yellow.is-active,
|
|
774
|
+
.fb-cem-item.cem-yellow:hover {
|
|
775
|
+
background: #ffc416;
|
|
776
|
+
}
|
|
777
|
+
.fb-cem-item.cem-red.is-active,
|
|
778
|
+
.fb-cem-item.cem-red:hover {
|
|
779
|
+
background: #f54761;
|
|
780
|
+
color: #fff;
|
|
781
|
+
}
|
|
782
|
+
.fb-cem-hints {
|
|
783
|
+
display: flex;
|
|
784
|
+
justify-content: space-between;
|
|
785
|
+
font-size: 0.8em;
|
|
786
|
+
color: var(--fb-color-muted);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/* MultiSelect custom. */
|
|
790
|
+
.fb-ms { position: relative; }
|
|
791
|
+
.fb-ms-trigger {
|
|
792
|
+
display: flex;
|
|
793
|
+
align-items: center;
|
|
794
|
+
gap: 8px;
|
|
795
|
+
text-align: left;
|
|
796
|
+
cursor: pointer;
|
|
797
|
+
}
|
|
798
|
+
.fb-ms-placeholder { color: var(--fb-color-muted); flex: 1; }
|
|
799
|
+
.fb-ms-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
|
|
800
|
+
.fb-ms-chip {
|
|
801
|
+
display: inline-flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
gap: 4px;
|
|
804
|
+
background: color-mix(in srgb, var(--fb-color-primary) 12%, #fff);
|
|
805
|
+
color: var(--fb-color-primary);
|
|
806
|
+
border-radius: var(--fb-radius-pill);
|
|
807
|
+
padding: 2px 8px;
|
|
808
|
+
font-size: 0.85em;
|
|
809
|
+
}
|
|
810
|
+
.fb-ms-chip svg { cursor: pointer; }
|
|
811
|
+
.fb-ms-caret { color: var(--fb-color-muted); margin-left: auto; }
|
|
812
|
+
.fb-ms-panel {
|
|
813
|
+
position: absolute;
|
|
814
|
+
z-index: 20;
|
|
815
|
+
top: calc(100% + 6px);
|
|
816
|
+
left: 0;
|
|
817
|
+
right: 0;
|
|
818
|
+
background: #fff;
|
|
819
|
+
border: var(--fb-border-width) solid var(--fb-color-border);
|
|
820
|
+
border-radius: var(--fb-radius);
|
|
821
|
+
box-shadow: var(--fb-shadow-card);
|
|
822
|
+
padding: 8px;
|
|
823
|
+
}
|
|
824
|
+
.fb-ms-search { margin-bottom: 8px; min-height: 40px; }
|
|
825
|
+
.fb-ms-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
|
|
826
|
+
.fb-ms-list .fb-choice { min-height: 40px; padding: 8px 10px; }
|
|
827
|
+
.fb-ms-empty { color: var(--fb-color-muted); padding: 8px; font-size: 0.9em; }
|
|
828
|
+
|
|
829
|
+
/* Zone de dépôt (fichiers regroupés). */
|
|
830
|
+
.fb-dropzone {
|
|
831
|
+
display: flex;
|
|
832
|
+
flex-direction: column;
|
|
833
|
+
align-items: center;
|
|
834
|
+
gap: 8px;
|
|
835
|
+
padding: 24px;
|
|
836
|
+
border: 2px dashed var(--fb-color-border);
|
|
837
|
+
border-radius: var(--fb-radius);
|
|
838
|
+
color: var(--fb-color-muted);
|
|
839
|
+
cursor: pointer;
|
|
840
|
+
transition: border-color var(--fb-transition), background var(--fb-transition);
|
|
841
|
+
}
|
|
842
|
+
.fb-dropzone:hover, .fb-dropzone.is-drag {
|
|
843
|
+
border-color: var(--fb-color-primary);
|
|
844
|
+
background: color-mix(in srgb, var(--fb-color-primary) 4%, #fff);
|
|
845
|
+
}
|
|
846
|
+
.fb-dz-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
847
|
+
|
|
848
|
+
/* Grille produits. */
|
|
849
|
+
.fb-pp-line {
|
|
850
|
+
display: flex;
|
|
851
|
+
flex-direction: column;
|
|
852
|
+
gap: 10px;
|
|
853
|
+
padding: 14px;
|
|
854
|
+
border: var(--fb-border-width) solid var(--fb-color-border);
|
|
855
|
+
border-radius: var(--fb-radius);
|
|
856
|
+
margin-bottom: 10px;
|
|
857
|
+
}
|
|
858
|
+
.fb-pp-num { font-weight: 600; font-size: 0.9em; color: var(--fb-color-muted); }
|
|
859
|
+
|
|
860
|
+
/* IBAN UK. */
|
|
861
|
+
.fb-ibanuk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
862
|
+
@media (max-width: 480px) { .fb-ibanuk-row { grid-template-columns: 1fr; } }
|