/* homy-navbar.css — shortcode [homy_navbar] */

/* ── Navbar principale ───────────────────────────────────────── */
.homy-navbar {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-sizing: border-box;
}

.homy-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  width: 100%;
  height: 72px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Logo */
.homy-navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.homy-navbar__logo img {
  height: 3.5rem;
  width: auto;
}

/* ── Actions droite ──────────────────────────────────────────── */
.homy-navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Liens desktop ───────────────────────────────────────────── */
/* Masqués sur tablette/mobile, visibles sur desktop */
.homy-navbar__desktop-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .homy-navbar__desktop-links {
    display: flex;
  }
  .homy-navbar__inner {
    padding: 0 0.75rem;
  }
}

.homy-navbar__text-link {
  color: #2C192D;
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.homy-navbar__text-link:hover {
  color: #3CB4E8;
}

/* Globe */
.homy-navbar__globe {
  display: flex;
  align-items: center;
  color: #2C192D;
  text-decoration: none;
  transition: color 0.2s;
}
.homy-navbar__globe:hover {
  color: #3CB4E8;
}

/* Bouton CTA bleu — calqué sur ButtonCta.vue */
.homy-navbar__btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 3rem;
  min-height: 48px;
  background-color: #3CB4E8;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s, opacity 0.3s;
}
.homy-navbar__btn-cta:hover {
  background-color: #29a0d4;
  color: #fff;
}

/* ── Burger pill — identique Vue Navbar ──────────────────────── */
/* Visible sur tablette/mobile, masqué sur desktop */
.homy-navbar__burger-pill {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid #A17DB3;
  border-radius: 9999px;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .homy-navbar__burger-pill {
    display: none;
  }
}

.homy-navbar__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
  color: #3CB4E8;
  box-shadow: none !important;
}
.homy-navbar__burger svg {
  display: block;
  overflow: visible;
  flex-shrink: 0;
  width: 22px;
  height: 20px;
}
.homy-navbar__burger svg line {
  stroke: #3CB4E8 !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  fill: none !important;
}

.homy-navbar__profile-avatar img {
  height: 1.75rem;
  width: auto;
  display: block;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.homy-navbar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.homy-navbar__overlay.is-open {
  display: block;
}

/* ── Slide Panel ─────────────────────────────────────────────── */
.homy-navbar__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.homy-navbar__panel.is-open {
  transform: translateX(0);
}

/* Header du panel */
.homy-navbar__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.homy-navbar__panel-header span {
  color: #2C192D;
  font-weight: 600;
  font-size: 1.125rem;
}
.homy-navbar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  color: rgba(0, 0, 0, 0.4) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}
.homy-navbar__close svg {
  display: block;
  flex-shrink: 0;
}
.homy-navbar__close:hover {
  color: #000 !important;
}

/* ── Bannières ───────────────────────────────────────────────── */
.homy-navbar__banner {
  margin: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.homy-navbar__banner--orange {
  background: rgba(245, 165, 111, 0.1);
  border: 1px solid rgba(245, 165, 111, 0.3);
}
.homy-navbar__banner--orange p { color: #F5A56F; }
.homy-navbar__banner--blue {
  background: rgba(60, 180, 232, 0.1);
  border: 1px solid rgba(60, 180, 232, 0.3);
}
.homy-navbar__banner--blue p { color: #3CB4E8; }
.homy-navbar__banner p {
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.homy-navbar__banner-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.homy-navbar__banner--orange .homy-navbar__banner-icon { background: rgba(245, 165, 111, 0.2); }
.homy-navbar__banner--orange .homy-navbar__banner-icon svg { color: #F5A56F; }
.homy-navbar__banner--blue .homy-navbar__banner-icon { background: rgba(60, 180, 232, 0.2); }
.homy-navbar__banner--blue .homy-navbar__banner-icon svg { color: #3CB4E8; }
.homy-navbar__banner-icon svg { width: 1rem; height: 1rem; }

/* ── Navigation items ────────────────────────────────────────── */
.homy-navbar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.homy-navbar__nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: #2C192D;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background-color 0.15s;
}
.homy-navbar__nav-item:hover {
  background-color: #f5f5f5;
  color: #2C192D;
}
.homy-navbar__nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #3CB4E8;
  flex-shrink: 0;
}

/* ── Footer déconnexion ──────────────────────────────────────── */
.homy-navbar__panel-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.homy-navbar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #F5F5F5;
  color: #2C192D;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: background-color 0.2s;
  box-sizing: border-box;
}
.homy-navbar__logout:hover {
  background: #e5e7eb;
  color: #2C192D;
}
