/* ==========================================================================
   Les Cimes
   Mobile d'abord. Ordre : jetons, base, composants, sections, mouvement.
   ========================================================================== */

/* Polices servies avec le site : sous-ensemble latin, licence SIL OFL (voir assets/fonts/OFL.txt) */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/piazzolla-900.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/piazzolla-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/geologica-300-600.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-500.woff2") format("woff2"); }

/* 1. Jetons
   ========================================================================== */

:root {
  /* Palette tirée de la photo d'ouverture */
  --nuit: #0c262c;
  --abysse: #071619;
  --sapin: #15373e;
  --chartreuse: #d8e22e;
  --neige: #f2f4ef;
  --givre: #dfe4de;
  --alpenglow: #ff8a5c;
  --braise: #a33810;
  --ardoise: #40545a;
  --brume: #a9bcbb;

  --f-display: "Piazzolla", "Iowan Old Style", Georgia, serif;
  --f-text: "Geologica", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --gutter: clamp(16px, 4.4vw, 64px);
  --head-h: 60px;
  --strip-h: 0px; /* bandeau démo désormais dans le pied de page, plus fixé à l'écran */
  --section-y: clamp(5rem, 12vw, 10.5rem);

  --ease: cubic-bezier(.3, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Coins taillés, comme les facettes de la typographie */
  --chamfer: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));

  /* Crête qui se lève : mêmes sommets au départ et à l'arrivée pour une interpolation propre */
  --ridge-down: polygon(0 100%, 9% 100%, 17% 100%, 28% 100%, 39% 100%, 52% 100%, 62% 100%, 75% 100%, 86% 100%, 100% 100%, 100% 100%, 0 100%);
  --ridge-up: polygon(0 -30%, 9% -48%, 17% -34%, 28% -66%, 39% -42%, 52% -78%, 62% -46%, 75% -62%, 86% -38%, 100% -52%, 100% 100%, 0 100%);

  /* La même crête en négatif : un cache qui remonte et découvre l'image */
  --cover-on: polygon(0 0, 100% 0, 100% 100%, 86% 100%, 75% 100%, 62% 100%, 52% 100%, 39% 100%, 28% 100%, 17% 100%, 9% 100%, 0 100%);
  --cover-off: polygon(0 0, 100% 0, 100% -52%, 86% -38%, 75% -62%, 62% -46%, 52% -78%, 39% -42%, 28% -66%, 17% -34%, 9% -48%, 0 -30%);
}

.theme-nuit,
.theme-abysse {
  --fg: var(--neige);
  --muted: var(--brume);
  --accent: var(--chartreuse);
  --line: rgb(242 244 239 / .2);
  --contour-filter: none;
  --contour-opacity: .07;
}

.theme-nuit { --bg: var(--nuit); }
.theme-abysse { --bg: var(--abysse); }

.theme-chartreuse,
.theme-neige,
.theme-glow {
  --fg: var(--nuit);
  --line: rgb(12 38 44 / .26);
  --contour-filter: invert(1);
  --contour-opacity: .08;
}

.theme-chartreuse { --bg: var(--chartreuse); --muted: #2c4133; --accent: var(--nuit); --ridge-back: #a9b41f; }
.theme-neige { --bg: var(--neige); --muted: var(--ardoise); --accent: var(--braise); --ridge-back: #c5ccc6; }
.theme-glow { --bg: var(--alpenglow); --muted: #3b2118; --accent: var(--abysse); --ridge-back: #cf6a44; }
.theme-nuit { --ridge-back: #1d4750; }
.theme-abysse { --ridge-back: #143239; }

/* 2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

@view-transition { navigation: auto; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--abysse);
  overflow-x: clip;
  scroll-padding-top: calc(var(--head-h) + 8px);
  font-synthesis: none;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--nuit);
  color: var(--neige);
  font: 300 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
}

html:has(.sheet[open]) { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
abbr { text-decoration: none; }
[hidden] { display: none !important; }
small { font-size: .8em; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

main:focus { outline: none; }

::selection { background: var(--chartreuse); color: var(--nuit); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 110;
  top: 8px;
  left: 8px;
  padding: .7rem 1rem;
  background: var(--chartreuse);
  color: var(--nuit);
  font: 500 .875rem/1 var(--f-mono);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
}

/* Sections : aplats francs, courbes de niveau en filigrane */
[data-section] {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.theme-chartreuse,
.theme-neige,
.theme-glow { font-weight: 400; }

.histoire::before,
.carte::before,
.reserver::before,
.infos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/contours.svg") center top / 1600px auto;
  opacity: var(--contour-opacity);
  filter: var(--contour-filter);
  pointer-events: none;
}

[data-section] > * { position: relative; }

/* Transition entre sections : deux lignes de crête qui se décalent au défilement */
[data-section] > .divider {
  position: absolute;
  z-index: 3;
  bottom: calc(100% - 1px);
  left: 50%;
  width: max(100%, 860px);
  height: clamp(84px, 13vw, 190px);
  transform: translateX(-50%);
  pointer-events: none;
}

.divider svg { width: 100%; height: 100%; }
.divider__back { fill: var(--ridge-back); }
.divider__front { fill: var(--bg); }

/* 3. Typographie
   ========================================================================== */

.display {
  font: 900 clamp(3.7rem, 16.6vw, 12rem)/.94 var(--f-display);
  letter-spacing: -.022em;
}

/* La graisse maximale serre les mots : on leur rend un peu d'air */
.display,
.histoire__quote p,
.chapter__title,
.voie__name,
.dish__name,
.tab,
.galerie__end,
.chef__name,
.member__name,
.bpanel__title,
.foot__summit,
.sheet__label,
.brand__name,
.legal h1,
.legal h2 { word-spacing: .09em; }

.display--md { font-size: clamp(3.1rem, 12.4vw, 9.5rem); }

.lead {
  max-width: 34ch;
  font: italic 500 clamp(1.3rem, 2.4vw, 1.85rem)/1.32 var(--f-display);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font: 400 .75rem/1.35 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.peak { flex: none; width: .9em; height: .9em; }

.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .03em;
}

/* Lien souligné qui se trace au survol */
.link {
  position: relative;
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .12em;
  transition: background-size .45s var(--ease);
}

@media (hover: hover) {
  .link:hover { background-size: 0 1px; background-position: 100% 100%; }
}

/* 4. Boutons
   ========================================================================== */

.btn {
  --btn-bg: var(--chartreuse);
  --btn-fg: var(--nuit);
  --btn-hover: var(--neige);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  min-height: 52px;
  padding: .3em 1.5em;
  color: var(--btn-fg);
  font: 500 .8125rem/1.15 var(--f-mono);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--btn-bg);
  clip-path: var(--chamfer);
}

.btn__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-hover);
  clip-path: var(--ridge-down);
  transition: clip-path .55s var(--ease-out);
}

.btn svg {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  transition: transform .45s var(--ease-out);
}

.btn--sm { min-height: 40px; padding-inline: 1.15em; font-size: .75rem; }
.btn--dark { --btn-bg: var(--nuit); --btn-fg: var(--neige); --btn-hover: var(--sapin); }

@media (hover: hover) {
  .btn:hover .btn__bg::after { clip-path: var(--ridge-up); }
  .btn:hover svg { transform: translateX(5px); }
}

.btn:active .btn__bg { filter: brightness(.92); }

/* L'anneau de focus prend la couleur du bouton : celle du texte disparaîtrait sur le fond */
.btn:focus-visible { outline-color: var(--btn-bg); }

/* 5. En-tête
   ========================================================================== */

.head {
  --tone-fg: var(--neige);
  --tone-bg: transparent;
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: calc(var(--head-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--tone-bg);
  color: var(--tone-fg);
  transition: background-color .4s linear, color .4s linear;
}

.head[data-tone="nuit"] { --tone-bg: rgb(12 38 44 / .84); }
.head[data-tone="abysse"] { --tone-bg: rgb(7 22 25 / .84); }
.head[data-tone="chartreuse"] { --tone-bg: rgb(216 226 46 / .9); --tone-fg: var(--nuit); }
.head[data-tone="neige"] { --tone-bg: rgb(242 244 239 / .9); --tone-fg: var(--nuit); }
.head[data-tone="glow"] { --tone-bg: rgb(255 138 92 / .92); --tone-fg: var(--abysse); --mark-facet: var(--neige); }

.head:not([data-tone="none"]) {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  text-decoration: none;
}

.brand__mark { width: 22px; height: 22px; }
.brand__name { font: 900 1.3rem/1 var(--f-display); letter-spacing: -.01em; }

.head__alti {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-inline: auto;
  font: 400 .75rem/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  white-space: nowrap;
}

.head__alti svg { width: .7em; height: .7em; }

.head__nav { display: none; }
.head__cta { display: none; }

.head__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  font: 400 .75rem/1 var(--f-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.head__toggle svg { width: 22px; height: 22px; }

.no-js .head__toggle,
.no-js .head__alti,
.no-js .alti { display: none !important; }

/* Sans JavaScript, l'en-tête ne suit pas les sections : il garde son propre fond */
.no-js .head { --tone-bg: rgb(12 38 44 / .94); }

/* Sur téléphone sans JavaScript, la navigation reste accessible */
.no-js .head__nav {
  display: block;
  margin-left: auto;
  overflow-x: auto;
}

.no-js .head__nav ul { display: flex; gap: 1rem; white-space: nowrap; }

/* 6. Menu plein écran
   ========================================================================== */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--abysse) url("../img/contours.svg") center / 1400px auto;
  background-blend-mode: soft-light;
  color: var(--neige);
  overflow-y: auto;
}

.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: var(--abysse); }

.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--head-h);
}

