-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
180 lines (151 loc) · 3.34 KB
/
home.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
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
/* Général */
body {
background-color: #000;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
}
/* Responsiveness pour éléments de base */
@media screen and (max-width: 600px) {
.extrait1, .extrait2, .extrait3 {
width: 90%; /* S'adapte à de petits écrans */
margin: 0 auto;
}
}
/* Titres principaux */
/* Menu principal */
#menu {
background-color: transparent;
height: 45px;
border-radius: 10px;
margin-top: 20px;
position: relative;
}
#menu ul {
width: 100%;
text-align: center;
}
#menu li {
display: inline-block;
}
#menu a {
display: block;
line-height: 45px;
padding: 0 14px;
text-decoration: none;
color: #fff;
font-size: 1rem;
transition: color 0.3s ease, background-color 0.3s ease;
}
#menu li a:hover {
color: #0099CC;
background: #F2F2F2;
}
/* Menu hamburger responsif */
@media screen and (max-width: 800px) {
#menu ul {
background: #444444;
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: auto;
display: none;
text-align: left;
}
#menu li {
display: block;
}
#menu input:checked ~ ul {
display: block;
}
#menu label {
display: block;
line-height: 45px;
text-align: center;
position: absolute;
left: 10px;
font-size: 1.6rem;
cursor: pointer;
color: #fff;
}
#menu label:before {
content: "\2261"; /* Icône hamburger */
}
#menu input:checked ~ label:before {
content: "\00d7"; /* Icône croix */
}
}
/* Sections */
.section {
padding: 5vh 10vw;
text-align: center;
}
#home {
background-color: #f4f4f4;
}
#membre {
background-color: #e2e2e2;
}
.img1{
background-color: rgb(235, 235, 235);
position: absolute;
width: 100%;
height: 100%; /* Ajoutez une hauteur spécifique */
top: 100px;
left: 0;
font-family: Arial, Helvetica, sans-serif;
opacity: 0;
transition: opacity 2s ease-in-out;
background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.img1:hover {
opacity: 1;
}
.titre1 {
color: #fff;
font-family: 'Candara', sans-serif;
max-width: 90%; /* Limite pour éviter dépassement */
margin: 0 auto;
margin-top: 18%;
margin-left: 6%;
text-align: center;
opacity: 0;
animation: appeartitre 1s both ease-out;
animation-delay: 0.5s;
}
@keyframes appeartitre {
0% {
transform: translateY(30vh);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.soustitre1 {
color: #fff;
font-size: 1rem; /* Ajuste avec rem */
max-width: 90%;
margin: 0 auto;
margin-top: 1.5%;
margin-left: 7%;
text-align: center;
opacity: 0;
animation: appearsoustitre 1s both ease-out;
animation-delay: 1s;
}
@keyframes appearsoustitre {
0% {
transform: translateY(30vh);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}