/* Cirkles — éléments interactifs de la page d'accueil
   (onglets cas d'usage, flux du score, visuels animés, accordéon). */

:root {
  --ix-ink: #0b0b0c;
  --ix-muted: rgba(0, 0, 0, 0.55);
  --ix-faint: rgba(0, 0, 0, 0.38);
  --ix-line: rgba(0, 0, 0, 0.08);
  --ix-surface: rgba(255, 255, 255, 0.9);
  --ix-ok: #0058fb; /* « validé » en bleu Cirkles */
  --ix-ok-bg: rgba(0, 88, 251, 0.09);
  --ix-warn: #b4540a;
  --ix-warn-bg: rgba(180, 84, 10, 0.1);
  --ix-blue: #0058fb;
  --ix-blue-soft: #7aa6ff;
  --ix-blue-bg: rgba(0, 88, 251, 0.08);
  --ix-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Éléments partagés des maquettes ---------- */
.mk {
  background: var(--ix-surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--ix-line), 0 8px 28px rgba(0, 0, 0, 0.05);
  padding: 14px;
  font-family: "Inter Tight", sans-serif;
  color: var(--ix-ink);
}
.mk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ix-muted);
  margin-bottom: 12px;
}
.mk-head > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ix-faint);
  border: 1px solid var(--ix-line);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.mk-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ix-ok);
  box-shadow: 0 0 0 0 rgba(0, 88, 251, 0.45);
  animation: mkLive 2s infinite;
  flex: none;
}
@keyframes mkLive {
  0% { box-shadow: 0 0 0 0 rgba(0, 88, 251, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(0, 88, 251, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 88, 251, 0); }
}
.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ix-muted);
}
.mk-badge.ok { background: var(--ix-ok-bg); color: var(--ix-ok); }
.mk-badge.warn { background: var(--ix-warn-bg); color: var(--ix-warn); }

/* ---------- 1. Onglets « Cas d'usage » ---------- */
.uc {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: stretch;
}
.uc-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uc-tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ix-ease);
}
.uc-tab:hover { background: rgba(0, 0, 0, 0.055); }
.uc-tab:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.uc-tab.is-active {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.uc-tab-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  transition: background 0.3s ease, color 0.3s ease;
}
.uc-tab-icon svg { width: 16px; height: 16px; }
.uc-tab.is-active .uc-tab-icon { background: var(--ix-blue); color: #fff; border-color: var(--ix-blue); }
.uc-tab-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uc-tab-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ix-faint);
}
.uc-tab-title {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease;
}
.uc-tab.is-active .uc-tab-title { color: #000; }
.uc-tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--ix-blue);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.uc[data-autoplay="on"] .uc-tab.is-active .uc-tab-progress {
  opacity: 1;
  animation: ucProgress var(--uc-duration, 7s) linear forwards;
}
.uc[data-paused="true"] .uc-tab.is-active .uc-tab-progress { animation-play-state: paused; }
@keyframes ucProgress { to { transform: scaleX(1); } }

.uc-panels {
  position: relative;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  min-height: 100%;
}
.uc-panel { display: none; }
.uc-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  animation: ucIn 0.5s var(--ix-ease) both;
}
@keyframes ucIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.uc-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ix-faint);
}
.uc-copy h3 {
  margin-top: 8px;
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.uc-copy p.uc-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ix-muted);
}

