-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
261 lines (237 loc) · 4.33 KB
/
style.css
File metadata and controls
261 lines (237 loc) · 4.33 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
/* ===== RESET ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
h2 {
font-size: 35rem;
}
h1,
h2,
h3 {
font-size: var(--font-size-heading);
}
p,
div,
a,
input {
font-size: var(--font-size-base);
}
ul {
list-style-type: none;
}
ul li a,
.social-icons a i {
text-decoration: none;
color: black;
}
body {
font-family: "Baskerville", serif;
}
/* .position-relative{
position: relative;
}
.position-absolute{
position: absolute;
}
*/
/* class générique */
.container {
width: 90%;
margin: 20px auto;
}
.btn {
background-color: var(--secondary-bg-color);
border-radius: 5px;
text-decoration: none;
transition: background 0.3s ease;
}
.btn,
.footer-bottom {
color: #fff;
}
/* ===== HEADER GLOBAL ===== */
/* ===== TOP BAR (logo + search) ===== */
.top-bar {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
margin-bottom: 30px;
}
/* Logo */
.logo img {
width: 100%;
max-width: 150px;
height: auto;
object-fit: contain;
}
/* Search box */
.search-box {
position: relative;
display: flex;
align-items: center;
}
.search-box input {
padding: 10px 40px 10px 15px;
border: 2px solid #d3cbcb;
border-radius: 8px;
width: 220px;
background-color: white;
}
.search-box i {
position: absolute;
right: 12px;
font-size: 18px;
color: #1a1a1a;
pointer-events: none;
}
/* ===== NAVBAR ===== */
.navbar__box-shadow__sticky {
box-shadow: black 0px 10px 20px -5px;
z-index: 10;
position: sticky;
top: 0;
}
.navbar ul {
padding: 10px 0;
gap: 50px;
}
.navbar ul li a {
font-size: 35px;
}
.navbar ul li a,
.btn,
.footer-social p,
h2,
.footer-bottom {
font-weight: bold;
}
/* .navbar ul li:not(:first-child) {
margin: 0 20px;
}
*/
.hero-section {
position: relative;
background: url("./img/bandeau.jpg") no-repeat center/cover;
height: 450px;
}
/* === Bouton CTA === */
.hero-btn {
padding: 14px 28px;
box-shadow: 0 12px 16px rgba(0, 0, 0, 0.6);
}
/* ==== TITRES ==== */
.presentation h2,
.services h2 {
margin-bottom: 20px;
position: relative;
}
.presentation h2::after {
content: "";
width: 45%;
height: 2px;
position: absolute;
bottom: 25%;
background-color: #000000;
}
.services h2::after {
content: "";
width: 45%;
height: 2px;
position: absolute;
bottom: 25%;
background-color: #000000;
}
/* ==== TEXTES ==== */
.presentation p {
line-height: 1.6;
}
/* ==== CARTES SERVICES ==== */
.service-cards {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.card {
background-color: #fff;
width: 30%;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 3px solid var(--border-color);
position: relative;
height: 400px;
}
.card img {
width: 100%;
height: 200px;
}
.card p {
padding: 20px 15px;
font-size: 16px;
color: #222;
}
/* ==== BOUTON TARIF ==== */
.tarif-btn {
position: absolute;
bottom: 2%;
right: 2%;
padding: 10px 24px;
box-shadow: 0 12px 16px rgba(0, 0, 0, 0.6);
}
.tarif-btn:hover {
background-color: var(--secondary-bg-color);
}
/* === FOOTER RESTAURÉ === */
.footer ul li,
footer p {
margin-bottom: 8px;
}
.social-icons {
text-align: center;
}
.social-icons a i {
font-size: 1.3rem;
transition: transform 0.2s;
}
.social-icons a i:hover {
transform: scale(1.1);
color: #555;
}
.footer-bottom {
background-color: var(--secondary-bg-color);
text-align: center;
padding: 10px 0;
font-size: 0.83rem;
}
/* BreakPoint - Point de casse (ou le téléphone tablette commence s'arrête) */
/*
X-Small None <576px téléphone
Small sm ≥576px téléphone tourner
Medium md ≥768px tablette
Large lg ≥992px tablette portrait ++
Extra large xl ≥1200px ordi portable 14 pouce
Extra extra large xxl ≥1400px
*/
@media screen and (max-width: 1200px) {
.card {
width: 48%;
}
.card:last-child {
margin: 20px auto;
}
}
/* avant < 576px je veux que tu fasses */
@media screen and (max-width: 576px) {
.logo img {
width: 100px;
}
.navbar ul {
gap: 10px;
}
.search-box input {
width: 220px;
}
.card {
width: 100%;
margin: 20px auto;
}
}