.tour { background: var(--cream); color: var(--forest); }
.tour-sticky { max-width: 1800px; margin: auto; padding: 24px 2.5% 32px; }
.tour-title { margin: 0 0 20px; font: 750 clamp(52px, 7.5vw, 120px)/1.02 Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1; letter-spacing: -.035em; }
.tour-stage { position: relative; min-height: 0; }
.tour-slides { display: grid; gap: 48px; }
.tour-slide { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 4%; min-width: 0; }
.tour-photo { grid-column: 1; grid-row: 1 / 3; position: relative; min-height: 360px; overflow: hidden; background: var(--forest); }
.tour-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--desktop-position); }
.tour-copy { grid-column: 2; grid-row: 1; padding-top: clamp(12px, 3vh, 32px); align-self: start; min-width: 0; }
.tour-badge { margin: 0 0 16px; color: #966408; font: 750 clamp(15px, 1.6vw, 27px)/1.3 Fraunces, Georgia, serif; letter-spacing: .06em; }
.tour-name { margin: 0 0 16px; font: 750 clamp(40px, 5.5vw, 94px)/1.03 Fraunces, Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1; letter-spacing: -.025em; overflow-wrap: break-word; }
.tour-date { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.3; }
.tour-hours { margin: 0; font-size: clamp(17px, 1.9vw, 29px); line-height: 1.5; }
.tour-location { margin: clamp(18px, 2.5vh, 32px) 0 6px; font-size: clamp(18px, 1.8vw, 28px); font-weight: 600; line-height: 1.35; }
.tour-landmark { margin: 0; font-size: clamp(16px, 1.4vw, 22px); font-weight: 400; line-height: 1.45; }
.tour-phone { grid-column: 2; grid-row: 2; margin-top: 36px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: 8px; }
.tour-phone-icon { width: 36px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.tour-phone > div { border-left: 1px solid var(--mustard); padding-left: 18px; }
.tour-phone a { display: inline-block; padding-block: 7px; white-space: nowrap; font: 750 clamp(23px, 2.7vw, 46px)/1.2 Fraunces, Georgia, serif; }
.tour-phone a:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: 5px; }
.tour-phone a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.tour-phone-sticky { display: none; }

/* Le flux complet est la base ; le sticky est une amélioration conditionnelle. */
.tour.is-scroll-story { height: calc(var(--tour-frame-height) + var(--tour-travel)); }
.is-scroll-story .tour-sticky { position: sticky; top: 0; height: var(--tour-frame-height); display: flex; flex-direction: column; }
.is-scroll-story .tour-stage { flex: 1; }
.is-scroll-story .tour-slides { position: absolute; inset: 0; display: block; }
.is-scroll-story .tour-slides::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(96% * 1.55 / 2.55); background: var(--forest); }
.is-scroll-story .tour-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .42s ease; }
.is-scroll-story .tour-slide.is-current { opacity: 1; }
.is-scroll-story .tour-photo { min-height: 0; }
.is-scroll-story .tour-photo img { transform: translateY(5px) scale(1.015); transition: transform .42s ease; }
.is-scroll-story .tour-copy { transform: translateY(8px); transition: transform .42s ease; padding-bottom: 150px; }
.is-scroll-story .is-current .tour-photo img { transform: translateY(0) scale(1.015); }
.is-scroll-story .is-current .tour-copy { transform: translateY(0); }
.is-scroll-story .tour-phone-flow { display: none; }
.is-scroll-story .tour-phone-sticky { display: grid; position: absolute; bottom: 0; right: 0; width: calc(96% / 2.55); margin: 0; }

@media (min-width: 800px) {
  .is-scroll-story .tour-copy { padding-bottom: 0; }
}
/* Fenêtres desktop courtes (dont zoom navigateur) : préserver le panneau
   unique lorsque son contenu tient, sans toucher aux règles mobiles. */