/* Lignes de contrôle animées */
.mk-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.025);
}
.mk-rows li > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-state {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #000;
  position: relative;
}
.mk-rows li.ok .mk-state,
.mk-rows li.warn .mk-state { border-color: transparent; }
.mk-rows li.ok .mk-state { background: var(--ix-ok); }
.mk-rows li.warn .mk-state { background: var(--ix-warn); }
.mk-rows li.ok .mk-state::after,
.mk-rows li.warn .mk-state::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}
.mk-rows li.ok .mk-state::after {
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.mk-rows li.warn .mk-state::after {
  /* trait horizontal, façon panneau « sens interdit » */
  width: 8px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
/* Séquence d'apparition (déclenchée à l'activation du panneau) */
.uc-panel.is-active .mk-rows li {
  animation: mkRowIn 0.45s var(--ix-ease) calc(0.25s + var(--i, 0) * 0.45s) both;
}
.uc-panel.is-active .mk-rows li .mk-badge {
  animation: mkBadgeIn 0.35s ease calc(0.55s + var(--i, 0) * 0.45s) both;
}
.uc-panel.is-active .mk-rows li .mk-state {
  animation: mkSpin 0.6s linear calc(0.25s + var(--i, 0) * 0.45s) 1 both;
}
@keyframes mkRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mkBadgeIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes mkSpin { from { transform: rotate(-180deg); } to { transform: none; } }

/* Maquette Document */
.mk-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-doc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-sheet {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ix-line);
  padding: 10px 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-sheet i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}
.mk-sheet i.w60 { width: 60%; }
.mk-sheet i.w80 { width: 80%; }
.mk-sheet i.w40 { width: 40%; }
.mk-sheet i.w90 { width: 90%; }
.mk-sheet i.gap { margin-top: 6px; }
.mk-sheet .mk-photo {
  width: 34%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
}
.mk-sheet .mk-flag {
  position: absolute;
  left: 8%;
  right: 22%;
  top: 56%;
  height: 16%;
  border: 1.5px solid var(--ix-warn);
  border-radius: 4px;
  background: var(--ix-warn-bg);
  opacity: 0;
}
.mk-sheet .mk-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 26%;
  top: -26%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.06) 70%, rgba(0, 0, 0, 0.28) 100%);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
}
.uc-panel.is-active .mk-sheet .mk-scan { animation: mkScan 1.6s ease-in-out 0.3s 1 both; }
.uc-panel.is-active .mk-doc:nth-child(2) .mk-scan { animation-delay: 0.9s; }
.uc-panel.is-active .mk-sheet .mk-flag { animation: mkFlag 0.4s ease 1.7s both; }
.uc-panel.is-active .mk-doc .mk-badge { animation: mkBadgeIn 0.35s ease 1.8s both; }
.uc-panel.is-active .mk-doc:nth-child(2) .mk-badge { animation-delay: 2.4s; }
@keyframes mkScan { from { top: -26%; } to { top: 100%; } }
@keyframes mkFlag { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
.mk-doc-name { font-size: 12px; font-weight: 600; }
.mk-doc .mk-badge { align-self: flex-start; }

/* Maquette Banking */
.mk-iban {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.025);
  font-size: 12.5px;
}
.mk-iban code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mk-rows--after { margin-top: 12px; }
.mk-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.uc-panel.is-active .mk-foot .mk-badge,
.uc-panel.is-active .mk-iban .mk-badge { animation: mkBadgeIn 0.35s ease 1.4s both; }
.uc-panel.is-active .mk-iban .mk-badge { animation-delay: 0.4s; }

