/* ==========================================================================
   MSM Swiss Transport — site public (accueil, pages légales, 404)
   ========================================================================== */

/* -- En-tête ------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: transform 0.45s var(--ease-out), background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.site-header--overlay:not(.is-solid) {
  --focus: var(--camel);
  color: var(--light);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-hidden {
  transform: translateY(-101%);
}

.site-header:focus-within {
  transform: none;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-header__logo {
  display: block;
  justify-self: start;
  color: inherit;
  border-radius: var(--radius);
}

.logo {
  width: auto;
  height: 3rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.site-header--overlay:not(.is-solid) .btn {
  --btn-bg: var(--light);
  --btn-fg: var(--ink);
  --btn-bd: var(--light);
}

@media (hover: hover) and (pointer: fine) {
  .site-header--overlay:not(.is-solid) .btn:hover {
    --btn-bg: transparent;
    --btn-fg: var(--light);
  }
}

.clock {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.clock img {
  border-radius: 1px;
}

@media (min-width: 48em) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-header__logo {
    justify-self: center;
  }

  .clock {
    display: flex;
  }

  .logo {
    height: 3.5rem;
  }
}

/* Barre de progression de lecture (mobile et tablette) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--camel);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (min-width: 64em) {
  .scroll-progress {
    display: none;
  }
}

/* -- Sections et thèmes -------------------------------------------------- */

.section {
  position: relative;
  padding-block: var(--section-pad);
  color: var(--fg);
  background: var(--bg);
}

.section--light {
  --bg: var(--light);
}

.section--paper {
  --bg: var(--paper);
  --fg-2: #505c68;
  --accent: #7a5f24;
}

.section--dark {
  --bg: var(--ink);
  --fg: var(--light);
  --fg-2: rgba(255, 255, 255, 0.78);
  --accent: var(--camel);
  --rule: rgba(255, 255, 255, 0.2);
  --focus: var(--camel);
}

/* -- Le fil rouge : la route qui traverse la page ------------------------- */

.chapter {
  --route-x: max(var(--gutter) * 0.5, calc((100% - var(--maxw)) / 2 + var(--gutter) * 0.5));
  --route-indent: 0px;
}

.route {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--route-x);
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}

.route__fill {
  position: absolute;
  inset: 0 -0.5px;
  background: var(--camel);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

.route--end {
  bottom: auto;
  height: calc(var(--section-pad) + 0.6rem);
}

.chapter__body {
  position: relative;
}

.chapter__head {
  display: grid;
  gap: 1.25rem;
  max-width: 62rem;
}

.chapter__head--wide {
  max-width: 76rem;
  gap: 1.75rem;
}

.chapter__head--wide .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

/* Le repère de chapitre est un « arrêt » posé sur la route */
.chapter .eyebrow {
  position: relative;
}

.chapter .eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--gutter) * -0.5 - var(--route-indent));
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4px;
  background: var(--bg);
  border: 1px solid var(--fg-2);
  border-radius: 50%;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}

.chapter.is-reached .eyebrow::before {
  background: var(--camel);
  border-color: var(--camel);
  transform: scale(1.15);
}

@media (min-width: 64em) {
  .chapter {
    --route-x: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
    --route-indent: clamp(2.5rem, 4vw, 4.5rem);
  }

  .chapter__body {
    padding-left: var(--route-indent);
  }

  .chapter .eyebrow::before {
    left: calc(var(--route-indent) * -1);
  }

  .chapter__body--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .chapter__aside {
    position: sticky;
    top: 6.5rem;
  }
}

.chapter__aside {
  display: grid;
  gap: 2rem;
  justify-items: start;
}

/* -- Apparitions au défilement ------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* -- 00 · Hero ----------------------------------------------------------- */

/* Le hero tient dans un écran, à toutes les tailles : le titre en haut, la réservation en bas,
   la flotte entre les deux. Trois rangées — titre, respiration, réservation — et l'image s'ancre
   sur le bord supérieur de la troisième : les voitures restent posées juste au-dessus du
   formulaire, quelle que soit la hauteur de l'écran. Si le contenu ne tient pas (très petit
   écran, texte agrandi), le hero s'allonge au lieu de rogner. */
