/* ════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════ */
:root {
  /* ── Variable type scale (accessible baseline) ── */
  --text-xs: 0.82rem; /* 13px — minimum for any UI label */
  --text-sm: 0.9rem; /* 14.4px — secondary info */
  --text-base: 1.08rem; /* 17.3px — body text floor */
  --text-md: 1.2rem; /* 19.2px — larger body */
  --text-lg: 1.45rem; /* 23.2px — stop names */
  --text-xl: 1.7rem; /* 27.2px — guide title */
  --lh-body: 1.85; /* generous line-height */
  --tap-min: 48px; /* minimum tap target */
}

/* ── OUTDOOR MODE overrides ── */
body.outdoor {
  --background-color: #ffffff;
  --background-color-muted: #f4f4f4;
  --surface-primary-foreground-muted: #cccccc;
  --surface-primary-foreground: #efefef;
  --text-color: #080604;
  --text-color-subtle: #3a3028;
  --text-color-muted: #2a2018;
  --text-color-strong: #000000;
  /* type boost for sunlight */
  --text-xs: 0.9rem;
  --text-sm: 1rem;
  --text-base: 1.2rem;
  --text-md: 1.3rem;
  --text-lg: 1.55rem;
  --text-xl: 1.85rem;
  --lh-body: 2.05;
}
body.outdoor .balade-hero {
  background: #000000;
}
body.outdoor .stop-transition {
  background: #000000;
}
body.outdoor .sidebar-audio {
  background: #000000;
}
body.outdoor .site-header {
  background: #000000;
}
body.outdoor .stop-img-placeholder {
  background: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 40%, #333 100%);
}

/* Outdoor: boost all small UI text that uses hardcoded sizes */
body.outdoor .stop-number {
  font-size: 0.75rem;
}
body.outdoor .badge-core,
body.outdoor .badge-optional,
body.outdoor .badge-duration {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
}
body.outdoor .stop-hook {
  font-size: 1.1rem;
}
body.outdoor .stop-address {
  font-size: 0.9rem;
}
body.outdoor .stop-img-caption {
  font-size: 0.82rem;
}
body.outdoor .direction {
  font-size: 1rem;
}
body.outdoor .plus-loin a {
  font-size: 1.05rem;
}
body.outdoor .plus-loin-section-label {
  font-size: 0.75rem;
}
body.outdoor .plus-loin-title {
  font-size: 0.72rem;
}
body.outdoor .transition-label {
  font-size: 0.8rem;
}
body.outdoor .transition-text {
  font-size: 1.15rem;
}
body.outdoor .transition-stats {
  font-size: 0.88rem;
}
body.outdoor .version-btn {
  font-size: 0.75rem;
  padding: 0.55rem 1rem;
}
body.outdoor .version-label {
  font-size: 0.75rem;
}
body.outdoor .audio-info-label {
  font-size: 0.78rem;
}
body.outdoor .audio-info-name {
  font-size: 1.05rem;
}
body.outdoor .audio-time-display {
  font-size: 0.82rem;
}
body.outdoor .audio-skip span {
  font-size: 0.78rem;
}
body.outdoor .audio-speed {
  font-size: 0.82rem;
}
body.outdoor .audio-gps-hint {
  font-size: 0.78rem;
}
body.outdoor .audio-chapter {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
}
body.outdoor .hero-stat {
  font-size: 0.82rem;
}
body.outdoor .hero-meta {
  font-size: 0.8rem;
}
body.outdoor .hero-eyebrow {
  font-size: 0.78rem;
}
body.outdoor .video-caption {
  font-size: 0.82rem;
}
body.outdoor .toc-label {
  font-size: 1rem;
}
body.outdoor .toc-duration {
  font-size: 0.72rem;
}
body.outdoor .toc-num {
  font-size: 0.72rem;
}
body.outdoor .sidebar-toc-title {
  font-size: 0.72rem;
}
body.outdoor .ai-notice p {
  font-size: 0.9rem;
}

