/* =============================== */
/*      ÉTAPE 8 - Générique & Crédits*/
/* =============================== */

/* ================================
   Layout principal
   ================================ */
.etape-main {
  padding: 20px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 220px);
}

.etape-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ================================
   Titre & description
   ================================ */
.etape-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}

.etape-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.etape-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ================================
   Sections de formulaire
   ================================ */
.form-line {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-line:last-of-type {
  margin-bottom: 18px;
}

.form-line label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  resize: vertical;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:hover {
  background: #f9fafb;
  border-color: #a1a5b5;
}

.form-input:focus {
  outline: none;
  background: #fff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* ================================
   Prévisualisations vidéo
   ================================ */
.video-preview {
  margin-top: 12px;
  padding: 14px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
}

.video-preview iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  display: block;
}

.video-preview-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: #0f172a;
  font-size: 0.9rem;
}

/* ================================
   Messages d'erreur
   ================================ */
.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muted {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================================
   Actions
   ================================ */
.etape-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.btn-etape {
  padding: 0.7rem 1.2rem;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: 
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-etape:hover {
  background: #f9fafb;
  border-color: #a1a5b5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-etape.primary {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

.btn-etape.primary:hover {
  background: #0b98d6;
  border-color: #0b98d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #0b98d6;
  border-color: #0b98d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

/* ================================
   Indicateur d'étape
   ================================ */
.etape-indicateur {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e88e5 0%, #7e57c2 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: max-content;
  margin-top: 24px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.etape-indicateur:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 136, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 640px) {
  .etape-form {
    padding: 16px;
  }

  .form-line {
    margin-bottom: 16px;
  }

  .etape-title {
    font-size: 1.4rem;
  }

  .video-preview iframe {
    height: 200px;
  }

  .etape-actions {
    flex-direction: column;
    gap: 8px;
  }

  .etape-actions .btn-etape,
  .etape-actions .btn-secondary {
    width: 100%;
  }
}
