/* Trackoya · kit démo · blocs 1 et 2
   Classes posées par demo-kit.js uniquement en mode démo : aucun effet sur les vrais comptes. */

/* ===== BLOC 1.2 · navigation allégée en démo ===== */
.tk-hide { display: none !important; }

/* ===== BLOC 1.3 · barre démo persistante + CTA essai ===== */
body.tk-demo { padding-bottom: 84px; }
#tk-demobar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 9000; display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 8px 8px 8px 18px;
  background: rgba(10, 15, 30, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 212, 255, .25); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(123, 94, 167, .15);
  font: 500 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #C9D4E5;
}
#tk-demobar b { color: #FFFFFF; font-weight: 600; }
#tk-demobar .tk-sub { color: #7F8BA3; white-space: nowrap; }
#tk-demobar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: 999px;
  color: #00D4FF;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.08);
  transition: all 0.15s ease;
}
#tk-demobar a:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: #00D4FF;
  transform: translateY(-1px);
}
.tk-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #00D4FF; animation: tkPulse 2s infinite;
}
@keyframes tkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}
@media (max-width: 640px) {
  body.tk-demo { padding-bottom: 130px; }
  #tk-demobar {
    left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none;
    flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 16px;
  }
  #tk-demobar .tk-sub { display: none; }
  #tk-demobar .tk-cta { flex: 1 1 100%; justify-content: center; }
}

/* ===== BLOC 2.1 · CTA principal (barre démo + bouton "Essai gratuit" du header) ===== */
.tk-cta {
  appearance: none; border: 0 !important; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px !important; border-radius: 999px !important;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  color: #060912 !important; white-space: nowrap; text-decoration: none !important;
  background: linear-gradient(135deg, #00D4FF 0%, #6FB6FF 55%, #A58FD6 100%) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tk-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, .38), 0 0 0 4px rgba(0, 212, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tk-cta:focus-visible { outline: 2px solid #00D4FF; outline-offset: 3px; }

/* ===== BLOC 2.2 · cartes KPI du dashboard ===== */
.tk-kpis { gap: 14px !important; }
.tk-kpi {
  position: relative; overflow: hidden;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), #0B1122 !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .35);
  transition: border-color .2s ease, transform .2s ease;
}
.tk-kpi::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #00D4FF, #7B5EA7); opacity: .75;
}
.tk-kpi:hover { border-color: rgba(0, 212, 255, .3) !important; transform: translateY(-2px); }
.tk-kpi, .tk-kpi * { font-variant-numeric: tabular-nums; }
.tk-kpi:first-child {
  border-color: rgba(0, 212, 255, .35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(0, 0, 0, .35), 0 0 40px rgba(0, 212, 255, .12);
}

/* ===== BLOC 2.3 · titre "Vue en direct" avec pastille live ===== */
.tk-live { display: flex !important; align-items: center; gap: 10px; }
.tk-live::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #22E39B; animation: tkPulseG 2s infinite;
}
@keyframes tkPulseG {
  0%   { box-shadow: 0 0 0 0 rgba(34, 227, 155, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 227, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 155, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tk-dot, .tk-live::before { animation: none; }
  .tk-cta, .tk-kpi { transition: none; }
}

/* ===== BLOC 5 · carte CTA app employé (dashboard démo) ===== */
#tk-emp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin: 0 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.10), rgba(123,94,167,0.12));
  border: 1px solid rgba(0,212,255,0.30);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
#tk-emp-cta .tk-emp-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
#tk-emp-cta .tk-emp-cta-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 12px;
  font-size: 22px;
  flex: none;
}
#tk-emp-cta .tk-emp-cta-title {
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 2px;
}
#tk-emp-cta .tk-emp-cta-sub {
  font-size: 12.5px;
  color: #9FB0C8;
}
#tk-emp-cta .tk-emp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #060912;
  text-decoration: none;
  background: linear-gradient(135deg, #00D4FF 0%, #6FB6FF 55%, #A58FD6 100%);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: none;
}
#tk-emp-cta .tk-emp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.42);
}
@media (max-width: 640px) {
  #tk-emp-cta { flex-direction: column; align-items: stretch; text-align: left; }
  #tk-emp-cta .tk-emp-cta-btn { justify-content: center; }
}

/* Masquer la bannière d'essai (démo = compte interne 2099)*/
body.tk-demo #trialBanner, body.tk-demo #billingBanner { display: none !important; }
