-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·456 lines (374 loc) · 12.2 KB
/
style.css
File metadata and controls
executable file
·456 lines (374 loc) · 12.2 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
/* --- CHARTE IMMERSIVE GLPI --- */
:root {
--glpi-blue: #0090d7; /* Cyan GLPI */
--glpi-dark: #202020; /* Texte sombre */
--glass-bg: rgba(255, 255, 255, 0.85); /* Blanc semi-transparent */
--glass-border: rgba(255, 255, 255, 0.6);
--gap-size: 40px;
--border-radius: 12px;
}
body {
margin: 0;
font-family: 'Poppins', sans-serif;
/* ICI : On met ton image de fond GLPI */
background-image: url('media/image/fond_bleu_fonce.png');
/* Fallback : Un dégradé bleu GLPI si l'image ne charge pas */
background-color: #fffff;
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed; /* L'image reste fixe quand on scroll */
background-size: cover;
color: var(--glpi-dark);
min-height: 100vh;
}
/* --- HEADER --- */
header {
text-align: center;
padding: 50px 20px 30px 20px;
/* Optionnel : Fond sombre léger derrière le logo pour le faire ressortir */
background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 70%);
}
.site-logo {
height: 90px; /* Logo un peu plus grand */
width: auto;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); /* Glow subtil */
transition: transform 0.3s ease;
}
.site-logo:hover { transform: scale(1.05); }
header p {
color: white; /* Texte en blanc pour contraster avec le wallpaper */
font-size: 1.3rem;
font-weight: 500;
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
margin-top: 5px;
}
/* --- GRILLE --- */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
gap: var(--gap-size);
padding: 20px 60px 60px 60px;
max-width: 1700px;
margin: 0 auto;
}
/* --- 1. LA CARTE (Structure avec bordure grise) --- */
.card {
position: relative;
background: #ffffff;
/* MODIFICATION ICI : On applique la bordure fine grise partout */
border: 1px solid #E6E6E6;
/* ET on garde la grosse bordure bleue en haut (elle passe par-dessus la grise) */
border-top: 6px solid var(--glpi-blue);
border-radius: var(--border-radius);
/* On garde l'ombre pour le relief */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
overflow: hidden;
text-align: center;
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
transform: translateZ(0);
backface-visibility: hidden;
}
/* --- 2. LE DÉGRADÉ "PAR-DESSUS" (Le Rideau) --- */
/* C'est lui qui crée le bleu, il se pose par dessus la vidéo */
.card::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; /* Couvre toute la tuile */
/* Le Dégradé : Bleu GLPI semi-transparent en haut -> Transparent total en bas */
/* On arrête le bleu à 25% pour ne pas trop teinter la vidéo */
background: linear-gradient(to bottom, rgba(218, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0) 25%);
z-index: 5; /* Niveau 5 : Au-dessus de la vidéo */
pointer-events: none; /* INDISPENSABLE : Permet de cliquer sur la vidéo à travers le bleu */
}
/* --- 3. LE TITRE --- */
.card h2 {
margin: 0;
padding: 20px;
font-size: 1.3rem;
font-weight: 700;
color: var(--glpi-dark);
background: transparent; /* Transparent pour laisser voir le dégradé du rideau */
position: relative;
z-index: 10; /* Niveau 10 : Au-dessus du rideau pour rester bien noir et net */
border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* --- 4. LE SURVOL (HOVER) --- */
.card:hover {
/* Mouvement vers le haut (Lift) */
transform: translateY(-10px) !important;
/* Ombre GLPI */
box-shadow: 0 30px 60px -12px rgba(0, 144, 215, 0.5),
0 0 0 1px rgba(0, 144, 215, 0.2) inset;
z-index: 20; /* Passe devant tout le monde */
}
/* --- CONTENEURS & VIDÉOS --- */
.embed-container, .video-wrapper {
flex-grow: 1;
min-height: 350px; /* Un peu plus grand pour bien voir les produits */
position: relative;
background: #000;
}
.content-placeholder {
background: rgba(255,255,255,0.5);
color: #555;
display: flex;
align-items: center;
justify-content: center;
}
.video-wrapper { cursor: pointer; }
.custom-video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* BOUTON PLAY */
.play-button-overlay {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 90px; height: 90px;
background-color: var(--glpi-blue);
/* Double ombre pour effet 3D */
box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 0 8px rgba(255,255,255,0.2);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
transition: all 0.3s ease;
pointer-events: none;
}
.play-icon { font-size: 36px; color: white; margin-left: 6px; }
.video-wrapper:hover .play-button-overlay {
transform: translate(-50%, -50%) scale(1.1);
background-color: #007bb5;
}
.video-wrapper.is-playing .play-button-overlay {
opacity: 0; transform: translate(-50%, -50%) scale(1.5);
}
/* --- OPTIMISATIONS BORNE --- */
::-webkit-scrollbar { width: 0px; background: transparent; }
html { scrollbar-width: none; }
body { -webkit-user-select: none; user-select: none; }
img, video, iframe { -webkit-user-drag: none; user-drag: none; }
/* --- STYLE SPÉCIFIQUE QR CODES (MAXIMISÉ) --- */
.qr-wrapper {
/* On garde la hauteur fixe pour ne pas casser la grille */
height: 350px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center; /* Centre horizontalement */
align-items: center; /* Centre verticalement */
gap: 40px; /* Espace entre les deux blocs QR */
padding: 0 20px; /* Moins de padding pour laisser place aux images */
box-sizing: border-box;
}
.qr-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px; /* Espace entre le QR et le texte dessous */
}
.qr-img-container {
background: white;
padding: 12px; /* Un peu plus de blanc autour */
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.qr-img-container img {
/* --- ICI ON AUGMENTE LA TAILLE --- */
width: 160px; /* On passe de 100px à 160px (+60% !) */
height: 160px;
display: block;
object-fit: contain;
}
.qr-item p {
font-size: 1rem; /* Texte un peu plus gros aussi */
font-weight: 700;
color: var(--glpi-dark);
margin: 0;
text-align: center;
}
/* On supprime le séparateur pour gagner de la place visuelle */
.qr-separator {
display: none;
}
/* Effet au survol */
.qr-item:hover .qr-img-container {
transform: scale(1.1); /* Zoom un peu plus franc */
box-shadow: 0 10px 30px rgba(0, 144, 215, 0.3);
}
/* --- BOUTON FLOTTANT (FAB) --- */
.fab-btn {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 100; /* Toujours au dessus */
background-color: var(--glpi-blue);
color: white;
display: flex;
align-items: center;
gap: 10px;
padding: 15px 25px;
border-radius: 50px; /* Forme de pilule */
box-shadow: 0 4px 15px rgba(0, 144, 215, 0.4);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond */
font-weight: 600;
letter-spacing: 0.5px;
}
.fab-btn:hover {
transform: scale(1.1); /* Grossit au survol */
background-color: #007bb5;
box-shadow: 0 8px 25px rgba(0, 144, 215, 0.6);
}
.fab-btn:active {
transform: scale(0.95); /* Clic */
}
/* --- MODALE (POPUP) --- */
.modal-overlay {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: 1000; /* Au dessus de tout, même du FAB */
background: rgba(0, 0, 0, 0.6); /* Fond noir semi-transparent */
backdrop-filter: blur(5px); /* Flou de l'arrière plan */
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
/* Quand la modale est active (ajouté par JS) */
.modal-overlay.is-visible {
opacity: 1;
visibility: visible;
}
/* Le contenu de la modale (Style Glassmorphism) */
.modal-content {
background: rgba(255, 255, 255, 0.95);
padding: 40px;
border-radius: 20px;
max-width: 600px;
width: 90%;
text-align: center;
position: relative;
border-top: 6px solid var(--glpi-blue);
box-shadow: 0 20px 50px rgba(0,0,0,0.3);
transform: translateY(50px);
transition: transform 0.3s ease;
}
.modal-overlay.is-visible .modal-content {
transform: translateY(0); /* Animation de remontée */
}
/* Bouton Fermer (X) */
.modal-close {
position: absolute;
top: 15px; right: 20px;
font-size: 2rem;
background: none; border: none;
color: #888;
cursor: pointer;
line-height: 1;
}
.modal-close:hover { color: var(--glpi-dark); }
/* --- CONTENU MODALE --- */
.modal-content h2 { color: var(--glpi-blue); margin-top: 0; }
.modal-content p { color: #666; margin-bottom: 30px; }
.modal-qr-grid {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}
.modal-qr-item {
display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.qr-box {
background: white;
padding: 10px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Ici, comme c'est une popup, on peut mettre les QR EN GRAND ! */
.qr-box img {
width: 200px; /* Très confortable pour scanner */
height: 200px;
display: block;
}
.modal-qr-item span {
font-weight: 600; color: #444;
}
/* --- FORCE LE PLEIN ÉCRAN DANS LA TUILE --- */
/* On cible la DIV qui contient l'iframe à l'intérieur de ton conteneur */
.embed-container > div {
/* On annule le ratio calculé par Arcade */
padding-bottom: 0 !important;
/* On force le bloc à prendre toute la hauteur et largeur du parent */
position: absolute !important;
height: 100% !important;
width: 100% !important;
top: 0;
left: 0;
}
/* On s'assure que l'iframe elle-même suit le mouvement */
.embed-container iframe {
width: 100% !important;
height: 100% !important;
/* Optionnel : supprime la bordure noire si elle vient du fond */
background: white;
}
/* --- INDICATEUR DE SCROLL (CORRECTIF) --- */
.scroll-arrow {
position: fixed; /* IMPORTANT : Sort l'élément du flux normal */
bottom: 30px; /* La place à 30px du BAS de l'écran */
left: 50%; /* La centre horizontalement */
transform: translateX(-50%);
font-size: 2rem;
color: var(--glpi-blue);
animation: bounce 2s infinite;
z-index: 50; /* S'assure qu'elle est au-dessus du reste */
pointer-events: none;
transition: opacity 0.3s ease;
}
/* L'animation de rebond */
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
40% {transform: translateX(-50%) translateY(-10px);}
60% {transform: translateX(-50%) translateY(-5px);}
}
/* --- CORRECTIF MOBILE POUR LA MODALE --- */
@media (max-width: 768px) {
.modal-content {
width: 90%; /* Prend presque toute la largeur */
max-height: 85vh; /* Ne dépasse jamais 85% de la hauteur de l'écran */
overflow-y: auto; /* Active le scroll DANS la fenêtre si ça dépasse */
padding: 25px; /* On réduit un peu les marges internes */
margin-top: 0; /* On évite les décalages bizarres */
}
/* On rend le bouton Fermer plus gros et plus accessible au doigt */
.modal-close {
top: 10px;
right: 15px;
font-size: 2.5rem; /* Plus facile à viser */
color: var(--glpi-dark);
background: rgba(255, 255, 255, 0.8); /* Petit fond pour bien le voir */
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 2000; /* Toujours au-dessus du reste */
}
/* On réduit un peu les QR Codes sur mobile pour que tout rentre */
.qr-box img {
width: 130px;
height: 130px;
}
/* On empile les QR codes l'un sous l'autre sur mobile */
.modal-qr-grid {
gap: 20px;
}
}