/* ============================================================
   Schéma du mécanisme — DA Variante B (violet)
   ============================================================ */
.schema { background: var(--ivoire-2); }
.schema-head { max-width: 720px; margin: 0 auto; text-align: center; }
.schema-head .eyebrow { justify-content: center; }
.schema-head h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; margin: 16px 0 0; }
.schema-head .lede { margin: 20px auto 0; max-width: 560px; }

/* ---- flow ---- */
.schema-flow {
  display: flex; align-items: flex-start; justify-content: center;
  margin-top: 64px; gap: 0;
}
.node {
  flex: 0 0 196px; max-width: 196px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.node-badge {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blanc); border: 1.5px solid var(--sable-fonce);
  box-shadow: var(--shadow-card); color: var(--or-sombre);
}
.node-badge svg { width: 36px; height: 36px; stroke-width: 1.6; }
.node.payoff .node-badge {
  background: linear-gradient(165deg, var(--or-clair), var(--or-sombre));
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow-lift);
}
.node-step {
  margin-top: 20px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.28em; color: var(--or);
}
.node-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; color: var(--encre); margin-top: 8px;
  line-height: 1.22; min-height: 2.44em;
  display: flex; align-items: center; justify-content: center;
}
.node-sub { font-size: 14px; line-height: 1.5; color: var(--plomb); margin-top: 8px; max-width: 176px; }

/* ---- connectors ---- */
.connector { flex: 1 1 36px; min-width: 30px; height: 92px; position: relative; }
.connector::before {
  content: ''; position: absolute; left: 2px; right: 16px; top: 46px;
  height: 2px; transform: translateY(-50%); border-radius: 2px;
  background: var(--sable-fonce);
}
.connector .dot {
  position: absolute; top: 46px; left: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--or); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--or-voile);
  animation: schemaFlow 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  animation-delay: var(--d, 0s);
}
.connector svg {
  position: absolute; right: -2px; top: 46px; transform: translateY(-50%);
  color: var(--or); width: 20px; height: 20px;
}
@keyframes schemaFlow {
  0%   { left: 0;     opacity: 0; }
  14%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0; }
}

/* ---- loop ---- */
.schema-loop { display: flex; align-items: center; gap: 20px; margin: 52px auto 0; max-width: 780px; }
.schema-loop .loop-line { flex: 1; height: 1px; background: var(--sable-fonce); }
.schema-loop .loop-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--or-voile); color: var(--or-sombre);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
}
.schema-loop .loop-chip svg { width: 17px; height: 17px; animation: loopSpin 7s linear infinite; }
@keyframes loopSpin { to { transform: rotate(360deg); } }

/* ---- responsive : pile verticale ---- */
@media (max-width: 880px) {
  .schema-flow { flex-direction: column; align-items: center; margin-top: 48px; }
  .node { flex: none; max-width: 280px; }
  .connector { flex: none; width: 28px; height: 124px; min-width: 0; }
  .connector::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; transform: translateX(-50%); }
  .connector .dot { left: 50%; top: 6px; animation: schemaFlowV 2.8s cubic-bezier(0.45,0,0.25,1) infinite; animation-delay: var(--d, 0s); }
  .connector svg { display: none; }
  @keyframes schemaFlowV {
    0% { top: 6px; opacity: 0; }
    14% { opacity: 1; }
    82% { opacity: 1; }
    100% { top: calc(100% - 6px); opacity: 0; }
  }
  .schema-loop .loop-chip { white-space: normal; text-align: center; }
}