/* Outdoor banner — slim indicator */
.outdoor-banner {
  display: none;
  background: #ffd700;
  color: #1a1000;
  padding: 0.25rem 1rem;
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  margin-top: var(--header-h);
}
body.outdoor .outdoor-banner {
  display: block;
}
body.outdoor .balade-hero {
  margin-top: 0;
}
body.outdoor .version-bar {
  top: calc(var(--header-h) + 26px);
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "EB Garamond", Georgia, serif;
  background: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  min-height: 100vh;
  font-size: var(--text-base);
  line-height: var(--lh-body);
  width: 100%;
  max-width: 100vw;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ════════════════════════════════════════
   SITE HEADER — CANONICAL
════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-primary-background);
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--header-h);
}
.logo-mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--secondary-color);
}
.logo-text {
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--background-color);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.62rem;
  color: var(--secondary-color-strong);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
nav a {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
  position: relative;
}
nav a:hover {
  color: var(--secondary-color-strong);
}
nav a:hover::after {
  left: 0.75rem;
  right: 0.75rem;
}
nav a.active {
  color: var(--secondary-color-strong);
}
nav a.active::after {
  left: 0.75rem;
  right: 0.75rem;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.balade-hero {
  margin-top: var(--header-h);
  position: relative;
  background: var(--surface-primary-background);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
}
.balade-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      160deg,
      var(--surface-primary-background-alt, rgba(26, 42, 66, 0.3)) 0%,
      var(--surface-primary-background) 60%,
      var(--surface-primary-background) 100%
    ),
    url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='3'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23f)' opacity='0.15'/%3E%3C/svg%3E");
}
.balade-hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem 2.8rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--secondary-color);
}
.balade-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--background-color);
  line-height: 1.08;
  margin-bottom: 0.4rem;
}
.balade-hero h1 em {
  font-style: italic;
  color: var(--secondary-color-strong);
}
.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--surface-primary-foreground-strong);
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.hero-stat {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-stat strong {
  color: var(--secondary-color-strong);
  font-weight: 600;
}
.hero-meta {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.05em;
}
.hero-meta a {
  color: var(--secondary-color-strong);
  text-decoration: none;
}
.hero-meta a:hover {
  text-decoration: underline;
}

/* Ghost date in hero background */
.hero-ghost-date {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Playfair Display", serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(201, 150, 12, 0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  max-width: 100%;
  overflow: hidden;
}

/* ════════════════════════════════════════
   VERSION TOGGLE BAR
════════════════════════════════════════ */
.version-bar {
  background: var(--background-color-muted);
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
  padding: 0.9rem max(4rem, calc(50% - 600px));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  max-width: 100%;
}
.version-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-muted);
  white-space: nowrap;
}
.version-btns {
  display: flex;
  gap: 0;
}
.version-btn {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--surface-primary-foreground-strong);
  background: none;
  color: var(--text-color-muted);
}
.version-btn:first-child {
  border-radius: 3px 0 0 3px;
}
.version-btn:last-child {
  border-radius: 0 3px 3px 0;
}
.version-btn + .version-btn {
  border-left: none;
}
.version-btn.active {
  background: var(--surface-primary-background);
  color: var(--background-color);
  border-color: var(--surface-primary-background);
}
.version-btn:hover:not(.active) {
  background: var(--surface-primary-foreground-muted);
}
.version-stats {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  margin-left: auto;
  white-space: nowrap;
}
.version-stats strong {
  color: var(--text-color-muted);
}

/* Action buttons right side */
.version-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}
.btn-action {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--surface-primary-foreground-strong);
  background: none;
  color: var(--text-color-muted);
  border-radius: 2px;
  white-space: nowrap;
}
.btn-action:hover {
  background: var(--surface-primary-background);
  color: var(--background-color);
  border-color: var(--surface-primary-background);
}
.btn-action.primary {
  background: var(--primary-color);
  color: var(--background-color);
  border-color: var(--primary-color);
}
.btn-action.primary:hover {
  background: var(--primary-color-strong);
  border-color: var(--primary-color-strong);
}

/* ════════════════════════════════════════
   PROGRESS BAR
════════════════════════════════════════ */
.progress-bar {
  height: 3px;
  background: var(--surface-primary-foreground-muted);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  transition: width 0.4s ease;
}

