/* --- HERO HOME --- */

.hero-group {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.hero-home {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-dark);
}

.badge-new {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(29, 155, 240, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-home h1 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- BOUTONS LARGES --- */
.btn-primary-large {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-outline-large {
    border: 1px solid var(--border);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    background: var(--gold);
    color: var(--primary);
}

/* --- RUBAN STATS --- */
.stats-ribbon {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}


.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* --- CONTENEUR RESSERRÉ --- */
.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;
}
.container-padding {
    padding: 0 10%;
}
/* --- BOUTONS HERO (Suppression soulignement) --- */
.hero-cta a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-large {
    background: var(--primary);
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline-large {
    border: 1px solid var(--border);
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

/* --- GRILLE FEATURES --- */
.hero-home, .features-section {
    background-color: var(--bg-dark);
}

.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Effet sur la carte centrale (Associations) */
.feature-card.highlighted {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(29, 155, 240, 0.05);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--gold);
    background: linear-gradient(145deg, #232932, #1c2028);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(29, 155, 240, 0.1);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   RESPONSIVE MOBILE (Sous 768px)
   ========================================================================== */
@media (max-width: 768px) {


    .hero-home h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary-large, .btn-outline-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .stats-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .stats-ribbon {
        padding: 20px 0;
    }


    .container-narrow {
        padding: 0 20px;
    }
}

/* --- Publication block styles --- */
.publish-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
}

.publish-inner img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.publish-form textarea {
    background: transparent;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
}

.icon-btn i {
    vertical-align: middle;
}

.publish-visibility {
    background: transparent;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
}

.allow-comments input {
    width: 16px;
    height: 16px;
}