/* Carte interactive de GTA VI (page-carte-gta-vi.php, 28 novembre 2026). L'application (colonne + carte) reste sombre
   en mode clair, comme les hauts de page ; la liste des lieux en dessous suit le mode clair (fin de fichier). */
.vc-cg {
  --cg-bg: #121116; --cg-panel: #17151c; --cg-card: #1d1b23; --cg-line: rgba(255,255,255,.08); --cg-line2: rgba(255,255,255,.16);
  --cg-fg: #f3eff4; --cg-fg2: #d6d0d9; --cg-mut: #a29ca9; --cg-neon: #d6235f; --cg-pink: #ff7aa0;
  --cg-fd: 'Bebas Neue', Impact, sans-serif; --cg-fc: 'Barlow Condensed', 'Arial Narrow', sans-serif; --cg-fb: 'Barlow', system-ui, sans-serif;
  display: block; background: var(--cg-bg); color: var(--cg-fg); font-family: var(--cg-fb);
}
.vc-cg *, .vc-cg *::before, .vc-cg *::after { box-sizing: border-box; }
.vc-cg button { font: inherit; color: inherit; }
.cg-app { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100svh - 64px); min-height: 560px; max-height: 1100px; border-bottom: 1px solid var(--cg-line); }

/* ---------- colonne ---------- */
.cg-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--cg-line); background: var(--cg-panel); }
.cg-side-h { padding: 20px 20px 14px; display: grid; gap: 12px; border-bottom: 1px solid var(--cg-line); }
.cg-k { margin: 0; font: 700 13px/1 var(--cg-fc); letter-spacing: .18em; text-transform: uppercase; color: var(--cg-neon); }
.cg-h1 { margin: 0; font: 400 40px/.92 var(--cg-fd); letter-spacing: .3px; color: var(--cg-fg); }
.cg-intro { margin: 0; color: var(--cg-fg2); line-height: 1.5; font-size: 14.5px; }
.cg-srch { position: relative; display: block; }
.cg-srch input { width: 100%; background: var(--cg-card); border: 1px solid var(--cg-line2); border-radius: 12px; padding: 11px 14px 11px 38px; color: var(--cg-fg); font: 400 16px/1.2 var(--cg-fb); }
.cg-srch input:focus { outline: 2px solid var(--cg-neon); outline-offset: 1px; }
.cg-srch svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); stroke: var(--cg-mut); fill: none; stroke-width: 2; stroke-linecap: round; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cg-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--cg-line2); background: var(--cg-card); border-radius: 999px; padding: 7px 11px 7px 9px; font: 700 13.5px/1 var(--cg-fc); letter-spacing: .04em; cursor: pointer; color: var(--cg-fg2); }
.cg-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cg-chip small { font-weight: 600; color: var(--cg-mut); font-size: 12px; }
.cg-chip[aria-pressed="false"] { opacity: .45; }
.cg-chip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.cg-chip:hover { border-color: var(--c); }
.cg-chip:focus-visible, .cg-it:focus-visible, .cg-card a:focus-visible, .cg-card button:focus-visible, .cg-mtog button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cg-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 14px; scrollbar-width: thin; }
.cg-grp-h { margin: 10px 8px 4px; font: 700 12.5px/1 var(--cg-fc); letter-spacing: .16em; text-transform: uppercase; color: var(--cg-mut); display: flex; align-items: center; gap: 8px; }
.cg-grp-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cg-it { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: 12px; padding: 8px; cursor: pointer; }
.cg-it:hover, .cg-it.on { background: var(--cg-card); }
.cg-it.on { box-shadow: inset 3px 0 var(--c); }
.cg-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.cg-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cg-it b { display: block; font: 700 16px/1.15 var(--cg-fc); color: var(--cg-fg); }
.cg-it small { display: block; color: var(--cg-mut); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-empty { padding: 24px 12px; color: var(--cg-mut); text-align: center; margin: 0; }
.cg-side-f { margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--cg-line); font-size: 12.5px; color: var(--cg-mut); line-height: 1.45; }

