File size: 30,929 Bytes
749845c
 
4299845
 
749845c
 
 
4946cad
4299845
 
 
 
749845c
 
 
4299845
 
749845c
 
 
4946cad
4299845
 
 
 
749845c
 
4299845
749845c
 
 
 
 
 
4299845
749845c
4299845
749845c
4299845
 
749845c
 
4299845
749845c
4299845
 
 
749845c
 
 
 
 
4299845
749845c
 
f7eadbc
4299845
749845c
4946cad
 
 
749845c
 
4299845
749845c
4299845
 
749845c
4299845
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749845c
 
4299845
 
749845c
4299845
749845c
 
 
 
 
 
4299845
 
 
 
 
 
 
4946cad
4299845
749845c
 
4299845
 
749845c
4299845
 
 
749845c
 
 
4299845
 
 
 
 
 
 
 
 
 
f7eadbc
 
 
 
749845c
f7eadbc
749845c
f7eadbc
 
 
749845c
f7eadbc
 
 
 
 
 
 
 
4299845
f7eadbc
 
 
 
4946cad
f7eadbc
749845c
f7eadbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749845c
f7eadbc
 
 
 
4299845
f7eadbc
 
 
 
 
4946cad
f7eadbc
4299845
f7eadbc
 
 
749845c
f7eadbc
 
 
 
 
 
749845c
f7eadbc
 
 
 
 
4946cad
 
f7eadbc
 
 
 
 
 
 
4946cad
f7eadbc
4946cad
f7eadbc
749845c
f7eadbc
 
 
4946cad
f7eadbc
 
 
 
 
 
4299845
f7eadbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4299845
f7eadbc
 
 
 
 
 
 
 
 
 
4299845
f7eadbc
 
 
 
 
 
 
 
 
 
 
 
 
749845c
f7eadbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749845c
f7eadbc
 
 
 
 
 
4299845
749845c
f7eadbc
4299845
f7eadbc
 
4299845
 
4946cad
749845c
 
f7eadbc
 
4299845
f7eadbc
4946cad
4299845
 
f7eadbc
4299845
f7eadbc
 
4946cad
f7eadbc
 
 
4946cad
f7eadbc
749845c
f7eadbc
 
 
 
 
 
 
 
 
 
 
749845c
f7eadbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749845c
 
 
 
 
f7eadbc
 
 
 
da73e58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff7a428
 
da73e58
 
 
 
 
ff7a428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
/* ==========================================================================
   OPSIOM — Pages hors chat (v2 « Entrelacs »)
   Connexion, inscription, progression, codes de promo, administration.
   Mêmes jetons que chat.css : clair par défaut, sombre via <html data-theme="dark">.
   ========================================================================== */

:root {
  --pop-rgb: 176,96,154; --red-rgb: 179,52,90; --green-rgb: 47,168,120; --amber-rgb: 201,138,30; --bg-rgb: 246,241,249;
  --bg: #F6F1F9; --side: #EDE5F3; --surface: #FFFFFF;
  --ink: #20102E; --ink2: #5B4A6E; --faint: #76668B;
  --line: rgba(48, 24, 72, .13); --hover: rgba(72, 24, 72, .07); --chip: rgba(72, 24, 72, .07);
  --ubg: #301848; --uink: #FFFFFF; --pop: #B0609A;
  --gtext: linear-gradient(100deg, #B0609A 0%, #5A2A82 100%);
  --grad: linear-gradient(135deg, #CF8FBF 0%, #8A52B0 50%, #4A2070 100%);
  --shadow: 0 14px 40px -14px rgba(72, 24, 72, .30), 0 1px 0 rgba(255, 255, 255, .9) inset;
  --green: #2FA878; --amber: #C98A1E; --red: #B3345A;
  --code: #1E1030; --codeInk: #EDE4F5;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --pop-rgb: 230,169,204; --red-rgb: 240,138,165; --green-rgb: 69,217,154; --amber-rgb: 240,197,106; --bg-rgb: 15,10,23;
  --bg: #0F0A17; --side: #140D1E; --surface: #1B1228;
  --ink: #F5EFFA; --ink2: #BBAECB; --faint: #9A8CAE;
  --line: rgba(255, 255, 255, .10); --hover: rgba(255, 255, 255, .06); --chip: rgba(255, 255, 255, .07);
  --ubg: #3A2262; --uink: #F5EFFA; --pop: #E6A9CC;
  --gtext: linear-gradient(100deg, #F0B5D6 0%, #A878D0 100%);
  --shadow: 0 18px 44px -14px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  --green: #45D99A; --amber: #F0C56A; --red: #F08AA5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input { font-family: inherit; }
button { color: inherit; cursor: pointer; }
a { color: var(--pop); }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 2px; }
.mono, code { font-family: 'Geist Mono', ui-monospace, monospace; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
.w {
  display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(6px);
  animation: word-in .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0ms);
}

/* ---- Messages flash ---- */
.flash-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  border: 1px solid transparent; color: var(--ink);
}
.flash.error { background: rgba(var(--red-rgb), 0.1)); border-color: rgba(var(--red-rgb), 0.35); }
.flash.info { background: rgba(var(--pop-rgb), 0.1)); border-color: rgba(var(--pop-rgb), 0.35); }
.flash.success { background: rgba(var(--green-rgb), 0.1)); border-color: rgba(var(--green-rgb), 0.35); }