.sheet__brand { font: 900 1.3rem/1 var(--f-display); }

.sheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.sheet__close svg { width: 26px; height: 26px; }

.sheet nav { flex: 1; display: flex; align-items: center; }
.sheet__list { width: 100%; }

.sheet__list a {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  align-items: baseline;
  gap: .25rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgb(242 244 239 / .16);
  text-decoration: none;
}

.sheet__alt {
  color: var(--chartreuse);
  font: 400 .75rem/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.sheet__label { font: 900 clamp(1.9rem, 9.4vw, 3rem)/1.1 var(--f-display); }

.sheet__foot { padding-top: 1rem; color: var(--brume); font-size: .875rem; }

.motion .sheet[open] .sheet__list li {
  animation: sheet-item .6s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 45ms);
}

@keyframes sheet-item {
  from { opacity: 0; transform: translateY(22px); }
}

/* 7. Altimètre (ordinateur)
   ========================================================================== */

.alti { display: none; }

/* 8. Ouverture
   ========================================================================== */

.hero {
  --frame-w: max(110vw, 110vh);
  --frame-h: calc(var(--frame-w) * 1.25);
  --ridge-y: 47svh;
  --title-size: min(33.5vw, 21svh);
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(#01374b, #03677e 46%, #6b8a92 52%, var(--nuit) 56%);
  color: var(--neige);
}

.hero__stage { position: absolute; inset: 0; }

/* Même photo deux fois : la couche avant est découpée sur la vraie ligne de crête */
.hero__frame {
  position: absolute;
  left: calc(50% - var(--frame-w) * .504);
  top: calc(var(--ridge-y) - var(--frame-h) * .5615);
  width: var(--frame-w);
  height: var(--frame-h);
  will-change: transform;
}

.hero__frame--front {
  z-index: 3;
  clip-path: polygon(0% 58.90%,0.00% 58.90%,0.38% 59.00%,2.81% 58.90%,3.19% 58.95%,3.38% 58.80%,4.31% 58.80%,4.88% 58.65%,5.25% 58.65%,5.44% 58.75%,6.94% 58.75%,8.25% 58.95%,8.81% 58.95%,9.19% 58.75%,9.56% 58.75%,9.94% 58.95%,10.88% 58.95%,11.06% 59.10%,11.81% 59.10%,12.38% 58.95%,13.88% 58.95%,14.06% 59.20%,14.63% 59.20%,14.81% 58.95%,15.56% 58.85%,15.94% 59.00%,16.13% 59.25%,16.69% 59.35%,16.88% 59.50%,17.44% 59.60%,18.38% 59.60%,20.63% 59.30%,21.00% 59.05%,23.44% 59.10%,24.00% 58.95%,24.19% 58.70%,24.56% 58.70%,24.94% 58.60%,25.12% 58.45%,25.50% 58.40%,26.81% 58.50%,27.00% 58.20%,27.19% 58.20%,27.75% 57.70%,28.31% 57.55%,28.69% 57.25%,29.44% 57.20%,30.19% 57.00%,31.13% 57.00%,31.87% 57.15%,33.56% 57.05%,33.75% 57.40%,34.50% 57.40%,34.69% 57.20%,35.06% 57.15%,35.81% 56.75%,36.00% 56.55%,36.38% 56.55%,36.56% 56.70%,37.13% 56.80%,37.31% 57.05%,38.81% 57.10%,39.75% 57.45%,40.31% 57.45%,41.06% 57.55%,41.25% 57.65%,43.50% 57.80%,44.81% 57.65%,45.38% 57.30%,45.56% 57.30%,45.75% 57.15%,46.69% 56.85%,48.56% 56.70%,48.75% 56.60%,49.13% 56.60%,49.31% 56.45%,50.44% 56.15%,50.81% 56.15%,52.13% 56.35%,54.94% 57.35%,56.81% 58.15%,57.19% 58.40%,57.94% 58.50%,58.31% 58.70%,58.50% 59.00%,58.69% 59.10%,60.19% 59.50%,60.75% 59.85%,61.12% 59.90%,61.69% 60.20%,62.06% 60.25%,62.44% 60.50%,62.81% 60.50%,63.19% 60.70%,63.75% 60.80%,64.69% 61.25%,65.06% 61.30%,65.44% 61.55%,65.63% 61.55%,66.75% 62.15%,67.50% 62.45%,67.69% 62.45%,67.88% 62.60%,68.25% 62.65%,69.00% 63.00%,70.31% 63.30%,70.50% 63.45%,71.44% 63.60%,71.63% 63.80%,71.81% 63.80%,72.00% 63.95%,72.75% 64.05%,73.88% 64.60%,74.06% 64.80%,74.25% 64.80%,74.44% 65.10%,76.50% 65.65%,78.00% 66.55%,78.75% 66.80%,80.44% 66.85%,81.19% 66.70%,82.88% 66.60%,84.75% 66.65%,85.13% 66.80%,86.25% 66.95%,87.75% 67.45%,88.31% 67.45%,89.81% 67.80%,91.31% 67.95%,92.63% 68.35%,93.00% 68.35%,94.13% 68.65%,94.50% 68.65%,94.88% 68.85%,96.56% 68.90%,96.94% 68.80%,98.44% 68.80%,98.63% 68.50%,99.19% 68.50%,99.75% 68.65%,99.94% 68.80%,100% 68.80%,100% 100%,0% 100%);
}

.hero__photo { width: 100%; height: 100%; object-fit: cover; }

.hero__title {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: calc(100% - var(--ridge-y) - var(--title-size) * .2);
  color: var(--chartreuse);
  font: 900 var(--title-size)/.84 var(--f-display);
  letter-spacing: -.03em;
  text-align: center;
  will-change: transform;
}

.hero__word { display: block; }
.hero__word > span { display: inline-block; }

/* Fond de vallée qui se fond dans la section suivante */
.hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgb(12 38 44 / .82) 55%, var(--nuit));
  pointer-events: none;
}

