/* Le Rossignol — proposition de refonte
   Palette tirée de la photo : neige, épinette, lichen, givre, et une seule touche d'érable. */
:root {
  --snow: #EEF1EF;
  --paper: #F7F8F7;
  --spruce: #1C2B28;
  --spruce-2: #2A3D39;
  --lichen: #5E6E68;
  --frost: #CFD8D5;
  --ember: #B5582F;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--snow);
  color: var(--spruce);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-intro { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--snow);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--spruce-2); }
.btn-light { background: var(--snow); color: var(--spruce); }
.btn-light:hover { background: #fff; }

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.4rem;
  color: var(--spruce);
  pointer-events: none;
}
body:not(.is-intro) .intro { display: none; }
.intro-mark { width: min(34vw, 190px); aspect-ratio: 556 / 468; overflow: visible; }
.intro-mark path:not(.eye) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s var(--ease) forwards;
}
.intro-mark path:nth-child(2) { animation-delay: .25s; }
.intro-mark path:nth-child(3) { animation-delay: .35s; animation-duration: 1.5s; }
.intro-mark path:nth-child(4),
.intro-mark path:nth-child(5) { animation-delay: .6s; }
.intro-mark path:nth-child(6),
.intro-mark path:nth-child(7) { animation-delay: .8s; }
.intro-mark .eye { opacity: 0; animation: fade-in .4s 1.4s forwards; }
.intro-name {
  font-size: .95rem;
  letter-spacing: .02em;
  opacity: 0;
  animation: fade-in .6s .9s forwards;
}
.intro.opening .intro-name { transition: opacity .3s; opacity: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Navigation ---------- */
/* Repris tel quel du site actuel (en-tête style Apple) */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  padding: 0 clamp(16px, 4vw, 48px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0));
  transition: height .4s cubic-bezier(.4,0,.2,1), background .4s, color .4s, box-shadow .4s, opacity .8s;
}
body.is-intro .nav { opacity: 0; }
.nav.scrolled {
  height: 60px;
  color: #23262a;
  background: rgba(250,248,244,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 rgba(0,0,0,.12);
}
.nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; }
.brand-mark {
  width: 46px; height: auto; aspect-ratio: 556 / 468; flex: none;
  stroke-width: 19;
  overflow: visible;
  transition: width .4s cubic-bezier(.4,0,.2,1), transform .4s;
}
.nav.scrolled .brand-mark { width: 38px; }
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name, .brand-sub { font-family: "Montserrat", var(--font); text-transform: uppercase; white-space: nowrap; }
.brand-name { font-weight: 500; font-size: .98rem; letter-spacing: .2em; }
.brand-sub {
  font-weight: 400; font-size: .58rem; letter-spacing: .32em;
  opacity: .72; margin-top: .2rem;
  transition: opacity .4s, max-height .4s, margin .4s;
  max-height: 1em; overflow: hidden;
}
.nav.scrolled .brand-sub { opacity: 0; max-height: 0; margin-top: 0; }
.nav nav { display: flex; align-items: center; gap: 2rem; font-size: .82rem; font-weight: 400; letter-spacing: .01em; }
.nav nav a:not(.btn) { opacity: .88; transition: opacity .2s; }
.nav nav a:not(.btn):hover { opacity: 1; }
.nav .btn-small { min-height: 0; padding: .5rem 1.1rem; font-size: .8rem; background: #3f5a4c; color: #fff; }
.nav .btn-small:hover { background: #324a3d; }
.nav:not(.scrolled) .btn-small { background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: .5px solid rgba(255,255,255,.35); }
.nav:not(.scrolled) .btn-small:hover { background: rgba(255,255,255,.28); }

/* ---------- Héros ---------- */
.hero { height: 260vh; height: 260svh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--spruce);
}
body.is-intro .hero-sticky { background: transparent; }
.hero-frame { position: absolute; inset: 0; --p: 0; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% calc(var(--p) * 100%);
  transform: scale(calc(1.06 - var(--p) * .06));
  transform-origin: 50% 70%;
}
.steam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 26, 24, .45), transparent 22%),
    linear-gradient(to top, rgba(16, 26, 24, .7), rgba(16, 26, 24, .15) 42%, transparent 60%);
}

