1

Refond la page d’accueil

This commit is contained in:
2025-09-20 01:38:54 +02:00
parent 03943034ca
commit 52ac7de5bc
6 changed files with 423 additions and 26 deletions

View File

@@ -105,3 +105,123 @@
margin-top: .5rem;
/* Force ces éléments à coller en bas */
}
.featured-section {
padding: 1rem;
}
.featured-card {
display: flex;
gap: 1.5rem;
padding: 1.5rem;
border-radius: 12px;
background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.92));
border: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
align-items: stretch;
}
.featured-card__image {
display: block;
flex: 0 0 42%;
border-radius: 10px;
overflow: hidden;
background: linear-gradient(135deg, #1f1f1f, #101010);
}
.featured-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.featured-card__image--placeholder {
width: 100%;
height: 100%;
min-height: 220px;
background: linear-gradient(135deg, #2a2a2a, #161616);
}
.featured-card__body {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.85rem;
color: var(--text-softer);
}
.featured-card__meta {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: center;
font-size: 0.9rem;
color: var(--text-muted);
}
.featured-card__meta time {
font-size: 0.85rem;
color: var(--text-soft);
}
.featured-card__title {
margin: 0;
font-size: 1.6rem;
line-height: 1.2;
}
.featured-card__title a {
color: var(--text-white);
text-decoration: none;
}
.featured-card__title a:hover,
.featured-card__title a:focus {
color: var(--accent-blue);
}
.featured-card__summary {
margin: 0;
font-size: 1rem;
line-height: 1.6;
color: var(--text-soft);
}
.featured-card__cta {
align-self: flex-start;
padding: 0.45rem 1rem;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.12);
text-decoration: none;
color: var(--text-softer);
font-weight: 600;
letter-spacing: 0.02em;
transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.featured-card__cta:hover,
.featured-card__cta:focus {
color: var(--text-white);
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
}
.featured-card__section {
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.08em;
color: var(--text-muted2);
}
@media (max-width: 900px) {
.featured-card {
flex-direction: column;
}
.featured-card__image {
flex: none;
width: 100%;
aspect-ratio: 16 / 9;
}
}