/* Chalet Marvel · Samoëns — feuille de style unique, écrite pour ce site. */

@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #14110e;
  --night-2: #1d1914;
  --paper: #f5f0e7;
  --paper-2: #ece4d6;
  --snow: #fbf8f2;
  --ink: #221d17;
  --muted: #6d6458;
  --line: rgba(34, 29, 23, .14);
  --line-light: rgba(251, 248, 242, .18);
  --accent: #c0813f;          /* ambre des fenêtres éclairées, l'hiver */
  --accent-ink: #1a1208;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
html[data-season="ete"] { --accent: #3f9aa3; --accent-ink: #061a1c; }  /* bleu piscine, l'été */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-feature-settings: "lnum" 1; font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--accent); transition: color .8s var(--ease); }
p { margin: 0 0 1.1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--snow); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font: 600 .74rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.4rem; transition: color .8s var(--ease);
}

/* Saisons : n'affiche que le contenu de la saison active */
html[data-season="hiver"] .only-ete,
html[data-season="ete"] .only-hiver { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.7rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  transition: background .8s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--snow); box-shadow: inset 0 0 0 1px rgba(251,248,242,.5); }
.btn-ghost:hover { background: rgba(251,248,242,.1); box-shadow: inset 0 0 0 1px var(--snow); }
.btn-small { padding: .7rem 1.2rem; font-size: .85rem; }

.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-btn { background: none; border: 0; padding: 0 0 .2rem; border-bottom: 1px solid currentColor; font-weight: 600; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem var(--pad); color: var(--snow);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.nav.solid { background: rgba(245, 240, 231, .9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); padding-block: .75rem; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 600 1.45rem/1 var(--serif); letter-spacing: .02em; }
.brand svg { width: 34px; height: 27px; }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .85; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--snow); overflow: hidden; background: var(--night); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 9s linear; }
.hero-img--hiver { object-position: 50% 60%; }
.hero-img--ete { object-position: 45% 50%; }
html[data-season="hiver"] .hero-img--hiver,
html[data-season="ete"] .hero-img--ete { opacity: 1; transform: scale(1); }
.hero-shade { background:
  linear-gradient(180deg, rgba(20,17,14,.55) 0%, rgba(20,17,14,0) 22%),
  linear-gradient(0deg, rgba(20,17,14,.88) 0%, rgba(20,17,14,.35) 38%, rgba(20,17,14,0) 65%),
  linear-gradient(90deg, rgba(20,17,14,.45) 0%, rgba(20,17,14,0) 60%); }