.hero__kicker {
  position: absolute;
  z-index: 5;
  top: calc(var(--head-h) + env(safe-area-inset-top) + 10px);
  inset-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-transform: uppercase;
}

.hero__coords { display: none; }

.hero__foot {
  position: absolute;
  z-index: 5;
  inset: auto var(--gutter) calc(var(--strip-h) + 22px + env(safe-area-inset-bottom));
  display: grid;
  gap: 1.1rem;
}

.hero__tag {
  max-width: 24ch;
  font: italic 500 clamp(1.3rem, 5.6vw, 1.9rem)/1.25 var(--f-display);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.5rem;
}

.hero__cue { display: none; }

/* 9. L'histoire
   ========================================================================== */

.histoire { padding-top: var(--section-y); }

.histoire__quote { margin-top: clamp(3.5rem, 9vw, 7rem); }

.histoire__quote p {
  color: var(--chartreuse);
  font: 900 clamp(2.9rem, 10vw, 9rem)/1 var(--f-display);
  letter-spacing: -.02em;
}

.histoire__quote figcaption { margin-top: 1.1rem; color: var(--muted); }

.histoire__intro .lead { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

.chapters {
  --j: 2.6vw;
  margin-top: clamp(4rem, 11vw, 8rem);
}

.chapter__fig {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(0 calc(var(--j) * 5), 7% calc(var(--j) * 2.6), 13% calc(var(--j) * 4.4), 24% calc(var(--j) * .6), 33% calc(var(--j) * 3.8), 41% calc(var(--j) * 2.2), 52% calc(var(--j) * 5.4), 63% calc(var(--j) * 1.6), 72% calc(var(--j) * 4.2), 83% 0, 92% calc(var(--j) * 3.2), 100% calc(var(--j) * 1.6), 100% 100%, 0 100%);
}

.chapter__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.chapter__fig::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgb(7 22 25 / .72));
}

.chapter__year {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: .08em;
  color: var(--chartreuse);
  font: 900 clamp(4.4rem, 23vw, 10.5rem)/1 var(--f-display);
  letter-spacing: -.02em;
}

.chapter__text { padding: 2rem var(--gutter) 4.5rem; }

.chapter__title {
  margin-bottom: 1rem;
  font: 900 clamp(2.5rem, 9vw, 4.75rem)/1 var(--f-display);
  letter-spacing: -.015em;
}

.chapter__text > p:last-child { max-width: 46ch; font-size: 1.0625rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
  padding-block: 1rem clamp(9rem, 22vw, 17rem);
}

.stats dt {
  order: 2;
  color: var(--muted);
  font: 400 .75rem/1.3 var(--f-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.stats dd {
  order: 1;
  font: 900 clamp(3.6rem, 16vw, 8rem)/1 var(--f-display);
  font-variant-numeric: lining-nums;
}

.stats > div { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: .6rem; }

/* 10. La carte
   ========================================================================== */

.carte { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(8rem, 18vw, 14rem); }

.carte__head { display: grid; gap: 1.25rem; }

.voies {
  display: grid;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 2px solid var(--fg);
}

.voie {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .35rem .8rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.voie__grade {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--nuit);
  color: var(--chartreuse);
  font-size: .8125rem;
  font-weight: 500;
  clip-path: var(--chamfer);
}

.voie__name { font: 900 clamp(1.7rem, 6.8vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -.01em; }
.voie__price { font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.voie__desc { grid-column: 2 / -1; font-size: .9375rem; line-height: 1.45; }
.voies__note { margin-top: 1rem; color: var(--muted); }

.menu { margin-top: clamp(3.5rem, 9vw, 7rem); }

.menu__bar {
  display: grid;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--fg);
}

.tabs {
  display: flex;
  gap: clamp(.65rem, 3vw, 2.75rem);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab {
  position: relative;
  flex: none;
  min-height: 48px;
  padding: .1em 0 .35em;
  color: var(--muted);
  font: 900 clamp(1.2rem, 6.5vw, 3.5rem)/1 var(--f-display);
  letter-spacing: -.01em;
  transition: color .3s linear;
}

/* Marque de sommet sous la rubrique active */
.tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: .34em;
  height: .24em;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%) scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .4s var(--ease-out);
}

.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"]::after { transform: translateX(-50%); }

@media (hover: hover) {
  .tab:hover { color: var(--fg); }
}

.tab:focus-visible { outline-offset: -2px; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }

.filter {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: 0 .95em 0 .7em;
  border: 1.5px solid var(--fg);
  font: 400 .8125rem/1 var(--f-mono);
  transition: background-color .25s linear, color .25s linear, opacity .25s linear;
}

.filter__box {
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid currentColor;
}

.filter__box svg {
  width: 100%;
  height: 100%;
  transform: scale(0);
  transition: transform .3s var(--ease-out);
}

.filter[aria-pressed="true"] { background: var(--nuit); color: var(--chartreuse); }
.filter[aria-pressed="true"] svg { transform: none; }

.filter:disabled { opacity: .45; cursor: not-allowed; }
.filter:focus-visible { outline-color: var(--nuit); }

@media (hover: hover) {
  .filter:not(:disabled):hover { background: var(--nuit); color: var(--chartreuse); }
}

.no-js .tabs,
.no-js .filters { display: none; }

.menu__status { min-height: 1.4em; margin-block: .8rem .2rem; color: var(--muted); }

.js .menu__panel { display: none; }
.js .menu__panel.is-active { display: block; }
.menu__panel:focus-visible { outline-offset: 6px; }

.menu__panel-title { font: 900 2rem/1 var(--f-display); margin-block: 2rem .5rem; }
.js .menu__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.dish {
  display: grid;
  grid-template-rows: 1fr;
  border-bottom: 1px solid var(--line);
  transition: grid-template-rows .45s var(--ease), opacity .3s linear, border-color .3s linear;
}

.dish.is-out {
  grid-template-rows: 0fr;
  opacity: 0;
  border-color: transparent;
  visibility: hidden;
  transition: grid-template-rows .45s var(--ease), opacity .3s linear, border-color .3s linear, visibility 0s .45s;
}

.dish__row {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem 1rem;
}

.dish__main {
  padding-top: 1.05rem;
  transition: transform .5s var(--ease-out);
}

@media (hover: hover) {
  .dish:hover .dish__main { transform: translateX(12px); }
}
.dish__name { font: 900 clamp(1.4rem, 5.6vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -.008em; }
.dish__desc { margin-top: .25rem; font-size: .9375rem; line-height: 1.45; }

.dish__price {
  grid-column: 2;
  grid-row: 1;
  padding-top: 1.2rem;
  font: 500 1rem/1.2 var(--f-mono);
  white-space: nowrap;
}

.dish__sep { opacity: .55; }

.dish__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .85rem;
  padding: .3rem 0 1rem;
}

.diet { display: flex; gap: .3rem; }

.diet li {
  padding: .22em .55em .2em;
  background: var(--nuit);
  color: var(--chartreuse);
  font: 400 .6875rem/1.2 var(--f-mono);
}

.allergens { display: flex; flex-wrap: wrap; gap: .2rem; }

.allergen {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.allergen svg { width: 22px; height: 22px; }

/* Infobulle : confort à la souris, le nom reste disponible dans la légende et pour les lecteurs d'écran */
@media (hover: hover) {
  .allergen::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 3;
    bottom: 100%;
    left: 50%;
    padding: .28em .55em;
    background: var(--abysse);
    color: var(--neige);
    font: 400 .6875rem/1.2 var(--f-mono);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .18s linear, transform .25s var(--ease-out);
    pointer-events: none;
  }

  .allergen:hover::after { opacity: 1; transform: translate(-50%, 0); }
}

/* Survol de la légende : les plats concernés ressortent */
.dishes.is-spotting .dish:not(.is-spot) { opacity: .32; }

.menu__law { margin-top: 1.25rem; font-size: .875rem; }

.legend {
  display: grid;
  gap: .9rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.legend__title { text-transform: uppercase; letter-spacing: .07em; }

.legend__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .75rem;
}

.legend__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 30px;
  font-size: .875rem;
}

.legend__list svg { flex: none; width: 22px; height: 22px; }
.legend__note { max-width: 64ch; font-size: .875rem; line-height: 1.5; color: var(--muted); }

.preview { display: none; }

/* 11. La galerie
   ========================================================================== */

/* Téléphone : défilement natif au doigt. Le titre reste fixe au-dessus de la bande. */
.galerie { padding-block: clamp(2.5rem, 6vw, 4rem) calc(clamp(84px, 13vw, 190px) + 1.75rem); }

.galerie__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.galerie__viewport::-webkit-scrollbar { display: none; }
.galerie__viewport:focus-visible { outline-offset: -4px; }

.galerie__track {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1.75rem 14px;
  width: max-content;
  padding-inline: var(--gutter);
}

.galerie__intro {
  grid-column: 1 / -1;
  position: sticky;
  left: var(--gutter);
  width: calc(100vw - 2 * var(--gutter));
}

.galerie__intro .lead { margin-top: 1rem; }

.shots { display: flex; gap: 14px; }

.shot { flex: none; width: 78vw; scroll-snap-align: start; }

.shot__media { aspect-ratio: 4 / 5; overflow: hidden; }

.shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.1s var(--ease-out);
}

