/* =========================================================================
   Career Intelligence Hub — Laurent Lepczynski — V2
   Design system : executive, immersif, sombre charbon-vert / or / émeraude
   ========================================================================= */

:root {
  --bg: #080b0a;
  --bg-2: #0c1210;
  --panel: rgba(16, 24, 20, 0.62);
  --panel-solid: #101814;
  --line: rgba(201, 168, 106, 0.16);
  --line-strong: rgba(201, 168, 106, 0.4);

  --ink: #eef3ee;
  --ink-soft: #cdd6cf;
  --muted: #93a298;
  --muted-2: #6f7d75;

  --gold: #c9a86a;
  --gold-bright: #e7cd8e;
  --emerald: #4fae8f;
  --emerald-bright: #6fd3b2;
  --steel: #6f93a6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --maxw: 1240px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", sans-serif;
  --display: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 70% -10%, #122019 0%, var(--bg-2) 45%, var(--bg) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

::selection { background: rgba(201, 168, 106, 0.32); color: #fff; }

/* ---- Canvas 3D ambiant ---- */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
body[data-state="ready"] #ambient-canvas { opacity: 1; }

#webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 75% 8%, rgba(79, 174, 143, 0.14), transparent 60%),
    radial-gradient(700px 500px at 15% 80%, rgba(201, 168, 106, 0.12), transparent 60%);
}

main { position: relative; z-index: 2; }

/* ---- Boot ---- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
body[data-state="ready"] .boot { opacity: 0; visibility: hidden; }
.boot__mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  width: 76px; height: 76px;
  display: grid; place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: inset 0 0 30px rgba(201, 168, 106, 0.12);
}
.boot__bar { width: 220px; height: 2px; background: rgba(255,255,255,0.08); overflow: hidden; border-radius: 2px; }
.boot__bar span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--gold), var(--emerald)); animation: load 1.1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-110%);} 100% { transform: translateX(420%);} }
.boot__label { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }

/* ---- Typographie utilitaire ---- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 46px);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 11, 10, 0.82), rgba(8, 11, 10, 0));
  transition: background 0.3s ease;
}
.nav.is-scrolled { background: rgba(8, 11, 10, 0.86); border-bottom: 1px solid var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  font-weight: 600; color: var(--gold-bright);
  width: 38px; height: 38px; display: grid; place-content: center;
  border: 1px solid var(--line-strong); border-radius: 11px; font-size: 14px; letter-spacing: 0.05em;
}
.nav__name { font-weight: 600; letter-spacing: 0.01em; font-size: 15px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
@media (min-width: 961px) and (max-width: 1100px) {
  .nav__name { display: none; }
  .nav__links { gap: 16px; }
}
.nav__links a { font-size: 13.5px; color: var(--ink-soft); letter-spacing: 0.02em; position: relative; padding: 4px 0; transition: color 0.2s ease; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: linear-gradient(90deg, var(--gold), var(--emerald)); transition: width 0.3s ease; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta {
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--gold-bright);
  transition: all 0.25s ease; white-space: nowrap;
}
.nav__cta:hover { background: rgba(201, 168, 106, 0.12); border-color: var(--gold); }
.nav__lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nav__lang button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; padding: 7px 12px; transition: all 0.2s ease; font-family: inherit; }
.nav__lang button.is-active { background: rgba(201, 168, 106, 0.16); color: var(--gold-bright); }
.nav__lang button:hover { color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; transition: all 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(120deg, var(--gold), #b8965a); color: #1a1407; box-shadow: 0 18px 40px -18px rgba(201, 168, 106, 0.7); }
.btn--primary:hover { box-shadow: 0 22px 50px -16px rgba(201, 168, 106, 0.85); }
.btn--ghost { background: rgba(79, 174, 143, 0.12); color: var(--emerald-bright); border-color: rgba(79, 174, 143, 0.35); }
.btn--ghost:hover { background: rgba(79, 174, 143, 0.2); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---- Layout sections ---- */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 150px) clamp(18px, 5vw, 56px); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section__head h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; margin-bottom: 16px; }
.section__sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); max-width: 60ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 120px clamp(18px, 5vw, 56px) 80px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; width: 100%; }
.hero__title { font-size: clamp(46px, 8vw, 104px); line-height: 0.94; font-weight: 600; letter-spacing: -0.03em; }
.hero__title span { background: linear-gradient(120deg, var(--gold-bright), var(--emerald-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__tagline { margin: 22px 0 18px; font-size: clamp(15px, 2vw, 19px); color: var(--gold); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero__lede { font-size: clamp(15px, 1.8vw, 19px); color: var(--ink-soft); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { font-size: 12.5px; color: var(--ink-soft); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); backdrop-filter: blur(6px); }
.hero__chips li b { color: var(--gold-bright); font-weight: 600; }

.hero__agent { position: relative; height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.hero__agent::before { content: ""; position: absolute; top: 38%; left: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 106, 0.2), rgba(79, 174, 143, 0.08) 45%, transparent 68%); filter: blur(8px); z-index: -1; pointer-events: none; }

.hero__portrait { position: relative; width: min(330px, 76%); aspect-ratio: 756 / 1017; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 44px 90px -42px rgba(0, 0, 0, 0.9), 0 0 70px -26px rgba(201, 168, 106, 0.4); animation: floaty 7s ease-in-out infinite; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: contrast(1.04) saturate(0.95) brightness(0.97); }
/* fondu vers le fond sombre + teinte d'harmonisation */
.hero__portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 11, 10, 0) 50%, rgba(8, 11, 10, 0.55) 86%, rgba(8, 11, 10, 0.92) 100%), radial-gradient(120% 80% at 72% 4%, rgba(79, 174, 143, 0.12), transparent 58%), linear-gradient(140deg, rgba(201, 168, 106, 0.08), transparent 45%); }
/* anneau dégradé or */
.hero__portrait::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; background: linear-gradient(145deg, rgba(231, 205, 142, 0.8), rgba(111, 211, 178, 0.35) 40%, transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.agent-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); backdrop-filter: blur(8px); font-size: 13px; letter-spacing: 0.04em; }
.agent-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); animation: pulse 2.4s ease-in-out infinite; }
.agent-badge__label { color: var(--ink-soft); }
.hero__agent-hint { color: var(--muted); font-size: 13px; margin: 0 auto 8px; text-align: center; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.5; transform: scale(0.85);} }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.scroll-hint span { width: 22px; height: 34px; border: 1px solid var(--line-strong); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--gold); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0);} 40% { opacity: 1;} 80% { opacity: 0; transform: translate(-50%, 12px);} }

