/* ============================================================
   PivetteQ — Style principal
   Theme : fintech dark, accent vert terminal trading
   ============================================================ */

:root {
    --bg: #0a0e1a;
    --bg-elev: #111728;
    --bg-card: #161d30;
    --border: #1f2940;
    --text: #e6e9f2;
    --text-dim: #8892a8;
    --accent: #00d68f;
    --accent-hover: #00b377;
    --accent-glow: rgba(0, 214, 143, 0.15);
    --danger: #ff5a6b;
    --warning: #ffb454;
    --radius: 12px;
    --max-w: 1180px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.nav ul a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav ul a:hover { color: var(--text); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: #051018;
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #051018;
    transform: translateY(-1px);
    box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -300px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.hero .badge .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #a8b3cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .highlight {
    background: linear-gradient(180deg, var(--accent) 0%, #00a673 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 40px;
}

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

.hero-meta {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .check { color: var(--accent); }

/* ============================================================
   Hero image (capture du dashboard)
   ============================================================ */
.hero-image-wrapper {
    margin: 60px auto 0;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
}
.hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* ============================================================
   Showcase (Strike Map + Delta Profile)
   ============================================================ */
.showcase-image {
    max-width: 100%;
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.showcase-caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 16px;
    font-style: italic;
}

/* ============================================================
   Sections
   ============================================================ */
section { padding: 80px 0; }

.section-head {
    text-align: center;
    margin-bottom: 60px;
}
.section-head .eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
}
.section-head p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ============================================================
   Features grid
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.feature .icon {
    width: 44px; height: 44px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 20px;
}
.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}
.feature p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: "0" counter(step);
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 800;
    color: var(--bg-elev);
    line-height: 1;
}
.step h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}
.step p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
    background: linear-gradient(180deg, transparent 0%, var(--bg-elev) 100%);
}
.price-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.price-card .plan-name {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}
.price-card .price-sub {
    text-align: center;
}
.price-card .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.price-card .price .amount {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
}
.price-card .price .currency {
    font-size: 24px;
    color: var(--text-dim);
}
.price-card .price-sub {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}
.price-card ul {
    list-style: none;
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.price-card ul li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
}
.price-card ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}
.price-card .btn { width: 100%; }
.price-card .fine-print {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 16px;
}

/* ============================================================
   Formulaire d'essai
   ============================================================ */
.trial-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.trial-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.trial-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
}
.trial-form input,
.trial-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.trial-form input:focus,
.trial-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.trial-form textarea { resize: vertical; }
.trial-form .fine-print {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .trial-form .form-row { grid-template-columns: 1fr; }
    .trial-form { padding: 24px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
    padding: 0 24px 20px;
    color: var(--text-dim);
    font-size: 15px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 60px;
    background: var(--bg-elev);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a {
    color: var(--text-dim);
    font-size: 14px;
}
.footer-grid ul a:hover { color: var(--accent); }
.footer-grid .about p {
    color: var(--text-dim);
    font-size: 14px;
    max-width: 320px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-dim);
    font-size: 13px;
}

/* ============================================================
   Pages internes (merci, légal, contact)
   ============================================================ */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px;
}
.page-content h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.page-content h2 {
    font-size: 22px;
    margin: 36px 0 12px;
    color: var(--text);
}
.page-content p, .page-content li {
    color: var(--text-dim);
    margin-bottom: 12px;
}
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content .check-icon {
    color: var(--accent);
    font-size: 48px;
    display: block;
    margin-bottom: 24px;
}

.alert {
    background: var(--bg-card);
    border-left: 3px solid var(--warning);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 14px;
}
.alert strong { color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .nav ul { display: none; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom { justify-content: center; text-align: center; }
    section { padding: 60px 0; }
    .hero { padding: 60px 0 50px; }
}
