:root {
  --tf-footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(244, 247, 250, 0.92) 55%, rgba(244, 247, 250, 1) 100%);
  --tf-footer-surface: rgba(255, 255, 255, 0.72);
  --tf-footer-border: rgba(29, 38, 48, 0.1);
  --tf-footer-text: #1d2630;
  --tf-footer-muted: rgba(29, 38, 48, 0.68);
  --tf-footer-link: rgba(29, 38, 48, 0.82);
  --tf-footer-link-hover: #4680ff;
  --tf-footer-shadow: 0 18px 70px rgba(27, 46, 94, 0.18);
}

:root[data-pc-theme="dark"] {
  --tf-footer-bg: linear-gradient(180deg, rgba(29, 38, 48, 0.95) 0%, rgba(18, 22, 28, 1) 100%);
  --tf-footer-surface: rgba(42, 52, 65, 0.62);
  --tf-footer-border: rgba(255, 255, 255, 0.1);
  --tf-footer-text: rgba(255, 255, 255, 0.94);
  --tf-footer-muted: rgba(255, 255, 255, 0.66);
  --tf-footer-link: rgba(255, 255, 255, 0.82);
  --tf-footer-link-hover: #ffc107;
  --tf-footer-shadow: 0 20px 85px rgba(0, 0, 0, 0.55);
}

.landing-footer,
.pc-footer.tf-footer {
  position: relative;
  overflow: hidden;
  color: var(--tf-footer-text);
  background: var(--tf-footer-bg);
  border-top: 1px solid var(--tf-footer-border);
}

.landing-footer::before,
.pc-footer.tf-footer::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(70, 128, 255, 0.24) 0%, rgba(70, 128, 255, 0) 62%),
    radial-gradient(900px 520px at 88% 22%, rgba(255, 193, 7, 0.22) 0%, rgba(255, 193, 7, 0) 62%),
    radial-gradient(900px 520px at 60% 120%, rgba(40, 167, 69, 0.18) 0%, rgba(40, 167, 69, 0) 62%);
  opacity: 0.9;
}

:root[data-pc-theme="dark"] .landing-footer::before,
:root[data-pc-theme="dark"] .pc-footer.tf-footer::before {
  opacity: 0.55;
}

.landing-footer > *,
.pc-footer.tf-footer > * {
  position: relative;
  z-index: 1;
}

.landing-footer h4,
.landing-footer h5,
.pc-footer.tf-footer h4,
.pc-footer.tf-footer h5,
.pc-footer.tf-footer h6 {
  color: var(--tf-footer-text);
  letter-spacing: -0.02em;
}

.landing-footer p,
.pc-footer.tf-footer p,
.landing-footer small,
.pc-footer.tf-footer small {
  color: var(--tf-footer-muted);
}

.landing-footer a,
.pc-footer.tf-footer a {
  color: var(--tf-footer-link);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.landing-footer a:hover,
.pc-footer.tf-footer a:hover {
  color: var(--tf-footer-link-hover);
}

.landing-footer hr,
.pc-footer.tf-footer hr {
  border: 0;
  height: 1px;
  opacity: 1;
  background: linear-gradient(90deg, rgba(70, 128, 255, 0) 0%, rgba(70, 128, 255, 0.45) 18%, rgba(255, 193, 7, 0.5) 50%, rgba(40, 167, 69, 0.35) 82%, rgba(40, 167, 69, 0) 100%);
}

.landing-footer .social-links a,
.pc-footer.tf-footer .tf-footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--tf-footer-border);
  background: var(--tf-footer-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--tf-footer-shadow);
  transform: translateY(0);
}

.landing-footer .social-links a:hover,
.pc-footer.tf-footer .tf-footer-social a:hover {
  transform: translateY(-2px);
}

.landing-footer .social-links i,
.pc-footer.tf-footer .tf-footer-social i {
  font-size: 1rem;
}

.landing-footer .contact-info a {
  font-weight: 600;
}

.pc-footer.tf-footer .footer-wrapper {
  padding-top: 26px;
  padding-bottom: 26px;
}

.pc-footer.tf-footer .tf-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1199.98px) {
  .pc-footer.tf-footer .tf-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  .pc-footer.tf-footer .tf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .pc-footer.tf-footer .tf-footer-grid {
    grid-template-columns: 1fr;
  }
}

.pc-footer.tf-footer .tf-footer-brand {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--tf-footer-border);
  background: var(--tf-footer-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--tf-footer-shadow);
}

.pc-footer.tf-footer .tf-footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.pc-footer.tf-footer .tf-footer-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ticketplace-primary) 0%, var(--ticketplace-secondary) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(70, 128, 255, 0.35);
}

.pc-footer.tf-footer .tf-footer-mark i {
  color: #ffffff;
  font-size: 1.1rem;
}

.pc-footer.tf-footer .tf-footer-title {
  font-size: 1.05rem;
  margin: 0;
}

