* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;;
}

body {
    background-color: #42464e;
}

/* Accueil */
.accueil {
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url('../images/Laferrari.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.fond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
     z-index: 0;
}

.overlay {
    position: relative;
    text-align: center;
    z-index: 1;
}

.overlay h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: 40px;
}

.overlay p {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    margin-inline: clamp(20px, 8vw, 80px);
    line-height: 1.4;
}

.article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 35px;
    margin: 50px auto;
}

h2 {
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 60px 0 20px;
}

.container-article {
    text-decoration: none;
}

.article-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.40);
    transition: 0.2s ease;
}

.article-image img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: 0.2s ease;
}

.car-overlay {
    background: #fff;
    padding: 12px 14px;
    text-align: left;
}

.car-overlay h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.date-article {
  font-size: 0.9rem;
  color: #555;
}

.date-bouton-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.overlay-bouton {
    margin-top: 10px;
    display: inline-block;
    background-color: #2d2d2d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    transition: 0.2s ease;
}

.container-article:hover .article-image img {
    transform: scale(1.03);
}

.container-article:hover .overlay-bouton {
    background-color: #444;
    transform: scale(1.03);
}

.voir-plus {
    display: flex;
    justify-content: center;
    margin: 50px 50px;
}

.btn-voir-plus {
    background: #2d2d2d;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.btn-voir-plus:hover {
    background: #87badc;
    transform: scale(1.01);
}

.aucun-article {
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    margin: 40px 0;
}

/* RESPONSIVE */
@media (min-width: 640px) {
    .article {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .article {
        grid-template-columns: 1fr 1fr 1fr;
    }
}