/* ===========================================================
   Storefront premium — design v1 (Saramaya)
   =========================================================== */

:root {
  --sf-primary: #d71920;
  --sf-primary-dark: #a10f15;
  --sf-primary-soft: #fff1f1;
  --sf-accent: #f5b82e;
  --sf-ink: #0a0a0a;
  --sf-ink-2: #1f1f1f;
  --sf-muted: #525252;
  --sf-muted-2: #8a8a8a;
  --sf-line: #ececec;
  --sf-line-2: #f4f4f4;
  --sf-bg: #ffffff;
  --sf-bg-alt: #fafafa;
  --sf-shadow-sm: 0 1px 2px rgba(10, 10, 10, .04), 0 2px 8px rgba(10, 10, 10, .04);
  --sf-shadow-md: 0 8px 24px rgba(10, 10, 10, .08);
  --sf-shadow-lg: 0 24px 60px rgba(10, 10, 10, .12);
  --sf-radius-sm: 10px;
  --sf-radius: 16px;
  --sf-radius-lg: 24px;
  --sf-max: 1200px;
  --sf-pad: clamp(20px, 5vw, 56px);
  --sf-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sf-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sf-ink);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.is-hidden { display: none !important; }

/* ===========================================================
   Header
   =========================================================== */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.sf-header.is-scrolled {
  border-bottom-color: var(--sf-line);
  background: rgba(255, 255, 255, .94);
}
.sf-header-inner {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: 16px var(--sf-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--sf-ink);
}
.sf-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--sf-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(215, 25, 32, .25);
  overflow: hidden;
}
.sf-brand-mark--image {
  background: transparent;
  box-shadow: none;
  width: auto;
  min-width: 36px;
  height: 38px;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.sf-brand-mark--image img {
  width: auto;
  height: 100%;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.sf-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
  font-size: .95rem;
  font-weight: 500;
}
.sf-nav a {
  color: var(--sf-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.sf-nav a:hover { color: var(--sf-ink); }
.sf-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--sf-primary);
  transition: width .25s ease;
}
.sf-nav a:hover::after { width: 100%; }

.sf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.sf-cta--primary {
  background: var(--sf-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(215, 25, 32, .28);
}
.sf-cta--primary:hover {
  background: var(--sf-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(215, 25, 32, .35);
}
.sf-cta--white {
  background: #fff;
  color: var(--sf-primary);
}
.sf-cta--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--sf-shadow-md);
}

.sf-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.sf-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sf-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.sf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Hero
   =========================================================== */
.sf-hero {
  position: relative;
  padding: clamp(60px, 10vh, 110px) var(--sf-pad) clamp(140px, 14vh, 180px);
  overflow: hidden;
  isolation: isolate;
}
.sf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(215, 25, 32, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fffbfb 70%, #fff5f5 100%);
}
.sf-hero-glow {
  position: absolute;
  top: -180px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(215, 25, 32, .18), transparent 60%);
  filter: blur(20px);
  border-radius: 50%;
}
.sf-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
}
.sf-hero-shape--1 {
  width: 320px; height: 320px;
  background: var(--sf-primary);
  top: 30%;
  right: 10%;
  opacity: .12;
}
.sf-hero-shape--2 {
  width: 240px; height: 240px;
  background: var(--sf-accent);
  bottom: 10%;
  left: -80px;
  opacity: .15;
}

/* ===========================================================
   Hero avec bannière photo (banniere_url)
   =========================================================== */
