/* ==========================================================================
   niceparistrains.com — Paris to Nice by train
   Palette story: Gare de Lyon ironwork/gilt (navy + gold) at the top of the
   page, warming through Provence into Riviera azure + Vieux-Nice terracotta
   at the bottom — the page's own colors migrate the way the train does.
   ========================================================================== */

:root {
  --paris-navy: #1b2a41;
  --paris-navy-deep: #1a2b30;
  --paris-gold: #c9a227;
  --riviera-azure: #0f7fa3;
  --riviera-azure-light: #4fb3d9;
  --riviera-terracotta: #d9773f;
  --riviera-terracotta-deep: #b85c28;
  --sand: #faf6ee;
  --sand-deep: #f1e9d8;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --white: #ffffff;
  --line: rgba(27, 42, 65, 0.12);
  --shadow: 0 10px 30px rgba(16, 26, 41, 0.12);
  --radius: 14px;
  --max: 1120px;

  /* JS-driven journey gradient stops — defaults to the Paris end.
     Dusty aquarelle palette sampled from the site's own watercolor illustrations. */
  --bg-top: #3a232a;
  --bg-bottom: #46303a;

  /* pastel watercolor tints, sampled from the site's own aquarelle illustrations */
  --pastel-blue: #b7d9e8;
  --pastel-coral: #eec1ab;
  --pastel-gold: #e0c98f;
  --pastel-navy: #a7b4cc;
  --pastel-pink-light: #e896b8;
  --pastel-pink-light-ink: #8b3a55;
  /* deeper versions of the same pastel family, for icon strokes/text that need
     more contrast on the cream circle background than the light bar tints allow */
  --pastel-blue-ink: #6fa3c2;
  --pastel-coral-ink: #cf8c62;
  --pastel-gold-ink: #b3903f;
  --pastel-navy-ink: #5d7095;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--paris-navy);
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--riviera-azure); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- journey background layer ---------- */
.journey-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  transition: background 0.15s linear;
}

.journey-horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  min-height: 140px;
  z-index: -1;
  pointer-events: none;
}
.journey-horizon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.horizon-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.horizon-scene.is-active { opacity: 1; }

/* ---------- header ---------- */
header.site {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 40;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(20, 14, 18, 0.12);
}
.nav-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav cta";
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--paris-navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}
.nav-panel { grid-area: nav; }
.primary-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: "Futura", "Trebuchet MS", sans-serif;
}
.primary-nav a:hover { color: var(--riviera-azure); }

.nav-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pastel-pink-light);
  color: var(--pastel-pink-light-ink);
  font-weight: 700;
}
.btn-primary:hover {
  background: #e8b4cc;
  color: var(--pastel-pink-light-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--paris-navy);
  border: 1.5px solid var(--paris-navy);
}

.nav-toggle {
  grid-area: toggle;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--paris-navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile: persistent logo/CTA/hamburger row, with the link list as its own
   collapsible full-width row below — the CTA is a grid sibling of the panel,
   never nested inside it, so it can't inherit the panel's link-color rules. */
@media (max-width: 860px) {
  .nav-grid {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo cta toggle"
      "panel panel panel";
  }
  .nav-toggle { display: block; }
  .nav-panel {
    grid-area: panel;
    display: none;
  }
  .nav-panel.is-open { display: block; }
  .nav-panel .primary-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-panel .primary-nav a {
    display: block;
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 48px;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg picture,
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.5), rgba(20, 14, 18, 0.68));
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--riviera-azure-light);
  margin-bottom: 14px;
  display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 16ch;
}
.hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero-cta { margin: 8px 0 4px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 8px;
}
.hero-stat strong {
  display: block;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 1.7rem;
  color: var(--white);
}
.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- search section (separate from hero banner) ---------- */
.search-section {
  position: relative;
  z-index: 2;
  padding: 40px 0 48px;
  background: #fbe6ea;
}

/* ---------- widget card: two-layer glass frame (tinted outer shell + white inner card) ---------- */
.widget-card {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 55%),
    rgba(58, 35, 42, 0.14);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 14px 34px rgba(20, 14, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.widget-inner {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
}
.widget-inner h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.widget-inner .widget-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* The third-party search widget sizes itself off window.innerWidth rather
   than its container's width, so it can render squished/overlapping on a
   wide desktop viewport if left inside the site's normal 1120px .wrap. Let
   its own wrap escape that cap on wider screens. */
@media (min-width: 861px) {
  .search-section .wrap {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1600px, calc(100vw - 48px));
    max-width: min(1600px, calc(100vw - 48px));
  }
}