.hero {
  --fg: var(--light);
  --fg-2: rgba(255, 255, 255, 0.86);
  --accent: var(--camel);
  --focus: var(--camel);
  --hero-strip: clamp(0.75rem, 3.2vh, 2.5rem); /* chaussée visible entre les roues et le formulaire */
  --hero-shade: clamp(2.5rem, 11vh, 7rem); /* fondu du voile sous le texte */
  position: relative;
  z-index: 1; /* au-dessus des sections suivantes : une liste de suggestions qui dépasse reste visible */
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(clamp(1rem, 4vh, 2.5rem), 1fr) auto;
  min-height: 100vh;
  min-height: min(100svh, 90rem);
  color: var(--light);
  background: #0f1b2a;
}

/* Voiles : sous le titre (lisible quelle que soit la partie de l'image derrière lui) et sous la réservation */
.hero::before,
.hero::after {
  content: "";
  grid-column: 1;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  grid-row: 1;
  margin-bottom: calc(var(--hero-shade) * -1);
  background: linear-gradient(
    180deg,
    rgba(9, 16, 27, 0.56) 0%,
    rgba(9, 16, 27, 0.72) 45%,
    rgba(9, 16, 27, 0.72) calc(100% - var(--hero-shade)),
    rgba(9, 16, 27, 0.34) calc(100% - var(--hero-shade) * 0.5),
    rgba(9, 16, 27, 0) 100%
  );
}

.hero::after {
  grid-row: 3;
  margin-top: calc(var(--hero-strip) * -1);
  background: linear-gradient(0deg, rgba(9, 16, 27, 0.9) 0%, rgba(9, 16, 27, 0.76) 42%, rgba(9, 16, 27, 0) 100%);
}

.hero__media {
  grid-area: 1 / 1 / -1 / -1;
  position: relative;
  z-index: -2;
  display: grid;
  grid-template-rows: subgrid;
  overflow: hidden;
  overflow: clip;
}

.hero__media picture {
  grid-row: 1 / 3; /* du haut du hero au bord supérieur du formulaire */
  position: relative;
  display: block;
}

.hero__media img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 42rem);
  /* assez large pour que le ciel monte jusqu'en haut du hero, sans jamais couper la flotte (118 % au plus) */
  width: max(100%, 42rem, min(118%, (100svh - 14rem) * 2.58));
  max-width: none;
  height: auto;
  /* la ligne des roues (69,5 % de la hauteur de l'image) se pose à --hero-strip du formulaire */
  transform: translate(-50%, calc(30.5% - var(--hero-strip)));
  transform-origin: 50% 69.5%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
}

