/* Composants : en-tête, liste d'attente, bandeau, journée et carte, cartes scrollytelling, pictos, pied de page */
.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gx);
  border-bottom: var(--line) solid var(--ink);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 34px;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand i, .footer__big i {
  display: inline-block;
  width: var(--dot-size-brand, 0.36em);
  height: var(--dot-size-brand, 0.36em);
  border-radius: 50%;
  background: var(--dot-img) center / contain no-repeat;
}
.topbar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.topbar__nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}
/* soulignement en trame bleue : points cyan sur grille décalée, plus clairs vers le bas */
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -5px;
  height: var(--bar-h, 5.44px);
  background: var(--bar-img) 0 0 / var(--bar-w, 6.4px) var(--bar-h, 5.44px) repeat-x;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.topbar__nav a:hover::after, .topbar__nav a:focus-visible::after, .topbar__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.topbar__nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
/* liste d'attente : bouton carré, décalage en trame violette comme les boutons du héros */
.waitlist-btn {
  position: relative;
  isolation: isolate;
  padding: 9px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s;
}
.waitlist-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
}
.waitlist-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate(4px, 4px);
  background: var(--trame-b);
  transition: transform 0.15s;
}
.waitlist-btn:hover {
  transform: translate(-2px, -2px);
}
.waitlist-btn:hover::before {
  transform: translate(6px, 6px);
}
.waitlist-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.waitlist {
  width: min(92vw, 440px);
  margin: auto;
  padding: 0;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-hard-lg);
  font-family: inherit;
  overflow: visible;
}
.waitlist::backdrop {
  background: var(--scrim);
}
.waitlist__form {
  position: relative;
  padding: 28px 26px 26px;
  display: grid;
  gap: 12px;
}
.waitlist__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
}
.waitlist__close:focus-visible, .waitlist input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.waitlist__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.waitlist h2 {
  font-size: 2.2rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.waitlist__text {
  font-size: 15px;
}
.waitlist__fields {
  display: grid;
  gap: 10px;
}
.waitlist label {
  font-size: 13px;
  font-weight: 700;
}
.waitlist input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.waitlist__error {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}
.waitlist__fine {
  font-size: 12px;
  opacity: 0.7;
}
.waitlist__ok {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 0 4px;
}
.waitlist .btn {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}
.waitlist[hidden], .waitlist__error[hidden], .waitlist__ok[hidden] {
  display: none;
}
/* bandeau clair ; les points reprennent les couleurs des heures de la journée */
.ticker {
  position: relative;
  z-index: 6;
  overflow: hidden;
  border-block: var(--line) solid var(--ink);
  background: var(--paper-bright);
  color: var(--ink);
}
.ticker__track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 14px 36px 14px 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: marquee 44s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
}
.ticker span::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--dawn);
}
.ticker span:nth-child(5n + 2)::before {
  background: var(--noon);
}
.ticker span:nth-child(5n + 3)::before {
  background: var(--aft);
}
.ticker span:nth-child(5n + 4)::before {
  background: var(--dusk);
}
.ticker span:nth-child(5n)::before {
  background: var(--night);
}
.day {
  position: relative;
  z-index: 2;
  padding: 88px var(--gx) 96px;
}
.day__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.day__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}
.day__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: stretch;
}
/* carte sobre : papier, quadrillage léger, rues fines, parcours de la journée */
.map {
  position: relative;
  margin: 0;
  min-height: 600px;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper-bright);
  cursor: crosshair;
}
.map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map__trame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map__streets path, .map__streets ellipse {
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-opacity: 0.4;
}
.map__streets .map__river {
  stroke: var(--cyan);
  stroke-opacity: 0.3;
  stroke-width: 16;
}
.map__streets .map__old {
  stroke-dasharray: 3 8;
  stroke-opacity: 0.45;
}
.map__seg {
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-opacity: 0.55;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-opacity 0.2s, stroke-width 0.2s;
}
.map__seg.is-on {
  stroke-opacity: 1;
  stroke-width: 3;
}
.map.is-drawn .map__seg {
  animation: route-draw 1.1s ease backwards;
}
.map.is-drawn .map__seg:nth-child(2) {
  animation-delay: 0.25s;
}
.map.is-drawn .map__seg:nth-child(3) {
  animation-delay: 0.5s;
}
.map.is-drawn .map__seg:nth-child(4) {
  animation-delay: 0.75s;
}
.pin__core {
  stroke: var(--ink);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s;
}
.pin__halo {
  fill: var(--magenta);
  fill-opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-ping 2.8s ease-out infinite;
}
.pin:nth-child(2) .pin__halo {
  animation-delay: 0.5s;
}
.pin:nth-child(3) .pin__halo {
  animation-delay: 1s;
}
.pin:nth-child(4) .pin__halo {
  animation-delay: 1.5s;
}
.pin:nth-child(5) .pin__halo {
  animation-delay: 2s;
}
.pin.is-on .pin__core {
  transform: scale(1.5);
}
.pin.is-on .pin__halo {
  fill: var(--rose);
  fill-opacity: 0.35;
}
.map__me {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 4;
}
.map__tag {
  position: absolute;
  left: 12px;
  bottom: 50px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border: 3px solid transparent;
  outline: var(--line) solid var(--ink);
  background: linear-gradient(var(--paper-bright), var(--paper-bright)) padding-box, var(--trame-s) border-box;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}
