/* ========================= */
/* PAGE HERO GENERIQUE */
/* ========================= */

.page-hero {
    position: relative;
    min-height: 48vh;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(circle at top, rgba(99, 102, 241, 0.2), transparent 38%),
        linear-gradient(180deg, #020617, #0f172a);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at center, rgba(56, 189, 248, 0.12), transparent 35%),
        linear-gradient(rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.95));
}

.page-hero-content {
    position: relative;
    z-index: 2;

    max-width: 820px;
    padding: 80px 24px 60px;
}

.page-hero-content h1 {
    margin: 0 0 22px;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;

    color: #ffffff;
    text-shadow:
        0 0 18px rgba(99, 102, 241, 0.45),
        0 0 30px rgba(0, 0, 0, 0.8);
}

.page-hero-content p {
    margin: 0 auto;

    max-width: 760px;

    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
}

/* ========================= */
/* COMMUNITY PAGE */
/* ========================= */

.community-section {
    max-width: 1200px;
    margin: auto;
    padding: 105px 60px;

    background:
        radial-gradient(circle at left, rgba(99, 102, 241, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72));
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.community-card {
    position: relative;
    overflow: hidden;

    padding: 30px 26px;

    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));

    border: 1px solid var(--border-soft);
    border-radius: 16px;

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.community-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;

    height: 2px;

    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.7;
}

.community-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(99, 102, 241, 0.18);
}

.community-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 22px;

    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 13px;
}

.community-card h3 {
    margin: 0 0 14px;

    color: #ffffff;
    font-size: 22px;
}

.community-card p {
    min-height: 88px;
    margin: 0 0 22px;

    color: var(--text-muted);
    line-height: 1.65;
}

.community-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.community-link:hover {
    color: #facc15;
}

.community-link.disabled {
    color: var(--text-soft);
    cursor: not-allowed;
}

/* ========================= */
/* COMMUNITY CTA */
/* ========================= */

.community-cta {
    padding: 100px 30px;

    background:
        radial-gradient(circle at right, rgba(56, 189, 248, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), #020617);
}

.community-cta-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.community-cta-content h2 {
    margin: 0 0 20px;

    font-size: clamp(32px, 4vw, 48px);
}

.community-cta-content p {
    max-width: 760px;
    margin: auto;

    color: var(--text-muted);
    line-height: 1.8;
}

.community-cta-actions {
    margin-top: 32px;
}

/* ========================= */
/* COMMUNITY RESPONSIVE */
/* ========================= */

@media (max-width: 1024px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-card p {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 42vh;
    }

    .page-hero-content {
        padding: 60px 20px 45px;
    }

    .community-section,
    .community-cta {
        padding: 75px 20px;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        padding: 26px;
    }
}