/*
 * TicketFlow marketplace homepage
 * Built on the Light Able color language and its data-pc-theme switch.
 */

.market-home {
  --market-bg: #f7f9fc;
  --market-surface: #ffffff;
  --market-surface-soft: #f0f4fa;
  --market-surface-tint: #edf3ff;
  --market-text: #1d2630;
  --market-muted: #697586;
  --market-border: rgba(29, 38, 48, 0.1);
  --market-border-strong: rgba(29, 38, 48, 0.16);
  --market-shadow-sm: 0 8px 24px rgba(33, 52, 88, 0.08);
  --market-shadow: 0 18px 48px rgba(33, 52, 88, 0.12);
  --market-shadow-hover: 0 24px 60px rgba(33, 52, 88, 0.17);
  --market-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Ambre et encre : l'ambre est déjà la couleur d'action de la marque
     (CTA « S'inscrire », pastille du panier). On lui donne un seul rôle ici —
     l'action — et à l'encre un seul rôle : l'onglet courant. */
  --market-amber: #ffc107;
  --market-amber-deep: #f0a800;
  --market-on-amber: #1a1200;
  --market-ink: #0e1626;
  position: relative;
  overflow: hidden;
  background: var(--market-bg);
  color: var(--market-text);
}

:root[data-pc-theme="dark"] .market-home,
.dark-theme .market-home {
  --market-bg: #18212c;
  --market-surface: #222d3a;
  --market-surface-soft: #1d2733;
  --market-surface-tint: rgba(70, 128, 255, 0.1);
  --market-text: #f3f6fb;
  --market-muted: #a8b3c3;
  --market-border: rgba(255, 255, 255, 0.09);
  --market-border-strong: rgba(255, 255, 255, 0.15);
  --market-shadow-sm: 0 10px 28px rgba(3, 8, 15, 0.28);
  --market-shadow: 0 20px 54px rgba(3, 8, 15, 0.4);
  --market-shadow-hover: 0 28px 68px rgba(3, 8, 15, 0.5);
}

.market-home::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 28%, rgba(70, 128, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 72%, rgba(40, 167, 69, 0.06), transparent 22rem);
  content: "";
  pointer-events: none;
}

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

.market-home .text-muted {
  color: var(--market-muted) !important;
}

.market-home .card {
  background: var(--market-surface) !important;
  border-color: var(--market-border) !important;
  color: var(--market-text) !important;
}

.market-home .btn {
  border-radius: 10px;
  font-weight: 650;
  transition:
    transform 150ms var(--market-ease-out),
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.market-home .btn:active {
  transform: scale(0.97);
}

.market-home a.btn-primary,
.market-home a.btn-primary:hover,
.market-home a.btn-primary:focus,
.market-home a.btn-outline-primary:hover,
.market-home a.btn-outline-primary:focus {
  color: #ffffff !important;
}

.market-home a.btn-warning,
.market-home a.btn-warning:hover,
.market-home a.btn-warning:focus {
  color: #2f2400 !important;
}

.market-section {
  position: relative;
  padding: clamp(4rem, 6vw, 6.25rem) 0;
}

.market-section--soft {
  border-block: 1px solid var(--market-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--market-surface-soft) 82%, transparent), var(--market-surface-soft));
}

