/* 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(8, 76, 100, 0.12));
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 8px 32px rgba(8, 76, 100, 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(8, 76, 100, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.demo-tour-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #084c64, #5aa4aa);
  border-radius: 999px;
  transition: width 0.35s ease;
}

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

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

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

.demo-tour-stage {
  min-height: min(20rem, 45dvh);
  position: relative;
  z-index: 1;
}

.demo-film-wrap {
  position: relative;
  border-radius: 10px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.4);
  padding: clamp(0.4rem, 1.5vw, 0.75rem);
  min-height: min(20rem, 45dvh);
}

.demo-film-wrap:has(.demo-film-page--modal) {
  min-height: 0;
  overflow: visible;
}

.demo-film-status {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #516f7e);
  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;
}

.demo-film-end {
  margin-top: 1rem;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 12px;
  border: 2px solid var(--accent, #3d9aa3);
  background: var(--accent-soft, rgba(14, 165, 233, 0.12));
  text-align: center;
}

.demo-film-end-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text, #084c64);
}

.demo-film-end-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #084c64);
}

.demo-film-end .btn-primary {
  display: inline-flex;
  justify-content: center;
  min-width: min(100%, 14rem);
}

.demo-film-end .btn-ghost {
  display: block;
  margin: 0.55rem auto 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, #084c64);
  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(8, 76, 100, 0.06);
}

.demo-mock--auth .demo-mock-tabs span.is-active {
  background: #084c64;
  color: #fff;
}

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

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

.demo-mock .form-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #c5d4dc);
  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: #1a6b4a;
}

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

/* Pages entières simulées dans le film */
.demo-film-page {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg, #eef4f6);
  border: 1px solid rgba(8, 76, 100, 0.12);
  font-size: 0.88rem;
}

.demo-film-page__body {
  position: relative;
  min-height: 16rem;
  padding: 0.85rem 1rem 1rem;
}

/* Scène avec formulaire : modale en flux, formulaire entier accessible */
.demo-film-page--modal {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 0;
  max-height: none;
}

.demo-film-page--modal .demo-film-nav {
  flex-shrink: 0;
}

.demo-film-page--modal .demo-film-page__body {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0.22;
  pointer-events: none;
}

.demo-film-page--modal .demo-film-overlay {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.4rem, 1.8vw, 0.75rem);
  background: rgba(8, 76, 100, 0.22);
  overflow: visible;
}

.demo-film-nav.layout-nav {
  padding: 0.55rem 0.85rem;
}

.demo-film-nav.layout-nav h1 {
  font-size: 0.82rem;
}

.demo-film-nav .nav-actions .btn-sm {
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
}

.demo-film-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted, #516f7e);
}

.demo-film-breadcrumb__sep {
  opacity: 0.55;
}

.demo-film-breadcrumb__item.is-current {
  color: var(--color-ink, #084c64);
  font-weight: 600;
}

.demo-film-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #516f7e);
}

.demo-film-page-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--color-ink, #084c64);
}

.demo-film-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 76, 100, 0.1);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.demo-film-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--color-ink, #084c64);
}

.demo-film-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #516f7e);
  font-style: italic;
}

.demo-film-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(8, 76, 100, 0.12);
  background: #fff;
}

.demo-film-screen--auth {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

.demo-mock--page {
  width: 100%;
  max-width: 22rem;
}

.demo-film-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.35rem, 2vw, 0.75rem);
  background: rgba(8, 76, 100, 0.28);
  overflow: hidden;
  box-sizing: border-box;
}

.demo-film-modal {
  width: min(100%, 24rem);
  max-width: 100%;
  max-height: none;
  margin: 0;
  background: var(--surface, #fff);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(8, 76, 100, 0.22);
  border: 1px solid rgba(8, 76, 100, 0.12);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 0 0 auto;
}

.demo-film-page--modal .demo-film-modal {
  width: min(100%, 26rem);
}

.demo-film-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(8, 76, 100, 0.1);
  flex-shrink: 0;
}

.demo-film-modal__header h2 {
  margin: 0;
  font-size: clamp(0.8rem, 2.8vw, 0.92rem);
  color: var(--color-ink, #084c64);
  line-height: 1.25;
}

.demo-film-modal__close {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.45;
  flex-shrink: 0;
}

.demo-film-modal__body {
  padding: 0.65rem 0.75rem;
  overflow: visible;
  flex: 0 0 auto;
}

.demo-film-modal__body .form-group {
  margin-bottom: 0.55rem;
}

.demo-film-modal__body .form-group:last-child {
  margin-bottom: 0;
}

.demo-film-modal__body label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #516f7e);
  margin-bottom: 0.25rem;
}

.demo-film-modal__body .form-input,
.demo-film-modal__body input,
.demo-film-modal__body textarea,
.demo-film-modal__body select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-film-modal-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted, #516f7e);
}

.demo-film-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 0.65rem;
  border-top: 1px solid rgba(8, 76, 100, 0.08);
  flex-shrink: 0;
  background: var(--surface, #fff);
}

.demo-film-modal__footer .btn {
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  padding: 0.4rem 0.7rem;
}