.pc-footer.tf-footer .tf-footer-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pc-footer.tf-footer .tf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pc-footer.tf-footer .tf-footer-links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pc-footer.tf-footer .tf-footer-links a i {
  opacity: 0.8;
}

.pc-footer.tf-footer .tf-footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tf-footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-footer.tf-footer .tf-footer-bottom .footer-link {
  opacity: 0.95;
}

.pc-footer.tf-footer .tf-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--tf-footer-border);
  background: var(--tf-footer-surface);
  backdrop-filter: blur(14px);
}

.pc-footer.tf-footer .tf-footer-badge i {
  color: var(--ticketplace-warning);
}

/* ==========================================================================
   Pied de page public de la marketplace (.tf-footer-market)

   L'en-tête ouvre la page sur un aplat bleu plein ; le pied la ferme sur un
   aplat d'encre. Même logique de rôles que le hero : encre = fond, ambre =
   accent, blanc = texte. Le liseré pointillé du haut reprend la découpe du
   billet (.market-ticket__stub).
   ========================================================================== */

.tf-footer-market {
  --ftr-bg: #0b1220;
  --ftr-text: #eef2f8;
  --ftr-muted: rgba(238, 242, 248, 0.62);
  --ftr-border: rgba(255, 255, 255, 0.09);
  --ftr-accent: #ffc107;
  position: relative;
  padding: 3.25rem 0 1.75rem;
  background: var(--ftr-bg);
  color: var(--ftr-text);
  /* Découpe du billet : pointillé en haut, comme le talon du hero. */
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}

:root[data-pc-theme="dark"] .tf-footer-market,
.dark-theme .tf-footer-market {
  --ftr-bg: #070c16;
  --ftr-border: rgba(255, 255, 255, 0.08);
}

/* Halo bleu discret, écho du dégradé de l'en-tête. */
.tf-footer-market::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(760px 320px at 6% 0%, rgba(70, 128, 255, 0.16), transparent 70%),
    radial-gradient(620px 280px at 96% 8%, rgba(255, 193, 7, 0.07), transparent 70%);
  content: "";
  pointer-events: none;
}

.tf-footer-market > .container {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------ grille */

.tf-footer-market__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
}

/* ------------------------------------------------------------------ marque */

.tf-footer-market__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ftr-text) !important;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.tf-footer-market__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4680ff, #0d6efd);
  box-shadow: 0 10px 24px rgba(70, 128, 255, 0.35);
}

.tf-footer-market__mark i {
  color: #ffffff;
  font-size: 1.15rem;
}

.tf-footer-market__pitch {
  max-width: 42ch;
  margin: 1rem 0 1.25rem;
  color: var(--ftr-muted) !important;
  font-size: 0.9rem;
  line-height: 1.65;
}

.tf-footer-market__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-footer-market__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ftr-border);
  border-radius: 999px;
  color: var(--ftr-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.tf-footer-market__trust i {
  color: var(--ftr-accent);
  font-size: 0.95rem;
}

.tf-footer-market__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tf-footer-market__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ftr-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ftr-text) !important;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tf-footer-market__social a:hover {
  border-color: var(--ftr-accent);
  background: rgba(255, 193, 7, 0.12);
  color: var(--ftr-accent) !important;
}

/* ------------------------------------------------------------------ colonnes */

.tf-footer-market__title {
  margin: 0 0 1rem;
  color: var(--ftr-text) !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tf-footer-market__links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-footer-market__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ftr-muted) !important;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.tf-footer-market__links a i {
  width: 1.1rem;
  color: rgba(238, 242, 248, 0.38);
  font-size: 1rem;
  transition: color 0.18s ease;
}

.tf-footer-market__links a:hover {
  color: var(--ftr-text) !important;
  transform: translateX(2px);
}

.tf-footer-market__links a:hover i {
  color: var(--ftr-accent);
}

.tf-footer-market a:focus-visible,
.tf-footer-market__social a:focus-visible {
  outline: 2px solid var(--ftr-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ bas de page */

.tf-footer-market__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.75rem;
  /* Réserve la place du bouton « retour en haut » flottant. */
  padding: 1.4rem 4rem 0 0;
  border-top: 1px solid var(--ftr-border);
}

.tf-footer-market__copy {
  margin: 0;
  color: var(--ftr-muted) !important;
  font-size: 0.82rem;
}

.tf-footer-market__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-footer-market__pay li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--ftr-border);
  border-radius: 7px;
  color: var(--ftr-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tf-footer-market__pay i {
  color: var(--ftr-accent);
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 991.98px) {
  .tf-footer-market__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .tf-footer-market__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .tf-footer-market {
    padding: 2.5rem 0 1.5rem;
  }

  .tf-footer-market__grid {
    grid-template-columns: 1fr;
  }

  .tf-footer-market__bottom {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-footer-market__links a,
  .tf-footer-market__social a {
    transition-duration: 0.01ms;
  }

  .tf-footer-market__links a:hover {
    transform: none;
  }
}