/* ==========================================================================
   Connexion / inscription
   ========================================================================== */
body.auth-page { display: block; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.auth-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 48px; text-align: center; color: #F5EFFA;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(207, 143, 191, .30), transparent 70%),
    radial-gradient(70% 60% at 85% 100%, rgba(138, 82, 176, .35), transparent 70%),
    linear-gradient(160deg, #2A1442 0%, #170B26 100%);
}
.auth-hero .hero-logo { width: clamp(170px, 22vw, 280px); height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: float 8s ease-in-out infinite; position: relative; }
.auth-hero .hero-title {
  position: relative; margin: 0; max-width: 520px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.02em;
}
.auth-hero .hero-title em { font-style: italic; color: #F0B5D6; }
.auth-hero .hero-sub { position: relative; margin: 0; max-width: 400px; font-size: 16px; line-height: 1.55; color: #CDBEDD; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 420px; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.auth-brand img { width: 32px; height: 32px; object-fit: contain; }
#brand-name-auth, .auth-brand span { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.auth-title { margin: 0 0 8px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 46px; line-height: 1.02; letter-spacing: -.02em; }
.auth-subtitle { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }

.octix-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: 14px;
  background: var(--chip); font-size: 13px; line-height: 1.5; color: var(--ink2);
}
.octix-note svg { flex: none; margin-top: 2px; color: var(--pop); }
.octix-note strong { color: var(--ink); font-weight: 600; }

.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.field-input-wrap { position: relative; }
.field-input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.field input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font-size: 15.5px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field-input-wrap input { padding-left: 44px; }
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:focus { border-color: var(--pop); box-shadow: 0 0 0 4px rgba(var(--pop-rgb), 0.18); }
.field-hint { font-size: 12px; color: var(--faint); }

.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 4px; border: 0; border-radius: 16px;
  background: var(--grad); color: #fff; font-size: 15.5px; font-weight: 500; box-shadow: var(--shadow); transition: transform .2s, filter .2s;
}
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.auth-submit:active { transform: scale(.99); }
.auth-switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--ink2); }
.auth-switch a { color: var(--pop); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { padding: 34px 24px 30px; gap: 16px; }
  .auth-hero .hero-logo { width: 120px; }
  .auth-hero .hero-title { font-size: 32px; }
  .auth-hero .hero-sub { display: none; }
  .auth-panel { padding: 28px 20px 40px; align-items: flex-start; }
  .auth-title { font-size: 40px; }
}

/* Connexion : bouton de thème flottant + lien externe */
.auth-theme { position: fixed; top: 16px; right: 16px; z-index: 10; }
.auth-switch a { display: inline-flex; align-items: center; gap: 5px; }

/* ==========================================================================
   Composants communs (pages hors chat)
   ========================================================================== */
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink2); display: flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
#theme-toggle .i-sun, #theme-toggle .i-moon { display: flex; }
#theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .i-sun { display: flex; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: none; }
.avatar-chip {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}

