.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}


h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #1e293b;
}

.intro {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #222;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-bar button {
  padding: 0.4rem 1rem;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-bar button.active-filter,
.filter-bar button:hover {
  background: var(--accent);
  color: white;
}

h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tool-card {
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.tool-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-card p {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 1rem;
}

.badge-recommended {
  background: var(--gold);
  color: #111;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  position: absolute;
  top: 1rem;
  right: 1rem;
  box-shadow: 0 0 10px var(--badge-glow);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: white;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}



/* ✅ TABLETTE : 768px à 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .intro {
    font-size: 1.05rem;
    max-width: 600px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .tool-card {
    padding: 2rem;
  }
  
}

/* ✅ DESKTOP : 1025px et + */
@media (min-width: 1025px) {
 h1 {
    font-size: 3rem;
  }

  .intro {
    font-size: 1.1rem;
    max-width: 700px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
  }

  .tool-card {
    padding: 2rem;
  }
}
