/* Brand Motion Identity — D impulsion (LottieFiles Motion Design Skill)
   Archetype : Corporate + Premium
   Signature easing : cubic-bezier(0.2, 0, 0, 1) (MD3 snappy)
   Emphasized entrance : cubic-bezier(0.05, 0.7, 0.1, 1)
   Ambient loop : cubic-bezier(0.4, 0, 0.2, 1)
*/
:root {
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-ambient: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-quick: 150ms;
  --dur-std: 320ms;
  --dur-slow: 520ms;
}

/* Ambient cobalt breathing on OS Agentique card */
.friction-card--after,
.stage {
  position: relative;
}

.friction-card--after::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 82% 14%, rgba(33, 106, 254, 0.22), transparent 52%);
  opacity: 0.65;
  animation: ambientBreath 6s var(--ease-ambient) infinite;
}

.friction-card--after > * {
  position: relative;
  z-index: 1;
}

@keyframes ambientBreath {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.015); }
}

/* Top header bar inside motion cards */
.motion-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 220ms var(--ease-snappy), border-color 220ms var(--ease-snappy);
}

.live-clock.is-late {
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.4);
}

:root[data-theme='dark'] .live-clock.is-late {
  color: #fda4af;
}

.replay-mini {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #93b8ff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color var(--dur-quick) var(--ease-snappy), transform var(--dur-quick) var(--ease-snappy);
}

.replay-mini:hover {
  background: rgba(33, 106, 254, 0.22);
}

.replay-mini:active {
  transform: scale(0.95);
}

/* Left card : Live overload piling up */
[data-overload-demo] .task-row {
  opacity: 0.22;
  transform: translateY(-6px) scale(0.985);
  transition:
    opacity 320ms var(--ease-emphasized),
    transform 320ms var(--ease-emphasized),
    border-color 220ms var(--ease-snappy),
    box-shadow 220ms var(--ease-snappy);
}

[data-overload-demo] .task-row.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-overload-demo] .task-row.is-ping {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.task-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.task-row__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.charge-meter {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.charge-meter__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.charge-meter__head strong {
  color: #b42318;
}

:root[data-theme='dark'] .charge-meter__head strong {
  color: #fda4af;
}

.charge-meter__track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}

.charge-meter__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  transition: width 460ms var(--ease-emphasized);
}

[data-overload-demo].is-saturated .charge-meter {
  animation: firmShake 360ms var(--ease-snappy);
}

/* Right card : Live Agent Execution Theater */
.live-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.live-send-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(33, 106, 254, 0.2);
  color: #93b8ff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms var(--ease-snappy), transform 200ms var(--ease-snappy);
}

.live-send-pill.is-sent {
  opacity: 1;
  transform: scale(1);
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #7ca8ff;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blinkCursor 0.8s steps(2, start) infinite;
}

.typing-cursor.is-done {
  display: none;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Live connector pills */
.live-connectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  opacity: 0.45;
  transform: translateY(4px);
  transition: all 240ms var(--ease-snappy);
}

.conn-pill.is-working {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(33, 106, 254, 0.55);
  background: rgba(33, 106, 254, 0.14);
  color: #dbeafe;
}

.conn-pill.is-done {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.conn-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.conn-pill.is-working .conn-pill__dot {
  background: #60a5fa;
  animation: pulseDot 1.1s var(--ease-ambient) infinite;
}

.conn-pill.is-done .conn-pill__dot {
  background: #22c55e;
  animation: none;
}

/* Progress rail */
.live-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.live-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #216afe, #7ca8ff);
  transition: width 420ms var(--ease-emphasized), background-color 260ms var(--ease-snappy);
}

[data-agent-live].is-resolved .live-progress__bar {
  background: #22c55e;
}

[data-agent-live].is-blocked .live-progress__bar {
  background: #f59e0b;
}

.motion-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.motion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(33, 106, 254, 0.6);
  animation: pulseDot 1.8s var(--ease-ambient) infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(33, 106, 254, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(33, 106, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 106, 254, 0); }
}

[data-agent-live].is-resolved .motion-dot {
  animation: none;
  background: #22c55e;
}

