﻿/* ====== Expérience animée ====== */
#progress{position:fixed;top:0;left:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--or),#fff3c4,var(--or));z-index:100;box-shadow:0 0 12px rgba(242,199,110,.8)}
.hero .bg img{animation:kenburns 22s ease-in-out infinite alternate;will-change:transform}
@keyframes kenburns{from{transform:scale(1.04) translate3d(0,0,0)}to{transform:scale(1.14) translate3d(-2%,-1%,0)}}
#trails{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:.9}
.hero h1 .w{display:inline-block;opacity:0;transform:translateY(40px) rotateX(-40deg);filter:blur(6px);transition:all .9s cubic-bezier(.2,.8,.2,1)}
.hero h1.in .w{opacity:1;transform:none;filter:none}
[data-r]{opacity:0;transform:translateY(46px);transition:opacity 1s cubic-bezier(.2,.8,.2,1),transform 1s cubic-bezier(.2,.8,.2,1)}
[data-r].in{opacity:1;transform:none}
[data-r="l"]{transform:translateX(-60px)}[data-r="r"]{transform:translateX(60px)}[data-r="z"]{transform:scale(.92)}

/* ---- carte signature ---- */
.mapx{position:relative;height:340vh;background:#050b18}
.mapx .stick{position:sticky;top:0;height:100vh;overflow:hidden;display:grid;grid-template-columns:380px 1fr;gap:0}
.mapx .side{position:relative;z-index:3;padding:110px 34px 40px;color:#fff;background:linear-gradient(90deg,#050b18 70%,rgba(5,11,24,0))}
.mapx .side h2{color:#fff;font-size:clamp(28px,3vw,40px)}
.mapx .tabs{display:flex;gap:8px;margin:20px 0 26px;flex-wrap:wrap}
.mapx .tabs button{font:inherit;font-weight:700;font-size:14px;color:#cdd6e8;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);padding:9px 14px;border-radius:30px;cursor:pointer;transition:.2s}
.mapx .tabs button.on{background:var(--or);color:#1c1404;border-color:var(--or);box-shadow:0 0 22px rgba(217,164,65,.5)}
.hud{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hud div{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px 16px;backdrop-filter:blur(6px)}
.hud small{display:block;color:#8fa0bf;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.hud b{font-family:"Plus Jakarta Sans",sans-serif;font-size:34px;font-variant-numeric:tabular-nums;color:#fff}
.hud b i{font-style:normal;font-size:15px;color:#8fa0bf;margin-left:4px}
.hud .price{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
.hud .price b{color:var(--or2);font-family:"Playfair Display",serif}
.mapx .legend{margin-top:16px;font-size:12px;color:#7d8daa}
.mapx .steps2{list-style:none;padding:0;margin:20px 0 0}
.mapx .steps2 li{display:flex;gap:10px;align-items:center;color:#6f7f9c;font-size:14px;padding:6px 0;transition:.4s}
.mapx .steps2 li:before{content:"";width:10px;height:10px;border-radius:50%;border:2px solid #3a4a68;transition:.4s}
.mapx .steps2 li.on{color:#fff}.mapx .steps2 li.on:before{background:var(--or);border-color:var(--or);box-shadow:0 0 12px var(--or)}
.mapx svg.map{position:absolute;inset:0;width:100%;height:100%}
.map .grid line{stroke:#11203d;stroke-width:1}
.map .river{fill:none;stroke:#13305a;stroke-width:10;stroke-linecap:round;opacity:.9}
.map .road{fill:none;stroke:#1a2b4b;stroke-width:3;stroke-dasharray:2 8}
.map .route{fill:none;stroke:url(#glow);stroke-width:5;stroke-linecap:round;filter:url(#blur)}
.map .route2{fill:none;stroke:#fff3c4;stroke-width:1.6;stroke-linecap:round;opacity:.9}
.map .city circle{fill:#0d1c37;stroke:#34507f;stroke-width:2}
.map .city.on circle{fill:var(--or);stroke:#fff3c4;filter:url(#blur2)}
.map .city text{fill:#8fa0bf;font:600 15px "Plus Jakarta Sans",sans-serif}
.map .city.on text{fill:#fff}
.map .pulse{fill:none;stroke:var(--or);stroke-width:2;animation:pulse 2.4s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes pulse{from{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(3)}}
.map #car{filter:drop-shadow(0 0 10px rgba(242,199,110,.9))}

/* ---- révélation de la voiture ---- */
.reveal{position:relative;height:220vh;background:#050b18}
.reveal .stick{position:sticky;top:0;height:100vh;overflow:hidden;display:grid;place-items:center}
.reveal .frame{position:absolute;inset:0;clip-path:inset(var(--c,22%) round 28px);transition:clip-path .1s linear}
.reveal .frame img{width:100%;height:100%;object-fit:cover;transform:scale(var(--s,1.25))}
.reveal .cap{position:relative;z-index:2;text-align:center;color:#fff;padding:0 20px;opacity:var(--o,1)}
.reveal .cap h2{color:#fff;font-size:clamp(34px,5vw,64px);text-shadow:0 10px 40px rgba(0,0,0,.6)}
.reveal .spec{position:absolute;z-index:3;background:rgba(6,14,30,.72);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.15);color:#fff;border-radius:16px;padding:12px 16px;font-size:14px;opacity:0;transform:translateY(20px);transition:.6s}
.reveal .spec b{display:block;color:var(--or2);font-size:20px}
.reveal .spec.in{opacity:1;transform:none}

/* ---- ligne lumineuse des étapes ---- */
.steps{position:relative}
.stepline{position:absolute;left:0;right:0;top:23px;height:3px;background:#e9e2d3;border-radius:3px;overflow:hidden}
.stepline i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(var(--p,0));background:linear-gradient(90deg,var(--or),#ffe7a8);box-shadow:0 0 14px var(--or)}
.step{position:relative;z-index:1}

/* ---- divers ---- */
.btn{will-change:transform}
.route .ph img{transform:translateY(var(--py,0)) scale(1.08)}
.cursorglow{position:fixed;width:420px;height:420px;border-radius:50%;pointer-events:none;z-index:0;background:radial-gradient(circle,rgba(242,199,110,.10),rgba(242,199,110,0) 65%);transform:translate(-50%,-50%);left:-500px;top:-500px}
@media (max-width:980px){
  .mapx{height:300vh}
  .mapx .stick{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .mapx .side{padding:84px 20px 0;background:linear-gradient(180deg,#050b18 80%,rgba(5,11,24,0))}
  .hud b{font-size:26px}
  .mapx .steps2,.mapx .legend{display:none}
  .reveal .spec{font-size:12px}
  .cursorglow{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  [data-r],.hero h1 .w{opacity:1!important;transform:none!important;filter:none!important}
  .mapx,.reveal{height:auto}.mapx .stick,.reveal .stick{position:relative;height:auto;min-height:80vh}
}

@media (max-width:980px){
  .mapx .stick{display:block}
  .mapx .side{position:relative;padding:80px 20px 10px;background:none}
  .mapx .side h2{font-size:26px}
  .mapx .tabs{margin:12px 0 14px}
  .hud{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .hud .price{grid-column:auto;display:block}
  .hud div{padding:10px}
  .hud b{font-size:22px}
  .hud small{font-size:9px}
  .mapx svg.map{position:absolute;left:0;right:0;bottom:76px;top:auto;height:58vh;width:100%}
  .map .city text{font-size:20px}
  .reveal .spec{max-width:46%}
  .reveal .cap h2{font-size:34px}
}

.hero h1 .w{animation:wshow .01s 2.5s forwards}@keyframes wshow{to{opacity:1;transform:none;filter:none}}


/* ===== vraie carte ===== */
.map .roads{fill:none;stroke:#1d3157;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round;opacity:.9}
.map .rivers{fill:none;stroke:#16376a;stroke-width:3.2;stroke-linejoin:round;stroke-linecap:round;opacity:.95}
.map .route{stroke-width:7}.map .route2{stroke-width:2.2}
.map .city text{font-size:21px;font-weight:700;paint-order:stroke;stroke:#050b18;stroke-width:5px}
.map .city circle{stroke-width:2.5}
.map .mon circle{fill:#8fa0bf}.map .mon text{fill:#7286a8;font:500 11px "Plus Jakarta Sans",sans-serif;paint-order:stroke;stroke:#050b18;stroke-width:3px}
.mapx svg.map{left:380px;width:calc(100% - 380px)}
.mapx .stick{background:radial-gradient(1200px 700px at 70% 50%,#0b1a36,#050b18 70%)}
@media (max-width:980px){.mapx svg.map{left:0;width:100%}.map .mon text{display:none}.map .city text{font-size:24px}}

@media (min-width:981px){.mapx svg.map{top:86px;bottom:16px;height:auto}}
