/* FrozenSearch — Header partagé (unifié sur toutes les pages) */

#fs-hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #16161d;
}
#fs-hdr .fs-nav-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(16px, 3vw, 28px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 60px;
}
#fs-hdr .fs-logo {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.028em;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer !important;
  transition: color 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}
#fs-hdr .fs-logo:hover {
  color: #aeaebb !important;
  -webkit-text-fill-color: #aeaebb !important;
}

#fs-hdr .fs-nav-end {
  display: flex;
  gap: 8px;
  align-items: center;
}/* Boutons header — style Uiverse adamgiebl uniforme :
   dégradé sombre, animation icône (rotation) + texte (translation) au hover.
   Toutes les variantes (Connexion, S'inscrire, Plans, Recherche, Déconnexion)
   partagent la même apparence — seuls le texte et l'icône changent. */
#fs-hdr .fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer !important;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  padding: 0 16px;
  height: 38px;
  min-height: 38px;
  color: #ffffff;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  border: none;
  letter-spacing: 0.04em;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  /* Animation discrète au hover (lift + glow). */
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
#fs-hdr .fs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 78, 200, 0.35);
  filter: brightness(1.18);
}
#fs-hdr .fs-btn:active {
  transform: translateY(0);
  filter: brightness(1.08);
  box-shadow: 0 2px 6px rgba(99, 78, 200, 0.25);
}
#fs-hdr .fs-btn svg {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  color: #ffffff;
  flex-shrink: 0;
}
#fs-hdr .fs-btn span {
  display: inline-block;
}

/* Force le texte BLANC sur tous les états (link / visited / hover / active /
   focus) — sinon certains navigateurs forcent un mauve/bleu par défaut sur
   les <a> visités, ou un outline bleu au focus, ce qui pollue le rendu. */
#fs-hdr .fs-btn,
#fs-hdr .fs-btn:link,
#fs-hdr .fs-btn:visited,
#fs-hdr .fs-btn:hover,
#fs-hdr .fs-btn:active,
#fs-hdr .fs-btn:focus,
#fs-hdr .fs-btn:focus-visible {
  color: #ffffff !important;
  text-decoration: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
#fs-hdr .fs-btn span {
  color: inherit !important;
}
/* L'icône hérite de la couleur du bouton — on ne force pas fill/stroke
   pour ne pas casser les icônes mixtes (certaines utilisent stroke,
   d'autres fill, d'autres les deux). */
#fs-hdr .fs-btn svg {
  color: #ffffff !important;
}
#fs-hdr .fs-btn:focus,
#fs-hdr .fs-btn:focus-visible {
  box-shadow: none !important;
}

/* Variantes — couleurs identiques par défaut, peuvent être nuancées si besoin */
#fs-hdr .fs-btn-line { /* utilisé par Connexion, Plans, Déconnexion, Recherche, Admin */ }
#fs-hdr .fs-btn-primary { /* utilisé par S'inscrire (CTA) — légèrement plus clair pour distinguer */
  background: linear-gradient(to right, #1a1740, #3f3984, #2e2d4f) !important;
}

/* Lien Admin — pas d'icône, juste le texte. */
#fs-hdr #fs-admin-link svg {
  display: none !important;
}

/* Mobile : compact mode */
@media (max-width: 640px) {
  #fs-hdr .fs-nav-container { padding: 0 14px; height: 56px; }
  #fs-hdr .fs-logo { font-size: 15.5px; }
  #fs-hdr .fs-btn { padding: 7px 11px; font-size: 12px; min-height: 34px; }
  #fs-hdr .fs-btn span { display: inline; }
}
@media (max-width: 480px) {
  /* Sur très petit écran, masque les libellés des boutons à icône (Recherche) */
  #fs-hdr .fs-btn svg + span:not(:only-child) { display: none; }
  /* Pour les boutons sans icône (Connexion, S'inscrire, Admin), on garde le texte */
  #fs-hdr .fs-btn:not(:has(svg)) span { display: inline; }
  #fs-hdr #fs-admin-link span { display: inline !important; }

  /* Quand le bouton n'a plus QUE son icône visible (texte caché) :
     - on retire la marge droite de l'icône (sinon elle est décentrée à gauche)
     - on rend le bouton carré pour que l'icône soit pile au centre
     - on s'assure que l'icône est droite (rotation 0) */
  #fs-hdr .fs-btn:has(svg + span:not(:only-child)) {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  #fs-hdr .fs-btn:has(svg + span:not(:only-child)) svg {
    margin-right: 0;
    transform: none;
  }
}
