/* HERO BLOG */

.blog-hero {
    position: relative;
    padding-block: 4.8rem 4rem;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%);
}

.blog-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.7;
    z-index: -1;
}

.blog-orbit--one {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
    top: -80px;
    left: -140px;
}

.blog-orbit--two {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 65%);
    bottom: -200px;
    right: -140px;
}

.blog-hero-inner {
    display: flex;
    justify-content: center;
    text-align: center;
}

.blog-hero-text h1 {
    font-size: clamp(2.3rem, 3.4vw, 2.8rem);
    line-height: 1.1;
}

.blog-hero-text p {
    margin-top: 1rem;
    max-width: 36rem;
    margin-inline: auto;
    color: var(--clr-text-muted);
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border: 1px solid rgba(74, 222, 128, 0.6);
}

/* GRILLES D'ARTICLES */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
    padding-bottom: 1.6rem;
}

.blog-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.blog-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* CONTENU CACHÉ DES ARTICLES */

.article-content {
    display: none;
    margin-top: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(74, 222, 128, 0.7);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
    color: #e5e7eb;
    font-size: 0.9rem;
    text-align: left;
}

.article-content p + p {
    margin-top: 0.6rem;
}

.article-content.is-open {
    display: block;
}

/* BOUTON "LIRE L'ARTICLE" */

.btn.lire-article {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    padding-inline: 1rem;
}

.btn.lire-article:hover {
    transform: translateY(-2px);
}

/* COMMUNAUTÉ */

.blog-community {
    max-width: 540px;
    margin-inline: auto;
    text-align: center;
}

.blog-community ul {
    list-style: none;
    margin-bottom: 1.4rem;
}

.blog-community li + li {
    margin-top: 0.5rem;
}

/* RESPONSIVE */

/* ARTICLE MODAL */

.article-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.article-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.article-modal-content {
    position: relative;
    background: var(--clr-bg, #0f172a);
    border: 1px solid var(--clr-border-subtle, rgba(74, 222, 128, 0.3));
    border-radius: 16px;
    max-width: 780px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.article-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--clr-text-muted, #94a3b8);
    z-index: 1;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.article-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-text, #e2e8f0);
}

.article-modal-body {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--clr-text, #e2e8f0);
}

.article-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.article-modal-body h1,
.article-modal-body h2,
.article-modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.article-modal-body p {
    margin-bottom: 0.8rem;
}

.article-modal-body .btn {
    display: inline-block;
    margin-top: 1rem;
}

@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        padding-block: 4rem 3.2rem;
    }
}
