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

* {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

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

*::-webkit-scrollbar-track {
  background: #0f172a;
}

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

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

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-left: 3px solid #3b82f6;
}

.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);
}

.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 #3b82f6;
  }
}

/* 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;
}

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

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

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