.sf-has-banner .sf-hero {
  color: #fff;
}
.sf-has-banner .sf-hero-bg {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, .55) 0%, rgba(15, 15, 15, .35) 40%, rgba(15, 15, 15, .85) 100%),
    var(--sf-hero-bg-image, none) center/cover no-repeat;
}
.sf-has-banner .sf-hero-glow,
.sf-has-banner .sf-hero-shape {
  display: none;
}
.sf-has-banner .sf-kicker {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
}
.sf-has-banner .sf-hero-title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.sf-has-banner .sf-hero-title em {
  color: var(--sf-accent);
  font-style: normal;
}
.sf-has-banner .sf-hero-lead {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* ===========================================================
   Cards départ / route — style flamboyant (Rahimo)
   Rouge + jaune, énergique, premium
   =========================================================== */

/* Section "Prochains départs" : léger fond crème pour rompre le blanc */
.sf-has-banner .sf-section:not(.sf-section--alt) {
  position: relative;
}
.sf-has-banner .sf-section:not(.sf-section--alt)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(250, 204, 21, .06), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(220, 38, 38, .04), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Cards : fond crème subtil + barre rouge+jaune toujours visible */
.sf-has-banner .sf-route-card,
.sf-has-banner .sf-depart-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid rgba(220, 38, 38, .08);
  box-shadow: 0 2px 8px rgba(220, 38, 38, .04);
  padding: 20px;
  gap: 14px;
}
.sf-has-banner .sf-route-card-line {
  font-size: 1.1rem;
}
.sf-has-banner .sf-route-card-arrow {
  width: 24px;
  height: 24px;
}
.sf-has-banner .sf-route-card-arrow svg { width: 12px; height: 12px; }
.sf-has-banner .sf-route-card-prices {
  padding: 10px 0;
}
/* Prix ORDINAIRE : noir au lieu de rouge */
.sf-has-banner .sf-route-card-prices strong {
  font-size: 1.15rem;
  color: var(--sf-ink);
}
.sf-has-banner .sf-route-card::before,
.sf-has-banner .sf-depart-card::before {
  height: 5px;
  background: linear-gradient(90deg,
    var(--sf-primary) 0%,
    var(--sf-primary) 55%,
    var(--sf-accent) 100%);
  transform: scaleX(1); /* toujours visible (pas hover-only) */
}
.sf-has-banner .sf-route-card:hover,
.sf-has-banner .sf-depart-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(220, 38, 38, .18),
    0 2px 8px rgba(250, 204, 21, .12);
  border-color: rgba(220, 38, 38, .15);
}

/* Flèche entre villes : pastille jaune Rahimo */
.sf-has-banner .sf-route-card-arrow {
  background: var(--sf-accent);
  color: var(--sf-primary);
  box-shadow: 0 3px 10px rgba(250, 204, 21, .45);
}

/* Prix : VIP mis en avant avec badge jaune */
.sf-has-banner .sf-route-card-prices > div:last-child small {
  color: var(--sf-muted);
  font-weight: 700;
}
.sf-has-banner .sf-route-card-prices > div:last-child strong {
  background: linear-gradient(120deg, var(--sf-accent) 0%, #fde047 100%);
  padding: 2px 10px;
  border-radius: 6px;
  color: #7c2d12;
  display: inline-block;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(250, 204, 21, .35);
  font-size: 1.1rem;
}

/* Time pills : neutres, accent rouge léger au hover */
.sf-has-banner .sf-time-pill {
  background: #fff;
  border: 1px solid var(--sf-line);
  color: var(--sf-ink);
  font-weight: 700;
  min-width: 48px;
  padding: 6px 10px;
  font-size: .82rem;
}
.sf-has-banner .sf-time-pill:hover {
  background: var(--sf-ink);
  border-color: var(--sf-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.sf-has-banner .sf-time-pill--more {
  border-color: transparent;
  background: transparent;
  color: var(--sf-muted);
}

/* CTA "Réserver sur cette ligne" : sombre + accent rouge subtil */
.sf-has-banner .sf-route-card-cta,
.sf-has-banner .sf-depart-action {
  background: var(--sf-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  padding: 11px 18px;
  font-size: .88rem;
}
.sf-has-banner .sf-route-card-cta::after,
.sf-has-banner .sf-depart-action::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(250, 204, 21, .35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.sf-has-banner .sf-route-card-cta:hover,
.sf-has-banner .sf-depart-action:hover {
  background: var(--sf-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(220, 38, 38, .35);
}

/* ===========================================================
   Galerie photos compagnie (section "Notre bus")
   =========================================================== */
.sf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.sf-gallery-item {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sf-bg-alt);
  box-shadow: var(--sf-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.sf-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
@media (max-width: 640px) {
  .sf-gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}
.sf-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.sf-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-lg);
}
.sf-gallery-item:hover img {
  transform: scale(1.06);
}
.sf-gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .65) 100%);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Lightbox plein écran (click image galerie) */
.sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: sf-lightbox-in .25s ease-out;
}
.sf-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  display: block;
}
.sf-lightbox button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.sf-lightbox button:hover { background: rgba(255, 255, 255, .22); }
@keyframes sf-lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sf-has-banner .sf-route-card-cta:hover::after,
.sf-has-banner .sf-depart-action:hover::after {
  left: 130%;
}

.sf-hero-content {
  max-width: var(--sf-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.sf-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-primary);
  background: var(--sf-primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.sf-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 0 22px;
  color: var(--sf-ink);
}
.sf-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--sf-primary), #ff5a60);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sf-hero-lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--sf-muted);
  font-size: 1.1rem;
}