/* Maquette Behavioural (graphe) */
.mk-graph { position: relative; aspect-ratio: 4 / 3; }
.mk-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk-graph line {
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 0.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mk-graph line.hot { stroke: var(--ix-warn); stroke-width: 0.7; }
.uc-panel.is-active .mk-graph line { animation: mkDraw 0.9s ease calc(0.2s + var(--i, 0) * 0.2s) forwards; }
@keyframes mkDraw { to { stroke-dashoffset: 0; } }
.mk-node {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}
.mk-node.hub { background: var(--ix-blue); color: #fff; box-shadow: none; }
.mk-node.hot { background: var(--ix-warn); color: #fff; box-shadow: none; }
.uc-panel.is-active .mk-node { animation: mkNodeIn 0.4s var(--ix-ease) calc(0.1s + var(--i, 0) * 0.15s) both; }
.uc-panel.is-active .mk-node.hot { animation: mkNodeIn 0.4s var(--ix-ease) 1.2s both, mkPulse 2s ease 1.8s infinite; }
@keyframes mkNodeIn {
  from { opacity: 0; transform: translate(-50%, -35%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes mkPulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 84, 10, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(180, 84, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 84, 10, 0); }
}
.uc-panel.is-active .mk-graph + .mk-foot .mk-badge { animation-delay: 1.9s; }

/* ---------- 2. Flux « Un seul score » ---------- */
.sf {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.sf-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.sf-board {
  margin-top: 28px;
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: clamp(14px, 2.5vw, 26px);
  align-items: center;
}
.sf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ix-ease);
}
.sf-step:hover { transform: translateX(3px); border-color: rgba(0, 0, 0, 0.2); }
.sf-step:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.sf-step[aria-pressed="true"] { border-color: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.sf-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.09);
}
.sf-ico svg { width: 14px; height: 14px; }
.sf-name { flex: 1; font-size: 14px; font-weight: 600; }
.sf-status { position: relative; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sf-status > span { display: none; border-radius: 999px; padding: 3px 9px; }
.sf-status .s-wait { background: rgba(0, 0, 0, 0.05); color: var(--ix-faint); }
.sf-status .s-run { background: rgba(0, 0, 0, 0.85); color: #fff; }
.sf-status .s-done { background: var(--ix-ok-bg); color: var(--ix-ok); }
[data-state="wait"] .sf-status .s-wait,
[data-state="run"] .sf-status .s-run,
[data-state="done"] .sf-status .s-done { display: inline-block; }
[data-state="run"] .sf-ico { animation: sfRing 1s ease infinite; }
@keyframes sfRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); }
}

.sf-link { position: relative; width: 56px; height: 2px; background: rgba(0, 0, 0, 0.1); border-radius: 2px; overflow: hidden; }
.sf-link::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--ix-blue);
  transform: translateX(-110%);
}
.sf[data-phase="run"] .sf-link::after { animation: sfFlow 1.1s linear infinite; }
.sf[data-phase="done"] .sf-link { background: #000; }
@keyframes sfFlow { to { transform: translateX(260%); } }

.sf-result { padding: 16px; }
.sf-gauge-wrap { display: flex; align-items: center; gap: 16px; }
.sf-gauge { position: relative; width: 120px; flex: none; }
.sf-gauge svg { display: block; width: 100%; height: auto; }
.sf-gauge .track { stroke: rgba(0, 0, 0, 0.08); }
.sf-gauge .fill {
  stroke: var(--ix-warn);
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 1.2s var(--ix-ease);
}
.sf[data-phase="done"] .sf-gauge .fill { stroke-dashoffset: 40; }
.sf-level { display: flex; flex-direction: column; gap: 6px; }
.sf-level-label { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ix-faint); }
.sf-level .mk-badge { align-self: flex-start; opacity: 0; transition: opacity 0.4s ease 0.6s; }
.sf[data-phase="done"] .sf-level .mk-badge { opacity: 1; }
.sf-hint { font-size: 12px; color: var(--ix-muted); }

.sf-signals { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sf-signal { border-radius: 10px; background: rgba(0, 0, 0, 0.025); transition: background 0.3s ease, opacity 0.4s ease, transform 0.4s var(--ix-ease); }
.sf[data-phase="wait"] .sf-signal,
.sf[data-phase="run"] .sf-signal:not(.is-on) { opacity: 0.35; }
.sf-signal.is-open { background: rgba(0, 0, 0, 0.055); }
.sf-sig-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 56px 14px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
}
.sf-sig-btn:focus-visible { outline: 2px solid #000; outline-offset: 1px; }
.sf-sig-dim {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ix-faint);
  min-width: 78px;
}
.sf-weight { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.sf-weight > i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--ix-warn);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ix-ease);
}
.sf-signal.is-on .sf-weight > i { transform: scaleX(1); }
.sf-chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(0, 0, 0, 0.45);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
}
.sf-signal.is-open .sf-chev { transform: rotate(225deg) translateY(-2px); }
.sf-sig-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ix-ease);
}
.sf-signal.is-open .sf-sig-detail { grid-template-rows: 1fr; }
.sf-sig-detail > p {
  overflow: hidden;
  margin: 0;
  padding: 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ix-muted);
}
.sf-signal.is-open .sf-sig-detail > p { padding-bottom: 10px; }
.sf-foot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.sf-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ix-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 4px;
}
.sf-replay:hover { color: #000; }
.sf-replay svg { width: 14px; height: 14px; }

/* ---------- 3. Visuels « Capacités » ---------- */
.viz {
  position: relative;
  border-radius: 18px;
  padding: clamp(10px, 2vw, 16px);
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.016) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #fafbfc 0%, #f0f1f3 100%);
}