[data-agent-live].is-blocked .motion-dot {
  animation: none;
  background: #f59e0b;
}

/* Streaming deliverable rows */
.live-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.live-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 280ms var(--ease-emphasized),
    transform 280ms var(--ease-emphasized),
    border-color 220ms var(--ease-snappy),
    background-color 220ms var(--ease-snappy);
}

.live-step.is-visible {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(255, 255, 255, 0.07);
}

.live-step__icon {
  width: 15px;
  height: 15px;
  color: #60a5fa;
  flex-shrink: 0;
}

.live-step.is-visible .live-step__icon path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 320ms var(--ease-emphasized) 80ms forwards;
}

/* Mini draft preview card that slides open */
.draft-preview {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(33, 106, 254, 0.09);
  border: 1px solid rgba(124, 168, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #cfe0ff;
  display: grid;
  gap: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease-emphasized), transform 300ms var(--ease-emphasized);
}

.draft-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.draft-preview span {
  color: var(--muted-dark);
}

/* Approval bar highlight when ready */
.mock-chat__approval {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 280ms var(--ease-snappy), border-color 280ms var(--ease-snappy);
}

.mock-chat__approval.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.mock-chat__approval.is-ready .mock-btn--ok {
  box-shadow: 0 0 0 0 rgba(33, 106, 254, 0.65);
  animation: pulseDot 2s var(--ease-ambient) infinite;
}

/* Interactive approval buttons */
.mock-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    transform var(--dur-quick) var(--ease-snappy),
    background-color var(--dur-quick) var(--ease-snappy),
    box-shadow var(--dur-quick) var(--ease-snappy);
}

.mock-btn:hover {
  transform: translateY(-1px);
}

.mock-btn:active {
  transform: scale(0.95);
}

.mock-btn--ok:hover {
  background: #1458e6;
}

.mock-btn--no:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mock-btn--replay {
  background: transparent;
  color: #93b8ff;
  border: 1px solid rgba(147, 184, 255, 0.35);
  padding: 4px 10px;
}

.mock-btn--replay:hover {
  background: rgba(33, 106, 254, 0.16);
}

/* Feedback banner with SVG checkmark draw-in */
.approval-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  animation: feedbackPop 260ms var(--ease-emphasized);
}

.approval-feedback--ok {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
}

.approval-feedback--no {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
  animation: firmShake 340ms var(--ease-snappy);
}

.approval-feedback__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check-svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 340ms var(--ease-emphasized) 60ms forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes feedbackPop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes firmShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  55% { transform: translateX(5px); }
  80% { transform: translateX(-3px); }
}

/* ============================================================
   LIVE MOTION THEATERS ACROSS THE SITE (6 ZONES)
   ============================================================ */

/* Shared live theater box inside dark bands */
.live-theater {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--ink-surface);
  border: 1px solid rgba(33, 106, 254, 0.35);
  display: grid;
  gap: 16px;
}

.live-theater__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-theater__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93b8ff;
}

/* Zone 1 : Cadrage live progress bar on active step */
.cadrage-step {
  position: relative;
  overflow: hidden;
}

.cadrage-step__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: var(--blue);
  transition: width 120ms linear;
}

.blueprint__item.is-done .blueprint__label::after {
  content: ' · ✓ Cadré';
  color: #4ade80;
}

/* Zone 2 : Architecture 3-layer live flow */
.arch-col.is-flow-active {
  border-color: rgba(33, 106, 254, 0.7);
  box-shadow: 0 0 0 1px rgba(33, 106, 254, 0.35), 0 16px 36px -20px rgba(33, 106, 254, 0.5);
  transition: border-color 280ms var(--ease-snappy), box-shadow 280ms var(--ease-snappy);
}

.arch-node {
  transition: border-color 260ms var(--ease-snappy), background-color 260ms var(--ease-snappy), transform 260ms var(--ease-emphasized);
}

.arch-node.is-flow-pulse {
  border-color: rgba(124, 168, 255, 0.65);
  background: rgba(33, 106, 254, 0.16);
  transform: translateX(3px);
}

