/* =========================================
   STYLE SPÉCIFIQUE - ACTUALITÉS
   ========================================= */

/* --- HERO SECTION --- */
/* Permet de changer l'image de fond spécifiquement pour cette page */
.hero-actualites {
    background-image: url("../img/trail2.webp"); /* Change l'image ici */
    background-position: center;
    background-size: cover;
}

/* --- CONTENEUR PRINCIPAL --- */
.news-container {
    margin: 40px auto;
    min-height: 60vh;
}

/* --- GRILLE DES ACTUALITÉS --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CARTE ACTUALITÉ --- */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image de l'article */
.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none; /* Masqué par défaut si pas d'image */
}

/* Contenu textuel */
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Date */
.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Titre */
.news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Texte corps */
.news-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    white-space: pre-wrap; /* Préserve les sauts de ligne */
}

/* Bouton d'action */
/* Bouton d'action */
.news-btn {
    display: inline-block;
    width: fit-content; /* S'adapte au contenu */
    background-color: #8dc63f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-right: 10px; /* Espace entre les boutons */
    margin-bottom: 10px;
}

.news-btn:hover {
    background-color: #76ac34;
}

/* Message si pas de news */
.no-news {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    padding: 40px;
}