/* ---- BANDEAU LOGOS ---- */
.logobar { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 10px clamp(18px, 5vw, 56px) 24px; text-align: center; }
.logobar__label { text-transform: uppercase; letter-spacing: 0.3em; font-size: 11px; font-weight: 600; color: var(--muted-2); margin: 0 0 22px; }
.logobar__track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.logo-chip { display: flex; align-items: center; justify-content: center; height: 64px; min-width: 112px; padding: 0 22px; background: linear-gradient(180deg, rgba(246, 243, 234, 0.97), rgba(233, 228, 215, 0.95)); border: 1px solid var(--line); border-radius: 14px; filter: grayscale(1) opacity(0.62); transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; }
.logo-chip img { max-height: 30px; max-width: 128px; width: auto; object-fit: contain; display: block; }
.logo-chip:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(201, 168, 106, 0.55); filter: grayscale(0) opacity(1); border-color: var(--line-strong); }

/* ---- GALAXY ---- */
.galaxy__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 520px; }
#galaxy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; border-radius: var(--radius); pointer-events: auto; }
.galaxy__nodes { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; align-self: center; }
.galaxy-node { text-align: left; cursor: pointer; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); transition: all 0.25s ease; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.galaxy-node:hover, .galaxy-node.is-active { border-color: var(--line-strong); transform: translateX(6px); background: rgba(20, 30, 25, 0.78); }
.galaxy-node.is-active { box-shadow: inset 3px 0 0 var(--gold); }
.galaxy-node__period { grid-row: 1 / span 2; font-size: 12px; color: var(--gold-bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.galaxy-node__role { font-weight: 600; font-size: 15px; }
.galaxy-node__company { color: var(--muted); font-size: 13px; }
.galaxy__detail { position: relative; z-index: 2; align-self: center; background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-height: 280px; }
.galaxy__detail-hint { color: var(--muted); }
.galaxy__detail h3 { font-size: 22px; margin-bottom: 4px; }
.galaxy__detail .gd-meta { color: var(--gold); font-size: 13px; letter-spacing: 0.03em; margin-bottom: 18px; }
.galaxy__detail ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.galaxy__detail li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 14px; }
.galaxy__detail li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(120deg, var(--gold), var(--emerald)); }
.gd-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-skills span { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---- IMPACT ---- */
.impact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.impact-card { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.impact-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.impact-card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,106,0.18), transparent 70%); }
.impact-card .ring { position: relative; width: 92px; height: 92px; margin-bottom: 18px; }
.impact-card .ring svg { transform: rotate(-90deg); }
.impact-card .ring .val { position: absolute; inset: 0; display: grid; place-content: center; font-weight: 600; font-size: 17px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.impact-card h3 { font-size: 17px; margin-bottom: 8px; }
.impact-card .metric { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; background: linear-gradient(120deg, var(--gold-bright), var(--emerald-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.impact-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---- EXPERTISE CONSTELLATION ---- */
.constellation { position: relative; min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(8px); overflow: hidden; }
.constellation__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.constellation__nodes { position: absolute; inset: 0; z-index: 2; }
.exp-node { position: absolute; transform: translate(-50%, -50%); cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(12, 18, 15, 0.85); font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: all 0.25s ease; }
.exp-node:hover, .exp-node.is-active { color: #1a1407; background: linear-gradient(120deg, var(--gold-bright), var(--gold)); border-color: var(--gold-bright); box-shadow: 0 0 28px rgba(201, 168, 106, 0.5); transform: translate(-50%, -50%) scale(1.08); z-index: 5; }
.constellation__readout { position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 3; color: var(--muted); font-size: 14px; margin: 0; max-width: 50ch; }
.constellation__readout b { color: var(--gold-bright); font-weight: 600; }

/* ---- VISION LAB ---- */
.vision__flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 30px; }
.vision-step { flex: 1 1 150px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); position: relative; }
.vision-step .n { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; }
.vision-step h4 { margin: 8px 0 6px; font-size: 16px; font-weight: 600; }
.vision-step p { margin: 0; font-size: 13px; color: var(--muted); }
.vision__pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.vision-pillar { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); transition: border-color 0.3s ease, transform 0.3s ease; }
.vision-pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.vision-pillar .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-content: center; border: 1px solid var(--line-strong); margin-bottom: 14px; color: var(--gold-bright); }
.vision-pillar h4 { font-size: 17px; margin: 0 0 8px; }
.vision-pillar p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---- CHAT ---- */
.chat { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 24px; align-items: stretch; }
.chat__visual { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, rgba(79,174,143,0.1), transparent 65%), var(--panel); min-height: 420px; overflow: hidden; }
#chat-agent-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chat__state { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.chat__panel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(12px); padding: 22px; min-height: 420px; }
.chat__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 6px; max-height: 360px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 13px 17px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.msg--user { align-self: flex-end; background: linear-gradient(120deg, rgba(201,168,106,0.2), rgba(201,168,106,0.1)); border: 1px solid var(--line-strong); color: #fff; }
.msg--agent { align-self: flex-start; background: rgba(12, 18, 15, 0.7); border: 1px solid var(--line); color: var(--ink-soft); }
.msg--agent.is-typing { color: var(--muted); }
.msg--agent .dots span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.msg--agent .dots span:nth-child(2) { animation-delay: 0.2s; }
.msg--agent .dots span:nth-child(3) { animation-delay: 0.4s; }
.evidence-tag--source { transition-delay: var(--evidence-delay, 0ms); }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat__suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.chip-q { font-size: 12.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all 0.2s ease; }
.chip-q:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,168,106,0.08); }
.chat__form { display: flex; align-items: center; gap: 10px; }
.chat__form input { flex: 1; background: rgba(8, 12, 10, 0.7); border: 1px solid var(--line-strong); border-radius: 999px; padding: 13px 18px; color: var(--ink); font-size: 14.5px; font-family: inherit; outline: none; transition: border-color 0.2s ease; }
.chat__form input:focus { border-color: var(--gold); }
.chat__send, .chat__mic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-content: center; flex-shrink: 0; transition: all 0.2s ease; }
.chat__send { background: linear-gradient(120deg, var(--gold), #b8965a); border: 0; }
.chat__send svg { width: 19px; height: 19px; fill: #1a1407; }
.chat__send:hover { transform: scale(1.06); }
.chat__mic svg { width: 19px; height: 19px; fill: var(--gold-bright); }
.chat__mic.is-recording { background: rgba(231, 205, 142, 0.18); border-color: var(--gold); animation: pulse 1.4s infinite; }
/* Bouton "écouter la réponse" (TTS) attaché à une réponse de l'agent */
.msg__speak { display: inline-grid; place-content: center; width: 26px; height: 26px; margin-top: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; opacity: 0.6; transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.msg__speak:hover { opacity: 1; transform: scale(1.08); }
.msg__speak svg { width: 14px; height: 14px; fill: var(--gold-bright); }
.msg__speak.is-loading, .msg__speak.is-playing { opacity: 1; border-color: var(--gold); background: rgba(231, 205, 142, 0.18); animation: pulse 1.4s infinite; }
.chat__note { font-size: 11.5px; color: var(--muted-2); margin: 12px 0 0; }

/* ---- CONTACT ---- */
.contact__grid { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 22px; align-items: stretch; }
.contact__card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact__list .k { color: var(--muted); width: 90px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact__list a, .contact__list span.v { color: var(--ink); }
.contact__list a:hover { color: var(--gold-bright); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__qr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; justify-content: center; }
.contact__qr img { background: #f3efe2; border-radius: 12px; padding: 10px; }
.contact__qr p { color: var(--muted); font-size: 13px; margin: 0; }

.site-footer { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted-2); font-size: 12.5px; }
.site-footer__a2a { color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__a2a:hover, .site-footer__a2a:focus-visible { color: var(--gold); }
.site-footer #footer-name { color: var(--gold); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__agent { min-height: auto; order: -1; padding-top: 12px; }
  .hero__portrait { width: min(230px, 56vw); }
  .hero__agent::before { width: 280px; height: 280px; }
  .galaxy__stage { grid-template-columns: 1fr; }
  #galaxy-canvas { position: relative; height: 280px; grid-column: 1; }
  .chat { grid-template-columns: 1fr; }
  .chat__visual { min-height: 260px; }
  .contact__grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: rgba(8,11,10,0.97); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero { padding-top: 100px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .section { padding-left: 18px; padding-right: 18px; }
  .logo-chip { height: 52px; min-width: 92px; padding: 0 16px; gap: 10px; }
  .logo-chip img { max-height: 24px; max-width: 100px; }
  .logobar__track { gap: 10px; }
}

/* =========================================================================
   TALK TO MY AGENT — Command Center (signature)
   ========================================================================= */
.agentchat { position: relative; }
.agentchat::after {
  content: ""; position: absolute; inset: -8% -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 52% at 50% 46%, rgba(7, 13, 10, 0.66), transparent 72%);
  opacity: 0; transition: opacity 0.9s ease;
}
.agentchat.is-immersive::after { opacity: 1; }

.console {
  position: relative; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 13, 11, 0.9), rgba(6, 9, 8, 0.95));
  box-shadow: var(--shadow), inset 0 0 70px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.9s ease, border-color 0.9s ease;
}
.agentchat.is-immersive .console {
  border-color: rgba(201, 168, 106, 0.45);
  box-shadow: var(--shadow), 0 0 130px -44px rgba(111, 211, 178, 0.3), inset 0 0 70px rgba(0, 0, 0, 0.5);
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(201, 168, 106, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 106, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 100% at 28% 0%, #000, transparent 72%);
  mask-image: radial-gradient(130% 100% at 28% 0%, #000, transparent 72%);
}

.console__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.92fr 1.45fr 0.82fr; min-height: 420px; align-items: stretch; }

/* --- Colonne agent 3D --- */
.console__agent { position: relative; min-height: 420px; border-right: 1px solid var(--line); overflow: hidden; }
#chat-agent-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.console__scan { position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 178, 0.55), transparent); filter: blur(0.6px);
  animation: scanmove 5s ease-in-out infinite; opacity: 0.45; pointer-events: none; }
@keyframes scanmove { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.console__status { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 9px; align-items: center; justify-content: center;
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.console__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 11px var(--emerald); animation: pulse 2.2s ease-in-out infinite; }

/* --- Colonne dialogue --- */
.console__chat { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--line); min-height: 420px; max-height: 560px; }
.console__chat .chat__log { flex: 1; min-height: 0; max-height: none; }
.console__chat .chat__form { margin-top: 14px; }

/* --- Colonne preuves (scroll interne pour rester compacte) --- */
.console__evidence { position: relative; z-index: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: hidden; }
.evidence__label, .deck-label { text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; font-weight: 600; color: var(--muted-2); margin: 0; }
.evidence__tags { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; overflow-y: auto; flex: 1; min-height: 0; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.evidence__tags::-webkit-scrollbar { width: 5px; }
.evidence__tags::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.evidence-tag { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12px; color: var(--muted); background: rgba(12, 18, 15, 0.4); opacity: 0.45; transition: all 0.45s cubic-bezier(.2,.7,.3,1); flex-shrink: 0; }
.evidence-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; transition: all 0.45s ease; }
.evidence-tag.is-on { opacity: 1; color: var(--ink); border-color: rgba(111, 211, 178, 0.45); background: rgba(79, 174, 143, 0.1);
  box-shadow: 0 0 26px -10px rgba(111, 211, 178, 0.6); transform: translateX(-2px); }
.evidence-tag.is-on::before { background: var(--emerald-bright); box-shadow: 0 0 10px var(--emerald-bright); }
.evidence__hint { font-size: 11.5px; color: var(--muted-2); margin: 8px 0 0; line-height: 1.5; flex-shrink: 0; }

/* --- Deck de questions --- */
.deck-wrap { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 22px; }
.deck-label { margin-bottom: 14px; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.deck-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(12, 18, 15, 0.5); color: var(--ink-soft); cursor: pointer; font-family: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.deck-card__icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-content: center; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--gold-bright); font-size: 15px; transition: all 0.25s ease; }
.deck-card__q { font-size: 13px; line-height: 1.4; }
.deck-card:hover { border-color: var(--line-strong); background: rgba(20, 30, 25, 0.72); transform: translateY(-3px); box-shadow: 0 16px 38px -22px rgba(201, 168, 106, 0.55); }
.deck-card:hover .deck-card__icon { background: linear-gradient(120deg, var(--gold-bright), var(--gold)); color: #1a1407; border-color: transparent; }
.deck-card.is-active { border-color: var(--emerald); box-shadow: 0 0 30px -10px rgba(111, 211, 178, 0.65); }
.deck-card[disabled] { opacity: 0.4; pointer-events: none; }

/* --- Séquence d'activation --- */
.console__boot { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: rgba(6, 9, 8, 0.94); backdrop-filter: blur(5px); transition: opacity 0.7s ease, visibility 0.7s ease; }
.console[data-booted="true"] .console__boot, .console[data-booting="false"] .console__boot:not(.is-playing) { opacity: 0; visibility: hidden; }
.console:not([data-booting="true"]) .console__boot { opacity: 0; visibility: hidden; }
.console[data-booting="true"] .console__boot { opacity: 1; visibility: visible; }
.boot-ring { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(201, 168, 106, 0.18); border-top-color: var(--gold-bright); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; min-width: 290px; }
.boot-seq li { display: flex; align-items: center; gap: 13px; font-size: 13.5px; color: var(--muted-2); opacity: 0; transform: translateY(6px); transition: all 0.4s ease; }
.boot-seq li.is-in { opacity: 1; transform: none; color: var(--ink-soft); }
.boot-seq li .bcheck { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; position: relative; transition: all 0.3s ease; }
.boot-seq li.is-done .bcheck { background: var(--emerald); border-color: var(--emerald); }
.boot-seq li.is-done .bcheck::after { content: "✓"; position: absolute; inset: 0; display: grid; place-content: center; font-size: 10px; color: #06140e; font-weight: 700; }

/* --- Réponse structurée --- */
.msg--agent .ans-p { margin: 0 0 8px; }
.msg--agent .ans-p:last-child { margin-bottom: 0; }
.msg--agent .ans-list { margin: 6px 0 2px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.msg--agent .ans-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-soft); opacity: 0; transform: translateX(-4px); animation: ansin 0.45s ease forwards; }
.msg--agent .ans-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(120deg, var(--gold), var(--emerald)); }
@keyframes ansin { to { opacity: 1; transform: none; } }
.msg__followup { margin-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg__deepen { font-size: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--gold-bright); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.msg__deepen:hover { background: rgba(201, 168, 106, 0.1); border-color: var(--gold); }

/* --- Responsive console --- */
@media (max-width: 980px) {
  .console__grid { grid-template-columns: 1fr; }
  .console__agent { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .console__chat { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .deck { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .deck { grid-template-columns: 1fr; }
  .console__chat, .console__evidence, .deck-wrap { padding: 18px; }
  .boot-seq { min-width: 220px; }
}

/* =========================================================================
   AGENT — Lanceur + Overlay "terminal" + Pastille flottante
   ========================================================================= */
/* --- Lanceur --- */
.agentlaunch { text-align: center; }
.launch { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vh, 60px) 0; }
.launch__head { margin: 0 auto 28px; max-width: 640px; }
.launch__head h2 { font-size: clamp(30px, 5vw, 52px); }
.launch .section__sub { margin: 0 auto; }
.launch__btn { font-size: 15px; padding: 16px 32px; }
.launch__btn .spark { width: 19px; height: 19px; fill: currentColor; }
.launch__hint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.launch__a2a { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.launch__a2a-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.launch__a2a-link { font-size: 13px; }
.launch__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: -1; }
.launch__rings span { position: absolute; border: 1px solid var(--line); border-radius: 50%; width: 230px; height: 230px; animation: ringpulse 4.5s ease-out infinite; }
.launch__rings span:nth-child(2) { width: 360px; height: 360px; animation-delay: 1.5s; }
.launch__rings span:nth-child(3) { width: 500px; height: 500px; animation-delay: 3s; }
.launch__rings b { width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 106, 0.22), rgba(79, 174, 143, 0.08) 50%, transparent 68%); filter: blur(6px); }
@keyframes ringpulse { 0% { opacity: 0.5; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.18); } }

/* --- Overlay --- */
body.modal-open { overflow: hidden; }
body.modal-open .nav { opacity: 0; pointer-events: none; }
.agent-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); }
.agent-modal[hidden] { display: none; }
.agent-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 4, 0.76); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.45s ease; }
.agent-modal.is-open .agent-modal__backdrop { opacity: 1; }
.agent-modal__shell {
  position: relative; width: min(1520px, 100%); display: flex; flex-direction: column;
  border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 13, 11, 0.97), rgba(6, 9, 8, 0.98));
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 140px -40px rgba(111, 211, 178, 0.32);
  max-height: min(94vh, 980px);
  opacity: 0; transform: scale(0.94) translateY(12px); clip-path: inset(10% 8% 10% 8% round 18px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 0.84, 0.3, 1), clip-path 0.55s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.agent-modal.is-open .agent-modal__shell { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); }
