/**
 * ========================================
 * DASHBOARD ACTIVATION - Styles
 * Parcours d'Activation (7 etapes)
 * ========================================
 */

/* ============================================
   Container Principal
   ============================================ */
.activation-content {
  padding: 0 15px;
}

/* ============================================
   Barre de Progression
   ============================================ */
.activation-progress-container {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), var(--bg-card, #1a1a2e));
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
}

.activation-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.activation-progress-container .progress-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activation-progress-container .progress-emoji {
  font-size: 1.5rem;
}

.activation-progress-container .progress-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light, #e6edf3);
}

.activation-progress-container .progress-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FFD700, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.activation-progress-bar {
  height: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.activation-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FF6B35);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.activation-progress-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   Container des Etapes
   ============================================ */
.activation-steps-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

/* ============================================
   Carte d'Etape
   ============================================ */
.activation-step-card {
  background: var(--bg-card, #1a1a2e);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.activation-step-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-2px);
}

/* Etape courante */
.activation-step-card[data-status="current"] {
  border-color: rgba(255,215,0,0.5);
  background: linear-gradient(135deg, rgba(255,215,0,0.08), var(--bg-card, #1a1a2e));
}

/* Etape completee */
.activation-step-card[data-status="completed"] {
  border-color: rgba(0,255,127,0.4);
  background: linear-gradient(135deg, rgba(0,255,127,0.08), var(--bg-card, #1a1a2e));
}

/* Etape verrouillee */
.activation-step-card[data-status="locked"] {
  opacity: 0.6;
}

.activation-step-card[data-status="locked"]:hover {
  transform: none;
}

/* Overlay de verrouillage */
.step-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.activation-step-card[data-status="current"] .step-lock-overlay,
.activation-step-card[data-status="completed"] .step-lock-overlay {
  display: none;
}

.step-lock-overlay .lock-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.step-lock-overlay .lock-text {
  font-size: 0.85rem;
  color: var(--text-muted, #8b949e);
  text-align: center;
  padding: 0 20px;
}

/* Header de l'etape */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
  flex-shrink: 0;
}

.activation-step-card[data-status="completed"] .step-number {
  background: linear-gradient(135deg, #00ff7f, #00d95a);
}

.activation-step-card[data-status="completed"] .step-number::after {
  content: '✓';
  font-size: 1.2rem;
}

.activation-step-card[data-status="completed"] .step-number {
  font-size: 0;
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light, #e6edf3);
  margin: 0 0 5px 0;
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-muted, #8b949e);
  margin: 0;
  line-height: 1.5;
}

.step-time {
  font-size: 0.85rem;
  color: var(--text-muted, #8b949e);
  white-space: nowrap;
}

.step-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(30,144,255,0.2);
  border: 1px solid rgba(30,144,255,0.4);
  border-radius: 12px;
  color: #1e90ff;
  white-space: nowrap;
}

/* Action de l'etape */
.step-action {
  margin-bottom: 15px;
}

.btn-step-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-step-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn-step-action.btn-external {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
}

.btn-step-action.btn-external:hover {
  box-shadow: 0 4px 15px rgba(30,144,255,0.4);
}

.btn-step-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Checkbox de l'etape */
.step-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.step-check-input {
  width: 20px;
  height: 20px;
  accent-color: #00ff7f;
  cursor: pointer;
}

.step-check-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-check-label {
  font-size: 0.9rem;
  color: var(--text-muted, #8b949e);
  cursor: pointer;
}

.step-check-input:checked + .step-check-label {
  color: #00ff7f;
}

/* Status info (pour etape 5) */
.step-status-info {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.step-status-info .status-pending {
  color: #ffa500;
}

.step-status-info .status-validated {
  color: #00ff7f;
}

/* ============================================
   Note de rappel
   ============================================ */
.activation-note {
  background: rgba(30,144,255,0.1);
  border: 1px solid rgba(30,144,255,0.3);
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
}

.activation-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #8b949e);
  line-height: 1.6;
}

.activation-note strong {
  color: var(--text-light, #e6edf3);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .step-header {
    flex-wrap: wrap;
  }

  .step-time,
  .step-badge {
    margin-left: 55px;
    margin-top: -5px;
  }

  .btn-step-action {
    width: 100%;
    justify-content: center;
  }

  .activation-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