.topnav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: rgba(var(--bg-rgb), 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tn-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.tn-brand img { width: 30px; height: 30px; object-fit: contain; }
.tn-brand span { font-family: 'Instrument Serif', Georgia, serif; font-size: 27px; line-height: 1; letter-spacing: -.01em; }
.tn-tabs { display: flex; gap: 2px; padding: 3px; margin: 0 auto; border-radius: 14px; background: var(--chip); }
.tn-tab {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 11px;
  color: var(--ink2); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s;
}
.tn-tab:hover { color: var(--ink); }
.tn-tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(40, 10, 60, .18); }
.tn-right { display: flex; align-items: center; gap: 10px; }
.tn-user { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; }

.page { max-width: 1120px; margin: 0 auto; padding: 40px 24px 88px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.page-eyebrow { margin: 0 0 10px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pop); }
.page-title { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.page-title em { font-style: italic; background: var(--gtext); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.page-lead { margin: 14px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.65; color: var(--ink2); }
.page-lead strong { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, filter .2s;
}
.btn:hover:not(:disabled) { background: var(--hover); border-color: var(--pop); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover:not(:disabled) { background: var(--grad); border-color: transparent; transform: translateY(-1px); filter: brightness(1.08); }
.btn-sm { height: 36px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.btn-danger:hover:not(:disabled) { color: var(--red); border-color: var(--red); background: rgba(var(--red-rgb), 0.08); }
.btn .ic { flex: none; }

.card {
  display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.card-title { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.card-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--faint); }
.ico-chip {
  flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--pop);
}
.ico-chip.is-grad { background: var(--grad); color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--chip);
  font-size: 12.5px; font-weight: 500; color: var(--ink2); white-space: nowrap;
}
.pill-ok { background: rgba(var(--green-rgb), 0.16); color: var(--green); }
.pill-off { background: rgba(var(--red-rgb), 0.14); color: var(--red); }
.pill-mono { font-family: 'Geist Mono', monospace; font-size: 12px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; text-align: center; color: var(--ink2); }
.empty img { width: 74px; height: 74px; object-fit: contain; opacity: .9; filter: drop-shadow(0 12px 14px rgba(72, 24, 100, .25)); }
.empty strong { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.empty p { margin: 0; max-width: 320px; font-size: 14px; line-height: 1.55; color: var(--faint); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.notice .ic { margin-top: 1px; }
.notice-warn { background: rgba(var(--red-rgb), 0.1)); border-color: rgba(var(--red-rgb), 0.35); }
.notice-warn .ic { color: var(--red); }
.notice-ok { background: rgba(var(--green-rgb), 0.09)); border-color: rgba(var(--green-rgb), 0.3); }
.notice-ok .ic { color: var(--green); }

/* ==========================================================================
   Progression
   ========================================================================== */
.now-card { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px 22px; padding: 22px 26px; border-color: rgba(var(--pop-rgb), 0.4)); box-shadow: var(--shadow); }
.now-card .now-main { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.now-eyebrow { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.now-name { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.now-stat { display: flex; flex-direction: column; gap: 2px; }
.now-stat b { font-family: 'Geist Mono', monospace; font-size: 20px; font-weight: 500; }
.now-stat span { font-size: 12.5px; color: var(--faint); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.plan-card.is-unlocked { border-color: var(--pop); box-shadow: var(--shadow); }
.plan-top { display: flex; align-items: center; gap: 14px; }
.plan-top .grow { flex: 1; min-width: 0; }
.bar { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar.is-warn > i { background: var(--amber); }
.missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.missions li { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 12px; font-size: 15px; color: var(--ink2); }
.missions li:hover { background: var(--hover); }
.missions li.done { color: var(--ink); }
.m-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; }
.missions li.done .m-check { border-color: transparent; background: var(--grad); color: #fff; }
.m-label { flex: 1; min-width: 0; }
.m-count { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.reward { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 16px; background: var(--chip); font-size: 14px; color: var(--ink2); }
.reward b { color: var(--ink); font-weight: 600; }
.reward .it { display: inline-flex; align-items: center; gap: 7px; }
.reward .ic { color: var(--pop); }
.lab-card { border-style: dashed; }
.lab-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.center { display: flex; justify-content: center; }

/* ==========================================================================
   Codes de promo (utilisateur)
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ticket {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; color: #F5EFFA; overflow: visible;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(207, 143, 191, .35), transparent 70%),
    linear-gradient(160deg, #3A1D5E 0%, #1C0E2F 100%);
  box-shadow: var(--shadow); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ticket-top { display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 26px; }
.ticket-top .ico-chip { background: rgba(255, 255, 255, .12); color: #F0B5D6; }
.ticket-top h2 { margin: 6px 0 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -.01em; }
.ticket-top p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #CDBEDD; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, .22); margin: 0 22px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-cut::before { left: -36px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after { right: -36px; clip-path: inset(0 50% 0 0); }
.ticket-bottom { padding: 24px 30px 30px; }
.promo-form { display: flex; flex-direction: column; gap: 12px; }
.promo-form input {
  width: 100%; height: 56px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .08);
  color: #fff; font-family: 'Geist Mono', monospace; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; text-align: center; outline: 0;
}
.promo-form input::placeholder { color: rgba(245, 239, 250, .5); letter-spacing: .1em; }
.promo-form input:focus { border-color: #F0B5D6; box-shadow: 0 0 0 4px rgba(240, 181, 214, .22); }
.promo-form .btn { height: 54px; border-radius: 16px; background: #fff; color: #2A1442; border-color: transparent; font-size: 15.5px; }
.promo-form .btn:hover { background: #F5EFFA; }
.grants { display: flex; flex-direction: column; gap: 10px; }
.grant { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.grant .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.grant b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.grant small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }

/* ==========================================================================
   Administration
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.stat .ico-chip { width: 42px; height: 42px; border-radius: 14px; }
.stat b { display: block; font-family: 'Geist Mono', monospace; font-size: 24px; font-weight: 500; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--faint); }

.admin-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-grid > .card:first-child { position: sticky; top: 84px; }
.admin-form { display: flex; flex-direction: column; gap: 22px; }
.fs { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fs-title { display: flex; align-items: center; gap: 10px; padding: 0; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fs-title i { width: 22px; height: 22px; border-radius: 50%; background: var(--chip); color: var(--pop); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; letter-spacing: 0; }
.admin-form-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.admin-form-row label, .admin-form-label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form-row input[type="text"], .admin-form-row input[type="date"] {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg);
  color: var(--ink); font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.admin-form-row input::placeholder { color: var(--faint); opacity: 1; }
.admin-form-row input:focus { border-color: var(--pop); box-shadow: 0 0 0 4px rgba(var(--pop-rgb), 0.18); }
.admin-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-checkbox {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--bg); font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s;
}
.admin-checkbox:hover { border-color: var(--pop); }
.admin-checkbox:has(input:checked) { border-color: var(--pop); background: rgba(var(--pop-rgb), 0.11)); }
.admin-checkbox input { accent-color: #9060A8; width: 16px; height: 16px; margin: 0; }
.admin-checkbox small { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--faint); }
.admin-submit { height: 52px; border-radius: 16px; }

.code-list { display: flex; flex-direction: column; gap: 12px; }
.code-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s; }
.code-card:hover { border-color: rgba(var(--pop-rgb), 0.5)); }
.code-card.is-off .code-summary, .code-card.is-off .code-meta { opacity: .55; }
.code-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.code-chip {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 14px; border: 1px dashed rgba(var(--pop-rgb), 0.6));
  border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.code-chip code { font-size: 14.5px; letter-spacing: .06em; font-weight: 500; }
.code-chip .ic { color: var(--faint); }
.code-chip:hover .ic, .code-chip.copied .ic { color: var(--pop); }
.code-summary { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.code-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--faint); }
.code-meta li { display: inline-flex; align-items: center; gap: 6px; }
.code-usage { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.code-usage .row { display: flex; justify-content: space-between; gap: 10px; }
.code-usage .mono { color: var(--ink); }
.code-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; }
.code-actions form { margin: 0; }

@media (max-width: 960px) {
  .promo-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-grid > .card:first-child { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topnav { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .tn-right { margin-left: auto; }
  .tn-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .tn-tab { flex: 1; justify-content: center; padding: 0 12px; }
  .tn-name { display: none; }
  .page { padding: 26px 16px 64px; gap: 22px; }
  .card { padding: 20px; border-radius: 22px; }
  .now-card { padding: 18px 20px; }
  .two { grid-template-columns: 1fr; }
  .ticket-top, .ticket-bottom { padding-left: 22px; padding-right: 22px; }
  .missions li { gap: 10px; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 480px) {
  .tn-tab { padding: 0 8px; gap: 5px; font-size: 12.5px; }
}

/* ---- Opsiom Kaïro (/kairo) ---- */
.mono { font-family: 'Geist Mono', monospace; }
.k-progress { display: flex; align-items: center; gap: 16px; }
.k-progress b { font-size: 26px; font-weight: 500; white-space: nowrap; }
.k-progress .bar { flex: 1; height: 12px; }
.k-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.k-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.k-table th, .k-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.k-table th { font-weight: 400; color: var(--ink2); padding-right: 16px; }
.k-table td { text-align: right; }
.k-table tr:last-child th, .k-table tr:last-child td { border-bottom: 0; }
.k-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.k-list b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .k-grid { grid-template-columns: 1fr; } .k-progress { flex-wrap: wrap; } }

/* ---- Admin : quotas & bêta (/admin/acces) ---- */
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th { text-align: left; font-family: 'Geist Mono', monospace; font-size: 10.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px 0; }
.acc-table td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.acc-table td:last-child, .acc-table th:last-child { text-align: right; padding-right: 0; }
.acc-table .acts { display: flex; justify-content: flex-end; gap: 8px; }
.acc-table .dim { color: var(--faint); font-size: 12.5px; }
.acc-scroll { overflow-x: auto; }
.acc-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acc-inline .admin-form-row { flex: 1 1 180px; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acc-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.acc-kv dt { color: var(--ink2); }
.acc-kv dd { margin: 0; text-align: right; overflow-wrap: break-word; min-width: 0; }
.acc-kv dd.mono { overflow-wrap: anywhere; }
.admin-form-row input[type="number"], .admin-form-row select {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; outline: 0;
}
.admin-form-row input[type="number"]:focus, .admin-form-row select:focus { border-color: var(--pop); box-shadow: 0 0 0 4px rgba(var(--pop-rgb), 0.18); }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } }

/* ---- Admin : statistiques (/admin/stats) — une seule teinte, barres fines ancrées sur la base ---- */
.dv-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: var(--chip); }
.dv-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; color: var(--ink2); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.dv-tab:hover { color: var(--ink); }
.dv-tab[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(40, 10, 60, .18); }
.dv-chart { display: flex; align-items: stretch; gap: 6px; height: 220px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.dv-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; outline: 0; }
.dv-bar { display: block; width: 100%; max-width: 38px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--pop); opacity: .85; transition: opacity .15s; }
.dv-col:hover .dv-bar, .dv-col:focus-visible .dv-bar { opacity: 1; }
.dv-col:focus-visible { box-shadow: 0 0 0 2px var(--pop); border-radius: 6px; }
.dv-val { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink2); height: 16px; line-height: 16px; }
.dv-lab { position: absolute; bottom: -24px; font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.dv-chart { margin-bottom: 26px; }
.dv-table summary { cursor: pointer; font-size: 13.5px; color: var(--ink2); padding: 4px 0 10px; }
.dv-hbar { position: relative; display: flex; align-items: center; min-width: 150px; height: 26px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.dv-hbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pop); opacity: .28; border-radius: 0 4px 4px 0; }
.dv-hbar > span { position: relative; padding: 0 9px; font-size: 12.5px; }
.dv-dist { display: flex; flex-direction: column; gap: 9px; }
.dv-dist-row { display: grid; grid-template-columns: 110px 1fr 96px; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink2); }
.dv-dist-row .dv-hbar { min-width: 0; height: 14px; }
.dv-dist-row .dv-hbar > i { opacity: .55; }
.dv-dist-row.is-hit { color: var(--ink); font-weight: 500; }
.dv-dist-row.is-hit .dv-hbar > i { background: var(--amber); opacity: .8; }
@media (max-width: 600px) { .dv-chart { gap: 3px; } .dv-val { display: none; } .dv-dist-row { grid-template-columns: 90px 1fr 88px; } }