/* Search card */
.sf-search {
  max-width: 980px;
  margin: clamp(40px, 6vh, 70px) auto 0;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.sf-search-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 14px 0;
  background: var(--sf-bg-alt);
  border-bottom: 1px solid var(--sf-line);
}
.sf-search-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  border: 0;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: .92rem;
  color: var(--sf-muted);
  transition: color .2s ease, background .2s ease;
}
.sf-search-tabs button svg { width: 18px; height: 18px; }
.sf-search-tabs button:hover { color: var(--sf-ink); }
.sf-search-tabs button.is-active {
  color: var(--sf-primary);
  background: #fff;
  box-shadow: 0 -1px 0 #fff inset, 0 1px 0 #fff;
}

.sf-search-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr auto;
  align-items: stretch;
  padding: 18px;
  gap: 12px;
}
.sf-search-form--parcel {
  grid-template-columns: 1fr auto;
}
.sf-field {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: var(--sf-radius);
  background: var(--sf-bg-alt);
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
  min-width: 0;
}
.sf-field:hover, .sf-field:focus-within {
  background: #fff;
  border-color: var(--sf-line);
}
.sf-field-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
  margin-bottom: 4px;
}
.sf-field input,
.sf-field select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sf-ink);
  padding: 0;
  outline: none;
  width: 100%;
  min-width: 0;
}
.sf-field select { appearance: none; cursor: pointer; }
.sf-field input::placeholder { color: var(--sf-muted-2); font-weight: 500; }

.sf-swap {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sf-line);
  color: var(--sf-primary);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sf-swap:hover {
  transform: rotate(180deg);
  box-shadow: var(--sf-shadow-sm);
}
.sf-swap svg { width: 18px; height: 18px; }

.sf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  background: var(--sf-primary);
  color: #fff;
  border: 0;
  border-radius: var(--sf-radius);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.005em;
  box-shadow: 0 6px 20px rgba(215, 25, 32, .3);
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.sf-search-btn svg { width: 18px; height: 18px; }
.sf-search-btn:hover {
  background: var(--sf-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(215, 25, 32, .4);
}

/* ===========================================================
   Trust strip
   =========================================================== */
.sf-trust {
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: 10px var(--sf-pad) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sf-trust-item {
  padding: 26px 24px;
  border-right: 1px solid var(--sf-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-trust-item:last-child { border-right: 0; }
.sf-trust-item strong {
  font-size: .98rem;
  font-weight: 700;
  color: var(--sf-ink);
}
.sf-trust-item span {
  font-size: .85rem;
  color: var(--sf-muted);
}

/* ===========================================================
   Sections
   =========================================================== */
.sf-section {
  padding: clamp(60px, 8vh, 100px) var(--sf-pad);
  max-width: var(--sf-max);
  margin: 0 auto;
}
.sf-section--alt {
  max-width: none;
  margin: 0;
  background: var(--sf-bg-alt);
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
}
.sf-section--alt > * {
  max-width: var(--sf-max);
  margin-left: auto;
  margin-right: auto;
}
.sf-section-head {
  margin-bottom: 40px;
  max-width: 720px;
}
.sf-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin: 0 0 12px;
}
.sf-section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.sf-section-lead {
  color: var(--sf-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ===========================================================
   Departures (cards horizontales)
   =========================================================== */
.sf-departs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.sf-depart-card {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.sf-depart-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sf-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.sf-depart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-md);
  border-color: transparent;
}
.sf-depart-card:hover::before { transform: scaleX(1); }

.sf-depart-time {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sf-depart-hour {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.sf-depart-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-primary);
}
.sf-depart-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--sf-ink);
}
.sf-depart-route svg { width: 16px; height: 16px; color: var(--sf-muted-2); flex-shrink: 0; }
.sf-depart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: var(--sf-muted);
}
.sf-depart-meta span {
  background: var(--sf-bg-alt);
  border: 1px solid var(--sf-line);
  padding: 4px 10px;
  border-radius: 999px;
}
.sf-depart-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--sf-ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  margin-top: auto;
  transition: background .2s ease;
}
.sf-depart-action:hover { background: var(--sf-primary); }
.sf-depart-action svg { width: 16px; height: 16px; }

/* ===========================================================
   Route cards (departs groupés par ligne)
   =========================================================== */
.sf-departs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.sf-route-card {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sf-route-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sf-primary), #ff5a60);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.sf-route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-md);
  border-color: transparent;
}
.sf-route-card:hover::before { transform: scaleX(1); }

