/* LANDING ACTUALITÉS - DESIGN "CLEAN & MODERN" */

/* =======================================================
   1. FORCE FULL WIDTH (Override GeneratePress)
   ======================================================= */
body.page-template-landing-actualites .site.grid-container,
body.page-template-landing-actualites .site-content,
body.page-template-landing-actualites #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-landing-actualites .entry-content,
body.page-template-landing-actualites .entry-header {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =======================================================
   2. FIX COULEURS & CONTRASTES
   ======================================================= */
/* Le titre était sombre car il héritait du style global H1 */
.hero-title {
    color: #ffffff !important; /* Force le blanc */
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Ajoute de la lisibilité */
}

.hero-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    line-height: 1.6;
}

.stat-number {
    color: var(--be-accent-gold, #D4AF37) !important;
}

.stat-label {
    color: rgba(255,255,255,0.8) !important;
}

/* --- HERO SECTION --- */
.hero-landing {
    background: linear-gradient(135deg, var(--be-primary) 0%, #061539 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Motif de fond subtil */
.hero-landing::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--be-accent-gold);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white !important;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number { display: block; font-size: 2rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.875rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- SECTION FILTRES --- */
.filters-section {
    margin-top: -40px; /* Chevauchement Hero */
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.filters-container {
    background: var(--be-bg-surface);
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    gap: 10px;
    border: 1px solid var(--be-border);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--be-text-muted);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover { color: var(--be-text-main); background: var(--be-bg-secondary); }

.filter-btn.active {
    background: var(--be-primary);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(10, 36, 99, 0.2);
}
[data-theme="dark"] .filter-btn.active { background: var(--be-accent-gold); color: #000 !important; }


/* --- GRILLE ARTICLES (LE DESIGN EXACT) --- */
.news-section {
    padding-bottom: 80px;
    background-color: var(--be-bg-secondary); /* Fond gris très léger */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* LA CARTE ET SES EFFETS */
.news-card {
    background: var(--be-bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease; /* Transition fluide carte */
    display: flex; flex-direction: column;
    border: 1px solid var(--be-border);
}

/* L'EFFET HOVER DEMANDÉ */
.news-card:hover {
    transform: translateY(-5px); /* Remonte légèrement */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Ombre profonde */
}

.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease; /* Zoom lent */
}

.news-card:hover .card-image img {
    transform: scale(1.05); /* Zoom image au survol */
}

.card-badge {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--be-primary);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-content { padding: 32px; flex: 1; display: flex; flex-direction: column; }

.card-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.875rem; color: var(--be-text-muted);
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.5rem; font-weight: 700; line-height: 1.3;
    margin: 0 0 16px 0; color: var(--be-text-main);
}
.card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.card-title a:hover { color: var(--be-primary); }

.card-excerpt {
    color: var(--be-text-muted); line-height: 1.6;
    margin-bottom: 24px; flex: 1;
}

.card-footer {
    padding-top: 24px;
    border-top: 1px solid var(--be-border);
    display: flex; justify-content: space-between; align-items: center;
}

.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 0.875rem; font-weight: 600; color: var(--be-text-main); }
.read-more-icon { color: var(--be-primary); font-size: 1.25rem; transition: transform 0.3s; }
.news-card:hover .read-more-icon { transform: translateX(5px); }


/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: var(--be-bg-surface);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--be-border);
}

.newsletter-box { max-width: 600px; margin: 0 auto; }
.newsletter-box h2 { font-size: 2.5rem; margin-bottom: 16px; color: var(--be-text-main); }
.newsletter-box p { color: var(--be-text-muted); margin-bottom: 32px; font-size: 1.1rem; }

.newsletter-form {
    display: flex; gap: 12px; background: var(--be-bg-secondary);
    padding: 6px; border-radius: 50px; border: 1px solid var(--be-border);
}
.newsletter-input {
    flex: 1; border: none; background: transparent; padding: 12px 24px;
    outline: none; color: var(--be-text-main); font-size: 1rem;
}
.newsletter-btn {
    background: var(--be-primary); color: white; border: none;
    padding: 12px 32px; border-radius: 50px; font-weight: 600; cursor: pointer;
    transition: background 0.3s;
}
.newsletter-btn:hover { background: var(--be-primary-light); }
[data-theme="dark"] .newsletter-btn { background: var(--be-accent-gold); color: #000; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .filters-container { flex-wrap: nowrap; overflow-x: auto; padding: 10px; width: 100%; justify-content: flex-start; }
    .filter-btn { white-space: nowrap; }
}
