/* ============================================================
   MARY — FEATURES PAGE (Steve direction)
   Page éditoriale : 5 chapitres alignés à gauche, encadrés par
   un hero et un CTA centrés. Cohérence avec home et pricing.
   ============================================================ */

:root {
    --features-black: #1a1a1a;
    --features-text-secondary: #5a5a5e;
    --features-text-muted: #86868b;
    --features-text-quiet: #b0b0b0;
    --features-bg: #ffffff;
    --features-border: rgba(0, 0, 0, 0.06);
    --features-green: #00a86b;
    --features-green-bright: #00d48a;
}

/* Apply Inter to the whole features page */
.features-hero, .features-intro, .features-chapter,
.features-compliance, .features-final {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: 'cv11', 'ss03', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Italic green accent (signature) */
.features-hero h1 .em,
.features-intro h2 .em,
.features-chapter-title .em,
.features-compliance h2 .em,
.features-final h2 .em,
.features-chapter-body em {
    font-style: italic;
    font-weight: 500;
    color: var(--features-green);
    letter-spacing: -0.025em;
}

/* Reveal-on-scroll utility */
.features-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.features-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.features-eyebrow {
    font-size: 13px;
    color: var(--features-green);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
}

/* CTA — géométrie partagée définie dans _components.css */
.features-btn {
    background: var(--features-black);
    color: #ffffff;
}
.features-btn:hover {
    background: var(--features-green);
}

/* ============================================================
   1. HERO (centered)
   ============================================================ */
.features-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 32px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(0, 168, 107, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 70%),
        var(--features-bg);
}

.features-hero h1 {
    font-size: clamp(36px, 5.6vw, 80px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 1000px;
    margin: 0 0 24px;
    color: var(--features-black);
}

.features-hero-sub {
    font-size: clamp(15px, 1.5vw, 19px);
    color: var(--features-text-secondary);
    max-width: 620px;
    line-height: 1.55;
    margin: 0 auto 40px;
}

/* ============================================================
   2. INTRO (centered, transition)
   ============================================================ */
.features-intro {
    padding: 200px 32px 120px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.features-intro h2 {
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin: 0 0 16px;
    color: var(--features-black);
}

.features-intro p {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--features-text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   3-7. CHAPITRES (left-aligned, editorial)
   ============================================================ */
.features-chapter {
    padding: 120px 32px;
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--features-border);
}

.features-chapter:first-of-type {
    border-top: none;
}

.features-chapter-num {
    font-size: 13px;
    color: var(--features-green);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.features-chapter-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 32px;
    color: var(--features-black);
    max-width: 720px;
}

.features-chapter-body {
    font-size: clamp(16px, 1.5vw, 19px);
    color: #424245;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 0 32px;
    font-weight: 400;
}

.features-chapter-body strong {
    color: var(--features-black);
    font-weight: 600;
}

/* "Modules" en petits dots à la fin de chaque chapitre */
.features-chapter-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: var(--features-text-muted);
}

.features-chapter-modules .label {
    color: var(--features-text-secondary);
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    align-self: center;
}

.features-chapter-modules > span:not(.label) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.features-chapter-modules i {
    color: var(--features-green);
    font-size: 8px;
}

/* ============================================================
   8. CONFORMITÉ (centered, brief)
   ============================================================ */
.features-compliance {
    padding: 160px 32px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    text-align: center;
}

.features-compliance .features-eyebrow {
    margin-bottom: 14px;
}

.features-compliance h2 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
    color: var(--features-black);
}

.features-compliance p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--features-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.55;
}

.features-compliance-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.features-compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid var(--features-border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--features-black);
}

.features-compliance-badge i {
    color: var(--features-green);
    font-size: 14px;
}

/* ============================================================
   9. CTA FINAL (centered)
   ============================================================ */
.features-final {
    padding: 200px 32px;
    text-align: center;
    background: #ffffff;
}

.features-final h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 32px;
    color: var(--features-black);
}

.features-final-meta {
    margin-top: 22px;
    font-size: 12px;
    color: var(--features-text-muted);
    letter-spacing: 0.01em;
}
.features-final-meta span { margin: 0 4px; }
.features-final-meta .dot { color: var(--features-text-quiet); }

/* ============================================================
   Mobile responsive
   ============================================================ */
@media (max-width: 720px) {
    .features-hero { padding: 80px 24px 40px; min-height: 100vh; }
    .features-hero h1 { font-size: 36px; }

    .features-intro { padding: 120px 24px 80px; }
    .features-intro h2 { font-size: 32px; }

    .features-chapter { padding: 80px 24px; }
    .features-chapter-title { font-size: 30px; }
    .features-chapter-body { font-size: 16px; }

    .features-compliance { padding: 100px 24px; }
    .features-compliance h2 { font-size: 30px; }
    .features-compliance-badges { gap: 10px; }

    .features-final { padding: 120px 24px; }
    .features-final h2 { font-size: 36px; }
    .features-final-meta { font-size: 12px; line-height: 1.5; }
    .features-chapter-modules .label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .features-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
