/* Navigation 3 zones — espace gratuit restaurateur */

.esp-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}

.esp-header .esp-logo {
  justify-self: start;
}

.esp-header-right {
  justify-self: end;
}

.esp-header-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-self: center;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: var(--esp-surface-2, var(--surface-2));
  border: 1px solid var(--esp-border, var(--border));
  border-radius: 10px;
  padding: 3px;
}

.esp-zone-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--esp-text-2, var(--text-2));
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--esp-radius-sm, var(--radius-sm, 8px));
  transition: color .15s, background .15s;
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.esp-zone-link:hover {
  color: var(--esp-text, var(--text));
  background: rgba(0, 0, 0, .04);
}

.esp-zone-link.active {
  color: var(--esp-accent, var(--accent));
  background: var(--esp-surface, var(--surface));
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.esp-zone-link .esp-zone-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}

.esp-zone-link .esp-zone-tag--free {
  background: #f0fdf4;
  color: #16a34a;
}

.esp-zone-link .esp-zone-tag--fec {
  background: #eff6ff;
  color: #1d4ed8;
}

.esp-zone-link--locked {
  opacity: 1;
  cursor: not-allowed;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  font-family: var(--esp-font-sans, var(--font-sans));
}

.esp-zone-link--locked:hover {
  background: #eceff3;
  color: #4b5563;
}

.esp-zone-link--locked.active {
  background: #eceff3;
  box-shadow: none;
  color: #4b5563;
}

.esp-zone-lock {
  font-size: 11px;
  margin-right: 5px;
  color: #9ca3af;
}

.esp-zone-link:not(.esp-zone-link--locked) .esp-zone-lock {
  display: none;
}

.esp-zone {
  display: none;
}

.esp-zone.active {
  display: block;
}

/* Dashboard — barre zones pleine largeur, toujours visible */
.esp-top-zones {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--esp-surface, var(--surface));
  border-bottom: 1px solid var(--esp-border, var(--border));
  position: sticky;
  top: 0;
  z-index: 200;
}

.esp-top-zones .esp-header-nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.esp-top-zones .esp-header-nav::-webkit-scrollbar {
  display: none;
}

.esp-brasdefer {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
  border-radius: var(--esp-radius, var(--radius, 14px));
  padding: 22px 24px;
  margin-bottom: 28px;
}

.esp-brasdefer__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c2410c;
  margin-bottom: 8px;
}

.esp-brasdefer__title {
  font-family: var(--esp-font-serif, var(--font-serif));
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--esp-text, var(--text));
}

.esp-brasdefer__text {
  font-size: 14px;
  color: var(--esp-text-2, var(--text-2));
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .esp-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 16px 12px;
  }

  .esp-header .esp-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .esp-header-right {
    grid-column: 2;
    grid-row: 1;
  }

  .esp-header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    margin-top: 4px;
  }

  .esp-zone-link {
    font-size: 12px;
    padding: 8px 10px;
  }

  .esp-zone-link .esp-zone-tag {
    display: none;
  }
}