/* « scale » et non « transform » : GSAP pilote déjà la translation de l'image */
@media (hover: hover) {
  .shot:hover .shot__media img { scale: 1.05; }
}

.shot figcaption {
  display: grid;
  gap: .1rem;
  margin-top: .8rem;
  font-size: .9375rem;
  line-height: 1.35;
}

.shot__time {
  color: var(--chartreuse);
  font: 900 1.9rem/1 var(--f-display);
  font-variant-numeric: lining-nums;
}

.galerie__outro {
  align-self: center;
  display: grid;
  justify-items: start;
  gap: 1rem;
  width: 78vw;
  padding-left: 1rem;
  scroll-snap-align: start;
}

.galerie__end { font: 900 clamp(3rem, 13vw, 7.5rem)/.98 var(--f-display); letter-spacing: -.02em; }

.galerie__meter {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(100% - 2 * var(--gutter), 1320px);
  margin: 1.6rem auto 0;
  color: var(--muted);
  white-space: nowrap;
}

.galerie__bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
}

.galerie__fill {
  position: absolute;
  inset: 0;
  background: var(--chartreuse);
  transform: scaleX(.02);
  transform-origin: 0 50%;
}

/* 12. La cordée
   ========================================================================== */

.cordee { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(8rem, 18vw, 14rem); }

.cordee__head .lead { margin-top: 1.25rem; }

.chef {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(2.5rem, 7vw, 5.5rem);
}

.chef__fig { aspect-ratio: 4 / 5; overflow: hidden; }
.chef__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease-out);
}

@media (hover: hover) {
  .chef__fig:hover img { scale: 1.035; }
}

.chef__name { font: 900 clamp(2.5rem, 9.6vw, 4.75rem)/1 var(--f-display); letter-spacing: -.015em; }

.chef__quote {
  margin-block: 1.25rem;
  color: var(--braise);
  font: italic 500 clamp(1.4rem, 3vw, 2.25rem)/1.28 var(--f-display);
}

.chef__body > p:last-child { max-width: 48ch; }

.team-wrap { position: relative; margin-top: clamp(3.5rem, 9vw, 7rem); }
.rope { display: none; }

/* Sur téléphone, la corde descend le long des portraits */
.team { position: relative; display: grid; gap: 1.75rem; }

.team::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54px;
  width: 3px;
  background: var(--braise);
}

.member {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
}

.member__fig {
  grid-row: span 3;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--chartreuse);
}

.member__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  mix-blend-mode: multiply;
  transition: filter .6s linear, transform 1s var(--ease-out);
}

@media (hover: hover) {
  .member:hover .member__fig img {
    filter: none;
    mix-blend-mode: normal;
    transform: scale(1.04);
  }
}

.member__name { font: 900 clamp(1.5rem, 6.4vw, 2rem)/1.1 var(--f-display); }
.member__role { margin-top: .3rem; color: var(--ardoise); }
.member__note { margin-top: .45rem; font-size: .9375rem; line-height: 1.45; }

.cordee__note { margin-top: 2.5rem; color: var(--muted); }

/* 13. Réservation
   ========================================================================== */

.reserver { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(8rem, 18vw, 14rem); }

.reserver__grid { display: grid; gap: 2.5rem; }
.reserver__head .lead { margin-top: 1rem; }
.reserver__call { margin-top: 1.25rem; font-size: .9375rem; }

.booking-fallback { padding: 1.25rem; background: var(--neige); color: var(--nuit); font-weight: 400; }
.no-js .booking { display: none; }

.booking {
  --panel-pad: clamp(1rem, 4vw, 2.25rem);
  --fg: var(--nuit);
  --line: rgb(12 38 44 / .22);
  min-width: 0;
  background: var(--neige);
  color: var(--nuit);
  font-weight: 400;
  padding: var(--panel-pad);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.demo-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  padding: .7rem .8rem;
  background: var(--nuit);
  color: var(--neige);
  font-size: .875rem;
  line-height: 1.4;
}

.demo-note svg { width: 20px; height: 20px; color: var(--chartreuse); }
.demo-note strong { color: var(--chartreuse); font-weight: 600; }

.bsteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-block: 1.1rem 1.5rem;
}

.bstep {
  display: grid;
  gap: .15rem;
  width: 100%;
  min-height: 56px;
  padding: .45rem 0 .2rem;
  border-top: 3px solid var(--givre);
  font: 400 .6875rem/1.25 var(--f-mono);
  text-align: left;
  transition: border-color .3s linear;
}

@media (max-width: 359px) {
  .bstep { font-size: .625rem; }
}

.bstep__n { font-weight: 500; }
.bstep__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bstep__value { color: var(--ardoise); word-break: break-word; }

