/* Styles pour la page unifiée */
.unified-theme {
  background-color: #f8f9fa;
}

.unified-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.unified-search .search-row,
.unified-search .filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.search-field {
  position: relative;
  flex: 3;
  min-width: 300px;
}

.search-field input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.search-field i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
}

.filter-field {
  flex: 1;
  min-width: 150px;
}

.filter-field select,
.filter-field input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-btn,
.btn-reset-search {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

.search-btn {
  background: #007bff;
  color: white;
  flex-shrink: 0;
}

.search-btn:hover {
  background: #0056b3;
}

.search-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

.advanced-filters .filter-field select {
  background-color: #e9ecef;
  font-style: italic;
}

.stats-section {
  padding: 40px 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.stat-card i {
  font-size: 2.5rem;
  color: #667eea;
  margin-right: 15px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.platform-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.platform-btn {
  padding: 10px 20px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.platform-btn:hover {
  border-color: var(--platform-color, #667eea);
  color: var(--platform-color, #667eea);
}

.platform-btn.active {
  background: var(--platform-color, #667eea);
  color: white;
  border-color: var(--platform-color, #667eea);
}

.job-card-new {
  width: 320px;
}

.job-card-unified {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.job-card-unified:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.job-card-unified.visited {
  opacity: 0.8;
  background: #f8f9fa;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 10px;
}

.platform-badge {
  padding: 5px 12px;
  border-radius: 15px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

.card-company {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #495057;
}

.card-company i {
  margin-right: 8px;
  color: #6c757d;
}

.card-details {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.7rem;
}

.detail-item i {
  margin-right: 5px;
}

.card-description {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  padding: 0 20px 20px;
}

.card-details-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-details-btn:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.card-details-btn i {
  margin-right: 8px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #dee2e6;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.btn-view-all {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
}

.btn-reset-search {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-reset-search:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-reset-search i {
  margin-right: 8px;
}

/* Style pour les offres déjà visitées */
.job-card.visited {
  background-color: #f5f5f5 !important;
  border-top-color: #9e9e9e !important;
  position: relative;
}

.job-card.visited::after {
  content: "Déjà consulté";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(120, 120, 120, 0.8);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  z-index: 10;
}

.job-card.visited .info-box {
  opacity: 0.8;
}

.job-card.visited .poste {
  color: #666;
}

.job-card.visited .header {
  opacity: 0.85;
}

.job-card.visited .details-btn {
  background-color: #878787;
}

.job-card.visited .details-btn:hover {
  background-color: #6d6d6d;
}

/* Style pour la navigation entre sources */
.source-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.source-btn {
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.source-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.source-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
}

.source-btn.compare-btn {
  background-color: #28a745;
  color: white;
  border-color: #1e7e34;
  margin-left: 5px;
}

.source-btn.compare-btn:hover {
  background-color: #218838;
}

.source-btn.unified-btn {
  background-color: #6f42c1;
  color: white;
  border-color: #5a2d91;
  margin-right: 5px;
}

.source-btn.unified-btn:hover {
  background-color: #5a2d91;
}

/* Responsive */
@media (max-width: 768px) {
  .unified-search .search-row {
    flex-direction: column;
    gap: 10px;
  }

  .search-field,
  .filter-field {
    min-width: 100%;
  }

  .platform-filters {
    flex-direction: column;
    align-items: center;
  }

  .card-details {
    flex-direction: column;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}