/* ============================================================
   FOOTER.CSS — Pied de page simple
   ============================================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: var(--space-6) var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__brand-name {
  font-weight: var(--font-semi);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer__info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Indicateur de statut base de données */
.footer__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer__status--ok   .footer__status-dot { background: var(--color-success); }
.footer__status--warn .footer__status-dot { background: var(--color-warning); animation: pulse 1.5s infinite; }
.footer__status--err  .footer__status-dot { background: var(--color-danger); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Stats rapides dans le footer */
.footer__stats {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer__stat-value {
  font-weight: var(--font-bold);
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.footer__stat-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}

/* Version et infos techniques */
.footer__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
}

/* Footer minimal sur mobile */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: calc(var(--space-6) + var(--nav-bottom-height));
  }

  .footer__stats   { justify-content: center; }
  .footer__meta    { text-align: center; }
}