/* Navigateurs sans sous-grille : l'image remplit simplement le hero */
@supports not (grid-template-rows: subgrid) {
  .hero__media {
    display: block;
  }

  .hero__media picture {
    position: absolute;
    inset: 0;
  }

  .hero__media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.hero__content {
  grid-area: 1 / 1;
  padding-top: calc(var(--header-h) + clamp(0.5rem, 3.2vh, 2.75rem));
}

.hero__title {
  display: grid;
  gap: clamp(0.625rem, 1.8vh, 1.5rem);
  font-weight: 400;
}

.hero__eyebrow {
  font-size: clamp(0.6875rem, 0.62rem + 0.3vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* Deux lignes au plus : la taille suit la largeur (téléphones) ou la hauteur (écrans bas) */
.hero__headline {
  font-size: clamp(1.6875rem, min(9.1vw, 9.4vh), 5.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--camel);
}

.hero__lead {
  max-width: 46ch;
  margin-top: clamp(0.625rem, 1.8vh, 1.25rem);
  font-size: clamp(0.9375rem, 0.6rem + 0.9vh + 0.3vw, 1.1875rem);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero__booking {
  grid-area: 3 / 1;
  position: relative;
  z-index: 2;
  padding-bottom: clamp(0.75rem, 2.4vh, 2rem);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-top: clamp(0.375rem, 1.2vh, 0.875rem);
}

.hero__note {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light);
}

.hero__cue .eyebrow__num {
  color: var(--camel);
}

/* Écran large au format paysage : le titre tient sur une ligne, dans le ciel */
@media (min-width: 64em) and (min-aspect-ratio: 16/10) {
  .hero__headline {
    font-size: clamp(2.25rem, min(5.1vw, 9.4vh), 6rem);
  }

  .hero__lead {
    max-width: none;
  }
}

/* Téléphones : formulaire resserré, pour laisser la flotte visible */
@media (max-width: 39.99em) {
  .hero .start .field {
    padding: 0.5rem 1rem 0.375rem;
  }

  .hero .start .field__input {
    min-height: 1.875rem;
  }

  .hero .start__submit {
    min-height: 3.25rem;
    margin: 0.5rem;
  }

  .hero__cue {
    display: none;
  }

  .hero__foot {
    justify-content: center;
    text-align: center;
  }
}

/* Écrans peu hauts : on garde l'essentiel — le titre, la flotte, la réservation.
   Le chapô reste lu par les lecteurs d'écran. */
@media (max-width: 39.99em) and (max-height: 44.99em),
  (min-width: 40em) and (max-width: 63.99em) and (max-height: 30.99em),
  (min-width: 64em) and (max-height: 28.99em) {
  .hero__lead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 39.99em) and (max-height: 37.49em) {
  .hero__eyebrow {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 39.99em) and (max-height: 49.99em),
  (min-width: 40em) and (max-width: 63.99em) and (max-height: 34.99em),
  (min-width: 64em) and (max-height: 30.99em) {
  .hero__foot {
    display: none;
  }
}

@media (min-width: 40em) and (max-height: 30.99em) {
  .hero .start .field {
    padding-block: 0.5rem 0.375rem;
  }

  .hero .start .field__input {
    min-height: 1.875rem;
  }

  .hero .start__submit {
    min-height: 3rem;
    margin: 0.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__cue .icon {
    animation: cue 2.4s var(--ease-in-out) infinite;
  }

  .hero__eyebrow,
  .hero__headline,
  .hero__lead,
  .hero__booking {
    animation: rise 1s var(--ease-out) both;
  }

  .hero__headline {
    animation-delay: 0.08s;
  }

  .hero__lead {
    animation-delay: 0.16s;
  }

  .hero__booking {
    animation-delay: 0.26s;
  }

  .hero__media img {
    animation: settle 2.4s var(--ease-out) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(3px);
  }
}

/* « scale » et non « transform » : l'ancrage de l'image passe par transform */
@keyframes settle {
  from {
    scale: 1.045;
  }
}

/* -- 01 · La flotte ------------------------------------------------------ */

.fleet {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3.5vw, 4rem);
  margin-top: var(--block-gap);
}

.vehicle {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.vehicle__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper);
  border-radius: var(--radius);
}

.vehicle__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .vehicle:hover .vehicle__media img {
    transform: scale(1.035);
  }
}

.vehicle__body {
  display: grid;
  gap: 0.875rem;
  justify-items: start;
}

.vehicle__meta {
  display: flex;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.vehicle__num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.vehicle__name {
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.vehicle__text {
  max-width: 48ch;
  color: var(--fg-2);
}

.vehicle__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.875rem 2.5rem;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.vehicle__specs div {
  display: grid;
  gap: 0.125rem;
}

.vehicle__specs div:first-child {
  grid-column: 1 / -1;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 30em) {
  .vehicle__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
  }

  .vehicle__specs div:first-child {
    align-self: end;
  }
}

.vehicle__specs dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.vehicle__specs dd {
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 64em) {
  .fleet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Décalage éditorial : la colonne de droite démarre plus bas */
  .vehicle:nth-child(even) {
    margin-top: clamp(3.5rem, 6.5vw, 6.5rem);
  }

  .vehicle:nth-child(odd):not(:first-child) {
    margin-top: calc(clamp(3.5rem, 6.5vw, 6.5rem) * -1);
  }
}

/* -- 02 · Les services --------------------------------------------------- */

.services {
  display: grid;
  margin-top: var(--block-gap);
  border-bottom: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-content: start;
  gap: 0.5rem 0;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}

.service__num {
  padding-top: 0.4em;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.service__title {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.service__text {
  grid-column: 2;
  max-width: 50ch;
  color: var(--fg-2);
}

@media (min-width: 64em) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 6vw, 7rem);
    border-bottom: 0;
  }

  .service:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* -- 03 · Nos engagements ------------------------------------------------ */

.pillars {
  display: grid;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--block-gap);
}

.pillar {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.pillar__icon {
  width: 3.125rem;
  height: 3.125rem;
  margin-bottom: 0.5rem;
}

.pillar__title {
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pillar__text {
  color: var(--fg-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1rem, 3vw, 3rem);
  margin-top: var(--block-gap);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-strong);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.stat__value {
  font-size: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat__label {
  font-size: clamp(0.6875rem, 0.62rem + 0.25vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

@media (min-width: 40em) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 75em) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* -- 04 · Réservation ---------------------------------------------------- */

.booking {
  margin-top: var(--block-gap);
}

.start--card {
  --seg-bg: rgba(255, 255, 255, 0.12);
}

.booking__note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--fg-2);
}

.steps {
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--block-gap);
}

.step {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-content: start;
  gap: 0.25rem 0;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}

.step__num {
  padding-top: 0.3em;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.step__text {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--fg-2);
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-block: 1.5rem 0;
  }

  .step__text {
    grid-column: auto;
  }
}

/* -- 05 · Questions ------------------------------------------------------ */

.faq {
  margin-top: var(--block-gap);
  border-bottom: 1px solid var(--rule);
}

.faq__item {
  border-top: 1px solid var(--rule);
}

.faq__question {
  font-size: 1rem;
  font-weight: 400;
}

.faq__question button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.375rem 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25em;
  color: var(--accent);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.faq__answer p {
  max-width: 64ch;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--fg-2);
}

/* Repli animé (uniquement si JavaScript est actif : sans JS, tout reste lisible) */
.js .faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}

