/* Le village de Valérie — même charte (sauge · or · crème), avec une carte en jeu de construction. */
.v-wrap{max-width:1240px;width:100%;margin:0 auto;padding:1.6rem 2rem 3rem}
.top .tabs a{white-space:nowrap}

/* En-tête : titre, rang, chiffres */
.v-head{background:var(--sage-mid);color:var(--cream);padding:1.4rem 1.6rem;display:grid;grid-template-columns:auto 1fr;gap:1.2rem 2.4rem;align-items:center}
.v-title{display:flex;gap:1rem;align-items:center}
.v-logo{width:56px;height:56px;display:grid;place-items:center;background:var(--gold);color:#fff;border-radius:14px;flex:none}
.v-title h1{font-family:var(--serif);font-weight:500;font-size:clamp(1.7rem,3vw,2.3rem);line-height:1.05}
.v-title p{margin-top:.2rem;display:flex;gap:.7rem;align-items:baseline}
.v-title p b{color:var(--gold-light);font-weight:500;font-size:1.05rem}
.v-title p span{font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(245,240,232,.7)}
.v-rank{justify-self:end;width:min(420px,100%)}
.v-rank p{font-size:.9rem}
.v-rank p b{font-size:1.2rem;font-weight:500}
.v-rank .v-small{font-size:.76rem;color:rgba(245,240,232,.75);margin-top:.35rem}
.v-rank .up{color:#BFE3C9}.v-rank .down{color:#F2C9BF}
.meter{display:block;height:10px;background:rgba(255,255,255,.18);border-radius:6px;overflow:hidden;margin-top:.45rem}
.meter i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-light));border-radius:6px}
.v-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}
.stat{display:flex;gap:.8rem;align-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:.75rem .9rem}
.stat .ic{font-size:1.25rem;width:38px;height:38px;display:grid;place-items:center;background:rgba(255,255,255,.1);border-radius:9px;flex:none}
.stat b{display:block;font-size:1.25rem;font-weight:500;line-height:1.1}
.stat span{font-size:.74rem;color:rgba(245,240,232,.78);line-height:1.35;display:block}
.stat.warn{border-color:rgba(242,201,191,.55);background:rgba(165,72,58,.22)}

