/* Bande parcours AHADO: frise premium, responsive, sans emoji structurel. */
.promesses{
  max-width:var(--page-max);
  margin:0 auto;
  padding:clamp(2rem,5vw,4rem) clamp(1rem,4vw,2rem);
}
.promesses-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(16rem,28rem);
  align-items:end;
  gap:clamp(1rem,3vw,2rem);
  margin:0 0 clamp(1.25rem,3vw,2rem);
}
.promesses .eyebrow{
  margin:0 0 .55rem;
  color:var(--persimmon);
}
.promesses h2{
  max-width:14ch;
  margin:0;
  font-size:clamp(2.05rem,4.4vw,3.15rem);
  line-height:1.02;
}
.promesses-head::after{
  content:"174 / 19 / FDJ / WA";
  justify-self:end;
  max-width:22rem;
  padding:.7rem 1rem;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--gold-soft);
  color:oklch(.32 .08 70);
  font-family:var(--font-head);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 12px 26px oklch(.82 .15 85 / .22);
}

.route{
  --ease-out: cubic-bezier(.22,1,.36,1);
  position:relative;
  min-height:clamp(18rem,26vw,23rem);
  padding:clamp(1.05rem,2.6vw,2.25rem);
  overflow:hidden;
  border:2px solid oklch(.19 .035 154);
  border-radius:var(--radius);
  background:
    linear-gradient(112deg,oklch(.22 .075 154) 0%,var(--forest-dark) 44%,var(--forest) 100%);
  box-shadow:
    0 32px 80px oklch(.34 .095 154 / .28),
    inset 0 1px 0 oklch(.975 .015 84 / .2);
  isolation:isolate;
}
.route::before{
  content:"";
  position:absolute;
  inset:-22% -10% -20% auto;
  width:min(38rem,45%);
  transform:skewX(-10deg);
  background:
    linear-gradient(180deg,oklch(.975 .015 84 / .13),transparent 60%),
    linear-gradient(135deg,oklch(.72 .12 195 / .34),oklch(.57 .16 152 / .44));
  opacity:.9;
  pointer-events:none;
  z-index:-1;
}
.route::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,transparent,oklch(.975 .015 84 / .08),transparent),
    repeating-linear-gradient(90deg,oklch(.975 .015 84 / .045) 0 1px,transparent 1px 6rem);
  mask-image:linear-gradient(180deg,oklch(0 0 0 / .8),transparent 78%);
  pointer-events:none;
}
.route-anim{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
}
.routesvg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.routesvg .track{
  fill:none;
  stroke:oklch(.975 .015 84 / .3);
  stroke-width:4;
  stroke-linecap:round;
  stroke-dasharray:3 16;
}
.routesvg .path{
  fill:none;
  stroke:var(--gold);
  stroke-width:5;
  stroke-linecap:round;
  stroke-dasharray:1600;
  stroke-dashoffset:1600;
  filter:drop-shadow(0 8px 14px oklch(.82 .15 85 / .32));
}
.promesses.in .routesvg .path{
  transition:stroke-dashoffset 1.6s var(--ease-out) .1s;
  stroke-dashoffset:0;
}
.moto-marker{
  --moto-x:0px;
  --moto-y:0px;
  position:absolute;
  top:0;
  left:0;
  z-index:4;
  display:grid;
  place-items:center;
  width:3.2rem;
  height:3.2rem;
  border:2px solid oklch(.19 .035 154);
  border-radius:999px;
  background:var(--gold);
  color:oklch(.25 .05 80);
  box-shadow:0 16px 30px oklch(.82 .15 85 / .36);
  transform:translate(calc(var(--moto-x) - 50%),calc(var(--moto-y) - 50%));
  transition:box-shadow .22s var(--ease-out),background .22s var(--ease-out);
  will-change:transform;
}
.moto-icon{
  width:2.25rem;
  height:2.25rem;
  overflow:visible;
}
.moto-wheel{
  fill:none;
  stroke:currentColor;
  stroke-width:4;
}
.moto-frame,
.moto-rider{
  fill:none;
  stroke:currentColor;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.route:hover .moto-marker{
  background:oklch(.88 .14 86);
  box-shadow:0 18px 38px oklch(.82 .15 85 / .48);
}

.stations{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(.75rem,1.45vw,1rem);
  min-height:clamp(15rem,22vw,19rem);
  margin:0;
  padding:0;
  list-style:none;
  align-items:end;
}
.station{
  --accent:var(--forest);
  --tile:oklch(.98 .07 92 / .98);
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"dot step" "dot title" "dot text";
  align-items:center;
  column-gap:.8rem;
  min-width:0;
  padding:clamp(.85rem,1.5vw,1.05rem);
  border:2px solid oklch(.975 .015 84 / .34);
  border-radius:24px;
  background:
    linear-gradient(145deg,var(--tile),oklch(.9 .105 88 / .94)),
    var(--gold-soft);
  box-shadow:
    0 18px 38px oklch(.19 .035 154 / .2),
    inset 0 1px 0 oklch(.975 .015 84 / .72);
  opacity:0;
  transform:translateY(18px) scale(.97);
  transition:
    opacity .36s var(--ease-out) var(--sd,0s),
    transform .46s var(--ease-out) var(--sd,0s),
    box-shadow .22s var(--ease-out);
}
.promesses.in .station{
  opacity:1;
  transform:none;
}
.promesses.in .station:hover{
  transform:translateY(-5px);
  box-shadow:
    0 24px 52px oklch(.19 .035 154 / .26),
    inset 0 1px 0 oklch(.975 .015 84 / .8);
}
.station:nth-child(1){--sd:.18s}
.station:nth-child(2){--sd:.28s}
.station:nth-child(3){--sd:.38s}
.station:nth-child(4){--sd:.48s}
.stdot{
  grid-area:dot;
  display:grid;
  place-items:center;
  width:3.8rem;
  height:3.8rem;
  border-radius:999px;
  background:var(--forest-dark);
  color:var(--cream);
  font-family:var(--font-head);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:
    0 16px 26px oklch(.34 .095 154 / .34),
    inset 0 0 0 1px oklch(.975 .015 84 / .1);
  font-variant-numeric:tabular-nums;
}
.stepn{
  grid-area:step;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:1.55rem;
  margin-bottom:.12rem;
  padding:.25rem .55rem;
  border-radius:999px;
  background:oklch(.975 .015 84 / .74);
  color:var(--accent);
  font-family:var(--font-head);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}
.station h3{
  grid-area:title;
  margin:0;
  color:var(--forest-dark);
  font-size:clamp(.98rem,1.35vw,1.18rem);
  line-height:1.06;
  letter-spacing:-.02em;
}
.station p{
  grid-area:text;
  margin:.14rem 0 0;
  color:oklch(.28 .04 145 / .82);
  font-size:.86rem;
  font-weight:700;
  line-height:1.25;
}
.st1{align-self:start;--accent:var(--forest);--tile:oklch(.98 .07 92 / .98)}
.st2{align-self:center;--accent:var(--turquoise);--tile:oklch(.94 .055 188 / .96)}
.st3{align-self:end;--accent:var(--gold);--tile:oklch(.97 .08 86 / .98)}
.st4{align-self:center;--accent:var(--wa);--tile:oklch(.93 .06 152 / .96)}

@media (max-width:920px){
  .promesses-head{
    grid-template-columns:1fr;
    align-items:start;
  }
  .promesses h2{
    max-width:15ch;
  }
  .promesses-head::after{
    justify-self:start;
  }
  .route{
    min-height:auto;
  }
  .route-anim{
    opacity:.55;
  }
  .stations{
    grid-template-columns:repeat(2,minmax(0,1fr));
    min-height:0;
    align-items:stretch;
  }
  .station{
    align-self:stretch;
  }
}
@media (max-width:560px){
  .promesses{
    padding-inline:.75rem;
  }
  .promesses-head{
    gap:.85rem;
  }
  .promesses-head::after{
    max-width:100%;
    font-size:.7rem;
  }
  .route{
    padding:.8rem;
    border-radius:24px;
  }
  .route-anim{
    display:none;
  }
  .moto-marker{
    display:none;
  }
  .stations{
    grid-template-columns:1fr;
    gap:.7rem;
  }
  .station{
    grid-template-columns:3.25rem minmax(0,1fr);
    column-gap:.72rem;
    padding:.78rem;
    border-radius:20px;
  }
  .stdot{
    width:3.25rem;
    height:3.25rem;
    font-size:.75rem;
  }
  .stepn{
    font-size:.62rem;
  }
  .station h3{
    font-size:.98rem;
  }
  .station p{
    font-size:.8rem;
  }
}
@media (prefers-reduced-motion:reduce){
  .promesses.in .routesvg .path,
  .routesvg .path{
    stroke-dashoffset:0!important;
    transition:none!important;
  }
  .station,
  .promesses.in .station,
  .station:hover,
  .promesses.in .station:hover{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  .moto-marker{
    transition:none!important;
  }
}
