/* Animations de méthode et d’état vide : toutes les règles restent locales aux scènes. */
.service-scene.scene-journey {
  min-height: 230px;
  aspect-ratio: auto;
  overflow: visible;
  border-color: #e0e8f2;
  background: linear-gradient(105deg, #fbfdff 0%, #f5f9ff 52%, #fff 100%);
}
.scene-journey .jc-journey-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.scene-journey .jc-journey-stage {
  position: relative;
  min-height: 230px;
  padding: 43px 5% 30px;
}
.scene-journey .jc-journey-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scene-journey .jc-journey-step {
  position: relative;
  display: grid;
  grid-template-rows: 48px 18px auto 1fr;
  align-items: start;
  min-width: 0;
  text-align: center;
}
.scene-journey .jc-journey-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  border: 1px solid #bdd3f1;
  border-radius: 50%;
  background: #fff;
  color: #1e6fe8;
  box-shadow: 0 6px 16px rgba(24, 91, 187, .08);
}
.scene-journey .jc-journey-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.scene-journey .jc-journey-node {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1e6fe8;
  box-shadow: 0 0 0 1px #78a8e8, 0 3px 8px rgba(30, 111, 232, .22);
  animation: jc-journey-node 4.6s ease-in-out infinite;
}
.scene-journey .jc-journey-step:nth-child(2) .jc-journey-node { animation-delay: .55s; }
.scene-journey .jc-journey-step:nth-child(3) .jc-journey-node { animation-delay: 1.1s; }
.scene-journey .jc-journey-step:nth-child(4) .jc-journey-node { animation-delay: 1.65s; }
.scene-journey .jc-journey-step h4 {
  margin: 0 0 5px;
  color: #0a1628;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.scene-journey .jc-journey-step p {
  max-width: 190px;
  margin: 0 auto;
  color: #607086;
  font-size: 12px;
  line-height: 1.45;
}
.scene-journey .jc-journey-line {
  position: absolute;
  z-index: -1;
  top: 69px;
  right: 10%;
  left: 10%;
  height: 1px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, #bed4f2 0 8px, transparent 8px 15px);
  opacity: .72;
  animation: jc-journey-line 7s ease-in-out infinite;
}
.scene-journey .jc-journey-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(30, 111, 232, .85), transparent);
  content: "";
  transform: translateX(-100%);
  animation: jc-journey-sweep 5.5s ease-in-out infinite;
}
.scene-journey .scene-pause,
.scene-catalogue .scene-pause { bottom: 10px; }

