@salifbiaye/create-boutique 0.1.5 → 0.2.0

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 (64) hide show
  1. package/cli/dist/commands.js +3 -3
  2. package/cli/dist/create.js +5 -5
  3. package/cli/dist/generate.js +68 -10
  4. package/cli/dist/project.js +2 -0
  5. package/cli/dist/themes.js +5 -1
  6. package/package.json +1 -1
  7. package/templates/backend/src/lib/emails.ts +8 -1
  8. package/templates/backend/src/scripts/campaign-import.ts +6 -4
  9. package/templates/backend/src/scripts/seed.ts +15 -3
  10. package/templates/storefront/locales/en.json +33 -1
  11. package/templates/storefront/locales/fr.json +33 -1
  12. package/templates/storefront/package-lock.json +7 -0
  13. package/templates/storefront/package.json +1 -0
  14. package/templates/storefront/src/app/(main)/legal/[page]/page.tsx +3 -9
  15. package/templates/storefront/src/app/(main)/page.tsx +25 -0
  16. package/templates/storefront/src/app/(main)/store/page.tsx +3 -1
  17. package/templates/storefront/src/app/layout.tsx +9 -2
  18. package/templates/storefront/src/lib/boutique/config.ts +1 -0
  19. package/templates/storefront/src/lib/boutique/i18n-client.tsx +10 -2
  20. package/templates/storefront/src/lib/boutique/schema.ts +2 -0
  21. package/templates/storefront/src/modules/account/components/account-nav/index.tsx +50 -177
  22. package/templates/storefront/src/modules/account/components/address-card/add-address.tsx +2 -2
  23. package/templates/storefront/src/modules/account/components/address-card/edit-address-modal.tsx +2 -2
  24. package/templates/storefront/src/modules/account/components/overview/index.tsx +98 -143
  25. package/templates/storefront/src/modules/account/components/profile-billing-address/index.tsx +2 -3
  26. package/templates/storefront/src/modules/account/components/profile-phone/index.tsx +2 -3
  27. package/templates/storefront/src/modules/account/components/register/index.tsx +2 -3
  28. package/templates/storefront/src/modules/account/templates/account-layout.tsx +20 -24
  29. package/templates/storefront/src/modules/checkout/components/billing_address/index.tsx +2 -2
  30. package/templates/storefront/src/modules/checkout/components/shipping-address/index.tsx +2 -2
  31. package/templates/storefront/src/modules/common/components/phone-input/index.tsx +110 -0
  32. package/templates/storefront/src/modules/store/templates/index.tsx +82 -17
  33. package/templates/storefront/src/modules/store/templates/paginated-products.tsx +5 -0
  34. package/templates/storefront/src/modules/ub/campaign-blocks.tsx +1 -1
  35. package/templates/storefront/src/modules/ub/contact-page.tsx +78 -0
  36. package/templates/storefront/src/modules/ub/footer.tsx +26 -5
  37. package/templates/storefront/src/modules/ub/mobile-menu.tsx +49 -0
  38. package/templates/storefront/src/modules/ub/nav.tsx +2 -0
  39. package/templates/storefront/src/modules/ub/showcase.tsx +137 -0
  40. package/templates/storefront/src/styles/ub/account.css +199 -0
  41. package/templates/storefront/src/styles/ub/black-friday.css +96 -0
  42. package/templates/storefront/src/styles/ub/forms.css +61 -0
  43. package/templates/storefront/src/styles/ub/pages.css +382 -0
  44. package/templates/storefront/src/styles/ub/responsive.css +57 -0
  45. package/templates/storefront/src/styles/ub/showcase.css +85 -0
  46. package/templates/storefront/src/styles/ub/variants.css +64 -0
  47. package/templates/storefront/themes/black-friday-2/campaign.en.json +31 -0
  48. package/templates/storefront/themes/black-friday-2/campaign.fr.json +31 -0
  49. package/templates/storefront/themes/black-friday-2/theme.json +10 -0
  50. package/templates/storefront/themes/cyber-monday-2/campaign.en.json +31 -0
  51. package/templates/storefront/themes/cyber-monday-2/campaign.fr.json +31 -0
  52. package/templates/storefront/themes/cyber-monday-2/theme.json +10 -0
  53. package/templates/storefront/themes/halloween-2/campaign.en.json +31 -0
  54. package/templates/storefront/themes/halloween-2/campaign.fr.json +31 -0
  55. package/templates/storefront/themes/halloween-2/theme.json +10 -0
  56. package/templates/storefront/themes/noel-2/campaign.en.json +31 -0
  57. package/templates/storefront/themes/noel-2/campaign.fr.json +31 -0
  58. package/templates/storefront/themes/noel-2/theme.json +10 -0
  59. package/templates/storefront/themes/nouvel-an-2/campaign.en.json +31 -0
  60. package/templates/storefront/themes/nouvel-an-2/campaign.fr.json +31 -0
  61. package/templates/storefront/themes/nouvel-an-2/theme.json +10 -0
  62. package/templates/storefront/themes/thanksgiving-2/campaign.en.json +31 -0
  63. package/templates/storefront/themes/thanksgiving-2/campaign.fr.json +31 -0
  64. package/templates/storefront/themes/thanksgiving-2/theme.json +10 -0
