/* En-tête et navigation principale. Aucune dépendance JS : la liste est toujours présente dans
   le flux, elle s'empile verticalement sous 768px et passe en ligne au-dessus. */

.ts-entete {
  border-bottom: 1px solid var(--ts-border);
  background: var(--ts-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ts-entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.875rem 1rem;
}

.ts-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ts-text);
  white-space: nowrap;
}

.ts-logo:hover {
  color: var(--ts-text);
  text-decoration: none;
}

.ts-logo strong {
  color: var(--ts-red);
  font-weight: 700;
}

.ts-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 100%;
  gap: 0.75rem;
}

.ts-nav-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.ts-nav-liste a {
  color: var(--ts-text);
  font-weight: 500;
}

.ts-nav-liste a:hover {
  color: var(--ts-red);
}

.ts-nav > .ts-bouton {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .ts-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
  }

  .ts-nav-liste a {
    white-space: nowrap;
  }

  .ts-nav > .ts-bouton {
    width: auto;
  }
}