.bstep[aria-current="step"] { border-top-color: var(--nuit); }
.bstep[data-done] { border-top-color: var(--chartreuse); }
.bstep[data-done] .bstep__value { color: var(--nuit); font-weight: 500; }
.bstep:disabled { cursor: default; }

.bpanel__title {
  margin-bottom: 1rem;
  font: 900 clamp(1.75rem, 6.6vw, 2.6rem)/1.08 var(--f-display);
  letter-spacing: -.01em;
}

.bpanel__title:focus { outline: none; }
.bpanel__hint { margin-bottom: 1rem; color: var(--ardoise); }

.motion .bpanel:not([hidden]) { animation: panel-in .5s var(--ease-out) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
}

.guests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.guest {
  min-height: 60px;
  border: 1.5px solid var(--nuit);
  font: 900 clamp(1.7rem, 6.6vw, 2.4rem)/1 var(--f-display);
  font-variant-numeric: lining-nums;
  transition: background-color .2s linear, color .2s linear, transform .3s var(--ease-out);
}

.guest[aria-pressed="true"] { background: var(--nuit); color: var(--chartreuse); }

@media (hover: hover) {
  .guest:hover { background: var(--chartreuse); color: var(--nuit); }
  .guest[aria-pressed="true"]:hover { background: var(--nuit); color: var(--chartreuse); }
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.cal__month { font: 500 .9375rem/1 var(--f-mono); text-transform: capitalize; }

.cal__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: opacity .2s linear;
}

.cal__nav svg { width: 22px; height: 22px; }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }

.cal__grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
}

.cal__grid th {
  padding-block: .35rem;
  color: var(--ardoise);
  font: 400 .75rem/1 var(--f-mono);
}

.cal__grid td { padding: 0; }

.day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 40px;
  font: 500 .9375rem/1 var(--f-mono);
  transition: background-color .18s linear, color .18s linear;
}

.day--open { background: var(--givre); }
.day--full { color: #566a70; text-decoration: line-through; cursor: not-allowed; }
.day--past { color: #7a8a8e; cursor: not-allowed; font-weight: 400; }

.day--closed {
  color: #566a70;
  font-weight: 400;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgb(12 38 44 / .1) 4px 5px);
  cursor: not-allowed;
}

.day--today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  background: currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.day[aria-pressed="true"] { background: var(--nuit); color: var(--chartreuse); }

.guest:focus-visible,
.day:focus-visible,
.slot:focus-visible { outline-color: var(--nuit); }

@media (hover: hover) {
  .day--open:hover { background: var(--chartreuse); }
  .day--open[aria-pressed="true"]:hover { background: var(--nuit); }
}

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin-top: .8rem;
  color: var(--ardoise);
}

.cal__legend li { display: flex; align-items: center; gap: .4rem; }

