/* ==========================================================================
   MON PARCOURS — IMMERSION NARRATIVE & TRAIT BLEU DOUX
   Timeline Horizontale Épurée Sans Encadré (Jeanne Chadeyras)
   ========================================================================== */

:root {
  --line-blue: #8fa7b8;
  --btn-blue: #9ab4c5;
  --btn-blue-hover: #b8ccdb;
  
  --bg-color: #050505;
  --bg-surface: #0a0a0a;
  
  --text-primary: #f5f5f3;
  --text-muted: rgba(245, 245, 243, 0.65);
  --text-subtle: rgba(245, 245, 243, 0.35);
  --text-ghost: rgba(245, 245, 243, 0.18);
  
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --gold-accent: #c5a880;
  
  --font-serif-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-serif-logo: 'Italiana', 'Bodoni Moda', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  
  --ease-couture: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================================
   ZONE DE TRANSITION : FLÈCHE BLANCHE & TRAIT S'ALLONGEANT
   Visible dès qu'on regarde la présentation ("découvrir mon parcours")
   ========================================================================= */
.parcours-journey-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 15;
}

.parcours-arrow-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Espace éditorial au-dessus depuis le profil */
  margin-top: clamp(140px, 28vh, 280px);
  /* Espace réduit en dessous pour enchaîner immédiatement avec la première expérience */
  padding: 0 4vw 16px;
  text-align: center;
  position: relative;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.parcours-arrow-label {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--line-blue);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.parcours-arrow-label::before {
  content: '[';
  color: var(--text-subtle);
}

.parcours-arrow-label::after {
  content: ']';
  color: var(--text-subtle);
}

.parcours-arrow-transition:hover .parcours-arrow-label {
  color: #ffffff;
}

.dynamic-arrow-stem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 80px;
}

.dynamic-arrow-stem {
  width: 3px;
  height: 50px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  transition: height 0.05s ease-out;
}

.dynamic-arrow-tip {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dynamic-arrow-tip svg {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 3px 10px rgba(255, 255, 255, 0.4));
}

/* =========================================================================
   CONTENEUR HORIZONTAL STICKY PLEIN ÉCRAN
   Le scroll horizontal commence dès l'enfance et chaque expérience s'affiche
   individuellement avec un large espacement fluide.
   ========================================================================= */
.timeline-scroll-wrapper {
  position: relative;
  width: 100%;
  height: 520vh;
}

.timeline-section-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  z-index: 20;
}

/* Le track horizontal */
.timeline-horizontal-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  /* Centrage parfait du premier et de chaque élément */
  padding: 0 calc((100vw - min(68vw, 920px)) / 2);
  box-sizing: border-box;
  will-change: transform;
  /* Large espacement pour affichage individuel à l'écran */
  gap: clamp(45vw, 65vw, 85vw);
}

/* =========================================================================
   LIGNE DE FORMATION : BUT MÉTIERS DU MULTIMÉDIA ET DE L'INTERNET
   Démarre entre 00 · Genèse et s'arrête avant Toulouse
   Positionnée bien au-dessus de la nav pour être parfaitement mise en valeur
   ========================================================================= */
.formation-timeline-track {
  position: absolute;
  bottom: clamp(100px, 14vh, 140px);
  left: 0;
  width: 0;
  height: 42px;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
}

.formation-line-stem {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(143, 167, 184, 0.25) 0%, rgba(143, 167, 184, 0.95) 4%, rgba(143, 167, 184, 0.95) 96%, rgba(143, 167, 184, 0.25) 100%);
  box-shadow: 0 0 10px rgba(143, 167, 184, 0.45);
  transform: translateY(-50%);
}

.formation-cap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.formation-cap.cap-start {
  left: 0;
}

.formation-cap.cap-end {
  right: 0;
}

.cap-tick {
  width: 2.5px;
  height: 20px;
  background-color: var(--line-blue);
  box-shadow: 0 0 10px rgba(143, 167, 184, 0.8);
}

.cap-tag {
  position: absolute;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--line-blue);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}

.formation-cap.cap-start .cap-tag {
  left: 0;
}

.formation-cap.cap-end .cap-tag {
  right: 0;
}

.formation-floating-label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  background: rgba(8, 10, 14, 0.96);
  border: 1.5px solid rgba(143, 167, 184, 0.65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(143, 167, 184, 0.25);
  border-radius: 24px;
  padding: 8px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
  transition: transform 0.08s ease-out;
}

.formation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 14px rgba(143, 167, 184, 0.9);
}

.formation-text {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.95vw, 0.8rem);
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  .formation-timeline-track {
    bottom: 84px;
  }
  .formation-floating-label {
    padding: 6px 14px;
  }
  .formation-text {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }
  .cap-tag {
    display: none;
  }
}

/* Le trait bleu doux SVG (aucun néon, tracé mat continu qui chemine) */
.neon-path-svg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.neon-svg-line {
  fill: none;
  stroke: var(--line-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.05s ease-out;
}

.neon-comet-head {
  fill: #ffffff;
  opacity: 0.9;
}

/* =========================================================================
   LES EXPÉRIENCES : AUCUN ENCADRÉ (FLOTTANT ÉPURÉ & INDIVIDUEL PAR ÉCRAN)
   ========================================================================= */
.experience-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(680px, 68vw, 920px);
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 4.5vw, 4.8rem);
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.childhood-item {
  cursor: default;
}

