:root {
  --pub-bg: #f7f3ea;
  --pub-surface: #ffffff;
  --pub-soft: #efe7d8;
  --pub-ink: #11110f;
  --pub-muted: #766f63;
  --pub-border: #ded4c2;
  --pub-accent: #c8a35c;
  --pub-accent-dark: #947238;
  --pub-green: #315d45;
  --pub-cream: #fffaf0;
  --pub-shadow: 0 16px 36px rgba(38, 31, 19, .12);
}

body.public-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(200,163,92,.18), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(49,93,69,.12), transparent 30%),
    var(--pub-bg);
  color: var(--pub-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (max-width: 480px) {
  .public-shell { overflow-x: hidden; }
  .market-container { width: calc(100% - 16px); }
  .panel { padding: 16px; }
  .detail-title, .page-title-public { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}

.public-shell {
  min-height: 100vh;
}

.market-container {
  width: min(1840px, calc(100% - 40px));
  margin: 0 auto;
}

.public-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  background: #11110f;
  border-bottom: 1px solid var(--pub-border);
  color: #f7f3ea;
}

.topbar-group,
.header-actions,
.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-select-wrap {
  display: inline-flex;
  align-items: center;
}

.topbar-select {
  appearance: none;
  min-width: 76px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 26px 7px 12px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  color: #f7f3ea;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.topbar-select option {
  color: #111827;
  background: #fff;
}

.topbar-select:focus {
  outline: none;
  border-color: rgba(56,189,248,.5);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}

.social-links a {
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}

.physical-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pub-border);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 9px 12px;
  color: #f7f3ea;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

/* Secondary nav in topbar */
.topbar-sec-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-sec-nav a {
  color: rgba(247,243,234,.72);
  font-size: .78rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.topbar-sec-nav a:hover { color: #f7f3ea; }
@media (max-width: 760px) {
  .topbar-sec-nav { display: none; }
  .public-topbar { height: auto; padding: 8px 16px; }
}

/* User header: icon + logout */
.user-header-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(220,38,38,.15);
  color: #f87171;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.header-logout-btn:hover {
  background: rgba(220,38,38,.3);
  color: #fca5a5;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 13px 24px;
  background: rgba(255, 250, 240, .92);
  border-bottom: 1px solid var(--pub-border);
  box-shadow: 0 2px 9px rgba(27, 33, 44, .08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pub-ink);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.search-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 1fr);
  align-items: center;
  height: 62px;
  border: 1px solid var(--pub-border);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 3px 12px rgba(27, 33, 44, .12);
  overflow: hidden;
  padding: 0 24px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--pub-ink);
  cursor: pointer;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 1.3rem;
  color: var(--pub-ink);
}

/* ── Placeholders globaux ────────────────────────────────────────────────── */
input::placeholder,
textarea::placeholder,
.public-input::placeholder,
.search-wrap input::placeholder,
.public-select::placeholder {
  color: rgba(100, 116, 139, 0.5);
  opacity: 1;
}

.cta-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 25px;
  background: var(--pub-green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.cta-create:hover,
.public-btn:hover {
  background: var(--pub-accent-dark);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ── Country pill (topbar) ───────────────────────────────────────────────── */
.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 7px 13px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  color: #f7f3ea;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.country-pill:hover { background: rgba(255,255,255,.18); }
.country-pill-name { font-size: .82rem; }

/* ── Country modal ───────────────────────────────────────────────────────── */
.country-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17,17,15,.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.country-modal-box {
  background: var(--pub-surface);
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(17,17,15,.24);
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.country-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--pub-border);
  flex-shrink: 0;
}

.country-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pub-ink);
}

.country-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--pub-border);
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pub-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.country-modal-close:hover { background: var(--pub-soft); }

.country-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--pub-soft);
  transition: background .12s;
}
.country-item:last-child { border-bottom: none; }
.country-item:hover:not(.country-item--soon) { background: var(--pub-soft); }
.country-item--soon { cursor: default; opacity: .5; }

.country-flag { font-size: 1.55rem; line-height: 1; flex-shrink: 0; }
.country-name  { flex: 1; font-weight: 650; color: var(--pub-ink); font-size: .93rem; }
.country-chevron { font-size: 1.3rem; color: var(--pub-muted); }

