/* ========================================
   JAMT - STYLES ISOLÉS POUR ÉVITER LES CONFLITS
   ======================================== */

/* Reset spécifique au plugin - ne s'applique qu'aux éléments JAMT */
.jamt-jobs-list *,
.jamt-jobs-list *::before,
.jamt-jobs-list *::after {
  box-sizing: border-box !important;
}

/* Container principal avec isolation */
.jamt-jobs-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  line-height: 1.6 !important;
  color: #333 !important;
  background: transparent !important;
}

/* Carte de job avec styles isolés */
.jamt-job-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.jamt-job-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Header de la carte */
.jamt-job-card-header {
  margin-bottom: 16px !important;
}

.jamt-job-title {
  margin: 0 0 8px 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #1f2937 !important;
}

.jamt-job-title a {
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.jamt-job-title a:hover {
  color: #667eea !important;
  text-decoration: none !important;
}

.jamt-job-company {
  color: #667eea !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
}

/* Métadonnées du job */
.jamt-job-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
}

.jamt-job-meta-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jamt-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2 !important;
  flex-shrink: 0 !important;
}

/* Description du job */
.jamt-job-description {
  color: #4b5563 !important;
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Footer de la carte */
.jamt-job-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f3f4f6 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Boutons avec styles isolés */
.jamt-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  gap: 8px !important;
  margin: 0 !important;
  font-family: inherit !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.jamt-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
}

.jamt-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
  color: white !important;
  text-decoration: none !important;
}

.jamt-btn-outline {
  background: transparent !important;
  color: #667eea !important;
  border: 2px solid #667eea !important;
}

.jamt-btn-outline:hover {
  background: #667eea !important;
  color: white !important;
  text-decoration: none !important;
}

/* État vide */
.jamt-jobs-list p:only-child {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 60px 20px !important;
  color: #6b7280 !important;
  font-size: 16px !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .jamt-jobs-list {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .jamt-job-card {
    padding: 20px !important;
  }
  
  .jamt-job-card-footer {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .jamt-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .jamt-job-meta {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .jamt-job-title {
    font-size: 1.1rem !important;
  }
}

/* Override des styles de thème potentiels */
.jamt-jobs-list h1,
.jamt-jobs-list h2,
.jamt-jobs-list h3,
.jamt-jobs-list h4,
.jamt-jobs-list h5,
.jamt-jobs-list h6 {
  font-family: inherit !important;
  line-height: inherit !important;
  margin: inherit !important;
  padding: inherit !important;
}

.jamt-jobs-list a {
  text-decoration: inherit !important;
  color: inherit !important;
}

.jamt-jobs-list button,
.jamt-jobs-list input,
.jamt-jobs-list select,
.jamt-jobs-list textarea {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Isolation supplémentaire pour les éléments critiques */
.jamt-job-card * {
  font-family: inherit !important;
}

/* Reset des marges et paddings pour éviter les conflits */
.jamt-job-card * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Restauration des marges spécifiques */
.jamt-job-title {
  margin-bottom: 8px !important;
}

.jamt-job-company {
  margin-bottom: 16px !important;
}

.jamt-job-meta {
  margin-bottom: 16px !important;
}

.jamt-job-description {
  margin-bottom: 20px !important;
}

.jamt-job-card-footer {
  margin-top: 18px !important;
  padding-top: 16px !important;
} 