@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  scrollbar-width: thin;
  scrollbar-color: #57b0e2 #033084;
}

*::-webkit-scrollbar {
  width: 6px;
}

*::-webkit-scrollbar-track {
  background: #033084;
}

*::-webkit-scrollbar-thumb {
  background: #57b0e2;
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #8EC92B;
}

::selection {
  background: rgba(142, 201, 43, 0.35);
  color: #fff;
}

.nav-link:hover {
  background: rgba(87, 176, 226, 0.15);
  color: #fff !important;
}

.nav-link.active {
  background: rgba(142, 201, 43, 0.25);
  color: #8EC92B !important;
  border-left: 3px solid #8EC92B;
}

/* Navigation mobile bas (style app — icônes uniquement) */
.bottom-nav-item {
  color: rgba(255, 255, 255, 0.55);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #8EC92B;
  background: rgba(142, 201, 43, 0.12);
}

.bottom-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(142, 201, 43, 0.45));
}

#mobile-nav-more-sheet.is-open {
  transform: translateY(0);
}

#mobile-nav-more-overlay.is-open {
  display: block;
}

.mobile-more-link.active {
  outline: 2px solid #8EC92B;
  color: #8EC92B !important;
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e2e8f0;
  -webkit-box-shadow: 0 0 0px 1000px #020617 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hover\:bg-dark-750:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

.admin-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.admin-table-scroll table {
  min-width: 1320px;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: middle;
}

.admin-users-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-users-scroll .admin-users-table {
  min-width: 720px;
}

.bg-dark-750 {
  background-color: rgba(30, 41, 59, 0.5);
}

@media (max-width: 767px) {
  .nav-link.active {
    border-left: none;
    border-bottom: 2px solid #8EC92B;
  }

  .admin-users-scroll .admin-users-table {
    min-width: 0;
  }
}

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

.admin-btn {
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
}

.admin-btn-sm {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

/* Bordures : suppression des contours qui pixelisent */
.tool-card,
.tool-frame-wrapper,
.btn-tool-header {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.tool-frame-wrapper {
  background: #fff;
}

.tool-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

#favorites-section .tool-card:hover {
  box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.15) !important;
}

/* Pronostics - focus Heppner */
.pronos-input:focus {
  --tw-ring-color: rgba(142, 201, 43, 0.5);
  border-color: #8EC92B;
}

/* Mode plein écran pour les outils */
body.tool-fullscreen #sidebar,
body.tool-fullscreen #mobile-bottom-nav,
body.tool-fullscreen #mobile-nav-more-overlay,
body.tool-fullscreen #mobile-nav-more-sheet {
  display: none !important;
}

body.tool-fullscreen main {
  margin-left: 0 !important;
  padding-bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

body.tool-fullscreen #tool-view-container {
  padding: 0.75rem;
  height: 100vh;
  max-height: 100vh;
}