/* La carte */
.scene{position:relative;margin-top:1rem;border-radius:16px;overflow:hidden;background:
  radial-gradient(circle at 12% 14%,rgba(255,236,170,.95) 0 46px,rgba(255,236,170,.35) 47px 90px,transparent 150px),
  linear-gradient(180deg,#8DB8E0 0%,#B9D4EC 55%,#DCE9F4 100%)}
.map{display:block;width:100%;height:auto}
.maison,.etiq,.panneau{cursor:pointer}
.maison:hover polygon,.maison:focus polygon{filter:brightness(1.08)}
.maison:focus{outline:none}
.maison:focus-visible polygon:last-of-type{stroke:var(--gold);stroke-width:2}
.t-nom{font:600 10.5px var(--sans);fill:#fff;letter-spacing:.02em}
.t-pan{font:600 10px var(--sans);fill:#6E4F38}
.t-pan2{font:400 8px var(--sans);fill:#8A6548}
.t-bulle{font:700 8px var(--sans);fill:#555}
.jet{animation:jet 1.6s ease-in-out infinite}
@keyframes jet{50%{opacity:.4}}
.legende{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;padding:.7rem 1.2rem .9rem;background:rgba(255,255,255,.72);font-size:.74rem;color:var(--charcoal)}
.legende li{display:flex;align-items:center;gap:.4rem}
.legende i{width:14px;height:10px;border-radius:2px;display:inline-block}
.legende .sep{color:var(--warm-gray)}

/* Sections */
.v-sec{margin-top:2.6rem;scroll-margin-top:90px}
.v-h{font-family:var(--serif);font-weight:400;font-size:clamp(1.6rem,2.6vw,2.1rem);color:var(--sage-mid);margin-bottom:1rem;line-height:1.15}
.v-h small{display:block;font-family:var(--sans);font-size:.8rem;color:var(--warm-gray);margin-top:.2rem}
.v-intro{font-size:.84rem;color:var(--warm-gray);margin-bottom:1rem;max-width:70ch}
.v-note{margin-top:2.4rem;font-size:.76rem;color:var(--warm-gray);max-width:80ch;border-top:1px solid var(--border);padding-top:1rem}
.v-empty{padding:5rem 1rem;text-align:center}
.v-empty h1{font-family:var(--serif);font-weight:400;font-size:2.2rem;color:var(--sage-mid)}
.v-empty p{color:var(--warm-gray);margin-top:.6rem}
.v-small{font-size:.74rem;color:var(--warm-gray)}
.toast:not(.on){visibility:hidden}

/* En un coup d'œil */
.insights{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:.9rem}
.ins{background:var(--paper);border:1px solid var(--border);border-top:3px solid var(--sage);padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.45rem}
.ins .ic{font-size:1.5rem;line-height:1}
.ins h3{font-family:var(--serif);font-weight:500;font-size:1.25rem;line-height:1.2;color:var(--charcoal)}
.ins p{font-size:.84rem;line-height:1.6;color:var(--charcoal)}
.ins .act{margin-top:auto;padding-top:.4rem}
.ins.i-warn{border-top-color:var(--danger);background:#FDF8F6}
.ins.i-hot{border-top-color:var(--gold);background:#FFFBF1}
.ins.i-gold{border-top-color:var(--gold-light)}
.ins.i-ok{border-top-color:var(--sage)}
.ins.wide{grid-column:1/-1}
.rythme{list-style:none;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.4rem;position:relative;margin-top:.4rem}
.rythme::after{content:"";position:absolute;left:0;right:0;bottom:calc(36px + 94px * var(--obj) / 100);border-top:1.5px dashed var(--gold)}
.rythme li{display:flex;flex-direction:column;text-align:center;min-width:0}
.rythme .bar{display:flex;align-items:flex-end;justify-content:center;height:94px}
.rythme .bar i{display:block;width:70%;max-width:28px;background:var(--sage);border-radius:4px 4px 0 0}
.rythme b{font-size:.78rem;font-weight:500;line-height:18px;height:18px}
.rythme small{font-size:.66rem;color:var(--warm-gray);line-height:18px;height:18px}

/* Le marché */
.etals{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:.9rem}
.etal{background:var(--paper);border:1px solid var(--border);padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.6rem;scroll-margin-top:90px}
.etal:target{outline:2px solid var(--gold);outline-offset:2px}
.etal header{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.etal .em{font-size:1.4rem}
.etal h3{font-family:var(--serif);font-weight:500;font-size:1.3rem;line-height:1.1;margin-right:auto}
.pill{font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;padding:.28rem .55rem;border:1px solid currentColor;border-radius:20px;line-height:1.2;white-space:nowrap}
.pill.hot{background:var(--danger);border-color:var(--danger);color:#fff}
.pill.gold{background:var(--gold);border-color:var(--gold);color:#fff}
.pill.sage{color:var(--sage)}
.pill.muted{color:var(--warm-gray)}
.jauges{display:grid;gap:.35rem}
.jauges label{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:.6rem;font-size:.72rem;color:var(--warm-gray)}
.jauges em{font-style:normal;font-size:.7rem;min-width:44px;text-align:right}
.meter.sm{height:8px;margin:0;background:var(--sage-pale)}
.meter.sm i{background:var(--sage)}
.meter.sm.gold i{background:var(--gold)}
.chiffres{font-size:.74rem;color:var(--warm-gray)}
.bulle{background:var(--sage-pale);border-radius:12px;padding:.7rem .9rem;font-size:.8rem}
.bulle b{font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sage-mid);font-weight:500}
.bulle ul{list-style:none;margin-top:.3rem;display:grid;gap:.3rem;font-style:italic;line-height:1.45}
.aide{font-size:.8rem;line-height:1.55}
.aide b{color:var(--gold-deep);font-weight:500}
.etal details summary{cursor:pointer;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sage-mid)}
.ex{list-style:none;display:grid;gap:.6rem;margin-top:.5rem;font-size:.78rem;line-height:1.45}
.ex small{color:var(--warm-gray)}
.ex a{color:var(--sage-mid)}

/* Habitants */
.hab-tools{justify-content:space-between;margin-bottom:.8rem}
.habs{list-style:none;display:grid;gap:.35rem}
.hab{width:100%;display:grid;grid-template-columns:12px minmax(0,2.2fr) minmax(0,1.6fr) 110px 190px;gap:.9rem;align-items:center;text-align:left;background:var(--paper);border:1px solid var(--border);padding:.65rem .9rem;transition:border-color .2s,box-shadow .2s}
.hab:hover{border-color:var(--line);box-shadow:0 4px 14px rgba(42,42,42,.06)}
.hab .dot{width:12px;height:12px;border-radius:3px}
.hab .who b{display:block;font-weight:400;font-size:.88rem}
.hab .who small{display:block;font-size:.72rem;color:var(--warm-gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hab .what{font-size:.76rem;color:var(--charcoal)}
.hab .when{font-size:.72rem;color:var(--warm-gray)}
.hab .pill{justify-self:end}

/* Fiche */
.dr-b blockquote{margin:.3rem 0 .2rem;padding:.4rem .7rem;border-left:2px solid var(--gold);background:var(--paper);font-style:italic;font-size:.78rem}
.dr-b .facts dd{min-width:0}
.conseil{margin-top:1.2rem;font-size:.82rem;background:#FFFBF1;border-left:3px solid var(--gold);padding:.7rem .9rem}

@media (max-width:900px){
  .v-head{grid-template-columns:1fr}
  .v-rank{justify-self:stretch;width:100%}
  .v-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hab{grid-template-columns:12px minmax(0,1fr) auto;gap:.3rem .7rem}
  .hab .what{grid-column:2/-1}
  .hab .when{grid-column:2}
  .hab .pill{grid-column:3;grid-row:1}
}
@media (max-width:820px){
  .top{position:static}
  .v-wrap{padding:1rem 16px 2.4rem}
  .tabs{overflow-x:auto;max-width:100%}
  .scene{overflow-x:auto}
  .map{min-width:640px;max-height:none}
  .insights,.etals{grid-template-columns:1fr}
}
@media (max-width:480px){
  .v-stats{grid-template-columns:1fr}
  .hab .pill{display:none}
}

/* La boîte à idées */
.idees{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:.9rem}
.idee{background:var(--paper);border:1px solid var(--border);border-left:3px solid var(--gold);padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.55rem}
.idee header{display:flex;align-items:center;gap:.5rem}
.idee .em{font-size:1.2rem}
.idee .th{font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sage-mid);font-weight:500;margin-right:auto}
.idee h3{font-family:var(--serif);font-weight:500;font-size:1.35rem;line-height:1.2;color:var(--charcoal)}
.idee .raison{font-size:.74rem;color:var(--gold-deep)}
.idee dl{display:grid;gap:.15rem;font-size:.82rem;line-height:1.5}
.idee dt{font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;color:var(--warm-gray);margin-top:.35rem}
.idee .btn{align-self:flex-start;margin-top:auto}
.idees-f{margin-top:1rem;display:flex;justify-content:center}
@media (max-width:820px){.idees{grid-template-columns:1fr}}
