/* Yazz Demo Film — démo animée (commun à toutes les apps) */

.demo-tour-shell {
  background: var(--demo-shell-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--demo-shell-border, rgba(83, 86, 87, 0.18));
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.demo-tour-lead {
  max-width: 42rem;
}

.demo-tour-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.demo-tour-progress-wrap {
  flex: 1 1 8rem;
  height: 6px;
  background: rgba(83, 86, 87, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.demo-tour-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #3b82f6);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.demo-tour-step-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #535657);
  white-space: nowrap;
}

.demo-tour-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--demo-title-color, #22d3ee);
}

.demo-tour-caption {
  margin: 0 0 1rem;
  color: var(--muted, #535657);
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-tour-stage {
  min-height: 14rem;
  position: relative;
  z-index: 1;
}

.demo-film-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  padding: 1rem;
  min-height: 16rem;
}

.demo-film-status {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #535657);
  text-align: center;
}

.demo-film-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(8, 76, 100, 0.1);
}

.demo-film-transport .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-film-btn {
  min-width: 2.6rem;
  padding: 0.45rem 0.55rem;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.demo-film-transport-spacer {
  flex: 1 1 100%;
  height: 0;
}

@media (min-width: 520px) {
  .demo-film-transport-spacer {
    flex: 1 1 auto;
    height: auto;
  }
}

.demo-cursor {
  position: absolute;
  z-index: 40;
  width: 22px;
  height: 22px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1), top 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 11px solid var(--demo-cursor-color, #22d3ee);
  border-top: 6px solid transparent;
  border-bottom: 12px solid transparent;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
}

.demo-click-pulse {
  position: absolute;
  z-index: 39;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(8, 76, 100, 0.55);
  pointer-events: none;
  opacity: 0;
}

.demo-click-pulse.is-active {
  animation: yazz-demo-pulse 0.45s ease-out forwards;
}

@keyframes yazz-demo-pulse {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.demo-field-active {
  outline: 2px solid rgba(90, 164, 170, 0.65);
  outline-offset: 2px;
  background: #fff !important;
}

.demo-click-flash {
  animation: yazz-demo-btn-flash 0.35s ease;
}

@keyframes yazz-demo-btn-flash {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(0.98); }
}

.demo-scene-in {
  animation: yazz-demo-scene-in 0.45s ease;
}

@keyframes yazz-demo-scene-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-reveal-in {
  animation: yazz-demo-reveal-in 0.5s ease;
}

@keyframes yazz-demo-reveal-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-card-clone {
  position: absolute;
  z-index: 35;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(8, 76, 100, 0.22);
  border-radius: 8px;
}

.demo-card-landed {
  animation: yazz-demo-card-land 0.4s ease;
}

@keyframes yazz-demo-card-land {
  0% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.demo-mock {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(8, 76, 100, 0.18);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.demo-mock--auth .demo-mock-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-mock--auth .demo-mock-tabs span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(34, 211, 238, 0.12);
}

.demo-mock--auth .demo-mock-tabs span.is-active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #041016;
}

.demo-mock .form-group {
  margin-bottom: 0.85rem;
}

.demo-mock .form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted, #535657);
  margin-bottom: 0.3rem;
}

.demo-mock .form-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #c9c9c9);
  font: inherit;
  background: #fff;
}

.demo-mock .password-field-wrap {
  display: block;
  position: relative;
}

.demo-mock .password-field-wrap .form-input[type="password"],
.demo-mock .password-field-wrap .form-input[type="text"] {
  padding-right: 2.85rem;
}

.demo-mock-success {
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  line-height: 1.45;
  color: #535657;
}

.demo-mock-context {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted, #535657);
}