/* 3a. Agent Cirkles : échange qui se rédige */
.chat-mk { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.chat-mk .mk-head { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--ix-line); }
.chat-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 88, 251, 0.25);
}
.chat-title { display: flex; flex-direction: column; color: var(--ix-ink); font-size: 13px; line-height: 1.2; }
.chat-title em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ix-faint); }

.chat-thread { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.45; }
.chat-thread p { margin: 0; }
.chat [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.5s var(--ix-ease); }
.chat [data-step].is-on { opacity: 1; transform: none; }

.chat-msg--user {
  align-self: flex-end;
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--ix-blue);
  color: #fff;
}

.chat-status { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--ix-blue); }
.chat-status-done { display: none; color: var(--ix-faint); }
.chat[data-phase="done"] .chat-status-run,
.chat[data-phase="done"] .chat-dots { display: none; }
.chat[data-phase="done"] .chat-status-done { display: inline; }
.chat-dots { display: inline-flex; gap: 3px; }
.chat-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ix-blue); animation: chatDot 1.1s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

.chat-msg--agent {
  align-self: flex-start;
  width: 100%;
  padding: 12px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ix-line), 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
/* Chaque bloc se révèle ligne après ligne, au rythme d'une frappe (voir initChat). */
.chat [data-line] { opacity: 0; }
.chat [data-line].is-on { opacity: 1; }
.chat-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ix-warn-bg);
}
.chat-score-val { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 22px; line-height: 1; color: var(--ix-warn); }
.chat-score-val small { font-size: 11px; font-weight: 500; opacity: 0.7; }
.chat-score-txt { display: flex; flex-direction: column; font-size: 11.5px; color: var(--ix-muted); }
.chat-score-txt strong { color: var(--ix-warn); font-weight: 600; font-size: 12px; }
.chat-signals,
.chat-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chat-signals li { display: flex; align-items: baseline; gap: 8px; }
.chat-pill {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ix-blue);
  background: var(--ix-blue-bg);
  border-radius: 999px;
  padding: 2px 7px;
}
.chat-label {
  margin-top: 2px !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ix-blue);
}
.chat-steps { counter-reset: chat; }
.chat-steps li { display: flex; align-items: baseline; gap: 8px; counter-increment: chat; }
.chat-steps li::before {
  content: counter(chat);
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--ix-blue);
  transform: translateY(-1px);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 0 1px var(--ix-line);
  font-size: 12px;
}
.chat-input-field { position: relative; flex: 1; min-width: 0; height: 18px; overflow: hidden; }
.chat-input-ph,
.chat-input-draft { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
.chat-input-ph { color: var(--ix-faint); transition: opacity 0.2s; }
.chat-input-draft { color: var(--ix-ink); clip-path: inset(0 100% 0 0); opacity: 0; }
.chat[data-phase="compose"] .chat-input-ph { opacity: 0; }
.chat[data-phase="compose"] .chat-input-draft {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--dur, 1.4s) steps(var(--steps, 40), end);
}
.chat-send {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ix-blue-soft);
  transition: background 0.3s ease, transform 0.2s ease;
}
.chat-send svg { width: 14px; height: 14px; }
.chat[data-phase="compose"] .chat-send { background: var(--ix-blue); }
.chat.is-sending .chat-send { transform: scale(0.86); }