/* ---------- carte ---------- */
.cg-mapw { position: relative; min-height: 0; }
.cg-map { position: absolute; inset: 0; background: #0d7894; }
.vc-cg .leaflet-container { font-family: var(--cg-fb); background: #0d7894; }
.vc-cg .leaflet-control-zoom { border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.35); border-radius: 12px; overflow: hidden; }
.vc-cg .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; background: rgba(18,17,22,.92); color: #fff; border-bottom: 1px solid var(--cg-line); font-size: 20px; }
.vc-cg .leaflet-control-zoom a:hover { background: #25222c; }
.vc-cg .leaflet-control-zoom a.leaflet-disabled { color: #6b6672; background: rgba(18,17,22,.92); }
.cg-pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--c); box-shadow: 0 0 0 3px rgba(18,17,22,.85), 0 6px 14px rgba(0,0,0,.45); transition: transform .15s; }
.cg-pin svg { width: 16px; height: 16px; transform: rotate(45deg); fill: none; stroke: #121116; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cg-mk:hover .cg-pin, .cg-mk.on .cg-pin { transform: rotate(-45deg) scale(1.22); }
.cg-mk.on .cg-pin { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--c), 0 8px 18px rgba(0,0,0,.5); }
.cg-mk.is-q .cg-pin { border-radius: 50%; transform: none; }
.cg-mk.is-q .cg-pin svg { transform: none; }
.cg-mk.is-q:hover .cg-pin, .cg-mk.is-q.on .cg-pin { transform: scale(1.22); }
.vc-cg .leaflet-tooltip.cg-tt { background: rgba(18,17,22,.94); color: #fff; border: 1px solid var(--cg-line2); border-radius: 8px; font: 700 14px/1.2 var(--cg-fc); padding: 5px 9px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.vc-cg .leaflet-tooltip.cg-tt::before { display: none; }
.cg-card { position: absolute; z-index: 600; left: 18px; bottom: 18px; width: min(380px, calc(100% - 36px)); background: rgba(23,21,28,.97); border: 1px solid var(--cg-line2); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.55); color: var(--cg-fg); }
.cg-card[hidden] { display: none; }
.cg-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cg-fig { position: relative; margin: 0; }
.cg-fig figcaption { position: absolute; right: 8px; bottom: 8px; font: 600 11.5px/1 var(--cg-fc); letter-spacing: .04em; color: #fff; background: rgba(10,9,13,.72); padding: 4px 7px; border-radius: 6px; }
.cg-card-in { padding: 16px 18px 18px; display: grid; gap: 9px; }
.cg-cat { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font: 700 12.5px/1 var(--cg-fc); letter-spacing: .12em; text-transform: uppercase; color: #121116; background: var(--c); border-radius: 999px; padding: 5px 10px; }
.cg-card h2 { margin: 0; font: 400 32px/.95 var(--cg-fd); letter-spacing: .3px; color: var(--cg-fg); }
.cg-card .cg-zz { display: flex; gap: 7px; align-items: center; font: 600 15px/1.2 var(--cg-fc); color: var(--cg-fg2); }
.cg-card .cg-zz svg { width: 15px; height: 15px; flex: none; stroke: var(--c); fill: none; stroke-width: 2; }
.cg-card p { margin: 0; color: var(--cg-fg2); line-height: 1.5; font-size: 14.5px; }
.cg-card .cg-prec { font-size: 12.5px; color: var(--cg-mut); }
.cg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cg-btn { display: inline-flex; align-items: center; gap: 7px; font: 700 14.5px/1 var(--cg-fc); letter-spacing: .07em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; background: var(--cg-neon); color: #fff; border: 1px solid var(--cg-neon); text-decoration: none; cursor: pointer; }
.cg-btn:hover { color: #fff; filter: brightness(1.08); }
.cg-btn.gh { background: rgba(255,255,255,.06); border-color: var(--cg-line2); }
.cg-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cg-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cg-line2); background: rgba(18,17,22,.8); display: grid; place-items: center; cursor: pointer; }
.cg-x svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.cg-mtog { display: none; }

/* ---------- liste des lieux ---------- */
.cg-all { padding: 56px 0 72px; }
.cg-all-in { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.cg-all h2 { margin: 0 0 8px; font: 400 44px/.95 var(--cg-fd); color: var(--cg-fg); }
.cg-all-lead { margin: 0 0 24px; color: var(--cg-mut); }
.cg-grp { border: 1px solid var(--cg-line); border-radius: 16px; background: var(--cg-card); margin-bottom: 12px; }
.cg-grp summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font: 700 18px/1.2 var(--cg-fc); color: var(--cg-fg); }
.cg-grp summary::-webkit-details-marker { display: none; }
.cg-grp summary i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.cg-grp summary small { color: var(--cg-mut); font-weight: 600; }
.cg-grp summary::after { content: "+"; margin-left: auto; font: 400 24px/1 var(--cg-fb); color: var(--cg-mut); }
.cg-grp[open] summary::after { content: "–"; }
.cg-grp ul { list-style: none; margin: 0; padding: 0 18px 8px; }
.cg-grp li { padding: 12px 0; border-top: 1px solid var(--cg-line); }
.cg-grp li > a { color: var(--cg-fg); text-decoration: none; }
.cg-grp li > a:hover strong { color: var(--cg-pink); }
.cg-grp strong { font: 700 17px/1.2 var(--cg-fc); }
.cg-z { display: block; margin-top: 2px; font-size: 13.5px; color: var(--cg-mut); }
.cg-grp p { margin: 6px 0 0; color: var(--cg-fg2); line-height: 1.5; font-size: 15px; }
.cg-grp p a { color: var(--cg-pink); }
.cg-credit { margin: 22px 0 0; font-size: 13.5px; color: var(--cg-mut); line-height: 1.55; }
.cg-credit a { color: var(--cg-pink); }

@media (max-width: 760px) {
  .cg-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100svh - 56px); min-height: 520px; }
  .cg-side { border-right: 0; border-bottom: 1px solid var(--cg-line); }
  .cg-side-h { padding: 12px 16px; gap: 10px; border-bottom: 0; }
  .cg-k, .cg-intro { display: none; }
  .cg-h1 { font-size: 28px; }
  .cg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cg-chips::-webkit-scrollbar { display: none; }
  .cg-chip { flex: none; }
  .cg-list, .cg-side-f { display: none; }
  .cg-app.show-list .cg-list { display: block; max-height: 40svh; }
  .cg-mtog { display: flex; }
  .cg-mtog button { flex: 1; border: 1px solid var(--cg-line2); background: var(--cg-card); border-radius: 10px; padding: 8px; font: 700 13.5px/1 var(--cg-fc); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--cg-fg); }
  .cg-card { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 62%; overflow-y: auto; }
  .cg-card img { aspect-ratio: 21/9; }
  .cg-card h2 { font-size: 28px; }
  .cg-all { padding: 40px 0 56px; }
  .cg-all-in { padding: 0 16px; }
  .cg-all h2 { font-size: 36px; }
}

/* ---------- mode clair : la liste suit, l'application reste sombre ---------- */
html[data-theme="light"] .cg-all { background: #f7f4f0; --cg-card: #fff; --cg-line: rgba(26,16,20,.1); --cg-fg: #1a1014; --cg-fg2: #33262c; --cg-mut: #66575e; --cg-pink: #b8174f; }
html[data-theme="light"] .cg-grp { box-shadow: 0 10px 28px rgba(60,30,45,.06); }