/* ════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════ */
.balade-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 0 4rem;
  overflow-x: hidden;
}
.balade-main {
  padding: 2.5rem 0 4rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.balade-sidebar {
  padding: 2.5rem 0 4rem;
  position: relative;
  min-width: 0;
}

/* ════════════════════════════════════════
   INTRODUCTION BLOCK
════════════════════════════════════════ */
.balade-intro {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
}
.balade-intro p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--text-color);
  margin-bottom: 1rem;
  max-width: min(680px, 100%);
}
.balade-intro p:first-child {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--text-color-muted);
}

/* ════════════════════════════════════════
   STOP CARD
════════════════════════════════════════ */
.stop {
  margin-bottom: 0;
  position: relative;
  transition:
    opacity 0.4s ease,
    max-height 0.5s ease;
}

/* Timeline connector */
.stop::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--surface-primary-foreground-muted);
}
.stop:last-child::before {
  display: none;
}

/* Stop number dot */
.stop-dot {
  position: absolute;
  left: -38px;
  top: 0.3rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--surface-primary-background);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.stop.core .stop-dot {
  background: var(--primary-color);
  color: var(--background-color);
}
.stop.optional .stop-dot {
  background: var(--surface-primary-foreground-strong);
}

/* Optional stop styling when hidden */
.stop.optional.dimmed {
  opacity: 0.35;
  pointer-events: none;
}
.stop.optional.dimmed .stop-content {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}
.stop.optional.dimmed .stop-header {
  cursor: default;
}

/* ── Stop Header ── */
.stop-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
  padding-top: 2.5rem;
}
.stop:first-child .stop-header {
  padding-top: 0;
}

.stop-number {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-subtle);
  white-space: nowrap;
}
.stop-badges {
  display: flex;
  gap: 0.4rem;
}
.badge-core {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(184, 40, 28, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(184, 40, 28, 0.2);
}
.badge-optional {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(92, 82, 70, 0.08);
  color: var(--text-color-subtle);
  border: 1px solid rgba(92, 82, 70, 0.15);
}
.badge-duration {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(201, 150, 12, 0.08);
  color: var(--secondary-color);
  border: 1px solid rgba(201, 150, 12, 0.15);
}

.stop-name {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color-strong);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.stop-hook {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-color-muted);
  margin-bottom: 0.3rem;
  max-width: min(640px, 100%);
}
.stop-address {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--text-color-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.stop-address a {
  color: var(--surface-primary-background-muted);
  text-decoration: none;
}
.stop-address a:hover {
  text-decoration: underline;
}

/* ── Stop Image Area ── */
.stop-img-area {
  margin-bottom: 1.2rem;
  border: 1px solid var(--surface-primary-foreground-muted);
  position: relative;
  overflow: hidden;
}
.stop-img-placeholder {
  height: 260px;
  background: linear-gradient(160deg, #2a1e10 0%, #3a2e1c 40%, #4a3e2c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stop-img-placeholder .placeholder-roman {
  font-family: "Cinzel", serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(201, 150, 12, 0.12);
}
.stop-img-placeholder .placeholder-caption {
  font-family: "EB Garamond", serif;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 230, 200, 0.35);
  margin-top: 0.3rem;
}

/* Before/after toggle */
.img-toggle-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(26, 42, 66, 0.9);
}
.img-toggle-btn {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(245, 240, 232, 0.5);
  background: transparent;
}
.img-toggle-btn.active {
  color: var(--secondary-color-strong);
  background: rgba(201, 150, 12, 0.1);
}
.img-toggle-btn:hover:not(.active) {
  color: rgba(245, 240, 232, 0.75);
}

/* Image caption */
.stop-img-caption {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  color: var(--text-color-muted);
  font-style: italic;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
  margin-bottom: 1.2rem;
}

/* Thumbnail gallery */
.stop-gallery {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.gallery-thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a1e10, #3a2e1c);
  border: 1px solid var(--surface-primary-foreground-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--secondary-color);
}

/* ── Narrative Text ── */
.stop-narrative {
  max-width: min(680px, 100%);
}
.stop-narrative p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-color);
  margin-bottom: 1rem;
}
.stop-narrative .image-note {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  color: var(--text-color-subtle);
  background: var(--background-color-muted);
  padding: 0.5rem 0.8rem;
  border-left: 3px solid var(--secondary-color);
  margin: 1rem 0;
  font-style: italic;
}