/* ---------- generic sections ---------- */
section.panel {
  background: var(--white);
  position: relative;
  z-index: 1;
  padding: 56px 0;
}
section.panel.tinted { background: var(--sand-deep); }
section.panel.transparent { background: transparent; color: var(--white); overflow: hidden; }
.scenery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scenery-bg picture,
.scenery-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scenery-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.6), rgba(20, 14, 18, 0.78));
}
#scenery .wrap { position: relative; z-index: 1; }

.connections-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.connections-bg picture,
.connections-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(0.7) brightness(1.12);
}
.connections-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.5), rgba(20, 14, 18, 0.68));
}
#connections .wrap { position: relative; z-index: 1; }

.stations-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stations-bg picture,
.stations-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.95) brightness(1.12);
}
.stations-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 50, 80, 0.48), rgba(22, 38, 64, 0.58));
  backdrop-filter: blur(2.5px) saturate(0.9);
  -webkit-backdrop-filter: blur(2.5px) saturate(0.9);
}
#stations .wrap { position: relative; z-index: 1; }
#stations { color: var(--white); }
#stations h2 {
  color: var(--white);
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
}
#stations .section-lede {
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.7);
}
#stations p { color: var(--white); }
.transparent table.stations th {
  color: var(--white);
  text-shadow:
    0 0 15px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.8);
}
.transparent table.stations td {
  color: var(--white);
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.75),
    0 0 6px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.75);
}
.transparent table.stations {
  border-collapse: collapse;
}
.transparent table.stations th,
.transparent table.stations td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.transparent .route-caption {
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.7);
}

.panel h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.transparent .section-lede { color: rgba(255,255,255,0.82); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.transparent h2 { color: var(--white); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

/* ---------- booking copy: flowing paragraphs, no cards ---------- */
.booking-copy p {
  font-size: 1.08rem;
  margin-bottom: 24px;
}
.booking-copy p:last-child { margin-bottom: 0; }
.booking-copy .lead-in {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--riviera-terracotta-deep);
  letter-spacing: 0.01em;
}

/* ---------- section media (illustration + lede) ---------- */
.section-media {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 12px;
}
.section-media picture {
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.section-media .section-lede { margin-bottom: 0; }

/* ---------- route diagram ---------- */
.route-diagram {
  overflow-x: auto;
  padding: 24px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.route-diagram svg { display: block; min-width: 760px; }

/* ---------- route illustration: full-section background with the
   route line/dots/labels overlaid directly on it, in the sky band ---------- */
.route-illustrated {
  position: relative;
  aspect-ratio: 1856 / 2304;
}
.route-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  padding: 0;
}
.route-panel-bg picture,
.route-panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.route-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: block;
}
.route-panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 253, 249, 0.55) 0%,
    rgba(255, 253, 249, 0.2) 22%,
    rgba(255, 253, 249, 0.12) 50%,
    rgba(255, 253, 249, 0.62) 78%,
    rgba(255, 253, 249, 0.88) 100%);
  pointer-events: none;
}
.route-illustrated .wrap { position: relative; z-index: 1; }
.route-hills-content {
  margin-top: 65vw;
  background: rgba(255, 253, 249, 0.9);
  border-radius: 36px;
  padding: 40px 46px;
  box-shadow:
    0 0 70px 34px rgba(255, 253, 249, 0.55),
    0 0 26px 8px rgba(255, 253, 249, 0.7),
    0 10px 26px rgba(20, 14, 18, 0.1);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%),
    linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%),
    linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  mask-composite: intersect;
}
.route-hills-content p {
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
}

.route-line-draw {
  stroke-dasharray: var(--path-length, 1440);
  stroke-dashoffset: var(--path-length, 1440);
}
.route-diagram.is-visible .route-line-draw {
  animation: route-line-draw 1.8s ease forwards;
}
@keyframes route-line-draw {
  to { stroke-dashoffset: 0; }
}