.dot { width: 12px; height: 12px; }
.dot--open { background: var(--givre); box-shadow: inset 0 0 0 1px rgb(12 38 44 / .3); }
.dot--full { background: linear-gradient(transparent 44%, #566a70 44% 56%, transparent 56%); box-shadow: inset 0 0 0 1px rgb(12 38 44 / .3); }
.dot--closed { background: repeating-linear-gradient(135deg, transparent 0 2px, rgb(12 38 44 / .4) 2px 3px); box-shadow: inset 0 0 0 1px rgb(12 38 44 / .3); }

.slots { display: grid; gap: 1.25rem; }
.slots__title { margin-bottom: .5rem; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

.slots__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.slot {
  min-height: 48px;
  padding: .3rem .2rem;
  border: 1.5px solid var(--nuit);
  font: 500 .875rem/1.15 var(--f-mono);
  transition: background-color .18s linear, color .18s linear;
}

.slot small { display: block; font-size: .6875rem; font-weight: 400; }

.slot:disabled {
  border-color: transparent;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgb(12 38 44 / .08) 4px 5px);
  color: #566a70;
  cursor: not-allowed;
}

.slot[aria-pressed="true"] { background: var(--nuit); color: var(--chartreuse); }

@media (hover: hover) {
  .slot:not(:disabled):hover { background: var(--chartreuse); color: var(--nuit); }
  .slot[aria-pressed="true"]:not(:disabled):hover { background: var(--nuit); color: var(--chartreuse); }
}

.fields { display: grid; gap: 1.1rem; }

.field label {
  display: block;
  margin-bottom: .2rem;
  font: 400 .75rem/1.3 var(--f-mono);
  letter-spacing: .03em;
}

.field__opt { color: var(--ardoise); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: .6rem 0;
  border: 0;
  border-bottom: 2px solid var(--nuit);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  transition: background-color .2s linear, border-color .2s linear;
}

.field textarea { resize: vertical; min-height: 5rem; }
.field input::placeholder { color: #5b6e73; }
.field input:focus,
.field textarea:focus { outline: none; background: var(--givre); box-shadow: 0 2px 0 var(--nuit); }

.field [aria-invalid="true"] { border-bottom-color: var(--braise); }

.field__error {
  margin-top: .3rem;
  color: var(--braise);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.bpanel__submit { margin-top: 1.5rem; }
.bpanel__submit .btn { width: 100%; }

.bback {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  margin-top: .9rem;
  font: 400 .8125rem/1 var(--f-mono);
}

.bback svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .bback:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.bdone__mark { width: 52px; height: 52px; margin-bottom: 1rem; color: var(--nuit); }

.bdone__warn {
  margin-bottom: 1.25rem;
  padding: .75rem .9rem;
  background: var(--nuit);
  color: var(--neige);
  font-size: .9375rem;
  line-height: 1.45;
}

.bdone__warn strong { color: var(--chartreuse); font-weight: 600; }

.bdone__recap { margin-bottom: 1.5rem; border-top: 1px solid var(--line); }

.bdone__recap > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--line);
}

.bdone__recap dt { color: var(--ardoise); font-size: .875rem; }
.bdone__recap dd { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* 14. Avis
   ========================================================================== */

.avis { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(8rem, 18vw, 14rem); }

.avis__head { display: grid; gap: 1.75rem; }

.stamp {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .45em .7em .4em;
  border: 2px solid var(--abysse);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.reviews {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.review figure {
  height: 100%;
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--neige);
  color: var(--nuit);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.review p { font: italic 500 clamp(1.35rem, 5.2vw, 2.1rem)/1.26 var(--f-display); }

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .8rem;
  margin-top: 1.1rem;
  font-size: .875rem;
}

.rate { display: inline-flex; gap: 2px; color: var(--braise); }
.rate svg { width: 13px; height: 13px; }
.rate .is-off { color: #76857f; }

.review__tag {
  margin-left: auto;
  padding: .2em .5em;
  background: var(--nuit);
  color: var(--neige);
  font-size: .6875rem;
}

/* 15. Infos
   ========================================================================== */

.infos { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4rem, 8vw, 7rem); }

.infos__grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.infos__col { min-width: 0; }

.infos__title {
  margin-bottom: .8rem;
  color: var(--chartreuse);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.infos__col .infos__title:not(:first-child) { margin-top: 2.5rem; }

.open-state {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  font-size: .9375rem;
  font-weight: 400;
}

.open-state::before {
  content: "";
  width: .6em;
  height: .6em;
  background: var(--alpenglow);
  transform: rotate(45deg);
}

.open-state[data-open="true"]::before { background: var(--chartreuse); }

.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }

.hours th,
.hours td {
  padding: .5rem .3rem .5rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  text-align: left;
  vertical-align: top;
}

.hours td { font-family: var(--f-mono); font-size: .75rem; line-height: 1.5; }
.hours td + td { padding-left: .5rem; }
.hours tr[aria-current] th,
.hours tr[aria-current] td { color: var(--chartreuse); font-weight: 400; }

.contact { font-size: 1.0625rem; font-style: normal; font-weight: 400; line-height: 1.55; }
.infos__fine { margin-top: .8rem; color: var(--muted); max-width: 44ch; line-height: 1.5; }

.plan { min-width: 0; }

.plan__routes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.route {
  display: grid;
  gap: .05rem;
  min-height: 58px;
  padding: .5rem .55rem;
  border: 1px solid var(--line);
  text-align: left;
  transition: background-color .25s linear, color .25s linear, border-color .25s linear;
}

.route__name { font-size: .8125rem; font-weight: 400; line-height: 1.2; }
.route__time { color: var(--muted); font-size: .6875rem; }

.route[aria-pressed="true"] { background: var(--chartreuse); border-color: var(--chartreuse); color: var(--nuit); }
.route[aria-pressed="true"] .route__time { color: var(--nuit); }
.route:focus-visible { outline-color: var(--chartreuse); }

@media (hover: hover) {
  .route:not([aria-pressed="true"]):hover { border-color: var(--chartreuse); }
}

.plan__text { min-height: 3em; margin-block: .8rem; font-size: .9375rem; line-height: 1.45; font-weight: 400; }

.plan__map { position: relative; background: var(--nuit); }
.plan__map svg { width: 100%; height: auto; }
.plan__fine { position: absolute; right: .6rem; bottom: .5rem; color: var(--muted); font-size: .6875rem; }

.plan__contour { fill: none; stroke: #2b5a63; stroke-width: .8; }
.plan__contour--index { stroke: #3d7682; stroke-width: 1.3; }
.plan__streets path { fill: none; stroke: #173c44; stroke-width: 5; stroke-linecap: round; }
.plan__river { fill: #135a6e; }
.plan__river-name { fill: #c4e0e5; font: italic 500 17px var(--f-display); }
.plan__bridge { fill: none; stroke: var(--neige); stroke-width: 4; }
.plan__tram { fill: none; stroke: var(--brume); stroke-width: 2; stroke-dasharray: 8 6; }
.plan__cable { fill: none; stroke: var(--brume); stroke-width: 1.2; stroke-dasharray: 2 5; }

.plan__route {
  fill: none;
  stroke: var(--alpenglow);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan__route[hidden] { display: none; }

.plan__points circle { fill: var(--nuit); stroke: var(--neige); stroke-width: 2; }
.plan__points text,
.plan__far text { fill: var(--neige); font: 400 14px var(--f-mono); }
.plan__far text { fill: var(--brume); font-size: 13px; }

.plan__home path { fill: var(--chartreuse); }
.plan__dot { fill: var(--nuit); }
.plan__home text { fill: var(--chartreuse); font: 900 22px var(--f-display); }
.plan__pulse { fill: none; stroke: var(--chartreuse); stroke-width: 2; }

/* Sur téléphone, le plan est réduit de moitié : libellés courts, corps doublé */
@media (max-width: 639px) {
  .plan__points text { font-size: 25px; }
  .plan__long,
  .plan__far { display: none; }
  .plan__river-name { font-size: 30px; }
  .plan__home text { font-size: 38px; }
  .plan__route { stroke-width: 6; }
  .plan__fine { position: static; display: block; padding: .3rem .6rem .5rem; text-align: right; }
}

/* 16. Le sommet (pied de page)
   ========================================================================== */

.foot {
  position: relative;
  background: var(--abysse);
  color: var(--nuit);
  font-weight: 400;
}

.foot__ridge {
  position: relative;
  left: 50%;
  width: max(100%, 860px);
  max-width: none;
  height: clamp(110px, 22vw, 320px);
  margin-bottom: -1px;
  fill: var(--chartreuse);
  transform: translateX(-50%);
}

.foot__inner {
  background: var(--chartreuse);
  padding-block: 2rem calc(var(--strip-h) + 2rem + env(safe-area-inset-bottom));
}

.foot__top { display: grid; gap: 2rem; }

.foot__summit {
  font: 900 clamp(3.7rem, 16vw, 12rem)/.92 var(--f-display);
  letter-spacing: -.022em;
}

.foot__down {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 56px;
  text-decoration: none;
}

.foot__down-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--nuit);
  color: var(--chartreuse);
  clip-path: var(--chamfer);
  transition: transform .45s var(--ease-out);
}

.foot__down-icon svg { width: 24px; height: 24px; }

@media (hover: hover) {
  .foot__down:hover .foot__down-icon { transform: translateY(-6px); }
}

.foot__cols {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--nuit);
  font-size: .9375rem;
}

.foot__cols ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot__cols .link { display: inline-block; padding-block: .35rem .15rem; }

/* 17. Éléments flottants
   ========================================================================== */

.fab {
  position: fixed;
  z-index: 50;
  right: var(--gutter);
  bottom: calc(var(--strip-h) + 12px + env(safe-area-inset-bottom));
  transform: translateY(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s linear, transform .4s var(--ease-out), visibility 0s .3s;
}

.fab.is-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s linear, transform .4s var(--ease-out);
}

.fab[data-ink="dark"] { --btn-bg: var(--nuit); --btn-fg: var(--chartreuse); --btn-hover: var(--sapin); }

.demo-strip {
  position: static;
  margin-top: 2rem;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--abysse);
  border-top: 1px solid rgb(242 244 239 / .14);
  color: var(--brume);
  font: 400 clamp(.5625rem, 2.85vw, .6875rem)/1.25 var(--f-mono);
  text-align: center;
  white-space: nowrap;
}

.cursor { display: none; }

/* Mentions légales : une page de lecture, sans mise en scène */
.legal {
  --bg: var(--neige);
  --fg: var(--nuit);
  --muted: var(--ardoise);
  --accent: var(--braise);
  --line: rgb(12 38 44 / .22);
  min-height: 100vh;
  padding-block: calc(var(--head-h) + clamp(2.5rem, 7vw, 5rem)) calc(var(--strip-h) + 4rem);
  background: var(--bg);
  color: var(--fg);
  font-weight: 400;
}

.legal__inner { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.legal h1 { font: 900 clamp(3rem, 12vw, 6.5rem)/.96 var(--f-display); letter-spacing: -.02em; }
.legal__intro { margin-top: 1.5rem; font: italic 500 clamp(1.25rem, 3vw, 1.6rem)/1.35 var(--f-display); }

.legal h2 {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font: 900 clamp(1.5rem, 4vw, 1.9rem)/1.15 var(--f-display);
}

.legal p,
.legal ul { margin-top: .75rem; }
.legal li { padding-block: .15rem; }
.legal a { overflow-wrap: anywhere; }
.legal__credits { columns: 2; column-gap: 2rem; font-size: .9375rem; }
.legal__credits li { break-inside: avoid; }

@media (max-width: 519px) {
  .legal__credits { columns: 1; }
}

.head--plain { --tone-bg: rgb(12 38 44 / .94); }
.head--plain .link { margin-left: auto; font-size: .875rem; }

/* 18. Tablette et ordinateur
   ========================================================================== */

@media (min-aspect-ratio: 1/1) {
  .hero {
    --ridge-y: 53svh;
    --title-size: min(20.4vw, 50svh);
  }

  .hero__title { white-space: nowrap; }
  .hero__word { display: inline-block; margin-right: .1em; }
  .hero__word:last-child { margin-right: 0; }
}

@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hero__tag,
  .hero__actions { grid-column: 1; }

  .hero__cue {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero__coords {
    position: absolute;
    z-index: 5;
    display: block;
    top: calc(var(--head-h) + 28px);
    right: var(--gutter);
    text-align: right;
  }
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .legend__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .guest { aspect-ratio: 1.4; }
  .day { aspect-ratio: 1.5; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
  .bpanel__submit .btn { width: auto; }
  .bsteps { margin-block: 1.4rem 1.75rem; }
  .bstep__label { position: static; width: auto; height: auto; clip-path: none; }
  .bstep { grid-template-columns: auto minmax(0, 1fr); column-gap: .4em; font-size: .75rem; }
  .bstep__value { grid-column: 1 / -1; }
  .dish__row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 1.5rem; }
  .dish__main { padding-block: 1.25rem; }
  .dish__meta { grid-column: 2; grid-row: 1; justify-content: flex-end; padding: 0; }
  .dish__price { grid-column: 3; padding: 0; min-width: 3.4em; text-align: right; }
  .dishes--wine .dish__price { min-width: 7.4em; }
  .shot { width: 52vw; }
  .galerie__outro { width: 52vw; }
}

@media (min-width: 800px) {
  .carte__head,
  .avis__head {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }

  .voies { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .voie {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    padding: 1.5rem 1.5rem 1.75rem;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .voie:first-child { border-left: 0; padding-left: 0; }
  .voie__grade { grid-row: 1; }
  .voie__name { grid-column: 2; grid-row: 1; align-self: center; }
  .voie__desc { grid-column: 1 / -1; grid-row: 2; margin-top: .7rem; }
  .voie__price { grid-column: 1 / -1; grid-row: 3; margin-top: 1rem; font-size: 1.5rem; }

  .menu__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .review:nth-child(even) { margin-top: 3.5rem; }
  .review figure { transition: transform .6s var(--ease-out); }
  .review:nth-child(odd) figure { transform: rotate(-.6deg); }
  .review:nth-child(even) figure { transform: rotate(.5deg); }
  .review:hover figure { transform: none; }

  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  /* Histoire : les images s'empilent en collant, chaque crête recouvre la précédente */
  .chapters {
    --j: 1vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter__fig {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    position: sticky;
    top: calc(var(--j) * -6);
    height: calc(100vh + var(--j) * 6);
    aspect-ratio: auto;
    margin-top: calc(var(--i) * 100vh);
  }

  .chapter__text {
    grid-column: 2;
    grid-row: var(--row);
    min-height: 100vh;
    padding: 34vh clamp(3rem, 8vw, 8rem) 12vh;
  }

  /* Le texte reste en place pendant que son image est à l'écran */
  .chapter__inner { position: sticky; top: 34vh; }
  .chapter__year { bottom: calc(var(--strip-h) + .02em); }

  .histoire__intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .histoire__intro > * { grid-column: 1 / -1; }
  .histoire__intro .lead { grid-column: 7 / -1; }

  .chef {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: clamp(2.5rem, 7vw, 7rem);
  }

  .team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .team::before { display: none; }

  .rope {
    position: absolute;
    display: block;
    z-index: 1;
    top: 0;
    left: calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
    height: 100%;
    max-width: none;
    overflow: visible;
    fill: none;
    stroke: var(--braise);
    stroke-width: 3;
    pointer-events: none;
  }

  .member { position: relative; z-index: 2; display: block; }
  .member:nth-child(1) { margin-top: 2rem; }
  .member:nth-child(2) { margin-top: 9rem; }
  .member:nth-child(3) { margin-top: 0; }
  .member:nth-child(4) { margin-top: 7rem; }
  .member__name { margin-top: 1rem; }

  .infos__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .foot__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .reserver__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .reserver__head { position: sticky; top: calc(var(--head-h) + 3rem); }
  .reserver .display { font-size: clamp(4.5rem, 9.4vw, 9rem); }

  /* Galerie : hauteur pilotée par l'écran */
  .galerie { padding: 0; }

  /* Sans épinglage, la crête suivante ne doit pas mordre sur la galerie */
  .calm .galerie,
  .no-js .galerie { padding-bottom: clamp(84px, 13vw, 190px); }

  .galerie__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    min-height: 620px;
    padding-top: var(--head-h);
  }

  .galerie__viewport { scroll-snap-type: none; scrollbar-width: thin; scrollbar-color: var(--chartreuse) transparent; }
  /* « clip » et non « hidden » : la bande ne doit jamais défiler toute seule au focus */
  .galerie.is-pinned .galerie__viewport { overflow: clip; }

  /* Marge invisible pour la parallaxe interne des images */
  .galerie.is-pinned .shot__media img { width: 116%; max-width: none; margin-left: -8%; }

  .galerie__track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
  .galerie__intro { position: static; flex: none; width: min(52vw, 760px); padding-right: 2rem; }
  .shots { align-items: center; gap: clamp(2rem, 5vw, 6rem); }
  .shot { width: auto; }
  .shot__media { aspect-ratio: 3 / 4; height: 60vh; }
  .shot--wide .shot__media { aspect-ratio: 4 / 3; height: 50vh; }
  .shot--square .shot__media { aspect-ratio: 1; height: 42vh; }
  .shot--high { margin-top: -9vh; }
  .shot--low { margin-top: 9vh; }
  .shot figcaption { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .8rem; }
  .shot__time { font-size: 2.2rem; white-space: nowrap; }
  .galerie__outro { flex: none; width: min(44vw, 620px); padding-left: 0; padding-right: 8vw; }
  .galerie__meter { margin-top: clamp(.75rem, 3vh, 2rem); margin-bottom: calc(var(--strip-h) + 12px); }
}

@media (min-width: 1100px) {
  .head { gap: 1.75rem; }

  .head__alti,
  .head__toggle { display: none; }

  .head__nav { display: block; margin-left: auto; }
  .head__nav ul { display: flex; gap: clamp(1.1rem, 2vw, 2rem); }

  .head__nav a {
    position: relative;
    display: block;
    padding-block: .5rem;
    font-size: .875rem;
    font-weight: 400;
    text-decoration: none;
  }

  /* Soulignement discret + marque de l'étape en cours */
  .head__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .2rem;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform .4s var(--ease-out);
  }

  .head__nav a:hover::after,
  .head__nav a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }

  .head__cta { display: inline-flex; }
  .head .btn { --btn-bg: var(--tone-cta, var(--chartreuse)); --btn-fg: var(--tone-cta-fg, var(--nuit)); }
  .head[data-tone="chartreuse"],
  .head[data-tone="neige"],
  .head[data-tone="glow"] { --tone-cta: var(--nuit); --tone-cta-fg: var(--chartreuse); }

  .fab { display: none; }

  /* Altimètre : une bande graduée qui défile derrière un repère fixe */
  .alti {
    --alti-fg: var(--neige);
    position: fixed;
    z-index: 40;
    right: 10px;
    top: 50%;
    display: flex;
    gap: 6px;
    align-items: center;
    height: min(46vh, 400px);
    color: var(--alti-fg);
    transform: translateY(-50%);
    transition: color .4s linear;
    pointer-events: none;
  }

  .alti[data-ink="dark"] { --alti-fg: var(--nuit); }

  .alti__read {
    display: flex;
    gap: .9em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font: 400 .6875rem/1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .alti__value { font-weight: 500; }

  .alti__tape {
    position: relative;
    order: 2;
    width: 16px;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  }

  .alti__tape::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 2px;
    background: var(--alpenglow);
    transform: translateY(-50%);
  }

  .alti[data-ink="dark"] .alti__tape::after { background: var(--braise); }

  .alti__scale {
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 1200px;
    margin-top: -1200px;
    background:
      repeating-linear-gradient(to top, currentColor 0 1px, transparent 1px 40px) right / 14px 100% no-repeat,
      repeating-linear-gradient(to top, currentColor 0 1px, transparent 1px 8px) right / 7px 100% no-repeat;
    will-change: transform;
  }

  /* Aperçu d'ingrédient qui suit le curseur */
  .has-preview .preview {
    position: fixed;
    z-index: 45;
    top: 0;
    left: 0;
    display: block;
    width: clamp(190px, 18vw, 270px);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s linear, visibility 0s .25s;
    will-change: transform;
  }

  .has-preview .preview.is-on {
    visibility: visible;
    opacity: 1;
    transition: opacity .25s linear;
  }

  .preview img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    clip-path: polygon(0 7%, 12% 3%, 24% 7%, 38% 0, 52% 6%, 66% 2%, 82% 7%, 100% 3%, 100% 100%, 0 100%);
  }

  .preview__label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: .35em .6em;
    background: var(--nuit);
    color: var(--chartreuse);
    font-size: .6875rem;
  }

  /* Curseur : flèche de navigation orientée selon le déplacement */
  .has-cursor,
  .has-cursor * { cursor: none !important; }

  .has-cursor input,
  .has-cursor textarea { cursor: text !important; }

  .has-cursor .cursor {
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    display: block;
    width: 0;
    height: 0;
    pointer-events: none;
    will-change: transform;
  }

  .cursor__arrow {
    position: absolute;
    top: -11px;
    left: -11px;
    width: 22px;
    height: 22px;
    fill: var(--chartreuse);
    stroke: var(--abysse);
    stroke-width: 1.6;
    stroke-linejoin: round;
    transition: opacity .2s linear, scale .25s var(--ease-out);
  }

  .cursor__ring {
    position: absolute;
    top: -44px;
    left: -44px;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    background: var(--chartreuse);
    border-radius: 50%;
    color: var(--nuit);
    transform: scale(0);
    transition: transform .4s var(--ease-out);
  }

  .cursor__label { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }

  .cursor[data-state="link"] .cursor__arrow { scale: 1.35; }
  .cursor[data-state="label"] .cursor__arrow { opacity: 0; }
  .cursor[data-state="label"] .cursor__ring { transform: scale(1); }
  .cursor[data-state="text"],
  .cursor[data-hidden] { visibility: hidden; }
}

/* 19. Hauteurs réduites (téléphone en paysage, petits portables)
   ========================================================================== */

@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .hero__tag { display: none; }
}

/* 20. Mouvement
   Révélations en CSS : elles existent sans GSAP, et se calment seules.
   ========================================================================== */

/* Intro du titre : les lettres se lèvent derrière la crête */
.motion .hero__word > span { transform: translateY(190%); }

.motion.ready .hero__word > span {
  transform: none;
  transition: transform 1.5s var(--ease-out) calc(var(--i) * 75ms + 150ms);
}

.motion .hero__foot,
.motion .hero__kicker,
.motion .hero__coords { opacity: 0; }

.motion.ready .hero__foot,
.motion.ready .hero__kicker,
.motion.ready .hero__coords {
  opacity: 1;
  transition: opacity .9s linear .95s;
}

.calm .hero__title,
.calm .hero__foot,
.calm .hero__kicker,
.calm .hero__coords { opacity: 0; }

.calm.ready .hero__title,
.calm.ready .hero__foot,
.calm.ready .hero__kicker,
.calm.ready .hero__coords {
  opacity: 1;
  transition: opacity .4s linear;
}

/* Trait qui monte sur le repère de défilement */
.hero__cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgb(242 244 239 / .3);
}

.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chartreuse);
}

.motion .hero__cue-line::after { animation: cue 2.2s var(--ease) infinite; }

@keyframes cue {
  from { transform: translateY(100%); }
  to { transform: translateY(-100%); }
}

.js .reveal {
  opacity: 0;
  transition: opacity .4s linear;
}

.js .reveal.is-in { opacity: 1; }

.motion .reveal {
  transform: translateY(26px);
  transition: opacity .8s linear, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.motion .reveal.is-in { transform: none; }

/* Titres : lettres qui montent une à une */
.split__word {
  display: inline-block;
  margin-block: -.18em;
  padding-block: .18em;
  overflow: clip;
  white-space: nowrap;
}

.split__char { display: inline-block; }

.motion [data-split] .split__char {
  transform: translateY(112%);
  transition: transform 1s var(--ease-out) calc(var(--c) * 26ms);
}

.motion [data-split].is-in .split__char { transform: none; }

.calm [data-split] { opacity: 0; transition: opacity .4s linear; }
.calm [data-split].is-in { opacity: 1; }

/* Images : un cache de la couleur du fond remonte en crête. L'image n'est jamais
   masquée elle-même, sinon son chargement différé ne se déclencherait pas. */
.ridge-in { position: relative; }

.motion .ridge-in::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -1px;
  background: var(--bg);
  clip-path: var(--cover-on);
  pointer-events: none;
}

.motion .ridge-in.is-in::after {
  clip-path: var(--cover-off);
  transition: clip-path 1.5s var(--ease-out);
}

.calm .ridge-in img { opacity: 0; transition: opacity .4s linear; }
.calm .ridge-in.is-in img { opacity: 1; }

/* Plats : apparition échelonnée au changement d'onglet */
.motion .menu__panel.is-entering .dish {
  animation: dish-in .55s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 45ms);
}