.service-scene.scene-catalogue {
  min-height: 230px;
  aspect-ratio: 4 / 3;
  border-color: #dfe7f1;
  background: radial-gradient(circle at 50% 47%, #fff 0 18%, #f6f9fe 62%, #edf4fc 100%);
}
.scene-catalogue .jc-catalogue-grid {
  position: absolute;
  inset: 8% 9%;
}
.scene-catalogue .jc-catalogue-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(111, 164, 241, .13);
  filter: blur(14px);
  transform: translate(-50%, -50%);
}
.scene-catalogue .jc-catalogue-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed #c5d8f0;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}
.scene-catalogue .jc-catalogue-orbit--one { width: 86%; height: 57%; }
.scene-catalogue .jc-catalogue-orbit--two { width: 58%; height: 90%; transform: translate(-50%, -50%) rotate(28deg); border-color: #d6e3f2; }
.scene-catalogue .jc-app-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
}
.scene-catalogue .jc-app-cube {
  position: relative;
  width: 74px;
  height: 66px;
  transform: rotate(-30deg) skewY(12deg);
  filter: drop-shadow(0 9px 9px rgba(24, 91, 187, .14));
}
.scene-catalogue .jc-app-cube-face {
  position: absolute;
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid #75a7e8;
  background: #eaf3ff;
}
.scene-catalogue .jc-app-cube-face--top { top: 0; left: 11px; height: 29px; transform: skewX(-42deg); background: #f7fbff; }
.scene-catalogue .jc-app-cube-face--left { top: 20px; left: 0; transform: skewY(-40deg); background: #d7e8ff; }
.scene-catalogue .jc-app-cube-face--right { top: 20px; right: 0; transform: skewY(40deg); background: #bcd7f7; }
.scene-catalogue .jc-app-mark {
  position: absolute;
  top: 27px;
  left: 20px;
  z-index: 1;
  color: #185bbb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: skewY(-12deg) rotate(30deg);
}
.scene-catalogue .jc-app-label {
  color: #607086;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scene-catalogue .jc-catalogue-module {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 54px;
  padding: 7px 9px;
  border: 1px solid #ceddf0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 13px rgba(24, 91, 187, .08);
  color: #385371;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  animation: jc-catalogue-module 6s ease-in-out infinite;
}
.scene-catalogue .jc-module-glyph { display: inline-flex; color: #1e6fe8; }
.scene-catalogue .jc-module-glyph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.scene-catalogue .jc-catalogue-module--one { top: 7%; left: 8%; }
.scene-catalogue .jc-catalogue-module--two { top: 12%; right: 7%; animation-delay: .8s; }
.scene-catalogue .jc-catalogue-module--three { right: 1%; bottom: 10%; animation-delay: 1.6s; }
.scene-catalogue .jc-catalogue-module--four { bottom: 4%; left: 13%; animation-delay: 2.4s; }
.scene-catalogue .jc-catalogue-module--five { top: 43%; left: 0; animation-delay: 3.2s; }
.scene-catalogue .jc-catalogue-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #72a8ed; animation: jc-catalogue-spark 4s ease-in-out infinite; }
.scene-catalogue .jc-catalogue-spark--one { top: 19%; left: 32%; }
.scene-catalogue .jc-catalogue-spark--two { right: 27%; bottom: 21%; animation-delay: 1.3s; }
.scene-catalogue .jc-catalogue-spark--three { top: 68%; left: 28%; animation-delay: 2.6s; }

@keyframes jc-journey-node {
  0%, 100% { opacity: .72; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(0, -2px, 0); }
}
@keyframes jc-journey-line {
  0%, 100% { opacity: .54; }
  50% { opacity: .82; }
}
@keyframes jc-journey-sweep {
  0%, 24% { transform: translateX(-100%); opacity: 0; }
  42% { opacity: .7; }
  70%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes jc-catalogue-module {
  0%, 100% { opacity: .82; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(0, -4px, 0); }
}
@keyframes jc-catalogue-spark {
  0%, 100% { opacity: .32; transform: scale(.75); }
  50% { opacity: .95; transform: scale(1.25); }
}

/* Ces règles finales reprennent le contrat motion-services.js après les shorthand d’animation. */
.scene-journey .sv-motion,
.scene-catalogue .sv-motion { animation-play-state: paused; }
.scene-journey .jc-journey-line::after { animation-play-state: paused; }
.scene-journey.is-visible .sv-motion,
.scene-catalogue.is-visible .sv-motion { animation-play-state: running; }
.scene-journey.is-visible .jc-journey-line::after { animation-play-state: running; }
.scene-journey.is-paused .sv-motion,
.scene-catalogue.is-paused .sv-motion { animation-play-state: paused; }
.scene-journey.is-paused .jc-journey-line::after { animation-play-state: paused; }

@media (max-width: 760px) {
  .scene-journey .jc-journey-stage { padding-inline: 4%; }
  .scene-journey .jc-journey-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8%; }
  .scene-journey .jc-journey-line { display: none; }
  .scene-catalogue .jc-catalogue-module { transform: scale(.92); }
}
@media (max-width: 460px) {
  .scene-journey .jc-journey-flow { grid-template-columns: 1fr; gap: 20px; }
  .scene-journey .jc-journey-stage { padding-top: 28px; padding-bottom: 38px; }
  .scene-journey .jc-journey-step { grid-template-rows: 42px 14px auto 1fr; }
  .scene-journey .jc-journey-icon { width: 42px; height: 42px; margin-bottom: 8px; }
  .scene-journey .jc-journey-icon svg { width: 22px; height: 22px; }
  .scene-journey .jc-journey-node { margin-bottom: 8px; }
  .scene-catalogue .jc-catalogue-grid { inset-inline: 4%; }
  .scene-catalogue .jc-catalogue-module { min-width: 0; padding: 6px; font-size: 9px; }
  .scene-catalogue .jc-catalogue-module span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-journey .jc-journey-node.sv-motion,
  .scene-journey .jc-journey-line.sv-motion,
  .scene-journey .jc-journey-line::after,
  .scene-catalogue .jc-catalogue-module.sv-motion,
  .scene-catalogue .jc-catalogue-spark.sv-motion { animation: none !important; transform: none !important; }
  .scene-journey .jc-journey-node.sv-motion { opacity: .86; }
  .scene-journey .jc-journey-line.sv-motion { opacity: .7; }
  .scene-catalogue .jc-catalogue-module.sv-motion { opacity: .92; }
  .scene-catalogue .jc-catalogue-spark.sv-motion { opacity: .62; }
}

/* Module central : cartes d’application abstraites, logo original intact. */
.scene-catalogue .jc-app-cube { width: 96px; height: 96px; transform: none; }
.scene-catalogue .jc-app-cube-face { width: 84px; height: 84px; border-radius: 10px; }
.scene-catalogue .jc-app-cube-face--top { top: 6px; left: 6px; height: 84px; transform: rotate(-15deg); background: #d7e8ff; }
.scene-catalogue .jc-app-cube-face--left { top: 6px; left: 6px; transform: rotate(15deg); background: #eaf3ff; }
.scene-catalogue .jc-app-cube-face--right { top: 6px; left: 6px; right: auto; transform: none; background: #fff; }
.scene-catalogue .jc-app-mark { top: 16px; left: 16px; width: 64px; height: 64px; transform: none; }
.scene-catalogue .jc-app-mark img { display: block; width: 64px; height: 64px; object-fit: contain; }