.route-dot {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.4s ease, transform 0.4s ease;
  stroke: #fffdf9;
  stroke-width: 1.75px;
}
.route-map svg text {
  paint-order: stroke fill;
  stroke: #fffdf9;
  stroke-width: 2.1px;
  stroke-linejoin: round;
}
.route-diagram.is-visible .route-dot { opacity: 1; transform: scale(1); }
.route-diagram.is-visible .route-dot:nth-of-type(1) { transition-delay: 0.05s; }
.route-diagram.is-visible .route-dot:nth-of-type(2) { transition-delay: 0.4s; }
.route-diagram.is-visible .route-dot:nth-of-type(3) { transition-delay: 0.65s; }
.route-diagram.is-visible .route-dot:nth-of-type(4) { transition-delay: 0.85s; }
.route-diagram.is-visible .route-dot:nth-of-type(5) { transition-delay: 1.0s; }
.route-diagram.is-visible .route-dot:nth-of-type(6) { transition-delay: 1.2s; }
.route-diagram.is-visible .route-dot:nth-of-type(7) { transition-delay: 1.35s; }
.route-diagram.is-visible .route-dot:nth-of-type(8) { transition-delay: 1.5s; }
.route-diagram.is-visible .route-dot:nth-of-type(9) { transition-delay: 1.6s; }
.route-diagram.is-visible .route-dot:nth-of-type(10) { transition-delay: 1.75s; }
.route-diagram.is-visible .route-dot:nth-of-type(11) { transition-delay: 1.85s; }

@media (prefers-reduced-motion: reduce) {
  .route-line-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .route-dot { opacity: 1; transform: none; transition: none; }
  .route-diagram.is-visible .route-line-draw { animation: none; }
}
.route-hills-content .route-caption,
.route-caption {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: none;
  width: 100%;
  margin: 0 0 18px;
}

/* ---------- journey narrative timeline ---------- */
.journey-narrative {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 32px 0;
}
.journey-segment {
  position: relative;
  padding-left: 0;
}
.segment-marker {
  display: inline-block;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--riviera-azure);
  margin-bottom: 8px;
  padding: 6px 12px;
  background: rgba(15, 127, 163, 0.08);
  border-radius: 20px;
}
.journey-segment h3 {
  font-size: 1.25rem;
  margin: 8px 0 12px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}
.journey-segment p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.journey-segment:not(:last-child)::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--riviera-azure-light) 0%, transparent 100%);
  margin-top: 32px;
  margin-bottom: 8px;
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.transparent .card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.transparent .card h3 { color: var(--white); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--riviera-azure);
  margin-bottom: 10px;
}
.transparent .card .tag { color: var(--riviera-azure-light); }

/* ---------- illustrated cards (train-type background art) ----------
   Text is hidden until the card is hovered or focused, so the watercolor
   illustration reads uncropped and full-color by default; touch devices
   (no hover) get the text shown permanently since there's no hover gesture. */