.market-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.market-section__header--center {
  display: block;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.market-section__title {
  margin: 0;
  color: var(--market-text) !important;
  font-size: clamp(1.75rem, 1.4rem + 1.15vw, 2.55rem);
  font-weight: 750 !important;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.market-section__copy {
  max-width: 62ch;
  margin: 0.65rem 0 0;
  color: var(--market-muted) !important;
  font-size: 1rem;
  line-height: 1.7;
}

.market-section__header--center .market-section__copy {
  margin-inline: auto;
}

.market-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(70, 128, 255, 0.18);
  border-radius: 999px;
  background: rgba(70, 128, 255, 0.09);
  color: var(--ticketplace-primary, #4680ff);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.market-eyebrow--warning {
  border-color: rgba(255, 193, 7, 0.28);
  background: rgba(255, 193, 7, 0.12);
  color: #9b6b00;
}

:root[data-pc-theme="dark"] .market-eyebrow--warning,
.dark-theme .market-eyebrow--warning {
  color: #ffd66b;
}

/* Hero */
.market-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 7.25rem) 0 3.25rem;
  background:
    linear-gradient(118deg, #0d255d 0%, #214aa6 46%, #4680ff 100%);
  color: #ffffff;
}

:root[data-pc-theme="dark"] .market-hero,
.dark-theme .market-hero {
  background:
    linear-gradient(118deg, #080f1d 0%, #10234b 48%, #1d4da5 100%);
}

.market-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 10%, rgba(113, 202, 255, 0.34), transparent 28%),
    radial-gradient(circle at 12% 92%, rgba(40, 167, 69, 0.22), transparent 26%),
    radial-gradient(circle at 92% 82%, rgba(255, 193, 7, 0.2), transparent 22%);
  content: "";
}

.market-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-position: center;
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 75%, transparent 100%);
  pointer-events: none;
}

.market-hero > .container {
  position: relative;
  z-index: 2;
}

.market-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 2.6rem;
}

.market-hero__intro {
  max-width: 730px;
}

.market-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  padding: 0.46rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.market-hero__kicker i {
  color: #ffd15c;
  font-size: 1rem;
}

.market-hero .market-hero__title {
  max-width: 16ch;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(2.45rem, 2rem + 2.25vw, 4.75rem);
  font-weight: 800 !important;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.market-hero .market-hero__lead {
  max-width: 59ch;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
  line-height: 1.7;
}

.market-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.market-hero__links .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 1rem;
}

/* « Explorer les offres » : bloc d'encre translucide plutôt qu'un aplat blanc.
   La seule action pleine du bandeau reste le bouton de recherche. */
.market-hero__links .btn-light {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(14, 22, 38, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(5, 19, 50, 0.28);
  backdrop-filter: blur(10px);
}

.market-hero__links .btn-light i {
  color: var(--market-amber);
}

.market-hero__links .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.36) !important;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.market-hero__visual {
  position: relative;
  min-height: 310px;
  perspective: 1000px;
}

.market-hero__visual::before {
  position: absolute;
  inset: 12% 4% 2% 10%;
  border-radius: 50%;
  background: rgba(90, 169, 255, 0.32);
  filter: blur(64px);
  content: "";
}

.market-ticket {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 355px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 34px 70px rgba(4, 14, 39, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translate(-50%, -50%) rotateY(-7deg) rotateX(3deg);
  backdrop-filter: blur(18px);
}

.market-ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem 0.85rem;
}

.market-ticket__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.market-ticket__brand i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: #356de4;
  font-size: 1rem;
}

.market-ticket__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 650;
}

.market-ticket__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59dc8b;
  box-shadow: 0 0 0 4px rgba(89, 220, 139, 0.14);
  content: "";
}

.market-ticket__body {
  padding: 0.9rem 1.3rem 1.2rem;
}

.market-ticket__eyebrow {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-ticket__title {
  margin: 0.35rem 0 1rem;
  color: #ffffff !important;
  font-size: 1.28rem;
  font-weight: 750 !important;
  letter-spacing: -0.02em;
}

.market-ticket__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.market-ticket__meta span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
}

.market-ticket__meta i {
  color: #ffd15c;
  font-size: 1rem;
}

.market-ticket__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(2, 12, 37, 0.16);
}

.market-ticket__stub::before,
.market-ticket__stub::after {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2553ac;
  content: "";
}

.market-ticket__stub::before {
  left: -10px;
}

.market-ticket__stub::after {
  right: -10px;
}

.market-ticket__stub strong {
  display: block;
  color: #ffffff;
  font-size: 0.85rem;
}

.market-ticket__stub small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.market-ticket__qr {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 9px;
  background: #ffffff;
  color: #18377b;
  font-size: 1.9rem;
}

.market-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(10, 31, 77, 0.64);
  box-shadow: 0 16px 36px rgba(5, 16, 40, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

.market-float i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  font-size: 1rem;
}

.market-float--bus {
  top: 4%;
  right: -1%;
}