/* ── Sub-stops ── */
.sub-stops {
  margin: 1.5rem 0 0.5rem;
}

.sub-stop {
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 2px solid var(--surface-primary-foreground-muted);
  margin-bottom: 0.3rem;
  position: relative;
}
.sub-stop::before {
  content: attr(data-letter);
  position: absolute;
  left: -11px;
  top: 1.2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background-color);
  border: 1.5px solid var(--secondary-color);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-stop-name {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color-strong);
  margin-bottom: 0.3rem;
}
.sub-stop p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

/* Walking direction within sub-stops */
.direction {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--surface-primary-background-muted);
  padding: 0.6rem 0.8rem;
  background: rgba(44, 74, 110, 0.04);
  border-left: 3px solid var(--surface-primary-background-muted);
  margin: 0.8rem 0;
  line-height: 1.6;
}
.direction::before {
  content: "🚶 ";
}

/* ── Pour aller plus loin ── */
.plus-loin {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--background-color-muted);
  border: 1px solid var(--parchment-dark, var(--surface-primary-foreground-muted));
}
.plus-loin-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plus-loin-title::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--secondary-color);
  display: inline-block;
}
.plus-loin-section {
  margin-bottom: 0.6rem;
}
.plus-loin-section-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-color-muted);
  margin-bottom: 0.3rem;
}
.plus-loin a {
  display: block;
  text-decoration: none;
  color: var(--surface-primary-background-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0.1rem 0;
  transition: color 0.15s;
}
.plus-loin a:hover {
  color: var(--primary-color);
}
.plus-loin a::before {
  content: "▸ ";
  color: var(--secondary-color);
}

/* ── Transition ── */
.stop-transition {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: var(--surface-primary-background);
  color: var(--background-color);
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.transition-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.transition-text {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.95);
}
.transition-stats {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.7);
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
}

/* Injected transition (when a stop is skipped) */
.transition-injected {
  margin: 0.4rem 0 0;
  padding: 0.6rem 1rem;
  background: rgba(201, 150, 12, 0.06);
  border-left: 3px solid var(--secondary-color);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.9rem;
  color: var(--text-color-muted);
  font-style: italic;
  line-height: 1.7;
  display: none;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h) + 55px);
}

/* Mini map */
.sidebar-map {
  height: 280px;
  background: var(--background-color-muted);
  border: 1px solid var(--surface-primary-foreground-muted);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-map-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-subtle);
}
.sidebar-map-expand {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-primary-background);
  color: var(--background-color);
  border: none;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

/* Table of contents */
.sidebar-toc {
  margin-bottom: 1.5rem;
}
.sidebar-toc-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
}
.toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  text-decoration: none;
  transition: background 0.15s;
}
.toc-item:hover {
  background: rgba(201, 150, 12, 0.04);
}
.toc-item.active {
  background: rgba(201, 150, 12, 0.06);
}
.toc-num {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-color);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.toc-label {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.88rem;
  color: var(--text-color-muted);
  line-height: 1.35;
}
.toc-item.optional .toc-label {
  color: var(--text-color-subtle);
}
.toc-item.dimmed {
  opacity: 0.35;
  pointer-events: none;
}
.toc-duration {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  margin-left: auto;
  white-space: nowrap;
}