.card-illustrated {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  border: none;
  cursor: default;
}
.card-illustrated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card-illustrated-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.card-illustrated:hover .card-illustrated-bg img,
.card-illustrated:focus-within .card-illustrated-bg img {
  transform: scale(1.04);
}
.card-illustrated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.5) 0%, rgba(20, 14, 18, 0.62) 40%, rgba(20, 14, 18, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card-illustrated:hover::after,
.card-illustrated:focus-within::after {
  opacity: 1;
}
.card-illustrated-content {
  position: relative;
  z-index: 2;
  padding: 24px 26px;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.card-illustrated:hover .card-illustrated-content,
.card-illustrated:focus-within .card-illustrated-content {
  opacity: 1;
  transform: translateY(0);
}
.card-illustrated-content .tag { color: var(--riviera-azure-light); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.card-illustrated-content h3 { color: var(--white); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.card-illustrated-content p { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); margin-bottom: 12px; }
.card-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--riviera-azure);
  color: var(--white);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
}
.card-cta:hover { background: var(--riviera-azure-light); }

@media (hover: none) {
  .card-illustrated::after,
  .card-illustrated-content {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-illustrated-bg img,
  .card-illustrated::after,
  .card-illustrated-content {
    transition: none;
  }
  .card-illustrated:hover .card-illustrated-bg img,
  .card-illustrated:focus-within .card-illustrated-bg img {
    transform: none;
  }
}

/* ---------- transport time chart: animated "bar race" comparing real
   door-to-door time across every way to make the trip. Bars fill in on
   scroll, staggered like the route-diagram dots, so the numbers land as a
   visual instead of another paragraph repeating them. ---------- */
.transport-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 34px;
}
.transport-row {
  display: grid;
  grid-template-columns: 30px minmax(150px, 1fr) minmax(120px, 2.4fr) 60px;
  align-items: center;
  gap: 14px;
}
.transport-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ink-soft);
}
.transport-icon svg { width: 20px; height: 20px; }
.transport-label {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.transport-sub {
  display: block;
  font-family: "Georgia", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.transport-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--sand-deep);
  overflow: hidden;
}
.transport-bar {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 999px;
  background: var(--riviera-azure);
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.transport-bar-ghost {
  background: repeating-linear-gradient(135deg, rgba(217, 119, 63, 0.55) 0 6px, rgba(217, 119, 63, 0.25) 6px 12px);
}
.transport-bar-flight { background: var(--riviera-terracotta); }
.transport-bar-train { background: var(--riviera-azure); }
.transport-bar-ouigo { background: var(--riviera-azure-light); }
.transport-bar-rideshare { background: var(--paris-gold); }
.transport-bar-driving { background: var(--riviera-terracotta-deep); }
.transport-bar-night { background: var(--paris-navy); }
.transport-bar-bus { background: var(--ink-soft); }
.transport-time {
  text-align: right;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.transport-chart.is-visible .transport-bar { width: var(--w); }
.transport-chart.is-visible .transport-row:nth-of-type(1) .transport-bar { transition-delay: 0.05s; }
.transport-chart.is-visible .transport-row:nth-of-type(2) .transport-bar { transition-delay: 0.15s; }
.transport-chart.is-visible .transport-row:nth-of-type(3) .transport-bar { transition-delay: 0.25s; }
.transport-chart.is-visible .transport-row:nth-of-type(4) .transport-bar { transition-delay: 0.35s; }
.transport-chart.is-visible .transport-row:nth-of-type(5) .transport-bar { transition-delay: 0.45s; }
.transport-chart.is-visible .transport-row:nth-of-type(6) .transport-bar { transition-delay: 0.55s; }
.transport-chart.is-visible .transport-row:nth-of-type(7) .transport-bar { transition-delay: 0.65s; }
.transport-chart.is-visible .transport-row:nth-of-type(8) .transport-bar { transition-delay: 0.75s; }

@media (max-width: 640px) {
  .transport-row {
    grid-template-columns: 26px 1fr 52px;
    grid-template-areas: "icon label time" "track track track";
    row-gap: 8px;
  }
  .transport-icon { grid-area: icon; }
  .transport-label { grid-area: label; }
  .transport-time { grid-area: time; }
  .transport-track { grid-area: track; }
}
@media (prefers-reduced-motion: reduce) {
  .transport-bar { transition: none; width: var(--w); }
}

.mini-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.mini-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mini-point-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sand-deep);
  color: var(--riviera-azure);
}
.mini-point-icon svg { width: 19px; height: 19px; }
.mini-point p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.mini-point p strong { color: var(--ink); }

/* ---------- practical tips: torn train-ticket stubs, each sliding in from
   alternating sides on scroll — a shape pulled from the site's own subject
   matter, distinct from the FAQ accordion and the plain card grids. ---------- */
