/* Velora : Header global (toutes les pages) */

:root {
  --velora-green: #006d44;
  --velora-green-dark: #005a38;
  --velora-green-light: #e8f5ef;
  --velora-green-muted: #f3faf6;
  --velora-text: #1a1a1a;
  --velora-text-muted: #6b7280;
  --velora-border: #e5e7eb;
  --velora-font: "Outfit", "Montserrat", system-ui, sans-serif;
}

.velora-site-header {
  position: relative;
  z-index: 1040;
  background: #fff;
}

.velora-header__top {
  position: sticky;
  top: 0;
  z-index: 1041;
  background: #fff;
  border-bottom: 1px solid var(--velora-border);
  transition: box-shadow 0.25s ease;
}

.velora-site-header.is-scrolled .velora-header__top {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.velora-header {
  position: relative;
}

.velora-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.velora-header__search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
}

.velora-header-search {
  width: 100%;
  margin: 0;
}

.velora-header-search__inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  background: #f3f4f6;
  border: 1px solid var(--velora-border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.velora-header-search__inner:focus-within {
  background: #fff;
  border-color: var(--velora-green);
  box-shadow: 0 0 0 3px rgba(0, 109, 68, 0.12);
}

.velora-header-search__category {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 150px;
}

.velora-header-search__category select {
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  background: transparent !important;
  padding: 0 30px 0 16px !important;
  margin: 0 !important;
  height: 46px;
  font-family: var(--velora-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--velora-text);
  cursor: pointer;
  max-width: 150px;
  box-shadow: none !important;
}

.velora-header-search__chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--velora-text-muted);
}

.velora-header-search__divider {
  flex-shrink: 0;
  width: 1px;
  height: 26px;
  background: #d1d5db;
}

.velora-header-search__input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 14px !important;
  height: 46px;
  font-family: var(--velora-font) !important;
  font-size: 0.92rem !important;
  color: var(--velora-text) !important;
  box-shadow: none !important;
}

.velora-header-search__input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.velora-header-search__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--velora-text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.velora-header-search__submit:hover {
  color: var(--velora-green);
}

.velora-header-search__submit i {
  float: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.velora-header__search-mobile {
  padding: 14px 0 12px;
  background: #fff;
}

.velora-header-search--mobile .velora-header-search__category {
  max-width: 110px;
}

.velora-header-search--mobile .velora-header-search__category select {
  max-width: 110px;
  font-size: 0.8rem;
  padding-left: 12px !important;
}

.velora-header__nav-row {
  border-top: 1px solid var(--velora-border);
  background: #fff;
}

.velora-header__nav-row .container {
  display: flex;
  justify-content: center;
}

.velora-header__nav-row .velora-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 46px;
  flex: 0 1 auto;
}

.velora-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.velora-header__logo {
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: transparent;
}

.velora-header__logo-img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.velora-header__logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--velora-green);
  letter-spacing: -0.02em;
}

.velora-header__nav {
  align-items: center;
  gap: 28px;
}

.velora-header__nav-link {
  position: relative;
  font-family: var(--velora-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--velora-text);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.velora-header__nav-link:hover,
.velora-header__nav-link.is-active {
  color: var(--velora-green);
}

.velora-header__nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--velora-green);
  border-radius: 2px;
}

.velora-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.velora-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--velora-text);
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.velora-header__icon-btn:hover {
  background: var(--velora-green-muted);
  color: var(--velora-green);
}

.velora-header__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  z-index: 1;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--velora-green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.velora-header__cart .velora-header__badge {
  top: 0;
  right: -2px;
}

.velora-header__badge[hidden] {
  display: none !important;
}

.velora-header__lang {
  align-items: center;
  flex-shrink: 0;
}

.velora-header .dropdown-language,
.velora-mobile-nav .dropdown-language {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.velora-header .dropdown-language > li,
.velora-mobile-nav .dropdown-language > li {
  position: relative;
}

.velora-header .dropdown-language__toggle,
.velora-mobile-nav .dropdown-language__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: var(--velora-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--velora-text);
  user-select: none;
}

.velora-header .dropdown-language__toggle:hover,
.velora-mobile-nav .dropdown-language__toggle:hover {
  background: var(--velora-green-muted);
}

.velora-header .dropdown-language__chevron,
.velora-mobile-nav .dropdown-language__chevron {
  font-size: 0.7rem;
  opacity: 0.6;
}

.velora-header .dropdown-language .imgFlag,
.velora-mobile-nav .dropdown-language .imgFlag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}

.velora-header .dropdown-language .imgFlag img,
.velora-mobile-nav .dropdown-language .imgFlag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  float: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.velora-header .dropdown-language__menu,
.velora-mobile-nav .dropdown-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--velora-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 1100;
}

.velora-header .dropdown-language > li.is-open > .dropdown-language__menu,
.velora-mobile-nav .dropdown-language > li.is-open > .dropdown-language__menu {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .velora-header .dropdown-language > li:hover > .dropdown-language__menu {
    display: block;
  }
}

.velora-header .dropdown-language__menu li a,
.velora-mobile-nav .dropdown-language__menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--velora-text);
  text-decoration: none;
  font-family: var(--velora-font);
  font-size: 0.9rem;
  cursor: pointer;
  float: none !important;
}

.velora-header .dropdown-language__menu li a:hover,
.velora-mobile-nav .dropdown-language__menu li a:hover {
  background: var(--velora-green-muted);
  color: var(--velora-green);
}

.velora-mobile-nav__lang {
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--velora-border);
  margin-bottom: 16px;
}

.velora-mobile-nav .dropdown-language__menu {
  position: static;
  display: none;
  margin-top: 8px;
  box-shadow: none;
}

.velora-mobile-nav .dropdown-language > li.is-open > .dropdown-language__menu {
  display: block;
}

.velora-google-translate-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.velora-header__lang-chevron {
  font-size: 0.7rem;
  opacity: 0.6;
}

.velora-header__login {
  font-family: var(--velora-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--velora-text);
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
}

.velora-header__login:hover {
  color: var(--velora-green);
}

.velora-header__signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--velora-green);
  color: #fff !important;
  font-family: var(--velora-font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.velora-header__signup:hover {
  background: var(--velora-green-dark);
  color: #fff !important;
}

.velora-mobile-nav[hidden] {
  display: none !important;
}

.velora-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1060;
}

.velora-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.velora-mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.velora-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.velora-mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.velora-mobile-nav__link {
  display: block;
  padding: 12px 8px;
  font-family: var(--velora-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--velora-text);
  text-decoration: none;
  border-radius: 8px;
}

.velora-mobile-nav__link.is-active,
.velora-mobile-nav__link:hover {
  color: var(--velora-green);
  background: var(--velora-green-muted);
}

.velora-mobile-nav__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--velora-border);
}

.velora-mobile-nav__auth .velora-header__signup {
  text-align: center;
}

@media (max-width: 767.98px) {
  .velora-header__top-inner {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
  }

  .velora-header__search-mobile {
    padding-top: 16px;
    padding-bottom: 14px;
    border-bottom: none;
  }

  .velora-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .velora-header__logo-img {
    height: 32px;
    max-width: 120px;
    object-position: center center;
  }

  .velora-mobile-nav__head .velora-header__logo {
    position: static;
    transform: none;
  }

  .velora-header__left {
    z-index: 1;
  }

  .velora-header__actions {
    z-index: 1;
    gap: 4px;
  }

  .velora-header__icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}
