/* =================== RESET & BODY =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: radial-gradient(circle at top left, #0a1a2a, #2b0710, #050505);
    color: #fff;
    line-height: 1.6;
}

/* =================== HEADER =================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.85);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header nav .logo img {
    width: 6rem;
    height: auto;
}

/* Desktop menu */
.nav-links {
    display: flex;
    gap: 2.5rem; /* espace entre logo et menu */
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    opacity: 1;
}

/* Hamburger */
#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile menu panel - fermé par défaut */
#mobile-menu-panel {
    display: none;
    background: rgba(0,0,0,0.9);
    padding: 1rem 2rem;
}

#mobile-menu-panel.show {
    display: block;
}

#mobile-menu-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#mobile-menu-panel ul a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* =================== MAIN =================== */
main.container {
    max-width: 1200px;
    margin: 120px auto 40px auto; /* espace header */
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 0 1rem;
}

/* Hero */
.blog-hero {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg,#2d7dff,#00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.125rem;
    color: #ccc;
}

/* Sections */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title span {
    width: 0.5rem;
    height: 0.5rem;
    background: #2d7dff;
    border-radius: 50%;
}

.section-title h2 {
    font-size: 1.5rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(255,255,255,0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: #2d7dff;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-content {
    padding: 1rem 1.5rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.read-more {
    color: #2d7dff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-banner {
    background: linear-gradient(135deg,#2d7dff,#00ff88);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
}

.sidebar-card {
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 3rem 1rem;
    background: #050505;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 2rem;
}

footer a {
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

footer a:hover {
    color: #fff;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
    main.container {
        grid-template-columns: 1fr;
        margin: 140px 1rem 40px 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    #mobile-menu-toggle { display: block; }
    #mobile-menu-panel ul { gap: 1.25rem; }
    .blog-hero h1 { font-size: 2rem; }
    .blog-hero p { font-size: 1rem; }
    .articles-grid { gap: 1.5rem; }
}