/* ZaynaGo — shell mobile /app/ (maquette 2026) */
.zgo-app-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream, #fdf2f5);
  color: var(--ink, #3d3450);
  -webkit-font-smoothing: antialiased;
}

/* Splash reconstruit (photo nette + SVG + texte), pas une capture */
.zgo-splash,
.zgo-shell { display: none; }
.zgo-splash.is-open,
.zgo-shell.is-open { display: flex; }
.zgo-splash[hidden],
.zgo-shell[hidden] { display: none !important; }

.zgo-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: #e4d0ee;
  overflow: hidden;
}
.zgo-splash__hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.zgo-splash__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.zgo-splash__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 26%, rgba(214,176,226,.28) 40%, rgba(206,166,222,.78) 54%, rgba(220,188,232,.96) 70%, #e7d4f0 100%);
}
.zgo-splash__leaf {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.zgo-splash__leaf--l { width: 10.5rem; left: -3.2rem; top: 46%; }
.zgo-splash__leaf--r { width: 11rem; right: -3.6rem; top: 42%; transform: scaleX(-1); }
.zgo-splash__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 1.7rem calc(2.2rem + env(safe-area-inset-bottom, 0px));
}
.zgo-splash__lotus { width: 4.4rem; height: 4.4rem; }
.zgo-splash__name {
  margin: 0.35rem 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 2.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.zgo-splash__tag {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #fff;
}
.zgo-splash__lead {
  margin: 0.7rem 0 0;
  max-width: 17.5rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255,255,255,.95);
}
.zgo-splash__cta {
  position: relative;
  z-index: 3;
  margin-top: 1.35rem;
  width: min(100%, 18.5rem);
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.2rem;
  background: #8d5eae;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(120, 70, 150, 0.22);
}

/* ── Shell ── */
.zgo-shell {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  flex-direction: column;
  background: var(--cream, #fdf2f5);
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.zgo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 1.1rem 0.35rem;
  background: linear-gradient(180deg, var(--paper, #fffbfc) 70%, transparent);
}

.zgo-header__brand {
  min-width: 0;
}

.zgo-header__logo {
  display: block;
  height: 32px;
  width: auto;
}

.zgo-header__greet {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.zgo-header__bell {
  border: 0;
  background: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(109, 90, 135, 0.08);
  cursor: pointer;
}

.zgo-main {
  flex: 1;
  padding: 0 1.1rem 1rem;
  overflow-x: hidden;
}

/* ── Tab bar ── */
.zgo-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: rgba(255, 251, 252, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line, #ecdde6);
  padding: 0.4rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  box-shadow: 0 -8px 32px rgba(109, 90, 135, 0.06);
}

.zgo-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--muted, #6d6578);
  padding: 0.25rem 0.15rem;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.zgo-tab__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zgo-tab__icon svg {
  width: 100%;
  height: 100%;
}

.zgo-tab__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.zgo-tab.is-active {
  color: var(--brand-purple, #6d5a87);
}

.zgo-tab.is-active .zgo-tab__icon {
  color: var(--brand-purple, #6d5a87);
}

/* ── Accueil ── */
.zgo-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.zgo-search {
  flex: 1;
  position: relative;
}

.zgo-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.45;
  pointer-events: none;
}

.zgo-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.72rem 0.85rem 0.72rem 2.35rem;
  font-size: 0.9rem;
  background: #fff;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(109, 90, 135, 0.04);
}

.zgo-wilaya {
  flex: 0 0 auto;
  min-width: 5.5rem;
  max-width: 7.5rem;
}

.zgo-wilaya select {
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-purple);
  background: #fff;
  font-family: inherit;
}

.zgo-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.zgo-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.zgo-cat.is-active .zgo-cat__img {
  outline: 2px solid var(--brand-purple, #6d5a87);
  outline-offset: 2px;
}

.zgo-cat__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(109, 90, 135, 0.06);
}

.zgo-cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zgo-cat__label {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--ink);
}

.zgo-promo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 7.5rem;
  margin-bottom: 1.1rem;
  display: block;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 28px rgba(109, 90, 135, 0.18);
}

.zgo-promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zgo-promo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(61, 52, 80, 0.82) 0%, rgba(109, 90, 135, 0.35) 55%, transparent 100%);
}

.zgo-promo__body {
  position: relative;
  padding: 1rem 1.1rem;
  max-width: 70%;
}

.zgo-promo__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.zgo-promo__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.zgo-promo__meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.92;
}

.zgo-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.zgo-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.zgo-section-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-purple);
  text-decoration: none;
}

.zgo-hscroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin: 0 -1.1rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.zgo-card {
  flex: 0 0 10.5rem;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(109, 90, 135, 0.08);
}

.zgo-card__media {
  position: relative;
  height: 7.25rem;
}

.zgo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zgo-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-purple);
}

.zgo-card__body {
  padding: 0.55rem 0.65rem 0.7rem;
}

.zgo-card__body h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.zgo-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.zgo-card__price {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-purple);
}

.zgo-map-view.salon-map-layout {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px));
  min-height: 280px;
  margin: -0.5rem -1.1rem 0;
}

.zgo-map-view .salon-map-panel {
  flex: 1;
  min-height: 180px;
}

.zgo-map-view .salon-map-list {
  max-height: 36vh;
  border-top: 1px solid var(--line);
}

.zgo-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.zgo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0.75rem 1.2rem;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(109, 90, 135, 0.2);
}

.zgo-btn--ghost {
  background: #fff;
  color: var(--brand-purple);
  border: 1px solid var(--line);
  box-shadow: none;
}

.zgo-rdv-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.zgo-rdv-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
}

.zgo-rdv-tabs button.is-active {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: rgba(109, 90, 135, 0.06);
}

.zgo-rdv-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(109, 90, 135, 0.05);
}

.zgo-rdv-card__status {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-mauve);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.zgo-profile-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
  color: var(--muted);
}

.zgo-profile-form input,
.zgo-profile-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.zgo-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(109, 90, 135, 0.12), rgba(232, 162, 173, 0.25));
  color: var(--brand-purple);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.zgo-login-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(109, 90, 135, 0.05);
}

html[dir="rtl"] .zgo-search__icon {
  left: auto;
  right: 0.85rem;
}

html[dir="rtl"] .zgo-search input {
  padding-left: 0.85rem;
  padding-right: 2.35rem;
}

@media (min-width: 431px) {
  .zgo-shell,
  .zgo-tabs {
    box-shadow: 0 0 0 1px var(--line);
  }
}
