/* FHC V9.1 — Formations dans la bande bleue supérieure.
   Règles limitées à .topbar : aucun style de page, d'éditeur ou d'administration. */
.topbar .fhc-topbar-row {
  column-gap: 1.25rem;
  row-gap: .5rem;
}

.topbar .fhc-topbar-actions,
.topbar .fhc-topbar-training-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar .fhc-topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar .fhc-topbar-training-group {
  flex-wrap: wrap;
}

.topbar .slogan-line {
  white-space: nowrap;
}

.topbar .topbar-formation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-shrink: 0;
  min-height: 32px;
  padding: .25rem .85rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(242, 197, 0, .75);
  color: #fff;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.topbar .topbar-formation:hover,
.topbar .topbar-formation:focus {
  background: #f2c500;
  border-color: #f2c500;
  color: #123f5c;
  box-shadow: none;
}

.topbar .topbar-formation:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.topbar .topbar-formation-arrow {
  font-size: .95rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .topbar .fhc-topbar-row,
  .topbar .fhc-topbar-actions,
  .topbar .fhc-topbar-training-group {
    justify-content: center !important;
  }

  .topbar .topbar-name {
    flex-basis: 100%;
    text-align: center;
  }

  .topbar .fhc-topbar-actions {
    width: 100%;
    gap: .7rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .topbar .topbar-name {
    font-size: .75rem;
  }

  .topbar .slogan-line {
    font-size: .78rem;
    letter-spacing: .025em;
  }

  .topbar .fhc-topbar-training-group {
    gap: .45rem .7rem;
    justify-content: center;
  }

  .topbar .topbar-formation {
    min-height: 40px;
    padding: .3rem .75rem;
    font-size: .76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .topbar-formation {
    transition: none;
  }
}