.hero-inner { position: relative; padding: 0 var(--pad) clamp(8rem, 17vh, 11rem); max-width: 60rem; }
.hero .eyebrow { color: var(--snow); opacity: .85; }
.hero h1 { font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: .86; letter-spacing: -.025em; margin-bottom: 1.6rem; }
.hero h1 em { color: inherit; }
.hero .h1-kicker { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34rem; opacity: .92; min-height: 3.4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.season-switch {
  position: absolute; left: var(--pad); bottom: 2.2rem; display: flex; gap: .25rem; padding: .3rem;
  border-radius: 999px; background: rgba(20,17,14,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.season-switch button { display: flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--snow); padding: .55rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 500; transition: background .4s var(--ease), color .4s; }
.season-switch svg { width: 17px; height: 17px; }
.season-switch [aria-pressed="true"] { background: var(--snow); color: var(--ink); }

.rating-chip {
  position: absolute; right: var(--pad); bottom: 2.2rem; display: flex; align-items: center; gap: .3rem;
  text-decoration: none; padding: .7rem 1.1rem .7rem 1.2rem; border-radius: 18px;
  background: rgba(20,17,14,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-light);
  transition: background .3s;
}
.rating-chip:hover { background: rgba(20,17,14,.55); }
.rating-chip strong { font: 500 2.3rem/1 var(--serif); }
.rating-chip > span:not(.rating-text) { opacity: .7; align-self: flex-end; margin-bottom: .35rem; font-size: .85rem; }
.rating-text { margin-left: .8rem; padding-left: .9rem; border-left: 1px solid var(--line-light); font-size: .85rem; line-height: 1.35; font-weight: 600; }
.rating-text small { font-weight: 400; opacity: .75; }

.scroll-cue { position: absolute; left: 50%; bottom: 2.4rem; width: 26px; height: 42px; margin-left: -13px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px rgba(251,248,242,.6); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--snow); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Chiffres ---------- */
.facts { background: var(--night); color: var(--snow); padding: clamp(2.5rem, 5vw, 3.6rem) var(--pad); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); display: grid; grid-template-columns: repeat(6, 1fr); }
.facts li { display: flex; flex-direction: column; gap: .35rem; padding: 0 1.2rem; border-left: 1px solid var(--line-light); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b, .big-score, .score-bars b, .d-val, .practical dd, .rating-chip strong, .bc-name { font-feature-settings: "lnum" 1; }
.facts b { font: 500 clamp(2.4rem, 3.8vw, 3.4rem)/1 var(--serif); }
.facts span { font-size: .82rem; opacity: .7; line-height: 1.35; }

/* ---------- Le chalet ---------- */
.story { max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding: clamp(5rem, 11vw, 9.5rem) var(--pad); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.story h2 { margin-bottom: 2rem; }
.story-text > p:not(.eyebrow) { color: #463e34; max-width: 36rem; }
.name-note { margin-top: 2.4rem; padding: 1.4rem 1.6rem; border-left: 2px solid var(--accent); background: var(--paper-2); font: italic 500 1.35rem/1.4 var(--serif); color: var(--ink); transition: border-color .8s var(--ease); }
.name-note-mark { display: block; font: 600 .72rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.story-media { position: relative; padding-bottom: 5rem; }
.ph { margin: 0; overflow: hidden; border-radius: 4px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-float { position: absolute; width: 44%; aspect-ratio: 2 / 3; left: -14%; bottom: 0; box-shadow: 0 30px 60px -20px rgba(20,17,14,.45); border: 8px solid var(--paper); }

/* ---------- Saisons ---------- */
.seasons { background: var(--paper-2); padding: clamp(5rem, 10vw, 8.5rem) var(--pad); }
.seasons-head { max-width: var(--maxw); margin: 0 auto 3.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem 3rem; }
.seasons-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.season-tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.season-tabs button { border: 0; background: none; padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .4s var(--ease), color .4s; }
.season-tabs [aria-pressed="true"] { background: var(--ink); color: var(--snow); }
.season-panel { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; animation: fadeUp .7s var(--ease); }
.season-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.season-photo img { width: 100%; height: 100%; object-fit: cover; }
.season-copy > p { font-size: 1.12rem; color: #3b342b; }
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line); position: relative; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.35rem; width: .7rem; height: 1px; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Têtes de section ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto 3.2rem; }
.section-head h2 { max-width: 17ch; }
.section-sub { color: var(--muted); max-width: 40rem; margin-top: 1.4rem; }

/* ---------- Galerie ---------- */
.gallery { padding: clamp(5rem, 10vw, 8.5rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: .7rem; }
.tile { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: 3px; background: var(--paper-2); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,17,14,.35), transparent 40%); opacity: 0; transition: opacity .5s; }
.tile:hover::after { opacity: 1; }
.t-wide { grid-column: span 2; grid-row: span 2; }
.t-tall { grid-row: span 2; }
.t-long { grid-column: span 2; }
.gallery-more { max-width: var(--maxw); margin: 2rem auto 0; text-align: right; }

/* ---------- Chambres ---------- */
.rooms { background: var(--snow); padding: clamp(5rem, 10vw, 8.5rem) var(--pad); }
.levels { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); }
.level { display: grid; grid-template-columns: 13rem 1fr 1fr; gap: 1rem 2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); align-items: center; }
.level:last-child { border-bottom: 1px solid var(--line); }
.level-name { font: italic 500 1.6rem/1.1 var(--serif); color: var(--muted); grid-row: span 2; align-self: start; padding-top: .4rem; }
.room { display: flex; gap: 1.2rem; align-items: center; }
.room img { width: 118px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; flex: none; }
.room h3 { font-size: 1.55rem; margin-bottom: .25rem; }
.room p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Équipements ---------- */
.amenities { padding: clamp(5rem, 10vw, 8.5rem) var(--pad); }
.amenities .section-head h2 { max-width: 22ch; }
.amen-grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.amen-grid li { padding: 2rem 1.6rem 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; transition: background .4s; }
.amen-grid li:hover { background: var(--paper-2); }
.amen-grid svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; transition: stroke .8s var(--ease); }
.amen-grid b { font-weight: 600; font-size: 1rem; }
.amen-grid span { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Avis ---------- */
.reviews { background: var(--night); color: var(--snow); padding: clamp(5rem, 10vw, 8rem) max(var(--pad), calc((100% - var(--maxw)) / 2)); display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem clamp(3rem, 8vw, 8rem); align-items: center; }
.big-score { font: 500 clamp(6rem, 13vw, 10rem)/.85 var(--serif); margin: 0 0 1.2rem; letter-spacing: -.03em; }
.big-score small { font-size: .3em; opacity: .55; letter-spacing: 0; margin-left: .3rem; }
.score-label { font: italic 500 1.6rem/1.2 var(--serif); margin-bottom: .5rem; }
.score-sub { opacity: .65; font-size: .92rem; }
.score-bars { list-style: none; padding: 0; margin: 0; width: 100%; }
.score-bars li { display: grid; grid-template-columns: 11rem 1fr 2.5rem; align-items: center; gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--line-light); font-size: .92rem; }
.score-bars i { height: 2px; background: var(--line-light); position: relative; overflow: hidden; }
.score-bars i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease), background .8s; }
.score-bars.in i::after { transform: scaleX(var(--v)); }
.score-bars b { font: 500 1.3rem/1 var(--serif); text-align: right; }
.reviews .link-arrow { grid-column: 2; justify-self: start; }

