/* Wavora · la ville Wavora (page Services, 20/10) : le plan bleu, les étiquettes posées sur
   la ville (la mairie, « Bâtir ici »), la carte qui avance (terrain, chantier, ville) avec le bouton de démo, et
   la barre d'aperçu. Thème sombre par défaut, clair sous [data-theme="light"]. */
.vl, .pc { --vl-carte: #151E1B; --vl-creux: rgb(245 242 233 / .06); --vl-ombre: 0 18px 40px -24px rgb(0 0 0 / .7);
  --bp-fond: #13212E; --bp-l: rgb(150 190 230 / .07); --bp-L: rgb(150 190 230 / .15); --bp-encre: #9CC0E6; }
[data-theme="light"] :is(.vl, .pc) { --vl-carte: #FFFCF6; --vl-creux: rgb(20 50 47 / .05); --vl-ombre: 0 18px 40px -26px rgb(40 50 40 / .35);
  --bp-fond: #E6ECF2; --bp-l: rgb(46 94 149 / .09); --bp-L: rgb(46 94 149 / .2); --bp-encre: #2E5E95; }

/* le plan bleu sous la maquette ou la ville */
.vl-scene, .pc-scene { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--rule);
  background: linear-gradient(var(--bp-L) 1px, transparent 1px) -1px -1px / 120px 120px, linear-gradient(90deg, var(--bp-L) 1px, transparent 1px) -1px -1px / 120px 120px,
    linear-gradient(var(--bp-l) 1px, transparent 1px) -1px -1px / 24px 24px, linear-gradient(90deg, var(--bp-l) 1px, transparent 1px) -1px -1px / 24px 24px, var(--bp-fond); }
:is(.vl-scene, .pc-scene)::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--bp-L); border-radius: 16px; pointer-events: none; }
.sp-cartouche { position: absolute; left: 24px; bottom: 22px; display: flex; margin: 0; border: 1px solid var(--bp-L); background: color-mix(in srgb, var(--bp-fond) 80%, transparent);
  font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bp-encre); pointer-events: none; }
.sp-cartouche > * { padding: 7px 10px; }
.sp-cartouche b { border-right: 1px solid var(--bp-L); }
.vl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; touch-action: pan-y; }
.vl-canvas.pret { opacity: 1; }
.vl-hint { position: absolute; left: 24px; top: 22px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--bp-fond) 75%, transparent);
  font-size: 12.5px; color: var(--bp-encre); pointer-events: none; transition: opacity .4s; }
.vl-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: vl-pouls 1.6s ease-in-out infinite; }
.vl-pins.choisi ~ .vl-hint { opacity: 0; }

/* les étiquettes posées sur la ville (ville-ui.js les place à chaque image) */
.vl-pins { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s .3s; }
.vl-pins.pret { opacity: 1; }
.vl-mairie, .vl-lot { position: absolute; left: 0; top: 0; translate: -50% -100%; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border-radius: 99px; font: 600 12.5px/1 var(--sans); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .45); }
.vl-mairie { padding: 7px 12px; background: #14322F; color: #F5F2E9; }
.vl-mairie::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C9A35A; }
.vl-lot { all: unset; position: absolute; left: 0; top: 0; translate: -50% -50%; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 99px; background: rgb(255 255 255 / .94); color: #1D2421;
  font: 600 12.5px/1 var(--sans); white-space: nowrap; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .45); pointer-events: auto; cursor: pointer; transition: scale .3s cubic-bezier(.3, 1.5, .5, 1), background-color .3s, color .3s; }
