/* Velia home v3 (TEST; file name kept, cache-busted by ?v=). Taste route: minimalist-ui (same paper palette, Newsreader,
   1px lines, radius <= 12px as ville.css). Native scroll only. Transforms only for motion. The actus arc is a progressive
   enhancement: html.hv-arc is set in <head> (before first paint, so no layout shift) only when motion is allowed;
   otherwise (reduced motion, no JS) the actus are a native scroll-snap list. Moving cards are will-change:transform
   layers inside a layout+paint containment root (perf/NOTES-perf.md). */
#nav .nav-c{min-width:0}
body.menu-open .mobile-menu{inset:var(--nav-h,70px) 0 0 0;height:calc(100vh - var(--nav-h,70px));height:calc(100dvh - var(--nav-h,70px))}
.sec{padding-top:40px}
@media (max-width:640px){.sec{padding-top:32px}}
.sec-head{margin-bottom:14px}
.sec-head .more-l{margin-left:auto;font-size:14px;text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){.sec-head .more-l{margin-left:0}}

/* ---------- 1. hero (compact) ---------- */
.h-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:32px;align-items:center;padding-top:calc(var(--nav-h,76px) + 14px)}
.h-hero .display{font-size:clamp(34px,4.6vw,62px);margin-top:6px}
.q{position:relative;margin-top:16px;max-width:500px}
.q label{display:block;font-family:var(--serif);font-size:21px;letter-spacing:-.01em;margin-bottom:6px}
.q-row{display:flex;gap:8px}
.q input{flex:1;min-width:0;min-height:46px;border:1px solid var(--ink);border-radius:6px;background:var(--surface);padding:0 14px;font:inherit;font-size:16px;color:var(--ink)}
.q input::placeholder{color:#8d7b6f}
.q button{min-height:46px;padding:0 18px;border:0;border-radius:6px;background:var(--ink);color:#f6efe4;font:inherit;font-size:14px;cursor:pointer}
.q-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;list-style:none;background:var(--bg);border:1px solid var(--ink);border-radius:8px;max-height:320px;overflow:auto;padding:4px}
.q-list li{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:9px 10px;border-radius:6px;cursor:pointer}
.q-list li small{color:var(--mute);font-size:12px;text-align:right}
.q-list li[aria-selected="true"],.q-list li:hover{background:rgba(42,26,18,.07)}
.q-list .empty{cursor:default;color:var(--mute)}
.q-hint{margin-top:6px;font-size:13px;color:var(--mute)}
.q-hint a{text-decoration:underline;text-underline-offset:3px}
.h-count{margin-top:12px;color:var(--ink-2)}
.h-map{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;position:relative}
.h-map .cap{position:absolute;left:10px;bottom:8px;color:var(--mute);font-size:10.5px;pointer-events:none;background:rgba(251,248,242,.92);padding:2px 6px;border-radius:4px}
/* v5: dot sizes are set in screen px by DOTMAP (site_parts), the old r:10px override is gone */
@media (max-width:900px){.h-hero{grid-template-columns:minmax(0,1fr);gap:16px}.h-map{max-width:520px}}

/* ---------- 2. en ce moment: city cards (tiles.css .vcc-grid / .vcc), then "À venir" + stamp ----------
   Home: at most 2 columns (legibility of the tile text and of the "Illustration générée" label on busy banners). */
#ec-cards .vcc-grid{gap:14px}
/* above the fold at 1024 px: next to the h2, the sub moved on the web-font swap (CLS); on its own row it no longer depends on the h2 */
#en-ce-moment .sec-head{align-items:flex-end}
#en-ce-moment .sec-head .sub{order:3;flex-basis:100%;margin-top:4px}
#en-ce-moment .sec-head .more-l{margin-left:auto}
@media (min-width:1100px){#ec-cards .vcc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* city card legibility (88 px tiles, text >= 12 px, label pill, top band): tiles.css .vcc (shared since v4) */
/* v5: country with the city name ('Barcelone · Espagne', tiles.city_card_html countries=...): on its own line under the
   name at every width (13 px sans, same light ink), so a web-font swap of the name never moves it (CLS 0); taller dark
   top band, tiles pushed down; the ' · ' separator stays in the text for AT (visually hidden). */
#ec-cards .vcc .vt-bname{display:block;overflow:visible;text-overflow:clip;white-space:normal}
#ec-cards .vt-bn{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ec-cards .vt-bc{display:block;margin-top:4px;font-family:var(--sans);font-size:13px;font-weight:500;letter-spacing:.01em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ec-cards .vt-bs{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:pre}
#ec-cards .vcc .vt-ban .tiles{margin-top:62px}
#ec-cards .vcc .vt-ban::after{background:linear-gradient(180deg,rgba(22,13,8,.7) 0,rgba(22,13,8,.64) 60px,rgba(30,18,12,.3) 82px)}
/* very narrow cards (320 px phones): the label goes under the tiles, the name and country get the whole top band */
@container (max-width:340px){
  #ec-cards .vcc .vt-bname{max-width:calc(100% - 24px)}
  #ec-cards .vcc .vt-ill{top:auto;bottom:9px;left:12px;right:auto}
  #ec-cards .vcc .vt-ban .tiles{margin-bottom:36px}}
.ec-foot{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-top:12px;font-size:13px;color:var(--mute)}
.ec-next{font-size:14.5px;color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.ec-next .n{display:inline-block;min-width:1ch}
.ec-foot .old{color:#8a4b1e}
.ec-none{padding:10px 0;color:var(--mute);font-size:14px}

/* ---------- 3. récits: ville.css .rcs/.rc ---------- */
.rc .ill,.acd .ill{position:absolute;right:4px;bottom:4px;font-family:var(--mono);font-size:8px;letter-spacing:.05em;text-transform:uppercase;background:rgba(246,240,231,.82);color:var(--ink-2);padding:1px 4px;border-radius:3px;pointer-events:none}
.rc-img{position:relative}

/* ---------- 4. tip du mois: one thin strip ---------- */
.tipm{margin-top:28px}
.tipm a{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:11px 14px;border-left:3px solid var(--tip);background:rgba(192,138,43,.11);border-radius:0 8px 8px 0}
.tipm .k{color:var(--tip-ink);flex:none}
.tipm .c{font-weight:600;font-size:14px;flex:none}
.tipm .t{font-family:var(--serif);font-size:19px;line-height:1.25;letter-spacing:-.01em;flex:1 1 280px;min-width:0}
.tipm .go{font-size:13.5px;text-decoration:underline;text-underline-offset:3px;flex:none;margin-left:auto}
.tipm a:hover .t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* ---------- 5. villes: the v1 "De A à Z" tiles, restored as they were (David, 2026-11-05: no shelf of carnets).
   Same declarations as the v1 page (build_home.py.bak-v1); scoped to #villes and with resets, because the shared
   ville.css now also styles .tiles/.tile (the square weather/map tiles of the Ville pages). ---------- */
#villes.sec{padding-top:56px}
@media (max-width:640px){#villes.sec{padding-top:32px}}
#villes .sec-head{margin-bottom:18px}
#villes .tiles{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:14px 12px;flex:initial;margin-top:0}
#villes .tile{position:static;box-sizing:border-box;width:auto;height:auto;flex:initial;border:0;border-radius:0;background:none;color:inherit}
#villes .tile.rv{transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i,0) * 80ms)}
#villes .tile a{display:block}
#villes .tile .ti{position:relative;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:#e8dccb}
#villes .tile img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
#villes .tile a:hover img{transform:scale(1.03)}
#villes .badge{display:inline-block;font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:999px;background:#edf3ec;color:#346538;white-space:nowrap}
#villes .tile .badge{position:absolute;left:6px;top:6px}
#villes .tile b{display:block;font-weight:500;font-size:14.5px;line-height:1.25;margin-top:6px}
#villes .tile small{display:block;color:var(--mute);font-size:12px}
#villes .tile a:hover b{text-decoration:underline;text-underline-offset:3px}
@media (max-width:1100px){#villes .tiles{grid-template-columns:repeat(4,1fr)}}
@media (max-width:640px){#villes .tiles{grid-template-columns:repeat(2,1fr);gap:12px 10px}}

/* ---------- 6. dernières actus: native scroll-snap list (fallback) / curved arc (html.hv-arc) ---------- */
.ac-stage{position:relative}
.ac{list-style:none;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 12px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.acd{flex:0 0 var(--cw,250px);scroll-snap-align:start}
.acd a{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.acd-img{position:relative;display:block;aspect-ratio:480/251;background:#e8dccb}
.acd-img img{width:100%;height:100%;object-fit:cover}
.acd-b{display:flex;flex-direction:column;gap:5px;padding:10px 12px 14px}
.acd-k{color:var(--ink-2);font-size:11px}
.acd-k .tag{font-size:9px;padding:2px 6px;margin-right:6px}
.acd-t{font-family:var(--serif);font-weight:400;font-size:18.5px;line-height:1.2;letter-spacing:-.01em}
.acd a:hover .acd-t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.ac-bar{display:none}
html.hv-arc .ac-stage{--cw:270px;height:350px;contain:layout paint;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);overflow:hidden;overflow:clip;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none;outline:none}
html.hv-arc .ac-stage:focus-visible{outline:2px solid #9a6a16;outline-offset:3px}
html.hv-arc .ac-stage.drag{cursor:grabbing}
html.hv-arc .ac{display:block;overflow:visible;padding:0;height:100%;visibility:hidden}
html.hv-arc .ac-stage.ready .ac{visibility:visible}
html.hv-arc .acd{position:absolute;left:50%;top:10px;width:var(--cw);margin-left:calc(var(--cw) / -2);will-change:transform}
html.hv-arc .acd a{min-height:236px}
html.hv-arc .acd a{-webkit-user-drag:none}
html.hv-arc .acd img{-webkit-user-drag:none;pointer-events:none}
html.hv-arc .ac-bar{display:flex;align-items:center;gap:10px;margin-top:6px}
@media (max-width:600px){html.hv-arc .ac-stage{--cw:250px;height:312px}.acd-t{font-size:17px}}
.ac-bar button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--surface);cursor:pointer;font-size:18px;line-height:1}
.ac-bar button:hover{border-color:var(--ink)}
.ac-bar button:disabled{opacity:.35;cursor:default}
.ac-cap{flex:1;text-align:center;font-size:13px;color:var(--mute)}
/* pause / play of the auto-move (WCAG 2.2.2): small, always visible while the arc runs; icon drawn in CSS */
.ac-bar .ac-pp{display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.ac-pp .ic{display:block;box-sizing:border-box;width:11px;height:13px;border-left:4px solid currentColor;border-right:4px solid currentColor}
.ac-pp[data-st="paused"] .ic{width:0;height:0;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent currentColor;margin-left:3px}
.ac-pp:focus-visible,.ac-bar button:focus-visible{outline:2px solid #9a6a16;outline-offset:2px}

/* ---------- v6 (David 2026-11-05): strike pill on the banner, 'La ville' tile, AI note ---------- */
/* strike pill: where the 'Illustration générée' pill was (top right), opaque paper, same colours as the grèves tile
   (red #a3221b en cours; orange text #8a5200 + asterisk #c97a12 annoncée), 12 px, links to Actus grèves */
#ec-cards .vt-gp{position:absolute;z-index:3;top:7px;right:12px;display:flex;flex-direction:column;align-items:flex-start;max-width:176px;padding:2px 9px 3px 8px;border-radius:8px;background:#fbf8f2;color:#a3221b;text-decoration:none;font-size:12px;line-height:1.2;box-shadow:0 1px 6px rgba(0,0,0,.25)}
#ec-cards .vt-gp[hidden]{display:none}
#ec-cards .vt-gp.next{color:#8a5200}
#ec-cards .gp-a{position:absolute;left:8px;top:4px;width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
#ec-cards .vt-gp.next .gp-a{stroke:#c97a12}
#ec-cards .gp-t{padding-left:15px;font-weight:600;white-space:nowrap}
#ec-cards .gp-l{max-width:100%;padding-left:15px;font-family:var(--mono);letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ec-cards .vt-gp:hover .gp-t,#ec-cards .vt-gp:focus-visible .gp-t{text-decoration:underline;text-underline-offset:2px}
#ec-cards .vt-gp:focus-visible{outline:2px solid #fbf6ee;outline-offset:2px}
#ec-cards .vcc:has(.vt-gp:not([hidden])) .vt-bname{max-width:calc(100% - 24px - 190px)}
@container (max-width:340px){
  #ec-cards .vt-gp{top:auto;bottom:9px;left:12px;right:12px;max-width:none;flex-direction:row;align-items:baseline;gap:6px;padding:3px 9px}
  #ec-cards .vt-gp .gp-a{top:6px;left:9px}
  #ec-cards .vt-gp .gp-l{padding-left:0;min-width:0}
  #ec-cards .vcc:has(.vt-gp:not([hidden])) .vt-ban .tiles{margin-bottom:36px}
  #ec-cards .vcc:has(.vt-gp:not([hidden])) .vt-bname{max-width:calc(100% - 24px)}}
/* 'La ville' tile: kicker + up to 3 lines (guide complet, carnets, récits); medium text >= 76 px tiles, short below */
#ec-cards .vl{container-type:size;display:block;background:rgba(251,248,242,.88);color:var(--ink);text-decoration:none}
#ec-cards .vl-in{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:6px 6px 5px;border-radius:7px}
#ec-cards .vl-k{font-size:12px;line-height:1.1;letter-spacing:0;text-transform:uppercase;color:var(--ink)}
#ec-cards .vl-u{display:flex;flex-direction:column;gap:1px;font-size:12px;line-height:1.08;letter-spacing:-.01em}
#ec-cards .vl-r b{font-weight:700}
#ec-cards .vl-g{font-weight:600;color:#1d4d33}
#ec-cards .vl .s{display:none}
#ec-cards .vl:hover{border-color:var(--ink)}
#ec-cards .vl:hover .vl-k{text-decoration:underline;text-underline-offset:2px}
#ec-cards .vl-r{white-space:nowrap}#ec-cards .vl-g .m{white-space:normal}
#ec-cards .vl-in{padding:5px}
#ec-cards .vl-u{gap:0}
@container (max-width:69px){#ec-cards .vl .m{display:none}#ec-cards .vl .s{display:inline}#ec-cards .vl-in{padding:5px 4px 4px}#ec-cards .vl-u{letter-spacing:-.02em}#ec-cards .vl-g .s{letter-spacing:-.04em}}
@container (max-height:69px){#ec-cards .vl.n3 .vl-k{display:none}}
.ec-ai{margin-top:14px;font-size:12.5px;color:var(--mute)}

/* ---------- v7 (David 2026-11-05): 'Autres villes' = cities without a full guide, compact rows (no photo) ---------- */
#villes .ov-leg{display:flex;flex-wrap:wrap;gap:4px 16px;margin:-6px 0 12px;font-size:12px;color:var(--mute)}
#villes .ov-leg span{display:inline-flex;align-items:center;gap:5px}
#villes .ov-leg svg{width:15px;height:15px;fill:none;stroke:var(--ink-2);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#villes .ov-leg .ov-gi{width:11px;height:11px;stroke:#a3221b;stroke-width:2.2}
#villes .ov-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0 28px;border-top:1px solid var(--ink)}
@media (min-width:700px){#villes .ov-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){#villes .ov-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#villes .ov{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px 2px 11px;border-bottom:1px solid var(--line)}
#villes .ov-a{display:flex;align-items:baseline;gap:8px;min-width:0;color:var(--ink);text-decoration:none}
#villes .ov-a::after{content:"";position:absolute;inset:0;z-index:1}
#villes .ov-a b{font-family:var(--serif);font-weight:400;font-size:22px;line-height:1.1;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#villes .ov-c{flex:none;font-size:13px;color:var(--mute)}
#villes .ov:hover .ov-a b,#villes .ov-a:focus-visible b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
#villes .ov-a:focus-visible{outline:none}
#villes .ov-a:focus-visible::after{outline:2px solid var(--ink);outline-offset:-1px;border-radius:6px}
#villes .ov-t{display:flex;flex-wrap:wrap;gap:5px}#villes .ov-ms,#villes .ov-live{display:flex;flex-wrap:wrap;gap:5px}#villes .ov-live:empty{display:none}
#villes .ov-m,#villes .ov-g,#villes .ov-b{box-sizing:border-box;height:46px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
#villes .ov-m{width:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;pointer-events:none}
#villes .ov-m svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#villes .ov-m b{font-family:var(--mono);font-size:13px;font-weight:600;line-height:1;color:var(--ink)}
#villes .ov-g,#villes .ov-b{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:4px 7px;font-size:12px;line-height:1.2;color:var(--ink);text-decoration:none;white-space:nowrap}
#villes .ov-g:hover,#villes .ov-b:hover{border-color:var(--ink)}
#villes .ov-g:focus-visible,#villes .ov-b:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
#villes .ov-g1{display:flex;align-items:center;gap:5px}
#villes .ov-g svg{width:11px;height:11px;fill:none;stroke:#b3261e;stroke-width:2.2;stroke-linecap:round}
#villes .ov-gt{font-weight:600;color:#a3221b}
#villes .ov-gl{font-family:var(--mono);color:#a3221b}
#villes .ov-g.next svg{stroke:#c97a12}
#villes .ov-g.next .ov-gt,#villes .ov-g.next .ov-gl{color:#8a5200}
#villes .ov-b b{font-family:var(--mono);font-weight:600}