.js .faq__answer-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.32s;
}

.js .faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.js .faq__item.is-open .faq__answer-inner {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.32s ease 0.06s, visibility 0s;
}

.js .faq__more:not(.is-open) {
  display: none;
}

.faq__toggle {
  margin-block: 1rem;
}

.faq__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

@media (min-width: 64em) {
  .chapter__body--split .faq {
    margin-top: 0.5rem;
  }
}

/* -- 06 · Destinations --------------------------------------------------- */

.destinations {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 19rem);
  gap: 1rem;
  margin-top: var(--block-gap);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.destinations::-webkit-scrollbar {
  display: none;
}

.destination {
  scroll-snap-align: start;
}

.destination__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  color: var(--light);
  text-decoration: none;
  background: var(--ink);
  border-radius: var(--radius);
  --focus: var(--ink);
}

.destination__media,
.destination__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.destination__media img {
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.destination__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 34, 0) 34%, rgba(13, 22, 34, 0.62) 62%, rgba(13, 22, 34, 0.92) 100%);
  pointer-events: none;
}

.destination__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
}

.destination__region {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.destination__name {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.destination__trip {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.86);
}

.destination .link-arrow {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

@media (hover: hover) and (pointer: fine) {
  .destination__link:hover .destination__media img {
    transform: scale(1.045);
  }

  .destination__link:hover .link-arrow .icon {
    transform: translateX(0.25rem);
  }
}

@media (min-width: 64em) {
  .destinations {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.75rem);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* -- 07 · Arrivée -------------------------------------------------------- */

.chapter--last {
  padding-bottom: calc(var(--section-pad) * 0.9);
}

/* -- Pied de page -------------------------------------------------------- */

.site-footer {
  --fg: var(--light);
  --fg-2: rgba(255, 255, 255, 0.82);
  --rule: rgba(255, 255, 255, 0.24);
  --focus: var(--camel);
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--light);
  background: var(--ink);
}

.site-footer__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.site-footer__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 45, 0.9) 0%, rgba(20, 32, 45, 0.78) 45%, rgba(20, 32, 45, 0.94) 100%);
}

.site-footer__inner {
  display: grid;
  gap: var(--block-gap);
  padding-block: var(--section-pad) 1.5rem;
}

