:root {
    --green:        #00e676;
    --green-dark:   #00c853;
    --green-dim:    rgba(0,230,118,0.12);
    --green-glow:   rgba(0,230,118,0.3);
    --border-green: rgba(0,230,118,0.28);
    --bg:           #060910;
    --surface:      rgba(255,255,255,0.04);
    --surface-hover:rgba(255,255,255,0.08);
    --border:       rgba(255,255,255,0.08);
    --text:         #e8edf2;
    --text-muted:   #8a9bb0;
    --radius:       16px;
    --radius-sm:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Poppins', sans-serif; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px; background: var(--green); color: #060910;
    font-weight: 700; font-size: 0.9rem; border-radius: 50px;
    transition: all 0.25s; box-shadow: 0 0 20px var(--green-glow);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 12px 28px; border: 1px solid var(--border-green);
    color: var(--green); font-weight: 600; font-size: 0.9rem;
    border-radius: 50px; transition: all 0.25s;
}
.btn-ghost:hover { background: var(--green-dim); transform: translateY(-2px); }

.section-tag {
    display: inline-block; padding: 5px 16px;
    background: var(--green-dim); border: 1px solid var(--border-green);
    color: var(--green); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; border-radius: 50px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== HERO ===== */
.blog-hero {
    position: relative; min-height: 52vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 64px; text-align: center; overflow: hidden;
}
.blog-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,230,118,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,230,118,0.03) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}
.blog-hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,230,118,0.12), transparent 70%); top: -80px; right: -60px; }
.orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(0,184,212,0.14), transparent 70%); bottom: 0; left: -40px; }
.blog-hero-inner { position: relative; z-index: 2; max-width: 680px; animation: fadeUp 0.8s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
.blog-hero-inner .section-tag { margin-bottom: 20px; }
.blog-hero-inner h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900; color: #fff; margin-bottom: 16px;
}
.accent { background: linear-gradient(135deg, var(--green), #00b8d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.blog-hero-inner p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }

/* Filtres */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
    padding: 8px 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 50px; color: var(--text-muted); font-size: 0.84rem;
    font-weight: 500; font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--border-green); color: var(--text); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #060910; font-weight: 700; }

/* ===== FEATURED ===== */
.blog-featured { padding: 56px 24px 0; max-width: 1100px; margin: 0 auto; }
.featured-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px; overflow: hidden;
    transition: border-color 0.3s;
}
.featured-inner:hover { border-color: var(--border-green); }
.featured-img { border-radius: var(--radius-sm); overflow: hidden; }
.featured-img-placeholder {
    width: 100%; height: 260px;
    background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,184,212,0.06));
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.featured-content { display: flex; flex-direction: column; gap: 14px; }
.featured-content h2 { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.3; }
.featured-content p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* Tag article */
.article-tag {
    display: inline-block; padding: 4px 12px; border-radius: 50px;
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; width: fit-content;
}

/* Meta */
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== GRILLE ===== */
.blog-grid-section { padding: 48px 24px 80px; max-width: 1100px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.article-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
    display: flex; flex-direction: column;
}
.article-card:hover { border-color: var(--border-green); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.article-card.hidden { display: none; }

.article-img { height: 160px; overflow: hidden; }
.article-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,230,118,0.06), rgba(0,184,212,0.04));
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

.article-body {
    padding: 20px; display: flex; flex-direction: column;
    gap: 10px; flex: 1;
}
.article-body h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.4; }
.article-body p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.article-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.article-link { color: var(--green); font-weight: 700; font-size: 0.88rem; transition: gap 0.2s; }
.article-link:hover { text-decoration: underline; }

.no-results { text-align: center; color: var(--text-muted); font-size: 1rem; padding: 40px; }

/* ===== NEWSLETTER BLOG ===== */
.blog-newsletter {
    padding: 56px 24px; background: rgba(0,0,0,0.3); margin-bottom: 0;
}
.newsletter-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border-green);
    border-radius: var(--radius); padding: 36px 40px;
}
.newsletter-inner h3 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.newsletter-inner p { font-size: 0.9rem; color: var(--text-muted); }
.newsletter-cta-form { display: flex; gap: 8px; flex-shrink: 0; }
.newsletter-cta-form input {
    padding: 12px 18px; background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); border-radius: 50px;
    color: var(--text); font-size: 0.9rem; font-family: 'Poppins', sans-serif;
    outline: none; width: 240px; transition: border-color 0.2s;
}
.newsletter-cta-form input:focus { border-color: var(--border-green); }
.newsletter-cta-form input::placeholder { color: var(--text-muted); }
.newsletter-cta-form button {
    padding: 12px 22px; background: var(--green); color: #060910;
    border: none; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    font-family: 'Poppins', sans-serif; cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
}
.newsletter-cta-form button:hover { background: var(--green-dark); }

/* ===== CTA ===== */
.cta-section { padding: 80px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,230,118,0.06), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.cta-inner h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-inner p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer-futuriste { background: #03050a; border-top: 1px solid var(--border); padding: 64px 24px 32px; color: var(--text); }
.footer-futuriste .container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.footer-brand .footer-logo { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--green); letter-spacing: 1px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; color: var(--text-muted); }
.footer-social a:hover { border-color: var(--border-green); background: var(--green-dim); color: var(--green); }
.footer-col h5 { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--green); }
.footer-newsletter p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 11px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.88rem; font-family: 'Poppins', sans-serif; outline: none; transition: border-color 0.2s; }
.newsletter-form input:focus { border-color: var(--border-green); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button { padding: 11px; background: var(--green); color: #060910; border: none; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: 'Poppins', sans-serif; }
.newsletter-form button:hover { background: var(--green-dark); }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links .sep { color: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-futuriste .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .featured-inner { grid-template-columns: 1fr; gap: 24px; }
    .featured-img-placeholder { height: 200px; }
    .blog-grid { grid-template-columns: 1fr; }
    .newsletter-inner { flex-direction: column; padding: 28px 20px; }
    .newsletter-cta-form { width: 100%; flex-direction: column; }
    .newsletter-cta-form input { width: 100%; }
    .footer-futuriste .container { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}