/* Styles pour la section actualités */
.news-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/pattern-bg.png');
    background-size: cover;
    background-attachment: fixed;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h6 {
    color: #21912d;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Styles pour les cartes */
.news-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

/* Article principal */
.news-card-featured {
    height: calc(100% - 30px);
    margin-bottom: 30px;
}

.news-card-featured .news-image-container-large {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Ratio 4:3 */
}

.news-card-featured .news-title {
    font-size: 24px;
}

.news-card-featured .news-excerpt {
    font-size: 16px;
}

/* Articles secondaires */
.news-card-horizontal {
    display: flex;
    flex-direction: column;
}

.news-card-horizontal .row {
    height: 100%;
}

.news-image-container-small {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Ratio 1:1 */
    height: 100%;
}

/* Image container commun */
.news-image-container-large,
.news-image-container-small {
    position: relative;
    overflow: hidden;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

/* Date badge */
.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #21912d;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(33, 145, 45, 0.2);
}

.news-date .day {
    font-size: 20px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

/* Contenu */
.news-content {
    padding: 25px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: #21912d;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #21912d;
}

.news-title-large {
    font-size: 28px;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-link {
    color: #21912d;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-link:hover {
    color: #1a7b23;
    transform: translateX(5px);
}

.news-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Animation d'entrée */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .news-card-featured {
        margin-bottom: 30px;
    }
    
    .news-title-large {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .news-date {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }
    
    .news-date .day {
        font-size: 18px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-card-horizontal .news-image-container-small {
        padding-top: 60%;
    }
} 