.market-float--bus i {
  background: rgba(89, 220, 139, 0.16);
  color: #72e69e;
}

.market-float--content {
  bottom: 3%;
  left: -2%;
}

.market-float--content i {
  background: rgba(255, 193, 7, 0.16);
  color: #ffd15c;
}

/* Hero switcher and search */
.market-hero__search {
  position: relative;
}

.market-hero__tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 25, 65, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  list-style: none;
  backdrop-filter: blur(14px);
}

.market-hero__tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 150ms var(--market-ease-out);
}

.market-hero__tabs .nav-link i {
  font-size: 1.05rem;
}

/* Onglet courant : pastille d'encre, libellé blanc, icône ambre.
   Remplace l'ancienne pastille blanche qui rivalisait avec la carte. */
.market-hero__tabs .nav-link.active {
  background: var(--market-ink);
  box-shadow:
    0 7px 18px rgba(5, 17, 43, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.market-hero__tabs .nav-link.active i {
  color: var(--market-amber);
}

.market-hero__tabs .nav-link:active {
  transform: scale(0.97);
}

.market-home .search-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 28px 70px rgba(5, 18, 48, 0.28);
}

:root[data-pc-theme="dark"] .market-home .search-card,
.dark-theme .market-home .search-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(28, 39, 53, 0.96) !important;
}

.search-card__label {
  margin-bottom: 0.45rem;
  color: var(--market-muted) !important;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-card .form-control,
.search-card .form-select,
.search-card .input-group-text,
.search-card__submit {
  min-height: 48px;
}

.search-card .form-control,
.search-card .form-select {
  background: var(--market-surface-soft) !important;
  border-color: transparent !important;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
  border-color: var(--ticketplace-primary, #4680ff) !important;
  box-shadow: 0 0 0 3px rgba(70, 128, 255, 0.16) !important;
}

.search-card .input-group-text {
  border-color: transparent !important;
  background: var(--market-surface-soft);
  color: var(--market-muted);
}

/* Le bouton de recherche est la seule action pleine du bandeau : ambre sur
   encre. Contraste ~11:1, bien au-delà du seuil AA. */
.market-home .search-card__submit.btn-primary {
  border-color: var(--market-amber-deep) !important;
  background: linear-gradient(180deg, var(--market-amber), var(--market-amber-deep)) !important;
  color: var(--market-on-amber) !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(240, 168, 0, 0.32);
}

.market-home .search-card__submit.btn-primary:focus-visible {
  outline: 3px solid var(--market-on-amber);
  outline-offset: 2px;
}

.market-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.7rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.market-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}

.market-hero__trust i {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
}

/* Cards */
.market-home .content-card {
  overflow: hidden;
  border: 1px solid var(--market-border) !important;
  border-radius: 16px;
  background: var(--market-surface) !important;
  box-shadow: var(--market-shadow-sm) !important;
  transition:
    transform 220ms var(--market-ease-out),
    box-shadow 220ms ease,
    border-color 180ms ease;
}

.market-home .content-card.border-dashed {
  border: 1px dashed rgba(70, 128, 255, 0.5) !important;
  background:
    linear-gradient(145deg, rgba(70, 128, 255, 0.07), transparent 70%),
    var(--market-surface) !important;
}

.market-home .content-card .badge.bg-light.text-dark {
  background: var(--market-surface-soft) !important;
  color: var(--market-muted) !important;
}

.card-img-container,
.content-thumbnail,
.placeholder-thumbnail {
  height: 205px;
}

.card-img-container {
  overflow: hidden;
  background: var(--market-surface-soft);
}

.content-thumbnail {
  width: 100%;
  object-fit: cover;
  transition: transform 280ms var(--market-ease-out);
}

.placeholder-thumbnail {
  background:
    radial-gradient(circle at 30% 20%, rgba(70, 128, 255, 0.13), transparent 40%),
    var(--market-surface-soft);
  color: var(--market-muted);
}

.content-type-badge {
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(13, 25, 48, 0.15);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.badge-movie {
  background: rgba(220, 53, 69, 0.92);
  color: #ffffff;
}

.badge-clip {
  background: rgba(13, 202, 240, 0.92);
  color: #082933;
}

.badge-music,
.badge-default {
  background: rgba(70, 128, 255, 0.94);
  color: #ffffff;
}

.badge-documentary {
  background: rgba(25, 135, 84, 0.94);
  color: #ffffff;
}

.badge-series {
  background: rgba(255, 193, 7, 0.95);
  color: #332600;
}

.badge-podcast {
  background: rgba(90, 101, 116, 0.94);
  color: #ffffff;
}

.badge-sponsored {
  background: rgba(255, 193, 7, 0.96);
  color: #342700;
}

.price-badge-simple {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(20, 46, 93, 0.9);
  box-shadow: 0 4px 14px rgba(13, 25, 48, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.content-title-link {
  color: var(--market-text) !important;
  line-height: 1.35;
  transition: color 160ms ease;
}

.content-stats {
  margin: 0 -0.25rem;
  padding: 0.72rem;
  border: 1px solid var(--market-border);
  border-radius: 12px;
  background: var(--market-surface-soft);
}

.stat-item {
  padding: 0.25rem;
}

.stat-item i {
  display: block;
  font-size: 1rem;
}

.stat-value {
  margin-bottom: 0.125rem;
  color: var(--market-text);
  font-size: 0.84rem;
  font-weight: 650;
}

.stat-label {
  color: var(--market-muted) !important;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* Promoted band */
.market-promoted::before {
  position: absolute;
  top: 0;
  right: 6%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.08);
  content: "";
  filter: blur(42px);
  pointer-events: none;
}

.market-section__action {
  flex: 0 0 auto;
  box-shadow: 0 9px 24px rgba(255, 193, 7, 0.18);
}

/* Catalogue */
.market-catalog {
  background: var(--market-bg);
}

.market-tabs-shell {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.45rem;
  border: 1px solid var(--market-border);
  border-radius: 15px;
  background: var(--market-surface);
  box-shadow: var(--market-shadow-sm);
}

#catalogTabs {
  flex-wrap: nowrap;
  gap: 0.35rem !important;
  margin: 0 !important;
}

#catalogTabs .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.58rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--market-muted) !important;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 150ms var(--market-ease-out);
}

#catalogTabs .nav-link > i {
  margin-right: 0.42rem !important;
  font-size: 1.08rem;
}

#catalogTabs .nav-link .badge {
  min-width: 25px;
  margin-left: 0.5rem !important;
  padding: 0.28rem 0.4rem;
  border-radius: 7px;
  background: var(--market-surface-soft) !important;
  color: var(--market-muted) !important;
  font-size: 0.62rem;
}