.hero-copy {
  position: absolute;
  inset: auto var(--gutter) clamp(28px, 6vh, 64px) var(--gutter);
  color: #fff;
  display: grid;
}
.hero-a, .hero-b { grid-area: 1 / 1; align-self: end; }
.hero-a { opacity: calc(1 - var(--p) * 3); transform: translateY(calc(var(--p) * -60px)); }
.hero-b {
  opacity: clamp(0, calc((var(--p) - .55) * 3.2), 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - .55) * 3.2, 1)) * 30px));
  max-width: 40rem;
}
.hero-b, .hero-a { pointer-events: none; }
.hero-b a { pointer-events: auto; }
.hero-place { font-size: 1rem; opacity: .9; margin-bottom: .2rem; }
.wordmark {
  font-size: clamp(3.6rem, 15vw, 15rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero-tagline {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: .9rem;
}
.chalet-text p.chalet-lead { color: var(--spruce); font-size: 1.2rem; line-height: 1.5; }
.hero-hint { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; font-size: .92rem; opacity: .85; }
.hint-line { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-line {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.rating { font-size: .95rem; }
.star { color: #F0B48F; }

/* Entrée du texte après l'intro */
body.is-intro .hero-copy { opacity: 0; transform: translateY(24px); }
.hero-copy { transition: opacity 1s .1s, transform 1.2s var(--ease) .1s; }

/* ---------- Le chalet ---------- */
.chalet, .region, .infos {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.chalet { padding-block: clamp(80px, 14vw, 180px) clamp(60px, 10vw, 140px); }
.statement {
  font-size: clamp(1.75rem, 4.4vw, 3.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 21ch;
  text-wrap: balance;
}
.chalet-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 9vw, 120px);
  align-items: end;
}
/* Photo entière, sans recadrage : on voit le chalet et la rivière */
.chalet-img img { width: 100%; height: auto; aspect-ratio: 2000 / 1500; object-fit: cover; border-radius: 6px; }
.chalet-text h2 { margin-bottom: 1.1rem; }
.chalet-text p { color: var(--lichen); max-width: 34rem; }
.chalet-text p + p { margin-top: .9rem; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 2.2rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--frost);
}
.specs div { display: flex; flex-direction: column-reverse; }
.specs dt { font-size: .88rem; color: var(--lichen); }
.specs dd { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }

/* Les chambres : trois photos à la même hauteur, cliquables */
.rooms { margin-top: clamp(80px, 12vw, 160px); }
.rooms h2 { margin-bottom: 2rem; }
.rooms-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 5fr;
  gap: clamp(12px, 1.6vw, 24px);
}
.rooms-grid button {
  display: block; width: 100%;
  padding: 0; border: 0;
  border-radius: 6px; overflow: hidden;
  cursor: zoom-in;
  background: var(--frost);
}
.rooms-grid img {
  width: 100%;
  height: clamp(260px, 30vw, 440px);
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.rooms-grid button:hover img, .rooms-grid button:focus-visible img { transform: scale(1.04); }
.rooms-grid p { margin-top: .8rem; color: var(--lichen); font-size: .98rem; }
.rooms-grid strong { display: block; color: var(--spruce); font-weight: 500; }

.amenities {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(80px, 12vw, 160px);
}
.amenities ul { columns: 2; column-gap: 3rem; }
.amenities li {
  break-inside: avoid;
  padding: 1rem 0;
  border-bottom: 1px solid var(--frost);
  color: var(--lichen);
}
.amenities li strong { color: var(--spruce); font-weight: 500; }

/* ---------- Galerie ---------- */
.gallery {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-bottom: clamp(80px, 12vw, 160px);
}
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.gallery-all {
  font: inherit; font-size: .95rem; font-weight: 500;
  color: var(--spruce);
  background: none; border: 0; cursor: pointer;
  padding: .4rem 0;
  border-bottom: 1px solid currentColor;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 11vw, 150px);
  gap: clamp(8px, 1vw, 14px);
}
.m-a { grid-column: 1 / 8;  grid-row: span 4; }
.m-b { grid-column: 8 / 13; grid-row: span 4; }
.m-c { grid-column: 1 / 6;  grid-row: span 3; }
.m-d { grid-column: 6 / 10; grid-row: span 3; }
.m-e { grid-column: 10 / 13; grid-row: span 3; }
.m-f { grid-column: 1 / 5;  grid-row: span 3; }
.m-g { grid-column: 5 / 13; grid-row: span 3; }

/* Panorama : le chalet s'allume au défilement (effects.js règle --l1 à --l7, --day et --c) */
.pano { position: relative; height: 300vh; height: 300svh; }
.pano-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #0d1420;
}
/* La scène garde les proportions de la photo et couvre l'écran ;
   sur mobile elle reste cadrée sur le chalet. Tout se place en % de la photo. */
.pano-stage {
  --W: max(100vw, 222.72vh);
  position: absolute;
  width: var(--W);
  height: calc(var(--W) * .449);
  top: calc((100vh - var(--W) * .449) / 2);
  left: clamp(calc(100vw - var(--W)), calc(50vw - var(--W) * .2), 0px);
}
@supports (height: 100svh) {
  .pano-stage { --W: max(100vw, 222.72svh); top: calc((100svh - var(--W) * .449) / 2); }
}
.pano-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.pano-night {
  filter: brightness(calc(.36 + var(--day, 0) * .1)) saturate(.55) contrast(1.08) hue-rotate(-8deg);
}
/* voile bleu nuit */
.pano-stage::after {
  content: "";
  position: absolute; inset: 0;
  background: #24365a;
  mix-blend-mode: multiply;
  opacity: calc(.6 * (1 - var(--day, 0)));
  pointer-events: none;
  z-index: 1;
}
.lamp {
  background: url("images/panorama-riviere.jpg") 0 0 / 100% 100% no-repeat;
  opacity: var(--v, 0);
  z-index: 2;
  filter: brightness(1.08) saturate(1.1);
}
.lamp.soft {
  /* halo doux : ellipse calculée pour paraître ronde sur la photo panoramique */
  -webkit-mask-image: radial-gradient(var(--mr) calc(var(--mr) * 2.2272) at var(--mx) var(--my), #000 35%, transparent 100%);
  mask-image: radial-gradient(var(--mr) calc(var(--mr) * 2.2272) at var(--mx) var(--my), #000 35%, transparent 100%);
}
.glow {
  left: calc(var(--gx) - var(--gs) / 2) !important;
  top: calc(var(--gy) - var(--gs) * 1.1136) !important;
  width: var(--gs) !important;
  height: calc(var(--gs) * 2.2272) !important;
  background: radial-gradient(closest-side, rgba(255, 176, 92, .55), rgba(255, 140, 60, .18) 55%, transparent);
  mix-blend-mode: screen;
  opacity: var(--v, 0);
  z-index: 3;
  pointer-events: none;
}
.glow-fire { animation: flicker 2.6s infinite; }
.glow-small { background: radial-gradient(closest-side, rgba(255, 200, 120, .35), transparent); }
@keyframes flicker {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  18% { transform: scale(1.06); filter: brightness(1.25); }
  33% { transform: scale(.97); filter: brightness(.9); }
  52% { transform: scale(1.04); filter: brightness(1.15); }
  71% { transform: scale(.99); filter: brightness(.95); }
}
.pano-day { opacity: var(--day, 0); z-index: 4; }
.pano-sticky::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 22, .7), transparent 45%);
  opacity: var(--c, 0);
  pointer-events: none;
}
.pano-final {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(8vh, 40px);
  z-index: 2;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  opacity: 0;
}
/* Sans animation : la photo d'origine, simplement */
.pano.is-static { height: auto; }
.pano.is-static .pano-sticky { position: static; height: auto; background: none; }
.pano.is-static .pano-stage { position: static; width: 100%; height: auto; }
.pano.is-static .pano-stage > * { display: none; }
.pano.is-static .pano-stage > .pano-day { display: block; position: static; height: auto; opacity: 1; }
.pano.is-static .pano-stage::after, .pano.is-static .pano-sticky::after { display: none; }
.pano.is-static .pano-final { position: static; opacity: 1; color: var(--spruce); max-width: none; padding: 1.4rem var(--gutter) 0; }

/* Région : la rivière vue du ciel */
.region-img { margin-top: clamp(40px, 6vw, 72px); }
.region-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 45%; border-radius: 6px; }
.mosaic button {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--frost);
}
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s;
}
.mosaic span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  text-align: left;
  color: #fff;
  font: inherit; font-size: .95rem;
  background: linear-gradient(to top, rgba(16,26,24,.65), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease);
}
.mosaic button:hover img, .mosaic button:focus-visible img { transform: scale(1.04); }
.mosaic button:hover span, .mosaic button:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .mosaic span { opacity: 1; transform: none; } }

