/* ============================================================
   PARCOURS/PROGRESSION PAGES - Learning Path Timeline Styles
   Pour les pages de parcours de progression (FR, EN, AR)
   ============================================================ */

/* ============= CONTAINER ============= */
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ============= TIMELINE STRUCTURE ============= */
.timeline {
  position: relative;
  margin: 60px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 2px;
}

/* ============= STAGE MARKERS ============= */
.stage {
  position: relative;
  margin-bottom: 60px;
  padding-left: 80px;
}

.stage-marker {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stage-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
  border: 4px solid var(--dark);
  z-index: 2;
}

.stage-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.stage-1 .stage-circle { background: linear-gradient(135deg, #6A8B4A, #8BAA6A); }
.stage-2 .stage-circle { background: linear-gradient(135deg, #4A8B8B, #6AABAB); }
.stage-3 .stage-circle { background: linear-gradient(135deg, #4A7A8B, #6A9AAB); }
.stage-4 .stage-circle { background: linear-gradient(135deg, #8B4A8B, #AB6AAB); }
.stage-5 .stage-circle { background: linear-gradient(135deg, #C4744A, #E8946A); }
.stage-6 .stage-circle { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

/* ============= STAGE CONTENT ============= */
.stage-content {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow: hidden;
}

.stage-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.stage-content:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 50px rgba(201, 168, 76, 0.15);
}

.stage-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 15px;
  font-weight: 700;
}

.stage-budget {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 15px;
  border: 1px solid var(--gold-dim);
}

.stage-tagline {
  color: var(--cream-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ============= SUBSECTIONS ============= */
.subsection {
  margin: 30px 0;
  padding: 25px;
  background: var(--dark4);
  border-radius: 15px;
  border-left: 4px solid var(--gold);
}

.subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ============= ITEM LISTS ============= */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--dark3);
  border-radius: 12px;
  border: 1px solid var(--dark4);
  transition: all 0.3s ease;
}

.item-row:hover {
  border-color: var(--gold-dim);
  transform: translateX(5px);
}

.item-name {
  font-weight: 600;
  color: var(--cream);
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.item-name .price {
  background: var(--gold-soft);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.item-desc {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============= SKILLS GRID ============= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.skill-pill {
  background: var(--dark3);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--gold-dim);
  transition: all 0.3s ease;
}

.skill-pill:hover {
  background: var(--gold-soft);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============= PROJECTS ROW ============= */
.projects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tag {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============= CHECKPOINTS ============= */
.checkpoint {
  margin: 25px 0;
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dim));
  border-radius: 15px;
  border-left: 4px solid var(--gold);
}

.checkpoint-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.checkpoint-content {
  color: var(--cream);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============= COMPARISON TABLE ============= */
.compare-section {
  margin: 80px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.15);
}

.compare-table thead {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.compare-table th {
  color: var(--dark);
  font-weight: 700;
  padding: 20px 15px;
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--dark4);
  color: var(--cream);
  font-size: 0.95rem;
}

.compare-table tbody tr:hover {
  background: var(--dark4);
}

.compare-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--gold);
  text-align: left;
}

/* ============= INFO BOXES ============= */
.info-box {
  background: var(--dark3);
  border: 1px solid var(--gold-dim);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.info-box.pro-tip {
  background: linear-gradient(135deg, rgba(74, 139, 139, 0.1), rgba(74, 139, 139, 0.05));
  border-color: var(--accent-blue);
}

.info-box.tip {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
  border-color: var(--gold);
}

.info-box h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.info-box p {
  color: var(--cream-dim);
  line-height: 1.7;
}

.info-box em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* ============= UTILITY CLASSES ============= */
.mb-80 {
  margin-bottom: 80px;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage {
  animation: fadeInUp 0.6s ease backwards;
}

.stage:nth-child(1) { animation-delay: 0.05s; }
.stage:nth-child(2) { animation-delay: 0.1s; }
.stage:nth-child(3) { animation-delay: 0.15s; }
.stage:nth-child(4) { animation-delay: 0.2s; }
.stage:nth-child(5) { animation-delay: 0.25s; }
.stage:nth-child(6) { animation-delay: 0.3s; }

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
  .container-narrow {
    padding: 0 15px 60px;
  }

  .timeline::before {
    left: 20px;
  }

  .stage {
    padding-left: 60px;
    margin-bottom: 40px;
  }

  .stage-circle {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  .stage-label {
    font-size: 0.7rem;
  }

  .stage-content {
    padding: 25px;
  }

  .stage-title {
    font-size: 1.5rem;
  }

  .stage-budget {
    font-size: 0.9rem;
  }

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

  .subsection {
    padding: 20px;
  }

  .subsection-title {
    font-size: 1.1rem;
  }

  .item-row {
    padding: 15px;
  }

  .item-name {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--gold);
    z-index: 10;
  }

  .compare-table tbody tr td:first-child {
    background: var(--dark3);
    color: var(--gold);
  }
}

/* ============= ARABIC RTL SUPPORT ============= */
[dir="rtl"] .timeline::before {
  left: auto;
  right: 30px;
}

[dir="rtl"] .stage {
  padding-left: 0;
  padding-right: 80px;
}

[dir="rtl"] .stage-marker {
  left: auto;
  right: 0;
}

[dir="rtl"] .stage-content::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .subsection {
  border-left: none;
  border-right: 4px solid var(--gold);
}

[dir="rtl"] .checkpoint {
  border-left: none;
  border-right: 4px solid var(--gold);
}

[dir="rtl"] .item-row:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .compare-table tbody tr td:first-child {
  text-align: right;
}

@media (max-width: 768px) {
  [dir="rtl"] .timeline::before {
    right: 20px;
  }

  [dir="rtl"] .stage {
    padding-right: 60px;
  }

  [dir="rtl"] .item-name {
    align-items: flex-end;
  }

  [dir="rtl"] .compare-table th:first-child,
  [dir="rtl"] .compare-table td:first-child {
    left: auto;
    right: 0;
  }
}