#catalogTabs .nav-link.active {
  background: var(--ticketplace-primary, #4680ff);
  box-shadow: 0 7px 18px rgba(70, 128, 255, 0.24);
  color: #ffffff !important;
}

#catalogTabs .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

#catalogTabs .nav-link:active {
  transform: scale(0.97);
}

.market-catalog__panel {
  min-height: 250px;
}

.market-categories {
  border-color: var(--market-border) !important;
}

.market-categories .btn {
  border-color: var(--market-border-strong);
  color: var(--market-muted);
}

/* Leaderboard */
.market-leaderboard {
  padding: 0 0 clamp(4rem, 6vw, 6rem);
  background: var(--market-bg);
}

.market-leaderboard .content-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(70, 128, 255, 0.09), rgba(40, 167, 69, 0.04)),
    var(--market-surface) !important;
}

/* Trust and process */
.market-trust {
  overflow: hidden;
}

.market-process-panel {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--market-border);
  border-radius: 20px;
  background: var(--market-surface);
  box-shadow: var(--market-shadow);
}

.market-process-panel::after {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(70, 128, 255, 0.14), rgba(40, 167, 69, 0.08));
  content: "";
  transform: rotate(9deg);
  pointer-events: none;
}

.market-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
}

.market-step:not(:last-child)::after {
  position: absolute;
  top: 54px;
  bottom: -6px;
  left: 21px;
  width: 1px;
  background: var(--market-border-strong);
  content: "";
}

