/* Leonida Map. Shared palette for the map and the editorial page. */
:root,
html[data-theme="nuit"] {
  --paper: #15101f;
  --paper-2: #1e172a;
  --card: #251d32;
  --solid: #110d18;
  --ink: #fff4ec;
  --ink-soft: #d4c4db;
  --light: #fff4ec;
  --light-2: #f4dfec;
  --rule: #57425f;
  --line: #715478;
  --line-strong: #ffdab9;
  --rose: #ff8ca9;
  --coral: #ff9b94;
  --coral-text: #ffb2c9;
  --coral-deep: #ffa5bf;
  --amber: #ffca9e;
  --amber-2: #ffe0bb;
  --tint-amber: #493136;
  --tint-rose: #4d2947;
  --on-accent: #201220;
  --violet: #e3b6ff;
  --grad: linear-gradient(120deg, #ffcf9d, #ff8dad 55%, #d5a5fc);
  --grad-soft: linear-gradient(120deg, #573441, #48274f);
  --hover-tint: #ff9fbe1f;
  --hover-tint-strong: #ff9fbe38;
  --hover-card: #3e2a4b;
  --shadow-ink: #130d1c;
  --shadow-hard: 0 12px 34px #0b071063;
  --shell-max: 1510px;
  color-scheme: dark;
}
html:not([data-theme="nuit"]) {
  --paper: #fff2eb;
  --paper-2: #f8dfe8;
  --card: #fff8f4;
  --solid: #29172f;
  --ink: #2b172f;
  --ink-soft: #634764;
  --rule: #dcbcca;
  --line: #ad819e;
  --coral-text: #8b2857;
  --coral-deep: #722044;
  --tint-amber: #ffe2cb;
  --tint-rose: #f9d7e5;
  --violet: #703c8b;
  --hover-tint: #8b28571a;
  --hover-tint-strong: #8b28572d;
  --hover-card: #fae4ef;
  --shadow-ink: #533052;
  --shadow-hard: 0 12px 32px #5d304726;
  color-scheme: light;
}

body { background: var(--paper); }
header, .lk-langbar { background: #140f1d; }
header .brand, footer .brand, footer .foot-brand {
  color: #fff4ec;
  font-weight: 900;
  letter-spacing: -.055em;
}
header .brand span, footer .brand span, footer .foot-brand span { color: #ff9dbb; }

.vhero {
  isolation: isolate;
  border: 0;
  background: #21132b;
}
html .vhero .vhero-bg {
  background:
    linear-gradient(90deg, #17101ffa 2%, #20142be8 32%, #30173542 72%),
    linear-gradient(0deg, #22142e, transparent 78%),
    url("./img/officiel/vice-city-03-1280.webp") 55% 45% / cover;
}
html .vhero .vhero-bg::after {
  background: linear-gradient(115deg, transparent 48%, #e4639d26 75%, #ffb88c46);
}
.vhero-in { padding-block: clamp(42px, 7vw, 92px) clamp(34px, 5vw, 70px); }
.vhero .vhero-eyebrow {
  color: #ffcf9d;
  font-weight: 800;
  letter-spacing: .19em;
}
.vhero h1 {
  max-width: 9ch;
  font-size: clamp(3.1rem, 7.5vw, 7.9rem);
  font-weight: 950;
  line-height: .89;
  letter-spacing: -.075em;
  text-wrap: balance;
  color: #ffcf9d;
  background: var(--grad);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vhero .lede, .vhero .vstats-note, .vhero .vstat .l { color: #f1ddeb; }
.vhero .vstat .n { color: #ffcbad; }
.vhero .lk-stack figure {
  border: 1px solid #ffc4d48c;
  box-shadow: 0 16px 36px #150a23a0;
}
.lm-jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 100px;
  background: var(--grad);
  color: #201220;
  font-weight: 850;
  text-decoration: none;
}
.lm-jump:hover { background: #ffdfbc; color: #201220; }
html .fcount {
  background: #24172f;
  border-bottom: 1px solid #684760;
}
.map-shell { margin-top: 24px; scroll-margin-top: 90px; }
.map-side, .map-stage, .reg, .lk-entry-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
}
.map-side {
  background: linear-gradient(155deg, var(--card), var(--paper-2));
}
.map-search, .map-sug, .map-panel, .map-help-box,
.map-ruler-box, .map-trajet, .map-coord, .map-zoom {
  border-radius: 12px;
  border-color: var(--rule);
}
.map-search input { color: var(--ink); }
.map-tool, .map-only, .mp-btn, .mp-share, .ed-io button, .map-trajet-fab {
  border-radius: 9px;
}
.map-trajet-fab, .mp-btn.on, .map-only.on {
  background: var(--grad);
  color: #201220;
}
.map-prog-rail > span { background: var(--grad); }
.map-stage { outline: 1px solid #e49bc94d; }
.map-panel { box-shadow: 0 16px 36px #0d081369; }
.map-mini, .map-zoom { box-shadow: 0 8px 24px #100b1866; }
:focus-visible { outline-color: var(--coral-text); }

@media (max-width: 700px) {
  html .vhero .vhero-bg {
    background:
      linear-gradient(90deg, #20142be8, #20142b75),
      url("./img/officiel/vice-city-03-800.webp") center / cover;
  }
  .vhero h1 { font-size: clamp(2.9rem, 13vw, 5rem); }
  .vhero .vstats { gap: 14px 22px; }
}


@media (max-width: 700px) {
  .vhero .lk-head-grid .lk-stack {
    max-width: 280px;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
  }
}

header .burger span { background: #fff4ec; }
#map-stage { scroll-margin-top: 96px; }
html[data-theme="nuit"] .fcount { background: linear-gradient(110deg, #25182f, #4b284e); }

.footer-skyline {
  height: clamp(130px, 15vw, 310px);
  background:
    linear-gradient(to bottom, transparent 68%, var(--solid)),
    url("./img/footer-skyline.webp") center 56% / cover no-repeat,
    var(--solid);
}

.footer-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-map-links a {
  color: var(--light);
  text-decoration: none;
}
.footer-map-links a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.seo-region-links { margin-block: 32px; }
.seo-region-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  list-style: none;
}
.seo-region-links a { color: var(--coral-text); }

.region-map-guide { margin-block: 36px; }
.region-map-guide .lm-jump { margin-block: 12px 16px; }
.region-map-guide ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.region-map-guide li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.region-map-guide li a { color: var(--coral-text); font-weight: 700; }
.region-map-guide li span, .region-map-guide p { color: var(--ink-soft); }

/* Join the FAQ background directly to the closing section. */
.faq-sec + .lk-outro {
  margin-top: 0;
}

.editorial-page { padding-block: 48px 60px; max-width: 1120px; }
.editorial-page h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.05; margin-block: 16px 24px; }
.editorial-page h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 16px; }
.editorial-page p { max-width: 76ch; line-height: 1.7; margin-bottom: 16px; }
.editorial-page section { margin-top: 40px; }
.editorial-page figure { margin: 28px 0; }
.editorial-page figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.editorial-page figcaption { color: var(--ink-soft); font-size: .8rem; margin-top: 8px; }
.editorial-page a:not(.lm-jump) { color: var(--coral-text); }
.editorial-page li { margin-block: 8px; }
.language-menu, .editorial-related { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; }
.home-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; }
.home-regions a { display: block; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); text-decoration: none; height: 100%; }
.home-regions strong { display: block; font-size: 1.3rem; margin-bottom: 12px; }
.home-regions span { color: var(--ink); line-height: 1.6; }
@media(max-width: 600px) { .home-regions { grid-template-columns: 1fr; } }


body:has(.editorial-page) > header nav {
  display: flex;
  width: auto;
  margin-left: auto;
}
.editorial-page section > ul:not(.home-regions):not(.language-menu):not(.editorial-related) {
  padding-left: 22px;
}

.home-page { max-width: 1440px; }
.home-hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: 12px 24px; }
.home-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); max-width: 15ch; letter-spacing: -.045em; }
.home-hero-copy > .eyebrow { color: var(--amber); font-weight: 800; letter-spacing: .08em; }
.home-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-page .home-gallery figure { margin: 0; min-width: 0; }
.home-gallery figure:first-child { grid-column: 1 / -1; }
.home-gallery a { display: block; position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; }
.home-page .home-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.home-page .home-gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 16px 14px; margin: 0; background: linear-gradient(transparent, #140d20e8); color: #fff4ec; font-size: 1rem; font-weight: 800; }
.home-gallery a:hover { border-color: var(--rose); }
.home-regions a { padding: 0 0 22px; overflow: hidden; }
.home-regions a > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; }
.home-regions a > strong, .home-regions a > span { display: block; margin-inline: 22px; }
@media(min-width: 1100px) { .home-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 18ch; }
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: .88rem; }
.language-menu a, .footer-map-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-gallery *, .home-regions * { transition: none; }
}


.language-switch { position: relative; flex: 0 0 auto; margin-left: 20px; font-size: .9rem; }
.language-switch > summary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; height: 44px; padding: 0 15px; box-sizing: border-box;
  border: 1px solid #765a83; border-radius: 12px;
  background: linear-gradient(135deg, #35233f, #24172e);
  color: #fff4ec; font-weight: 650; line-height: 1; white-space: nowrap;
  cursor: pointer; list-style: none;
  box-shadow: inset 0 1px 0 #ffffff0c, 0 3px 10px #09061124;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.language-switch > summary::-webkit-details-marker { display: none; }
.language-switch > summary::marker { content: ""; }
.language-switch > summary::after { content: none; }
.language-switch .language-label { display: block; white-space: nowrap; }
.language-switch .language-globe { flex: 0 0 18px; color: #e4bdd8; }
.language-switch .language-chevron { flex: 0 0 16px; color: #ffcfb4; transition: transform .16s; }
.language-switch > summary:hover, .language-switch[open] > summary {
  border-color: #e5a0c2; background: #3c2949;
  box-shadow: inset 0 1px 0 #ffffff12, 0 4px 14px #09061130;
}
.language-switch > summary:focus-visible { outline: 2px solid #ffd1ad; outline-offset: 4px; }
.language-switch[open] .language-chevron { transform: rotate(180deg); }
header.site-header .language-switch .language-options {
  display: grid; position: absolute; right: 0; top: calc(100% + 10px);
  width: 196px; max-width: calc(100vw - 32px); padding: 7px; margin: 0; z-index: 100;
  border: 1px solid #715478; border-radius: 14px;
  background: #251d32; box-shadow: 0 16px 40px #09061180;
}
.language-options a {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  padding: 9px 13px; border-radius: 8px; color: #fff4ec; text-decoration: none;
}
.language-options a:hover, .language-options a[aria-current] { background: #4d2947; color: #ffcfb4; }
.language-switch .language-options a::after { content: none; }
.language-switch .language-options a { display: flex; align-items: center; justify-content: space-between; }
.language-check { flex: 0 0 16px; margin-left: 12px; }
.language-switch:not([open]) > .language-options { display: none !important; }
@media (max-width: 600px) {
  .language-switch { margin-left: 8px; }
  .language-switch > summary { padding-inline: 11px; gap: 8px; font-size: .84rem; }
}
@media (max-width: 380px) {
  .language-switch .language-globe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switch > summary, .language-switch .language-chevron { transition: none; }
}
body:has(.home-page) > header .head-in > a:not(.brand) { margin-left: auto; }

@media (max-width: 380px) {
  body:has(.home-page) > header .head-in { gap: 8px; flex-wrap: nowrap; }
  body:has(.home-page) > header .brand { font-size: 1rem; white-space: nowrap; }
  body:has(.home-page) > header .head-in > a:not(.brand) { font-size: .8rem; }
  .language-switch { margin-left: 0; }
  .language-switch > summary { padding-inline: 8px; font-size: .8rem; gap: 6px; }
}

/* Shared static components: identical chrome on home, map and guides. */
body > header.site-header { position: sticky; top: 0; z-index: 1100; background: #12061f; color: #fff4ec; }
body > header.site-header .head-in { display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; min-height: 76px; }
body > header.site-header .brand { font-size: 1.3rem; white-space: nowrap; flex-shrink: 0; }
body > header.site-header .site-map-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: #fff4ec; }
body > header.site-header .language-switch { margin-left: 0; }
body > header.site-header .language-options { height: auto; transform: none; visibility: visible; opacity: 1; }
body > header.site-header .language-options a { margin: 0; font-size: .9rem; line-height: 1.4; }
body > footer.site-footer { padding-top: 0; }
.site-footer .foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 32px; }
.site-footer .footer-map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .legal { padding-bottom: 24px; }
@media(max-width: 600px) {
 body > header.site-header .head-in { gap: 12px; min-height: 76px; }
 body > header.site-header .brand { font-size: 1.1rem; }
 .site-footer .foot-top { flex-direction: column; }
}
@media(max-width: 380px) {
 body > header.site-header .head-in { gap: 8px; }
 body > header.site-header .brand { font-size: 1rem; }
 body > header.site-header .site-map-link { font-size: .8rem; }
}

/* Places navigation shared across all pages. */
body > header.site-header .head-in { position: relative; }
.places-menu { flex: 0 0 auto; }
.places-menu > summary { display:flex; align-items:center; gap:7px; min-height:44px; cursor:pointer; list-style:none; color:#fff4ec; font-weight:650; }
.places-menu > summary::-webkit-details-marker { display:none; }
.places-menu > summary::marker { content:''; }
.places-menu > summary svg { transition:transform .16s; }
.places-menu[open] > summary svg { transform:rotate(180deg); }
.places-menu > summary:hover { color:#ffb6ce; }
.places-menu > summary:focus-visible { outline:2px solid #ffd1ad; outline-offset:4px; border-radius:5px; }
.site-header .places-panel { position:absolute; top:calc(100% - 4px); right:var(--gutter,24px); width:min(620px,calc(100vw - 32px)); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:20px; border:1px solid #715478; border-radius:14px; background:#251d32; box-shadow:0 16px 40px #09061180; z-index:101; max-height:calc(100dvh - 150px); overflow-y:auto; }
.places-menu:not([open]) > .places-panel { display:none; }
.places-group { display:flex; flex-direction:column; }
.places-group a { display:flex; align-items:center; min-height:44px; padding:8px 10px; border-radius:8px; color:#dfd2e5; font-size:.88rem; text-decoration:none; line-height:1.4; }
.places-group a:first-child { font-weight:800; color:#ffcfb4; }
.places-group a:hover,.places-group a[aria-current] { background:#4d2947; color:#fff4ec; }
@media(max-width:600px) {
 body > header.site-header .head-in { flex-wrap:wrap; gap:0 22px; padding-block:10px; }
 body > header.site-header .brand { order:0; }
 body > header.site-header .language-switch { order:1; margin-left:auto; }
 body > header.site-header .head-in::after { content:''; order:2; flex-basis:100%; }
 body > header.site-header .site-map-link { order:3; margin-left:0; }
 body > header.site-header .places-menu { order:4; }
 .site-header .places-panel { grid-template-columns:repeat(2,minmax(0,1fr)); right:16px; gap:8px; padding:12px; }
}
