/* ============================================================
   MARY — EXPERT-COMPTABLE PAGE (Steve direction)
   Page B2B pro : 5 sections épurées, ton factuel et direct,
   un seul mockup browser justifié pour le public pro.
   ============================================================ */

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

.ec-hero, .ec-chapter, .ec-preview, .ec-promises, .ec-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 */
.ec-hero h1 .em,
.ec-chapter-title .em,
.ec-chapter-body em,
.ec-preview-title .em,
.ec-final h2 .em {
    font-style: italic;
    font-weight: 500;
    color: var(--ec-green);
    letter-spacing: -0.025em;
}

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

.ec-eyebrow {
    font-size: 13px;
    color: var(--ec-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 */
.ec-btn {
    background: var(--ec-black);
    color: #ffffff;
}
.ec-btn:hover {
    background: var(--ec-green);
}

/* ============================================================
   1. HERO
   ============================================================ */
.ec-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 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(--ec-bg);
}

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

.ec-hero-sub {
    font-size: clamp(15px, 1.5vw, 19px);
    color: var(--ec-text-secondary);
    max-width: 680px;
    line-height: 1.55;
    margin: 0 auto 36px;
}
.ec-hero-sub strong {
    color: var(--ec-black);
    font-weight: 600;
}

.ec-hero-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--ec-text-muted);
    letter-spacing: 0.01em;
}

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

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

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

.ec-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(--ec-black);
    max-width: 720px;
}

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

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

/* Modules / "Inclus" / "Conforme" badges */
.ec-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(--ec-text-muted);
    align-items: center;
}

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

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

.ec-chapter-modules .bi-circle-fill { color: var(--ec-green); font-size: 8px; }
.ec-chapter-modules .bi-shield-check { color: var(--ec-green); font-size: 13px; }

/* Format pills (chapitre 02) */
.ec-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.ec-format {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--ec-bg-soft);
    border: 1px solid var(--ec-border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ec-black);
}
.ec-format i { color: var(--ec-green); font-size: 13px; }

/* ============================================================
   3. PREVIEW (browser mockup, simplified)
   ============================================================ */
.ec-preview {
    padding: 160px 32px;
    max-width: 1120px;
    margin: 0 auto;
}

.ec-preview-header {
    text-align: center;
    margin-bottom: 64px;
}

.ec-preview-header .ec-eyebrow {
    text-align: center;
}

.ec-preview-title {
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0;
    color: var(--ec-black);
}

.ec-browser {
    background: var(--ec-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--ec-border);
}

.ec-browser-bar {
    height: 38px;
    background: var(--ec-bg-soft);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
    border-bottom: 1px solid var(--ec-border);
}

.ec-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.ec-browser-dot.r { background: #ff5f57; }
.ec-browser-dot.y { background: #ffbd2e; }
.ec-browser-dot.g { background: #28ca42; }

.ec-browser-url {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--ec-text-muted);
    margin-right: 64px;
    font-family: -apple-system-mono, "SF Mono", Menlo, monospace;
}
.ec-browser-url i { color: #28ca42; margin-right: 4px; font-size: 10px; }

.ec-browser-screen {
    padding: 32px 36px;
}

.ec-portal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.ec-portal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ec-black);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}
.ec-portal-title i { color: var(--ec-green); }

.ec-portal-search {
    font-size: 13px;
    color: var(--ec-text-muted);
    padding: 8px 14px;
    background: var(--ec-bg-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ec-table th {
    text-align: left;
    padding: 12px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--ec-border);
}

.ec-table td {
    padding: 16px 12px;
    color: var(--ec-black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ec-table tbody tr:last-child td {
    border-bottom: none;
}

.ec-table td:first-child {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ec-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ec-tag-ok { background: rgba(0, 168, 107, 0.10); color: var(--ec-green); }
.ec-tag-good { background: rgba(0, 168, 107, 0.06); color: var(--ec-green); }
.ec-tag-warn { background: rgba(245, 158, 11, 0.12); color: #b45309; }

/* ============================================================
   4. PROMESSES (2 colonnes centrées)
   ============================================================ */
.ec-promises {
    padding: 160px 32px;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.ec-promise {
    text-align: center;
}

.ec-promise-num {
    font-size: clamp(64px, 8vw, 110px);
    font-weight: 600;
    color: var(--ec-green);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.ec-promise-label {
    font-size: 14px;
    color: var(--ec-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
    font-weight: 600;
}

.ec-promise-desc {
    font-size: 15px;
    color: var(--ec-text-secondary);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* ============================================================
   5. CTA FINAL
   ============================================================ */
.ec-final {
    padding: 200px 32px;
    text-align: center;
    background: var(--ec-bg);
}

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

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

/* ============================================================
   Mobile responsive
   ============================================================ */
@media (max-width: 900px) {
    .ec-hero { padding: 80px 24px 40px; }
    .ec-hero h1 { font-size: 36px; }
    .ec-hero-sub { font-size: 15px; }

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

    .ec-preview { padding: 100px 24px; }
    .ec-preview-title { font-size: 30px; }
    .ec-browser-screen { padding: 20px; }
    .ec-table { font-size: 12px; }
    .ec-table th, .ec-table td { padding: 10px 8px; }
    .ec-tag { font-size: 10px; padding: 2px 8px; }
    .ec-portal-title { font-size: 15px; }
    .ec-portal-search { display: none; }

    .ec-promises {
        padding: 100px 24px;
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .ec-final { padding: 120px 24px; }
    .ec-final h2 { font-size: 36px; }

    /* Bump 11px labels to 12px on mobile for readability */
    .ec-chapter-modules { font-size: 12px; }
    .ec-chapter-modules .label { font-size: 12px; }
    .ec-browser-url { font-size: 12px; }
    .ec-table th { font-size: 12px; }
}

@media (max-width: 560px) {
    .ec-table thead { display: none; }
    .ec-table, .ec-table tbody, .ec-table tr, .ec-table td { display: block; }
    .ec-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--ec-border);
    }
    .ec-table td {
        padding: 4px 0;
        border: none;
    }
    .ec-table td:first-child {
        font-size: 15px;
        margin-bottom: 4px;
    }
}

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