.market-step__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(70, 128, 255, 0.2);
  border-radius: 13px;
  background: var(--market-surface-tint);
  color: var(--ticketplace-primary, #4680ff);
  font-size: 0.82rem;
  font-weight: 800;
}

.market-step:nth-of-type(2) .market-step__number {
  border-color: rgba(40, 167, 69, 0.2);
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.market-step:nth-of-type(3) .market-step__number {
  border-color: rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.11);
  color: #b47d00;
}

.market-step h3 {
  margin: 0.15rem 0 0.25rem;
  color: var(--market-text) !important;
  font-size: 0.95rem;
  font-weight: 700 !important;
}

.market-step p {
  margin: 0;
  color: var(--market-muted) !important;
  font-size: 0.82rem;
  line-height: 1.55;
}

.market-stats-grid .card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--market-border) !important;
  border-radius: 16px;
  box-shadow: var(--market-shadow-sm) !important;
}

.market-stats-grid .card::after {
  position: absolute;
  right: -22px;
  bottom: -25px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(70, 128, 255, 0.08);
  content: "";
}

.market-stats-grid h3 {
  color: var(--market-text) !important;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

/* Même langage que .market-step__number et les pastilles des offres pro :
   une icône dans un carré teinté, pas une icône nue. */
.market-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.market-stat__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 0.6rem;
  place-items: center;
  border: 1px solid var(--market-border);
  border-radius: 11px;
  font-size: 1.15rem;
}