.site-footer__slogan {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.site-footer__slogan em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--camel);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.site-footer__title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.site-footer__contact dl {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.site-footer__contact dt {
  font-size: 0.875rem;
  color: var(--fg-2);
}

.site-footer__nav ul,
.site-footer__social {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a,
.site-footer__social a,
.site-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__address address {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--fg-2);
  border-top: 1px solid var(--rule);
}

.site-footer__bottom > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang--footer {
  margin-left: auto;
}

@media (min-width: 64em) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* -- Indicateur de chapitre (bureau) -------------------------------------- */

.journey {
  display: none;
}

@media (min-width: 75em) and (hover: hover) and (pointer: fine) {
  .journey {
    --focus: var(--camel);
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }

  .journey.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  /* Pendant la saisie d'une adresse, le repère s'efface : il ne recouvre pas les suggestions */
  .ac-active .journey {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition-delay: 0s, 0s, 0.3s;
  }

  .journey ol {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    color: var(--light);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -18px rgba(13, 22, 34, 0.6);
  }

  .journey li {
    display: none;
  }

  .journey li.is-current,
  .journey:hover li,
  .journey:focus-within li {
    display: block;
  }

  .journey a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.25rem;
    padding: 0 0.875rem 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 1px;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .journey__num {
    color: var(--camel);
    font-variant-numeric: tabular-nums;
  }

  .journey li.is-current a {
    color: var(--light);
  }

  .journey:hover li.is-current a,
  .journey:focus-within li.is-current a {
    background: rgba(255, 255, 255, 0.1);
  }

  .journey a:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
  }
}

/* -- Bouton WhatsApp ----------------------------------------------------- */

.whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: block;
  border-radius: 50%;
  box-shadow: 0 12px 28px -10px rgba(13, 22, 34, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem) scale(0.96);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  --focus: var(--ink);
}

.whatsapp.is-visible,
html:not(.js) .whatsapp {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.whatsapp:active {
  transform: scale(0.95);
}

/* Pendant la saisie d'une adresse, le bouton s'efface : il ne recouvre ni le champ ni les suggestions */
.ac-active .whatsapp {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem) scale(0.96);
  transition-delay: 0s, 0s, 0.3s;
}

.whatsapp img {
  width: 3.25rem;
  height: 3.25rem;
}

/* -- Pages légales et 404 ------------------------------------------------ */

.page-plain .site-header {
  position: sticky;
}

.legal {
  padding-block: clamp(3rem, 8vw, 7rem) var(--section-pad);
}

.legal__head {
  display: grid;
  gap: 1.25rem;
  max-width: 60rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-strong);
}

.legal__layout {
  display: grid;
  gap: 2.5rem clamp(2rem, 6vw, 7rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.legal__toc ol {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal__toc li {
  counter-increment: toc;
}

.legal__toc a {
  display: flex;
  gap: 0.75rem;
  min-height: 2.5rem;
  align-items: center;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--camel-ink);
  font-variant-numeric: tabular-nums;
}

.legal__toc a:hover {
  color: var(--ink);
}

.legal__section {
  display: grid;
  gap: 1rem;
  max-width: 68ch;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.legal__section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal__section h2 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal__section p,
.legal__section li {
  color: var(--ink-2);
}

.legal__section ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.legal__section li::marker {
  color: var(--camel-ink);
}

.legal__section strong {
  font-weight: 500;
  color: var(--ink);
}

.legal__back {
  margin-top: 2.5rem;
}

@media (min-width: 64em) {
  .legal__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .legal__toc {
    position: sticky;
    top: 2rem;
  }
}

.notfound {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  justify-items: start;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--section-pad);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* -- Impression ---------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer__media,
  .whatsapp,
  .journey,
  .scroll-progress,
  .route,
  .hero__booking,
  .booking {
    display: none !important;
  }

  .section,
  .hero,
  .site-footer {
    color: #000 !important;
    background: #fff !important;
    padding-block: 1.5rem;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero__media,
  .hero::before,
  .hero::after {
    display: none;
  }

  .hero__content {
    padding-top: 0;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