@media (min-width: 800px) and (max-height: 700px) {
  .tour-sticky { padding-top: 16px; padding-bottom: 16px; }
  .tour-title { font-size: clamp(44px, 10vh, 70px); margin-bottom: 12px; }
  .tour-copy { padding-top: 8px; }
  .tour-badge { font-size: 16px; margin-bottom: 10px; }
  .tour-name { font-size: clamp(36px, 8vh, 56px); margin-bottom: 10px; }
  .tour-date { font-size: 24px; margin-bottom: 8px; }
  .tour-hours { font-size: 18px; }
  .tour-location { font-size: 18px; margin-top: 18px; }
  .tour-landmark { font-size: 16px; }
  .tour-phone a { font-size: 28px; }
  .tour-phone { gap: 8px; }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .tour-phone { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .tour-phone-icon { width: 26px; }
  .tour-phone > div { padding-left: 10px; }
  .tour-phone a { font-size: 23px; }
}
@media (max-width: 799px) {
  .tour { --tour-photo-reserve: 160px; --tour-phone-height: 96px; }
  .tour-sticky { padding: 18px 16px 24px; }
  .tour-title { font-size: clamp(42px, 9vw, 66px); margin: 0 8px 18px; }
  .tour-slides { gap: 24px; }
  .tour-slide { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(200px, 1fr) auto auto; min-height: 590px; isolation: isolate; color: var(--cream); background: var(--forest); }
  .tour-photo { position: absolute; inset: 0; min-height: 0; z-index: -2; }
  .tour-photo img { object-position: var(--mobile-position); }
  .tour-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(0 30 20 / .04) 0%, rgb(0 30 20 / .12) 28%, rgb(0 30 20 / .66) 50%, rgb(0 30 20 / .76) 78%, rgb(0 30 20 / .8)); }
  .tour-copy { grid-column: 1; grid-row: 2; padding: 28px 24px 0; }
  .tour-badge { display: block; color: var(--mustard); font-size: 14px; line-height: 1.4; letter-spacing: .07em; margin: 0 0 12px; }
  .tour-name { margin-bottom: 12px; font-size: clamp(34px, 8.5vw, 52px); line-height: 1.06; }
  .tour-date { font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
  .tour-hours { font-size: 17px; font-weight: 600; }
  .tour-location { margin: 18px 0 5px; font-size: 18px; }
  .tour-landmark { font-size: 16px; line-height: 1.4; }
  .tour-phone { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 24px 26px; margin: 0; color: var(--cream); }
  .tour-phone-icon { display: none; }
  .tour-phone > div { border: 0; padding: 0; }
  .tour-phone a { font-size: clamp(25px, 6.5vw, 32px); }
  .tour-phone-sticky { display: none; }
  .is-scroll-story .tour-slide { min-height: 0; grid-template-rows: minmax(0, 1fr) auto var(--tour-phone-height); }
  .is-scroll-story .tour-slides::before { width: 100%; }
  .is-scroll-story .tour-copy { padding: 24px 24px 0; }
  .is-scroll-story .tour-phone-sticky { display: flex; width: 100%; height: var(--tour-phone-height); padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour .tour-slide, .tour .tour-photo img, .tour .tour-copy { transition: none; transform: none; }
}

/* Informations éditoriales : même famille locale que les titres validés. */
.tour-date, .tour-hours, .tour-location, .tour-landmark {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 400;
}
.tour-location { font-weight: 550; }
.tour-phone a { font-variation-settings: "SOFT" 0, "WONK" 1; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 799px) {
  .tour-copy, .tour-phone { color: var(--cream); }
  .tour-date, .tour-hours { font-weight: 500; }
}


/* Mobile : défilement horizontal natif, sans sticky ni accroche verticale.
   Les copies de raccord sont inertes ; seules quatre escales sont accessibles. */
.tour-badge-space { display: none; }
.tour-navigation { display: none; }
@media (max-width: 799px) {
  .tour-sticky { padding: 0; }
  .tour-title { margin: 0; padding: 18px 24px; }
  .tour.is-mobile-carousel { height: auto; }
  .is-mobile-carousel .tour-sticky { position: static; height: auto; }
  .is-mobile-carousel .tour-slides {
    position: relative; display: grid; grid-auto-flow: column;
    grid-auto-columns: calc(100% - 24px); gap: 12px;
    padding: 0 16px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .is-mobile-carousel .tour-slides::-webkit-scrollbar { display: none; }
  .is-mobile-carousel .tour-slides:focus-visible { outline: 3px solid var(--mustard); outline-offset: -3px; }
  .is-mobile-carousel .tour-slide {
    position: relative; inset: auto; opacity: 1; pointer-events: auto;
    scroll-snap-align: start; scroll-snap-stop: always;
    grid-template-rows: minmax(150px, 1fr) auto auto;
    min-height: 620px; transition: none;
  }
  .is-mobile-carousel .tour-photo { grid-row: 1 / -1; }
  .is-mobile-carousel .tour-photo img { transform: none; transition: none; }
  .is-mobile-carousel .tour-copy {
    padding: 24px 20px 0; transform: none; transition: none;
    display: grid; align-content: start; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--tour-row-badge, auto) var(--tour-row-name, auto)
      var(--tour-row-date, auto) var(--tour-row-hours, auto)
      var(--tour-row-location, auto) var(--tour-row-landmark, auto);
  }
  .is-mobile-carousel .tour-copy > * { align-self: start; min-width: 0; }
  .is-mobile-carousel .tour-name { font-size: clamp(28px, 8.5vw, 52px); overflow-wrap: anywhere; }
  .is-mobile-carousel .tour-badge-space { display: block; visibility: hidden; }
  .is-mobile-carousel .tour-phone-flow {
    display: flex; padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  }
  .is-mobile-carousel .tour-phone a { min-height: 44px; }
  .is-mobile-carousel .tour-phone-sticky { display: none; }
  .tour-navigation { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 16px 18px; }
  .tour-navigation button {
    flex: 0 0 48px; width: 48px; height: 48px; padding: 0;
    border: 0; background: transparent; color: var(--forest);
    font: 400 26px/1 Fraunces, Georgia, serif; cursor: pointer;
  }
  .tour-navigation button:hover { color: #966408; }
  .tour-navigation button:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
  .tour-position { font: 650 14px/1.3 Fraunces, Georgia, serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
}

/* Tablettes : éviter une lettre isolée dans les noms longs.
   La typographie du desktop large (1280 px et plus) reste inchangée. */
@media (min-width: 800px) and (max-width: 1279px) {
  .tour-name { font-size: clamp(36px, 4.8vw, 60px); }
}
