.seo-tools-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.seo-tools-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar gauche */
.seo-tools-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.seo-tools-sidebar-header h2 {
  margin: 0 0 20px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.seo-tools-categories-list {
  margin-bottom: 30px;
}

.seo-tools-category-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #666;
  transition: all 0.2s ease;
}

.seo-tools-category-item:hover {
  background: #f5f5f5;
  color: #333;
}

.seo-tools-category-item.active {
  font-weight: 500;
  /* La couleur sera définie dynamiquement via JS pour correspondre au badge */
}

.seo-tools-category-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  background-color: #000 !important;
}

.category-badge i {
  font-size: 14px;
  color: #fff;
}

.seo-tools-filters-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.seo-tools-filters-section h3 {
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-inline {
  display: flex;
  gap: 15px;
}

.filter-group-inline .filter-item {
  flex: 1;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.seo-tools-filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

/* Contenu principal */
.seo-tools-main {
  flex: 1;
  min-width: 0;
}

.seo-tools-search-bar {
  margin-bottom: 25px;
  position: relative;
}

.seo-tools-search-input {
  width: 100%;
  padding: 12px 16px;
  height: 40px;
  padding-right: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #000;
  background: #fff;
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.seo-tools-search-input:focus {
  outline: none;
  border-color: #667eea;
}

.seo-tools-search-input::placeholder {
  color: #999;
}

.seo-tools-search-bar::after {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 16px;
  pointer-events: none;
}

.seo-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.seo-tool-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.seo-tool-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #667eea;
}

.seo-tool-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
}

.seo-tool-icon {
  flex-shrink: 0;
}

.seo-tool-favicon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.seo-tool-name {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.seo-tool-arrow {
  color: #999;
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.seo-tool-card:hover .seo-tool-arrow {
  color: #667eea;
  transform: translateX(3px);
}

.seo-tool-body {
  margin-bottom: 10px;
}

.seo-tool-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.seo-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.seo-tool-badge-gratuit {
  background: #e8f5e9;
  color: #2e7d32;
}

.seo-tool-badge-free {
  background: #e8f5e9;
  color: #2e7d32;
}

.seo-tool-badge-freemium {
  background: #fff3e0;
  color: #e65100;
}

.seo-tool-badge-free-trial {
  background: #e3f2fd;
  color: #1565c0;
}

.seo-tool-badge-country {
  background: #f5f5f5;
  color: #666;
}

.seo-tool-badge-type {
  background: #f3e5f5;
  color: #7b1fa2;
}

.seo-tool-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-tool-category-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 11px;
  color: #666;
}

.seo-tools-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
}

.seo-tools-error {
  padding: 20px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .seo-tools-layout {
    flex-direction: column;
  }
  
  .seo-tools-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
  
  .seo-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .seo-tools-container {
    padding: 15px;
  }
  
  .seo-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-tools-sidebar {
    padding: 15px;
  }
}
