/* ==========================================================================
   Garden Spring — V2 — feuille des 5 pages villes (propriété du lot VILLES). 18/11/2026.
   Charge APRÈS commun.css. Tout le reste (bandeau, cartes, confiance, pastilles, appel) vient du socle.
   Ici : le plan de la zone, COPIÉ du module de l'accueil (accueil.css, « zone ») et adapté :
   la ville de la page est mise en avant (son tracé se dessine en dernier, plus épais ; son repère pulse).
   Tailles : uniquement --t-xs … --t-xl (verifier.py).
   ========================================================================== */

/* ---------- puces de confiance : jamais 3 + 1 entre 900 et 1200 px ---------- */
@media (min-width:900px) and (max-width:1199px){.v-confiance{grid-template-columns:1fr 1fr}}

/* ---------- bandeau photo des villes : voile plus dense que celui du socle ----------
   mesuré sur les captures (brouillons-villes/contrastes-villes.py) : avec le voile du socle, le nom de la ville en ocre
   tombait à 2,1:1 sur le ciel clair de Nivelles (1440) et l'étiquette à 4,0:1 à 390. Même dessin, opacités relevées. */
.v-bandeau .b-voile{background:linear-gradient(90deg,rgba(27,34,23,.93) 0,rgba(27,34,23,.86) 42%,rgba(27,34,23,.66) 72%,rgba(27,34,23,.32) 100%),linear-gradient(0deg,rgba(27,34,23,.85) 0,rgba(27,34,23,0) 50%),linear-gradient(180deg,rgba(27,34,23,.66) 0,rgba(27,34,23,0) 28%)}
@media (max-width:899px){.v-bandeau .b-voile{background:linear-gradient(0deg,rgba(27,34,23,.94) 0,rgba(27,34,23,.87) 50%,rgba(27,34,23,.76) 100%)}}

/* ---------- voisines + plan ---------- */
.v-zone{display:grid;gap:var(--s5);align-items:center}
@media (min-width:900px){.v-zone{grid-template-columns:1fr 1.272fr;gap:var(--s6)}}
.v-zone h2{margin-bottom:var(--s3)}

.v-plan{position:relative;aspect-ratio:10/7;border-radius:var(--r);background:var(--os);border:1px solid var(--filet-c);overflow:hidden}
.v-plan::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(74,84,64,.22) 1px,transparent 1.5px);background-size:var(--s3) var(--s3)}
@media (max-width:899px){.v-plan{aspect-ratio:1/1}}

.v-plan-l{position:absolute;inset:0;width:100%;height:100%;fill:none}
.v-plan-l .onde{stroke:rgba(138,94,34,.22);stroke-width:1;stroke-dasharray:4 6;vector-effect:non-scaling-stroke}
.v-plan-l path{stroke:rgba(138,94,34,.34);stroke-width:1.4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}
.v-plan-l path.ici{stroke:var(--ocre-f);stroke-width:3.4}
html.js .v-plan-l path{stroke-dashoffset:1;transition:stroke-dashoffset 1.4s var(--e2)}
html.js .v-plan-l path:nth-of-type(2){transition-delay:.1s}
html.js .v-plan-l path:nth-of-type(3){transition-delay:.2s}
html.js .v-plan-l path:nth-of-type(4){transition-delay:.3s}
html.js .v-plan-l path.ici{transition:stroke-dashoffset 2.2s var(--e2) .6s}
html.js .v-plan.vu .v-plan-l path{stroke-dashoffset:0}

/* repères : la base (Soignies), les villes, la ville de la page */
.v-pin{position:absolute;left:var(--x);top:var(--y);width:var(--s2);height:var(--s2);margin:calc(-1*var(--s2)/2) 0 0 calc(-1*var(--s2)/2);border-radius:50%;background:var(--sauge);box-shadow:0 0 0 4px rgba(250,247,239,.9)}
.v-pin>span{position:absolute;left:calc(100% + var(--s1));top:50%;transform:translateY(-50%);padding:2px var(--s1);border-radius:var(--s1);background:var(--os);font-size:var(--t-xs);font-weight:var(--w-ui);line-height:1.2;white-space:nowrap;color:var(--doux)}
.v-pin.g>span{left:50%;top:auto;bottom:calc(100% + var(--s1));transform:translateX(-86%)}
.v-pin.base{width:var(--s3);height:var(--s3);margin:calc(-1*var(--s3)/2) 0 0 calc(-1*var(--s3)/2);background:var(--nuit)}
.v-pin.base>span{color:var(--encre)}
.v-pin.ici{width:var(--s3);height:var(--s3);margin:calc(-1*var(--s3)/2) 0 0 calc(-1*var(--s3)/2);background:var(--ocre-f);z-index:1}
.v-pin.ici::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--ocre-f);animation:onde 2.4s var(--e) infinite}
.v-pin.ici>span{padding:var(--s1) var(--s2);background:var(--nuit);color:var(--os);font-weight:var(--w-tit)}
.v-pin.ici.g>span{bottom:calc(100% + var(--s2))}
.v-pin.ici.h>span{left:50%;top:auto;bottom:calc(100% + var(--s2));transform:translateX(-50%)} /* Genappe : au-dessus, sinon elle couvre « Nivelles » */

/* les repères sortent en ressort l'un après l'autre ; celui de la ville arrive quand son tracé l'atteint */
html.js .v-plan .v-pin{transform:scale(0);transition:transform .7s var(--ressort) calc(.5s + var(--n)*.1s)}
html.js .v-plan .v-pin.ici{transition-delay:2.2s}
html.js .v-plan.vu .v-pin{transform:none}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion:reduce){
  html.js .v-plan-l path{stroke-dashoffset:0;transition:none}
  html.js .v-plan .v-pin{transform:none;transition:none}
  .v-pin.ici::after{animation:none;opacity:0}
}
