-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
358 lines (305 loc) · 9.72 KB
/
Copy pathstyle.css
File metadata and controls
358 lines (305 loc) · 9.72 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Masque le curseur par défaut partout */
* {
cursor: none !important; /* Masque le curseur sur tous les éléments */
position: relative; /* Permet d'appliquer le curseur personnalisé même sur les éléments */
}
/* Style pour le curseur personnalisé */
#customCursor {
position: fixed; /* Reste à une position fixe */
width: 48px; /* Largeur du curseur */
height: 48px; /* Hauteur du curseur */
background: url('IMG/curseur-normal.cur') no-repeat center center; /* Image du curseur */
background-size: contain; /* Ajuste l'image à la taille */
pointer-events: none; /* Permet d'interagir avec les éléments sous le curseur */
z-index: 10000; /* Assure qu'il reste visible au-dessus des autres éléments */
display: none; /* Caché par défaut jusqu'à ce que la souris se déplace */
}
body, html {
height: 100%;
font-family: Arial, sans-serif;
cursor: none; /* Cache le curseur par défaut */
}
header {
position: fixed;
top: 0;
width: 100%;
background: transparent; /* Fond transparent */
color: white; /* Couleur du texte */
display: flex;
justify-content: flex-end; /* Alignement à droite */
padding: 10px 20px; /* Espace pour éloigner du bord */
z-index: 10;
}
nav ul {
list-style-type: none;
display: flex;
gap: 15px;
margin: 0; /* Supprime les marges par défaut */
padding: 0; /* Supprime le padding */
}
nav li {
display: inline-block;
}
.nav-link {
color: yellow;
text-decoration: none;
font-size: 13px;
display: flex;
align-items: center;
padding: 5px 10px;
border: 2px solid yellow;
border-radius: 20px; /* Bords arrondis */
transition: background-color 0.3s, color 0.3s;
font-family: JMH Typewriter; /* Police personnalisée */
}
.circle {
width: 10px;
height: 10px;
border: 2px solid yellow; /* Cercle vide */
border-radius: 50%;
margin-right: 5px;
transition: background-color 0.3s;
}
.nav-link.active .circle {
background-color: yellow; /* Cercle rempli quand actif */
}
.nav-link:hover {
background-color: yellow;
color: black;
}
/* Styles pour les sections */
section {
padding: 100px 20px;
border-bottom: 1px solid #ddd;
}
section h2 {
margin-bottom: 20px;
}
.image-container {
position: relative;
width: 100%;
height: 100vh; /* Prend toute la hauteur de la fenêtre */
overflow: hidden;
}
.slideshow {
position: relative; /* Nécessaire pour le positionnement des images */
height: 100%; /* Assurez-vous que cela prend toute la hauteur */
}
.slideshow img {
width: 100%;
height: auto; /* Ajuster les images pour garder le rapport d'aspect */
display: none; /* Cacher les images par défaut */
}
.slideshow img.active {
display: block; /* Afficher seulement l'image active */
}
.title {
position: absolute;
top: 50%; /* Centrer verticalement */
left: 50%; /* Centrer horizontalement */
transform: translate(-50%, -50%); /* Ajustement pour centrer parfaitement */
color: yellow;
font-family: 'SchwarzKopf'; /* Utilisation de la police personnalisée */
font-size: 15rem; /* Taille du texte */
text-align: center;
animation: glitch 1s infinite; /* Animation de grésillement */
z-index: 20; /* Pour s'assurer que le texte est au-dessus des images */
@font-face {
font-family: 'SchwarzKopf';
src: url('SchwarzKopf.ttf') format('truetype'); /* Assurez-vous que le chemin est correct */
}
}
/* Animation de grésillement */
@keyframes glitch {
0% { transform: translate(-50%, -50%) skew(0deg); }
20% { transform: translate(-50%, -50%) skew(-2deg); }
40% { transform: translate(-50%, -50%) skew(2deg); }
60% { transform: translate(-50%, -50%) skew(-1deg); }
80% { transform: translate(-50%, -50%) skew(1deg); }
100% { transform: translate(-50%, -50%) skew(0deg); }
}
body {
margin: 0; /* Supprime les marges par défaut */
overflow-x: hidden; /* Empêche le défilement horizontal */
}
#introContainer {
margin: 0 auto; /* Centrage horizontal */
width: 100%; /* Utilise toute la largeur disponible */
height: 50px; /* Hauteur du conteneur */
overflow: hidden; /* Cache tout dépassement */
position: relative; /* Position relative pour suivre le flux normal de la page */
background-color: white; /* Couleur de fond (modifiable si nécessaire) */
z-index: 1; /* S'assurer qu'il soit visible */
margin-bottom: 20px; /* Espacement avec la section "À propos" */
}
#introText {
color: black; /* Couleur du texte */
font-size: 50px; /* Taille de la police */
font-family: Coolvetica, sans-serif; /* Police choisie */
white-space: nowrap; /* Empêche le passage à la ligne */
position: absolute; /* Positionnement nécessaire pour l'animation */
animation: slide 60s linear infinite; /* Animation de défilement */
opacity: 1;
animation-delay: 0s;
animation-fill-mode: forwards;
transition: none;
}
@keyframes slide {
0% { transform: translateX(100%); /* Commence à la droite de la fenêtre */
}
100% {
transform: translateX(-100%); /* Défile jusqu'à la gauche de la fenêtre */
}
}
/* Container des blocs */
a.blocks-container {
display: flex;
justify-content: space-between;
gap: 5px;
margin-top: 0px; /* Marge sous le texte défilant */
}
/* Style pour chaque bloc */
.block {
position: relative;
width: 300%;
height: 200px;
overflow: hidden;
border: 2px solid black;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.5s ease;
}
.block-text {
position: absolute;
color: yellow;
font-size: 24px;
opacity: 0;
transition: opacity 0.3s ease;
}
.image-slider {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
overflow: hidden;
}
.image-slide {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 1s ease;
}
/* Film jaune */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(182, 182, 0, 0.9); /* Jaune semi-transparent */
opacity: 0; /* Caché par défaut */
transition: opacity 0.3s ease;
z-index: 2;
}
/* Texte de survol */
.text-overlay {
position: absolute;
top: 50%; /* Centrer verticalement */
left: 3px; /* Marges internes horizontales (3px de la gauche) */
transform: scale(0.82)translateY(-60%); /* Centrer verticalement le texte */
color: white;
font-family: 'JMH Typewriter'; /* Remplace par ta police */
font-size: 14px; /* Corps de texte plus petit */
font-weight: regular;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 3;
padding: 5px 3px; /* Marges internes (5px en hauteur et 3px en largeur) */
box-sizing: border-box; /* Prend en compte les marges internes dans le calcul de la taille du bloc */
width: calc(100% - 6px); /* S'assure que le texte ne dépasse pas du bloc (avec les marges internes de 3px de chaque côté) */
word-wrap: break-word; /* Permet aux mots longs de se couper et s'adapter au bloc */
line-height: 1.4; /* Hauteur de ligne pour espacer les lignes de texte */
white-space: normal; /* Permet de passer à la ligne quand le texte atteint la limite du bloc */
overflow: hidden; /* Empêche le texte de dépasser du bloc */
text-overflow: ellipsis; /* Ajoute des points de suspension si le texte est trop long (optionnel) */
height: calc(100% - 10px); /* Assure que le texte reste bien à l'intérieur du bloc, avec les marges de 5px */
display: flex;
justify-content: flex-start;
align-items: flex-start;
}
.custom-break {
margin-bottom: 20px; /* Ajuste l'espace sous le saut de ligne */
display: block; /* Assure que le saut est traité comme un bloc */
line-height: 0; /* Empêche l'ajout d'espacement par défaut */
}
/* Texte de base dans le bloc (toujours visible) */
.text-base {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: yellow;
font-family: 'JMH Typewriter';
font-size: 18px;
font-weight: bold;
opacity: 1; /* Toujours visible */
transition: opacity 0.3s ease;
}
.block:hover {
width: 100%;
height: 300px;
}
/* Effet overlay - Film jaune */
.block:hover::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 0, 0.5); /* Film jaune */
z-index: 2;
}
.block:hover .image-slider {
transform: scale(1.2);
}
.block:hover .text-base {
opacity: 0;
}
.block:hover .overlay {
opacity: 1; /* Afficher le film jaune */
}
.block:hover .text-overlay {
opacity: 1; /* Afficher le texte */
}
#apropos {
width: 80%; /* Réduit la largeur pour centrer */
background-color: black; /* Fond noir */
color: white; /* Texte blanc */
padding: 20px; /* Espace intérieur */
margin: 50px auto; /* Centre horizontalement et ajoute une marge en haut */
text-align: center; /* Centre le texte */
position: relative; /* Permet un placement plus précis */
bottom: -50px; /* Pousse l'encadré vers le bas */
border-radius: 10px; /* Coins arrondis pour un design moderne */
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5); /* Ajoute une ombre douce */
font-family: 'JMH Typewriter', sans-serif; /* Applique une belle typographie */
}
#apropos h2 {
font-size: 20px; /* Taille du titre */
margin-bottom: 10px; /* Espacement sous le titre */
text-transform: uppercase; /* Met en majuscules */
}
#apropos p {
font-size: 10px; /* Taille du texte */
line-height: 1.5; /* Espacement entre les lignes */
}