.sf-route-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-route-card-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--sf-ink);
}
.sf-route-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sf-primary-soft);
  color: var(--sf-primary);
  flex-shrink: 0;
}
.sf-route-card-arrow svg { width: 14px; height: 14px; }
.sf-route-card-meta {
  display: flex;
  gap: 14px;
  font-size: .85rem;
  color: var(--sf-muted);
}
.sf-route-card-meta strong { color: var(--sf-ink); font-weight: 700; }

.sf-route-card-prices {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
}
.sf-route-card-prices > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-route-card-prices small {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
}
.sf-route-card-prices strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--sf-primary);
}

.sf-route-card-times small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
  margin-bottom: 10px;
}
.sf-route-card-times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sf-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sf-bg-alt);
  border: 1px solid var(--sf-line);
  font-size: .9rem;
  font-weight: 700;
  font-feature-settings: 'tnum';
  color: var(--sf-ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.sf-time-pill:hover {
  background: var(--sf-primary);
  border-color: var(--sf-primary);
  color: #fff;
  transform: translateY(-1px);
}
.sf-time-pill--more {
  background: transparent;
  color: var(--sf-muted);
  pointer-events: none;
  font-weight: 600;
}

.sf-route-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--sf-ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: auto;
  transition: background .2s ease;
}
.sf-route-card-cta:hover { background: var(--sf-primary); }
.sf-route-card-cta svg { width: 16px; height: 16px; }

/* ===========================================================
   Lignes
   =========================================================== */
.sf-lignes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.sf-ligne {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sf-ligne:hover {
  transform: translateY(-2px);
  border-color: var(--sf-primary);
  box-shadow: var(--sf-shadow-sm);
}
.sf-ligne-route {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.sf-ligne-route i {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--sf-primary);
  position: relative;
}
.sf-ligne-route i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--sf-primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.sf-ligne-meta { font-size: .88rem; color: var(--sf-muted); }
.sf-ligne-price { font-weight: 700; color: var(--sf-ink); }

/* ===========================================================
   Agences
   =========================================================== */
.sf-agences {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sf-agence {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.sf-agence-pin {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sf-primary-soft);
  color: var(--sf-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-agence-pin svg { width: 16px; height: 16px; }
.sf-agence-city {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
}
.sf-agence-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--sf-ink);
}
.sf-agence-meta {
  margin-top: 6px;
  font-size: .9rem;
  color: var(--sf-muted);
}

/* ===========================================================
   Parcel result
   =========================================================== */
.sf-parcel-result {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  padding: 32px;
  box-shadow: var(--sf-shadow-sm);
}
.sf-parcel-empty {
  text-align: center;
  color: var(--sf-muted);
  margin: 0;
  padding: 24px 0;
}
.sf-parcel-card {
  display: grid;
  gap: 18px;
}
.sf-parcel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.sf-parcel-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.sf-parcel-state {
  background: var(--sf-primary-soft);
  color: var(--sf-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.sf-parcel-progress {
  height: 6px;
  background: var(--sf-line-2);
  border-radius: 999px;
  overflow: hidden;
}
.sf-parcel-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sf-primary), var(--sf-accent));
  border-radius: 999px;
  transition: width .5s ease;
}
.sf-parcel-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: .92rem;
}
.sf-parcel-meta div small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
  margin-bottom: 2px;
}

/* ===========================================================
   CTA band
   =========================================================== */
.sf-cta-band {
  background: linear-gradient(120deg, var(--sf-primary) 0%, var(--sf-primary-dark) 100%);
  color: #fff;
  padding: clamp(50px, 8vh, 80px) var(--sf-pad);
  position: relative;
  overflow: hidden;
}
.sf-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(400px 200px at 10% 80%, rgba(245, 184, 46, .15), transparent 60%);
  pointer-events: none;
}
.sf-cta-band-inner {
  max-width: var(--sf-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.sf-cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.sf-cta-band p {
  margin: 0 0 24px;
  opacity: .9;
  font-size: 1.05rem;
}

/* ===========================================================
   Footer
   =========================================================== */
.sf-footer {
  background: var(--sf-ink);
  color: #b3b3b3;
  padding: clamp(50px, 6vh, 70px) var(--sf-pad) 32px;
}
.sf-footer-inner {
  max-width: var(--sf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.sf-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sf-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.sf-footer-brand small {
  display: block;
  font-size: .85rem;
  color: #888;
  margin-top: 2px;
}
.sf-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .92rem;
}
.sf-footer-nav a { color: #b3b3b3; transition: color .2s ease; }
.sf-footer-nav a:hover { color: #fff; }
.sf-footer-meta {
  font-size: .85rem;
  color: #888;
  text-align: right;
}
.sf-footer-meta p { margin: 0 0 4px; }
.sf-footer-meta a {
  color: #fff;
  border-bottom: 1px dotted #555;
}

/* ===========================================================
   Modale (saisie date + passagers)
   =========================================================== */
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: sf-modal-fade .25s ease;
}
.sf-modal.is-hidden { display: none; }
@keyframes sf-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sf-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--sf-radius-lg);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--sf-shadow-lg);
  animation: sf-modal-pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes sf-modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.sf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--sf-bg-alt);
  color: var(--sf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.sf-modal-close:hover { background: var(--sf-line); }
.sf-modal-close svg { width: 18px; height: 18px; }
.sf-modal-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin: 0 0 8px;
}
.sf-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 6px;
  color: var(--sf-ink);
}
.sf-modal-route {
  font-size: 1rem;
  color: var(--sf-muted);
  margin: 0 0 24px;
}
.sf-modal-route strong { color: var(--sf-ink); }
.sf-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-modal-form .sf-search-btn {
  margin-top: 8px;
  padding: 16px 24px;
}

