/* ============================================================
   FORPRODE IA — Navbar partagée (Option C finale)
   includes/navbar.css
   ============================================================ */

.tta-navbar {
  background: #1F6F3A;
  width: 100%;
  overflow: hidden;
}

/* Bandeau supérieur — logo TTA centré */
.tta-nb-top {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.tta-nb-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.tta-nb-logo-fallback {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  letter-spacing: 2px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Bande inférieure — badge + info + chrono */
.tta-nb-bot {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.tta-nb-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Badge FORPRODE / IA */
.tta-fp-badge {
  background: #ffffff;
  border-radius: 5px;
  padding: 3px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  flex-shrink: 0;
}

.tta-fp1 {
  font-size: 11px;
  font-weight: 700;
  color: #1F6F3A;
  letter-spacing: .5px;
}

.tta-fp2 {
  font-size: 9px;
  font-weight: 600;
  color: #4FA646;
  letter-spacing: .3px;
}

/* Séparateur vertical */
.tta-nb-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* Infos texte */
.tta-nb-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tta-nb-name {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: .2px;
}

.tta-nb-sub {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: .3px;
  margin-top: 1px;
}

/* Chronomètre */
.tta-chrono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: 500;
  background: rgba(255,255,255,.12);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  color: #ffffff;
  transition: background .3s, color .3s;
  flex-shrink: 0;
}

.tta-chrono.warn {
  background: rgba(245,158,11,.3);
  color: #fcd34d;
}

.tta-chrono.danger {
  background: rgba(220,38,38,.35);
  color: #fca5a5;
  animation: tta-pulse .8s ease-in-out infinite;
}

@keyframes tta-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* Barre de progression sous la navbar */
.tta-prog-wrap {
  background: rgba(0,0,0,.15);
  height: 3px;
  width: 100%;
}

.tta-prog-bar {
  height: 3px;
  background: #8BC53F;
  transition: width .4s ease;
}

/* Responsive mobile */
@media (max-width: 480px) {
  .tta-nb-bot   { padding: 0 12px; }
  .tta-nb-name  { font-size: 12px; }
  .tta-nb-sub   { display: none; }
  .tta-chrono   { font-size: 13px; padding: 4px 10px; }
}
