/* ========================================
   PAGE D'ACCUEIL
======================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    background: url("/static/images/cover_landing_page.55aee3cb3b6c.png") center / cover no-repeat;
    isolation: isolate;
}

/* Voile sombre dégradé pour garantir la lisibilité du texte */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(4, 34, 31, 0.88) 0%, rgba(0, 80, 72, 0.65) 55%, rgba(0, 124, 112, 0.25) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.hero-content {
    color: #FFFFFF;
}

/* Carte des chiffres réels */
.hero-stats {
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(4, 34, 31, 0.35);
    color: var(--text);
}

.hero-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.hero-stats-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.hero-pnl {
    margin-top: 12px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.hero-pnl-label {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.sparkline {
    display: block;
    width: 100%;
    height: 72px;
    margin-top: 16px;
}

.sparkline-line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linejoin: round;
}

.sparkline-area {
    fill: rgba(0, 124, 112, 0.1);
}

.sparkline.is-down .sparkline-line { stroke: var(--neg); }
.sparkline.is-down .sparkline-area { fill: rgba(220, 38, 38, 0.08); }

.hero-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.hero-kpis dt {
    font-size: 12px;
    color: var(--muted);
}

.hero-kpis dd {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.hero-stats-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
}

.hero-stats-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7FD1C7;
}

.hero h1 {
    max-width: 680px;
    margin-top: 12px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-lead {
    max-width: 560px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn--lg {
    height: 48px;
    padding: 0 24px;
}

.btn--light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.btn--light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fonctionnalités */
.features {
    padding-top: 48px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 28px;
}

.section-head .hero-eyebrow {
    color: var(--brand);
}

.section-head h2 {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.feature-card p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* Bloc final */
.info-block {
    margin-top: 56px;
    padding: 48px;
    text-align: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.info-block h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.info-block > p {
    max-width: 640px;
    margin: 12px auto 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.info-block .disclaimer {
    margin: 20px auto 0;
    font-size: 12px;
    color: var(--subtle);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero-stats {
        max-width: 480px;
    }
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 800px) {
    .hero {
        min-height: 0;
    }

    .hero-grid {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-pnl {
        font-size: 34px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .features {
        padding-top: 40px;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .info-block {
        margin-top: 40px;
        padding: 32px 20px;
    }
}