@keyframes dish-in {
  from { opacity: 0; transform: translateY(16px); }
}

/* Itinéraire qui se trace sur le plan */
.motion .plan__route.is-drawing {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw 1.2s var(--ease) forwards;
}

@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}

.motion .plan__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s var(--ease-out) infinite;
}

@keyframes pulse {
  from { opacity: .9; transform: scale(.6); }
  to { opacity: 0; transform: scale(2.6); }
}

/* Corde : tracée au défilement par GSAP, entière sinon */
.motion .rope path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Version calme : aucun déplacement, seulement de courts fondus */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Défilement fluide des ancres, seulement si le mouvement est accepté */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 21. Contraste forcé et impression
   ========================================================================== */

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .btn__bg { display: none; }
  .tab[aria-selected="true"],
  .filter[aria-pressed="true"],
  .day[aria-pressed="true"],
  .slot[aria-pressed="true"],
  .guest[aria-pressed="true"],
  .route[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .hero__frame--front { clip-path: none; display: none; }
}

@media print {
  .head, .alti, .fab, .cursor, .sheet, .divider, .hero__stage, .galerie, .booking, .plan { display: none !important; }
  .js .menu__panel { display: block; }
  .js .reveal, .motion [data-split] .split__char { opacity: 1; transform: none; }
  body, [data-section] { background: #fff; color: #000; }
}


/* Curseur : flèche normale sur les textes, main sur les éléments cliquables */
html, body { cursor: default; }
a, button, summary, label, select,
[role="button"], [role="tab"], [data-cursor],
input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"] { cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea { cursor: text; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
