/* ════════════════════════════════════════
   KILAKO — thème sombre « carte de visite »
   Fond bleu nuit + étoiles + connecteurs
   ════════════════════════════════════════ */

:root {
  --bg: #0b0a1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #eceaf6;
  --muted: #a49fd0;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #6fd3ff;
  --violet: #9a86f0;
  --grad: linear-gradient(90deg, #6fd3ff, #9a86f0);
  --grad-btn: linear-gradient(90deg, #4a1fb0, #7a5cff);
  --grad-chip: linear-gradient(135deg, #6fd3ff, #9a86f0);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --title: 'Sora', sans-serif;
  --body: 'Space Grotesk', sans-serif;
}

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

body {
  background: #0b0a1c radial-gradient(130% 100% at 84% -10%, #2b2270 0%, #141232 48%, #0b0a1c 100%) no-repeat fixed;
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

h1, h2, h3 { font-family: var(--title); font-weight: 800; letter-spacing: -0.01em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* ══════════ CIEL ÉTOILÉ (fond fixe) ══════════ */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky svg { width: 100%; height: 100%; }
body > :not(.sky):not(.chat-fab):not(.chat-panel) { position: relative; z-index: 1; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(11, 10, 28, 0.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11, 10, 28, 0.82); }
.nav-brand { text-decoration: none; display: flex; align-items: baseline; }
.nav-brand .wg {
  font-family: var(--title); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-brand .d { font-family: var(--title); font-weight: 800; font-size: 1.25rem; color: var(--cyan); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  text-decoration: none; color: #fff; font-size: .9rem; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; background: var(--grad-btn);
  box-shadow: 0 10px 24px rgba(74, 31, 176, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(74, 31, 176, .6); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-mobile {
  position: fixed; inset: 68px 0 auto 0; z-index: 99; background: #12102a;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 18px clamp(20px, 4vw, 48px) 26px; display: none; flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { text-decoration: none; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.nav-mobile a:last-child { border-bottom: none; }

/* ══════════ HERO ══════════ */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); background: var(--surface); border: 1px solid var(--line);
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 22px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-chip); flex: 0 0 auto; }
.hero-kicker .kicker-txt { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; color: #fff; }
.hero-sub { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: .96rem;
  padding: 15px 28px; border-radius: 14px; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { color: #fff; background: var(--grad-btn); box-shadow: 0 14px 30px rgba(74, 31, 176, .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(74, 31, 176, .6); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

/* ══════════ HERO VISUAL : K connecteurs qui s'assemble ══════════ */
.hero-visual { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; }
.knet-scene { position: relative; width: min(430px, 86%); aspect-ratio: 1; }
.knet-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; pointer-events: none; }
.knet-links .hvl { stroke: #6fd3ff; stroke-width: 1; opacity: .32; stroke-dasharray: 2.5 5; stroke-linecap: round; animation: hvFlow 3s linear infinite; }
@keyframes hvFlow { to { stroke-dashoffset: -30; } }
.knet-wrap {
  position: absolute; inset: 0; z-index: 2;
  transition: transform .18s ease-out; transform-style: preserve-3d; will-change: transform;
}
.knet { width: 100%; height: 100%; overflow: visible; }

/* segments : se tracent */
.knet .seg {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1);
}
.assembled .seg-1 { stroke-dashoffset: 0; transition-delay: .55s; }
.assembled .seg-2 { stroke-dashoffset: 0; transition-delay: .8s; }
.assembled .seg-3 { stroke-dashoffset: 0; transition-delay: 1.05s; }

/* nœuds : volent depuis l'éclaté */
.knet .node {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: transform .95s cubic-bezier(.22, .9, .26, 1), opacity .5s ease;
}
.knet .n1 { transform: translate(-180px, 70px) rotate(-40deg); }
.knet .n2 { transform: translate(130px, 200px) rotate(30deg); }
.knet .n3 { transform: translate(170px, -130px) rotate(50deg); }
.knet .n4 { transform: translate(210px, 100px) rotate(-30deg); }
.knet .n5 { transform: translate(-130px, -170px) rotate(20deg); }
.knet .n6 { transform: translate(-170px, 210px) rotate(-25deg); }
.assembled .node { transform: translate(0, 0) rotate(0deg); opacity: 1; }
.assembled .n1 { transition-delay: .02s; }
.assembled .n2 { transition-delay: .12s; }
.assembled .n3 { transition-delay: .2s; }
.assembled .n4 { transition-delay: .28s; }
.assembled .n5 { transition-delay: .34s; }
.assembled .n6 { transition-delay: .4s; }

/* impulsions le long des segments : après l'assemblage */
.knet .pulse { opacity: 0; transition: opacity .5s ease 1.9s; }
.assembled .pulse { opacity: 1; }

/* ── Survol d'un mot : le K respire dans la couleur du mot ── */
.knet .kflow { opacity: 0; transition: opacity .35s ease; stroke: var(--kc, #9a86f0); }
.knet-wrap.flowing .kflow { opacity: .95; }
.knet .kf { stroke-dasharray: 20 80; stroke-dashoffset: 0; }
.knet-wrap.flowing .kf { animation: kfTravel 1.7s linear infinite; }
.knet-wrap.flowing .kf2 { animation-delay: .3s; }
.knet-wrap.flowing .kf3 { animation-delay: .6s; }
@keyframes kfTravel { to { stroke-dashoffset: -100; } }

.knet { transform-origin: center; }
@keyframes kBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.knet-wrap.flowing .knet { animation: kBreathe 1.9s ease-in-out infinite; }

.knet .node-core { transition: fill .3s ease; }
.knet-wrap.flowing .node-core { fill: var(--kc, #8fe0ff); }

/* couleur propre à chaque mot (bordure + point au survol) */
.hw-1:hover { border-color: #9a86f0; } .hw-1:hover::before { background: #9a86f0; box-shadow: 0 0 8px 1px rgba(154, 134, 240, .6); }
.hw-2:hover { border-color: #6fd3ff; } .hw-2:hover::before { background: #6fd3ff; box-shadow: 0 0 8px 1px rgba(111, 211, 255, .6); }
.hw-3:hover { border-color: #c99a5c; } .hw-3:hover::before { background: #c99a5c; box-shadow: 0 0 8px 1px rgba(201, 154, 92, .5); }
.hw-4:hover { border-color: #c9738f; } .hw-4:hover::before { background: #c9738f; box-shadow: 0 0 8px 1px rgba(201, 115, 143, .5); }
.hw-5:hover { border-color: #5a8bff; } .hw-5:hover::before { background: #5a8bff; box-shadow: 0 0 8px 1px rgba(90, 139, 255, .6); }
.hw-6:hover { border-color: #34e0b0; } .hw-6:hover::before { background: #34e0b0; box-shadow: 0 0 8px 1px rgba(52, 224, 176, .6); }

/* ── Survol du K : mouvement accentué, sans effet lumineux ── */
@keyframes nodePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.knet-wrap.assembled:hover .node { animation: nodePop 1.2s ease-in-out infinite; }
.knet-wrap.assembled:hover .n2 { animation-delay: .1s; }
.knet-wrap.assembled:hover .n3 { animation-delay: .2s; }
.knet-wrap.assembled:hover .n4 { animation-delay: .3s; }
.knet-wrap.assembled:hover .n5 { animation-delay: .15s; }
.knet-wrap.assembled:hover .n6 { animation-delay: .25s; }

/* lignes d'interconnexion mots → K */
/* mots-clés autour du K */
.hv-word {
  position: absolute; z-index: 3;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(17, 15, 38, .78); backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 211, 255, .35);
  font-family: var(--title); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: #dfe9ff; white-space: nowrap; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 8px;
  transition: border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.hv-word::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad-chip); box-shadow: 0 0 8px 1px rgba(111, 211, 255, .55);
}
.hv-word:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 18px rgba(111, 211, 255, .3); }
.hw-5 { top: 4%;  left: -6%; }   /* Automatisation → haut de la barre verticale */
.hw-1 { top: 44%; left: -8%; }   /* Idée → nœud central (le cerveau) */
.hw-3 { top: 84%; left: -9%; }   /* Construction web → bas de la barre verticale */
.hw-2 { top: 4%;  right: -6%; }  /* Innovation → branche haut-droite */
.hw-6 { top: 40%; right: -7%; }  /* Logiciel → nœud de jonction */
.hw-4 { top: 84%; right: -6%; }  /* Robotique → branche bas-droite */

/* ══════════ SECTIONS génériques ══════════ */
section { padding: 96px 0; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 680px; color: #fff; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 52px; }

/* connecteur au survol des cartes */
.service-card, .principle, .case-card { position: relative; }
.service-card::before, .principle::before, .case-card::before {
  content: ""; position: absolute; top: -1px; left: 22px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .4s ease; z-index: 2;
}
.service-card::after, .principle::after, .case-card::after {
  content: ""; position: absolute; top: -3.5px; left: 16px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cyan); opacity: 0; transition: opacity .3s ease .1s;
  box-shadow: 0 0 10px 2px rgba(111, 211, 255, .6); z-index: 2;
}
.service-card:hover::before, .principle:hover::before, .case-card:hover::before { width: 72px; }
.service-card:hover::after, .principle:hover::after, .case-card:hover::after { opacity: 1; }

/* ══════════ SERVICES ══════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--surface-2); }
.service-icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--grad-chip);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: #fff; }
.service-card p { font-size: .92rem; color: var(--muted); }

/* ══════════ RÉALISATIONS ══════════ */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
  display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); background: var(--surface-2); }
.case-visual { padding: 30px 26px 0; }
.case-body { padding: 26px 26px 30px; }
.case-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #4ade80; background: rgba(26, 154, 92, .16); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.case-body h3 { font-size: 1.3rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: #fff; }
.case-logo { display: inline-flex; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); flex: 0 0 auto; }
.case-body p { color: var(--muted); font-size: .96rem; }
.case-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--cyan); }
.case-link:hover { text-decoration: underline; }

/* Mockups (fenêtres claires — couleurs fixes, indépendantes du thème) */
.mock-frame { background: #f4f2fb; border-radius: 16px 16px 0 0; padding: 18px 18px 0; border: 1px solid rgba(20, 18, 31, .08); border-bottom: none; }
.mock-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d8d4ea; }
.mock-scan { background: #fff; border-radius: 12px 12px 0 0; padding: 20px; border: 1px solid rgba(20, 18, 31, .07); border-bottom: none; }
.mock-idcard { position: relative; height: 90px; background: linear-gradient(120deg, #16225c, #4a1685, #7a0f2e); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.mock-idcard::before { content: ""; position: absolute; inset: 8px 8px auto 8px; height: 16px; background: rgba(255, 255, 255, .85); border-radius: 4px; width: 60%; }
.mock-idcard::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.mock-scanline { position: absolute; left: 0; right: 0; height: 2px; background: #ff3b57; box-shadow: 0 0 10px 2px rgba(255, 59, 87, .6); animation: scanmove 2.4s ease-in-out infinite; }
@keyframes scanmove { 0%, 100% { top: 10%; } 50% { top: 84%; } }
.mock-fields { display: flex; flex-direction: column; gap: 8px; }
.mock-field { height: 9px; border-radius: 5px; background: #ece9f6; }
.mock-field.w60 { width: 60%; } .mock-field.w80 { width: 80%; } .mock-field.w40 { width: 40%; }

.mock-board { background: #fff; border: 1px solid rgba(20, 18, 31, .07); border-bottom: none; border-radius: 12px 12px 0 0; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mb-card { background: #f4f2fb; border-radius: 10px; padding: 12px; }
.mb-card .mb-label { font-size: .68rem; color: #66637c; margin-bottom: 8px; font-weight: 600; }
.mb-bar { height: 6px; border-radius: 4px; background: #e7e3f4; margin-bottom: 6px; }
.mb-bar.b1 { width: 90%; background: var(--grad-chip); } .mb-bar.b2 { width: 65%; } .mb-bar.b3 { width: 42%; }
.mb-dot-row { display: flex; gap: 5px; margin-top: 8px; }
.mb-dot-row span { width: 16px; height: 16px; border-radius: 5px; background: #e7e3f4; }
.mb-dot-row span:first-child { background: var(--grad-chip); }

/* ══════════ MÉTHODE ══════════ */
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: background .25s ease;
}
.principle:hover { background: var(--surface-2); }
.principle-num { font-family: var(--title); font-weight: 800; font-size: .85rem; color: var(--cyan); margin-bottom: 14px; }
.principle h3 { font-size: 1.12rem; margin-bottom: 10px; color: #fff; }
.principle p { color: var(--muted); font-size: .94rem; }

/* ══════════ CHIFFRES ══════════ */
.figures {
  background: linear-gradient(135deg, rgba(43, 34, 112, .55), rgba(20, 18, 50, .8));
  border: 1px solid rgba(122, 92, 255, .3);
  border-radius: 32px; padding: 64px clamp(24px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: #fff;
}
.figure { text-align: center; }
.figure-num { font-family: var(--title); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); }
.figure-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.figure-plus { font-size: 1.4rem; color: var(--cyan); font-weight: 700; }
.figure p { margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ══════════ CONTACT ══════════ */
.contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; color: #fff; }
.contact-info p { color: var(--muted); margin-bottom: 26px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.contact-detail .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.enquiry-form { display: grid; gap: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); font-family: var(--body); font-size: .95rem; color: var(--text); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(164, 159, 208, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(154, 134, 240, .18); }
.enquiry-send { justify-self: start; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: -4px; }

/* ══════════ FOOTER ══════════ */
.footer {
  padding: 40px clamp(20px, 4vw, 48px) 50px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); margin-top: 40px;
}
.footer-brand { text-decoration: none; display: flex; align-items: baseline; }
.footer-brand .wg {
  font-family: var(--title); font-weight: 800; font-size: 1.05rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-brand .d { font-family: var(--title); font-weight: 800; font-size: 1.05rem; color: var(--cyan); }
.footer-links { display: flex; gap: 24px; font-size: .88rem; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer > span { color: var(--muted); font-size: .88rem; }

/* ══════════ ASSEMBLAGE au scroll ══════════ */
.assembly { position: relative; height: 300vh; }
.assembly-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(58% 46% at 50% 34%, rgba(122, 92, 255, .12), transparent 72%);
}
.assembly-head { text-align: center; z-index: 6; padding: 0 20px; }
.assembly-title { font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.15; color: #fff; }
.asm-hint { font-size: .84rem; color: var(--muted); z-index: 6; }

.asm-stage-wrap { position: relative; width: 720px; height: 440px; transform: scale(var(--asm-scale, 1)); flex: 0 0 auto; }
.asm-stage { position: absolute; inset: 0; }
.asm-frame {
  position: absolute; inset: 0; background: #fff; border: 1px solid rgba(20, 18, 31, .1);
  border-radius: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); opacity: 0; transform-origin: center;
}
.asm-piece { position: absolute; opacity: 0; will-change: transform, opacity; }

/* tags d'expertise (sur fenêtre claire) */
.asm-tag {
  position: absolute; top: -13px; left: -6px; z-index: 5;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.t-violet { background: #efeaff; color: #6a3df0; }
.t-cyan   { background: #e2f6fc; color: #1f8fbf; }
.t-green  { background: #e4f7ec; color: #1a9a5c; }
.t-amber  { background: #fdf1dd; color: #b6791a; }

.bar { display: block; border-radius: 5px; background: #e9e6f4; height: 8px; }
.bar.w40 { width: 40px; } .bar.w50 { width: 50%; } .bar.w60 { width: 60%; } .bar.w80 { width: 80%; }
.bar.big { width: 78%; height: 15px; } .bar.big.grad { width: 58%; background: var(--grad-chip); } .bar.med { width: 90%; }

.p-bar {
  left: 0; top: 0; width: 720px; height: 46px;
  background: #f4f2fb; border: 1px solid rgba(20, 18, 31, .08); border-bottom: none; border-radius: 18px 18px 0 0;
  display: flex; align-items: center; gap: 8px; padding: 0 18px; z-index: 3;
}
.win-dot { width: 11px; height: 11px; border-radius: 50%; background: #d8d4ea; flex: 0 0 auto; }
.asm-url { margin-left: 18px; background: #fff; border: 1px solid rgba(20, 18, 31, .08); border-radius: 8px; padding: 5px 16px; font-size: 12px; color: #66637c; }
.asm-url .lock { font-size: 10px; }

.p-nav {
  left: 22px; top: 66px; width: 676px; height: 44px;
  background: #f6f5fb; border: 1px solid rgba(20, 18, 31, .07); border-radius: 12px;
  display: flex; align-items: center; gap: 16px; padding: 0 18px; z-index: 2;
}
.nav-k { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-chip); flex: 0 0 auto; }
.nav-btn { margin-left: auto; width: 78px; height: 28px; border-radius: 999px; background: var(--grad-btn); flex: 0 0 auto; }

.p-hero {
  left: 22px; top: 122px; width: 406px; height: 170px;
  background: #f6f5fb; border: 1px solid rgba(20, 18, 31, .07); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; z-index: 2;
}
.hero-btn { margin-top: auto; width: 124px; height: 34px; border-radius: 10px; background: var(--grad-btn); }

.p-side {
  left: 446px; top: 122px; width: 252px; height: 170px;
  background: #f6f5fb; border: 1px solid rgba(20, 18, 31, .07); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px; z-index: 2;
}
.chart { display: flex; align-items: flex-end; gap: 10px; height: 84px; }
.chart i { flex: 1; background: var(--grad-chip); border-radius: 6px 6px 0 0; }

.p-cards { left: 22px; top: 306px; width: 676px; height: 110px; display: flex; gap: 16px; z-index: 2; }
.mini-card {
  flex: 1; background: #f6f5fb; border: 1px solid rgba(20, 18, 31, .07); border-radius: 12px;
  padding: 15px; display: flex; flex-direction: column; gap: 9px;
}
.mc-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-chip); }

.p-chat {
  left: 632px; top: 350px; width: 66px; height: 66px; border-radius: 20px;
  background: #141026; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); z-index: 4;
}

.asm-badge {
  position: absolute; top: -16px; right: -12px; z-index: 7;
  background: #1a9a5c; color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 12px 26px rgba(26, 154, 92, .45);
  opacity: 0; transform-origin: right center;
}

/* ══════════ ROBOTIQUE (scroll) ══════════ */
.robotics { height: 260vh; }
.rob-sub { margin-top: 10px; font-size: .95rem; color: var(--muted); max-width: 540px; margin-left: auto; margin-right: auto; }
.rob-stage-wrap { position: relative; width: 720px; height: 440px; transform: scale(var(--rob-scale, 1)); flex: 0 0 auto; }
.rob-stage { position: absolute; inset: 0; }
.rob-piece {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; will-change: transform, opacity; pointer-events: none; overflow: visible;
}
.rob-badge {
  position: absolute; top: 44px; right: 64px; z-index: 7;
  background: #1a9a5c; color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 12px 26px rgba(26, 154, 92, .45);
  opacity: 0; transform-origin: right center;
}
/* bras terminé : les articulations et l'orbe pulsent */
@keyframes rjPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.rob-done .rj-core { animation: rjPulse 1.5s ease-in-out infinite; }
@keyframes rorbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.rob-done .rorb, .rob-done .rorb-halo { transform-box: fill-box; transform-origin: center; animation: rorbPulse 1.6s ease-in-out infinite; }

@media (max-width: 560px) {
  .robotics { height: 230vh; }
}

/* ══════════ ASSISTANT IA ══════════ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-btn); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(74, 31, 176, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 40px rgba(74, 31, 176, .7); }
.chat-fab-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(111, 211, 255, .55); opacity: 0;
  animation: fabPulse 2.6s ease-out infinite;
}
@keyframes fabPulse { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }

.chat-panel[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 200;
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(17, 15, 38, .92); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: chatIn .3s cubic-bezier(.2, .9, .3, 1);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head {
  display: flex; align-items: center; gap: 11px; padding: 15px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.chat-status { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px 1px rgba(74, 222, 128, .7); flex: 0 0 auto; }
.chat-head-txt { display: flex; flex-direction: column; line-height: 1.25; }
.chat-head-txt b { font-family: var(--title); font-size: .95rem; color: #fff; }
.chat-head-txt small { font-size: .72rem; color: var(--muted); }
.chat-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13px;
}
.chat-close:hover { color: #fff; background: var(--surface-2); }

.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 86%; padding: 10px 14px; border-radius: 15px;
  font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word;
}
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 5px; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg.typing i { display: inline-block; animation: blink 1.2s infinite both; font-style: normal; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-sugg { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.chat-sugg button {
  align-self: flex-start; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(111, 211, 255, .4); color: var(--cyan);
  font-family: var(--body); font-size: .84rem; transition: background .2s, color .2s;
}
.chat-sugg button:hover { background: rgba(111, 211, 255, .12); color: #fff; }

.chat-input { display: flex; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.chat-input input {
  flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font-family: var(--body); font-size: .9rem;
}
.chat-input input::placeholder { color: rgba(164, 159, 208, .55); }
.chat-input input:focus { outline: none; border-color: var(--violet); }
.chat-send {
  width: 44px; height: 42px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--grad-btn); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: transform .15s ease;
}
.chat-send svg { width: 19px; height: 19px; }
.chat-send:hover { transform: scale(1.06); }
.chat-send:disabled { opacity: .5; cursor: default; transform: none; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; padding: 40px 22px; }
  .hero { padding: 128px 0 60px; }
  .hero h1 { font-size: clamp(1.7rem, 8.6vw, 2.3rem); }
  .hero-kicker { font-size: .7rem; }
  .assembly { height: 260vh; }
  .assembly-title { font-size: 1.35rem; }
}
