:root {
    color-scheme: dark;
    --bg: #0a0e15;
    --bg-alt: #0f141d;
    --surface: #141a25;
    --surface-2: #1a2230;
    --border: #232c3b;
    --border-strong: #334055;
    --text: #e6ebf2;
    --heading: #ffffff;
    --muted: #8f9bb0;
    --accent: #3b82f6;
    --accent-hover: #2f6fe0;
    --accent-text: #7db0ff;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --success: #4ade80;
    --error: #f87171;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-outline { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* En-tête */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 21, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo-mark { background: #fff; color: var(--bg); padding: 3px 8px; border-radius: 8px; letter-spacing: .02em; }
.logo-text { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.main-nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Héros */
.hero {
    padding: 80px 0 96px;
    background:
        radial-gradient(ellipse 60% 50% at 75% 20%, rgba(59, 130, 246, .14), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .9em; }
.highlight { color: var(--accent-text); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 10px; }

.hero-visual { position: relative; }
.mock-browser { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-url { margin-left: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 12px; font-size: .78rem; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-hero { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #1e3a66, var(--accent)); margin-bottom: 16px; }
.mock-line { height: 10px; border-radius: 6px; background: var(--surface-2); margin-bottom: 10px; }
.w80 { width: 80%; } .w60 { width: 60%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.mock-cards div { height: 64px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-badge {
    position: absolute; left: -24px; bottom: -20px;
    background: var(--surface-2); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 18px;
    display: flex; flex-direction: column; border: 1px solid var(--border-strong);
}
.mock-badge strong { color: var(--success); font-size: 1.1rem; }
.mock-badge span { color: var(--muted); font-size: .85rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card-icon { font-size: 1.7rem; margin-bottom: 14px; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card-monthly { background: var(--surface-2); }
.badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
    padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-tagline { color: var(--muted); min-height: 3em; }
.price { margin: 8px 0 0; display: flex; align-items: baseline; gap: 6px; }
.amount { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.unit { color: var(--muted); }
.price-monthly { color: var(--muted); margin-bottom: 20px; }
.price-monthly strong { color: var(--accent-text); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.options { margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.options ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.options li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.options li span { color: var(--muted); }
.options li strong { color: #fff; white-space: nowrap; }
.fine-print { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }

/* Réalisations */
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.project-card:hover { border-color: var(--border-strong); }
.project-preview {
    height: 180px; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, .35), transparent 60%),
        var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.project-preview span { color: #fff; font-weight: 700; font-size: 1.3rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 8px 18px; border-radius: 10px; }
.project-body { padding: 24px; }
.project-body p { color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
    display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(59, 130, 246, .35);
    font-weight: 700; margin-bottom: 14px;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.section-dark { background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-text > p { color: var(--muted); }
.contact-direct { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-direct li { display: flex; flex-direction: column; }
.contact-direct span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-direct a { color: #fff; font-weight: 600; text-decoration: none; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--text); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
    font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
}
.contact-form ::placeholder { color: #5d6a80; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .85rem !important; }
.checkbox input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.alert-success { background: rgba(74, 222, 128, .1); color: var(--success); border: 1px solid rgba(74, 222, 128, .3); }
.alert-error { background: rgba(248, 113, 113, .1); color: var(--error); border: 1px solid rgba(248, 113, 113, .3); }

/* Mentions légales */
.legal h1 { margin-bottom: 1em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p { color: var(--muted); }

/* Pied de page */
.site-footer { background: #06090e; color: var(--muted); padding: 56px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* Responsive */
@media (max-width: 980px) {
    .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .hero-inner, .contact-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 480px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
    }
    .main-nav.open { display: flex; }
    .main-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .main-nav .btn { margin-top: 14px; }
    .section { padding: 64px 0; }
    .hero { padding: 48px 0 64px; }
    .grid-4, .grid-2, .steps, .form-row, .options ul { grid-template-columns: 1fr; }
    .mock-badge { left: 12px; }
    .contact-form { padding: 22px; }
}