@media (max-width: 560px) {
  .demo-film-page--modal .demo-film-overlay {
    padding: 0.35rem;
  }

  .demo-film-modal {
    width: 100%;
    border-radius: 8px;
  }

  .demo-film-modal__footer {
    justify-content: stretch;
  }

  .demo-film-modal__footer .btn {
    flex: 1 1 auto;
  }
}

@media (max-height: 700px) {
  .demo-film-modal__body {
    padding: 0.5rem 0.65rem;
  }

  .demo-film-modal__body .form-group {
    margin-bottom: 0.4rem;
  }
}

.demo-film-board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.demo-film-board-tools .vault-card-tile,
.demo-film-board-tools .scrum-card-tile {
  margin: 0;
  flex: 1 1 9rem;
  max-width: none;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
}

.demo-film-board-tools .vault-card-tile__icon {
  font-size: 1.15rem;
}

.demo-film-board-tools .vault-card-tile__body strong {
  font-size: 0.82rem;
}

.demo-film-board-tools .vault-card-tile__body span {
  font-size: 0.68rem;
}

.demo-film-board-tools .vault-card-tile__status {
  font-size: 0.62rem;
  padding: 0.15rem 0.35rem;
}

.demo-film-canvas {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  min-height: 14rem;
}

.demo-film-canvas--dim {
  opacity: 0.55;
  pointer-events: none;
}

.demo-film-column {
  flex: 0 0 11.5rem;
  min-width: 11.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(8, 76, 100, 0.1);
  padding: 0.45rem;
}

.demo-film-column .column-header h2 {
  font-size: 0.72rem;
  margin: 0 0 0.45rem;
  color: #084c64;
}

.demo-film-col-count {
  font-weight: 600;
  font-size: 0.62rem;
  color: #2f4a56;
}

.demo-film-column .column-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 4rem;
}

.demo-film-column .demo-tour-card {
  padding: 0.45rem 0.5rem;
  font-size: 0.68rem;
  margin-bottom: 0.4rem;
}

.demo-film-column .demo-tour-card .card-title {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #084c64;
}

.demo-film-column .card-summary {
  font-size: 0.62rem;
  line-height: 1.35;
  color: #2f4a56;
  margin: 0.2rem 0 0.3rem;
  -webkit-line-clamp: 2;
}

.demo-film-column .prio-badge,
.demo-film-column .ref-badge {
  font-size: 0.52rem;
  padding: 0.08rem 0.28rem;
}

.demo-film-column .card-edited {
  font-size: 0.55rem;
  color: #2f4a56;
  margin-top: 0.25rem;
}

.demo-film-column .demo-tour-card .avatar {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.55rem;
}

.demo-film-column--add {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
  background: transparent;
  border-style: dashed;
}

.demo-film-add-card {
  margin-top: 0.35rem;
  width: 100%;
  font-size: 0.68rem;
}

.demo-vault-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(8, 76, 100, 0.12);
  background: rgba(8, 76, 100, 0.04);
  font-size: 0.78rem;
}

.demo-vault-mask {
  font-family: monospace;
  letter-spacing: 0.08em;
  color: var(--muted, #516f7e);
}

/* Film : palette claire figée (lisible en thème sombre) */
.demo-film-page {
  --color-ink: #084c64;
  --text: #084c64;
  --muted: #2f4a56;
  --bg: #d4e4ea;
  --surface: #ffffff;
  --surface2: #eef5f7;
  --border: #7a9aa6;
  --border-strong: #5f8492;
  --accent: #2f858e;
  --accent-soft: rgba(8, 76, 100, 0.1);
  --accent-soft-solid: #d4ecee;
  color: #084c64;
  background: #d4e4ea;
}

.demo-film-wrap {
  background: #c5d8e0;
}

.demo-film-section,
.demo-film-tile,
.demo-film-modal,
.demo-film-modal__footer,
.demo-mock,
.demo-film-column {
  background: #fff;
  color: #084c64;
}

.demo-film-page-title,
.demo-film-section h3,
.demo-film-breadcrumb__item.is-current,
.demo-film-modal__header h2,
.demo-film-column .column-header h2,
.demo-film-column .demo-tour-card .card-title,
.demo-film-tile strong,
.demo-mock .form-input {
  color: #084c64;
}

.demo-film-empty,
.demo-film-kicker,
.demo-film-breadcrumb,
.demo-film-modal__body label,
.demo-film-modal-lead,
.demo-mock .form-group label,
.demo-mock-context,
.demo-vault-mask,
.demo-film-board-tools .vault-card-tile__body span {
  color: #2f4a56;
}

.demo-mock .form-input,
.demo-film-page .form-group input,
.demo-film-page .form-group textarea,
.demo-film-page .form-input,
.demo-film-modal__body .form-input,
.demo-film-modal__body input,
.demo-film-modal__body textarea,
.demo-film-modal__body select {
  background: #fff;
  color: #084c64;
  border-color: #7a9aa6;
}

.demo-field-active {
  background: #fff !important;
  color: #084c64 !important;
}

.demo-film-page .btn-ghost {
  background: #eef5f7;
  color: #084c64;
  border: 1px solid #7a9aa6;
}

.demo-film-page .btn-primary {
  background: #2f858e;
  color: #fff;
}

.demo-mock-success {
  color: #14532d;
}

.demo-film-nav.layout-nav h1,
.demo-film-nav.layout-nav .nav-user-label {
  color: #fff;
}
