/* ===== MODULE NEWS ===== */

/* ===== HERO SLIDER ===== */
.news-hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #0a2a3a;
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 1s ease-in-out;
}
.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 42, 58, 0.6);
}
.slide-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.slide-overlay h2 {
    font-size: 2rem;
    margin: 12px 0 20px;
    line-height: 1.3;
}
.slide-badge {
    background: #d4af37;
    color: #0a2a3a;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== HERO FALLBACK ===== */
.news-hero {
    background: linear-gradient(135deg, #0a2a3a, #114a60);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.news-hero .hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.news-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.news-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== LISTE ===== */
.news-list {
    padding: 50px 0 60px;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #d4af37;
}

.news-image {
    height: 180px;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-title {
    font-size: 1.15rem;
    color: #0a2a3a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-date {
    font-size: 0.8rem;
    color: #64748b;
}
.news-date i {
    color: #d4af37;
    margin-right: 4px;
}

.btn-link {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.btn-link:hover {
    gap: 12px;
}

/* ===== ARTICLE DÉTAIL ===== */
.news-article {
    padding: 50px 0 60px;
    background: #f8fafc;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.btn-back:hover {
    gap: 12px;
}
.article-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden;
}
.article-image {
    margin: -32px -28px 24px;
    height: 300px;
    overflow: hidden;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.article-header h1 {
    font-size: 1.8rem;
    color: #0a2a3a;
    margin: 10px 0 12px;
    line-height: 1.3;
}
.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}
.article-meta i {
    color: #d4af37;
    margin-right: 4px;
}
.article-video {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}
.article-content {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 14px;
}
.article-content h2, .article-content h3 {
    color: #0a2a3a;
    margin: 20px 0 10px;
}
.article-content ul, .article-content ol {
    margin: 12px 0 12px 24px;
}
.article-content a {
    color: #2e7d32;
    text-decoration: underline;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 14px 0;
}
.article-content blockquote {
    border-left: 4px solid #d4af37;
    padding: 10px 20px;
    background: #f8fafc;
    margin: 16px 0;
    font-style: italic;
    color: #475569;
}
.article-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.article-actions .btn-primary { background: #2e7d32; color: #fff; }
.article-actions .btn-primary:hover { background: #1b5e20; transform: translateY(-2px); }
.article-actions .btn-outline { border: 2px solid #2e7d32; color: #2e7d32; }
.article-actions .btn-outline:hover { background: #2e7d32; color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 1.05rem;
    color: #475569;
    margin: 4px 0;
}
.empty-state p:last-child {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ===== BOUTONS & CTA ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #2e7d32; color: #fff; }
.btn-primary:hover { background: #1b5e20; transform: translateY(-2px); }

.cta-final {
    padding: 50px 0;
    text-align: center;
}
.cta-final h2 {
    font-size: 1.8rem;
    color: #0a2a3a;
    margin-bottom: 12px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-hero-slider { height: 320px; }
    .slide-overlay h2 { font-size: 1.3rem; }
    .news-hero { padding: 50px 0 30px; }
    .news-hero h1 { font-size: 1.8rem; }
    .news-grid { grid-template-columns: 1fr; }
    .article-card { padding: 20px 16px; }
    .article-image { margin: -20px -16px 20px; height: 200px; }
    .article-header h1 { font-size: 1.4rem; }
    .article-video iframe { height: 240px; }
}