/* Visionneuse plein écran */
.viewer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0f1715;
  color: #fff;
  overflow: hidden;
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(15, 23, 21, .9); }
.viewer-ambient {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.3) brightness(.45);
  transform: scale(1.1);
  transition: background-image .6s;
}
.viewer-figure {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
  padding: 72px 88px 28px;
  max-height: 100%;
}
.viewer-figure img {
  max-width: min(100%, 1500px);
  max-height: calc(100svh - 150px);
  width: auto; height: auto;
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  touch-action: pan-y;
  user-select: none;
  view-transition-name: none;
}
.viewer figcaption { display: flex; gap: 1.2rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.viewer-count { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.v-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: .5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.v-btn:hover { background: rgba(255,255,255,.22); }
.v-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v-close { top: 16px; right: 16px; }
.v-prev { left: 20px; top: 50%; translate: 0 -50%; }
.v-next { right: 20px; top: 50%; translate: 0 -50%; }
.viewer-figure img.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); } }
::view-transition-group(photo) { animation-duration: .55s; animation-timing-function: cubic-bezier(.3,0,.1,1); }

/* ---------- Région : ligne de route ---------- */
.region {
  padding-block: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--frost);
}
.region-text { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.region-text p { color: var(--lichen); max-width: 36rem; }
.route {
  position: relative;
  margin-top: clamp(64px, 9vw, 110px);
  height: 230px;
}
.route::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(to right, var(--spruce), var(--frost));
}
.stop {
  position: absolute;
  top: 0;
  left: calc(var(--t) / 30 * 100%);
  transform: translateX(-50%);
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}
.stop::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--snow);
  border: 2px solid var(--spruce);
}
.stop.origin { transform: none; align-items: flex-start; text-align: left; }
.stop.origin::before { left: 0; margin-left: 0; background: var(--ember); border-color: var(--ember); }
.stop:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.stop:last-child::before { left: auto; right: -6px; }
.stop-text { display: flex; flex-direction: column; align-items: inherit; }
.stop strong { font-weight: 500; font-size: 1rem; }
.stop-text span { font-size: .9rem; color: var(--lichen); }
/* Icônes au trait, même épaisseur que le logo */
.stop-icon {
  width: 72px; height: 72px;
  margin-top: 1.4rem;
  fill: none;
  stroke: var(--spruce);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stop-icon .faint { stroke: var(--lichen); opacity: .6; }

/* ---------- Bon à savoir ---------- */
.infos {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.accordion { border-top: 1px solid var(--frost); }
.accordion details { border-bottom: 1px solid var(--frost); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.accordion details p { color: var(--lichen); max-width: 38rem; padding-bottom: 1.4rem; }
.accordion details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.accordion details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* ---------- Fin ---------- */
.closing {
  background: var(--spruce);
  color: var(--snow);
  text-align: center;
  padding: clamp(96px, 14vw, 180px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing-mark { width: 64px; height: 54px; stroke-width: 18; margin-bottom: 2rem; color: var(--frost); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.closing p { color: var(--frost); margin: 1rem 0 2.2rem; max-width: 32rem; }
.footer {
  background: var(--spruce);
  color: var(--frost);
  border-top: 1px solid var(--spruce-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1.6rem var(--gutter);
  font-size: .88rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .nav { height: 64px; }
  .nav.scrolled { height: 56px; }
  .brand-mark { width: 38px; }
  .nav.scrolled .brand-mark { width: 34px; }
  .brand-name { font-size: .85rem; letter-spacing: .16em; }
  .chalet-grid, .amenities, .region-text, .infos { grid-template-columns: 1fr; }
  .amenities ul { columns: 1; }
  .specs { grid-template-columns: repeat(2, auto); gap: 1.2rem 2.4rem; }
  .route { height: auto; padding-left: 4px; }
  .route::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(to bottom, var(--spruce), var(--frost)); }
  .stop, .stop.origin, .stop:last-child {
    position: relative;
    left: 0;
    transform: none;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 0 2rem;
    margin-bottom: calc(var(--gap, 0) * 1px);
  }
  .stop + .stop { margin-top: 1.4rem; }
  .stop, .stop.origin, .stop:last-child { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .stop-text { align-items: flex-start; }
  .stop-icon { width: 48px; height: 48px; margin-top: 0; flex: none; }
  .stop::before, .stop.origin::before, .stop:last-child::before { top: 6px; left: 4px; right: auto; margin-left: 0; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .rooms-grid li:first-child { grid-column: 1 / -1; }
  .rooms-grid img { height: 56vw; }
  .rooms-grid li:first-child img { height: 60vw; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; grid-auto-flow: row dense; }
  .mosaic li { grid-column: 1 / -1; grid-row: span 2; }
  .mosaic .m-b, .mosaic .m-e { grid-column: auto; grid-row: span 3; }
  .region-img img { aspect-ratio: 4 / 3; }
  .viewer-figure { padding: 64px 12px 24px; }
  .v-prev, .v-next { top: auto; bottom: 18px; translate: none; }
  .viewer figcaption { flex-direction: column; gap: .2rem; text-align: center; margin-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint-line { animation: none; }
  .hero-img { transform: none; }
}

/* Neige au-dessus de la photo du héros */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Espace entre le panorama et la galerie */
.pano + .gallery { padding-top: clamp(80px, 12vw, 160px); }

/* Avis : la note en très grand, sans carte */
.avis {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding-block: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--frost);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.avis-note {
  display: flex;
  align-items: baseline;
  font-weight: 500;
  line-height: .8;
  letter-spacing: -0.06em;
}
.avis-num { font-size: clamp(8rem, 24vw, 18rem); }
.avis-sur { font-size: clamp(2.6rem, 7vw, 5.5rem); color: var(--lichen); margin-left: .05em; }
.avis-stars { margin-top: 1.4rem; font-size: 1.5rem; letter-spacing: .25em; color: var(--ember); }
.avis-top {
  margin-top: 1.2rem;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.avis-link {
  margin-top: 2rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
}
