/* ── JOOPIN'S LAB — Shared stylesheet for service pages ── */

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

:root {
  --bg:     #0c0c0f;
  --bg2:    #111115;
  --card:   #13131a;
  --border: rgba(255,255,255,.07);
  --text:   #ede8e0;
  --muted:  #5c5c6a;
  --mid:    #9090a0;
  --gold:   #c8a84b;
  --gold2:  #e0c070;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background .3s, border-color .3s;
}
nav.scrolled {
  background: rgba(12,12,15,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  color: var(--gold);
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: .85rem; font-weight: 500;
  letter-spacing: .02em; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: .5rem 1.25rem;
  border: 1px solid rgba(200,168,75,.3);
  border-radius: 4px;
  color: var(--gold) !important;
  font-size: .8rem !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  transition: background .2s, border-color .2s !important;
}
.nav-cta:hover { background: rgba(200,168,75,.08) !important; border-color: var(--gold) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 20px; height: 1px; background: var(--mid); transition: all .3s; }

/* ── LAYOUT ── */
section { position: relative; z-index: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }

/* ── SECTION HEADER (numéroté, identique au site) ── */
.section-header {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: var(--gold);
  letter-spacing: .1em; flex-shrink: 0; margin-top: .25rem;
}
.section-title-wrap h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--white); line-height: 1.1;
}
.section-title-wrap p {
  color: var(--muted); font-size: .9rem;
  margin-top: .5rem; line-height: 1.5;
}

/* ── PAGE HERO (service pages) ── */
.page-hero {
  padding: 9rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.75rem;
}
.page-hero-eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold);
}
.page-hero-eyebrow a { color: var(--gold); }
.page-hero-eyebrow span { color: var(--muted); }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.04em; color: var(--white);
  margin-bottom: 1.5rem;
}
.page-hero h1 em { font-style: normal; color: var(--gold); font-weight: 800; }
.page-hero-lead {
  font-size: 1.05rem; color: var(--mid); line-height: 1.75;
  max-width: 58ch; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  padding: .8rem 1.75rem;
  background: var(--gold); color: #0c0c0f;
  font-weight: 700; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase;
  border: none; cursor: pointer; border-radius: 3px;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost {
  padding: .8rem 1.75rem;
  border: 1px solid var(--border); color: var(--mid);
  font-size: .85rem; font-weight: 500;
  border-radius: 3px; letter-spacing: .02em;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

/* ── SERVICE SECTION ── */
.svc-section { padding: 7rem 0; border-bottom: 1px solid var(--border); }
.svc-section:last-of-type { border-bottom: none; }

/* ── SERVICE CARDS (identiques au site) ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.svc {
  background: var(--card); padding: 2.5rem;
  transition: background .2s;
}
.svc:hover { background: #17171f; }
.svc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; color: var(--gold);
  letter-spacing: .12em; margin-bottom: 1.25rem; display: block;
}
.svc h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  margin-bottom: .75rem; letter-spacing: -.02em;
}
.svc p {
  font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem;
}
.svc-stack {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: var(--muted); letter-spacing: .02em; line-height: 1.6;
}
.svc-stack span { color: var(--mid); }
.svc-full { grid-column: 1 / -1; }

/* ── STACK TABLE (identique au site) ── */
.stack-table { width: 100%; border-collapse: collapse; }
.stack-table tr { border-bottom: 1px solid var(--border); }
.stack-table tr:last-child { border-bottom: none; }
.stack-table td { padding: 1.1rem 1.5rem; font-size: .875rem; vertical-align: top; }
.stack-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: var(--gold);
  letter-spacing: .08em; text-transform: uppercase;
  width: 160px; padding-left: 0; white-space: nowrap;
}
.stack-table td:last-child { color: var(--mid); padding-right: 0; }
.stack-table td:last-child strong { color: var(--text); font-weight: 500; }

/* ── CLIENT CHIPS ── */
.client-tag {
  display: inline-block; font-size: .6rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(200,168,75,.25); border-radius: 2px;
  padding: .1rem .4rem; margin-bottom: .5rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; padding: .3rem .75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 3px; color: var(--mid);
}

/* ── AGENT / PIPELINE CARDS (identiques au site) ── */
.agent-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.5rem 1.75rem;
}
.agent-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,168,75,.22);
  border-radius: 2px; padding: .1rem .4rem;
  display: inline-block; margin-bottom: .65rem;
}
.agent-name { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .35rem; letter-spacing: -.02em; }
.agent-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.agent-pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  padding: .65rem .85rem;
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.04); border-radius: 4px;
  margin-bottom: .6rem;
}
.pipe-node {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem; font-weight: 500;
  color: var(--mid); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 3px; padding: .2rem .55rem; white-space: nowrap;
}
.pipe-node.hl { color: var(--gold); border-color: rgba(200,168,75,.28); background: rgba(200,168,75,.07); }
.pipe-arrow { color: var(--muted); font-size: .65rem; flex-shrink: 0; }

/* ── CONTACT ITEMS (identiques au site) ── */
.contact-item {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--border);
}
.contact-item:first-child { border-top: 1px solid var(--border); }
.contact-item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
}
.contact-item-value { font-size: .95rem; font-weight: 600; color: var(--text); transition: color .2s; }
a.contact-item-value:hover { color: var(--gold); }
.contact-item-sub { font-size: .78rem; color: var(--muted); }

/* ── KPI ROW ── */
.kpi-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; margin-top: 2rem;
}
.kpi { background: var(--card); padding: 1.5rem; text-align: center; }
.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem; font-weight: 700; color: var(--gold);
}
.kpi-label { font-size: .72rem; color: var(--muted); margin-top: .4rem; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, rgba(200,168,75,.05) 0%, transparent 60%);
  border: 1px solid rgba(200,168,75,.12); border-radius: 6px;
  padding: 3rem 2.5rem;
}
.cta-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--white); margin-bottom: .75rem;
}
.cta-block p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 2rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }

/* ── CROSS-LINKS (liens services complémentaires) ── */
.cross-links {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 0;
  margin-top: 3rem;
}
.cross-links-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.cross-links-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.svc-detail {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(200,168,75,.3); border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 600;
  color: var(--gold); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.svc-detail:hover { background: rgba(200,168,75,.08); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-left {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--muted); letter-spacing: .05em;
}
.footer-right { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.footer-right::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 60px; background: var(--bg2); padding: 2rem; gap: 1.5rem; }
  .hamburger { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: .75rem; text-align: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 1.25rem; }
  .svc { padding: 1.75rem; }
  .page-hero { padding: 7rem 0 3rem; }
}