.arch-arrow {
  transition: color 240ms var(--ease-snappy), transform 240ms var(--ease-emphasized);
}

.arch-arrow.is-flow-pulse {
  color: #60a5fa;
  transform: scale(1.22);
}

/* Zone 3 : SEO / GEO AI Search live simulator */
.geo-sim-query {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  font-size: 14.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.geo-sim-query svg {
  width: 17px;
  height: 17px;
  color: #7ca8ff;
  flex-shrink: 0;
}

.geo-sim-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.geo-check {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: all 260ms var(--ease-snappy);
}

.geo-check.is-working {
  opacity: 1;
  border-color: rgba(33, 106, 254, 0.55);
  background: rgba(33, 106, 254, 0.14);
  color: #dbeafe;
}

.geo-check.is-done {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.geo-sim-answer {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(33, 106, 254, 0.1);
  border: 1px solid rgba(124, 168, 255, 0.3);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-emphasized), transform 320ms var(--ease-emphasized);
}

.geo-sim-answer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.geo-sim-answer small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
}

/* Zone 4 : Monthly content pipeline (5 posts + 1 video) */
.pipeline-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pipe-slot {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  display: grid;
  gap: 6px;
  opacity: 0.4;
  transform: translateY(6px);
  transition: all 260ms var(--ease-emphasized);
}

.pipe-slot.is-working {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(33, 106, 254, 0.6);
  background: rgba(33, 106, 254, 0.14);
}

.pipe-slot.is-ready {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(124, 168, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.pipe-slot.is-published {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.pipe-slot strong {
  font-size: 13px;
  color: #fff;
}

.pipe-slot span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-dark);
}

.pipe-slot.is-published span {
  color: #86efac;
}

.theater-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--muted-dark);
}

/* Zone 5 : Ads bi-weekly human control */
.ads-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ads-node {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  display: grid;
  gap: 6px;
  opacity: 0.42;
  transform: translateY(6px);
  transition: all 280ms var(--ease-emphasized);
}

.ads-node.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(33, 106, 254, 0.55);
  background: rgba(33, 106, 254, 0.12);
}

.ads-node.is-done {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.ads-node span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #93b8ff;
}

.ads-node strong {
  font-size: 14px;
  color: #fff;
}

.ads-node small {
  font-size: 12.5px;
  color: var(--muted-dark);
}

/* Zone 6 : Wave stagger reveal for 6 modules */
[data-wave-reveal] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms var(--ease-emphasized), transform 320ms var(--ease-emphasized), border-color 180ms var(--ease-snappy);
}

[data-wave-reveal].is-inview > * {
  opacity: 1;
  transform: translateY(0);
}

[data-wave-reveal].is-inview > *:nth-child(1) { transition-delay: 0ms; }
[data-wave-reveal].is-inview > *:nth-child(2) { transition-delay: 65ms; }
[data-wave-reveal].is-inview > *:nth-child(3) { transition-delay: 130ms; }
[data-wave-reveal].is-inview > *:nth-child(4) { transition-delay: 195ms; }
[data-wave-reveal].is-inview > *:nth-child(5) { transition-delay: 260ms; }
[data-wave-reveal].is-inview > *:nth-child(6) { transition-delay: 325ms; }

@media (max-width: 980px) {
  .geo-sim-checks,
  .ads-checks {
    grid-template-columns: 1fr;
  }

  .pipeline-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .friction-card--after::before,
  .motion-dot,
  .typing-cursor,
  .conn-pill.is-working .conn-pill__dot,
  .mock-chat__approval.is-ready .mock-btn--ok,
  .check-svg path,
  .approval-feedback,
  [data-overload-demo].is-saturated .charge-meter {
    animation: none !important;
  }

  [data-overload-demo] .task-row,
  .conn-pill,
  .live-step,
  .draft-preview,
  .mock-chat__approval,
  .geo-check,
  .geo-sim-answer,
  .pipe-slot,
  .ads-node,
  [data-wave-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .charge-meter__fill,
  .live-progress__bar {
    width: 100% !important;
  }

  .check-svg path,
  .live-step__icon path {
    stroke-dashoffset: 0 !important;
  }
}
