/* 🎨 Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a ;
  
    min-block-size: 100vh;
    min-block-size: 100dvh;
}

h1 {
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
}

.entete {
    background-color: #4d5d6d;
    padding: 1em 0;
}

/* 📜 Conteneur des articles */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1em auto;
}

/* 📝 Article */
.article {
    background-color: #393944;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.article:hover {
    transform: scale(1.03);
}

.article a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* 🖼️ Image */
.article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ✍ Contenu */
.article-content {
    padding: 1rem;
}

.article h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.article-description {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #888;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .entete h1 {
        font-size: large;   
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
    .article {
        margin: 0 1em;
    }
}

/* 🌌 Fond étoilé animé */
@keyframes twinkling {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkling 1.5s infinite alternate ease-in-out;
}

/* Génération aléatoire des étoiles */
.star:nth-child(odd) {
    animation-duration: 1.5s;
}

.star:nth-child(even) {
    animation-duration: 2.5s;
}