/* ── EstimLink — site vitrine ─────────────────────────────────
   Style inspiré des landings "grand format" : fond sombre,
   titres serif immenses, accents verts, étiquettes mono.       */

:root {
    --bg: #07090b;
    --bg-soft: #0d1114;
    --panel: #11161a;
    --line: rgba(255, 255, 255, 0.08);
    --text: #e8edf1;
    --muted: #97a3ad;
    --accent: #35d07f;
    --accent-soft: rgba(53, 208, 127, 0.12);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Inter", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
h3 { font-size: 1.05rem; font-weight: 600; }

.accent { color: var(--accent); font-style: italic; }

.kicker {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ── Apparition au scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Navigation ── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 56px);
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 9, 11, 0.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.nav-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none;
    font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em;
}
.nav-brand img { border-radius: 6px; }
.nav-brand em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ── Boutons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent); color: #062b18;
    box-shadow: 0 0 32px rgba(53, 208, 127, 0.28);
}
.btn-primary:hover { box-shadow: 0 0 44px rgba(53, 208, 127, 0.42); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
    position: relative;
    padding: clamp(130px, 18vh, 190px) clamp(20px, 5vw, 56px) 60px;
    text-align: center;
    max-width: 1200px; margin: 0 auto;
}
.hero-glow {
    position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 560px; pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(53, 208, 127, 0.16), transparent 62%),
        radial-gradient(ellipse at 22% 30%, rgba(64, 156, 255, 0.08), transparent 55%);
    filter: blur(6px);
}
.hero-sub {
    max-width: 640px; margin: 26px auto 0;
    color: var(--muted); font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ── Mock fenêtre Excel ── */
.hero-mock { margin-top: 70px; perspective: 1200px; }
.mock-window {
    max-width: 940px; margin: 0 auto;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(53, 208, 127, 0.06);
    overflow: hidden; text-align: left;
    transform: rotateX(4deg);
}
.mock-titlebar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.mock-title { margin-left: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 1.6fr 1fr; }
.mock-sheet { padding: 16px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; }
.mock-row {
    display: grid; grid-template-columns: 34px 1fr 30px 44px 62px 78px;
    gap: 8px; padding: 7px 8px; color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mock-row span:nth-child(n+3) { text-align: right; }
.mock-row.head { color: var(--text); font-weight: 500; background: rgba(255, 255, 255, 0.03); border-radius: 6px; }
.mock-row.total { color: var(--accent); font-weight: 500; border-bottom: none; }
.mock-pane { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg-soft); }
.mock-pane-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.mock-pane-head img { border-radius: 4px; }
.mock-msg { font-size: 0.76rem; padding: 9px 12px; border-radius: 10px; max-width: 95%; }
.mock-msg.user { background: rgba(255, 255, 255, 0.06); align-self: flex-end; }
.mock-msg.bot { background: var(--accent-soft); color: #bfeed6; align-self: flex-start; }
.mock-input {
    margin-top: auto; padding: 9px 12px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem;
}

/* ── Bandeau compatibilité ── */
.strip {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
    padding: 26px 20px; margin: 30px auto 0;
    font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip strong { color: var(--text); font-weight: 500; }
.strip-sep { color: var(--accent); }

/* ── Sections ── */
.section {
    max-width: 1200px; margin: 0 auto;
    padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 56px) 0;
}
.section-sub { color: var(--muted); max-width: 620px; margin-top: 18px; font-size: 1.04rem; }

/* ── Grille produit ── */
.grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 54px;
}
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(53, 208, 127, 0.35); transform: translateY(-3px); }
.card-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.2rem;
    background: var(--accent-soft); margin-bottom: 18px;
}
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ── Split ArchiCAD ── */
.section-split {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.checklist { list-style: none; margin-top: 26px; }
.checklist li {
    position: relative; padding: 8px 0 8px 32px; color: var(--muted); font-size: 0.98rem;
}
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 8px;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    font-size: 0.75rem; font-weight: 700;
}
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-node {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 24px 20px; min-width: 120px;
    text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.flow-node-accent { border-color: rgba(53, 208, 127, 0.4); box-shadow: 0 0 40px rgba(53, 208, 127, 0.1); }
.flow-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.flow-x {
    width: 42px; height: 42px; border-radius: 10px;
    display: grid; place-items: center;
    background: #1a6e42; color: #fff; font-weight: 700; font-size: 1.2rem;
}
.flow-arrow { color: var(--accent); font-size: 1.3rem; }

/* ── Tarifs ── */
.pricing {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 54px; align-items: stretch;
}
.price-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    padding: 32px 26px;
}
.price-card.featured {
    border-color: rgba(53, 208, 127, 0.5);
    background: linear-gradient(180deg, rgba(53, 208, 127, 0.07), var(--panel) 45%);
    box-shadow: 0 0 60px rgba(53, 208, 127, 0.1);
}
.badge {
    position: absolute; top: -12px; left: 26px;
    background: var(--accent); color: #062b18;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 12px; border-radius: 999px;
}
.price { font-family: var(--serif); margin-top: 14px; }
.price .amount { font-size: 2.6rem; }
.price .cur { color: var(--muted); font-family: var(--sans); font-size: 0.9rem; }
.price-note { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.price-card ul { list-style: none; margin: 22px 0 28px; flex: 1; }
.price-card li {
    position: relative; padding: 6px 0 6px 24px;
    color: var(--muted); font-size: 0.9rem;
}
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ── Téléchargement ── */
.section-download { padding-bottom: 40px; }
.download-box {
    background:
        radial-gradient(ellipse at 50% -30%, rgba(53, 208, 127, 0.14), transparent 60%),
        var(--panel);
    border: 1px solid var(--line); border-radius: 24px;
    padding: clamp(36px, 6vw, 64px);
    text-align: center;
}
.dl-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    max-width: 760px; margin: 38px auto 0; text-align: left;
}
.dl-card {
    position: relative;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 22px;
    display: flex; flex-direction: column; gap: 10px;
}
.dl-tag {
    align-self: flex-start;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #062b18; background: var(--accent);
    padding: 3px 10px; border-radius: 999px; font-weight: 700;
}
.dl-tag-opt { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.dl-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.dl-size { opacity: 0.65; font-weight: 400; font-size: 0.82em; margin-left: 4px; }
.download-hint a { color: var(--accent); }

.steps {
    max-width: 560px; margin: 30px auto 8px; text-align: left;
    color: var(--muted); font-size: 0.97rem;
    padding-left: 22px;
}
.steps li { padding: 6px 0; }
.steps strong, .steps em { color: var(--text); }
.download-hint { margin-top: 22px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* ── Footer ── */
.footer {
    margin-top: 110px; border-top: 1px solid var(--line);
    padding: 48px clamp(20px, 5vw, 56px) 32px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-tag { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
    max-width: 1200px; margin: 34px auto 0;
    font-family: var(--mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.3);
}

/* ── Docs ── */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 140px clamp(20px, 5vw, 40px) 80px; }
.doc-wrap h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.doc-wrap h2 { font-size: 1.6rem; margin: 54px 0 14px; }
.doc-wrap p, .doc-wrap li { color: var(--muted); font-size: 0.98rem; }
.doc-wrap ol, .doc-wrap ul { padding-left: 24px; margin: 12px 0; }
.doc-wrap li { padding: 4px 0; }
.doc-wrap strong, .doc-wrap em { color: var(--text); }
.doc-wrap code {
    font-family: var(--mono); font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
    padding: 2px 7px; border-radius: 6px; color: var(--text);
}
.doc-callout {
    border: 1px solid rgba(53, 208, 127, 0.3); border-radius: 12px;
    background: var(--accent-soft); padding: 16px 20px; margin: 20px 0;
}
.doc-callout p { color: #bfeed6; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid, .pricing, .dl-grid { grid-template-columns: 1fr; }
    .section-split { grid-template-columns: 1fr; gap: 40px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-sheet { border-right: none; border-bottom: 1px solid var(--line); }

    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; display: none;
        background: rgba(7, 9, 11, 0.97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 15px 24px; border-top: 1px solid var(--line); }
    .nav-burger { display: block; }
}
