/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Sticky vertical scroll stats section layout and animations */
.stats-window {
  position: relative;
  width: 100%;
}

.stats-tape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.text-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.text-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* ========================================
   Footer responsive design and spacing
   ======================================== */
.footer-nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-nav-container {
    justify-content: flex-end;
  }
}

.footer-nav-item {
  white-space: nowrap;
  color: #a1a1aa; /* text-zinc-400 */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-item:hover {
  color: #ffffff; /* white */
}

.footer-links-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  row-gap: 0.625rem;
}

@media (min-width: 1024px) {
  .footer-links-container {
    justify-content: flex-end;
    column-gap: 1.5rem;
  }
}

.footer-link-item {
  white-space: nowrap;
  color: #71717a; /* text-zinc-500 */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-item:hover {
  color: #ffffff; /* white */
  text-decoration: underline;
}

.footer-separator {
  color: #3f3f46; /* text-zinc-700 */
  user-select: none;
}

@media (max-width: 767px) {
  .footer-separator {
    display: none;
  }
}

/* Layout pour la page Juridique & Conformité */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.legal-sidebar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.legal-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.legal-sidebar-link.active {
  background-color: #18181b; /* zinc-900 */
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.legal-sidebar-link.inactive {
  color: #52525b; /* zinc-600 */
}

.legal-sidebar-link.inactive:hover {
  background-color: #e4e4e7; /* zinc-200 */
  color: #18181b; /* zinc-900 */
}

.legal-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border: 1px solid #e4e4e7; /* zinc-200 */
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .legal-grid {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }

  .legal-sidebar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 0;
    position: sticky;
    top: 2rem;
    align-self: start;
  }

  .legal-sidebar-link {
    width: 100%;
  }

  .legal-card {
    padding: 2.5rem;
  }
}
