Skip to content

Commit 187cfe4

Browse files
authored
Restore original CSS styles and layout
1 parent 1782d24 commit 187cfe4

1 file changed

Lines changed: 145 additions & 21 deletions

File tree

css/main.css

Lines changed: 145 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -215,53 +215,177 @@ h2 {
215215
}
216216

217217
/* Section Projets */
218-
.projects-grid {
218+
.projects-section {
219+
text-align: left; /* Aligner le titre et l'intro à gauche */
220+
}
221+
222+
h2 {
223+
text-align: center; /* Centrer le h2 global */
224+
}
225+
226+
.projects-intro {
227+
font-size: 1.1rem;
228+
color: var(--text-color);
229+
opacity: 0.8;
230+
max-width: 800px;
231+
margin: 0 auto 3rem auto;
232+
text-align: center;
233+
line-height: 1.7;
234+
}
235+
236+
.projects-grid-elite {
219237
display: grid;
220-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
238+
grid-template-columns: repeat(2, 1fr);
239+
grid-auto-rows: minmax(350px, auto);
221240
gap: 2.5rem;
222-
perspective: 1000px;
241+
perspective: 1500px;
223242
}
224243

225-
.project-card {
244+
.project-card-elite {
226245
background: var(--card-bg-color);
227246
border: 1px solid var(--card-border-color);
228247
border-radius: var(--border-radius);
229-
backdrop-filter: blur(10px);
230-
padding: 2rem;
231-
text-align: left;
232-
transition: transform 0.5s ease;
248+
backdrop-filter: blur(12px);
249+
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
250+
251+
display: flex;
252+
flex-direction: column;
253+
justify-content: space-between;
254+
255+
transition: transform 0.4s ease, box-shadow 0.4s ease;
233256
transform-style: preserve-3d;
257+
overflow: hidden; /* Pour les images */
234258
}
235259

236-
.project-card h3 {
237-
font-size: 1.6rem;
238-
color: var(--secondary-color);
260+
.project-card-elite.large {
261+
grid-column: span 1;
262+
grid-row: span 2;
263+
min-height: 725px; /* 2x hauteur de carte + 1x gap */
239264
}
240265

241-
.project-tech {
266+
/* Contenu pour les cartes SANS image */
267+
.project-content-elite {
268+
padding: 2.5rem;
269+
display: flex;
270+
flex-direction: column;
271+
height: 100%;
272+
}
273+
274+
/* Contenu pour les cartes AVEC image */
275+
.project-card-elite.large .project-content-elite {
276+
height: auto; /* Laisse l'image prendre sa place */
277+
flex-grow: 1;
278+
}
279+
280+
.project-type {
242281
font-size: 0.9rem;
243-
font-style: italic;
282+
font-weight: 600;
244283
color: var(--primary-color);
245-
margin: 0.5rem 0 1rem 0;
284+
text-transform: uppercase;
285+
letter-spacing: 1px;
286+
margin-bottom: 0.5rem;
287+
}
288+
289+
.project-title-elite {
290+
font-size: 1.8rem;
291+
font-weight: 600;
292+
color: var(--secondary-color);
293+
margin-bottom: 1rem;
246294
}
247295

248-
.project-links a {
296+
.project-description-elite {
297+
font-size: 1rem;
298+
color: var(--text-color);
299+
opacity: 0.9;
300+
line-height: 1.7;
301+
margin-bottom: 1.5rem;
302+
flex-grow: 1; /* Pousse les tags et liens en bas */
303+
}
304+
305+
.project-tags {
306+
display: flex;
307+
flex-wrap: wrap;
308+
gap: 0.5rem;
309+
margin-bottom: 1.5rem;
310+
}
311+
312+
.project-tags span {
313+
font-size: 0.8rem;
314+
font-weight: 500;
315+
background: rgba(255, 255, 255, 0.1);
316+
color: var(--text-color);
317+
padding: 0.3rem 0.75rem;
318+
border-radius: 20px;
319+
}
320+
321+
.project-links-elite a {
249322
color: var(--text-color);
250323
text-decoration: none;
251324
font-weight: 600;
252-
margin-top: 1.5rem;
253325
display: inline-block;
254326
border: 1px solid var(--secondary-color);
255-
padding: 0.5rem 1rem;
256-
border-radius: 20px;
257-
transition: background-color 0.3s, color 0.3s;
327+
padding: 0.75rem 1.5rem;
328+
border-radius: 30px;
329+
transition: all 0.3s ease;
330+
margin-right: 0.75rem;
258331
}
259332

260-
.project-links a:hover {
333+
.project-links-elite a:hover {
261334
background-color: var(--secondary-color);
262335
color: var(--bg-color);
336+
box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
263337
}
264338

339+
.project-links-elite a.link-secondary {
340+
background: transparent;
341+
border-color: rgba(255, 255, 255, 0.3);
342+
color: var(--text-color);
343+
}
344+
345+
.project-links-elite a.link-secondary:hover {
346+
background-color: var(--primary-color);
347+
border-color: var(--primary-color);
348+
color: white;
349+
box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
350+
}
351+
352+
/* Styles pour les images des cartes larges */
353+
.project-image-container {
354+
width: 100%;
355+
height: 350px;
356+
overflow: hidden;
357+
background-color: #1A192B; /* Couleur de fond pour le placeholder */
358+
}
359+
360+
.project-placeholder-img {
361+
width: 100%;
362+
height: 100%;
363+
object-fit: cover;
364+
transition: transform 0.4s ease;
365+
}
366+
367+
.project-card-elite.large:hover .project-placeholder-img {
368+
transform: scale(1.05);
369+
}
370+
371+
/* Responsive pour la grille de projets */
372+
@media (max-width: 992px) {
373+
.projects-grid-elite {
374+
grid-template-columns: 1fr;
375+
}
376+
377+
.project-card-elite.large {
378+
grid-column: span 1;
379+
grid-row: span 1; /* Les cartes larges prennent une taille normale sur mobile */
380+
min-height: auto;
381+
}
382+
383+
.project-image-container {
384+
height: 250px; /* Réduire la hauteur de l'image sur mobile */
385+
}
386+
}
387+
388+
265389
/* Section Contact */
266390
.contact-section {
267391
max-width: 800px;
@@ -299,4 +423,4 @@ h2 {
299423
.main-header { flex-direction: column; gap: 1rem; }
300424
.main-nav { margin-top: 1rem; }
301425
.main-nav a { margin: 0 1rem; }
302-
}
426+
}

0 commit comments

Comments
 (0)