/* Sidebar audio */
.sidebar-audio {
  background: var(--surface-primary-background);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.sidebar-audio-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.sidebar-audio-info {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.audio-btn {
  width: 100%;
  padding: 0.6rem;
  background: none;
  border: 1px solid rgba(201, 150, 12, 0.4);
  color: var(--secondary-color-strong);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.audio-btn:hover {
  background: rgba(201, 150, 12, 0.1);
  border-color: var(--secondary-color);
}

/* Sidebar info block */
.sidebar-info {
  background: var(--background-color-muted);
  border: 1px solid var(--surface-primary-foreground-muted);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.sidebar-info-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.sidebar-info p {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  color: var(--text-color-muted);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.sidebar-info a {
  color: var(--surface-primary-background-muted);
  text-decoration: none;
}
.sidebar-info a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════
   AI ATTRIBUTION
════════════════════════════════════════ */
.ai-notice {
  margin-top: 3rem;
  padding: 1.2rem 1.5rem;
  background: rgba(201, 150, 12, 0.04);
  border: 1px solid rgba(201, 150, 12, 0.12);
  border-left: 3px solid var(--secondary-color);
}
.ai-notice-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.4rem;
}
.ai-notice p {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  color: var(--text-color-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   FOOTER — CANONICAL
════════════════════════════════════════ */
/* ════════════════════════════════════════
   PER-STOP AUDIO BAR
════════════════════════════════════════ */
.stop-audio {
  background: var(--surface-primary-background);
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.audio-top-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.audio-play {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  background: rgba(201, 150, 12, 0.1);
  color: var(--secondary-color-strong);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.audio-play:hover {
  background: rgba(201, 150, 12, 0.2);
}
.audio-play.playing {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--background-color);
}
.audio-info {
  flex: 1;
  min-width: 0;
}
.audio-info-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-info-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-time-display {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.7);
  white-space: nowrap;
}
.audio-scrubber {
  height: 6px;
  background: rgba(245, 240, 232, 0.1);
  cursor: pointer;
  position: relative;
}
.audio-scrubber-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  position: relative;
  transition: width 0.3s;
}
.audio-scrubber-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.audio-skip-btns {
  display: flex;
  gap: 0.3rem;
}
.audio-skip {
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.25);
  color: rgba(245, 240, 232, 0.8);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.6rem;
  min-height: 36px;
  transition: all 0.15s;
}
.audio-skip span {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.65);
}
.audio-skip:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color-strong);
}
.audio-speed {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.7);
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.25);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s;
}
.audio-speed:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color-strong);
}
.audio-gps-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.6);
  font-style: italic;
}
.gps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d7a3a;
  animation: gps-blink 2s infinite;
  flex-shrink: 0;
}
@keyframes gps-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.65);
  }
}

/* Chapter markers within audio */
.audio-chapters {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 0.2rem;
}
.audio-chapters::-webkit-scrollbar {
  display: none;
}
.audio-chapter {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 232, 0.6);
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  border-right: 1px solid rgba(245, 240, 232, 0.1);
  transition: color 0.15s;
}
.audio-chapter:hover {
  color: var(--secondary-color-strong);
}
.audio-chapter.active {
  color: var(--secondary-color);
}

/* ════════════════════════════════════════
   VIDEO SLOT
════════════════════════════════════════ */
.stop-video {
  position: relative;
  margin-bottom: 1.2rem;
  border: 1px solid var(--surface-primary-foreground-muted);
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.stop-video .video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) brightness(0.85);
}
.stop-video .video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s;
}
.stop-video:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}
.stop-video .play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(201, 150, 12, 0.9);
  color: var(--surface-primary-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.stop-video:hover .play-icon {
  transform: scale(1.08);
}
.video-caption {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  color: var(--text-color-muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ════════════════════════════════════════
   OUTDOOR TOGGLE BUTTON (floating, mobile)
════════════════════════════════════════ */
.outdoor-toggle-float {
  display: none; /* shown on mobile only */
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 500;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-primary-background);
  border: 2px solid rgba(201, 150, 12, 0.4);
  color: rgba(245, 240, 232, 0.7);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}
.outdoor-toggle-float:hover {
  border-color: var(--secondary-color);
}
body.outdoor .outdoor-toggle-float {
  background: #ffd700;
  border-color: #ffd700;
  color: #1a1000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* Desktop outdoor toggle in header */
.header-outdoor-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 150, 12, 0.3);
  background: none;
  color: rgba(245, 240, 232, 0.6);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.header-outdoor-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color-strong);
}
body.outdoor .header-outdoor-btn {
  background: #ffd700;
  border-color: #ffd700;
  color: #1a1000;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  .balade-layout {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    overflow-x: hidden;
  }
  .balade-sidebar {
    padding: 0 0 2rem;
  }
  .sidebar-sticky {
    position: static;
  }
  .sidebar-map {
    height: 180px;
  }
  .site-header {
    padding: 0 1.5rem;
  }
  nav {
    display: none;
  }
  .version-bar {
    padding: 0.8rem 2rem;
  }
  .balade-hero-inner {
    padding: 2.5rem 2rem 2rem;
  }
  .hero-ghost-date {
    display: none;
  }
  .outdoor-toggle-float {
    display: flex;
  }

  /* Sidebar: map becomes a small collapsed strip, TOC hidden */
  .sidebar-map {
    height: 60px;
    cursor: pointer;
  }
  .sidebar-map-label {
    font-size: 0.7rem;
  }
  .sidebar-map::after {
    content: "Voir la carte ↗";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-primary-background);
    color: var(--secondary-color-strong);
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem;
    text-align: center;
  }
  .sidebar-map-expand {
    display: none;
  }
  .sidebar-toc {
    display: none;
  }
}