.agent-modal__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(8, 12, 10, 0.6); flex-shrink: 0; }
.agent-modal__dots { display: inline-flex; gap: 7px; }
.agent-modal__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.agent-modal__dots i:nth-child(1) { background: #e06c5b; }
.agent-modal__dots i:nth-child(2) { background: #e7c46a; }
.agent-modal__dots i:nth-child(3) { background: #6fd3b2; }
.agent-modal__title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.agent-modal__close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 14px; transition: all 0.2s ease; }
.agent-modal__close:hover { border-color: var(--line-strong); color: #fff; background: rgba(201, 168, 106, 0.1); }
.agent-modal__sweep { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 178, 0.85), transparent); filter: blur(0.5px); }
.agent-modal.is-open .agent-modal__sweep { animation: sweepdown 0.75s ease-out 0.15s 1; }
@keyframes sweepdown { 0% { opacity: 0.95; top: 0; } 100% { opacity: 0; top: 100%; } }

/* Console à l'intérieur de l'overlay : pleine surface, scroll interne */
.agent-modal__shell .console { border: 0; border-radius: 0; box-shadow: none; flex: 1; min-height: 0; overflow-y: auto; }
/* Grille à hauteur FIXE : les colonnes (agent/chat/signaux) scrollent en interne au lieu
   de faire grandir toute la console -> plus de débordement global. */
.agent-modal__shell .console__grid {
  height: clamp(430px, 56vh, 620px);
  min-height: 0;
  grid-template-columns: minmax(220px, 0.78fr) minmax(380px, 1.72fr) minmax(210px, 0.72fr);
}
.agent-modal__shell .console__agent { min-height: 0; }
.agent-modal__shell .console__chat { min-height: 0; max-height: none; }
.agent-modal__shell .console__evidence { max-height: none; }
/* Deck plus compact dans l'overlay (moins de lignes -> pas de scroll) */
.agent-modal__shell .deck-wrap { padding: 14px 22px 18px; }
.agent-modal__shell .deck { grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 8px; }
.agent-modal__shell .deck-card { padding: 10px 13px; gap: 10px; }
.agent-modal__shell .deck-card__icon { width: 28px; height: 28px; font-size: 13px; }
.agent-modal__shell .deck-card__q { font-size: 12.5px; }

/* --- Pastille flottante --- */
.agent-fab { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; color: #0c1a14;
  background: linear-gradient(120deg, var(--gold-bright), var(--emerald-bright)); box-shadow: 0 16px 40px -14px rgba(111, 211, 178, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.agent-fab[hidden] { display: none; }
.agent-fab:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -14px rgba(111, 211, 178, 0.85); }
.agent-fab__icon { width: 26px; height: 26px; display: grid; place-content: center; }
.agent-fab .spark { width: 21px; height: 21px; fill: #0c1a14; animation: sparkspin 7s linear infinite; }
.agent-fab__label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }
.agent-fab::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid rgba(111, 211, 178, 0.55); opacity: 0; animation: fabpulse 2.8s ease-out infinite; }
@keyframes fabpulse { 0% { opacity: 0.6; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.14); } }
@keyframes sparkspin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }

@media (max-width: 560px) {
  .agent-fab__label { display: none; }
  .agent-fab { padding: 14px; }
  .agent-modal__shell { max-height: 94vh; }
}

/* --- Overlay agent : tablette & mobile (layout vertical, chat visible) --- */
@media (max-width: 980px) {
  /* La grille passe en pile verticale : plus de hauteur fixe qui écrase le dialogue */
  .agent-modal__shell .console { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .agent-modal__shell .console__grid { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .agent-modal__shell .console__agent { height: 180px; min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-modal__shell .console__chat { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-modal__shell .console__chat .chat__log { max-height: 34vh; min-height: 190px; }
  .agent-modal__shell .console__evidence { max-height: none; }
  .agent-modal__shell .console__evidence .evidence__tags { max-height: 150px; }
  .agent-modal__shell .deck { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  /* Plein écran sur téléphone : le dialogue occupe l'espace */
  .agent-modal { padding: 0; place-items: stretch; }
  .agent-modal__shell { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .agent-modal__bar { padding: 12px 14px; }
  .agent-modal__shell .console__agent { height: 150px; min-height: 150px; }
  .agent-modal__shell .console__chat { padding: 16px; }
  .agent-modal__shell .console__chat .chat__log { max-height: 42vh; min-height: 200px; }
  .agent-modal__shell .console__evidence { padding: 14px 16px; }
  .agent-modal__shell .deck-wrap { padding: 14px 16px 22px; }
  .agent-modal__shell .deck { grid-template-columns: 1fr; }
}

/* =========================================================================
   UX PASS — micro-interactions "wow" (compteurs, anneaux, tilt, progression)
   ========================================================================= */
/* Barre de progression de lecture */
.progressbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 45;
  background: linear-gradient(90deg, var(--gold), var(--emerald-bright));
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.45); pointer-events: none; }

/* Anneaux Impact : vides au départ, se remplissent au reveal */
.impact-card .ring-fg { transition: stroke-dashoffset 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.impact-card.is-in .ring-fg { stroke-dashoffset: var(--ring-off) !important; }

/* Tilt 3D de la photo (le tilt est sur l'img : l'animation float reste sur la figure) */
.hero__portrait img { transition: transform 0.25s ease; will-change: transform; }

/* Scroll-hint disparaît après le premier scroll */
.scroll-hint { transition: opacity 0.5s ease; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }

/* Bulle de teasing de la pastille Agent IA */
.agent-fab { overflow: visible; }
.agent-fab__tease { position: absolute; bottom: calc(100% + 14px); right: 0; white-space: nowrap;
  padding: 10px 16px; border-radius: 13px; font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(12, 18, 15, 0.96); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8), 0 0 30px -12px rgba(111, 211, 178, 0.4);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.agent-fab__tease::after { content: ""; position: absolute; top: 100%; right: 26px;
  border: 7px solid transparent; border-top-color: rgba(12, 18, 15, 0.96); }
.agent-fab.is-teasing .agent-fab__tease { opacity: 1; transform: none; }

/* =========================================================================
   WOW 2 — thèmes par section, streaming, entrée hero, magnétisme
   ========================================================================= */
/* --- Voiles de thème : l'ambiance glisse subtilement selon la section --- */
.theme-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.theme-veil--galaxy { background: radial-gradient(900px 600px at 12% 30%, rgba(201, 168, 106, 0.11), transparent 65%); }
.theme-veil--impact { background: radial-gradient(900px 600px at 85% 25%, rgba(79, 174, 143, 0.14), transparent 65%); }
.theme-veil--expertise { background: radial-gradient(1000px 700px at 50% 40%, rgba(111, 147, 166, 0.13), transparent 70%); }
.theme-veil--vision { background: radial-gradient(900px 650px at 18% 75%, rgba(231, 205, 142, 0.11), transparent 65%); }
.theme-veil--agent { background: radial-gradient(1100px 800px at 50% 55%, rgba(79, 174, 143, 0.11), transparent 72%); }
.theme-veil--contact { background: radial-gradient(900px 600px at 80% 80%, rgba(111, 211, 178, 0.11), transparent 65%); }
body[data-theme="galaxy"] .theme-veil--galaxy,
body[data-theme="impact"] .theme-veil--impact,
body[data-theme="expertise"] .theme-veil--expertise,
body[data-theme="vision"] .theme-veil--vision,
body[data-theme="agent"] .theme-veil--agent,
body[data-theme="contact"] .theme-veil--contact { opacity: 1; }

/* --- Streaming : curseur de génération + étapes de réflexion --- */
.stream-cursor { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--gold-bright); border-radius: 2px; animation: cursorblink 0.75s steps(1) infinite; }
@keyframes cursorblink { 50% { opacity: 0; } }
.typing-stage { font-size: 11px; color: var(--muted-2); margin-top: 7px; letter-spacing: 0.14em; text-transform: uppercase; }

/* --- Entrée séquencée du hero --- */
body[data-state="ready"] .hero__title { animation: heroup 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
body[data-state="ready"] .hero__tagline { animation: heroup 0.85s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
body[data-state="ready"] .hero__lede { animation: heroup 0.85s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
body[data-state="ready"] .hero__cta { animation: heroup 0.85s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
body[data-state="ready"] .hero__chips { animation: heroup 0.85s 0.46s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
body[data-state="ready"] .hero__portrait { animation: heroup 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both, floaty 7s ease-in-out 1.2s infinite; }
@keyframes heroup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* --- Boutons magnétiques (la translate est séparée du transform du hover) --- */
.btn--primary, .agent-fab, .launch__btn { transition-property: translate, transform, box-shadow, background, border-color, color; transition-duration: 0.18s, 0.25s, 0.25s, 0.25s, 0.25s, 0.25s; }

/* =========================================================================
   WOW 3 — agent : radar de boot, sync signaux, chiffres or, exploration
   ========================================================================= */
#boot-radar { width: 150px; height: 150px; opacity: 0.95; filter: drop-shadow(0 0 18px rgba(111, 211, 178, 0.25)); }
.console__boot { gap: 18px; }

/* Signal qui flashe quand le chiffre apparaît dans la réponse */
.evidence-tag.is-flash { animation: tagflash 0.9s ease; }
@keyframes tagflash {
  0% { transform: translateX(-2px) scale(1); }
  25% { transform: translateX(-2px) scale(1.06); box-shadow: 0 0 34px -6px rgba(111, 211, 178, 0.95); border-color: var(--emerald-bright); }
  100% { transform: translateX(-2px) scale(1); }
}

/* Chiffres clés en or dans les réponses */
.msg--agent .num { color: var(--gold-bright); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Cartes du deck déjà explorées + compteur */
.deck-card.is-done { border-color: rgba(111, 211, 178, 0.35); }
.deck-card.is-done .deck-card__icon { background: rgba(79, 174, 143, 0.16); color: var(--emerald-bright); border-color: rgba(111, 211, 178, 0.45); }
.deck-progress { color: var(--emerald-bright); font-weight: 600; }

@media (max-width: 700px) {
  #boot-radar { width: 118px; height: 118px; }
}

/* ----------------------------- MISE EN RELATION (LEADS) ----------------------------- */
/* Honeypot : présent dans le DOM, invisible et inatteignable pour un humain. */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Ligne de pied de chat : note + CTA discret « Me mettre en relation ». */
.chat__footerline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat__footerline .chat__note { flex: 1 1 60%; }
.chat__connect {
  margin-top: 12px; font-size: 11.5px; font-family: inherit; cursor: pointer;
  color: var(--emerald-bright); background: rgba(79, 174, 143, 0.1);
  border: 1px solid rgba(79, 174, 143, 0.3); border-radius: 999px; padding: 7px 15px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; white-space: nowrap;
}
.chat__connect:hover { background: rgba(79, 174, 143, 0.2); border-color: rgba(79, 174, 143, 0.55); }
.chat__connect:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 2px; }

/* Boutons de choix (offre, accepter/continuer). */
.msg__choices { margin-top: 13px; }
.msg__deepen.is-primary { background: linear-gradient(120deg, var(--gold), #b8965a); color: #1a1407; border-color: transparent; font-weight: 600; }
.msg__deepen.is-primary:hover { filter: brightness(1.05); background: linear-gradient(120deg, var(--gold-bright), var(--gold)); }
.msg__deepen:disabled { opacity: 0.45; cursor: default; }

/* Indicateur d'étape de collecte. */
.contact-progress { display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }

/* Panneau de consentement intégré à la console. */
.contact-consent { margin-top: 14px; animation: consentIn 0.4s ease both; }
.contact-consent__inner {
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.92), rgba(12, 18, 16, 0.92));
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}
.contact-consent__title { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--gold-bright); }
.contact-consent__recap { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.contact-consent__recap li { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.contact-consent__recap li span { color: var(--muted); flex: 0 0 auto; }
.contact-consent__recap li b { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
.contact-consent__privacy { font-size: 11.5px; line-height: 1.55; color: var(--ink-soft); background: rgba(79, 174, 143, 0.07); border: 1px solid rgba(79, 174, 143, 0.18); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.contact-consent__privacy .lock { margin-right: 6px; }
.contact-consent__actions { display: flex; gap: 9px; flex-wrap: wrap; }
.contact-consent__actions .btn { font-size: 13px; padding: 10px 16px; flex: 1 1 auto; justify-content: center; }

@keyframes consentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* État de transmission : sceau lumineux qui balaie la console pendant l'envoi. */
.console.is-transmitting::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 6;
  background: linear-gradient(110deg, transparent 30%, rgba(111, 211, 178, 0.16) 50%, transparent 70%);
  background-size: 220% 100%; animation: transmitSweep 1.1s linear infinite;
}
@keyframes transmitSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (max-width: 700px) {
  .chat__footerline { flex-direction: column; }
  .chat__connect { width: 100%; text-align: center; }
  .contact-consent__actions .btn { flex: 1 1 100%; }
  .contact-consent__recap li { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-consent { animation: none; }
  .console.is-transmitting::after { animation: none; background: rgba(111, 211, 178, 0.1); }
}

/* Privacy notice in the site footer (Umami analytics disclosure). */
.site-footer__privacy {
  display: block;
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(147, 162, 152, 0.62);
  text-align: center;
}