/* 3b. Réseau qui apprend */
.net-stage { position: relative; aspect-ratio: 16 / 11; }
.net-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-stage .spoke { stroke: rgba(0, 0, 0, 0.12); stroke-width: 0.4; }
.net-stage .pulse {
  stroke: var(--ix-blue);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 0.12 1;
  stroke-dashoffset: 0.12;
  opacity: 0;
}
.net-stage .pulse.in { animation: netIn 0.9s ease-in forwards; }
.net-stage .pulse.out { animation: netOut 0.9s ease-out forwards; }
/* Les rayons sont tracés du membre vers le centre (pathLength = 1). */
@keyframes netIn {
  0% { opacity: 1; stroke-dashoffset: 0.12; }
  100% { opacity: 1; stroke-dashoffset: -0.88; }
}
@keyframes netOut {
  0% { opacity: 1; stroke-dashoffset: -0.88; }
  100% { opacity: 1; stroke-dashoffset: 0.12; }
}
.net-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.net-hub-core {
  width: clamp(54px, 9vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ix-blue);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 88, 251, 0.3);
  transition: transform 0.4s var(--ix-ease);
}
.net-hub-core img { width: 100%; height: 100%; display: block; }
.net[data-phase="learn"] .net-hub-core { transform: scale(1.12); animation: netHub 0.9s ease; }
@keyframes netHub {
  0% { box-shadow: 0 0 0 0 rgba(0, 88, 251, 0.4); }
  100% { box-shadow: 0 0 0 22px rgba(0, 88, 251, 0); }
}
.net-hub-label { font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.92); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.net-member {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ix-ease);
}
.net-member:hover { transform: translate(-50%, -50%) scale(1.05); }
.net-member:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.net-member .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.net-member .dot svg { width: 10px; height: 10px; opacity: 0; color: #fff; transition: opacity 0.3s ease; }
.net-member[data-state="source"] { border-color: var(--ix-warn); }
.net-member[data-state="source"] .dot { background: var(--ix-warn); border-color: var(--ix-warn); animation: mkPulse 1.2s ease infinite; }
.net-member[data-state="safe"] .dot { background: var(--ix-ok); border-color: var(--ix-ok); }
.net-member[data-state="safe"] .dot svg { opacity: 1; }
.net-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.net-steps li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--ix-line);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ix-faint);
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.net-steps li b { font-weight: 600; font-size: 11px; color: inherit; }
.net[data-phase="signal"] .net-steps li:nth-child(1),
.net[data-phase="learn"] .net-steps li:nth-child(2),
.net[data-phase="protect"] .net-steps li:nth-child(3) {
  color: #000;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.06);
}
.net-hint { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ix-faint); }