@media (max-width: 600px) {
  /* ── GLOBAL OVERFLOW CONTAINMENT ── */
  body {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* ── HERO COLLAPSE — compact on mobile ── */
  .balade-hero {
    min-height: auto;
  }
  .balade-hero-inner {
    padding: 1.2rem 1.25rem 1rem;
    max-width: 100%;
  }
  .hero-eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
  }
  .balade-hero h1 {
    font-size: 1.55rem;
    margin-bottom: 0.15rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
  }
  .hero-stats {
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }
  .hero-stat {
    font-size: 0.72rem;
  }
  .hero-meta {
    font-size: 0.72rem;
    line-height: 1.5;
    word-wrap: break-word;
  }
  .hero-meta a {
    word-break: break-all;
  }

  /* ── OUTDOOR BANNER ── */
  .outdoor-banner {
    font-size: 0.72rem;
    padding: 0.2rem 0.75rem;
  }

  /* ── VERSION BAR — tight ── */
  .version-bar {
    padding: 0.5rem 1.25rem;
    gap: 0.5rem;
  }
  .version-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }
  .version-label {
    font-size: 0.72rem;
  }
  .version-stats {
    display: none;
  }
  .version-actions {
    display: none;
  }

  /* ── LAYOUT ── */
  .balade-layout {
    padding: 0 1.25rem;
    gap: 0;
  }
  .balade-main {
    padding: 1.2rem 0 3rem;
    max-width: 100%;
    min-width: 0;
  }
  .balade-intro {
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
  }
  .balade-intro p {
    font-size: var(--text-base);
  }

  /* ── STOP CARDS ── */
  .stop {
    min-width: 0;
    overflow-wrap: break-word;
  }
  .stop-name {
    font-size: 1.3rem;
  }
  .sub-stop-name {
    font-size: 1.05rem;
  }
  .stop::before {
    left: -18px;
  }
  .stop-dot {
    left: -27px;
    width: 18px;
    height: 18px;
    font-size: 0.72rem;
  }
  .sub-stop {
    padding-left: 1rem;
  }
  .stop-address {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.82rem;
  }
  .stop-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .stop-hook {
    font-size: 0.95rem;
  }

  /* ── FULL-BLEED ELEMENTS ── */
  .stop-transition {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 1rem 1.25rem;
  }
  .transition-text {
    font-size: 1rem;
  }
  .transition-stats {
    font-size: 0.75rem;
  }
  .stop-audio {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.8rem 1.25rem;
  }
  .stop-img-area {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
  .plus-loin {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 1rem;
  }
  .plus-loin a {
    font-size: 0.88rem;
    word-wrap: break-word;
  }

  /* ── AUDIO CONTROLS — bigger touch targets ── */
  .audio-info-label {
    font-size: 0.72rem;
  }
  .audio-info-name {
    font-size: 0.92rem;
  }
  .audio-skip span {
    font-size: 0.72rem;
  }

  /* ── DIRECTION BLOCKS ── */
  .direction {
    font-size: var(--text-sm);
  }

  /* ── HEADER ── */
  .site-header {
    padding: 0 1rem;
  }
  .logo-text {
    font-size: 0.78rem;
  }
  .logo-text span {
    font-size: 0.55rem;
  }

  /* ── FLOATING BUTTON ── */
  .outdoor-toggle-float {
    bottom: 1rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* Fade-in observer */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