.tips-tickets {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ticket-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ticket-card:nth-child(even) { transform: translateX(36px); }
.ticket-stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-deep);
  color: var(--pastel-blue-ink);
  border-radius: var(--radius) 0 0 var(--radius);
}
.ticket-card:nth-child(2) .ticket-stub { color: var(--pastel-gold-ink); }
.ticket-card:nth-child(3) .ticket-stub { color: var(--pastel-coral-ink); }
.ticket-stub svg { width: 30px; height: 30px; }
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sand-deep);
  z-index: 1;
}
.ticket-stub::before { top: -7px; }
.ticket-stub::after { bottom: -7px; }
.ticket-content {
  position: relative;
  padding: 24px 26px;
  border-left: 2px dashed var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ticket-content h3 { margin-bottom: 8px; }
.ticket-content p { margin-bottom: 0; }

.tips-tickets.is-visible .ticket-card { opacity: 1; transform: translateX(0); }
.tips-tickets.is-visible .ticket-card:nth-child(1) { transition-delay: 0.05s; }
.tips-tickets.is-visible .ticket-card:nth-child(2) { transition-delay: 0.2s; }
.tips-tickets.is-visible .ticket-card:nth-child(3) { transition-delay: 0.35s; }

@media (max-width: 560px) {
  .ticket-card { grid-template-columns: 64px 1fr; }
  .ticket-stub svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-card { transition: none; }
  .tips-tickets.is-visible .ticket-card { opacity: 1; transform: none; }
}

/* ---------- best time to travel: a single horizontal calendar strip split
   into the four seasons (widths proportional to actual month counts), each
   segment drawing itself in left to right on scroll like the year filling
   in — distinct from the bar-race chart and the ticket-stub cards. ---------- */
.season-timeline { margin-top: 8px; }
.season-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.season-seg {
  flex: 0 0 var(--w);
  width: var(--w);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease;
}
.season-seg-spring { background: var(--pastel-blue); }
.season-seg-summer { background: var(--pastel-coral); }
.season-seg-autumn { background: var(--pastel-gold); }
.season-seg-winter { background: var(--pastel-navy); }
.season-timeline.is-visible .season-seg { transform: scaleX(1); }
.season-timeline.is-visible .season-seg-spring { transition-delay: 0.05s; }
.season-timeline.is-visible .season-seg-summer { transition-delay: 0.35s; }
.season-timeline.is-visible .season-seg-autumn { transition-delay: 0.55s; }
.season-timeline.is-visible .season-seg-winter { transition-delay: 0.75s; }

.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.season-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.season-timeline.is-visible .season-card { opacity: 1; transform: translateY(0); }
.season-timeline.is-visible .season-card:nth-child(1) { transition-delay: 0.5s; }
.season-timeline.is-visible .season-card:nth-child(2) { transition-delay: 0.65s; }
.season-timeline.is-visible .season-card:nth-child(3) { transition-delay: 0.8s; }
.season-timeline.is-visible .season-card:nth-child(4) { transition-delay: 0.95s; }

.season-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand-deep);
  margin-bottom: 14px;
}
.season-icon svg { width: 21px; height: 21px; }
.season-icon-spring { color: var(--pastel-blue-ink); }
.season-icon-summer { color: var(--pastel-coral-ink); }
.season-icon-autumn { color: var(--pastel-gold-ink); }
.season-icon-winter { color: var(--pastel-navy-ink); }
.season-months {
  display: block;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.season-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.season-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 14px; }
.season-fares {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.season-fares i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pastel-coral-ink);
  font-style: normal;
}
.season-fares i.is-empty { background: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .season-seg, .season-card { transition: none; }
  .season-timeline.is-visible .season-seg { transform: none; }
  .season-timeline.is-visible .season-card { opacity: 1; transform: none; }
}

/* ---------- booking section background ---------- */
section.booking-bg-section {
  position: relative;
  background-color: var(--sand-deep);
  background-image: url("images/booking-bg.webp"), url("images/booking-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
section.booking-bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 238, 0.48);
  pointer-events: none;
}
section.booking-bg-section .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; }
table.stations {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.95rem;
}
table.stations th, table.stations td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
table.stations th {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
table.stations tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--paris-navy);
  list-style: none;
}
details.faq-item summary h3 {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--riviera-terracotta);
  font-weight: 800;
}
details.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin-top: 10px; color: var(--ink-soft); }
.faq-cta { margin: 28px 0 0; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg picture,
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(90, 46, 42, 0.72), rgba(24, 58, 74, 0.72));
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0 0 24px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.cta-band .btn-primary { background: var(--white); color: var(--riviera-terracotta-deep); }
.cta-band .btn-primary:hover { background: var(--sand); }

/* ---------- CTA intro paragraph ---------- */
.cta-intro {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin: 24px 0 32px;
  line-height: 1.6;
  max-width: 90ch;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--paris-navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}
footer.site a { color: rgba(255,255,255,0.9); text-decoration: underline; }
footer.site p { margin: 0 0 12px; }
.footer-links { margin-top: 18px; }
.footer-links a { margin-right: 16px; text-decoration: none; color: rgba(255,255,255,0.85); }

/* ---------- privacy page ---------- */
.legal {
  max-width: 74ch;
  margin: 0 auto;
  padding: 64px 24px 80px;
  color: var(--ink);
}
.legal h1 { margin-bottom: 24px; }
.legal h2 { margin-top: 36px; font-size: 1.2rem; }

/* ---------- misc ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (max-width: 860px) {
  .section-media { grid-template-columns: 1fr; }
  .section-media picture { max-width: 280px; margin: 0 auto 8px; }
  .section-media img { height: 320px; }
}

@media (max-width: 640px) {
  .hero { padding: 110px 0 32px; }
  section.panel { padding: 40px 0; }
  .widget-card { padding: 8px; border-radius: 22px; }
  .widget-inner { padding: 18px; border-radius: 16px; }
}
