/* ============================================================
   The Loft 67 — Header global (source unique)
   Utilisé partout via /assets/site-header.js
   ============================================================ */

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  width: calc(100% - 32px);
  max-width: 1250px;
  padding: 0;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .site-header {
    top: 24px;
    margin-top: 24px;
    width: min(1250px, calc(100% - 64px));
  }
}

.site-header__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@media (min-width: 1024px) { .site-header__pill { height: 68px; padding: 0 28px; } }

.site-header__logo {
  display: inline-flex;
  align-items: center;
  color: #283926;
  transition: opacity .2s ease;
  text-decoration: none;
}
.site-header__logo:hover { opacity: 0.75; }
.site-header__logo img {
  height: 40px;
  width: auto;
  display: block;
  background: transparent;
}
@media (min-width: 1024px) { .site-header__logo img { height: 44px; } }

.site-header__nav {
  display: none;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 1024px) { .site-header__nav { display: flex; } }

.site-header__nav .nav-item {
  position: relative;
  padding-bottom: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #283926;
  text-decoration: none;
  transition: color .2s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.site-header__nav .nav-item:hover { color: #EF7621; }
.site-header__nav .nav-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: #EF7621;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 1px;
}
.site-header__nav .nav-item:hover::after,
.site-header__nav .nav-item.is-active::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) { .site-header__actions { gap: 12px; } }

.site-header__heart {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #EFE7DC;
  color: #283926;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
  text-decoration: none;
}
@media (min-width: 640px) { .site-header__heart { display: inline-flex; } }
@media (min-width: 1024px) { .site-header__heart { width: 44px; height: 44px; } }
.site-header__heart:hover { color: #EF7621; border-color: rgba(239, 118, 33, 0.4); }
.site-header__heart svg { width: 16px; height: 16px; }

.site-header__cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #EF7621;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(239,118,33,0.25);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 768px) { .site-header__cta { padding: 12px 24px; } }
.site-header__cta:hover { background: #D9651A; box-shadow: 0 6px 14px rgba(239,118,33,0.35); }
.site-header__cta:active { transform: scale(0.98); }
.site-header__cta svg { width: 16px; height: 16px; }

.site-header__burger {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #EFE7DC;
  background: transparent;
  color: #283926;
  cursor: pointer;
  transition: background .2s ease;
}
.site-header__burger:hover { background: #fff; }
@media (min-width: 1024px) { .site-header__burger { display: none; } }
.site-header__burger svg { width: 20px; height: 20px; }

.site-header__mobile {
  display: none;
  margin-top: 12px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.site-header__mobile.is-open { display: block; }
@media (min-width: 1024px) { .site-header__mobile { display: none !important; } }
.site-header__mobile nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.site-header__mobile a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #283926;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.site-header__mobile a:hover { background: #FFF4E8; color: #EF7621; }
.site-header__mobile a.is-active { background: #FFF4E8; color: #EF7621; font-weight: 600; }
.site-header__mobile .cta {
  margin-top: 8px;
  justify-content: center;
  background: #EF7621;
  color: #fff;
}
.site-header__mobile .cta:hover { background: #D9651A; color: #fff; }
