/* =========================================================
   Kpen — Feuille de style
   Thème : sombre "cyber" professionnel
   ========================================================= */

:root {
  --bg: #0a0e14;
  --bg-alt: #0f141d;
  --surface: #131a26;
  --surface-2: #1a2433;
  --border: #243044;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --accent: #2ee6a6;
  --accent-2: #36c2ff;
  --danger: #ff5d5d;
  --radius: 14px;
  --maxw: 1140px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

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

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

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04140e;
  box-shadow: 0 8px 24px -8px rgba(46, 230, 166, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(46, 230, 166, 0.7); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 20, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04140e; font-family: var(--font-mono); font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 9px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(54, 194, 255, 0.18), transparent 70%),
    radial-gradient(500px 300px at 10% 10%, rgba(46, 230, 166, 0.15), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.lead { color: var(--text-dim); font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 1.25rem 0 2rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--accent); font-family: var(--font-mono); }
.hero-stats span { color: var(--text-dim); font-size: 0.9rem; max-width: 180px; }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { color: var(--text-dim); max-width: 620px; margin-top: 0.75rem; }

/* ===== Cartes services ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { font-size: 1.8rem; margin-bottom: 0.85rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ===== Étapes ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}
.step-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent); opacity: 0.6; }
.steps h3 { margin: 0.4rem 0 0.4rem; }
.steps p { color: var(--text-dim); font-size: 0.94rem; }

/* ===== À propos ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-grid p { color: var(--text-dim); margin-top: 1rem; }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.65rem; }
.checklist li { padding-left: 1.8rem; position: relative; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.terminal { background: #060a10; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); }
.terminal-bar { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal pre { padding: 1.25rem; overflow-x: auto; }
.terminal code { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; color: var(--accent); white-space: pre; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-grid > div > p { color: var(--text-dim); margin-top: 1rem; }
.contact-info { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.contact-info li { display: flex; align-items: center; gap: 0.75rem; }
.contact-info a:hover { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,230,166,0.15); }
.form-note { font-size: 0.82rem; color: var(--text-dim); }
.hidden-field { display: none; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center; }
.footer-inner p { color: var(--text-dim); font-size: 0.92rem; }
.footer-legal { font-size: 0.85rem !important; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 0.5rem 24px 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
  .hero-stats { gap: 1.5rem; }
}