/* ---------- Situation ---------- */
.where { max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.where h2 { margin-bottom: 1.8rem; }
.where-text p:not(.eyebrow) { color: #463e34; max-width: 32rem; margin-bottom: 2rem; }
.distances { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.distances::before { content: ""; position: absolute; left: 4px; top: .9rem; bottom: .9rem; border-left: 1px dashed var(--muted); opacity: .6; }
.distances li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.distances li::before { content: ""; position: absolute; left: calc(-1.6rem + 0px); top: 1.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent); }
.distances li:first-child::before { background: var(--accent); }
.d-val { font: 500 1.7rem/1 var(--serif); }
.d-what { color: #463e34; font-size: .95rem; }

/* ---------- Réserver ---------- */
.book { position: relative; color: var(--snow); padding: clamp(6rem, 12vw, 10rem) var(--pad); overflow: hidden; background: var(--night); }
.book-bg { position: absolute; inset: 0; }
.book-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.8); }
.book-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(20,17,14,.25), rgba(20,17,14,.92) 75%); }
.book-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.book h2 { max-width: 20ch; margin-bottom: 1.4rem; }
.book-sub { opacity: .78; max-width: 36rem; }
.book-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 3.2rem 0 3.5rem; }
.book-card {
  display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem 2.1rem; text-decoration: none; border-radius: 6px;
  background: rgba(251,248,242,.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-light); transition: background .4s var(--ease), transform .4s var(--ease), box-shadow .4s;
}
.book-card:hover { background: rgba(251,248,242,.13); transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(0,0,0,.7); }
.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bc-name { font: 500 2.3rem/1 var(--serif); }
.bc-badge { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); }
.bc-text { opacity: .75; font-size: .95rem; }
.bc-go { display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; margin-top: .4rem; padding: .9rem 1.4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .92rem; transition: background .8s var(--ease); }
.bc-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.book-card:hover .bc-go svg { transform: translateX(4px); }
.practical { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-light); }
.practical div { padding: 1.4rem 1.2rem 0 0; }
.practical dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-bottom: .4rem; }
.practical dd { margin: 0; font: 500 1.3rem/1.25 var(--serif); }

/* ---------- Pied de page ---------- */
.foot { background: var(--night); color: rgba(251,248,242,.7); padding: 3rem var(--pad) 3.5rem; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 1.5rem 3rem; align-items: center; font-size: .82rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-brand svg { width: 38px; height: 30px; color: var(--snow); flex: none; }
.foot-brand p, .foot-legal { margin: 0; line-height: 1.55; }
.foot-brand b { font: 600 1.25rem/1 var(--serif); color: var(--snow); }

/* ---------- Barre de réservation mobile ---------- */
.book-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(14,12,10,.96); color: var(--snow); }
.lightbox[open] { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; align-items: center; animation: lbIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(14,12,10,.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { font-size: .9rem; opacity: .75; text-align: center; padding: 0 1rem; }
.lightbox button { background: none; border: 0; color: var(--snow); font-size: 2.6rem; line-height: 1; opacity: .7; height: 100%; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: .8rem; right: 1.2rem; height: auto !important; font-size: 2.4rem !important; z-index: 2; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.3s; }
.js .hero .reveal:nth-child(2) { transition-delay: .12s; }
.js .hero .reveal:nth-child(3) { transition-delay: .24s; }
.js .hero .reveal:nth-child(4) { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .facts li:nth-child(4) { border-left: 0; padding-left: 0; }
  .amen-grid { grid-template-columns: repeat(2, 1fr); }
  .level { grid-template-columns: 1fr 1fr; }
  .level-name { grid-column: 1 / -1; grid-row: auto; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .story, .season-panel, .where, .reviews { grid-template-columns: 1fr; }
  .story-media { padding: 0 0 4rem 18%; }
  .ph-float { left: 0; }
  .reviews .link-arrow { grid-column: 1; }
  .seasons-head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .book-cards { grid-template-columns: 1fr; }
  .practical { grid-template-columns: 1fr 1fr; }
  .rating-chip { display: none; }
  .scroll-cue { display: none; }
  .season-switch { left: 50%; transform: translateX(-50%); bottom: 1.6rem; }
  .hero-inner { padding-bottom: 6.5rem; }
  .hero-img--ete { object-position: 82% 50%; }
  .hero-img--hiver { object-position: 42% 60%; }
  .book-bar {
    position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .55rem .55rem 1.1rem; border-radius: 999px; font-size: .85rem;
    background: rgba(20,17,14,.88); color: var(--snow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .book-bar.show { transform: none; }
  .foot { padding-bottom: 6.5rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 0 0 0 1rem !important; border-left: 1px solid var(--line-light) !important; }
  .level { grid-template-columns: 1fr; }
  .room img { width: 96px; }
  .score-bars li { grid-template-columns: 8rem 1fr 2.2rem; gap: .8rem; }
  .distances li { grid-template-columns: 5.2rem 1fr; }
  .lightbox[open] { grid-template-columns: 2.6rem 1fr 2.6rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .bc-go { white-space: nowrap; padding: .85rem 1.1rem; font-size: .86rem; }
  .book-card { padding: 1.6rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
