-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
62 lines (57 loc) · 1.41 KB
/
styles.css
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
*
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #333;
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 15px;
z-index: 1000;
transition: top 0.3s ease; /* Transition fluide pour l'apparition/disparition */
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombre pour un effet d'élévation */
}
.navbar img {
width: 160px;
height: auto;
transition: transform 0.3s ease;
}
.navbar img:hover {
transform: scale(1.2);
}
.navbar ul {
list-style-type: none;
display: flex;
gap: 15px;
flex: 1;
justify-content: space-evenly;
}
.navbar a {
color: #e0ffeb; /* Couleur plus douce */
text-decoration: none;
font-weight: bold;
font-size: 18px;
padding: 8px 15px; /* Ajout de padding pour des zones cliquables plus larges */
border-radius: 5px; /* Coins légèrement arrondis */
transition: background-color 0.3s ease, transform 0.3s ease;
}
.navbar a:hover {
color: white; /* Couleur blanche au survol */
background-color: rgba(255, 255, 255, 0.2); /* Arrière-plan semi-transparent */
transform: scale(1.1); /* Animation légère */
}
@media (max-width: 768px) {
section {
flex-direction: column;
text-align: center;
}
.text, .image {
max-width: 90%;
}
.navbar a{
font-size: 14px;
}
}