/* BMC Food : direction « Nuit dorée » (noir chaud, ambre du menu, crème) */
:root {
  --ink: #0b0a08;
  --ink-2: #14120e;
  --night: #0d1322;
  --amber: #f6a51e;
  --amber-hi: #ffc04a;
  --amber-lo: #c97c08;
  --cream: #f4ebdd;
  --cream-2: #e9dcc6;
  --text: #f4ebdd;
  --muted: rgba(244, 235, 221, 0.66);
  --line: rgba(244, 235, 221, 0.14);
  --ink-muted: rgba(11, 10, 8, 0.62);
  --ink-line: rgba(11, 10, 8, 0.14);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Grain photographique discret sur tout le site */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
}
.h2 {
  margin: 0;
  font-weight: 800; font-variation-settings: "wdth" 72;
  font-size: clamp(44px, 7vw, 112px); line-height: .92; letter-spacing: -.02em; text-transform: uppercase;
}
.h2 em { text-transform: none; color: var(--amber); font-size: 1.04em; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--amber { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); }
.btn--amber:hover { color: var(--amber); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Écran d'intro ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--ink);
  transition: clip-path 1.1s var(--ease), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader__logo {
  width: 112px; padding: 12px; border-radius: 22px; background: #fff;
  animation: logoIn 1.1s var(--ease) both;
}
.loader__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.loader__hint { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.is-ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes logoIn { from { opacity: 0; transform: scale(.82) rotate(-4deg); filter: blur(8px); } }

/* ---------- En-tête ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, color .4s, padding .4s, backdrop-filter .4s;
}
.nav { transition: background .4s, color .4s, padding .4s, backdrop-filter .4s, transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
/* Au-dessus du vol : pas de fond plein, seulement un léger voile pour garder le logo lisible. */
.nav.is-over-flight.is-scrolled { background: linear-gradient(180deg, rgba(5,5,4,.45), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-scrolled { padding-block: 12px; background: rgba(11, 10, 8, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav[data-on="light"] { color: var(--ink); }
.nav[data-on="light"].is-scrolled { background: rgba(244, 235, 221, .78); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo { display: block; width: 46px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav__logo--lg { width: 84px; padding: 8px; border-radius: 18px; }
.nav__word { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.nav__word em { color: var(--amber); text-transform: none; font-size: 1.12em; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { position: relative; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; opacity: .86; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav[data-on="light"] .btn--amber:hover { color: var(--amber); }

/* ---------- Visite (scène fixe) ---------- */
.flight { position: relative; background: var(--ink); }
.flight__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flight__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight__layers { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.layer-scene { position: absolute; inset: 0; will-change: opacity; }
.layer-scene__bg, .layer-scene__fg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform; backface-visibility: hidden;
}
.layer-scene__fg { filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.flight__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(5, 5, 4, .55) 100%),
    linear-gradient(180deg, rgba(5,5,4,.45) 0%, transparent 22%, transparent 55%, rgba(5,5,4,.75) 100%);
}
.chapter {
  position: absolute; z-index: 2;
  bottom: clamp(110px, 16vh, 180px);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  will-change: opacity, transform;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.chapter--left { left: var(--gutter); }
.chapter--right { right: var(--gutter); text-align: right; }
.chapter--right .chapter__eyebrow { justify-content: flex-end; }
.chapter--center { left: 50%; margin-left: max(calc(-320px), calc(-50% + var(--gutter))); text-align: center; }
.chapter--center .chapter__eyebrow { justify-content: center; }
.chapter__eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-hi);
}
.chapter__index { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(246,165,30,.55); border-radius: 50%; letter-spacing: 0; font-size: 11px; }
.chapter__title {
  margin: 0 0 20px;
  font-weight: 800; font-variation-settings: "wdth" 70;
  font-size: clamp(52px, 8.4vw, 136px); line-height: .88; letter-spacing: -.025em; text-transform: uppercase;
}
.chapter__title em { text-transform: none; color: var(--amber); font-size: 1.06em; letter-spacing: -.01em; }
.chapter__text { margin: 0 0 28px; max-width: 470px; font-size: clamp(16px, 1.25vw, 19px); color: rgba(244,235,221,.84); }
.chapter--right .chapter__text { margin-left: auto; }
.chapter--center .chapter__text { margin-inline: auto; }

.hud {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 30px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hud__row { display: flex; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.hud__index { color: var(--amber); font-weight: 700; }
.hud__time { margin-left: auto; font-variant-numeric: tabular-nums; }
.hud__track { height: 1px; background: var(--line); }
.hud__track span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.flight__skip {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .3s;
}
.flight__skip:hover { color: var(--amber); }
.flight__placeholder {
  position: absolute; z-index: 3; top: 92px; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px dashed rgba(246,165,30,.6);
  background: rgba(11,10,8,.6); color: var(--amber-hi); font-size: 12px; letter-spacing: .06em; white-space: nowrap;
}

/* ---------- Visite allégée ---------- */
.lite { padding-top: 0; }
.lite__chapter { position: relative; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 56px; overflow: hidden; }
.lite__media { position: absolute; inset: 0; margin: 0; }
.lite__media img { width: 100%; height: 100%; object-fit: cover; }
.lite__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,4,.35) 0%, rgba(5,5,4,.1) 35%, rgba(5,5,4,.88) 100%); }
.lite__body { position: relative; }
.lite .chapter__title { font-size: clamp(46px, 13vw, 80px); }

/* ---------- Savoir-faire ---------- */
.craft { position: relative; padding: 0 0 clamp(90px, 12vw, 170px); background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-bottom: clamp(70px, 9vw, 130px); }
.marquee__track { display: flex; width: max-content; gap: 40px; animation: marquee 38s linear infinite; }
.marquee__track span { font-weight: 800; font-variation-settings: "wdth" 120; font-size: clamp(34px, 5vw, 72px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244,235,221,.4); }
.marquee__track span:nth-of-type(3n+2) { color: var(--amber); -webkit-text-stroke: 0; }
.marquee__track i { font-style: normal; color: var(--amber); align-self: center; font-size: 22px; }
@keyframes marquee { to { transform: translateX(-33.333%); } }
.section-head { margin-bottom: clamp(50px, 7vw, 90px); }
.craft__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.craft__item { border-top: 1px solid var(--line); padding-top: 26px; }
.craft__n { display: block; font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--amber); }
.craft__t { margin: 18px 0 10px; font-weight: 800; font-variation-settings: "wdth" 80; font-size: 30px; text-transform: uppercase; letter-spacing: .01em; }
.craft__item p { margin: 0; color: var(--muted); max-width: 34ch; }

/* ---------- Carte (section claire) ---------- */
.menu { background: var(--cream); color: var(--ink); padding: clamp(90px, 11vw, 160px) 0; color-scheme: light; }
.menu .eyebrow { color: var(--amber-lo); }
.menu .h2 em { color: var(--amber-lo); }
.menu__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.menu__aside { position: sticky; top: 110px; }
.menu__aside .h2 { font-size: clamp(44px, 5.2vw, 92px); }
.menu__lead { margin: 22px 0 28px; color: var(--ink-muted); max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink-line); background: transparent;
  font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.menu__count { margin: 18px 0 0; font-size: 13px; color: var(--ink-muted); letter-spacing: .04em; }
.menu__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(28px, 4vw, 60px); }
.cat__head { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.cat__name { margin: 0; font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(28px, 2.6vw, 38px); text-transform: uppercase; line-height: 1; }
.cat[data-cat="giga"] .cat__name { color: var(--amber-lo); }
.cat__note { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-muted); }
.cat__list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--ink-line); }
.item__name { font-weight: 600; font-size: 16px; min-width: 0; }
.item__dots { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(11,10,8,.35); transform: translateY(-4px); }
.item__price { font-weight: 800; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; border: 1px solid var(--ink-line); color: var(--ink-muted); }
.pill--gratine { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.pill--giga, .pill--xl { background: var(--ink); border-color: var(--ink); color: var(--amber-hi); }

/* ---------- Infos ---------- */
.infos { padding: clamp(100px, 12vw, 180px) 0; background: radial-gradient(90% 70% at 80% 0%, rgba(246,165,30,.12), transparent 60%), var(--ink); }
.infos__address { margin: 0 0 clamp(50px, 6vw, 90px); font-weight: 800; font-variation-settings: "wdth" 66; font-size: clamp(56px, 11vw, 190px); line-height: .86; letter-spacing: -.03em; text-transform: uppercase; }
.infos__address em { color: var(--amber); text-transform: none; }
.infos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 30px; border-top: 1px solid var(--line); margin-bottom: 56px; }
.infos__k { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.infos__v { margin: 0; font-size: 20px; }
.infos__phones { list-style: none; padding: 0; }
.infos__phones a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.infos__phones a:hover { background-size: 100% 1px; }

/* ---------- Pied de page ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--ink); }
.footer__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__note { flex: 1; min-width: 240px; margin: 0; font-size: 13px; color: var(--muted); max-width: 60ch; }
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }
.noscript { padding: 120px var(--gutter); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.craft__item.reveal:nth-child(2) { transition-delay: .12s; }
.craft__item.reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1200px) {
  .menu__cats { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* Mobile : le texte passe en bas pour laisser voir les personnages. */
  .chapter, .chapter--right, .chapter--center {
    left: 16px; right: 16px; width: auto; margin-left: 0; bottom: 78px; text-align: left;
  }
  .chapter--right .chapter__eyebrow, .chapter--center .chapter__eyebrow { justify-content: flex-start; }
  .chapter--right .chapter__text, .chapter--center .chapter__text { margin-left: 0; }
  .chapter__title { font-size: clamp(36px, 10.5vw, 54px); margin-bottom: 12px; }
  .chapter__text { font-size: 15px; margin-bottom: 18px; }
  .chapter__eyebrow { margin-bottom: 12px; }
  .chapter .btn { padding: 13px 20px; font-size: 14px; }
  .flight__shade {
    background:
      linear-gradient(180deg, rgba(5,5,4,.35) 0%, transparent 18%, transparent 42%, rgba(5,5,4,.92) 100%);
  }
  .flight__skip { display: none; }
  .hud { bottom: 22px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__aside { position: static; }
  .craft__list { grid-template-columns: 1fr; }
  .infos__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav__word { display: none; }
  .nav__logo { width: 42px; }
  .item { flex-wrap: wrap; }
  .item__name { flex: 1 1 60%; }
  .item__dots { display: none; }
  .item__price { margin-left: auto; }
  .chip { padding: 9px 13px; }
  .infos__v { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader { display: none; }
}
