/* Section 06 — Parcours : texte, informations et frise des postes (prototype index.html:73-78, 89, 513-536) */

.parcours {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.parcours :where(h2, p, dl, dd) {
  margin: 0;
}

.parcours-texte {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Le gap de .parcours-texte remplace la marge basse de .eyebrow (base.css) */
.parcours .eyebrow {
  margin: 0;
  color: var(--ambre-sur-parcours);
}

.parcours-accroche {
  font-family: var(--police-titre);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.parcours-corps {
  font-size: clamp(16px, 1vw, 19px);
  line-height: 1.65;
  color: var(--texte-parcours);
}

.parcours-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--bordure-puce-claire);
}

.parcours-infos dt {
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--texte-etiquette-parcours);
}

.parcours-infos dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Frise (index.html:73-75) : --tlp posé par initFrise (scroll-fx.js), aucune transition */
.frise {
  position: relative;
  display: flex;
  flex: 1.3 1 440px;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}

.frise::before,
.frise::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

.frise::before {
  background: var(--bordure-puce-claire);
}

.frise::after {
  background: var(--ambre);
  transform: scaleY(var(--tlp, 0));
  transform-origin: top;
}

/* Aucune transition propre : celle de .rv (motion.css) reste intacte */
.poste {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--bordure-puce-claire);
}

.poste:first-child {
  border-top: 2px solid var(--encre);
}

.poste:last-child {
  border-bottom: 1px solid var(--bordure-puce-claire);
}

/* Carré (index.html:77-78) : s'allume quand initReveal marque le poste (.in), avec son retard --rd */
.poste::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -36px;
  z-index: 1;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ambre);
  background: var(--creme-parcours);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--rd, 0s) + 0.25s);
}

.poste.in::before {
  transform: scale(1);
}

.poste-date {
  padding-top: 3px;
  font-family: var(--police-mono);
  font-size: 13px;
  color: var(--ambre-sur-parcours);
}

.poste-role {
  font-family: var(--police-titre);
  font-size: 19px;
  font-weight: 600;
}

.poste-org {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--texte-parcours);
}

/* Position du carré seulement (index.html:89), aucune grille touchée */
@media (width <= 720px) {
  .poste::before {
    left: -30px;
  }
}

/* Sans mouvement, initReveal et initFrise ne s'exécutent pas : frise pleine et carrés visibles d'emblée (écart voulu au prototype, index.html:91) */
@media (prefers-reduced-motion: reduce) {
  .frise::after {
    transform: scaleY(1);
  }

  .poste::before {
    transform: scale(1);
    transition: none;
  }
}