.country-soon-badge {
  font-size: .7rem;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pub-soft);
  color: var(--pub-muted);
  border: 1px solid var(--pub-border);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--pub-ink);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 850;
}

.icon-btn.outline {
  border-color: var(--pub-border);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-tabs {
  display: inline-flex;
  align-items: center;
  margin: 18px auto 22px;
  padding: 5px;
  border: 1px solid var(--pub-border);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.market-tabs a {
  position: relative;
  min-width: 170px;
  text-align: center;
  padding: 13px 28px;
  border-radius: 999px;
  color: #6f7680;
  font-weight: 850;
  text-decoration: none;
}

.market-tabs a.active {
  background: #11110f;
  color: #fffaf0;
  box-shadow: 0 10px 26px rgba(17,17,15,.12);
}

.new-badge {
  position: absolute;
  top: -18px;
  right: -8px;
  padding: 4px 12px;
  border-radius: 5px;
  background: #47a16d;
  color: #fff;
  font-size: .72rem;
}

.category-strip-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.category-strip {
  display: flex;
  gap: 24px;
  padding: 14px 0 18px;
  min-width: max-content;
}

.category-card {
  flex: 0 0 174px;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 9px;
  border: 1px solid var(--pub-border);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  color: var(--pub-ink);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.category-card.active,
.category-card:hover {
  border-color: rgba(49,93,69,.34);
  background: #fffaf0;
  color: var(--pub-green);
  box-shadow: 0 12px 26px rgba(49,93,69,.09);
}

.category-separator {
  flex-shrink: 0;
  width: 1px;
  background: var(--pub-border);
  align-self: stretch;
  margin: 8px 0;
}

.category-card span:first-child {
  color: var(--pub-accent);
  font-size: 1.7rem;
  line-height: 1;
}

.result-title {
  margin: 16px 0 28px;
  text-align: center;
  color: var(--pub-muted);
  font-size: 1.35rem;
  font-weight: 760;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.event-card-public {
  display: flex;
  flex-direction: column;
  min-height: 532px;
  overflow: hidden;
  border: 1px solid var(--pub-border);
  border-radius: 20px;
  background: #fffdf8;
  color: var(--pub-ink);
  text-decoration: none;
  box-shadow: var(--pub-shadow);
}

.event-card-public:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(38,31,19,.16);
}

.event-art {
  position: relative;
  height: 286px;
  background: linear-gradient(135deg, #11110f, #315d45);
  background-size: cover;
  background-position: center;
}

.event-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,250,240,.2), transparent 22%),
    linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .34));
}

.check-badge {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,250,240,.42);
  background: rgba(17,17,15,.78);
  color: #fff;
  font-weight: 900;
}

.countdown-badge {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.countdown-live {
  background: rgba(220,38,38,.9);
  color: #fff;
  box-shadow: 0 2px 12px rgba(220,38,38,.45);
  animation: liveBadgePulse 1.8s ease-in-out infinite;
}
@keyframes liveBadgePulse {
  0%,100% { box-shadow: 0 2px 12px rgba(220,38,38,.45); }
  50%      { box-shadow: 0 2px 18px rgba(220,38,38,.75); }
}
.countdown-today {
  background: rgba(49,93,69,.92);
  color: #fff;
  box-shadow: 0 2px 10px rgba(49,93,69,.4);
}
.countdown-soon {
  background: rgba(200,163,92,.92);
  color: #11110f;
  box-shadow: 0 2px 10px rgba(200,163,92,.35);
}
.countdown-far {
  background: rgba(17,17,15,.72);
  color: #fffaf0;
  border: 1px solid rgba(255,250,240,.18);
}

.tag {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,250,240,.92);
  color: var(--pub-ink);
  font-size: .82rem;
  font-weight: 850;
}

.event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 18px;
}

.event-title-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.event-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.heart-count {
  display: grid;
  justify-items: center;
  color: var(--pub-ink);
  font-size: 1rem;
}

.heart-count strong {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: var(--pub-green);
}

