.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background-color: #0e1116;
  color: white;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-sizing: border-box;
}

.left,
.right {
  flex: 0 0 auto;
  width: var(--sidebar-width, 120px);   /* ajuste selon la vraie largeur de ton logo + padding */
  /* min-width peut aussi marcher si tu préfères : min-width: 120px; */
}

.center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

.race-back {
  display: flex;
  align-items: center;
}

.title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0;
  color: white;
  text-align: center;
  white-space: normal;
}

/* ────────────────────────────────────────────────
   Sur petits écrans : on supprime les "fake" côtés
───────────────────────────────────────────────── */
@media (max-width: 640px) {           
  .site-header {
    justify-content: center;          /* tout au centre */
    padding: 0 16px;                  /* un peu moins de padding si besoin */
  }

  .left,
  .right {
    display: none;                    /* disparus → .center prend toute la largeur */
  }

  .center {
    flex: none;                       /* plus besoin de flex:1 */
    justify-content: center;
    width: 100%;
  }

  /* Option : réduire un peu la taille du titre sur mobile */
  .title {
    font-size: 15px;           /* un peu plus petit */
      max-width: 70vw;           /* limite la largeur pour éviter overflow */
      white-space: nowrap;       /* force une seule ligne + ellipsis */
      overflow: hidden;
      text-overflow: ellipsis;
  }
}






/* DROITE : bouton sobre */
.btn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;   /* un peu plus petit pour rester discret */
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* juste un contour léger */
  background: transparent; /* pas de fond coloré */
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08); /* léger fond au hover */
  border-color: rgba(255, 255, 255, 0.5); /* contour un peu plus visible */
}
