/* KMS — Bongola Apps
   Même langage visuel que Spec Forge : fond nuit, accents dorés, Inter.
   L'accent propre à KMS est l'ambre de l'application (#F0A500). */

:root {
    --bg: #0a0a0a;
    --panel: #151515;
    --panel-deep: #101010;
    --border: #222222;
    --border-soft: rgba(255, 255, 255, 0.075);
    --gold: #D4AF37;
    --gold-light: #F1D77A;
    --amber: #F0A500;
    --amber-dim: rgba(240, 165, 0, 0.16);
    --text: #FFFFFF;
    --muted: #9a9a9a;
    --green: #2ECC71;
    --radius: 14px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Lueurs d'ambiance */
.ambient {
    position: fixed;
    width: 620px; height: 620px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}
.ambient-a { top: -220px; left: -160px; background: radial-gradient(circle, var(--amber), transparent 70%); }
.ambient-b { bottom: -260px; right: -200px; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: 0.1; }

.page { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 22px 40px; }

/* En-tête */
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 22px 0 26px;
    border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo img { width: 46px; height: 46px; border-radius: 11px; display: block; background: #111a1e; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brand-name { font-size: 15px; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 400; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-meta { font-size: 12px; color: var(--muted); }
.badge {
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    padding: 5px 11px; border-radius: 999px;
    color: var(--amber); background: var(--amber-dim);
    border: 1px solid rgba(240, 165, 0, 0.35);
}

/* Héros */
.hero {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 44px; align-items: center; padding: 56px 0 44px;
}
.eyebrow {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--amber); margin-bottom: 10px; font-weight: 600;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.lede { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 11px; font-size: 14px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #17120a; }
.btn-primary:hover { background: #ffbb2e; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { background: var(--panel-deep); }

.hero-visual img {
    width: 100%; border-radius: var(--radius);
    border: 1px solid var(--border); display: block;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.caption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* Sections */
.section { padding: 52px 0; border-top: 1px solid var(--border-soft); }
.section h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 18px; }
.section p { color: var(--muted); }

.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 14px; margin-top: 26px;
}
.card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 18px;
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: rgba(240, 165, 0, 0.4); transform: translateY(-2px); }
.card .icon { font-size: 20px; display: block; margin-bottom: 10px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--muted); }

/* Bloc en deux colonnes */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.steps { list-style: none; counter-reset: step; margin-top: 18px; }
.steps li {
    counter-increment: step; position: relative;
    padding-left: 40px; margin-bottom: 16px; color: var(--muted); font-size: 14px;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700;
    color: var(--amber); background: var(--amber-dim);
    border: 1px solid rgba(240, 165, 0, 0.35);
}
.steps strong { color: var(--text); font-weight: 600; }
code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 12px; background: var(--panel-deep);
    border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
}
.panel {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; display: grid; place-items: center;
}
.panel .tree { max-width: 260px; width: 100%; }

/* Encarts */
.callout {
    background: linear-gradient(135deg, rgba(240, 165, 0, 0.09), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(240, 165, 0, 0.22);
    border-radius: var(--radius); padding: 34px; text-align: center;
}
.callout p { max-width: 620px; margin: 0 auto; }

.feedback { text-align: center; }
.feedback p { max-width: 640px; margin: 0 auto 8px; }
.feedback-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* Pied de page */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 26px 0 0; text-align: center;
    font-size: 12px; color: var(--muted);
}
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p + p { margin-top: 6px; }

/* Mobile */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
    .split { grid-template-columns: 1fr; gap: 26px; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .header-right { align-items: flex-start; }
}