.amount {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
}

.amount-caption,
.event-meta,
.muted {
  color: var(--pub-muted);
}

.progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff3;
}

.progress span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pub-green), var(--pub-accent));
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid var(--pub-border);
  padding-top: 16px;
}

.organizer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pub-ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.organizer small {
  display: block;
  color: var(--pub-muted);
}

.organizer strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.subscribe {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--pub-green);
  color: #fff;
  font-weight: 760;
  white-space: nowrap;
}

.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--pub-green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.public-btn.secondary {
  border: 1px solid #76808a;
  background: #fffaf0;
  color: #727983;
}

.public-input,
.public-select {
  width: 100%;
  border: 1px solid var(--pub-border);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--pub-ink);
  padding: 13px 14px;
  font-size: .95rem;
}

.panel {
  border: 1px solid var(--pub-border);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: var(--pub-shadow);
  padding: 22px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.detail-title,
.page-title-public {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 950;
}

.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--pub-border);
}
.ticket-soldout {
  opacity: .6;
  pointer-events: none;
}
.ticket-soldout .qty button,
.ticket-soldout .qty input {
  background: rgba(0,0,0,.04);
  color: #94a3b8;
  border-color: rgba(0,0,0,.08);
  cursor: not-allowed;
}
.qty button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.price {
  color: var(--pub-green);
  font-weight: 900;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pub-border);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--pub-ink);
  font-weight: 900;
}

.qty input {
  width: 48px;
  text-align: center;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0;
  color: var(--pub-muted);
}

.summary-line.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pub-border);
  color: var(--pub-ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.qr-ticket {
  border: 1px dashed #b9c0ca;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.public-footer {
  margin-top: 64px;
  padding: 58px 16px 24px;
  background: #11110f;
  color: #d8cfbf;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
  color: #fffaf0;
}

.footer-grid a {
  display: block;
  margin: 10px 0;
  color: #d8cfbf;
  text-decoration: none;
  font-size: 1.05rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,250,240,.16);
  padding-top: 22px;
}

.footer-bottom nav,
.footer-bottom .social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-bottom a {
  color: #d8cfbf;
  text-decoration: none;
}

.footer-bottom span {
  color: #d8cfbf;
}

.footer-bottom .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
}

.footer-bottom .social-links a:hover {
  color: var(--pub-green);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--pub-green);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--pub-shadow);
  font-size: 1.7rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0;
}

.pagination button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--pub-border);
  background: #fff;
  color: var(--pub-green);
  font-weight: 850;
}

.pagination button.active {
  background: var(--pub-green);
  color: #fff;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .public-header {
    grid-template-columns: 1fr;
  }
  .header-actions {
    justify-content: space-between;
  }
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .market-container {
    width: min(100% - 24px, 560px);
  }
  .public-topbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  /* Header mobile : logo + icônes sur la même ligne, recherche en dessous */
  .public-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    min-height: auto;
    padding: 10px 16px 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: .78rem;
    align-self: center;
  }
  .brand img { height: 40px; width: auto; }
  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    justify-content: flex-end;
  }
  /* Masquer le bouton "Créer une billetterie" et le lien FAQ sur mobile */
  .cta-create { display: none; }
  .icon-btn[href="faq.html"] { display: none; }
  /* Réduire la taille des icônes */
  .icon-btn { width: 36px; height: 36px; font-size: 1rem; }
  .icon-btn svg { width: 17px; height: 17px; }
  .live-header-btn { padding: 4px 10px 4px 8px; font-size: .68rem; gap: 5px; }
  .header-logout-btn { width: 32px; height: 32px; }
  .search-wrap {
    grid-template-columns: minmax(80px, 1fr);
    height: 48px;
    padding: 0 16px;
  }
  .search-wrap input {
    font-size: .95rem;
  }
  .market-tabs a {
    min-width: 120px;
    padding-inline: 18px;
  }
  .category-card {
    flex-basis: 145px;
  }
  .event-grid,
  .list-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .event-card-public {
    min-height: 500px;
  }
}
.market-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
  gap: 24px;
  align-items: end;
  margin: 28px 0 10px;
  border: 1px solid var(--pub-border);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(200,163,92,.28), transparent 20%),
    linear-gradient(135deg, #fffaf0, #efe7d8);
  box-shadow: var(--pub-shadow);
}