.experience-item.no-photo-item {
  width: clamp(380px, 45vw, 620px);
  justify-content: center;
}

.experience-item.no-photo-item .exp-content-box {
  max-width: 580px;
}

.exp-photo-box {
  position: relative;
  width: clamp(240px, 22vw, 320px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.75);
}

.childhood-photo-frame {
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.childhood-placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  text-align: center;
}

.placeholder-svg-icon {
  width: 34px;
  height: 34px;
  stroke: rgba(255, 255, 255, 0.35);
}

.placeholder-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--line-blue);
}

.exp-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) brightness(0.96);
  transition: transform 0.8s var(--ease-couture);
}

.experience-item:not(.childhood-item):hover .exp-photo-img {
  transform: scale(1.03);
}

.exp-content-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 440px;
  text-align: left;
}

/* Polices authentiques de la charte du site (conservées scrupuleusement) */
.exp-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--line-blue);
  margin: 0;
}

.exp-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}

.exp-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(245, 245, 243, 0.78);
  font-weight: 300;
  margin: 0;
}

/* Le bouton rectangulaire bleu doux de la maquette */
.exp-btn-discover {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.6rem;
  background-color: var(--btn-blue);
  color: #050505;
  border: none;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  font-weight: 500;
  padding: 10px 26px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.exp-btn-discover:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================================
   LE MINI-MENU DE NAVIGATION RAPIDE (BOTTOM PILLS)
   ========================================================================= */
.timeline-quick-nav-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid var(--hairline-strong);
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-couture);
}

.timeline-quick-nav-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.quick-nav-pill {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.3s var(--ease-smooth);
}

.quick-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-ghost);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.quick-nav-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.quick-nav-pill:hover .quick-nav-dot {
  background-color: var(--line-blue);
}

.quick-nav-pill.active {
  color: #ffffff;
  background: rgba(143, 167, 184, 0.16);
  border: 1px solid var(--line-blue);
}

.quick-nav-pill.active .quick-nav-dot {
  background-color: #ffffff;
  transform: scale(1.25);
}

/* =========================================================================
   DRAWER / MODALE DES DÉTAILS D'EXPÉRIENCE (CONSERVÉE À 100%)
   ========================================================================= */
.parcours-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 680px;
  height: 100vh;
  background-color: #0b0b0b;
  border-left: 1px solid var(--hairline-strong);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-couture);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.parcours-detail-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(2rem, 3.5vw, 2.8rem) clamp(2rem, 4vw, 3rem) 1.5rem;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.drawer-step-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--line-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.drawer-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.drawer-close-btn {
  background: none;
  border: 1px solid var(--hairline-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.drawer-close-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.drawer-body {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.drawer-text-content h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 1.2rem;
  line-height: 1.4;
}

.drawer-text-content p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 245, 243, 0.78);
  margin-bottom: 1.2rem;
}

.drawer-text-content ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.drawer-text-content li {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245, 245, 243, 0.78);
}

.drawer-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.drawer-skill-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 14px;
}

.drawer-gallery-column {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.drawer-gallery-column img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--hairline);
  filter: contrast(1.05);
}

/* =========================================================================
   RESPONSIVE DESIGN POUR PETITS ÉCRANS
   ========================================================================= */
@media (max-width: 900px) {
  .timeline-horizontal-track {
    padding: 0 8vw;
    gap: 40vw;
  }

  .experience-item {
    width: 84vw;
    flex-direction: column;
    text-align: center;
    gap: 1.6rem;
  }
  
  .exp-content-box {
    text-align: center;
    align-items: center;
  }
  
  .exp-btn-discover {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .parcours-arrow-transition {
    margin-top: clamp(60px, 12vh, 90px);
  }

  .timeline-horizontal-track {
    padding: 0 6vw;
    gap: 50vw;
  }

  .experience-item {
    width: 88vw;
    max-width: 340px;
    gap: 1rem;
  }

  .exp-photo-box {
    width: clamp(160px, 44vw, 195px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  }

  .exp-title {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.18;
  }

  .exp-desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .exp-btn-discover {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .formation-timeline-track {
    bottom: 58px;
  }

  .formation-floating-label {
    padding: 5px 12px;
  }

  .formation-text {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .timeline-quick-nav-bar {
    bottom: 12px;
    max-width: 94vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 8px;
    gap: 4px;
    justify-content: flex-start;
  }

  .timeline-quick-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .quick-nav-pill {
    padding: 6px 9px;
    font-size: 0.55rem;
    letter-spacing: 0.10em;
  }

  .parcours-detail-drawer {
    width: 100%;
    max-width: 100%;
    border-left: none;
  }

  .drawer-header {
    padding: 1.2rem 1.2rem 1rem;
  }

  .drawer-title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  .drawer-close-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-body {
    padding: 1.2rem;
    gap: 1.8rem;
  }

  .drawer-gallery-column {
    grid-template-columns: 1fr;
  }
}
