/* ex-inline subjects/master.html — externalisé pour la mise en cache */
/* Réutiliser les styles de licence.html + styles spécifiques */

/* Progress Timeline */
.progress-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 45px;
  width: 2px;
  height: calc(100% + 2rem);
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.completed .timeline-icon {
  background: var(--success-color);
  color: white;
}

.timeline-item.in-progress .timeline-icon {
  background: var(--warning-color);
  color: white;
  animation: pulse 2s infinite;
}

.timeline-item.upcoming .timeline-icon {
  background: var(--bg-gray);
  color: var(--text-light);
}

.timeline-content h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-medium);
  margin: 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

/* Specialization Cards */
.specialization-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.specialization-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spec-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spec-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.spec-list li {
  padding: 0.5rem 0;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-list i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.spec-status {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Resource Items */
.resource-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.resource-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.resource-item .resource-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.75rem;
}

.resource-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.resource-item p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .progress-timeline {
    gap: 1.5rem;
  }
  
  .timeline-item {
    gap: 1rem;
  }
}
