/* Hallmark · version F5, les chapitres · theme: custom · idea: "les huit pôles défilent à l'horizontale comme les chapitres d'un même fil" · hero: typographic, the eight poles as coloured chips · signature: the pinned horizontal run of pole panels */

.v-f5 { --font-display: "League Spartan", ui-sans-serif, system-ui, sans-serif; }

.f5-hero { padding-block: var(--space-3xl) var(--space-2xl); }
.f5-hero h1 { font-size: clamp(3rem, 7.5vw + 1rem, 9rem); line-height: 0.92; max-width: 12ch; }
.f5-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-xl); margin-top: var(--space-xl); }
.f5-lead { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.f5-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.f5-chip { padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); font-weight: 600; animation: f5-pop 0.6s var(--ease-out) both; }
.f5-chip:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
.f5-c0 { background: var(--blue); color: var(--on-blue); }
.f5-c1 { background: var(--sky); color: var(--sky-ink); }
.f5-c2 { background: var(--blue-deep); color: var(--on-blue); }
.f5-c3 { background: var(--sky-soft); color: var(--sky-ink); }
.f5-c4 { background: var(--blue-mid); color: var(--ink); }

.f5-track { position: relative; padding-block: var(--space-2xl); }
.f5-sticky { overflow: hidden; }
.f5-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-md); margin-bottom: var(--space-xl); }
.f5-count { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; color: var(--ink-2); }
.f5-count i { width: 160px; height: 4px; border-radius: 4px; background: var(--rule); display: block; overflow: hidden; }
.f5-count b { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0.125); transition: transform var(--dur-short) var(--ease-out); }
.f5-strip { display: flex; gap: var(--space-lg); margin: 0; padding: 0 var(--gutter) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.f5-strip:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.f5-panel { position: relative; flex: 0 0 min(600px, 82vw); min-height: min(520px, 56svh); padding: var(--space-xl); border-radius: 36px; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-lg); }
.f5-panel h3 { font-size: clamp(2.25rem, 2.6vw + 1rem, 3.5rem); line-height: 0.95; }
.f5-panel p { margin-top: var(--space-sm); font-size: var(--text-lg); line-height: 1.5; max-width: 26rem; }
.f5-panel ul { margin: var(--space-md) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.f5-panel li { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, currentColor 14%, transparent); font-size: var(--text-sm); font-weight: 600; }
.f5-panel__shot { margin: auto 0 0; align-self: flex-end; width: 76%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-deep); transform: rotate(-4deg) translate(6%, 10%); background: var(--white); }
.f5-panel__shot img { width: 100%; height: auto; }
.f5-panel__shot.is-phone { width: 34%; }

/* pinned mode, set by the script on wide screens */
.f5-track.is-pinned .f5-sticky { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; }
.f5-track.is-pinned .f5-strip { overflow: visible; scroll-snap-type: none; will-change: transform; }

@keyframes f5-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

@media (max-width: 60rem) {
  .f5-strip { flex-direction: column; overflow: visible; scroll-snap-type: none; padding-inline: var(--gutter); }
  .f5-panel { flex: none; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .f5-chip { animation: none; } }