.market-intro::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -110px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 12deg, rgba(17,17,15,.16) 0 3deg, transparent 3deg 8deg);
  mask: radial-gradient(circle, transparent 0 28%, #000 29% 100%);
  opacity: .45;
}

.market-intro > * {
  position: relative;
  z-index: 1;
}

.market-intro h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: .96;
  font-weight: 850;
  letter-spacing: 0;
}

.market-intro p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--pub-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pub-green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ─── Public premium tech layer ────────────────────────────────────────────── */
:root {
  --pub-bg: #071017;
  --pub-surface: rgba(255, 255, 255, .82);
  --pub-soft: rgba(226, 232, 240, .76);
  --pub-ink: #071017;
  --pub-muted: #64748b;
  --pub-border: rgba(15, 23, 42, .12);
  --pub-accent: #38bdf8;
  --pub-accent-dark: #2563eb;
  --pub-green: #0f766e;
  --pub-cream: #f8fafc;
  --pub-shadow: 0 24px 70px rgba(2, 6, 23, .16);
  --pub-glow: 0 0 46px rgba(56, 189, 248, .18);
}

@keyframes publicAurora {
  0%, 100% { background-position: 0% 50%, 100% 50%, 0 0; }
  50% { background-position: 100% 50%, 0% 50%, 24px 24px; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes publicReveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes shimmerLine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

body.public-page {
  background:
    radial-gradient(circle at 15% 4%, rgba(56, 189, 248, .22), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(124, 58, 237, .15), transparent 28%),
    linear-gradient(135deg, #eef6ff 0%, #f8fafc 46%, #e8fff9 100%) !important;
  background-size: 100% 100% !important;
  animation: publicAurora 18s ease-in-out infinite;
  color: var(--pub-ink);
}

body.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(56,189,248,.12) 48%, transparent 54%),
    radial-gradient(circle at 50% 0, rgba(255,255,255,.9), transparent 34%);
}

.public-topbar {
  background: rgba(7, 16, 23, .92) !important;
  border-color: rgba(255,255,255,.09) !important;
  backdrop-filter: blur(18px);
}

.physical-link,
.topbar-pill {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.physical-link:hover,
.topbar-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.34);
  background: rgba(56,189,248,.1);
}

.public-header {
  top: 0;
  background: rgba(248, 250, 252, .72) !important;
  border-bottom: 1px solid rgba(15,23,42,.1) !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.08) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
}

.search-wrap {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 18px 38px rgba(15,23,42,.08) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.search-wrap:focus-within,
.search-wrap:hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.42) !important;
  box-shadow: 0 22px 46px rgba(37,99,235,.12), 0 0 0 4px rgba(56,189,248,.08) !important;
}

.cta-create,
.public-btn,
.subscribe {
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, #0ea5e9, #2563eb 52%, #7c3aed) !important;
  box-shadow: 0 18px 36px rgba(37,99,235,.25), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cta-create:hover,
.public-btn:hover,
.subscribe:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 24px 50px rgba(37,99,235,.32), 0 0 34px rgba(56,189,248,.2);
}

.icon-btn {
  background: rgba(255,255,255,.52) !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.32) !important;
  background: rgba(56,189,248,.1) !important;
}

.market-intro {
  margin-top: 34px;
  min-height: min(560px, calc(100vh - 164px));
  align-items: center;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 30px !important;
  color: #f8fafc;
  background:
    radial-gradient(circle at 78% 18%, rgba(56,189,248,.32), transparent 20%),
    radial-gradient(circle at 22% 78%, rgba(52,211,153,.2), transparent 24%),
    linear-gradient(135deg, rgba(7,16,23,.96), rgba(15,23,42,.92) 52%, rgba(30,41,59,.88)) !important;
  box-shadow: 0 34px 90px rgba(2,6,23,.3), var(--pub-glow) !important;
}

.market-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 72% 46%, #000 0 42%, transparent 76%);
  opacity: .82;
}

