/* ============================================
   AGENT.CSS — Page agent IA (maxi mockup)
   Light theme · accent #059669 · Rule 44
   ============================================ */

/* ---------- NAV TOPBAR ---------- */
.page-nav {
  display: flex;
  gap: 8px;
  margin: 0 16px;
}
.page-nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.page-nav-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.page-nav-link.active {
  background: #059669;
  color: #fff;
  border-color: #047857;
}

/* ---------- MAIN AGENT ---------- */
.agent-main {
  padding: 28px 32px 80px;
  max-width: 1500px;
  margin: 0 auto;
}

.agent-section {
  margin-bottom: 64px;
}

.section-header {
  margin-bottom: 28px;
}
.section-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  border: 1px solid #d1fae5;
}
.section-tag.green { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.section-tag.ford { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.section-tag.stellantis { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }

.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  max-width: 900px;
  line-height: 1.55;
}

/* ---------- HERO ---------- */
.agent-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #f0fdfa 100%);
  border-radius: 24px;
  padding: 64px 56px;
  margin-bottom: 56px;
  border: 1px solid #d1fae5;
  position: relative;
  overflow: hidden;
}
.agent-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1fae5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.agent-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 20px;
}
.hero-accent {
  color: #059669;
  font-weight: 700;
}
.hero-sub {
  font-size: 17px;
  color: #475569;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-stat {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.hero-stat.highlight {
  background: #047857;
  border-color: #047857;
}
.hero-stat.highlight .hero-stat-value,
.hero-stat.highlight .hero-stat-label {
  color: #fff;
}
.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #047857;
  margin-bottom: 6px;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- PIPELINE ---------- */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
}
.pipeline-step {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}
.pipeline-step:hover {
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
  transform: translateY(-2px);
}
.pipeline-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.pipeline-num {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  background: #ecfdf5;
  color: #047857;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d1fae5;
}
.pipeline-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.pipeline-step p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.pipeline-arrow {
  font-size: 22px;
  color: #cbd5e1;
  align-self: center;
  font-weight: 700;
}

/* ---------- VIN DECODER ---------- */
.vin-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.vin-input-card,
.vin-output-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
}
.vin-input-card h3,
.vin-output-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
}
.vin-input-options {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.opt-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.opt-btn:hover { background: #f1f5f9; }
.opt-btn.active {
  background: #059669;
  color: #fff;
  border-color: #047857;
}
.vin-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.vin-field-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
#vin-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.15s ease;
}
#vin-input:focus {
  outline: none;
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}
.vin-samples {
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
}
.samples-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}
.sample-btn {
  padding: 6px 12px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sample-btn:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #d1fae5;
}

.vin-empty {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
  font-size: 14px;
  font-style: italic;
}
.vin-output {
  min-height: 240px;
}
.vin-fiche {
  display: grid;
  gap: 14px;
}
.vin-fiche-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #ecfdf5;
  border-radius: 12px;
  border: 1px solid #d1fae5;
}
.vin-fiche-icon {
  font-size: 32px;
}
.vin-fiche-marque {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.vin-fiche-modele {
  font-size: 14px;
  color: #047857;
  font-weight: 600;
  margin: 0;
}
.vin-fiche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vin-fiche-cell {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.vin-fiche-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}
.vin-fiche-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.vin-fiche-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vin-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.vin-badge.alert { background: #b91c1c; }
.vin-badge.info { background: #1d4ed8; }

.vin-sources-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}
.info-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}
.info-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
}
.info-card ul li strong {
  color: #047857;
}

/* ---------- FEATURES GRID ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
}
.feature-card:hover {
  border-color: #059669;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
}
.feature-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}
.feature-bullets li {
  font-size: 12px;
  color: #475569;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}
.feature-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

/* Variantes par module */
.feature-card.ford-card {
  border-color: #dbeafe;
}
.feature-card.ford-card:hover {
  border-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.08);
}
.feature-card.ford-card .feature-bullets li::before {
  color: #1d4ed8;
}

.feature-card.stellantis-card {
  border-color: #fee2e2;
}
.feature-card.stellantis-card:hover {
  border-color: #b91c1c;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.08);
}
.feature-card.stellantis-card .feature-bullets li::before {
  color: #b91c1c;
}

