/* En-tête collant au scroll (ordinateur uniquement) : caché en haut de page, affiché par sticky-header.js
   dès qu'on défile. Les liens et le bouton de menu reprennent le style de la barre principale. */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: 10px 0 0;
  background-color: #fff;
  box-shadow: 0 5px 20px -3px rgba(0, 0, 0, 0.25);
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.2s ease,
    visibility 0.2s ease;
  &.is-visible {
    transform: translateY(0);
    visibility: visible;
  }
  .container {
    gap: 20px;
  }
  .logo {
    width: auto;
    height: 32px;
    margin-bottom: 4px;
  }
  .menu,
  .lien {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 10px 5px;
    border: 0;
    border-bottom: 4px solid transparent;
    background: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease;
    &:hover {
      border-bottom-color: var(--orange);
    }
  }
  .burger {
    width: 20px;
    height: 20px;
  }
  .recherche {
    display: flex;
    flex: 1;
    align-items: center;
    margin-bottom: 4px;
    max-width: 340px;
    input {
      flex: 1;
      min-width: 0;
      height: 28px;
      border: 0;
      border-bottom: 1px solid #333;
      border-radius: 0;
      background: transparent;
      font-size: 14px;
      &::placeholder {
        color: #333;
      }
    }
    button {
      padding: 0 0 0 8px;
      border: 0;
      background: transparent;
    }
  }
  .panier {
    position: relative;
    margin: 0 10px 4px 0;
  }
  .cart-count {
    position: absolute;
    top: 15px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background-color: var(--orange);
  }
}