/* ---------- 4. Accordéon « Fondations » ---------- */
.fd-acc { display: flex; flex-direction: column; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.fd-item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.fd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.fd-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; border-radius: 6px; }
.fd-num { font-size: 12px; font-weight: 500; color: var(--ix-faint); font-variant-numeric: tabular-nums; width: 22px; flex: none; }
.fd-title {
  flex: 1;
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease, transform 0.3s var(--ix-ease);
}
.fd-btn:hover .fd-title { color: #000; transform: translateX(3px); }
.fd-item.is-open .fd-title { color: #000; }
.fd-plus {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  transition: background 0.3s ease, transform 0.4s var(--ix-ease);
}
.fd-plus::before,
.fd-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.fd-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.3s ease; }
.fd-item.is-open .fd-plus { background: var(--ix-blue); color: #fff; transform: rotate(180deg); border-color: var(--ix-blue); }
.fd-item.is-open .fd-plus::after { opacity: 0; }
.fd-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ix-ease); }
.fd-item.is-open .fd-panel { grid-template-rows: 1fr; }
.fd-panel > div { overflow: hidden; }
.fd-panel p {
  padding: 0 44px 22px 38px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ix-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .uc { grid-template-columns: minmax(0, 1fr); }
  .uc-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 2px 24px 4px;
  }
  .uc-tabs::-webkit-scrollbar { display: none; }
  .uc-tab { flex: 0 0 auto; width: auto; align-items: center; padding: 10px 14px 10px 10px; scroll-snap-align: start; border-radius: 999px; }
  .uc-tab-title { display: none; }
  .uc-tab-icon { width: 30px; height: 30px; }
  .uc-tab-num { font-size: 12px; color: #000; letter-spacing: 0.04em; }
}
@media (max-width: 767px) {
  .uc-panel.is-active { grid-template-columns: minmax(0, 1fr); }
  .sf-board { grid-template-columns: minmax(0, 1fr); }
  .sf-sig-btn { grid-template-columns: minmax(0, 1fr) 44px 14px; row-gap: 3px; }
  .sf-sig-dim { grid-column: 1 / -1; min-width: 0; }
  .sf-link { width: 2px; height: 32px; margin: 0 auto; }
  .sf-link::after { width: 100%; height: 40%; transform: translateY(-110%); }
  .sf[data-phase="run"] .sf-link::after { animation-name: sfFlowV; }
  .net-steps { grid-template-columns: minmax(0, 1fr); }
  .net-stage { aspect-ratio: 1 / 1; }
  .fd-panel p { padding: 0 8px 20px 38px; }
}
@keyframes sfFlowV { to { transform: translateY(260%); } }

@media (prefers-reduced-motion: reduce) {
  .uc-panel.is-active,
  .uc-panel.is-active *,
  .chat *,
  .net-stage *,
  .sf * {
    animation: none !important;
    transition: none !important;
  }
  .mk-graph line { stroke-dashoffset: 0; }
  .mk-sheet .mk-flag { opacity: 1; }
  .mk-sheet .mk-scan { display: none; }
}

/* ---------- 4b. Boutons « Demander une démo » : reflet bleu qui balaie de gauche à droite ---------- */
.cta-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.cta-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 88, 251, 0.3) 40%,
    rgba(0, 88, 251, 0.5) 50%,
    rgba(0, 88, 251, 0.3) 60%,
    transparent 100%
  );
  filter: blur(6px);
  transform: translateX(-120%);
  animation: ctaShine 3.6s cubic-bezier(0.45, 0, 0.25, 1) 2s infinite;
  pointer-events: none;
}
.cta-shine:hover {
  border-color: rgba(0, 88, 251, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 88, 251, 0.08), 0 6px 20px rgba(0, 88, 251, 0.18);
}
.cta-shine:hover::after { animation-duration: 1.4s; }
@keyframes ctaShine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(240%); }
}


@media (prefers-reduced-motion: reduce) {
  .cta-shine::after { display: none; }
}

/* ---------- 5. Indication de défilement sous le Hero ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  z-index: 20; /* au-dessus du bloc de contenu du Hero (z-10) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  color: rgba(0, 88, 251, 0.75);
  transform: translateX(-50%);
  transition: opacity 0.4s ease, color 0.2s ease;
  animation: cueIn 0.8s ease 1.6s both;
}
.scroll-cue:hover { color: #0058fb; }
.scroll-cue:focus-visible { outline: 2px solid #0058fb; outline-offset: 4px; border-radius: 14px; }
/* !important : l'animation d'entrée fige sinon l'opacité à 1 */
.scroll-cue.is-hidden { opacity: 0 !important; pointer-events: none; }
.scroll-cue-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.6px solid currentColor;
  border-radius: 12px;
}
.scroll-cue-wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: cueWheel 1.8s ease-in-out infinite;
}
.scroll-cue-arrow {
  width: 14px;
  height: 14px;
  animation: cueArrow 1.8s ease-in-out infinite;
}
@keyframes cueIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cueWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes cueArrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue-wheel, .scroll-cue-arrow { animation: none; }
}