/* ===========================================================
   Section "Résultats de recherche"
   =========================================================== */
.sf-results-section.is-hidden { display: none; }
.sf-results-section {
  background: var(--sf-bg-alt);
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
  max-width: none;
  margin: 0;
  padding: clamp(50px, 7vh, 80px) var(--sf-pad);
}
.sf-results-section > * {
  max-width: var(--sf-max);
  margin-left: auto;
  margin-right: auto;
}
.sf-results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sf-result-row {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sf-result-row:hover {
  transform: translateY(-1px);
  border-color: var(--sf-primary);
  box-shadow: var(--sf-shadow-sm);
}
.sf-result-row--prefill {
  border-color: var(--sf-primary);
  background: linear-gradient(180deg, var(--sf-primary-soft) 0%, #fff 50%);
  box-shadow: 0 0 0 3px var(--sf-primary-soft);
}
.sf-result-hour {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--sf-ink);
  font-feature-settings: 'tnum';
}
.sf-result-info {
  min-width: 0;
}
.sf-result-route {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sf-ink);
  margin: 0 0 4px;
}
.sf-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: var(--sf-muted);
}
.sf-result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sf-result-prices {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-result-prices small {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sf-muted-2);
}
.sf-result-prices strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-primary);
  font-feature-settings: 'tnum';
}
.sf-result-prices .sf-result-vip {
  font-size: .85rem;
  color: var(--sf-muted);
  font-weight: 600;
}
.sf-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--sf-ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s ease;
  white-space: nowrap;
}
.sf-result-cta:hover { background: var(--sf-primary); }
.sf-result-cta svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .sf-result-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sf-result-prices { text-align: left; flex-direction: row; gap: 16px; align-items: baseline; }
  .sf-result-cta { justify-content: center; }
}

/* ===========================================================
   Skeleton (loading state)
   =========================================================== */
.sf-skeleton {
  background: linear-gradient(90deg, #f4f4f4 0%, #ececec 50%, #f4f4f4 100%);
  background-size: 200% 100%;
  border-radius: var(--sf-radius);
  animation: sf-shimmer 1.4s infinite;
}
.sf-skeleton--card { height: 200px; }
.sf-skeleton--line { height: 110px; }
.sf-skeleton--agence { height: 130px; }
@keyframes sf-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sf-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--sf-muted);
  background: var(--sf-bg-alt);
  border: 1px dashed var(--sf-line);
  border-radius: var(--sf-radius);
  grid-column: 1 / -1;
}

/* ===========================================================
   Reveal on scroll
   =========================================================== */
.sf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.sf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .sf-search-form {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sf-swap { display: none; }
  .sf-search-btn { grid-column: 1 / -1; padding: 16px; }
  .sf-trust { grid-template-columns: repeat(2, 1fr); }
  .sf-trust-item:nth-child(2) { border-right: 0; }
  .sf-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .sf-footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .sf-nav { display: none; }
  .sf-cta--primary { display: none; }
  .sf-burger { display: flex; }
  .sf-hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .sf-search-form { grid-template-columns: 1fr; }
  .sf-trust-item { padding: 18px 16px; }
  .sf-trust-item strong { font-size: .92rem; }
  .sf-trust-item span { font-size: .78rem; }
}

@media (max-width: 480px) {
  .sf-trust { grid-template-columns: 1fr 1fr; }
  .sf-search-tabs { padding: 10px 10px 0; }
  .sf-search-tabs button { padding: 10px 14px; font-size: .85rem; }
}
