forked from geniruphin-junior/DevchatOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.css
More file actions
474 lines (430 loc) · 11 KB
/
Copy pathpost.css
File metadata and controls
474 lines (430 loc) · 11 KB
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
/* --- VARIABLES FUTURISTE DE L APP --- */
:root {
--win-accent: #00a884; /* Vert Fluent */
--win-bg: #020617; /* Fond ultra sombre Windows 12 */
--win-glass: rgba(22, 28, 36, 0.7); /* Verre fumé */
--win-border: rgba(
255,
255,
255,
0.08
); /* Bordure fine comme un cheveu pour faire plus pro */
--win-text: #f8fafc;
--win-muted: #94a3b8;
--msg-sent: #005c4b;
--msg-received: rgba(30, 41, 59, 0.8);
--danger: #ff4d4d;
}
/* --- STRUCTURE GLOBALE --- */
body,
html {
margin: 0;
padding: 0;
height: 100%;
font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
background: radial-gradient(
/*un jolie melange de noir et gris mais tout en un cicle*/ circle at top
left,
#0f172a,
#020617
); /* Dégradé de profondeur */
color: var(--win-text);
overflow: hidden;
}
/* On ajoute un padding pour que l'app semble flotter dans l'écran */
body {
padding: 12px;
box-sizing: border-box;
}
/* --- ÉCRAN DE CONNEXION (Style Windows 11 & 12) --- */
#auth-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
background: rgba(2, 6, 23, 0.9);
backdrop-filter: blur(20px);
transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/*carte de connection bien épuré*/
.login-card {
background: var(--win-glass);
padding: 40px;
border-radius: 24px;
border: 1px solid var(--win-border);
width: 340px;
text-align: center;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.login-card h1 {
font-weight: 600;
letter-spacing: -1px;
background: linear-gradient(to right, #00a884, #34d399);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* --- CONTENEUR PRINCIPAL (SÉPARÉ) --- */
/* --- CONTENEUR PRINCIPAL --- */
#main-site {
display: flex !important;
flex-direction: row;
width: 100%;
height: calc(100vh - 24px); /* Calcule la hauteur exacte avec le padding */
opacity: 1 !important; /* ON GARDE UNIQUEMENT CELUI-LA */
gap: 12px;
box-sizing: border-box;
transition: 1s ease;
}
/* --- BARRE LATÉRALE MINIMALISTE --- */
.sidebar {
width: 200px;
background: var(--win-glass);
backdrop-filter: blur(30px); /* Effet Mica */
border-radius: 16px;
border: 1px solid var(--win-border);
display: flex;
flex-direction: column;
box-shadow: 0 4px 20px var(--win-accent);
}
.side-header {
display: flex;
justify-content: center; /* centre horizontalement */
align-items: center; /* centre verticalement */
padding: 20px; /* espace intérieur autour du logo */
background-color: rgba(255, 255, 255, 0.05); /* effet verre dépoli léger */
backdrop-filter: blur(10px); /* flou derrière le logo */
border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* ligne de séparation subtile */
}
.popup-btn {
background: transparent;
border: none;
font-size: 20px;
color: #00ffcc; /* cyan néon que j'ai tenté en faisant du code de couleur*/
cursor: pointer;
animation: heartbeat 1.2s infinite; /* cœur battant */
transition: transform 0.3s ease;
}
.popup-btn:hover {
transform: scale(1.2); /* zoom au survol */
color: #ff0066; /* devient rose/rouge */
}
@keyframes heartbeat {
0% {
transform: scale(1);
}
25% {
transform: scale(1.2);
}
40% {
transform: scale(1);
}
60% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.logo {
width: 80px; /* taille du logo */
height: auto; /* garde les proportions */
border-radius: 12px; /* coins arrondis */
box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); /* effet glow futuriste */
transition: transform 0.3s ease; /* animation fluide */
}
.logo:hover {
transform: scale(1.1); /* effet zoom au survol */
}
/* --- AVATARS EN EXPERT --- */
.avatar {
width: 40px;
height: 40px;
border-radius: 12px; /* Carré arrondi moderne au lieu de cercle */
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 16px;
color: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/*icônes des utilisateurs*/
.admin-item {
display: flex;
align-items: center;
gap: 15px;
padding: 12px;
margin: 4px 12px;
border-radius: 12px;
transition: 0.2s;
cursor: pointer;
}
.admin-item:hover {
background: rgba(255, 255, 255, 0.05);
}
/* --- ZONE DE CHAT ÉPURÉE --- */
.chat-area {
flex: 1;
background: var(--win-glass);
backdrop-filter: blur(30px);
border-radius: 16px;
border: 1px solid var(--win-border);
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
display: flex; /* Active le mode Flexbox */
}
.chat-header {
background: rgba(255, 255, 255, 0.02);
padding: 20px 30px;
border-bottom: 1px solid var(--win-border);
}
.messages-box {
flex: 1;
padding: 25px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
}
/* --- BULLES DE MESSAGES SQUIRLE --- */
.msg {
max-width: 65%;
padding: 12px 18px;
border-radius: 18px;
font-size: 14px;
line-height: 1.5;
position: relative;
}
.sent {
align-self: flex-end;
background: var(--msg-sent);
border-bottom-right-radius: 4px; /* Effet bulle moderne */
}
.received {
align-self: flex-start;
background: var(--msg-received);
border: 1px solid var(--win-border);
border-bottom-left-radius: 4px;
}
/* --- BARRE DE SAISIE FLOTTANTE --- */
.chat-input-area {
padding: 20px 30px;
background: rgba(255, 255, 255, 0.02);
display: flex;
gap: 15px;
border-top: 1px solid var(--win-border);
align-items: center;
}
/* 1. Reset des inputs globaux pour la carte de login */
.login-card input {
width: 100%;
margin-top: 15px;
display: block;
}
/* 2. Style spécifique pour l'input de CHAT */
.chat-input-area input {
flex: 1; /* L'input prend tout l'espace disponible */
margin-top: 0; /* ON ENLÈVE la marge qui casse l'alignement vertical */
width: auto; /* On laisse le flex-grow gérer la largeur */
}
/* 3. Alignement vertical du bouton */
.btn-send,
.btnRun {
flex-shrink: 0; /* Empêche le bouton de rétrécir */
display: flex;
align-items: center;
justify-content: center; /*ici je centre le boutton pour un style windows 12*/
}
input {
width: 100%;
padding: 14px; /* Un peu plus grand pour le confort */
margin-top: 15px; /* CRUCIAL : Crée l'espace au-dessus de chaque champ */
border-radius: 10px;
border: 1px solid var(--win-border);
background: rgba(0, 0, 0, 0.3);
color: white;
outline: none;
box-sizing: border-box; /* Évite que l'input ne dépasse de la carte */
}
input:focus {
border-color: var(--win-accent);
box-shadow: 0 0 10px rgba(0, 168, 132, 0.2);
}
.btn-send {
background: var(--win-accent);
border: none;
width: 32px;
height: 32px;
border-radius: 50%;
color: white;
cursor: pointer;
transition: 0.3s;
}
.btn-send:hover {
filter: brightness(1.2);
transform: translateY(-2px);
}
.btnRun {
background: var(--win-accent);
border: none;
width: 32px;
height: 32px;
border-radius: 12px;
color: white;
cursor: pointer;
transition: 0.3s;
}
/* Conteneur global du message pour gérer l'empilement vertical */
.msg-wrapper {
display: flex;
flex-direction: column;
max-width: 65%;
gap: 4px;
animation: Touchederuphin;
}
/* Style du nom d'utilisateur discret */
.msg-author {
font-size: 11px;
font-weight: 600;
color: var(--win-muted); /* Utilise votre variable grise */
opacity: 0.7;
letter-spacing: 0.5px;
margin-left: 4px;
}
/* Alignement spécifique pour vos messages envoyés */
.sent-wrapper {
align-self: flex-end;
align-items: flex-end; /* Aligne le nom ET la bulle à droite du wrapper */
}
.sent-wrapper .msg-author {
text-align: left;
margin-right: 4px;
}
/* Ajustement de la bulle pour qu'elle ne prenne que la largeur de son texte */
.msg {
max-width: 100%; /* Le wrapper gère déjà la largeur max */
width: fit-content;
}
@keyframes Touchederuphin {
0% {
opacity: 0; /* Invisible */
transform: translateY(20px); /* 20px plus bas */
}
100% {
opacity: 1; /* Totalement visible */
transform: translateY(0); /* À sa place normale */
}
}
/* La flèche pour les messages (à droite) ca donne un style app react*/
.msg.sent::after {
content: "";
position: absolute;
bottom: 0;
right: -8px; /* On la pousse un peu vers l'extérieur */
width: 0;
height: 0;
border-left: 12px solid var(--msg-sent); /* La pointe est de la même couleur que la bulle */
border-top: 12px solid transparent;
}
/* La flèche pour les messages reçus (à gauche) */
.msg.received::after {
content: "";
position: absolute;
bottom: 0;
left: -8px;
width: 0;
height: 0;
border-right: 12px solid var(--msg-received);
border-top: 12px solid transparent;
}
.msg {
position: relative; /* Indispensable pour positionner le ::after */
}
.sid-btn:hover {
background-color: transparent;
transform: transleY(-12px);
width: 70px;
height: 70px;
}
/* --- RESPONSIVE POUR PETITS ÉCRANS --- */
.menu-btn {
display: none; /* caché sur PC */
background: var(--win-accent);
color: white;
border: none;
font-size: 22px;
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
}
@media screen and (max-width: 600px) {
.menu-btn {
display: block; /* visible sur téléphone */
}
.sidebar {
position: fixed;
left: -250px; /* cachée par défaut */
top: 0;
width: 250px;
height: 100%;
transition: left 0.3s ease;
z-index: 1000;
}
.sidebar.active {
left: 0; /* apparaît quand on l' active */
}
.chat-area {
margin-left: 0; /* occupe tout l’écran */
}
}
/* --- RESPONSIVE LOGIN CARD --- */
@media screen and (max-width: 768px) {
.login-card {
width: 90%; /* occupe presque toute la largeur */
padding: 20px; /* réduit le padding pour éviter que ça déborde */
font-size: 16px; /* texte plus lisible */
}
.login-card h1 {
font-size: 22px; /* titre plus compact */
}
.login-card p {
font-size: 14px;
}
#userIn,
#passIn {
width: 100%; /* champs prennent toute la largeur */
font-size: 14px;
padding: 12px;
}
#btnAuth {
width: 100%; /* bouton large et confortable */
height: 45px;
font-size: 16px;
border-radius: 10px;
}
}
/* --- ULTRA PETITS ÉCRANS (smartphones < 480px), utiles pour mes potes et collaborrateurs --- */
@media screen and (max-width: 480px) {
.login-card {
width: 95%;
padding: 15px;
border-radius: 18px; /* coins plus arrondis pour un look mobile */
}
.login-card h1 {
font-size: 20px;
}
#btnAuth {
font-size: 14px;
height: 40px;
}
}
.resource-btn {
display: none;
}