/* =========================================================
   VELKORA CONSULTING - Design System
   Sombre · sobre · un seul accent violet foncé
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:            #0a0d14;
  --bg-soft:       #0e121c;
  --surface:       #11161f;
  --surface-2:     #141a25;
  --border:        rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text:          #e6ebf3;
  --muted:         #93a0b4;
  --faint:         #828ea3;

  --accent:        #3a1c91;   /* violet / indigo très foncé */
  --accent-bright: #8b6cf5;
  --accent-dim:    rgba(58, 28, 145, 0.16);
  --accent-glow:   rgba(139, 108, 245, 0.10);

  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 16px 40px -28px rgba(0,0,0,.85);

  --maxw:          1140px;
  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease:          cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Ambient background (très discret) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 50% -5%, var(--accent-glow), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,184,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }
.section-sm { padding: 70px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p  { color: var(--muted); }

.accent-text { color: var(--accent-bright); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--accent-dim);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .96rem;
  padding: 13px 24px;
  border-radius: 8px;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #ffffff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10,13,20,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,13,20,.9); }
.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
/* Logo image (wordmark) */
.brand .logo-full { height: 38px; width: auto; }
footer .brand .logo-full { height: 48px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta { color: #ffffff; }
.nav-links a.nav-cta:hover { color: #ffffff; background: var(--accent-bright); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 80px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 18ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; gap: 0; margin: 56px auto 0; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 640px; }
.hero-meta .stat { padding: 20px 26px; flex: 1; min-width: 150px; border-right: 1px solid var(--border); }
.hero-meta .stat:last-child { border-right: none; }
.hero-meta .stat strong { display: block; font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.hero-meta .stat span { font-size: .85rem; color: var(--faint); }

/* ---------- Cards ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card .ico {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
  color: var(--accent-bright);
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: .95rem; }
.card .tag {
  display: inline-block; margin-top: 15px;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: var(--faint); text-transform: uppercase;
}

/* carte mise en avant : liseré accent à gauche, discret */
.card.feature { border-color: var(--border-strong); }
.card.feature::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
}
.card.feature .ico { background: var(--accent); color: #ffffff; border-color: transparent; }
.card.feature .tag { color: var(--accent-bright); }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 20px; padding: 24px 26px; }
.step .num {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  background: var(--accent-dim); color: var(--accent-bright);
  border: 1px solid var(--border-strong);
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: .95rem; }

/* ---------- Checklist ---------- */
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--text); }
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--accent-dim); border: 1px solid var(--border-strong);
  margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b6cf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.narrow { gap: 38px; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.value-grid .cell { background: var(--surface); padding: 26px; }
.value-grid .cell strong { display: block; font-size: 1.15rem; color: var(--accent-bright); margin-bottom: 4px; }
.value-grid .cell span { font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: .96rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,108,245,.18);
}
.field.row { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field.row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--faint); }
.form-success {
  display: none;
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--accent-dim); border: 1px solid var(--border-strong);
  color: var(--text); font-size: .94rem;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: rgba(225, 72, 72, 0.10); border: 1px solid rgba(225, 72, 72, 0.38);
  color: #f0b4b4; font-size: .94rem;
}
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside .glass { padding: 28px; }
.contact-aside .info-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-aside .info-item:last-child { border-bottom: none; }
.contact-aside .info-item .ico { color: var(--accent-bright); flex: 0 0 auto; }
.contact-aside .info-item strong { display: block; font-size: .94rem; }
.contact-aside .info-item span { font-size: .87rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid p { font-size: .93rem; max-width: 36ch; margin-top: 16px; }
.foot-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .93rem; transition: color .2s; }
.foot-col a:hover { color: var(--accent-bright); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--faint); flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(12,15,22,.98); backdrop-filter: blur(16px);
    padding: 14px 20px 22px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 13px 16px; }
  .nav.open .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  section { padding: 76px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-meta .stat:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