.vl-lot i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E2703A; }
.vl-lot i::before { content: "+"; color: #FFFFFF; font: 600 15px/1 var(--sans); }
.vl-pins:not(.choisi) .vl-lot i { animation: vl-pouls 1.6s ease-in-out infinite; }
.vl-lot:nth-child(3) i { animation-delay: .5s; } .vl-lot:nth-child(4) i { animation-delay: 1s; }
@keyframes vl-pouls { 50% { box-shadow: 0 0 0 7px rgb(226 112 58 / .25); } }
.vl-lot:hover { scale: 1.07; }
.vl-lot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vl-lot .vl-l-c, .vl-lot .vl-l-v { display: none; }
.vl-lot.chantier .vl-l-b, .vl-lot.vous .vl-l-b { display: none; }
.vl-lot.chantier .vl-l-c, .vl-lot.vous .vl-l-v { display: inline; }
.vl-lot.chantier i { background: repeating-linear-gradient(-45deg, #E9B43C 0 4px, #2A2B2F 4px 8px); }
.vl-lot.chantier i::before { content: ""; }
.vl-lot.vous { background: #14322F; color: #F5F2E9; scale: 1.08; translate: -50% -100%; }
.vl-lot.vous i { background: #C9A35A; }
.vl-lot.vous i::before { content: "✓"; font-size: 12px; }

/* la carte : le terrain, le chantier, la ville ; le bouton de démo */
.vl-carte { padding: 28px 26px 24px; border-radius: 26px; background: var(--vl-carte); border: 1px solid var(--rule); box-shadow: var(--vl-ombre); }
.vl-c-ey { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.vl-carte h3 { margin: 12px 0 0; font: 500 clamp(26px, 2.1vw, 34px)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.vl-c-p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.vl-t2, .vl-t3, .vl-p3 { display: none; }
.vl-carte[data-etape="2"] .vl-t1, .vl-carte[data-etape="3"] :is(.vl-t1, .vl-p1) { display: none; }
.vl-carte[data-etape="2"] .vl-t2, .vl-carte[data-etape="3"] :is(.vl-t3, .vl-p3) { display: inline; }
/* ce qui se passe vraiment après « Bâtir » (20/10) : une frise de trois points reliés ; une fois l'entreprise
   bâtie (étape 3), les points s'allument l'un après l'autre jusqu'au bouton de réservation */
.vl-par-t { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vl-etapes { position: relative; display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.vl-etape { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.vl-etape:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: -13px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 0% no-repeat, var(--rule); transition: background-size .5s ease-out calc(var(--n, 0) * .45s + .2s); }
.vl-etape i { width: 10px; height: 10px; margin: 3px 0 0 1px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--rule)); transition: background-color .3s calc(var(--n, 0) * .45s), box-shadow .3s calc(var(--n, 0) * .45s); }
.vl-etape:nth-child(2) { --n: 1; } .vl-etape:nth-child(3) { --n: 2; }
.vl-etape b { display: block; font: 600 15px/1.3 var(--sans); }
.vl-etape span span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.vl-carte[data-etape="3"] .vl-etape i { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.vl-carte[data-etape="3"] .vl-etape::after { background-size: 100% 100%, auto; }
html:not(.motion-on) .vl-etape i, html:not(.motion-on) .vl-etape::after { transition: none; }
.vl-carte .vl-cta { display: flex; justify-content: space-between; margin-top: 22px; transition: box-shadow .5s; }
.vl-carte[data-etape="3"] .vl-cta { animation: vl-appel 2.2s ease-in-out 2; }
@keyframes vl-appel { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent); } }
.vl-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* D : la section de la ville, la scène et la carte côte à côte */
.vl[data-auto] { padding: 120px 6vw; border-top: 1px solid var(--rule); }
.vl-tete { max-width: 44em; }
.vl h2 { margin: 14px 0 0; font: 500 clamp(44px, 4.4vw, 70px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.vl-lead { margin: 22px 0 0; max-width: 38em; color: var(--muted); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.55; }
.vl-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 24px; align-items: start; margin-top: 46px; }
.vl-grille .vl-scene { aspect-ratio: 16 / 10.6; }
.vl-grille .vl-carte { position: sticky; top: 100px; }

/* la barre d'aperçu (ne fait pas partie du site) */
.ap-bar { position: fixed; z-index: 80; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px;
  background: rgb(10 16 14 / .88); color: #F5F2E9; font: 500 12.5px/1 var(--sans); box-shadow: 0 10px 30px rgb(0 0 0 / .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ap-bar b { padding: 0 10px 0 8px; font-weight: 600; letter-spacing: .02em; color: #D4BB89; }
.ap-bar a { padding: 8px 11px; border-radius: 99px; color: inherit; text-decoration: none; white-space: nowrap; }
.ap-bar a:hover { background: rgb(245 242 233 / .1); }
.ap-bar a[aria-current] { background: #F5F2E9; color: #14322F; }

@media (max-width: 1000px) {
  .vl-grille { grid-template-columns: minmax(0, 1fr); }
  .vl-grille .vl-carte { position: static; max-width: 560px; }
}
@media (max-width: 760px) {
  .vl[data-auto] { padding: 56px 20px 60px; }
  .vl h2 { font-size: 40px; }
  .vl-grille { gap: 14px; margin-top: 26px; }
  .vl-grille .vl-scene { aspect-ratio: 1 / 1.08; }
  .vl-scene, .pc-scene { border-radius: 20px; }
  :is(.vl-scene, .pc-scene)::before { inset: 8px; border-radius: 13px; }
  .sp-cartouche { left: 16px; bottom: 14px; font-size: 9.5px; }
  .sp-cartouche > * { padding: 6px 8px; }
  .vl-hint { left: 16px; top: 14px; font-size: 11.5px; }
  .vl-mairie, .vl-lot { font-size: 11.5px; }
  /* une fois un terrain choisi, les autres ne gardent que leur « + » : les étiquettes ne se chevauchent plus */
  .vl-pins.choisi .vl-lot:not(.chantier):not(.vous) { padding-right: 5px; }
  .vl-pins.choisi .vl-lot:not(.chantier):not(.vous) .vl-l-b { display: none; }
  .vl-carte { padding: 22px 20px 20px; border-radius: 22px; }
  .ap-bar { left: 8px; right: 8px; bottom: 8px; overflow-x: auto; }
}