.market-intro::after {
  right: -120px;
  top: -120px;
  width: 430px;
  height: 430px;
  background:
    repeating-conic-gradient(from 20deg, rgba(56,189,248,.38) 0 3deg, transparent 3deg 9deg) !important;
  animation: floatSoft 6s ease-in-out infinite;
  opacity: .5;
}

.market-intro h1 {
  max-width: 920px;
  color: #fff;
  text-shadow: 0 0 40px rgba(56,189,248,.2);
}

.market-intro p:not(.eyebrow) {
  color: #bfd0e3 !important;
}

.eyebrow {
  color: #67e8f9 !important;
}

.market-tabs {
  background: rgba(255,255,255,.58) !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}

.market-tabs a {
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.market-tabs a:hover {
  transform: translateY(-1px);
}

.market-tabs a.active {
  background: linear-gradient(135deg, #071017, #172033) !important;
  box-shadow: 0 18px 36px rgba(2,6,23,.18), 0 0 28px rgba(56,189,248,.12) !important;
}

.category-card,
.panel,
.event-card-public,
.qr-ticket {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.74) !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.09), inset 0 1px 0 rgba(255,255,255,.8) !important;
  backdrop-filter: blur(16px) saturate(145%);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.category-card::before,
.event-card-public::before,
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.72), transparent);
  animation: shimmerLine 4.5s ease-in-out infinite;
}

.category-card:hover,
.category-card.active,
.event-card-public:hover,
.panel:hover {
  transform: translateY(-5px);
  border-color: rgba(56,189,248,.36) !important;
  box-shadow: 0 26px 68px rgba(15,23,42,.15), 0 0 34px rgba(56,189,248,.12) !important;
}

.category-card span:first-child {
  color: #0ea5e9 !important;
  filter: drop-shadow(0 0 12px rgba(14,165,233,.2));
}

.event-grid,
.category-strip-scroll,
.detail-layout,
.list-grid,
.panel,
.market-tabs,
.result-title,
.pagination {
  animation: publicReveal .46s ease both;
}

.event-card-public {
  border-radius: 26px !important;
}

.event-art {
  overflow: hidden;
  background-size: cover, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

.event-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .38;
}

.event-card-public:hover .event-art {
  transform: scale(1.015);
}

.check-badge,
.tag {
  border-color: rgba(255,255,255,.32) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(2,6,23,.18);
}

.progress {
  background: rgba(15,23,42,.08) !important;
}

.progress span {
  background: linear-gradient(90deg, #14b8a6, #38bdf8, #7c3aed) !important;
  box-shadow: 0 0 20px rgba(56,189,248,.22);
}

.avatar {
  background: linear-gradient(135deg, #071017, #2563eb) !important;
}

.public-input,
.public-select,
.qty input {
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(15,23,42,.12) !important;
  border-radius: 13px !important;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.public-input:focus,
.public-select:focus,
.qty input:focus {
  outline: none;
  border-color: rgba(56,189,248,.54) !important;
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

.qty button,
.pagination button {
  border-radius: 13px !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.qty button:hover,
.pagination button:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.38);
  background: rgba(56,189,248,.08);
}

.public-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,.14), transparent 28%),
    linear-gradient(135deg, #071017, #0f172a) !important;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid a,
.footer-bottom a,
.social-links a {
  transition: color .18s ease, transform .18s ease;
}

.footer-grid a:hover,
.footer-bottom a:hover,
.social-links a:hover {
  color: #67e8f9 !important;
  transform: translateX(3px);
}

.scroll-top {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed) !important;
  box-shadow: 0 18px 38px rgba(37,99,235,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(37,99,235,.34);
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--pub-muted);
  font-size: .82rem;
  font-weight: 700;
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seat-demo,
.seat {
  width: 28px;
  height: 28px;
  border-radius: 8px 8px 11px 11px;
  border: 2px solid #d6a93d;
  background: #fff4c8;
  box-shadow: inset 0 -3px 0 rgba(214,169,61,.22);
}

.seat-map-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.58);
}

.seat-map {
  display: grid;
  gap: 8px;
  min-width: max-content;
}