.map__tag:empty {
  opacity: 0;
}
.map__cross-x, .map__cross-y {
  position: absolute;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.map__cross-x {
  left: 0;
  right: 0;
  height: 1px;
  top: var(--cy, 50%);
}
.map__cross-y {
  top: 0;
  bottom: 0;
  width: 1px;
  left: var(--cx, 50%);
}
.map.is-aim .map__cross-x, .map.is-aim .map__cross-y {
  opacity: 0.45;
}
.map__hud {
  position: absolute;
  margin: 0;
  padding: 4px 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.map__hud--tl {
  top: 12px;
  left: 12px;
}
.map__hud--br {
  right: 12px;
  bottom: 12px;
}
.map__hud--bl {
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink);
}
.map__hud--bl i {
  width: 40px;
  height: 6px;
  border: var(--line) solid var(--ink);
  border-top: 0;
}
.rows {
  list-style: none;
  display: grid;
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  overflow: hidden;
  transition: padding-left 0.2s, box-shadow 0.2s;
}
.row + .row {
  border-top: var(--line) solid var(--ink);
}
.row.is-on {
  padding-left: 32px;
  box-shadow: inset 6px 0 0 var(--ink);
}
.row.is-in {
  animation: row-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--dl, 0s);
}
.row--dawn {
  background: var(--dawn);
}
.row--noon {
  background: var(--noon);
}
.row--aft {
  background: var(--aft);
}
.row--dusk {
  background: var(--dusk);
}
.row--night {
  background: var(--night);
  color: var(--paper);
}
.row__hour {
  position: relative;
  z-index: 2;
  min-width: 2.7ch;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.row__event {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.row__event b {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.row__place, .row__pals {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
}
.row__place {
  margin-top: 2px;
  font-weight: 600;
}
.row__pals {
  opacity: 0.85;
}
.row__place svg, .row__pals svg {
  flex: none;
  width: 15px;
  height: 15px;
}
.row__orb {
  position: absolute;
  top: 50%;
  right: 118px;
  z-index: 1;
  width: 84px;
  height: 84px;
  transform: translateY(-50%);
  pointer-events: none;
}
.row__km {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: var(--line) solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.row__km::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pillars {
  position: relative;
  z-index: 2;
  padding: 24px var(--gx) 110px;
}
.pillars .section-title {
  margin-bottom: 48px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-left: 12px;
}
.card {
  position: relative;
  z-index: calc(var(--i) + 1);
  margin-left: -24px;
  padding: 30px 26px 30px;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
  transform: rotate(var(--tilt));
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:not(:last-child) {
  padding-right: 50px;
}
.card:hover {
  z-index: 10;
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.card .label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 48px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.card p:last-child {
  font-size: 16px;
}
.card__icon {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--ink);
}
.icon {
  display: block;
  width: 104px;
  height: 104px;
  transform-origin: 50% 60%;
  mix-blend-mode: multiply;
}
.icon--heart {
  animation: ico-beat 1.9s ease-in-out infinite;
}
.icon--clock {
  animation: ico-sway 3.4s ease-in-out infinite;
}
.icon--duo {
  animation: ico-sway 3.4s ease-in-out infinite;
}
.icon--pin {
  animation: ico-bounce 1.6s ease-in-out infinite;
}
.card:hover .card__icon {
  animation: ico-hop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
}
/* apparition quand la carte a fini d'arriver (état de repos : visible) */
.pillars.is-scrolly .card:not(.is-drawn) .icon {
  opacity: 0;
}
.pillars.is-scrolly .card.is-drawn .icon {
  animation-name: ico-pop, var(--idle);
  animation-duration: 0.8s, var(--dur);
  animation-delay: 0s, 0.8s;
  animation-iteration-count: 1, infinite;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1), ease-in-out;
  animation-fill-mode: backwards, none;
}
.icon--heart {
  --idle: ico-beat;
  --dur: 1.9s;
}
.icon--duo,
.icon--clock {
  --idle: ico-sway;
  --dur: 3.4s;
}
.icon--pin {
  --idle: ico-bounce;
  --dur: 1.6s;
}
/* scrollytelling : la section reste collée pendant que les cartes arrivent de la gauche, une par une */
.pillars.is-scrolly {
  padding: 0;
}
.pillars.is-scrolly .pillars__track {
  height: 280vh;
}
.pillars.is-scrolly .pillars__stage {
  position: sticky;
  top: var(--stick, 96px);
  padding: 40px var(--gx) 40px;
}
.pillars.is-scrolly.is-flow .pillars__track {
  height: auto;
}
.pillars.is-scrolly.is-flow .pillars__stage {
  position: static;
  padding: 24px var(--gx) 110px;
}
.pillars.is-scrolly .card {
  opacity: min(1, calc(var(--p, 0) * 2.2));
  transform: translateX(calc((1 - var(--p, 0)) * -78vw)) rotate(calc(var(--tilt) + (1 - var(--p, 0)) * -6deg));
  transition: box-shadow 0.25s;
  will-change: transform;
}
.pillars.is-scrolly .card:hover {
  transform: translateY(-8px) rotate(0deg);
}
.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 56px var(--gx) 0;
  background: var(--ink);
  color: var(--paper);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer__sign {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
  font-size: 15px;
}
.footer__nav a {
  color: var(--paper);
  text-underline-offset: 5px;
}
.footer__nav a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}
.footer__big {
  margin: 16px 0 0;
  font-size: clamp(6rem, 26vw, 24rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.76;
  letter-spacing: -0.04em;
  transform: translateY(10%);
}
@media (max-width: 640px) {
  .waitlist {
    margin: auto auto 0;
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }
  .topbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gx) 16px;
    border-bottom: var(--line) solid var(--ink);
    background: var(--paper);
    font-size: 18px;
  }
  .topbar.is-open .topbar__nav {
    display: flex;
  }
  .topbar__nav a {
    padding: 12px 0;
  }
  .topbar__nav a::after {
    bottom: 4px;
  }
  .day__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .day__meta {
    justify-items: start;
    text-align: left;
  }
  .map {
    min-height: 440px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }
  .card {
    margin-left: 0;
  }
  .card + .card {
    margin-top: -18px;
  }
  .icon {
    width: 88px;
    height: 88px;
  }
  .row__orb {
    right: 96px;
    width: 64px;
    height: 64px;
  }
  .map__cross-x, .map__cross-y {
    display: none;
  }
  .row {
    gap: 12px;
    padding: 14px 16px;
  }
}
@media (max-width: 640px) {
  .row__orb {
    display: none;
  }
}
@keyframes ico-pop {
  from { opacity: 0; transform: scale(0.55); }
}
@keyframes ico-beat {
  0%, 100% { scale: 1; }
  14% { scale: 1.12; }
  28% { scale: 1; }
  42% { scale: 1.07; }
  70% { scale: 1; }
}
@keyframes ico-sway {
  0%, 100% { rotate: -4deg; }
  50% { rotate: 4deg; }
}
@keyframes ico-bounce {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 -7%; }
}
@keyframes ico-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-9px) scale(1.06); }
  100% { transform: translateY(0); }
}
@keyframes card-deal {
  from { opacity: 0; transform: translateY(110px) rotate(calc(var(--tilt) + 9deg)); }
}
@keyframes row-in {
  from { opacity: 0; transform: translateX(40px); }
}
@keyframes route-draw {
  from { stroke-dashoffset: 1; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes pin-ping {
  0% { opacity: 0.9; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(2); }
}
