/* Parcours de vie — scroll + trajectoire avion */

:root {
  --j-navy: #1e3a5f;
  --j-navy-deep: #0f172a;
  --j-gold: #fcd34d;
  --j-sky-light: #7dd3fc;
  --j-sky-mid: #38bdf8;
}

body.page-journey {
  margin: 0;
  background: #1e293b;
  color: #f8fafc;
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
  padding-bottom: 4rem;
  -webkit-font-smoothing: antialiased;
}

body.page-journey .navbar {
  position: fixed;
  z-index: 50;
  width: 100%;
  background: rgba(36, 59, 83, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

/* Couche trajectoire (fixe) */
.journey-flight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 42%;
  max-width: 520px;
  right: 0;
  left: auto;
  top: 0;
  height: 100vh;
}

.journey-flight-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

#flight-path {
  fill: none;
  stroke: #fcd34d;
  stroke-opacity: 0.95;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.5));
}

#flight-path-glow {
  fill: none;
  stroke: url(#trailGrad);
  stroke-width: 3.2;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
}

#plane-group {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

@media (max-width: 900px) {
  .journey-flight-layer {
    width: 100%;
    max-width: none;
    opacity: 0.72;
  }
}

/* Progress sticky */
.journey-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.94);
  border-top: 1px solid rgba(252, 211, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.journey-progress-bar {
  flex: 1;
  min-width: 120px;
  height: 7px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, var(--j-gold));
  border-radius: 4px;
  transition: width 0.15s ease-out;
}

.journey-progress-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f1f5f9;
  max-width: 55%;
}

.journey-progress-step {
  font-size: 0.78rem;
  color: #fcd34d;
  font-weight: 800;
  white-space: nowrap;
}

/* Intro ciel */
.journey-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(
      ellipse 130% 90% at 50% 12%,
      #67e8f9 0%,
      #38bdf8 22%,
      #1e3a5f 52%,
      #243b53 88%
    );
  z-index: 2;
}

.journey-intro-clouds {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  animation: cloudsDrift 28s ease-in-out infinite alternate;
}

@keyframes cloudsDrift {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-intro-clouds {
    animation: none;
  }
}

.journey-intro-badge {
  position: relative;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--j-gold);
  margin-bottom: 1rem;
}

.journey-intro h1 {
  position: relative;
  z-index: 2;
  font-family: "Fredoka", cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(15, 23, 42, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.journey-intro h1 span {
  color: var(--j-gold);
}

.journey-intro p {
  position: relative;
  z-index: 2;
  max-width: 540px;
  font-size: 1.12rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.35);
}

.journey-scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  animation: hintBounce 2.2s ease-in-out infinite;
}

.journey-scroll-hint svg {
  width: 28px;
  height: 28px;
  opacity: 0.8;
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-scroll-hint {
    animation: none;
  }
}

/* Sections étapes */
.journey-stops {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.25rem 8rem;
  margin-right: auto;
}

@media (min-width: 901px) {
  .journey-stops {
    margin-right: min(45%, 480px);
    padding-left: 2rem;
  }
}

.journey-stop {
  min-height: min(100vh, 920px);
  padding: 4rem 0 3rem;
  opacity: 1;
}

.journey-phase {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 0.5rem;
}

.journey-phase-title {
  font-family: "Fredoka", cursive;
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  color: #ffffff;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
}

.journey-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.journey-lead {
  font-size: 1.08rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.jd-box {
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.jd-box-constat {
  border-left: 4px solid #f43f5e;
  background: rgba(15, 23, 42, 0.85);
}

.jd-box-engage {
  border-left: 4px solid #38bdf8;
  background: rgba(15, 23, 42, 0.85);
}

.jd-box-extra {
  border-left: 4px solid #a78bfa;
  background: rgba(15, 23, 42, 0.85);
}

.jd-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: #cbd5e1;
}

.jd-box-constat .jd-lbl {
  color: #fecdd3;
}

.jd-box-engage .jd-lbl {
  color: #7dd3fc;
}

.jd-box-extra .jd-lbl {
  color: #ddd6fe;
}

.jd-box p,
.jd-box li {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.jd-box ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

/* Fond par vague de vie (subtil) */
.journey-stop[data-theme="arrival"] {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 116, 144, 0.12) 40%, transparent 100%);
}
.journey-stop[data-theme="health"] {
  background: linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.08) 40%, transparent 100%);
}
.journey-stop[data-theme="school"] {
  background: linear-gradient(180deg, transparent 0%, rgba(251, 191, 36, 0.06) 40%, transparent 100%);
}
.journey-stop[data-theme="work"] {
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.08) 40%, transparent 100%);
}
.journey-stop[data-theme="institution"] {
  background: linear-gradient(180deg, transparent 0%, rgba(125, 211, 252, 0.12) 40%, transparent 100%);
}
.journey-stop[data-theme="retire"] {
  background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.08) 40%, transparent 100%);
}
.journey-stop[data-theme="admin"] {
  background: linear-gradient(180deg, transparent 0%, rgba(251, 113, 133, 0.06) 40%, transparent 100%);
}
.journey-stop[data-theme="end"] {
  background: linear-gradient(180deg, transparent 0%, rgba(30, 41, 59, 0.55) 50%, #1e293b 100%);
}

/* Lien engagements (navbar) */
body.page-journey .nav-engagements {
  color: #e0f2fe !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

body.page-journey .nav-engagements:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(252, 211, 77, 0.5);
}

.journey-alt-link {
  margin-top: 2rem;
  font-size: 0.88rem;
}

.journey-alt-link a {
  color: var(--j-gold);
  font-weight: 600;
}

.journey-footer-note {
  text-align: center;
  padding: 2rem 1rem 6rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.journey-footer-note a {
  color: #fcd34d;
  font-weight: 600;
}
