/* === STAGE PAGE === */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: white;
}

.stage-main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* === STAGE SECTION === */
.stage-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  animation: fadeSlide 0.8s ease-out;
}

/* === STAGE HEADERS === */
.stage-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  color: white;
  text-align: left;
}

.stage-oeno {
  background: linear-gradient(135deg, #007acc, #005fa3);
}

.stage-info2r {
  background: linear-gradient(135deg, #e67e22, #ca6f1e);
}

.stage-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stage-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stage-entreprise {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.stage-titre {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.stage-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.stage-meta span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* === STAGE BODY === */
.stage-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stage-missions h3,
.stage-docs h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === MISSIONS LIST === */
.missions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.missions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  padding: 0.5rem 0.8rem;
  background: #f8fbff;
  border-radius: 8px;
}

.missions-list li i {
  color: #007acc;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.stage-info2r ~ .stage-body .missions-list li i,
.stage-section:nth-child(2) .missions-list li i {
  color: #e67e22;
}

/* === DOCS (réutilisation des styles formation) === */
.procedure-list {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.procedure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  gap: 1rem;
}

.procedure-item:last-child {
  border-bottom: none;
}

.procedure-item:hover {
  background: #f8fbff;
}

.procedure-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  flex: 1;
}

.pdf-icon {
  font-size: 1.4rem;
  color: #c0392b;
  flex-shrink: 0;
}

.procedure-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.procedure-meta {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.15rem;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #007acc;
  color: #007acc;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-pdf:hover {
  background: #007acc;
  color: white;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .stage-header {
    padding: 1.2rem;
    flex-wrap: wrap;
  }

  .stage-entreprise {
    font-size: 1rem;
  }

  .stage-body {
    padding: 1.2rem;
  }

  .stage-meta {
    gap: 0.7rem;
  }

  .procedure-item {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}