.market-stat__icon--primary {
  border-color: rgba(70, 128, 255, 0.2);
  background: var(--market-surface-tint);
  color: var(--ticketplace-primary, #4680ff);
}

.market-stat__icon--success {
  border-color: rgba(40, 167, 69, 0.2);
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.market-stat__icon--info {
  border-color: rgba(13, 202, 240, 0.24);
  background: rgba(13, 202, 240, 0.11);
  color: #0f8ba8;
}

.market-stat__icon--warning {
  border-color: rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.11);
  color: #b47d00;
}

:root[data-pc-theme="dark"] .market-stat__icon--info,
.dark-theme .market-stat__icon--info {
  color: #4fd3f0;
}

:root[data-pc-theme="dark"] .market-stat__icon--warning,
.dark-theme .market-stat__icon--warning {
  color: #ffd66b;
}

.market-stat__label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Encart publicitaire vide : même hauteur de média que les cartes produits,
   pour que la rangée ne s'effondre pas sur la dernière colonne. */
.ad-teaser__media {
  border-bottom: 1px dashed rgba(70, 128, 255, 0.35);
  background:
    radial-gradient(circle at 30% 20%, rgba(70, 128, 255, 0.12), transparent 45%),
    var(--market-surface-soft);
}

.market-testimonials {
  border-color: var(--market-border) !important;
}

.market-testimonials .content-card {
  box-shadow: none !important;
}

/* Partner plans */
.market-partner {
  background:
    radial-gradient(circle at 50% 10%, rgba(70, 128, 255, 0.08), transparent 30rem),
    var(--market-bg);
}

.market-home .market-plan {
  overflow: visible;
  border-radius: 18px;
}

.market-plan .avtar {
  border: 1px solid var(--market-border);
  border-radius: 12px !important;
}

.market-plan ul li {
  display: flex;
  align-items: flex-start;
  line-height: 1.45;
}

.market-plan ul li i {
  margin-top: 0.08rem;
}

.market-home .market-plan--featured {
  border: 1px solid rgba(70, 128, 255, 0.56) !important;
  box-shadow:
    0 24px 62px rgba(70, 128, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.market-plan__badge {
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(70, 128, 255, 0.24);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.market-home .market-newsletter {
  overflow: hidden;
  border: 1px solid rgba(70, 128, 255, 0.22) !important;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 0%, rgba(107, 166, 255, 0.22), transparent 42%),
    linear-gradient(135deg, var(--market-surface-tint), var(--market-surface)) !important;
  box-shadow: var(--market-shadow) !important;
}

.market-newsletter__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-right: 0.75rem;
  place-items: center;
  border-radius: 12px;
  background: var(--ticketplace-primary, #4680ff);
  box-shadow: 0 8px 18px rgba(70, 128, 255, 0.2);
  color: #ffffff;
  vertical-align: middle;
}

.market-newsletter .input-group-text {
  border-color: var(--market-border) !important;
  background: var(--market-surface-soft);
  color: var(--market-muted);
}

/* Un seul anneau de focus pour toute la page : le bouton de recherche était
   jusqu'ici le seul élément à en avoir un. */
.market-home a:focus-visible,
.market-home .btn:focus-visible,
.market-home .nav-link:focus-visible,
.market-home .form-control:focus-visible,
.market-home .form-select:focus-visible {
  outline: 3px solid var(--ticketplace-primary, #4680ff);
  outline-offset: 2px;
  border-radius: 10px;
}

.market-hero a:focus-visible,
.market-hero .btn:focus-visible,
.market-hero .nav-link:focus-visible {
  outline-color: #ffffff;
}

/* Interaction polish */
@media (hover: hover) and (pointer: fine) {
  .market-home .content-card:hover {
    border-color: rgba(70, 128, 255, 0.42) !important;
    box-shadow: var(--market-shadow-hover) !important;
    transform: translateY(-5px);
  }

  .market-home .content-card:hover .content-thumbnail {
    transform: scale(1.035);
  }

  .market-home .content-title-link:hover {
    color: var(--ticketplace-primary, #4680ff) !important;
  }

  .market-home .btn-primary:hover {
    box-shadow: 0 9px 22px rgba(70, 128, 255, 0.28);
    transform: translateY(-1px);
  }

  .market-hero__tabs .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }

  #catalogTabs .nav-link:hover:not(.active) {
    background: var(--market-surface-soft);
    color: var(--ticketplace-primary, #4680ff) !important;
  }

  .market-hero__links .btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
  }

  .market-hero__links .btn-light:hover {
    border-color: rgba(255, 255, 255, 0.32) !important;
    background: rgba(14, 22, 38, 0.72) !important;
    color: #ffffff !important;
  }

  .market-home .search-card__submit.btn-primary:hover {
    background: linear-gradient(180deg, #ffcd2e, var(--market-amber)) !important;
    box-shadow: 0 11px 26px rgba(240, 168, 0, 0.42);
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .market-hero__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .market-hero__intro {
    max-width: 760px;
  }

  .market-hero__visual {
    display: none;
  }

  .market-section__header {
    align-items: flex-start;
  }

  .market-tabs-shell {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-tabs-shell::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .market-section {
    padding-block: 3.75rem;
  }

  .market-section__header {
    display: block;
    margin-bottom: 1.5rem;
  }

  .market-section__action {
    margin-top: 1.25rem;
  }

  .market-hero {
    padding: 3.75rem 0 2.5rem;
  }

  .market-hero .market-hero__title {
    max-width: 18ch;
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .market-hero__tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-hero__tabs::-webkit-scrollbar {
    display: none;
  }

  .market-hero__tabs .nav-item {
    flex: 1 0 auto;
  }

  .market-hero__tabs .nav-link {
    justify-content: center;
    width: 100%;
    padding-inline: 0.85rem;
  }

  .market-home .search-card {
    border-radius: 15px;
  }

  .market-hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .card-img-container,
  .content-thumbnail,
  .placeholder-thumbnail {
    height: 190px;
  }

  .market-process-panel {
    padding: 1.35rem;
  }

  .market-newsletter__icon {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .market-hero__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-hero__links .btn {
    justify-content: center;
  }

  .market-hero__tabs .nav-link span {
    display: none;
  }

  .market-hero__tabs .nav-link.active span {
    display: inline;
  }

  .market-hero__trust {
    grid-template-columns: 1fr;
  }

  .market-tabs-shell {
    margin-inline: -0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-home .content-card,
  .market-home .content-thumbnail,
  .market-home .btn,
  .market-hero__tabs .nav-link,
  #catalogTabs .nav-link {
    transition-duration: 0.01ms !important;
  }

  .market-home .content-card:hover,
  .market-home .btn:hover {
    transform: none;
  }
}
