/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
   viens. — la carte DU SITE (kit-ultime/cartes/site-carte.css, 13 oct. 2026, chantier « viens. ultime »)

   Se charge APRÈS cartes.css (le kit) : il en garde toutes les épingles et ne pose que ce qui est propre au site :
     1. les polices : les WOFF2 du kit ultime (kit-ultime/polices, sous-ensembles latin + latin étendu), déclarées après
        celles de cartes.css (WOFF entiers) pour les remplacer — la dernière déclaration l'emporte, les WOFF ne sont donc
        jamais téléchargés, et une page qui charge déjà kit-polices.css retrouve exactement les mêmes fichiers ;
     2. le cadre des cartes vivantes (accueil, listes du guide et de la recherche, /carte/) : le carrousel sous la carte,
        les pilules (« 12 sorties ici », « Rien par ici pour l'instant »), le voile « Touche pour explorer » au doigt,
        les contrôles de Leaflet au-dessus du carrousel ;
     3. les mini-cartes des fiches ;
     4. la page /carte/ (carte.php) : son titre, ses rails, son cadre ;
     5. le sombre (la classe .vcs-nuit, posée par site-carte.js quand la PAGE est en sombre) et le mouvement réduit.
   Les règles de v7.css qui dessinaient l'ancienne carte (grappes violettes, points, bulles) restent dans v7.css mais ne
   servent plus : site-carte.js ne crée plus ces éléments. Rien ici ne touche une page sans carte (tout est préfixé vcs-,
   ou attaché aux boîtes de carte du v7).
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ═══════════ 1. LES POLICES (OFL 1.1 : ../polices/*-OFL.txt) ═══════════ */
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/instrument-sans-viens-400.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B2-00B4, U+00B6-00BB, U+00BF-00FF, U+0131, U+0152-0153, U+0178, U+02B3, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1D49, U+2009-200A, U+2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2248; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/instrument-sans-viens-400-ext.woff2") format("woff2"); unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-0177, U+0179-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+1E80-1E85, U+1E9E, U+1EF2-1EF3; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/instrument-sans-viens-500.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B2-00B4, U+00B6-00BB, U+00BF-00FF, U+0131, U+0152-0153, U+0178, U+02B3, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1D49, U+2009-200A, U+2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2248; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/instrument-sans-viens-500-ext.woff2") format("woff2"); unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-0177, U+0179-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+1E80-1E85, U+1E9E, U+1EF2-1EF3; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/instrument-sans-viens-600.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B2-00B4, U+00B6-00BB, U+00BF-00FF, U+0131, U+0152-0153, U+0178, U+02B3, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1D49, U+2009-200A, U+2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2248; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/instrument-sans-viens-600-ext.woff2") format("woff2"); unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-0177, U+0179-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+1E80-1E85, U+1E9E, U+1EF2-1EF3; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 700; font-display: swap; src: url("../polices/instrument-sans-viens-700.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B2-00B4, U+00B6-00BB, U+00BF-00FF, U+0131, U+0152-0153, U+0178, U+02B3, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1D49, U+2009-200A, U+2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2248; }
@font-face { font-family: "Instrument Sans viens"; font-style: normal; font-weight: 700; font-display: swap; src: url("../polices/instrument-sans-viens-700-ext.woff2") format("woff2"); unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-0177, U+0179-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+1E80-1E85, U+1E9E, U+1EF2-1EF3; }
@font-face { font-family: "Instrument Serif viens"; font-style: italic; font-weight: 400; font-display: swap; src: url("../polices/instrument-serif-viens-400-italique.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B2-00B4, U+00B6-00BB, U+00BF-00FF, U+0131, U+0152-0153, U+0178, U+02B3, U+02C6, U+02DA, U+02DC, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1D49, U+2009-200A, U+2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F-2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2248; }
@font-face { font-family: "Instrument Serif viens"; font-style: italic; font-weight: 400; font-display: swap; src: url("../polices/instrument-serif-viens-400-italique-ext.woff2") format("woff2"); unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-0177, U+0179-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+1E80-1E85, U+1E9E, U+1EF2-1EF3; }
/* le point de viens. (« 17h. ») : ViensMarque, réduite aux lettres du logo */
@font-face { font-family: "ViensMarque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../polices/viens-marque-800.woff2") format("woff2"); unicode-range: U+0020, U+002E, U+0056, U+0065, U+0069, U+006E, U+0073, U+0076; }

/* ═══════════ 2. LE CADRE DES CARTES VIVANTES ═══════════ */
.vcs-boite, .vcs-mini, .vcs-page {
  --vc-sans: "Instrument Sans viens", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vc-serif: "Instrument Serif viens", "Instrument Serif", Georgia, serif;
  --vc-marque: "ViensMarque", "Viens Marque", "Instrument Sans viens", system-ui, sans-serif;
  --vc-sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --vc-douce: cubic-bezier(0.45, 0, 0.55, 1);
  --vcs-sol: #F4F1FA; --vcs-encre: #171226; --vcs-gris: #6B6480; --vcs-panneau: #FFFFFF;
}
.vcs-boite.vcs-nuit, .vcs-mini.vc-nuit { --vcs-sol: #171226; --vcs-encre: #FFFFFF; --vcs-gris: #B4AECA; --vcs-panneau: #241D38; }
.vcs-boite { position: relative; background: var(--vcs-sol); }
/* les boîtes du v7 (accueil, liste, fiche) prennent le sol lavande de la carte : rien ne clignote quand le fond arrive */
.v7-carte-boite.vcs-boite, .v7-carte-zone.vcs-boite { background: var(--vcs-sol); box-shadow: 0 0 0 0.75px rgba(23, 18, 38, 0.06), 0 8px 24px rgba(27, 15, 58, 0.08); }
.v7-carte-zone.vcs-boite { overflow: hidden; isolation: isolate; }
/* l'accueil : le carrousel prend 182 px en bas ; la boîte grandit pour que la ville reste lisible au-dessus. Cette feuille
   n'arrive qu'à l'approche de la carte (300 px avant l'écran) : la boîte grandit hors de la vue, rien ne saute. */
.v7-carte-boite.vcs-boite { height: 560px; }
@media (max-width: 760px) { .v7-carte-boite.vcs-boite { height: 540px; } }
.vcs-carte { position: absolute; inset: 0; z-index: 0; font-family: var(--vc-sans); color: var(--vcs-encre); -webkit-font-smoothing: antialiased; }
.vcs-fond { position: absolute; inset: 0; }
.vcs-fond:focus-visible { outline: 2px solid var(--vcs-encre); outline-offset: -4px; }
/* Leaflet pose son propre fond gris clair sur le conteneur : le sol de la carte le remplace */
.vcs-carte .leaflet-container, .vcs-mini.leaflet-container { background: var(--vcs-sol); font-family: var(--vc-sans); }
/* le carrousel : le programme de la vue, posé sur le bas de la carte */
.vcs-car { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 800; }
.vcs-car .vc-car-piste { padding-bottom: 6px; }
/* les contrôles de Leaflet (zoom, mentions) au-dessus du carrousel */
.vcs-carte .leaflet-bottom { bottom: var(--vcs-bas, 14px); }
.vcs-carte .leaflet-control-zoom { margin-right: 10px; margin-bottom: 8px; }
.vcs-carte .leaflet-control-zoom a { display: grid; place-items: center; }
.vcs-carte .leaflet-control-zoom a svg { display: block; }
.vcs-carte .leaflet-control-zoom a:focus-visible { outline: 2px solid var(--vcs-encre); outline-offset: -3px; }
.vcs-carte .leaflet-control-attribution, .vcs-mini .leaflet-control-attribution { font-size: 11px; line-height: 16px; }
.vcs-carte .leaflet-top.leaflet-right .leaflet-control-attribution { margin: 10px 12px 0 0; border-radius: 8px; }
.vcs-carte .leaflet-control-attribution a, .vcs-mini .leaflet-control-attribution a { text-decoration: underline; text-underline-offset: 2px; }
/* au doigt, on pince ; les boutons de zoom ne servent qu'à la souris et au clavier */
@media (pointer: coarse) { .vcs-carte .leaflet-control-zoom { display: none; } }

/* les pilules du bas : « 12 sorties ici » (le seul nombre de l'écran), « Rien par ici pour l'instant · Tout voir » */
.vcs-pilules { position: absolute; z-index: 801; left: 12px; bottom: calc(var(--vcs-bas, 14px) + 8px); display: flex; gap: 8px; pointer-events: none; }
.vcs-pilules > * { pointer-events: auto; }
.vcs-pilules [hidden] { display: none; }
.vcs-compte .vcs-ic, .vcs-vide .vcs-ic { flex: none; }
.vcs-vide { gap: 6px; }
.vcs-vide span { color: var(--vcs-gris); font-weight: 500; }
.vcs-vide b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vcs-vide:disabled { cursor: default; }
.vcs-vide:disabled span { color: var(--vcs-encre); }
.vcs-carte.vcs-rien:not(.vcs-avec-car) .vcs-pilules { bottom: 14px; }

/* au doigt : la page défile à travers la carte jusqu'au premier toucher (le carrousel, lui, reste vivant) */
.vcs-voile { position: absolute; z-index: 790; left: 0; right: 0; top: 0; bottom: var(--vcs-bas, 0px); display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 12px 8px; border: 0; margin: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: var(--vc-sans); }
.vcs-voile span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.96); color: #171226; font: 600 14px/1 var(--vc-sans); box-shadow: 0 3px 12px rgba(76, 47, 191, 0.16), 0 0 0 0.75px rgba(23, 18, 38, 0.06); }
.vcs-voile:focus-visible span { outline: 2px solid #171226; outline-offset: 2px; }
/* l'invitation ne cache rien au repos : elle paraît au passage du doigt (ou au clavier), à la place des pilules */
.vcs-voile span { opacity: 0; transform: translateY(4px); transition: opacity 200ms var(--vc-sortie), transform 200ms var(--vc-sortie); }
.vcs-voile.vcs-montre span, .vcs-voile:focus-visible span { opacity: 1; transform: none; }
.vcs-carte:has(.vcs-voile.vcs-montre) .vcs-pilules, .vcs-carte:has(.vcs-voile:focus-visible) .vcs-pilules { visibility: hidden; }
.vcs-carte:not(.vcs-avec-car) .vcs-voile { padding-bottom: 14px; }
.vcs-nuit .vcs-voile span { background: rgba(36, 29, 56, 0.96); color: #FFFFFF; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), 0 0 0 0.75px rgba(255, 255, 255, 0.08); }

/* l'attente et la panne (posées par v7.js sur la boîte, avant que la carte n'existe) */
.vcs-etat { position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.96); color: #171226; font: 600 14px/18px "Instrument Sans viens", system-ui, sans-serif; box-shadow: 0 3px 12px rgba(76, 47, 191, 0.16), 0 0 0 0.75px rgba(23, 18, 38, 0.06); white-space: nowrap; }
.vcs-etat button { border: 0; padding: 0; margin: 0 0 0 2px; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vcs-etat button:focus-visible { outline: 2px solid #171226; outline-offset: 2px; border-radius: 4px; }
.vcs-etat--attente { animation: vcs-fondu 200ms var(--vc-sortie, ease) both; }
@keyframes vcs-fondu { from { opacity: 0; } }

/* les deux gris du kit qui passaient sous AA (texte de 11 à 14 px) : « déjà vue » #7A7391 (4,48:1) et « Complet »
   #756E8C sur #EFEBF6 (4,10:1) ; la nuit, « Complet » #7F789C sur #1C172B (4,20:1). Ici : le gris « dim » de l'app
   #6F6885 (5,26:1), #645D79 (5,29:1), #8F88AB (5,20:1). Le dessin ne change pas. */
.vc-b--vu { --e: #6F6885; --j: #6F6885; --s: #6F6885; }
.vc-b--complet { --e: #645D79; --j: #645D79; }
.vc-nuit .vc-b--complet { --e: #8F88AB; --j: #8F88AB; }

/* ═══════════ 3. LES MINI-CARTES DES FICHES ═══════════ */
.v7-mini-carte.vcs-mini { border: 0; background: var(--vcs-sol); box-shadow: 0 0 0 0.75px rgba(23, 18, 38, 0.06), 0 8px 24px rgba(27, 15, 58, 0.06); }
.vcs-mini .vc-o { cursor: default; }
.vcs-mini .vcs-epingle { overflow: visible; }
.vcs-cible-seule { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; }
.vcs-cible-seule svg { display: block; }

/* ═══════════ 4. LA PAGE /carte/ (carte.php) ═══════════ */
.vcs-page { font-family: var(--vc-sans); color: #171226; -webkit-font-smoothing: antialiased; }
.vcs-page-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.vcs-tete { padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.vcs-tete h1 { margin: 0; font: 700 28px/33px var(--vc-sans); letter-spacing: -0.02em; color: #171226; text-wrap: balance; }
.vcs-tete h1 em { font: italic 400 30px/35px var(--vc-serif); letter-spacing: -0.008em; color: #7C3AED; }
.vcs-sous { margin: 6px 0 0; font: 400 15px/23px var(--vc-sans); color: #6B6480; max-width: 62ch; }
.vcs-rails { margin-top: 18px; display: grid; gap: 8px; }
.vcs-rails .vc-rail { padding: 3px 2px 6px; margin: 0 -2px; }
.vcs-page .vc-puce { height: 38px; border-radius: 19px; }
.vcs-page .vc-puce[aria-pressed="true"] .vcs-badge { box-shadow: 0 0 0 1.5px #FFFFFF; }
.vcs-sep { flex: none; width: 1px; height: 22px; background: rgba(23, 18, 38, 0.12); align-self: center; margin: 0 2px; }
.vcs-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.vcs-badge svg { display: block; }
.vcs-ou { position: relative; flex: none; display: inline-flex; }
.vcs-ou select { height: 38px; border: 0; border-radius: 19px; padding: 0 36px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer; background: rgba(255, 255, 255, 0.96); color: #171226; font: 600 14px/1 var(--vc-sans); box-shadow: 0 3px 12px rgba(76, 47, 191, 0.13), 0 0 0 0.75px rgba(23, 18, 38, 0.06); }
.vcs-ou select:focus-visible { outline: 2px solid #171226; outline-offset: 2px; }
.vcs-ou .vcs-ic { position: absolute; right: 13px; top: 50%; margin-top: -8px; pointer-events: none; color: #171226; }
.vcs-cadre { position: relative; margin-top: 12px; height: min(74vh, 700px); min-height: 520px; border-radius: 24px; overflow: hidden; isolation: isolate; background: #F4F1FA; box-shadow: 0 0 0 0.75px rgba(23, 18, 38, 0.06), 0 8px 24px rgba(27, 15, 58, 0.08); }
.vcs-cadre noscript, .vcs-sans-js { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; font: 500 15px/23px var(--vc-sans); color: #6B6480; }
.vcs-section { margin-top: 40px; }
.vcs-section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.vcs-section h2 { margin: 0; font: 700 21px/27px var(--vc-sans); letter-spacing: -0.015em; color: #171226; }
.vcs-lien { display: inline-flex; align-items: center; gap: 6px; color: #7C3AED; font: 600 15px/21px var(--vc-sans); text-decoration: none; }
.vcs-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.vcs-lien:focus-visible { outline: 2px solid #171226; outline-offset: 3px; border-radius: 4px; }
.vcs-villes { display: flex; gap: 8px; flex-wrap: wrap; }
.vcs-villes a { text-decoration: none; }
.vcs-villes a span { color: #6B6480; font-weight: 500; }
@media (min-width: 761px) {
  .vcs-tete h1 { font-size: 40px; line-height: 46px; letter-spacing: -0.025em; }
  .vcs-tete h1 em { font-size: 44px; line-height: 48px; letter-spacing: -0.012em; }
}
@media (max-width: 760px) {
  .vcs-page-in { padding: 0 16px; }
  .vcs-cadre { height: 72vh; min-height: 500px; border-radius: 20px; margin-left: -4px; margin-right: -4px; }
}

/* ═══════════ 5. LE MOUVEMENT RÉDUIT ═══════════ */
@media (prefers-reduced-motion: reduce) {
  .vcs-etat--attente { animation: none; }
  .vcs-voile span { transition: none; transform: none; }
  .vcs-carte .leaflet-zoom-anim .leaflet-zoom-animated { transition: none !important; }
}