/* ---------- DEMO MÉCANICIEN ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-input-card,
.demo-output-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
}
.demo-input-card h3,
.demo-output-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}
#mecano-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  line-height: 1.6;
  resize: vertical;
  background: #f8fafc;
  margin-bottom: 14px;
}
#mecano-input:focus {
  outline: none;
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}
#mecano-output {
  min-height: 260px;
}
.mecano-fiche {
  display: grid;
  gap: 12px;
}
.mecano-row {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #059669;
}
.mecano-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.mecano-row-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.5;
}
.mecano-row.symptom { border-left-color: #1d4ed8; }
.mecano-row.diagnostic { border-left-color: #f59e0b; }
.mecano-row.action { border-left-color: #059669; }
.mecano-row.codes { border-left-color: #7c3aed; }
.mecano-row.garantie { border-left-color: #b91c1c; }

/* ---------- 3C ---------- */
.card-3c {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 28px;
  margin-top: 28px;
}
.card-3c h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1d4ed8;
  margin: 0 0 18px;
}
.three-c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.c-block label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.c-block input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
}
.c-block input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.three-c-result {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #dbeafe;
}
.three-c-score-wrap {
  text-align: center;
}
.three-c-score {
  font-size: 52px;
  font-weight: 800;
  color: #047857;
  line-height: 1;
  margin-bottom: 6px;
}
.three-c-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.three-c-detail {
  display: grid;
  gap: 6px;
}
.three-c-line {
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}
.three-c-line .check { color: #059669; }
.three-c-line .warn { color: #f59e0b; }
.three-c-line .err { color: #b91c1c; }

/* ---------- MATRIX TABLE ---------- */
.matrix-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table thead th {
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
  color: #475569;
  padding: 14px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #e2e8f0;
}
.matrix-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}
.matrix-table tbody tr:last-child td { border-bottom: none; }
.matrix-table tbody tr:hover { background: #f8fafc; }
.matrix-table tr.tronc td:first-child { border-left: 3px solid #059669; }
.matrix-table tr.ford td:first-child { border-left: 3px solid #1d4ed8; }
.matrix-table tr.stell td:first-child { border-left: 3px solid #b91c1c; }
.matrix-table tr.devis td:first-child { border-left: 3px solid #7c3aed; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.tronc-dot { background: #059669; }
.ford-dot { background: #1d4ed8; }
.stell-dot { background: #b91c1c; }
.devis-dot { background: #7c3aed; }

/* ---------- ROADMAP ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roadmap-phase {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: all 0.2s ease;
}
.roadmap-phase:hover {
  border-color: #059669;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}
.roadmap-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  border: 1px solid #d1fae5;
}
.roadmap-phase h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}
.roadmap-phase p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
}
.roadmap-phase ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}
.roadmap-phase li {
  font-size: 12px;
  color: #475569;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}
.roadmap-phase li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-card {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  border-radius: 24px;
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-card h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}
.cta-card > p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cta-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.pricing-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}
.pricing-card.highlight {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  transform: scale(1.05);
}
.pricing-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  opacity: 0.9;
}
.pricing-card.highlight .pricing-tag { color: #047857; opacity: 1; }
.pricing-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-period {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 4px;
}
.pricing-detail {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.5;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cta-card .btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.cta-card .btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}
.cta-card .btn-primary {
  background: #fff;
  color: #047857;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cta-card .btn-primary:hover {
  background: #ecfdf5;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 24px 32px;
  margin-top: 80px;
}
.footer-content {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}
.footer-meta {
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .vin-demo-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .three-c-grid { grid-template-columns: 1fr; }
  .three-c-result { grid-template-columns: 1fr; text-align: center; }
  .roadmap { grid-template-columns: 1fr; }
  .cta-pricing { grid-template-columns: 1fr; }
  .pricing-card.highlight { transform: none; }
  .agent-hero { padding: 40px 28px; }
  .agent-hero h1 { font-size: 32px; }
  .section-header h2 { font-size: 24px; }
  .page-nav { margin: 0 8px; }
  .page-nav-link { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 700px) {
  .agent-main { padding: 20px 16px 60px; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DÉMO LIVE — Overlay + bouton + pulse cible
   ============================================ */

.btn-demo-live {
  padding: 10px 18px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-demo-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}
.btn-demo-live.active {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}

.demo-live-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 22px 24px;
  z-index: 9999;
  display: none;
  animation: demoSlideIn 0.35s ease;
}
.demo-live-overlay.visible { display: block; }

@keyframes demoSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.demo-live-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.demo-live-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #047857;
  background: #ecfdf5;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d1fae5;
}
.demo-live-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  transition: all 0.15s;
}
.demo-live-close:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

.demo-live-step-num {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.demo-live-step-num span { color: #047857; font-weight: 800; }

.demo-live-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.demo-live-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.demo-live-progress {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.demo-live-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 999px;
  width: 12.5%;
  transition: width 0.4s ease;
}

.demo-live-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.demo-live-actions .btn {
  padding: 9px 12px;
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}
.btn-ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }

/* ---------- Highlight cible (pulse) ---------- */
.demo-highlight {
  position: relative;
  animation: demoPulse 1.4s ease-in-out infinite;
  outline: 3px solid rgba(5, 150, 105, 0.55);
  outline-offset: 4px;
  border-radius: 20px;
  scroll-margin-top: 120px;
  z-index: 5;
}
@keyframes demoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5), 0 0 30px rgba(5, 150, 105, 0.25);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(5, 150, 105, 0), 0 0 40px rgba(5, 150, 105, 0.4);
  }
}

@media (max-width: 700px) {
  .demo-live-overlay {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 16px;
  }
  .demo-live-title { font-size: 17px; }
  .demo-live-actions { grid-template-columns: 1fr 1fr; }
  .demo-live-actions .btn-ghost { grid-column: span 2; }
}
