﻿/* ─────────────────────────────────────────────────────────
   GODTHIC — TRAJECTOIRE DE FORMATION (v2)
   Narration verticale au scroll avec ligne progressive active.
   Fond noir GODTHIC, blanc typographique, accent rouge.
   Aucune numérotation, aucune carte classique, zéro grille.
───────────────────────────────────────────────────────── */

.trajectoire {
  position: relative;
  padding: clamp(90px, 12vw, 160px) clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  box-sizing: border-box;
}

/* ── En-tête éditorial ── */
.trajectoire-header {
  margin-bottom: clamp(70px, 10vw, 120px);
}

.trajectoire-header .kicker {
  color: var(--red, #f00);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.trajectoire-header h2 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.trajectoire-rule {
  width: 36px;
  height: 2px;
  background: var(--red, #f00);
  margin: 28px 0 0;
}

/* ── Piste verticale ── */
.trajectoire-track {
  position: relative;
  padding: 10px 0 40px;
}

/* Ligne de base (sombre / discrète) */
.trajectoire-line-base {
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
  pointer-events: none;
}

/* Ligne active (progresse au scroll réel) */
.trajectoire-line-fill {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffffff 0%, #ff1a1a 25%, #ff0000 100%);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
  transition: height 0.08s ease-out;
}

/* ── Étapes narratives ── */
.trajectoire-step {
  position: relative;
  display: flex;
  margin-bottom: clamp(100px, 15vh, 180px);
  z-index: 3;
}

.trajectoire-step:last-child {
  margin-bottom: 0;
}

/* Conteneur du point */
.trajectoire-dot-wrap {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 4;
}

/* Point de base (avant activation) */
.trajectoire-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #08080a;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px #000;
  transition: background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Point activé */
.trajectoire-dot.is-active {
  background: var(--red, #f00);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px #000, 0 0 14px rgba(255, 0, 0, 0.85);
  transform: scale(1.25);
}

/* Dernier point (Diplôme) — légèrement plus fort */
.trajectoire-dot.final-dot {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.38);
}

.trajectoire-dot.final-dot.is-active {
  background: var(--red, #f00);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px #000, 0 0 20px rgba(255, 0, 0, 0.95);
  transform: scale(1.35);
}

/* ── Contenu d’une étape ── */
.trajectoire-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Révélation du contenu dès que le point est atteint */
.trajectoire-step.is-revealed .trajectoire-content {
  opacity: 1;
  transform: translateY(0);
}

/* Éléments intérieurs */
.trajectoire-content .trajectoire-kicker {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red, #f00);
  margin: 0 0 8px;
}

.trajectoire-content .trajectoire-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #fff;
}

.trajectoire-content .trajectoire-meta {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
  line-height: 1.4;
}

.trajectoire-content .trajectoire-text {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Apprentissages / Grands axes (flux typographique discret avec séparateurs) */
.trajectoire-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trajectoire-tags span {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.trajectoire-tags span:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 0, 0, 0.5);
}

/* Outils de fabrication */
.trajectoire-tools {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-label {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red, #f00);
  margin-bottom: 8px;
  font-weight: 700;
}

.tools-list {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Spécificités Diplôme (aboutissement) */
.trajectoire-step.is-final .trajectoire-title {
  font-size: clamp(24px, 3.6vw, 40px);
  color: #fff;
}

.trajectoire-step.is-final .trajectoire-meta {
  color: var(--red, #f00);
  font-weight: 600;
}

.trajectoire-step.is-final .trajectoire-text {
  font-size: clamp(16px, 1.7vw, 18px);
  color: rgba(255, 255, 255, 0.9);
}

/* ── Alternance DESKTOP (>= 900px) ── */
@media (min-width: 900px) {
  .step-left {
    justify-content: flex-start;
  }
  .step-left .trajectoire-content {
    width: calc(50% - 52px);
    margin-right: auto;
    margin-left: 0;
    text-align: left;
  }

  .step-right {
    justify-content: flex-end;
  }
  .step-right .trajectoire-content {
    width: calc(50% - 52px);
    margin-left: calc(50% + 52px);
    margin-right: 0;
    text-align: left;
  }
}

/* ── Disposition MOBILE (< 900px) ── */
@media (max-width: 899px) {
  .trajectoire {
    padding: clamp(60px, 10vw, 90px) 20px;
  }

  .trajectoire-line-base,
  .trajectoire-line-fill {
    left: 24px;
  }

  .trajectoire-step {
    display: block;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 56px;
    margin-bottom: clamp(70px, 12vh, 120px);
  }

  .trajectoire-dot-wrap {
    left: 24px;
    top: 4px;
  }

  .step-left .trajectoire-content,
  .step-right .trajectoire-content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

/* ── Préférence réduction de mouvement ── */
@media (prefers-reduced-motion: reduce) {
  .trajectoire-line-fill {
    transition: none;
  }
  .trajectoire-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .trajectoire-dot {
    transition: none !important;
  }
}