/* ==========================================================
   Transports Huby — page « Notre histoire » (à part du site)
   ========================================================== */
body.story { background: var(--navy-950); color: #fff; }

/* Barre minimale */
.story-bar {
  position: fixed; top: 14px; left: 16px; right: 16px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1200px; margin: 0 auto;
}
.story-bar__logo { background: rgba(255,255,255,.96); padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.story-bar__logo img { height: 34px; width: auto; }
.story-bar__back {
  display: inline-flex; align-items: center; gap: 8px; padding: .7em 1.2em; border-radius: 999px;
  background: rgba(12,20,48,.75); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); transition: background .25s, box-shadow .25s;
}
.story-bar__back:hover { background: var(--blue-600); box-shadow: none; }
.story-bar__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.story-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: rgba(255,255,255,.08); }
.story-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); transform-origin: left; transform: scaleX(0); }

/* Ouverture */
.story-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.story-hero__img { position: absolute; inset: -6% 0 0; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.story-hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7,12,31,.35) 0%, rgba(7,12,31,.2) 35%, rgba(7,12,31,.92) 85%, var(--navy-950) 100%),
  linear-gradient(90deg, rgba(7,12,31,.6), transparent 60%); }
.story-hero__content { position: relative; z-index: 2; padding: 0 0 14vh; }
.story-hero .eyebrow { color: var(--blue-400); opacity: 0; animation: fade 1s .1s var(--ease) forwards; }
.story-hero h1 { font-size: clamp(2.6rem, 7.5vw, 6.4rem); margin: 18px 0 20px; }
.story-hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.story-hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.story-hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.story-hero h1 em { font-style: normal; color: var(--blue-400); }
.story-hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.8); max-width: 560px; margin: 0; opacity: 0; animation: fade 1s .55s var(--ease) forwards; }
.story-hero__hint { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.6); }
.story-hero__hint i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.4); position: relative; }
.story-hero__hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }

/* Introduction */
.story-intro { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 80px); }
.story-intro__lead { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.4; font-weight: 500; max-width: 900px; margin: 0 auto; text-align: center; color: rgba(255,255,255,.85); }
.story-intro__lead strong { color: var(--blue-400); font-weight: 800; }

/* Frise */
.timeline { position: relative; width: min(1200px, 100% - 40px); margin: 0 auto; padding: 40px 0 60px; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(255,255,255,.1); }
.timeline__line span { display: block; height: 100%; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px rgba(77,155,227,.6); }
.chap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 60px 0; }
.chap__dot {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; font-weight: 800; font-stretch: 125%; font-size: .95rem;
  background: var(--navy-900); color: rgba(255,255,255,.5); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
  transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease);
}
.chap.is-reached .chap__dot { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 8px rgba(20,98,171,.25); transform: scale(1.06); }
.chap__media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.chap__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.chap__media.is-in img { transform: scale(1); }
.chap__media.reveal { transform: none; clip-path: inset(18% 18% 18% 18% round 22px); opacity: 1; transition: clip-path 1.2s var(--ease); }
.chap__media.reveal.is-in { clip-path: inset(0 0 0 0 round 22px); }
.chap__when { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 14px; }
.chap h2 { font-stretch: 120%; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.01em; }
.chap p { color: rgba(255,255,255,.72); margin: 0; font-size: 1.05rem; line-height: 1.75; }
.chap--alt .chap__media { order: 2; }
.chap--alt .chap__text { order: 1; text-align: right; }

/* Chiffres */
.story-facts { padding: 60px 0 90px; }
.story-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.story-facts__grid > div { padding: 30px 24px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.story-facts b { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--blue-400); margin-bottom: 10px; }
.story-facts span { color: rgba(255,255,255,.7); font-size: .95rem; }

/* Conclusion */
.story-end { padding: clamp(60px, 10vw, 130px) 0; text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, rgba(20,98,171,.35), transparent 70%); }
.story-end__quote { margin: 0; }
.story-end__quote p { margin: 0; font-stretch: 120%; font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; }
.story-end__quote em { font-style: normal; color: var(--blue-400); }
.story-end__sub { color: rgba(255,255,255,.7); font-size: 1.15rem; margin: 22px 0 34px; }
.story-end__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.story-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; font-size: .9rem; color: rgba(255,255,255,.55); }
.story-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.story-foot a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.story-foot svg { width: 16px; height: 16px; }

/* Tablette / mobile : frise à gauche */
@media (max-width: 860px) {
  .timeline { padding-left: 34px; }
  .timeline__line { left: 14px; }
  .chap, .chap--alt { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .chap__dot { left: -20px; top: 36px; margin: 0; width: 40px; height: 40px; font-size: .78rem; }
  .chap--alt .chap__media, .chap--alt .chap__text { order: 0; text-align: left; }
  .chap__media { aspect-ratio: 16 / 11; }
  .story-facts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .story-bar__logo img { height: 28px; }
  .story-bar__back { padding: .6em 1em; font-size: .85rem; }
  .story-hero__content { padding-bottom: 16vh; }
  .story-hero__hint { display: none; }
  .story-intro__lead { text-align: left; }
  .story-facts__grid > div { padding: 20px 16px; }
  .story-facts span { font-size: .85rem; }
  .story-end__actions .btn { width: 100%; }
  .story-foot .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .chap__media.reveal { clip-path: none; }
  .story-hero h1 .line > span { transform: none; }
}
