/* ============================================================
   NEXABOT — section styles
   ============================================================ */

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav-solid {
  background: color-mix(in oklab, var(--bg), transparent 18%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px -4px var(--accent);
}
.logo-dot { width: 9px; height: 9px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px #fff; }
.logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; font-size: 1.08rem; }
.logo-text span { color: var(--accent-2); }

.nav-links { display: flex; gap: 30px; margin-left: 12px; margin-right: auto; }
.nav-links a {
  font-size: .95rem; color: var(--fg-muted); font-weight: 500; white-space: nowrap;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent-2); transition: width .3s; box-shadow: 0 0 8px var(--accent-2);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 18px; font-size: .9rem; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* language switch FR / EN */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
}
.lang-switch button {
  background: none; border: 0; cursor: pointer; padding: 4px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; font-weight: 500;
  color: var(--fg-dim); transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button.on { color: #fff; background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px -4px var(--accent); }
.lang-sep { width: 1px; height: 13px; background: var(--line-strong); }
.lang-switch-mobile { margin: 10px 0; align-self: flex-start; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }
.nav-mobile {
  display: none; flex-direction: column; gap: 6px; padding: 16px 24px 24px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.nav-mobile a { padding: 12px 6px; color: var(--fg-muted); border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { justify-content: center; color: #fff; border-bottom: 0; margin-top: 8px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 90px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.node-canvas { width: 100%; height: 100%; display: block; }
.hero::before { /* vignette + grid feel */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 8%, transparent, var(--bg) 78%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-glow {
  position: absolute; z-index: 0; top: -10%; left: 50%; translate: -50% 0;
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent), transparent 78%), transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 920px; margin-inline: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font-size: .8rem; color: var(--fg-muted); font-weight: 500; backdrop-filter: blur(6px); white-space: nowrap;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.hero-sub {
  margin: 26px auto 0; max-width: 660px; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--fg-muted); text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted);
  font-size: .85rem; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.chip svg { color: var(--accent-2); }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--fg-dim);
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: -20px; left: 0; width: 1px; height: 20px; background: #fff;
  animation: scrolldot calc(2.2s / var(--anim-scale, 1)) linear infinite;
}
@keyframes scrolldot { to { top: 40px; } }

/* ---------------- SERVICES ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { padding: 32px 28px 30px; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.svc:hover { transform: translateY(-6px); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--line-strong);
}
.svc-tag { color: var(--fg-dim); }
.svc-title { font-size: 1.35rem; line-height: 1.18; margin-bottom: 14px; }
.svc-body { color: var(--fg-muted); font-size: 1rem; }
.svc-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.svc-points li { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--fg); }
.tick {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-2);
}
.svc-num {
  position: absolute; top: 24px; right: -2px; font-size: 3.6rem; font-family: var(--font-display);
  font-weight: 700; color: rgba(255,255,255,.03); pointer-events: none; line-height: 1;
}

/* ---------------- PROCESS ---------------- */
.proc-section { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc-step { position: relative; padding: 28px 22px; }
.proc-n {
  font-size: 1rem; color: var(--accent-2); width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  background: var(--panel); margin-bottom: 22px; letter-spacing: .1em;
  box-shadow: inset 0 0 18px -8px var(--accent);
}
.proc-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.proc-step p { color: var(--fg-muted); font-size: .98rem; }
.proc-conn {
  position: absolute; top: 53px; right: -10px; width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

/* ---------------- APPS ---------------- */
.apps-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: end; margin-bottom: 52px; }
.apps-h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 16px; }
.apps-head > p { color: var(--fg-muted); font-size: 1.08rem; padding-bottom: 6px; }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app { padding: 26px 24px 24px; display: flex; flex-direction: column; transition: transform .35s; }
.app:hover { transform: translateY(-6px); }
.app-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent); margin-bottom: 20px;
}
.app-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-kind { color: var(--fg-dim); }
.app-status {
  font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em;
}
.app-status.live { color: #5eead4; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.3); }
.app-status.soon { color: var(--fg-dim); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.app-name { font-size: 1.25rem; margin-bottom: 8px; }
.app-desc { color: var(--fg-muted); font-size: .92rem; flex: 1; }
.app-launch {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: var(--accent-2); font-weight: 600; font-size: .92rem;
  transition: gap .25s;
}
.app:hover .app-launch { gap: 13px; }
.app-add {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 26px; color: var(--fg-muted); transition: border-color .3s, background .3s, color .3s;
  min-height: 220px;
}
.app-add:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.app-add-plus { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-strong); color: var(--accent-2); }
.app-add-sub { color: var(--fg-dim); font-size: .66rem; }

/* ---------------- PORTFOLIO (à venir) ---------------- */
.portfolio-empty {
  text-align: center; padding: clamp(48px, 7vw, 90px) 28px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--panel);
}
.portfolio-empty h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.portfolio-empty p { color: var(--fg-muted); max-width: 520px; }
.pf-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; color: var(--fg-muted);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
}

/* ---------------- ABOUT ---------------- */
.about-section { position: relative; overflow: hidden; }
.about-glow { top: auto; bottom: -30%; opacity: .6; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.about-left h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 16px 0 24px; }
.about-lead { font-size: 1.2rem; color: var(--fg); margin-bottom: 18px; text-wrap: pretty; }
.about-body { color: var(--fg-muted); margin-bottom: 30px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 30px 26px; }
.stat-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--fg); line-height: 1; background: linear-gradient(120deg, var(--fg), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-l { color: var(--fg-muted); font-size: .92rem; margin-top: 12px; }

/* ---------------- CONTACT ---------------- */
.contact-section { padding-bottom: clamp(90px, 12vw, 160px); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--panel);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.7);
}
.contact-left { padding: clamp(34px, 4vw, 56px); border-right: 1px solid var(--line); }
.contact-left h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 16px 0 18px; }
.contact-left > p { color: var(--fg-muted); }
.contact-info { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: .96rem; }
.ci-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.contact-right { padding: clamp(34px, 4vw, 50px); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: .82rem; color: var(--fg-muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--fg);
  font-family: var(--font-body); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input.err, .field textarea.err { border-color: #f87171; }
.field em { display: block; color: #fca5a5; font-size: .8rem; margin-top: 6px; font-style: normal; }
.contact-submit { width: 100%; justify-content: center; margin-top: 6px; }
.contact-sent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0; }
.sent-check { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); box-shadow: 0 0 40px -10px var(--accent); }
.contact-sent h3 { font-size: 1.6rem; }
.contact-sent p { color: var(--fg-muted); max-width: 320px; }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; }
.footer-brand p { color: var(--fg-muted); max-width: 320px; margin-top: 18px; font-size: .96rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: var(--fg-dim); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--fg-muted); padding: 6px 0; font-size: .95rem; transition: color .2s; }
.footer-cols a:hover { color: var(--accent-2); }
.footer-bot { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-dim); flex-wrap: wrap; gap: 10px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .apps-head { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner .logo { margin-right: auto; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .proc-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .proc-conn { display: none; }
}
