/* ============================================
   SOLERIA — Agent Sections (Detailed)
   ============================================ */

.agents-intro { padding: var(--section-y) 0 40px; }

.agent-section {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.agent-section.alt { background: var(--bg-3); }
.agent-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 240px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.45), transparent);
}

.agent-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.agent-section.reverse .agent-mockup-wrap { order: -1; }

/* Agent 02 : video + animation inline dans la colonne texte */
#agent-02 .agent-row { grid-template-columns: 1fr; }
.landing-ka-split--inline { margin: 24px 0 32px; }

@media (max-width: 980px) {
  .agent-row { grid-template-columns: 1fr; gap: 48px; }
  .agent-section.reverse .agent-mockup-wrap { order: 0; }
  .agent-section { padding: 72px 0; }
}

/* ---- Agent 01 : mockup ancré en haut à droite, le texte s'enroule en dessous ---- */
/* Agent 01 utilise la grille standard 1fr/1fr comme les autres agents */

/* ---- Content ---- */
.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.agent-emoji {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,91,255,0.18), rgba(167,139,250,0.18));
  border: 1px solid rgba(99,91,255,0.3);
  border-radius: 50%;
  font-size: 16px;
}
.agent-id {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-section-title {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 28px;
  color: #1a1a2e;
  text-wrap: balance;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .agent-section-title {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.agent-section-intro {
  position: relative;
  margin: -14px 0 26px;
  padding-left: 14px;
  max-width: 560px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--text, #1a1a1a);
  letter-spacing: -0.005em;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, #6366f1 0%, #38bdf8 100%) 1;
}
.agent-section-intro--full {
  max-width: 100%;
  margin: -8px 0 8px;
  font-size: clamp(16px, 1.15vw, 19px);
}
.agent-header-full {
  margin-bottom: 36px;
}
.agent-header-full .agent-section-title { margin-bottom: 18px; }
.agent-section-intro strong {
  font-weight: 600;
  background: linear-gradient(90deg, #4f46e5, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agent-quote {
  position: relative;
  padding: 8px 0 8px 22px;
  margin-bottom: 36px;
  border-left: 3px solid var(--indigo);
  font-size: clamp(18px, 1.5vw, 22px);
  font-style: italic;
  font-family: 'Instrument Serif', 'Geist', serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.35;
  max-width: 520px;
}

.block-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.agent-features-block { margin-bottom: 32px; }
.agent-features {
  list-style: none;
  padding: 0;
}
.agent-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.agent-features li:last-child { border-bottom: 0; }
.agent-features li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat,
    linear-gradient(135deg, #635BFF, #A78BFA);
  box-shadow: 0 4px 10px rgba(99,91,255,0.3);
}

.agent-examples-block { margin-bottom: 36px; }
.examples-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ex-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.ex-row:hover { border-color: rgba(99,91,255,0.3); transform: translateX(2px); }
.ex-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(99,91,255,0.1), rgba(167,139,250,0.1));
  border: 1px solid rgba(99,91,255,0.25);
  color: var(--indigo);
  border-radius: 100px;
  flex-shrink: 0;
  min-width: 110px;
  text-align: center;
}
.ex-desc { color: var(--text-2); }

.agent-roi {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  background: linear-gradient(135deg, rgba(99,91,255,0.06), rgba(167,139,250,0.06));
  border: 1px solid rgba(99,91,255,0.22);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(99,91,255,0.1), 0 0 40px rgba(167,139,250,0.06);
  margin-bottom: 32px;
}
.roi-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #635BFF, #A78BFA);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(99,91,255,0.45);
}
.roi-icon svg { width: 22px; height: 22px; color: white; }
.roi-text { display: flex; flex-direction: column; }
.roi-num {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #635BFF, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.roi-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.agent-cta { margin-top: 8px; }

.agent-pitch-line {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 540px;
  letter-spacing: -0.005em;
}
.agent-pitch-line strong {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(135deg, #635BFF, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Rich descriptive block (under pitch line) */
.agent-rich {
  margin-bottom: 28px;
  max-width: 560px;
}
.agent-rich-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 18px;
}
.agent-rich-lead strong {
  color: var(--text);
  font-weight: 600;
}
.agent-rich-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-rich-list li {
  position: relative;
  padding: 12px 16px 12px 38px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.agent-rich-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat,
    linear-gradient(135deg, #635BFF, #A78BFA);
  box-shadow: 0 3px 8px rgba(99, 91, 255, 0.25);
}
.agent-rich-list li strong {
  color: var(--text);
  font-weight: 600;
}
.agent-rich-out {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.06), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 12px;
}
.agent-rich-out strong {
  font-weight: 700;
  background: linear-gradient(135deg, #635BFF, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agent-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-film {
  position: relative;
  overflow: hidden;
}
.btn-film::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99,91,255,0.18), transparent);
  transform: translateX(-100%);
  animation: filmShine 3s 1s infinite;
}
@keyframes filmShine {
  to { transform: translateX(100%); }
}

/* ============================================
   MOCKUP — shared
   ============================================ */
.agent-mockup-wrap { position: relative; }
.mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 620px;
  background: linear-gradient(180deg, #14141F, #0A0A12);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.55),
    0 0 80px rgba(139,92,246,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(139,92,246,0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(6,182,212,0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
}
.mockup-inner {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Mockup VIDEO embed (Agent 01)
   ============================================ */
.mockup-video {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.mockup-video::before,
.mockup-video::after { display: none; }
.mockup-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050508;
  display: block;
  z-index: 1;
}
.mockup-fs {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(20, 20, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
}
.mockup-fs:hover {
  background: rgba(30, 30, 45, 0.95);
  color: white;
  transform: scale(1.08);
}
.mockup-label {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 5;
  padding: 5px 11px;
  background: rgba(20, 20, 31, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
}

/* ============================================
   PHONE MOCKUP (Agent 03 — WhatsApp)
   ============================================ */
.phone-stage {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  min-height: 760px;
  max-height: none;
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 30px 16px;
}

/* Keep the phone visible while user reads the long features column */
#agent-03 .agent-row { align-items: start; }
#agent-03 .agent-mockup-wrap {
  position: sticky;
  top: 90px;
  align-self: start;
}
@media (max-width: 980px) {
  #agent-03 .agent-mockup-wrap { position: static; }
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 15% 5% 5% 5%;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(99,91,255,0.22), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(16,185,129,0.12), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}
.phone-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 75%);
  z-index: 0;
}

.phone {
  position: relative;
  width: 330px;
  height: 680px;
  background:
    linear-gradient(135deg, #3a3a40 0%, #1a1a20 50%, #2c2c32 100%);
  border-radius: 48px;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.18),
    -45px 70px 90px rgba(99, 91, 255, 0.22),
    -10px 30px 60px rgba(20, 20, 30, 0.32),
    0 8px 28px rgba(0, 0, 0, 0.28);
  transform: perspective(1600px) rotateY(-13deg) rotateX(6deg) rotateZ(-2deg);
  z-index: 1;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0B141A;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-statusbar {
  height: 44px;
  padding: 16px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #E9EDEF;
  flex-shrink: 0;
  font-family: 'Geist', sans-serif;
}
.ps-icons { display: flex; align-items: center; gap: 4px; color: #E9EDEF; }
.ps-icons svg { display: block; }
.ps-sig { width: 16px; height: 11px; }
.ps-wifi { width: 15px; height: 11px; }
.ps-bat { width: 24px; height: 11px; }

.phone-btn {
  position: absolute;
  background: linear-gradient(to bottom, #15151a, #2a2a30);
  z-index: 0;
}
.phone-btn-action {
  left: -2.5px; top: 90px;
  width: 3px; height: 26px;
  border-radius: 1.5px 0 0 1.5px;
}
.phone-btn-vol-up {
  left: -2.5px; top: 132px;
  width: 3px; height: 46px;
  border-radius: 1.5px 0 0 1.5px;
}
.phone-btn-vol-down {
  left: -2.5px; top: 188px;
  width: 3px; height: 46px;
  border-radius: 1.5px 0 0 1.5px;
}
.phone-btn-power {
  right: -2.5px; top: 160px;
  width: 3px; height: 62px;
  border-radius: 0 1.5px 1.5px 0;
}

.phone-home-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: #E9EDEF;
  border-radius: 100px;
  opacity: 0.9;
  z-index: 10;
}

/* WA inside the phone — override sizes */
.phone-screen .mk-wa {
  flex: 1;
  background: #0B141A;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  margin: 0;
}
.phone-screen .mk-wa-head {
  padding: 8px 14px;
  background: #1F2C34;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mk-wa-back {
  color: #00A884;
  font-size: 20px;
  font-weight: 600;
  margin-right: -2px;
}
.phone-screen .mk-wa-avatar { width: 30px; height: 30px; font-size: 12px; }
.phone-screen .mk-wa-name { font-size: 12px; }
.phone-screen .mk-wa-status { font-size: 12px; }
.mk-wa-actions {
  display: flex; gap: 14px;
  margin-left: auto;
  color: #E9EDEF;
}
.mk-wa-actions svg { width: 18px; height: 18px; }

.phone-screen .mk-wa-body {
  flex: 1;
  padding: 0;
  position: relative;
  background-color: #0B141A;
  background-image:
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 14px 14px;
  overflow: hidden;
  min-height: 0;
}

/* Chaque scène = 1 conversation indépendante, empilée en absolu */
.wa-scene {
  position: absolute;
  inset: 0;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  opacity: 0;
}
.wa-scene::-webkit-scrollbar { display: none; }
.wa-scene.s1 { animation: sceneS1 60s infinite both; }
.wa-scene.s2 { animation: sceneS2 60s infinite both; }
.wa-scene.s3 { animation: sceneS3 60s infinite both; }
.wa-scene.s4 { animation: sceneS4 60s infinite both; }
@keyframes sceneS1 {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes sceneS2 {
  0%, 24% { opacity: 0; }
  25%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes sceneS3 {
  0%, 49% { opacity: 0; }
  50%, 74% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes sceneS4 {
  0%, 74% { opacity: 0; }
  75%, 100% { opacity: 1; }
}

.wa-divider {
  align-self: center;
  padding: 3px 10px;
  background: rgba(31, 44, 52, 0.85);
  border-radius: 8px;
  font-size: 12px;
  color: #8696A0;
  font-weight: 500;
  margin: 4px 0 6px;
  flex-shrink: 0;
}

.phone-screen .mk-wa-msg {
  max-width: 78%;
  padding: 6px 9px 4px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
  position: relative;
  letter-spacing: -0.005em;
  flex-shrink: 0;
}
.phone-screen .mk-wa-msg time {
  display: block;
  font-size: 12px;
  margin-top: 1px;
}

/* Override one-shot msgIn animation for sequenced loop */
.phone-screen .mk-wa-body .seq {
  animation-delay: 0s;
  animation-fill-mode: both;
}

/* Typing bubble */
.mk-wa-typing {
  align-self: flex-start;
  padding: 8px 12px;
  background: #1F2C34;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  display: flex;
  gap: 3px;
  max-width: 50px;
}
.mk-wa-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8696A0;
  animation: tdot 1.4s infinite;
}
.mk-wa-typing span:nth-child(2) { animation-delay: 0.18s; }
.mk-wa-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes tdot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================
   Loop sequence — 30s cycle (2 scénarios)
   Scène 1 (Immo)  : 0%  → 48%  (puis pause)
   Scène 2 (Dent)  : 50% → 100% (puis pause)
   Messages s'empilent depuis le haut via max-height
   ============================================ */
.mk-wa-msg.seq, .mk-wa-typing.seq {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
  animation-duration: 60s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

/* Nom dans l'en-tête : swap à 49% */
.mk-wa-name-wrap { position: relative; display: inline-block; min-width: 1px; }
.mk-wa-name-wrap .mk-wa-name { display: block; }
.mk-wa-name-wrap .name-dent,
.mk-wa-name-wrap .name-resto,
.mk-wa-name-wrap .name-artisan {
  position: absolute; inset: 0;
  opacity: 0;
  white-space: nowrap;
}
.mk-wa-name-wrap .name-immo    { animation: nameImmo 60s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.mk-wa-name-wrap .name-dent    { animation: nameDent 60s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.mk-wa-name-wrap .name-resto   { animation: nameResto 60s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.mk-wa-name-wrap .name-artisan { animation: nameArtisan 60s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes nameImmo    { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes nameDent    { 0%, 24% { opacity: 0; } 25%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes nameResto   { 0%, 49% { opacity: 0; } 50%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes nameArtisan { 0%, 74% { opacity: 0; } 75%, 100% { opacity: 1; } }

/* Scène 1 — Immobilier */
.mk-wa-msg.m1   { animation-name: seqM1; }
.mk-wa-typing.t1 { animation-name: seqT1; }
.mk-wa-msg.m2   { animation-name: seqM2; }
.mk-wa-msg.m3   { animation-name: seqM3; }
.mk-wa-typing.t2 { animation-name: seqT2; }
.mk-wa-msg.m4   { animation-name: seqM4; }
.mk-wa-msg.m5   { animation-name: seqM5; }
.mk-wa-typing.t3 { animation-name: seqT3; }
.mk-wa-msg.m6   { animation-name: seqM6; }

/* Scène 2 — Cabinet dentaire */
.mk-wa-msg.m7   { animation-name: seqM7; }
.mk-wa-typing.t4 { animation-name: seqT4; }
.mk-wa-msg.m8   { animation-name: seqM8; }
.mk-wa-msg.m9   { animation-name: seqM9; }
.mk-wa-msg.m10  { animation-name: seqM10; }
.mk-wa-typing.t5 { animation-name: seqT5; }
.mk-wa-msg.m11  { animation-name: seqM11; }
.mk-wa-msg.m12  { animation-name: seqM12; }

/* Helpers — cycle 60s, chaque scène = 25% (15s)
   S1 0-24% | S2 25-49% | S3 50-74% | S4 75-100% */
/* Scène 1 — Immo */
@keyframes seqM1  { 0%,1%   {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 2%,100% {opacity:1;max-height:100px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT1  { 0%,3%   {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 4% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 5%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM2  { 0%,5%   {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 6.5%,100% {opacity:1;max-height:110px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM3  { 0%,7.5% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 9%,100% {opacity:1;max-height:80px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT2  { 0%,10%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 11% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 12%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM4  { 0%,12%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 13.5%,100% {opacity:1;max-height:90px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM5  { 0%,15%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 16.5%,100% {opacity:1;max-height:80px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT3  { 0%,17.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 18.5% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 19.5%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM6  { 0%,19.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 21%,100% {opacity:1;max-height:90px;padding-top:6px;padding-bottom:4px;} }

/* Scène 2 — Dentiste */
@keyframes seqM7  { 0%,26%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 27.5%,100% {opacity:1;max-height:60px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT4  { 0%,28.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 29.5% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 30.5%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM8  { 0%,30.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 32%,100% {opacity:1;max-height:70px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM9  { 0%,33.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 35%,100% {opacity:1;max-height:130px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM10 { 0%,36.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 38%,100% {opacity:1;max-height:70px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT5  { 0%,39%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 40%,43% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 44%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM11 { 0%,44%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 45.5%,100% {opacity:1;max-height:80px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM12 { 0%,46.5%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 48%,100% {opacity:1;max-height:80px;padding-top:6px;padding-bottom:4px;} }

/* Scène 3 — Restaurant La Table de Sacha (50-74%) */
.mk-wa-msg.m13 { animation-name: seqM13; }
.mk-wa-typing.t6 { animation-name: seqT6; }
.mk-wa-msg.m14 { animation-name: seqM14; }
.mk-wa-msg.m15 { animation-name: seqM15; }
.mk-wa-typing.t7 { animation-name: seqT7; }
.mk-wa-msg.m16 { animation-name: seqM16; }
.mk-wa-msg.m17 { animation-name: seqM17; }
.mk-wa-msg.m18 { animation-name: seqM18; }
@keyframes seqM13 { 0%,51%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 52.5%,100% {opacity:1;max-height:90px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT6  { 0%,54%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 55% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 56%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM14 { 0%,56%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 57.5%,100% {opacity:1;max-height:130px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM15 { 0%,60%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 61.5%,100% {opacity:1;max-height:70px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT7  { 0%,63%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 64% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 65%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM16 { 0%,65%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 66.5%,100% {opacity:1;max-height:100px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM17 { 0%,68%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 69.5%,100% {opacity:1;max-height:60px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM18 { 0%,71%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 73%,100% {opacity:1;max-height:200px;padding-top:8px;padding-bottom:6px;} }

/* Scène 4 — CoolFix Climatisation (75-100%) */
.mk-wa-msg.m19 { animation-name: seqM19; }
.mk-wa-typing.t8 { animation-name: seqT8; }
.mk-wa-msg.m20 { animation-name: seqM20; }
.mk-wa-msg.m21 { animation-name: seqM21; }
.mk-wa-typing.t9 { animation-name: seqT9; }
.mk-wa-msg.m22 { animation-name: seqM22; }
.mk-wa-msg.m23 { animation-name: seqM23; }
.mk-wa-msg.m24 { animation-name: seqM24; }
@keyframes seqM19 { 0%,76%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 77.5%,100% {opacity:1;max-height:80px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT8  { 0%,79%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 80% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 81%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM20 { 0%,81%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 82.5%,100% {opacity:1;max-height:140px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM21 { 0%,85%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 86.5%,100% {opacity:1;max-height:70px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqT9  { 0%,88%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 89% {opacity:1;max-height:24px;padding-top:8px;padding-bottom:8px;} 90%,100% {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} }
@keyframes seqM22 { 0%,90%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 91.5%,100% {opacity:1;max-height:110px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM23 { 0%,93%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 94.5%,100% {opacity:1;max-height:50px;padding-top:6px;padding-bottom:4px;} }
@keyframes seqM24 { 0%,96%  {opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;} 98%,100% {opacity:1;max-height:200px;padding-top:8px;padding-bottom:6px;} }

/* Carte récap (bulle stylisée) */
.phone-screen .mk-wa-msg.recap {
  background: linear-gradient(180deg, #0B5C46 0%, #075E54 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 86%;
  padding: 8px 10px 6px;
  border-radius: 10px;
}
.phone-screen .mk-wa-msg.recap strong {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #DCF8C6;
}
.phone-screen .mk-wa-msg.recap span {
  font-size: 12px;
  line-height: 1.4;
  color: #E9EDEF;
}

/* Input bar */
.mk-wa-input {
  padding: 8px 8px;
  background: #1F2C34;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wai-icn {
  font-size: 14px;
  opacity: 0.65;
  flex-shrink: 0;
  filter: grayscale(0.2);
}
.wai-mic {
  width: 28px; height: 28px;
  margin-left: auto;
  background: #00A884;
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 1;
}
.wai-txt {
  flex: 1;
  padding: 7px 10px;
  background: #2A3942;
  border-radius: 100px;
  font-size: 12px;
  color: #8696A0;
}

/* Smaller mockup wrap for phone (height auto, no rectangular mockup card) */
.phone-stage + * { display: none; }

@media (max-width: 560px) {
  .phone { width: 240px; height: 490px; padding: 8px; border-radius: 42px; }
  .phone-screen { border-radius: 34px; }
  .phone-stage { min-height: 560px; padding: 20px 10px; }
}

/* ============================================
   AGENT 04 — Tunnel de documents (Cerveau IA)
   ============================================ */
.mockup-tunnel { padding: 0; overflow: hidden; }
.mockup-tunnel::before, .mockup-tunnel::after { display: none; }
.mockup-tunnel .mockup-inner { display: none; }

.tunnel-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #1a1530 0%, #0a0a14 55%, #050508 100%);
  overflow: hidden;
  perspective: 700px;
  perspective-origin: 50% 50%;
}

/* Subtle radial glow center */
.tunnel-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(124,58,237,0.18) 0%, transparent 50%);
  pointer-events: none;
}

/* Rotating light rays */
.tunnel-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(167,139,250,0.07) 4deg, transparent 12deg,
    transparent 75deg, rgba(99,102,241,0.05) 80deg, transparent 88deg,
    transparent 150deg, rgba(124,58,237,0.06) 156deg, transparent 164deg,
    transparent 225deg, rgba(99,102,241,0.04) 232deg, transparent 240deg,
    transparent 300deg, rgba(167,139,250,0.05) 308deg, transparent 316deg
  );
  animation: rayRotate 28s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 5%, transparent 70%);
}
@keyframes rayRotate { to { transform: rotate(360deg); } }

/* Documents flying through tunnel */
.tunnel-docs {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.td {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 70px;
  margin: -35px 0 0 -26px;
  background: linear-gradient(180deg, #FAFAFC 0%, #E5E5EF 100%);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.25),
    0 4px 12px rgba(0,0,0,0.6),
    0 0 20px rgba(124,58,237,0.3);
  opacity: 0;
  transform-style: preserve-3d;
  animation: tdFly 12s infinite linear;
}
.td::before {
  /* corner fold */
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: linear-gradient(225deg, transparent 50%, rgba(160,160,180,0.6) 50%);
  border-radius: 0 4px 0 0;
}
.td::after {
  /* text lines */
  content: '';
  position: absolute;
  inset: 16px 7px 7px 7px;
  background:
    linear-gradient(rgba(60,60,90,0.45) 1px, transparent 1px) 0 0/100% 7px;
  opacity: 0.7;
}

@keyframes tdFly {
  0%   { transform: translate3d(var(--x, 0), var(--y, 0), -1800px) rotateZ(var(--rz, 0deg)); opacity: 0; }
  3%   { opacity: 0.4; }
  12%  { opacity: 1; }
  20%  { transform: translate3d(var(--xe, var(--x, 0)), var(--ye, var(--y, 0)), 600px) rotateZ(var(--rz, 0deg)); opacity: 1; }
  22%  { opacity: 0; }
  22.1%, 100% { opacity: 0; }
}

/* 24 documents — distinct positions & delays */
.td01 { animation-delay: 0s;    --x: -180px; --y: -120px; --xe: -260px; --ye: -200px; --rz: -8deg; }
.td02 { animation-delay: 0.25s; --x:  150px; --y:  -90px; --xe:  240px; --ye: -150px; --rz:  6deg; }
.td03 { animation-delay: 0.5s;  --x:  -80px; --y:  130px; --xe: -120px; --ye:  220px; --rz: -4deg; }
.td04 { animation-delay: 0.75s; --x:  190px; --y:   80px; --xe:  280px; --ye:  150px; --rz: 10deg; }
.td05 { animation-delay: 1s;    --x:  -50px; --y: -180px; --xe:  -80px; --ye: -260px; --rz:  3deg; }
.td06 { animation-delay: 1.25s; --x:   60px; --y:  170px; --xe:  100px; --ye:  240px; --rz: -7deg; }
.td07 { animation-delay: 1.5s;  --x: -210px; --y:   40px; --xe: -300px; --ye:   60px; --rz: 11deg; }
.td08 { animation-delay: 1.75s; --x:  220px; --y:  -40px; --xe:  310px; --ye:  -50px; --rz: -5deg; }
.td09 { animation-delay: 2s;    --x: -120px; --y:  -60px; --xe: -180px; --ye:  -90px; --rz:  2deg; }
.td10 { animation-delay: 2.25s; --x:  100px; --y:  120px; --xe:  150px; --ye:  180px; --rz: -9deg; }
.td11 { animation-delay: 2.5s;  --x: -160px; --y:  180px; --xe: -230px; --ye:  260px; --rz:  8deg; }
.td12 { animation-delay: 2.75s; --x:  170px; --y: -170px; --xe:  250px; --ye: -240px; --rz: -3deg; }
.td13 { animation-delay: 3s;    --x:  -30px; --y:   80px; --xe:  -50px; --ye:  120px; --rz:  4deg; }
.td14 { animation-delay: 3.25s; --x:   40px; --y:  -90px; --xe:   60px; --ye: -130px; --rz: -6deg; }
.td15 { animation-delay: 3.5s;  --x: -230px; --y: -150px; --xe: -320px; --ye: -220px; --rz:  9deg; }
.td16 { animation-delay: 3.75s; --x:  240px; --y:  140px; --xe:  340px; --ye:  200px; --rz: -2deg; }
.td17 { animation-delay: 4s;    --x: -100px; --y:    0px; --xe: -150px; --ye:    0px; --rz:  7deg; }
.td18 { animation-delay: 4.25s; --x:  110px; --y:    0px; --xe:  170px; --ye:    0px; --rz: -8deg; }
.td19 { animation-delay: 4.5s;  --x: -180px; --y:  -40px; --xe: -260px; --ye:  -60px; --rz:  5deg; }
.td20 { animation-delay: 4.75s; --x:  200px; --y:   60px; --xe:  290px; --ye:   90px; --rz: -4deg; }
.td21 { animation-delay: 5s;    --x:  -60px; --y: -150px; --xe:  -90px; --ye: -220px; --rz:  3deg; }
.td22 { animation-delay: 5.25s; --x:   70px; --y:  150px; --xe:  110px; --ye:  220px; --rz: -7deg; }
.td23 { animation-delay: 5.5s;  --x: -130px; --y:  100px; --xe: -190px; --ye:  150px; --rz: 10deg; }
.td24 { animation-delay: 5.75s; --x:  140px; --y: -120px; --xe:  210px; --ye: -180px; --rz: -5deg; }

/* Counter overlay */
.tunnel-counter {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(20, 20, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #C4B5FD;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: tcShow 12s infinite linear;
}
.tc-label { color: #A78BFA; }
.tc-num { color: white; font-weight: 600; font-feature-settings: 'tnum'; }
.tc-num i { color: #34D399; font-style: normal; }
@keyframes tcShow {
  0%, 4% { opacity: 0; transform: translateY(-6px); }
  8%, 64% { opacity: 1; transform: translateY(0); }
  72%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* Final reveal */
.tunnel-final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none;
  padding: 20px;
}
.tf-doc {
  width: 90%;
  max-width: 380px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #FAFAFC, #E5E5EF);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.5),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 100px rgba(124,58,237,0.6);
  color: #1a1a25;
  opacity: 0;
  transform: scale(0.3);
  filter: blur(25px);
  animation: tfReveal 12s infinite cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-family: 'Geist', sans-serif;
}
.tf-doc::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, transparent 50%, rgba(140,140,170,0.5) 50%);
  border-radius: 0 8px 0 0;
}

@keyframes tfReveal {
  0%, 64% { opacity: 0; transform: scale(0.3); filter: blur(30px); }
  73%     { opacity: 1; transform: scale(1.04); filter: blur(0); }
  76%, 92%{ opacity: 1; transform: scale(1); filter: blur(0); }
  100%    { opacity: 0; transform: scale(1.15); filter: blur(8px); }
}

.tf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tf-icn { font-size: 18px; }
.tf-head strong { flex: 1; font-size: 13px; color: #1a1a25; letter-spacing: -0.01em; }
.tf-page {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 2px 7px;
  background: rgba(124,58,237,0.12);
  color: var(--violet);
  border-radius: 100px;
}

.tf-body { display: flex; flex-direction: column; gap: 4px; }
.tf-line {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(40,40,55,0.55);
}
.tf-hl {
  position: relative;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(99,102,241,0.08));
  border-left: 3px solid var(--violet);
  border-radius: 0 6px 6px 0;
  color: #1a1a25 !important;
  font-weight: 500;
  margin: 4px 0;
  animation: hlGlow 2s 8.5s infinite ease-in-out;
  font-size: 12px;
}
@keyframes hlGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
  50%      { box-shadow: 0 0 20px 2px rgba(124,58,237,0.35); }
}

.tf-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: rgba(40,40,55,0.55);
}
.tf-time {
  padding: 3px 9px;
  background: linear-gradient(135deg, #34D399, #06B6D4);
  color: white;
  border-radius: 100px;
  font-weight: 600;
}

.mk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.mk-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mk-dot.live { background: #34D399; box-shadow: 0 0 8px #34D399; animation: pulse 2s infinite; }
.mk-dot.rec { background: #F87171; box-shadow: 0 0 8px #F87171; animation: pulse 1s infinite; }
.mk-title {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================
   01. INBOX — Secrétaire IA
   ============================================ */
.mk-inbox {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.mk-inbox-list {
  display: flex; flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.mk-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  transition: all 0.3s;
  animation: mailIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mk-mail:nth-child(1) { animation-delay: 0.05s; }
.mk-mail:nth-child(2) { animation-delay: 0.1s; }
.mk-mail:nth-child(3) { animation-delay: 0.15s; }
.mk-mail:nth-child(4) { animation-delay: 0.2s; }
.mk-mail:nth-child(5) { animation-delay: 0.25s; }
.mk-mail:nth-child(6) { animation-delay: 0.3s; }
@keyframes mailIn {
  from { transform: translateX(-12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.mk-mail-body { flex: 1; min-width: 0; }
.mk-mail-from { font-weight: 500; color: var(--text); font-size: 12px; }
.mk-mail-subj {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-mail-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.mk-mail-tag.urgent { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.3); }
.mk-mail-tag.rdv { background: rgba(99,102,241,0.15); color: #818CF8; border: 1px solid rgba(99,102,241,0.3); }
.mk-mail-tag.facture { background: rgba(245,158,11,0.15); color: #FBBF24; border: 1px solid rgba(245,158,11,0.3); }
.mk-mail-tag.spam { background: rgba(160,160,180,0.12); color: var(--text-3); border: 1px solid var(--border); }

.mk-inbox-cats {
  display: flex; flex-direction: column;
  gap: 8px;
}
.mk-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.mk-cat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.mk-cat.urgent::before { background: #F87171; }
.mk-cat.rdv::before { background: #818CF8; }
.mk-cat.facture::before { background: #FBBF24; }
.mk-cat.spam::before { background: rgba(160,160,180,0.4); }
.mk-cat .arrow {
  font-family: 'Geist Mono', monospace;
  color: var(--text-3);
}
.mk-cat-count {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  margin-left: 8px;
}

/* ============================================
   02. STANDARD IA — phone
   ============================================ */
.mk-call {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.mk-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 12px;
  color: #C4B5FD;
  margin-bottom: 8px;
}
.mk-call-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet), var(--cyan));
  position: relative;
  display: grid; place-items: center;
  box-shadow: 0 0 50px rgba(139,92,246,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.3s;
}
.mk-call-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 0 64px rgba(139,92,246,0.7);
}
.mk-call-avatar:active { transform: scale(0.98); }
.mk-call-avatar::before, .mk-call-avatar::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1.5px solid rgba(139,92,246,0.4);
  border-radius: 50%;
  animation: ripple 2.4s infinite ease-out;
  animation-play-state: paused;
  opacity: 0;
}
.mk-call-avatar::after { animation-delay: 1.2s; }
.mk-call.playing .mk-call-avatar::before,
.mk-call.playing .mk-call-avatar::after { animation-play-state: running; opacity: 1; }
@keyframes ripple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.mk-call-avatar svg { width: 36px; height: 36px; color: white; filter: drop-shadow(0 0 8px rgba(255,255,255,0.4)); }
.mk-icn-pause { display: none; }
.mk-call.playing .mk-icn-play { display: none; }
.mk-call.playing .mk-icn-pause { display: block; }

.mk-call-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }

.mk-audio-bar {
  width: 100%;
  max-width: 320px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.mk-audio-h {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  margin-bottom: 8px;
}
.mk-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
}
.mk-wave span {
  width: 3px;
  background: linear-gradient(180deg, #34D399, var(--violet));
  border-radius: 4px;
  animation: wave 1.4s infinite ease-in-out;
  animation-play-state: paused;
  box-shadow: 0 0 6px rgba(52,211,153,0.4);
  height: 4px;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.mk-call.playing .mk-wave span { animation-play-state: running; opacity: 1; }
@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: var(--h, 28px); }
}
.mk-audio-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}
.mk-audio-progress i {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #34D399, var(--violet));
  border-radius: 100px;
  transition: width 0.1s linear;
  display: block;
}

.mk-call-cta {
  margin-top: 6px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}
.mk-call-cta strong { color: #C4B5FD; }

.mk-call-hint {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-top: -8px;
  transition: opacity 0.3s;
}
.mk-call.playing .mk-call-hint { opacity: 0; }

/* ============================================
   03. WHATSAPP — Agent 03
   ============================================ */
.mk-wa {
  flex: 1;
  background: #0B141A;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: -4px;
  min-height: 0;
}
.mk-wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1F2C34;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.mk-wa-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: grid; place-items: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}
.mk-wa-info { flex: 1; }
.mk-wa-name { font-size: 13px; font-weight: 500; color: #E9EDEF; }
.mk-wa-status { font-size: 12px; color: #8696A0; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.mk-wa-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00A884; }
.mk-wa-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 14px 14px;
  min-height: 0;
}
.mk-wa-msg {
  max-width: 80%;
  padding: 7px 10px 5px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
  animation: msgIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mk-wa-msg.in {
  background: #1F2C34;
  color: #E9EDEF;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.mk-wa-msg.out {
  background: linear-gradient(135deg, #005C4B, #008069);
  color: #E9EDEF;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.mk-wa-msg time {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: right;
  margin-top: 2px;
  font-family: 'Geist Mono', monospace;
}
.mk-wa-msg.out time::after { content: ' ✓✓'; color: #53BDEB; }
.mk-wa-msg:nth-child(1) { animation-delay: 0.1s; }
.mk-wa-msg:nth-child(2) { animation-delay: 0.6s; }
.mk-wa-msg:nth-child(3) { animation-delay: 1.0s; }
.mk-wa-msg:nth-child(4) { animation-delay: 1.4s; }
.mk-wa-msg:nth-child(5) { animation-delay: 1.8s; }
.mk-wa-msg:nth-child(6) { animation-delay: 2.2s; }
@keyframes msgIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   04. COMPARE — Cerveau IA
   ============================================ */
.mk-compare {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 0;
}
.mk-cmp-col {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  min-height: 0;
}
.mk-cmp-col.bad {
  border-color: rgba(239,68,68,0.25);
  background: linear-gradient(180deg, rgba(239,68,68,0.05), transparent);
}
.mk-cmp-col.good {
  border-color: rgba(52,211,153,0.3);
  background: linear-gradient(180deg, rgba(52,211,153,0.05), transparent);
  box-shadow: 0 0 30px rgba(52,211,153,0.1);
}
.mk-cmp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mk-cmp-h .lbl { display: flex; align-items: center; gap: 6px; }
.mk-cmp-h .timer {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 100px;
}
.mk-cmp-col.bad .timer { background: rgba(239,68,68,0.15); color: #F87171; }
.mk-cmp-col.good .timer { background: rgba(52,211,153,0.15); color: #34D399; }

.mk-files-mess {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.mk-files-mess span {
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  position: relative;
}
.mk-files-mess span:nth-child(odd) { background: rgba(239,68,68,0.12); }
.mk-files-mess span::after {
  content: '📄';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  opacity: 0.5;
}

.mk-search-fake {
  padding: 8px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: var(--text-2);
  margin-bottom: 8px;
}
.mk-result-bad {
  margin-top: auto;
  padding: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #F87171;
  text-align: center;
}

.mk-ai-input {
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 10px;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(139,92,246,0.2);
}
.mk-ai-input::before {
  content: '⚡';
  font-size: 12px;
}
.mk-ai-input::after {
  content: '';
  width: 6px; height: 12px;
  background: var(--violet);
  margin-left: auto;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.mk-ai-answer {
  margin-top: auto;
  padding: 12px;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(139,92,246,0.06));
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 8px;
  font-size: 12px;
}
.mk-ai-answer strong { display: block; color: #34D399; margin-bottom: 4px; font-weight: 500; }
.mk-ai-answer small {
  display: block;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}
.mk-ai-answer .emoji {
  display: block;
  text-align: center;
  font-size: 20px;
  margin-top: 8px;
}

/* ============================================
   05. RECOUVREMENT IA — Timeline
   ============================================ */
.mk-fac-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mk-fac-head .ref {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.mk-fac-head .who { font-size: 14px; font-weight: 500; margin-top: 2px; }
.mk-fac-head .amt {
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(135deg, #34D399, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.mk-tl {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding: 4px 0;
}
.mk-tl-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.mk-tl-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 50%;
  width: 2px;
  height: 100%;
  background: var(--border);
}
.mk-tl-step:last-child::before { display: none; }
.mk-tl-step.done::before { background: linear-gradient(180deg, #34D399, var(--violet)); }
.mk-tl-ic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.mk-tl-step.done .mk-tl-ic {
  background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(139,92,246,0.2));
  border-color: rgba(52,211,153,0.4);
  box-shadow: 0 0 16px rgba(52,211,153,0.25);
}
.mk-tl-step.current .mk-tl-ic {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(139,92,246,0.6);
  animation: pulse 2s infinite;
}
.mk-tl-body { flex: 1; }
.mk-tl-lbl { font-size: 13px; font-weight: 500; }
.mk-tl-meta {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  margin-top: 2px;
}
.mk-tl-step.done .mk-tl-meta { color: #34D399; }

.mk-fac-badge {
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 100px;
  font-size: 12px;
  color: #6EE7B7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================
   06. RÉSEAUX SOCIAUX IA — Calendar
   ============================================ */
.mk-rs-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mk-rs-mon { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.mk-rs-mon-sub { font-size: 12px; color: var(--text-3); font-family: 'Geist Mono', monospace; }
.mk-rs-counter {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.1));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #C4B5FD;
  font-family: 'Geist Mono', monospace;
}

.mk-rs-week-h {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.mk-rs-week-h span {
  font-size: 12px;
  text-align: center;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  padding: 4px 0;
}
.mk-rs-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex: 1;
  grid-auto-rows: 1fr;
}
.mk-rs-cell {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 5px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-height: 0;
}
.mk-rs-cell.dim { opacity: 0.35; }
.mk-rs-cell.has-post {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.1));
  border-color: rgba(139,92,246,0.4);
  color: var(--text-2);
}
.mk-rs-cell.today {
  border-color: rgba(139,92,246,0.7);
  box-shadow: 0 0 12px rgba(139,92,246,0.4);
}
.mk-rs-cell .num { font-weight: 500; }
.mk-rs-cell-plat {
  margin-top: auto;
  display: flex; gap: 2px;
}
.mk-rs-cell-plat span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}
.mk-rs-cell-plat .in { background: #0A66C2; }
.mk-rs-cell-plat .fb { background: #1877F2; }
.mk-rs-cell-plat .ig { background: linear-gradient(135deg, #F58529, #DD2A7B); }

.mk-rs-legend {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
.mk-rs-leg-item { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.mk-rs-leg-item i {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.mk-rs-leg-item i.in { background: #0A66C2; }
.mk-rs-leg-item i.fb { background: #1877F2; }
.mk-rs-leg-item i.ig { background: linear-gradient(135deg, #F58529, #DD2A7B); }

/* ============================================
   07. CLOSER IA — 4-col Pipeline
   ============================================ */
.mk-pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
  min-height: 0;
}
.mk-pipe-col {
  display: flex; flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.mk-pipe-h {
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  text-align: center;
}
.mk-pipe-h .lbl {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--text-2);
  display: block;
}
.mk-pipe-h .cnt {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.mk-pipe-col.relance .mk-pipe-h { border-color: rgba(245,158,11,0.4); }
.mk-pipe-col.relance .mk-pipe-h .lbl { color: #FBBF24; }
.mk-pipe-col.hot .mk-pipe-h { border-color: rgba(99,102,241,0.4); }
.mk-pipe-col.hot .mk-pipe-h .lbl { color: #818CF8; }
.mk-pipe-col.won .mk-pipe-h { border-color: rgba(52,211,153,0.4); }
.mk-pipe-col.won .mk-pipe-h .lbl { color: #34D399; }

.mk-pipe-cards {
  display: flex; flex-direction: column;
  gap: 5px;
  min-height: 0;
}
.mk-lead {
  padding: 8px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  animation: leadSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes leadSlide {
  from { transform: translateX(-8px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.mk-lead .name { font-weight: 500; font-size: 12px; color: var(--text); margin-bottom: 2px; }
.mk-lead .meta {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
}
.mk-pipe-col.relance .mk-lead { background: linear-gradient(135deg, rgba(245,158,11,0.08), transparent); border-color: rgba(245,158,11,0.25); }
.mk-pipe-col.hot .mk-lead {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.04));
  border-color: rgba(99,102,241,0.35);
}
.mk-pipe-col.won .mk-lead {
  background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(6,182,212,0.04));
  border-color: rgba(52,211,153,0.35);
  box-shadow: 0 0 12px rgba(52,211,153,0.15);
}

.mk-pipe-footer {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 100px;
  text-align: center;
  font-size: 12px;
  color: #6EE7B7;
}
.mk-pipe-footer strong { color: white; font-weight: 600; }

/* ============================================
   08. RÉPUTATION IA — Google reviews
   ============================================ */
.mk-rep-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}
.mk-rep-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
  font-family: 'Geist', sans-serif;
}
.mk-rep-logo span {
  background: conic-gradient(from 0deg, #4285F4, #34A853, #FBBC04, #EA4335, #4285F4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-rep-bus { flex: 1; min-width: 0; }
.mk-rep-name { font-size: 13px; font-weight: 500; }
.mk-rep-loc { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.mk-rep-rating { display: flex; align-items: center; gap: 6px; }
.mk-rep-rating strong { font-size: 13px; color: var(--text); }
.mk-rep-stars { display: flex; gap: 1px; color: #FBBC04; }
.mk-rep-stars svg { width: 11px; height: 11px; }
.mk-rep-score { font-size: 12px; color: var(--text-3); font-family: 'Geist Mono', monospace; }
.mk-rep-trend {
  padding: 6px 10px;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 100px;
  font-size: 12px;
  color: #34D399;
  font-family: 'Geist Mono', monospace;
  flex-shrink: 0;
}

.mk-rep-reviews {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}
.mk-rev {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mk-rev-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
}
.mk-rev-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.mk-rev-name { font-size: 12px; font-weight: 500; }
.mk-rev-stars { display: flex; gap: 1px; color: #FBBC04; margin-left: auto; }
.mk-rev-stars svg { width: 10px; height: 10px; }
.mk-rev-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: 6px;
}
.mk-rev-reply {
  padding: 7px 9px;
  background: rgba(99,102,241,0.08);
  border-left: 2px solid var(--violet);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.mk-rev-reply::before {
  content: '↳ Réponse IA · Soleria';
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #C4B5FD;
  margin-bottom: 3px;
  letter-spacing: 0.05em;
}

/* ============================================
   09. QUALITY MANAGER IA — Live transcript
   ============================================ */
.mk-qm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.mk-qm-rec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #F87171;
  letter-spacing: 0.08em;
}
.mk-qm-rec .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F87171;
  box-shadow: 0 0 6px #F87171;
  animation: pulse 1s infinite;
}
.mk-qm-agent {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
}

.mk-qm-wave {
  display: flex; align-items: center;
  gap: 2px;
  height: 32px;
  margin-bottom: 12px;
  padding: 4px 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
}
.mk-qm-wave span {
  flex: 1;
  background: linear-gradient(180deg, var(--indigo), var(--violet));
  border-radius: 2px;
  min-height: 3px;
  opacity: 0.7;
}
.mk-qm-wave span.flag {
  background: linear-gradient(180deg, #F87171, #F59E0B);
  opacity: 1;
  box-shadow: 0 0 8px rgba(239,68,68,0.6);
}

.mk-qm-transcript {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 12px;
}
.mk-qm-line {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  animation: lineIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mk-qm-line:nth-child(1) { animation-delay: 0.1s; }
.mk-qm-line:nth-child(2) { animation-delay: 0.5s; }
.mk-qm-line:nth-child(3) { animation-delay: 0.9s; }
.mk-qm-line:nth-child(4) { animation-delay: 1.3s; }
.mk-qm-line:nth-child(5) { animation-delay: 1.7s; }
@keyframes lineIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mk-qm-spk {
  flex-shrink: 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  width: 44px;
  padding-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mk-qm-content { flex: 1; min-width: 0; }
.mk-qm-txt { color: var(--text-2); }
.mk-qm-flag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.mk-qm-flag.bad { background: rgba(245,158,11,0.15); color: #FBBF24; border: 1px solid rgba(245,158,11,0.3); }
.mk-qm-flag.good { background: rgba(52,211,153,0.15); color: #34D399; border: 1px solid rgba(52,211,153,0.3); }
.mk-qm-line.bad .mk-qm-txt { color: var(--text); background: rgba(245,158,11,0.06); padding: 4px 8px; margin: -4px -4px; border-radius: 6px; border-left: 2px solid #FBBF24; }
.mk-qm-line.good .mk-qm-txt { color: var(--text); background: rgba(52,211,153,0.06); padding: 4px 8px; margin: -4px -4px; border-radius: 6px; border-left: 2px solid #34D399; }

.mk-qm-score-big {
  padding: 14px;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mk-qm-score-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mk-qm-score-val {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #34D399, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-qm-score-val small {
  font-size: 14px;
  color: var(--text-3);
  -webkit-text-fill-color: var(--text-3);
}

/* ============================================
   Landing — Karine video + animated work screen
   ============================================ */
.landing-karine-action {
  padding: 90px 0 110px;
  background: #0A0A0F;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-karine-action--top {
  padding: 112px 0 84px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(99,91,255,0.20), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(74,222,128,0.12), transparent 32%),
    #0A0A0F;
}
.landing-karine-action--top .section-head {
  margin-bottom: 26px;
}
.landing-karine-action--top .section-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.landing-ka-split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.landing-ka-video,
.landing-ka-window,
.mini-karine-screen {
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, #14141F, #07070C);
  box-shadow: 0 34px 90px rgba(0,0,0,0.5), 0 0 70px rgba(139,92,246,0.12);
  overflow: hidden;
}
.landing-ka-video {
  position: relative;
  border-radius: 24px;
  width: 100%;
  min-height: 520px;
  height: 100%;
}
.landing-ka-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  cursor: pointer;
}
/* Standard Téléphonique : décaler le cadrage vers le corps pour éviter le gros-plan sur le visage,
   sans bandes noires latérales : on garde object-fit:cover et on abaisse la fenêtre de crop. */
#agent-02 .landing-ka-video video {
  object-position: 50% 22%;
}
.landing-ka-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,15,0.76);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.84);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.landing-ka-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(99,91,255,0.82);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 45px rgba(99,91,255,0.42);
  pointer-events: none;
  animation: landingKaPlay 1.6s ease-in-out infinite;
}
.landing-ka-label span,
.landing-ka-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: landingKaPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.landing-ka-screen { display: flex; min-height: 100%; }
.landing-ka-window {
  width: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.landing-ka-bar,
.mini-karine-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.landing-ka-bar i,
.mini-karine-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.landing-ka-bar i:nth-child(1), .mini-karine-bar i:nth-child(1) { background: #ff5f57; }
.landing-ka-bar i:nth-child(2), .mini-karine-bar i:nth-child(2) { background: #febc2e; }
.landing-ka-bar i:nth-child(3), .mini-karine-bar i:nth-child(3) { background: #28c840; }
.landing-ka-bar strong,
.mini-karine-bar strong {
  margin-left: auto;
  color: rgba(255,255,255,0.5);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.landing-ka-stage {
  position: relative;
  min-height: 520px;
  flex: 1;
  background: radial-gradient(circle at 15% 0%, rgba(99,91,255,0.14), transparent 42%);
  overflow: hidden;
}
.landing-ka-task {
  position: absolute;
  inset: 28px 28px 60px 28px;
  opacity: 0;
  transform: translateY(16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: landingKaCycle 20s ease-in-out infinite;
}
.landing-ka-task.task-1 {
  animation-name: landingKaCycleFirst;
  z-index: 4;
}
.landing-ka-task.task-2 { animation-delay: 5s; }
.landing-ka-task.task-3 { animation-delay: 10s; }
.landing-ka-task.task-4 { animation-delay: 15s; }
.landing-ka-task b {
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
}
.landing-ka-task span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.28);
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-ka-task p,
.mini-karine-lines span {
  margin: 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  animation: landingKaLine 0.45s ease-out both;
}
.landing-ka-task p:nth-of-type(1) { animation-delay: 0.9s; }
.landing-ka-task p:nth-of-type(2) { animation-delay: 1.25s; }
.landing-ka-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.74);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}
.landing-ka-status em { margin-left: auto; color: rgba(255,255,255,0.42); font-style: normal; }

.mini-karine-screen {
  border-radius: 24px;
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
}
.mini-karine-lines {
  flex: 1;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: radial-gradient(circle at 20% 0%, rgba(99,91,255,0.14), transparent 50%);
}
.mini-karine-lines span {
  position: relative;
  padding-left: 42px;
  animation: landingKaMini 5s ease-in-out infinite;
}
.mini-karine-lines span::before {
  content: '✓';
  position: absolute;
  left: 14px;
  color: #4ade80;
}
.mini-karine-lines span:nth-child(2) { animation-delay: 0.4s; }
.mini-karine-lines span:nth-child(3) { animation-delay: 0.8s; }
.mini-karine-lines span:nth-child(4) { animation-delay: 1.2s; }

@keyframes landingKaCycle {
  0%, 4% { opacity: 0; transform: translateY(16px); }
  9%, 22% { opacity: 1; transform: translateY(0); }
  26%, 100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes landingKaCycleFirst {
  0%, 22% { opacity: 1; transform: translateY(0); }
  26%, 100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes landingKaPlay {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes landingKaLine {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes landingKaMini {
  0%, 100% { transform: translateX(0); border-color: rgba(255,255,255,0.08); }
  45% { transform: translateX(8px); border-color: rgba(74,222,128,0.32); }
}
@keyframes landingKaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (max-width: 980px) {
  .landing-ka-split { grid-template-columns: 1fr; gap: 24px; }
  .landing-ka-video { min-height: 0; height: auto; aspect-ratio: 4 / 5; max-height: 480px; }
  .landing-ka-stage { min-height: 420px; }
  .landing-ka-status { align-items: flex-start; flex-wrap: wrap; }
  .landing-ka-status em { width: 100%; margin-left: 18px; }
}