.seat {
  display: inline-grid;
  place-items: center;
  color: #7c5a08;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.seat:hover {
  transform: translateY(-3px);
  border-color: #0ea5e9;
  background: #dff6ff;
  color: #0369a1;
}

.seat.selected,
.seat-demo.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
}

.seat.reserved,
.seat-demo.reserved {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #b45309;
  cursor: not-allowed;
  opacity: .78;
}

.seat.sold,
.seat.disabled,
.seat-demo.sold {
  border-color: #cbd5e1;
  background: #eef2f7;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: .7;
}

.screen-line-public {
  margin-top: 22px;
  border-top: 6px solid #d6a93d;
  border-radius: 999px 999px 0 0;
  padding-top: 8px;
  text-align: center;
  color: #b48624;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 760px) {
  .market-intro {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 22px !important;
    padding: 28px 20px !important;
  }

  .market-intro h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .public-header {
    border-radius: 0 0 20px 20px;
  }

  .event-card-public {
    border-radius: 22px !important;
  }
}

/* ── Live streaming ─────────────────────────────────────────────────────────── */

/* Header button */
.live-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  background: #16a34a;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  animation: liveBtnPulse 2.4s ease-in-out infinite;
  transition: transform .15s, background .3s;
}
.live-header-btn:active { transform: scale(.95); }

@keyframes liveBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); }
  50%       { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
}

.live-header-btn--off {
  background: #e53e3e;
  animation: none;
  box-shadow: none;
  opacity: .82;
}
.live-header-btn--off .live-header-dot {
  background: rgba(255,255,255,.85);
  animation: none;
}

.live-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: liveDotBlink 1.2s step-end infinite;
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Modal backdrop */
.live-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Modal box */
.live-modal-box {
  width: 100%;
  max-width: 520px;
  background: #0d1117;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
}

/* Modal header */
.live-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.live-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53e3e;
  box-shadow: 0 0 0 0 rgba(229,62,62,.7);
  animation: livePulseDot 1.5s ease-out infinite;
}

@keyframes livePulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(229,62,62,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(229,62,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); }
}

.live-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.live-modal-close:hover { background: rgba(255,255,255,.2); }

/* Hint text */
.live-modal-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 8px 18px 12px;
}

/* Video wrapper — 16:9 */
.live-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.live-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Connecting overlay */
.live-connecting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,.7);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* Spinner */
.live-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #e53e3e;
  border-radius: 50%;
  animation: liveSpin .75s linear infinite;
}

@keyframes liveSpin {
  to { transform: rotate(360deg); }
}

/* Toast "aucun live" */
.live-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  white-space: nowrap;
}
.live-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 540px) {
  .live-modal-box { border-radius: 14px; }
  .live-modal-head { padding: 12px 14px; }
  .live-toast { font-size: .8rem; padding: 10px 18px; bottom: 20px; }
}

/* ── Like button on event cards ─────────────────────────────────────────────── */
.like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: rgba(0,0,0,.52);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, color .15s, transform .15s;
  z-index: 3;
  line-height: 1;
}
.like-btn:hover {
  background: rgba(229,62,62,.35);
  color: #fff;
  border-color: rgba(229,62,62,.5);
}
.like-btn.liked {
  background: rgba(229,62,62,.25);
  color: #fb7185;
  border-color: rgba(229,62,62,.45);
}
.like-btn svg { flex-shrink: 0; }
.like-count:empty { display: none; }

/* Like + countdown dans le footer de carte */
.event-foot .countdown-badge {
  position: static;
  flex-shrink: 0;
}
.event-foot .like-btn {
  position: static;
  background: transparent;
  border-color: var(--pub-border);
  color: var(--pub-muted);
  padding: 6px 10px;
}
.event-foot .like-btn:hover {
  background: rgba(229,62,62,.08);
  color: #e53e3e;
  border-color: rgba(229,62,62,.3);
}
.event-foot .like-btn.liked {
  background: rgba(229,62,62,.08);
  color: #e53e3e;
  border-color: rgba(229,62,62,.3);
}

.soldout-badge {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  text-transform: uppercase;
}