@@ -0,0 +1,382 @@
1
+ /* Pages Boutique (/store) et Contact. Même markup pour tous les thèmes : tout passe par les tokens
2
+ (--hero-*, --primary, --surface…) et les presets (--ub-font-head, --ub-r-*). */
3
+
4
+ /* ---------- Bandeau de page (boutique, contact) ---------- */
5
+ .ub-shophero {
6
+ position: relative;
7
+ overflow: hidden;
8
+ background: var(--hero-bg);
9
+ color: var(--hero-ink);
10
+ border-radius: var(--ub-r-hero);
11
+ }
12
+ .ub-shophero::before {
13
+ content: "";
14
+ position: absolute;
15
+ inset: -40% -10% auto auto;
16
+ width: 60vw;
17
+ max-width: 820px;
18
+ aspect-ratio: 1;
19
+ border-radius: 50%;
20
+ background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 65%);
21
+ pointer-events: none;
22
+ }
23
+ .ub-shophero__in {
24
+ position: relative;
25
+ display: flex;
26
+ align-items: flex-end;
27
+ justify-content: space-between;
28
+ gap: var(--space-8);
29
+ padding-top: var(--space-16);
30
+ padding-bottom: var(--space-12);
31
+ }
32
+ .ub-shophero__title {
33
+ margin-top: var(--space-3) !important;
34
+ font-size: clamp(36px, 5.2vw, 68px);
35
+ line-height: 1.02;
36
+ max-width: 14ch;
37
+ animation: ub-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
38
+ }
39
+ .ub-shophero__sub {
40
+ margin-top: var(--space-4) !important;
41
+ max-width: 52ch;
42
+ color: var(--hero-muted);
43
+ font-size: 17px;
44
+ line-height: 26px;
45
+ animation: ub-rise 0.6s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
46
+ }
47
+ .ub-shophero__cd {
48
+ display: grid;
49
+ gap: var(--space-2);
50
+ flex: none;
51
+ animation: ub-rise 0.6s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
52
+ }
53
+ .ub-shophero__cd small {
54
+ font-size: 12px;
55
+ font-weight: 700;
56
+ letter-spacing: 0.08em;
57
+ text-transform: uppercase;
58
+ color: var(--primary);
59
+ }
60
+
61
+ /* ---------- Barre filtres : catégories + tri ---------- */
62
+ .ub-shop {
63
+ padding-top: var(--space-8);
64
+ padding-bottom: var(--space-16);
65
+ }
66
+ .ub-shop__bar {
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: space-between;
70
+ gap: var(--space-4);
71
+ flex-wrap: wrap;
72
+ padding-bottom: var(--space-6);
73
+ margin-bottom: var(--space-6);
74
+ border-bottom: 1px solid var(--border);
75
+ }
76
+ .ub-chips {
77
+ display: flex;
78
+ gap: var(--space-2);
79
+ overflow-x: auto;
80
+ scrollbar-width: none;
81
+ max-width: 100%;
82
+ }
83
+ .ub-chip {
84
+ flex: none;
85
+ padding: 9px 16px;
86
+ border: 1px solid var(--border);
87
+ border-radius: var(--radius-pill);
88
+ font-size: 14px;
89
+ font-weight: 600;
90
+ color: var(--ink);
91
+ background: var(--bg);
92
+ transition: background 0.15s, color 0.15s, border-color 0.15s;
93
+ }
94
+ .ub-chip:hover {
95
+ border-color: var(--ink);
96
+ }
97
+ .ub-chip[aria-current="page"] {
98
+ background: var(--ink);
99
+ border-color: var(--ink);
100
+ color: var(--bg);
101
+ }
102
+ .ub-sort {
103
+ display: inline-flex;
104
+ padding: 4px;
105
+ gap: 2px;
106
+ background: var(--surface);
107
+ border: 1px solid var(--border);
108
+ border-radius: var(--ub-r-btn);
109
+ }
110
+ .ub-sort__opt {
111
+ padding: 7px 14px;
112
+ font-size: 13px;
113
+ font-weight: 600;
114
+ color: var(--ink-muted);
115
+ border-radius: var(--ub-r-btn);
116
+ transition: background 0.15s, color 0.15s;
117
+ }
118
+ .ub-sort__opt:hover {
119
+ color: var(--ink);
120
+ }
121
+ .ub-sort__opt[aria-current="true"] {
122
+ background: var(--primary);
123
+ color: var(--on-primary);
124
+ }
125
+ .ub-shop__count {
126
+ margin-bottom: var(--space-4) !important;
127
+ font-size: 14px;
128
+ color: var(--ink-muted);
129
+ }
130
+
131
+ /* ---------- Contact ---------- */
132
+ .ub-contacthero__badge {
133
+ display: grid;
134
+ justify-items: end;
135
+ flex: none;
136
+ text-align: right;
137
+ animation: ub-rise 0.6s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
138
+ }
139
+ .ub-contacthero__badge b {
140
+ font-family: var(--ub-font-head);
141
+ font-size: clamp(48px, 7vw, 96px);
142
+ line-height: 1;
143
+ color: var(--primary);
144
+ }
145
+ .ub-contacthero__badge small {
146
+ margin-top: var(--space-2);
147
+ font-size: 13px;
148
+ color: var(--hero-muted);
149
+ }
150
+ .ub-contact__cards {
151
+ display: grid;
152
+ grid-template-columns: repeat(4, minmax(0, 1fr));
153
+ gap: var(--space-4);
154
+ margin: 0;
155
+ padding: 0;
156
+ list-style: none;
157
+ }
158
+ .ub-contact__card {
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: var(--space-3);
162
+ padding: var(--space-6);
163
+ background: var(--surface);
164
+ border: 1px solid var(--border);
165
+ border-radius: var(--ub-r-card);
166
+ transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
167
+ animation: ub-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
168
+ }
169
+ .ub-contact__card:nth-child(2) { animation-delay: 0.06s; }
170
+ .ub-contact__card:nth-child(3) { animation-delay: 0.12s; }
171
+ .ub-contact__card:nth-child(4) { animation-delay: 0.18s; }
172
+ .ub-contact__card:hover {
173
+ transform: translateY(-3px);
174
+ border-color: var(--primary);
175
+ box-shadow: var(--shadow-pop);
176
+ }
177
+ .ub-contact__ic {
178
+ display: inline-grid;
179
+ place-items: center;
180
+ width: 44px;
181
+ height: 44px;
182
+ border-radius: var(--ub-r-btn);
183
+ background: var(--primary);
184
+ color: var(--on-primary);
185
+ }
186
+ .ub-contact__ic svg {
187
+ width: 22px;
188
+ height: 22px;
189
+ }
190
+ .ub-contact__card h2 {
191
+ font-size: 18px;
192
+ line-height: 24px;
193
+ }
194
+ .ub-contact__card p {
195
+ flex: 1;
196
+ font-size: 14px;
197
+ line-height: 22px;
198
+ color: var(--ink-muted);
199
+ }
200
+ .ub-contact__cta {
201
+ display: inline-flex;
202
+ align-items: center;
203
+ gap: 6px;
204
+ font-size: 14px;
205
+ font-weight: 700;
206
+ color: var(--ink);
207
+ word-break: break-all;
208
+ }
209
+ .ub-contact__cta svg {
210
+ width: 16px;
211
+ height: 16px;
212
+ transition: transform 0.15s;
213
+ }
214
+ .ub-contact__card:hover .ub-contact__cta svg {
215
+ transform: translateX(3px);
216
+ }
217
+ .ub-contact__faq {
218
+ display: grid;
219
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
220
+ gap: var(--space-8);
221
+ margin-top: var(--space-16);
222
+ }
223
+ .ub-contact__faq > h2 {
224
+ font-size: clamp(28px, 3vw, 40px);
225
+ line-height: 1.1;
226
+ }
227
+ .ub-faq {
228
+ border-bottom: 1px solid var(--border);
229
+ }
230
+ .ub-faq summary {
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: space-between;
234
+ gap: var(--space-4);
235
+ padding: var(--space-4) 0;
236
+ font-size: 16px;
237
+ font-weight: 600;
238
+ cursor: pointer;
239
+ list-style: none;
240
+ }
241
+ .ub-faq summary::-webkit-details-marker {
242
+ display: none;
243
+ }
244
+ .ub-faq summary::after {
245
+ content: "";
246
+ background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor) !important;
247
+ background-size: 12px 2px, 2px 12px !important;
248
+ background-position: center !important;
249
+ background-repeat: no-repeat !important;
250
+ flex: none;
251
+ display: grid;
252
+ place-items: center;
253
+ width: 28px;
254
+ height: 28px;
255
+ border-radius: 50%;
256
+ background: var(--surface);
257
+ color: var(--primary);
258
+ font-size: 18px;
259
+ transition: transform 0.2s;
260
+ }
261
+ .ub-faq[open] summary::after {
262
+ transform: rotate(45deg);
263
+ }
264
+ .ub-faq p {
265
+ padding-bottom: var(--space-4);
266
+ color: var(--ink-muted);
267
+ line-height: 24px;
268
+ }
269
+
270
+ @keyframes ub-rise {
271
+ from { opacity: 0; transform: translateY(14px); }
272
+ to { opacity: 1; transform: none; }
273
+ }
274
+ @media (prefers-reduced-motion: reduce) {
275
+ .ub-shophero__title, .ub-shophero__sub, .ub-shophero__cd, .ub-contacthero__badge, .ub-contact__card { animation: none; }
276
+ }
277
+
278
+ @media (max-width: 1024px) {
279
+ .ub-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
280
+ }
281
+ @media (max-width: 768px) {
282
+ .ub-shophero__in { flex-direction: column; align-items: flex-start; padding-top: var(--space-12); padding-bottom: var(--space-8); }
283
+ .ub-contacthero__badge { justify-items: start; text-align: left; }
284
+ .ub-shop__bar { flex-direction: column; align-items: stretch; }
285
+ .ub-sort { align-self: flex-start; }
286
+ .ub-contact__cards { grid-template-columns: minmax(0, 1fr); }
287
+ .ub-contact__faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-12); }
288
+ }
289
+
290
+ /* ---------- Pied de page : bandeau CTA + bloc sombre arrondi ---------- */
291
+ .ub-footwrap {
292
+ --cta-bg: var(--primary);
293
+ --cta-ink: var(--on-primary);
294
+ --foot-bg: color-mix(in srgb, var(--ink) 94%, var(--bg));
295
+ --foot-ink: var(--bg);
296
+ display: grid;
297
+ gap: var(--space-4);
298
+ max-width: calc(var(--content-max) + 2 * var(--space-6));
299
+ margin: var(--space-16) auto var(--space-4);
300
+ padding: 0 var(--space-4);
301
+ }
302
+ .ub-footcta {
303
+ position: relative;
304
+ overflow: hidden;
305
+ display: grid;
306
+ justify-items: center;
307
+ gap: var(--space-4);
308
+ padding: clamp(48px, 7vw, 88px) var(--space-6);
309
+ text-align: center;
310
+ background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--cta-bg) 82%, #ffffff) 0%, var(--cta-bg) 60%);
311
+ color: var(--cta-ink);
312
+ border-radius: var(--radius-2xl);
313
+ }
314
+ .ub-footcta__shape {
315
+ position: absolute;
316
+ width: 220px;
317
+ height: 220px;
318
+ border: 38px solid currentColor;
319
+ border-radius: 56px;
320
+ opacity: 0.09;
321
+ pointer-events: none;
322
+ }
323
+ .ub-footcta__shape--a { top: -90px; left: -60px; transform: rotate(-18deg); }
324
+ .ub-footcta__shape--b { bottom: -110px; right: -40px; transform: rotate(24deg); }
325
+ .ub-footcta__eyebrow {
326
+ position: relative;
327
+ padding: 5px 12px;
328
+ border-radius: var(--radius-pill);
329
+ background: color-mix(in srgb, var(--cta-ink) 14%, transparent);
330
+ font-size: 12px;
331
+ font-weight: 700;
332
+ letter-spacing: 0.08em;
333
+ text-transform: uppercase;
334
+ }
335
+ .ub-footcta__title {
336
+ position: relative;
337
+ max-width: 20ch;
338
+ font-size: clamp(30px, 4.4vw, 56px);
339
+ line-height: 1.05;
340
+ }
341
+ .ub-footcta__title em {
342
+ font-style: normal;
343
+ text-decoration: underline;
344
+ text-decoration-thickness: 0.08em;
345
+ text-underline-offset: 0.12em;
346
+ }
347
+ .ub-footcta__sub {
348
+ position: relative;
349
+ max-width: 50ch;
350
+ font-size: 17px;
351
+ line-height: 26px;
352
+ opacity: 0.85;
353
+ }
354
+ .ub-footcta .ub-footcta__btn {
355
+ position: relative;
356
+ margin-top: var(--space-2);
357
+ background: var(--cta-ink);
358
+ color: var(--cta-bg);
359
+ border-color: var(--cta-ink);
360
+ }
361
+ .ub-footwrap .ub-footer {
362
+ margin: 0;
363
+ padding: var(--space-8) clamp(24px, 5vw, 64px) 0;
364
+ background: var(--foot-bg);
365
+ color: var(--foot-ink);
366
+ border: 0;
367
+ border-radius: var(--radius-2xl);
368
+ }
369
+ .ub-footwrap .ub-footer .ub-logo__mark { background: var(--cta-bg); }
370
+ .ub-footwrap .ub-footer h4 { opacity: 0.55; font-weight: 600; }
371
+ .ub-footwrap .ub-footer a { transition: opacity 0.15s; }
372
+ .ub-footwrap .ub-footer a:hover { opacity: 0.6; }
373
+ .ub-footwrap .ub-footer__top { padding-bottom: var(--space-16); }
374
+ .ub-footwrap .ub-pays span {
375
+ background: color-mix(in srgb, var(--foot-ink) 10%, transparent);
376
+ color: var(--foot-ink);
377
+ border-color: color-mix(in srgb, var(--foot-ink) 18%, transparent);
378
+ }
379
+ @media (max-width: 768px) {
380
+ .ub-footwrap { padding: 0 var(--space-2); }
381
+ .ub-footcta, .ub-footwrap .ub-footer { border-radius: var(--radius-xl); }
382
+ }
@@ -0,0 +1,57 @@
1
+ /* Mobile et tablette : menu burger, bandeau plus compact, pas de débordement horizontal. */
2
+ .ub-burger { display: none; }
3
+
4
+ @media (max-width: 900px) {
5
+ html, body { overflow-x: clip; }
6
+ .ub-nav { position: relative; }
7
+ .ub-nav .ub-wrap { gap: var(--space-3); height: 64px; }
8
+ .ub-nav__icons { margin-left: auto; gap: 2px; }
9
+ .ub-nav__cta { display: none !important; }
10
+
11
+ .ub-burger { display: block; }
12
+ .ub-burger summary { list-style: none; cursor: pointer; }
13
+ .ub-burger summary::-webkit-details-marker { display: none; }
14
+ .ub-burger__bars { display: grid; gap: 4px; width: 20px; }
15
+ .ub-burger__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
16
+ .ub-burger[open] .ub-burger__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
17
+ .ub-burger[open] .ub-burger__bars i:nth-child(2) { opacity: 0; }
18
+ .ub-burger[open] .ub-burger__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
19
+ .ub-burger__panel {
20
+ position: absolute;
21
+ left: 0;
22
+ right: 0;
23
+ top: 100%;
24
+ z-index: 60;
25
+ display: grid;
26
+ padding: var(--space-2) var(--space-6) var(--space-6);
27
+ background: var(--bg);
28
+ border-bottom: 1px solid var(--border);
29
+ box-shadow: var(--shadow-pop);
30
+ animation: ub-rise 0.25s both;
31
+ }
32
+ .ub-burger__panel a { padding: 14px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); }
33
+ .ub-burger__panel a[aria-current="page"] { color: var(--primary); }
34
+ .ub-burger__panel .ub-burger__cta { margin-top: var(--space-4); padding: 0 24px; border-bottom: 0; justify-content: center; }
35
+
36
+ .ub-section { padding: var(--space-8) 0; }
37
+ .ub-wrap { padding: 0 var(--space-4); }
38
+ }
39
+
40
+ @media (max-width: 600px) {
41
+ /* Barre du haut : un seul message (les 3 empilés prenaient jusqu'à 140 px au-dessus du hero) */
42
+ .ub-topbar .ub-wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
43
+ .ub-topbar .ub-wrap > span:not(:first-child) { display: none; }
44
+ .ub-topbar .ub-wrap > span { font-size: 12px; text-align: center; }
45
+ .ub-logo { font-size: 17px; }
46
+ .ub-grid { gap: var(--space-3) !important; }
47
+ .ub-card__body { padding: 10px 12px 12px !important; }
48
+ .ub-card__name { font-size: 14px !important; line-height: 19px !important; }
49
+ .ub-card__cat { font-size: 11px !important; }
50
+ .ub-price { flex-wrap: wrap; row-gap: 0; }
51
+ .ub-price__now { font-size: 15px !important; }
52
+ .ub-price__was { font-size: 12px !important; }
53
+ .ub-card__cart { width: 34px !important; height: 34px !important; flex: none; }
54
+ .ub-badge { font-size: 11px !important; padding: 3px 7px !important; }
55
+ .ub-trust { gap: var(--space-3) !important; }
56
+ .ub-sec-head h2 { font-size: 22px; line-height: 28px; }
57
+ }
@@ -0,0 +1,85 @@
1
+ /* Vitrines de l'accueil : accordéon « offres phares » et grande carte sombre. CSS seul (aucun JavaScript). */
2
+
3
+ /* ---------- Offres phares : accordéon horizontal ---------- */
4
+ .ub-fold__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin-bottom: var(--space-6) !important; }
5
+ .ub-fold { display: flex; gap: var(--space-3); height: clamp(360px, 42vw, 520px); margin: 0; padding: 0; list-style: none; }
6
+ .ub-fold__item { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow 0.55s cubic-bezier(0.3, 0.8, 0.2, 1); }
7
+ .ub-fold__link { position: absolute; inset: 0; overflow: hidden; display: block; border-radius: var(--ub-r-card); background: var(--surface); border: 1px solid var(--border); }
8
+ .ub-fold__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.45s, transform 0.8s; }
9
+ .ub-fold__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.78) 100%); opacity: 0; transition: opacity 0.45s; }
10
+ .ub-fold__label { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; white-space: nowrap; transform: translate(-50%, -50%) rotate(-90deg); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); transition: opacity 0.25s; }
11
+ .ub-fold__num { color: var(--primary); }
12
+ .ub-fold__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: var(--space-6); padding-right: 88px; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity 0.35s 0.15s, transform 0.45s 0.15s; }
13
+ .ub-fold__off { justify-self: start; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: 13px; }
14
+ .ub-fold__name { font-family: var(--ub-font-head); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; text-transform: var(--ub-head-case); }
15
+ .ub-fold__price { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; }
16
+ .ub-fold__price s { font-size: 14px; font-weight: 500; opacity: 0.7; }
17
+ .ub-fold__go { position: absolute; right: var(--space-6); bottom: var(--space-6); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 0.18); backdrop-filter: blur(6px); }
18
+ .ub-fold__go svg { width: 20px; height: 20px; }
19
+
20
+ /* Carte ouverte : la 1re par défaut, sinon celle survolée ou ayant le focus */
21
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child,
22
+ .ub-fold__item:hover,
23
+ .ub-fold__item:focus-within { flex-grow: 6; }
24
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child .ub-fold__img,
25
+ .ub-fold__item:hover .ub-fold__img,
26
+ .ub-fold__item:focus-within .ub-fold__img { opacity: 1; transform: none; }
27
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child .ub-fold__link::after,
28
+ .ub-fold__item:hover .ub-fold__link::after,
29
+ .ub-fold__item:focus-within .ub-fold__link::after { opacity: 1; }
30
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child .ub-fold__body,
31
+ .ub-fold__item:hover .ub-fold__body,
32
+ .ub-fold__item:focus-within .ub-fold__body { opacity: 1; transform: none; }
33
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child .ub-fold__label,
34
+ .ub-fold__item:hover .ub-fold__label,
35
+ .ub-fold__item:focus-within .ub-fold__label { opacity: 0; }
36
+ /* Pas d'image : l'icône « photo » ne s'affiche que sur la carte ouverte (sinon elle chevauche le nom vertical) */
37
+ .ub-fold__img.ub-ph { transform: none; }
38
+
39
+ /* ---------- Grande carte sombre (onglets radio + :has) ---------- */
40
+ .ub-spot { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px); background: #0f0d0b; color: #f7f5f2; border-radius: var(--radius-2xl); }
41
+ .ub-spot::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 25%, transparent), transparent 65%); pointer-events: none; }
42
+ .ub-spot__head { position: relative; display: grid; justify-items: center; gap: var(--space-3); text-align: center; margin-bottom: var(--space-12); }
43
+ .ub-spot__title { max-width: 18ch; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
44
+ .ub-spot__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
45
+ .ub-spot__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ub-r-card); background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--primary) 85%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--accent) 70%, var(--primary)) 100%); box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--primary) 55%, transparent); }
46
+ .ub-spot__media { position: absolute; inset: 8%; display: grid; place-items: center; opacity: 0; transform: scale(0.94) rotate(-2deg); transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
47
+ .ub-spot__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ub-r-media); box-shadow: 0 20px 50px rgb(0 0 0 / 0.35); }
48
+ .ub-spot__media .ub-ph { width: 100%; height: 100%; border-radius: var(--ub-r-media); background: rgb(255 255 255 / 0.15); color: #fff; }
49
+ .ub-spot:has(#ub-spot-0:checked) .ub-spot__media[data-i="0"],
50
+ .ub-spot:has(#ub-spot-1:checked) .ub-spot__media[data-i="1"],
51
+ .ub-spot:has(#ub-spot-2:checked) .ub-spot__media[data-i="2"],
52
+ .ub-spot:has(#ub-spot-3:checked) .ub-spot__media[data-i="3"] { opacity: 1; transform: none; }
53
+ .ub-spot__list { display: grid; }
54
+ .ub-spot__item { position: relative; border-bottom: 1px solid rgb(255 255 255 / 0.1); transition: background 0.3s; }
55
+ .ub-spot__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform 0.35s; }
56
+ .ub-spot__item:has(.ub-spot__radio:checked) { background: rgb(255 255 255 / 0.05); }
57
+ .ub-spot__item:has(.ub-spot__radio:checked)::before { transform: none; }
58
+ .ub-spot__radio { position: absolute; opacity: 0; pointer-events: none; }
59
+ .ub-spot__label { position: static !important; transform: none !important; margin: 0 !important; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); cursor: pointer; font-size: 17px !important; line-height: 24px !important; font-weight: 600; }
60
+ .ub-spot__radio:focus-visible + .ub-spot__label { outline: 2px solid var(--primary); outline-offset: -2px; }
61
+ .ub-spot__num { font-size: 13px; color: var(--primary); font-weight: 700; }
62
+ .ub-spot__name { flex: 1; }
63
+ .ub-spot__off { padding: 3px 9px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary); font-size: 12px; }
64
+ .ub-spot__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s; }
65
+ .ub-spot__more > div { overflow: hidden; min-height: 0; }
66
+ .ub-spot__item:has(.ub-spot__radio:checked) .ub-spot__more { grid-template-rows: 1fr; }
67
+ .ub-spot__more p { padding: 0 var(--space-6) var(--space-3) calc(var(--space-6) + 32px); color: rgb(247 245 242 / 0.7); font-size: 14px; line-height: 22px; }
68
+ .ub-spot__buy { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 var(--space-6) var(--space-4) calc(var(--space-6) + 32px); }
69
+ .ub-spot__price { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 700; }
70
+ .ub-spot__price s { font-size: 14px; font-weight: 500; opacity: 0.55; }
71
+ .ub-spot__cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--ub-r-btn); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; }
72
+ .ub-spot__cta svg { width: 16px; height: 16px; }
73
+
74
+ @media (max-width: 900px) {
75
+ .ub-fold { height: auto; flex-direction: column; }
76
+ .ub-fold__item { flex: none; height: 76px; transition: height 0.5s; }
77
+ .ub-fold:not(:hover):not(:focus-within) .ub-fold__item:first-child,
78
+ .ub-fold__item:hover,
79
+ .ub-fold__item:focus-within { height: 340px; }
80
+ .ub-fold__label { left: var(--space-6); transform: translateY(-50%); }
81
+ .ub-spot__grid { grid-template-columns: minmax(0, 1fr); }
82
+ }
83
+ @media (prefers-reduced-motion: reduce) {
84
+ .ub-fold__item, .ub-fold__img, .ub-fold__body, .ub-spot__media, .ub-spot__more { transition: none; }
85
+ }
@@ -0,0 +1,64 @@
1
+ /* Variantes de thème (2e site par événement) : data-theme = mise en page empruntée à un autre thème,
2
+ data-variant = palette, polices et arrondis propres. Chargé après tokens.css et bundle.css : à spécificité égale,
3
+ ces règles l'emportent. Déclarées dans themes/<id>/theme.json (champ "layout"). */
4
+ [data-variant="halloween-2"]{--bg:#0b0a10;--surface:#15131d;--tint-1:#1c1830;--tint-2:#1a2415;--tint-3:#241630;--tint-4:#2a1b12;--ink:#f5f3ff;--ink-muted:#a7a3b8;--border:#26222f;--primary:#a3e635;--on-primary:#0b0a10;--accent:#7c3aed;--on-accent:#ffffff;--sale:#fb923c;--star:#facc15;--success:#4ade80;--hero-bg:#120d1f;--hero-ink:#f5f3ff;--hero-muted:#b7aecf;--band-bg:#7c3aed;--band-ink:#ffffff;--bubble-bg:#a3e635;--bubble-ink:#0b0a10;--topbar-bg:#7c3aed;--topbar-ink:#ffffff;--focus:#a3e635;
5
+ --ub-font-head:var(--font-oswald);--ub-font-body:var(--font-inter);
6
+ --ub-head-weight:700;--ub-head-case:uppercase;--ub-head-track:0.01em;
7
+ --ub-r-card:var(--radius-md);--ub-r-btn:var(--radius-sm);--ub-r-tile:var(--radius-md);--ub-r-hero:0px;--ub-r-media:var(--radius-md);
8
+ }
9
+ [data-variant="thanksgiving-2"]{--bg:#fffaf3;--surface:#f7efe3;--tint-1:#f3e3cc;--tint-2:#e6ecd9;--tint-3:#f6ddc9;--tint-4:#efe6d3;--ink:#2b1d12;--ink-muted:#6f5b49;--border:#eadcc8;--primary:#2f5d3a;--on-primary:#ffffff;--accent:#d4912a;--on-accent:#2b1d12;--sale:#b4441e;--star:#d4912a;--success:#2f5d3a;--hero-bg:#f4e6d0;--hero-ink:#2b1d12;--hero-muted:#6f5b49;--band-bg:#2f5d3a;--band-ink:#fff8ec;--bubble-bg:#d4912a;--bubble-ink:#2b1d12;--topbar-bg:#2f5d3a;--topbar-ink:#fff8ec;--focus:#2563eb;
10
+ --ub-font-head:var(--font-sora);--ub-font-body:var(--font-jakarta);
11
+ --ub-head-weight:700;--ub-head-case:none;--ub-head-track:-0.02em;
12
+ --ub-r-card:var(--radius-2xl);--ub-r-btn:var(--radius-pill);--ub-r-tile:var(--radius-2xl);--ub-r-hero:var(--radius-2xl);--ub-r-media:var(--radius-2xl);
13
+ }
14
+ [data-variant="black-friday-2"]{--bg:#070707;--surface:#121110;--tint-1:#1d140c;--tint-2:#171615;--tint-3:#2a1606;--tint-4:#151414;--ink:#fafaf9;--ink-muted:#a8a29e;--border:#262422;--primary:#ff6a00;--on-primary:#0a0a0a;--accent:#ffa13d;--on-accent:#0a0a0a;--sale:#ff6a00;--star:#fbbf24;--success:#4ade80;--hero-bg:#030303;--hero-ink:#ffffff;--hero-muted:#a8a29e;--band-bg:#ff6a00;--band-ink:#0a0a0a;--bubble-bg:#ff6a00;--bubble-ink:#0a0a0a;--topbar-bg:#ff6a00;--topbar-ink:#0a0a0a;--focus:#ffa13d;
15
+ --ub-font-head:var(--font-oswald);--ub-font-body:var(--font-inter);
16
+ --ub-head-weight:700;--ub-head-case:uppercase;--ub-head-track:0.005em;
17
+ --ub-r-card:var(--radius-lg);--ub-r-btn:var(--radius-pill);--ub-r-tile:var(--radius-lg);--ub-r-hero:0px;--ub-r-media:var(--radius-lg);
18
+ }
19
+ [data-variant="cyber-monday-2"]{--bg:#070b18;--surface:#0e1426;--tint-1:#10213a;--tint-2:#1a1238;--tint-3:#0d2a2a;--tint-4:#2a1030;--ink:#e6f1ff;--ink-muted:#8ea0bf;--border:#1b2540;--primary:#22d3ee;--on-primary:#04111a;--accent:#e879f9;--on-accent:#0a0a14;--sale:#f472b6;--star:#facc15;--success:#34d399;--hero-bg:#0a1022;--hero-ink:#e6f1ff;--hero-muted:#9fb2d3;--band-bg:#111a36;--band-ink:#e6f1ff;--bubble-bg:#22d3ee;--bubble-ink:#04111a;--topbar-bg:#22d3ee;--topbar-ink:#04111a;--focus:#e879f9;
20
+ --ub-font-head:var(--font-sora);--ub-font-body:var(--font-inter);
21
+ --ub-head-weight:600;--ub-head-case:uppercase;--ub-head-track:0.02em;
22
+ --ub-r-card:var(--radius-lg);--ub-r-btn:var(--radius-md);--ub-r-tile:var(--radius-lg);--ub-r-hero:0px;--ub-r-media:var(--radius-lg);
23
+ }
24
+ [data-variant="noel-2"]{--bg:#0f1d17;--surface:#16271f;--tint-1:#1d3328;--tint-2:#2a1d1d;--tint-3:#2b2715;--tint-4:#1a2633;--ink:#f7f3e8;--ink-muted:#b5b39f;--border:#243a2f;--primary:#d4af37;--on-primary:#0f1d17;--accent:#c0392b;--on-accent:#ffffff;--sale:#e25c4b;--star:#d4af37;--success:#6fcf97;--hero-bg:#132a20;--hero-ink:#f7f3e8;--hero-muted:#c2c0ab;--band-bg:#7f1d1d;--band-ink:#f7f3e8;--bubble-bg:#d4af37;--bubble-ink:#0f1d17;--topbar-bg:#7f1d1d;--topbar-ink:#f7f3e8;--focus:#d4af37;
25
+ --ub-font-head:var(--font-jakarta);--ub-font-body:var(--font-inter);
26
+ --ub-head-weight:800;--ub-head-case:none;--ub-head-track:-0.02em;
27
+ --ub-r-card:var(--radius-lg);--ub-r-btn:var(--radius-md);--ub-r-tile:var(--radius-lg);--ub-r-hero:0px;--ub-r-media:var(--radius-lg);
28
+ }
29
+ [data-variant="nouvel-an-2"]{--bg:#0c0f24;--surface:#141838;--tint-1:#1c2150;--tint-2:#2a1838;--tint-3:#13263a;--tint-4:#2b2233;--ink:#f4f1ff;--ink-muted:#a6a8c9;--border:#22285a;--primary:#f5b5c8;--on-primary:#0c0f24;--accent:#e9cf7a;--on-accent:#0c0f24;--sale:#f5b5c8;--star:#e9cf7a;--success:#6ee7b7;--hero-bg:#10143a;--hero-ink:#f4f1ff;--hero-muted:#b6b8d9;--band-bg:#e9cf7a;--band-ink:#0c0f24;--bubble-bg:#f5b5c8;--bubble-ink:#0c0f24;--topbar-bg:#e9cf7a;--topbar-ink:#0c0f24;--focus:#f5b5c8;
30
+ --ub-font-head:var(--font-space-grotesk);--ub-font-body:var(--font-outfit);
31
+ --ub-head-weight:700;--ub-head-case:uppercase;--ub-head-track:0.02em;
32
+ --ub-r-card:var(--radius-xl);--ub-r-btn:var(--radius-pill);--ub-r-tile:var(--radius-xl);--ub-r-hero:0px;--ub-r-media:var(--radius-xl);
33
+ }
34
+
35
+ /* Thèmes sombres : pied de page plus noir que la page (au lieu de l'inversion claire des thèmes clairs). */
36
+ [data-theme="halloween"] .ub-footwrap,
37
+ [data-variant="halloween-2"] .ub-footwrap,
38
+ [data-variant="noel-2"] .ub-footwrap,
39
+ [data-variant="nouvel-an-2"] .ub-footwrap { --foot-bg: color-mix(in srgb, var(--bg) 45%, #000); --foot-ink: var(--ink); }
40
+ [data-theme="halloween"] .ub-footwrap .ub-footer,
41
+ [data-variant="halloween-2"] .ub-footwrap .ub-footer,
42
+ [data-variant="noel-2"] .ub-footwrap .ub-footer,
43
+ [data-variant="nouvel-an-2"] .ub-footwrap .ub-footer { border: 1px solid var(--border); }
44
+
45
+ /* Blackout (noir et orange) : hero plein noir, titre géant, visuel sans cadre avec halo orange. */
46
+ [data-variant="black-friday-2"] .ub-hero__title { font-size: clamp(56px, 9vw, 128px); line-height: 0.92; letter-spacing: -0.01em; }
47
+ [data-variant="black-friday-2"] .ub-hero__title em { font-style: normal; color: var(--primary); text-shadow: 0 0 40px color-mix(in srgb, var(--primary) 55%, transparent); }
48
+ /* Visuel fondu dans le décor : toute la moitié droite du hero, sans cadre, bords gauche et bas qui disparaissent dans le noir. */
49
+ [data-variant="black-friday-2"] .ub-hero { position: relative; overflow: hidden; }
50
+ [data-variant="black-friday-2"] .ub-hero__in { position: static; min-height: clamp(560px, 48vw, 760px); align-items: center; }
51
+ [data-variant="black-friday-2"] .ub-hero__text { position: relative; z-index: 1; }
52
+ [data-variant="black-friday-2"] .ub-hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; min-height: 0; z-index: 0; display: block; }
53
+ [data-variant="black-friday-2"] .ub-hero__blob,
54
+ [data-variant="black-friday-2"] .ub-bubble { display: none; }
55
+ [data-variant="black-friday-2"] .ub-hero__photo { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
56
+ [data-variant="black-friday-2"] .ub-hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, var(--hero-bg), transparent); pointer-events: none; }
57
+ @media (max-width: 1024px) {
58
+ [data-variant="black-friday-2"] .ub-hero__in { min-height: 0; }
59
+ [data-variant="black-friday-2"] .ub-hero__media { position: relative; inset: auto; width: auto; height: 380px; margin: 0 calc(-1 * var(--space-6)); display: block; }
60
+ [data-variant="black-friday-2"] .ub-hero__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
61
+ }
62
+
63
+ /* Barre de réassurance orange : icônes et contours en noir (sinon orange sur orange) */
64
+ [data-variant="black-friday-2"] .ub-trust__ic { color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 30%, transparent); }
@@ -0,0 +1,31 @@
1
+ {
2
+ "topbar": [
3
+ "BLACKOUT: prices go dark",
4
+ "Free shipping over {freeShipping}",
5
+ "Secure checkout, 30-day returns"
6
+ ],
7
+ "hero": {
8
+ "eyebrow": "Prices go dark",
9
+ "title": "Black Friday",
10
+ "highlight": "Friday",
11
+ "sub": "Up to {discount} off the whole store. No code needed, discount already applied. Ends {endDate}.",
12
+ "cta": "See the deals",
13
+ "cta2": "Today's offers",
14
+ "bubble": [
15
+ "Up to",
16
+ "{discount}",
17
+ "OFF"
18
+ ]
19
+ },
20
+ "promo": {
21
+ "eyebrow": "Flash deal",
22
+ "title": "The biggest discounts go first",
23
+ "text": "Limited stock on flash deals: when it's gone, it's gone.",
24
+ "cta": "Grab it",
25
+ "seal": "Until {endDate}"
26
+ },
27
+ "sections": {
28
+ "categories": "Blackout aisles",
29
+ "products": "Flash deals"
30
+ }
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "topbar": [
3
+ "BLACKOUT : les prix s'éteignent",
4
+ "Livraison offerte dès {freeShipping}",
5
+ "Paiement sécurisé, retours 30 jours"
6
+ ],
7
+ "hero": {
8
+ "eyebrow": "Les prix s’éteignent",
9
+ "title": "Black Friday",
10
+ "highlight": "Friday",
11
+ "sub": "Jusqu'à -{discount} sur toute la boutique. Pas de code, la remise est déjà appliquée. Fin le {endDate}.",
12
+ "cta": "Voir les prix barrés",
13
+ "cta2": "Offres du jour",
14
+ "bubble": [
15
+ "Jusqu'à",
16
+ "{discount}",
17
+ "OFF"
18
+ ]
19
+ },
20
+ "promo": {
21
+ "eyebrow": "Offre éclair",
22
+ "title": "Les plus grosses remises partent en premier",
23
+ "text": "Stock limité sur les offres éclair : quand c'est parti, c'est parti.",
24
+ "cta": "Foncer",
25
+ "seal": "Jusqu'au {endDate}"
26
+ },
27
+ "sections": {
28
+ "categories": "Rayons en blackout",
29
+ "products": "Offres éclair"
30
+ }
31
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "black-friday-2",
3
+ "name": "Black Friday · Blackout",
4
+ "reference": "variante noir et orange, mise en page halloween",
5
+ "layout": "halloween",
6
+ "fonts": {
7
+ "head": "oswald",
8
+ "body": "inter"
9
+ }
10
+ }