/* =========================================================
   A Casa di u Nebbiu : feuille de style du site public (v2)
   Une soirée dans le Nebbiu : vert nuit de la salle, or des
   bougies, parchemin de la carte, violet de l'enseigne.
   Typographie Renaissance italienne : Casa Serif (Palatino)
   et Casa Script (chancelière), hébergées avec le site.
   ========================================================= */

@font-face { font-family: "Casa Serif"; src: url("../fonts/casa-serif-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Casa Serif"; src: url("../fonts/casa-serif-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Casa Serif"; src: url("../fonts/casa-serif-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Casa Serif"; src: url("../fonts/casa-serif-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Casa Script"; src: url("../fonts/casa-script.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
/* Repli quasi identique (famille Palatino / Chancery) pendant le chargement : pas de décalage */
@font-face { font-family: "Casa Serif Repli"; src: local("Palatino Linotype"), local("Palatino"), local("Book Antiqua"), local("URW Palladio L"), local("P052"); }
@font-face { font-family: "Casa Script Repli"; src: local("Apple Chancery"), local("URW Chancery L"), local("Z003"), local("Monotype Corsiva"); }

:root {
  --night: #111915;
  --night-2: #16201A;
  --night-3: #1E2A23;
  --paper: #EFE7D6;
  --paper-2: #E6DCC6;
  --paper-3: #F6F0E3;
  --ink: #1B241F;
  --cream: #F1EADB;
  --muted-d: rgba(241, 234, 219, .7);
  --muted-l: #5D5A4B;
  --gold: #D2A65A;
  --gold-2: #E6C27E;
  --gold-ink: #8C6A2A;
  --gold-line: rgba(210, 166, 90, .4);
  --viola: #5A4A80;
  --viola-deep: #211A31;
  --slate: #232826;
  --line-l: rgba(27, 36, 31, .16);
  --line-d: rgba(241, 234, 219, .12);

  --f-serif: "Casa Serif", "Casa Serif Repli", Georgia, serif;
  --f-script: "Casa Script", "Casa Script Repli", cursive;

  --hdr: 78px;
  --bar: 0px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 960px) {
  :root { --hdr: 64px; --bar: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 14px);
  scrollbar-gutter: stable; background: var(--night);
}
body {
  margin: 0; overflow-x: clip;
  font: 400 1.16rem/1.65 var(--f-serif); color: var(--cream); background: var(--night);
  font-kerning: normal; font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: .7rem 1rem; background: var(--gold); color: var(--night); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; }
.orn { display: block; width: 160px; height: 24px; color: var(--gold); }
.orn svg { width: 100%; height: 100%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .55rem 1.6rem;
  border: 1px solid transparent; border-radius: 2px;
  font: 400 1.05rem/1 var(--f-serif); font-variant: small-caps; letter-spacing: .08em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.btn .ico { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: .4rem 1.1rem; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--line { border-color: var(--gold-line); color: var(--cream); background: rgba(17, 25, 21, .2); }
.btn--line:hover { border-color: var(--gold); background: rgba(210, 166, 90, .12); }
.sec--paper .btn--line, .hours .btn--line { color: var(--ink); border-color: rgba(27, 36, 31, .35); background: transparent; }
.iconbtn {
  width: 50px; height: 50px; border-radius: 50%; flex: none; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gold-line); background: transparent; color: var(--gold); cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s;
}
.iconbtn .ico { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--gold); color: var(--night); }
.iconbtn:active { transform: scale(.95); }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- En-tête ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); color: var(--cream); transition: background-color .4s, box-shadow .4s; }
.hdr.is-solid { background: rgba(17, 25, 21, .9); box-shadow: 0 1px 0 var(--line-d); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.hdr.is-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; color: inherit; }
.brand__logo { width: 36px; height: 36px; flex: none; color: var(--gold); }
.brand__logo svg, .brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__logo--img { width: auto; max-width: 150px; }
.brand__name { font: 400 1.75rem/1.2 var(--f-script); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .1em .2em .1em 0; }
.nav { margin-left: auto; display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); }
.nav a { position: relative; padding: .4rem 0; font-size: 1.06rem; font-variant: small-caps; letter-spacing: .08em; text-decoration: none; color: var(--muted-d); transition: color .25s; }
.nav a:hover, .nav a.is-active { color: var(--cream); }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease); }
.nav a.is-active::after { transform: scale(1); }
.hdr__call { margin-left: .5rem; }
.burger { display: none; position: relative; width: 48px; height: 48px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; right: 19px; }
.burger span:nth-child(3) { top: 31px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav, .hdr__call { display: none; }
  .burger { display: block; }
  .brand__name { font-size: 1.6rem; }
  .brand__logo { width: 32px; height: 32px; }
}

/* ---------- Menu mobile ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--hdr) + 32px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--night) var(--grain); color: var(--cream);
  visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav.is-open { visibility: visible; opacity: 1; transition: opacity .35s; }
.mnav__links { display: flex; flex-direction: column; perspective: 700px; }
.mnav__links a {
  display: block; padding: .5rem 0; border-bottom: 1px solid var(--line-d);
  font: italic 400 clamp(1.8rem, 7vw, 2.4rem)/1.25 var(--f-serif); text-decoration: none;
  transform-origin: 50% 0; transform: rotateX(-75deg); opacity: 0;
  transition: transform .6s var(--ease), opacity .45s; transition-delay: calc(var(--i, 0) * 50ms);
}
.mnav.is-open .mnav__links a { transform: none; opacity: 1; }
.mnav__call { width: 100%; }

/* ---------- Annonce ---------- */
.ribbon {
  position: fixed; z-index: 40; top: calc(var(--hdr) + 12px); left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), 680px); transform: translateX(-50%);
  display: flex; align-items: center; gap: .75rem; padding: .65rem .65rem .65rem 1.1rem;
  background: var(--viola-deep); color: var(--cream); border: 1px solid var(--gold-line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.ribbon[hidden] { display: none; }
.ribbon--alert { background: #6E2318; border-color: rgba(255, 190, 170, .35); }
.ribbon__txt { margin: 0; flex: 1; font-style: italic; line-height: 1.35; }
.ribbon__close { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; background: rgba(241, 234, 219, .1); cursor: pointer; }
.ribbon__close .ico { width: 16px; height: 16px; }

/* ---------- Accueil : paysage 3D ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1200px;
  background: #18121F; color: var(--cream);
}
.hero__fallback, .hero__canvas, .hero__mist, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback svg { width: 100%; height: 100%; }
.hero__canvas { opacity: 0; transition: opacity 1.6s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__mist { pointer-events: none; overflow: hidden; }
.hero__mist span {
  position: absolute; left: -60%; width: 220%; height: 34%; bottom: 24%;
  background:
    radial-gradient(40% 50% at 20% 50%, rgba(236, 222, 206, .34), transparent 70%),
    radial-gradient(35% 45% at 55% 60%, rgba(236, 222, 206, .26), transparent 70%),
    radial-gradient(30% 40% at 85% 45%, rgba(236, 222, 206, .3), transparent 70%);
  filter: blur(8px); animation: mist 80s linear infinite; will-change: transform;
}
.hero__mist span + span { bottom: 10%; height: 30%; opacity: .7; animation-duration: 120s; animation-direction: reverse; }
@keyframes mist { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, 0, 0); } }
.hero__shade {
  background:
    radial-gradient(60% 46% at 50% 56%, rgba(10, 14, 12, .55), rgba(10, 14, 12, 0) 75%),
    linear-gradient(to top, rgba(17, 25, 21, 1) 0%, rgba(17, 25, 21, .5) 22%, rgba(17, 25, 21, 0) 48%),
    linear-gradient(to bottom, rgba(12, 10, 16, .55) 0%, rgba(12, 10, 16, 0) 22%);
}
.hero__frame {
  position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--hdr) + 6px) clamp(10px, 2.4vw, 30px) calc(clamp(10px, 2.4vw, 30px) + var(--bar));
  border: 1px solid rgba(210, 166, 90, .3);
}
.hero__frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(210, 166, 90, .14); }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding-top: max(calc(var(--hdr) + 36px), calc(50svh - 290px)); padding-bottom: calc(40px + var(--bar));
}
.status {
  display: inline-flex; align-items: center; gap: .55rem; height: 34px; margin: 0 0 1.4rem; padding: 0 .95rem;
  border: 1px solid var(--gold-line); background: rgba(12, 16, 14, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .98rem; font-style: italic; white-space: nowrap;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #9A9C8C; }
.status.is-open .status__dot { background: #9CCB78; box-shadow: 0 0 10px #9CCB78; }
.status.is-closed .status__dot { background: #E46A55; box-shadow: 0 0 10px #E46A55; }
.hero__title {
  margin: 0; font: 400 clamp(3.6rem, 1.6rem + 7.6vw, 8.8rem)/1 var(--f-script);
  height: 2.1em; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45); perspective: 900px;
}
.hero__title .l { display: block; white-space: nowrap; padding: 0 .2em; transform-origin: 50% 100%; }
.js .hero__title .l { animation: write 1.8s var(--ease) both; }
.js .hero__title .l2 { animation-delay: .5s; }
@keyframes write {
  from { clip-path: inset(-30% 100% -45% -12%); transform: rotateX(32deg) translateY(.1em); opacity: .2; }
  to { clip-path: inset(-30% -12% -45% -12%); transform: none; opacity: 1; }
}
.hero__orn { margin: 1.1rem 0 1rem; }
.js .hero__orn { animation: fadeUp 1.2s 1.1s var(--ease) both; }
.hero__tagline { margin: 0; max-width: 34ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.js .hero__tagline, .js .hero__cta { animation: fadeUp 1.2s 1.3s var(--ease) both; }
.hero__types { margin: 1.6rem 0 0; font-size: .98rem; color: var(--muted-d); font-variant: small-caps; letter-spacing: .06em; max-width: 52ch; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__types { display: none; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(84px, 6vw + 48px, 150px); overflow-x: clip; }
.sec--night { background: var(--night); }
.sec--night2 { background: var(--night-2); }
.sec--night::after, .sec--night2::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--paper::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.sec > * { position: relative; z-index: 1; }
.sec--clip { overflow: hidden; }
.sh { text-align: center; margin-bottom: clamp(36px, 4.5vw, 64px); }
.sh .h2-fr { margin-inline: auto; }
.h2 { margin: 0; font: italic 400 clamp(2.8rem, 1.7rem + 3.6vw, 5rem)/1.05 var(--f-serif); letter-spacing: -.01em; color: var(--cream); }
.sec--paper .h2 { color: var(--ink); }
.h2-fr { margin: .7rem 0 0; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); font-variant: small-caps; letter-spacing: .1em; color: var(--gold); }
.sec--paper .h2-fr { color: var(--gold-ink); }
.h2-fr::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: .8rem; vertical-align: .32em; background: currentColor; opacity: .7; }
.sh .h2-fr::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: .8rem; vertical-align: .32em; background: currentColor; opacity: .7; }
.h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font: italic 400 1.6rem/1.2 var(--f-serif); }
.h3 .ico { color: var(--gold); width: 1em; height: 1em; }
.lead { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.55; }

/* ---------- La maison ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.about .h2-fr { margin-bottom: 2rem; }
.about__text p:not(.h2-fr):not(.lead) { color: var(--muted-d); }
.about__where { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.6rem; font-style: italic; color: var(--gold-2) !important; }
.about__where .ico { margin-top: .25em; }
.photo { margin: 0; perspective: 1200px; padding-right: 3%; }
.photo__tilt { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg)); transition: transform .8s var(--ease); }
.photo__tilt::before { content: ""; position: absolute; inset: -18px; border: 1px solid var(--gold-line); transform: translateZ(-60px); }
.photo__frame { position: relative; overflow: hidden; aspect-ratio: 1400 / 794; background: var(--night-3); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo__cap { margin-top: 2rem; text-align: right; font: 400 1.5rem/1.2 var(--f-script); color: var(--gold-2); }
.services {
  list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  border-top: 1px solid var(--line-d);
}
.services li { display: flex; align-items: center; gap: .9rem; padding: 1.15rem .4rem; border-bottom: 1px solid var(--line-d); line-height: 1.3; }
.services .ico { width: 30px; height: 30px; color: var(--gold); }
.services .ico svg { stroke-width: 1.2; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .photo__tilt { --ry: -4deg; --rx: 2deg; }
}

/* ---------- Les trois moments ---------- */
.day { position: relative; }
.day__arc { position: absolute; left: 0; top: 8px; width: 100%; height: 160px; color: var(--gold-ink); pointer-events: none; }
.day__sunball {
  position: absolute; left: 0; top: 0; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFF2CF, #E6B75E 60%, #C88B2C);
  box-shadow: 0 0 0 6px rgba(230, 183, 94, .18), 0 0 30px 6px rgba(230, 183, 94, .45);
  will-change: transform; pointer-events: none;
}
.day__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day__item { padding-inline: clamp(12px, 2.2vw, 32px); text-align: center; }
.day__head { position: relative; height: 180px; }
.day__sun {
  position: absolute; left: 50%; top: var(--y, 0); width: 68px; height: 68px; margin-left: -34px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper-3); color: var(--gold-ink); border: 1px solid rgba(140, 106, 42, .45);
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.day__sun svg { width: 36px; height: 36px; stroke-width: 1.3; }
.day__item.is-lit .day__sun { background: var(--ink); color: var(--gold-2); box-shadow: 0 12px 26px -12px rgba(27, 36, 31, .7); }
.day__item:nth-child(1) .day__sun, .day__item:nth-child(3) .day__sun { --y: 56px; }
.day__time { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; font-size: 1.2rem; font-style: italic; color: var(--gold-ink); max-width: none; }
.day__co { margin: .2rem auto 0; font: 400 2.5rem/1.15 var(--f-script); color: var(--ink); max-width: none; }
.day__fr { margin: .1rem auto .7rem; font-weight: 400; font-size: 1.05rem; font-variant: small-caps; letter-spacing: .1em; color: var(--gold-ink); max-width: none; }
.day__txt { margin: 0 auto; max-width: 32ch; color: var(--muted-l); }
@media (max-width: 760px) {
  .day__arc { display: none; }
  .day__sunball { left: 34px; }
  .day__list { grid-template-columns: 1fr; gap: 2rem; }
  .day__list::before { content: ""; position: absolute; left: 33px; top: 34px; bottom: 34px; border-left: 1px dashed rgba(140, 106, 42, .6); }
  .day__item { display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 1.2rem; padding: 0; text-align: left; }
  .day__head { height: auto; grid-row: span 4; }
  .day__sun { position: relative; left: 0; top: 0 !important; margin: 0; }
  .day__time { position: static; margin-top: .5rem; text-align: center; }
  .day__co { margin: 0; font-size: 2.2rem; }
  .day__fr, .day__txt { margin-left: 0; }
}

/* ---------- Ardoise ---------- */
.sec--lamp { background: radial-gradient(42% 60% at 70% 30%, rgba(230, 183, 94, .14), transparent 70%), var(--night); }
.ardoise { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.ardoise .h2-fr { margin-bottom: 1.8rem; }
.ardoise .lead { color: var(--muted-d); }
.ardoise .btn { margin-top: .8rem; }
.board-scene { perspective: 1200px; display: flex; justify-content: center; }
.board {
  position: relative; width: min(100%, 540px); padding-top: 74px;
  transform-origin: 50% 8px; transform-style: preserve-3d;
  transform: rotate(var(--swing, 0deg)) rotateX(var(--bx, 0deg)) rotateY(var(--by, 0deg));
}
.board__strings { position: absolute; top: 6px; left: 10%; width: 80%; height: 72px; }
.board__nail { position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F1E3C2, #8C6A2A 70%); box-shadow: 0 3px 5px rgba(0, 0, 0, .6); }
.board__frame { padding: 15px; border-radius: 6px; background: linear-gradient(135deg, #6E4529 0%, #4A2D18 40%, #6A4126 70%, #4A2D18 100%); box-shadow: 0 60px 80px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .35); }
.board__slate {
  min-height: 280px; padding: clamp(22px, 4vw, 40px); border-radius: 3px;
  background:
    radial-gradient(60% 40% at 25% 20%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(50% 35% at 80% 85%, rgba(255, 255, 255, .05), transparent 70%),
    var(--slate);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .6);
  color: #EDEAE2; font-family: var(--f-script);
  text-shadow: 0 0 1px rgba(237, 234, 226, .6), 0 0 6px rgba(237, 234, 226, .12);
}
.board__date { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.2; opacity: .75; }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.board__list li { display: flex; align-items: baseline; gap: .6rem; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); line-height: 1.15; }
.board__list .n { flex: 0 1 auto; min-width: 52%; overflow-wrap: anywhere; }
.board__list .d { flex: 1 0 1.4rem; border-bottom: 1.5px dotted rgba(237, 234, 226, .38); transform: translateY(-.25em); }
.board__list .p { flex: 0 1 auto; max-width: 44%; text-align: right; color: #F0D18A; }
.board__empty { font-size: 1.6rem; opacity: .85; }
.board__sign { margin: 1.5rem 0 0 auto; text-align: right; font-size: 1.7rem; opacity: .85; }
@media (max-width: 860px) { .ardoise { grid-template-columns: 1fr; } }

/* ---------- Spécialités : carrousel 3D ---------- */
.ring { --card-w: 290px; --card-h: 400px; }
.ring__stage { position: relative; height: calc(var(--card-h) + 70px); perspective: 1500px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring__stage.is-drag { cursor: grabbing; }
.ring__track { position: absolute; left: 50%; top: 50%; width: var(--card-w); height: var(--card-h); margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2); padding: 0; list-style: none; transform-style: preserve-3d; will-change: transform; }
.ring__card {
  position: absolute; inset: 0; display: flex; flex-direction: column; text-align: center;
  padding: 12px 12px 24px; background: linear-gradient(180deg, #1F2B24, #18221C);
  border: 1px solid var(--gold-line); box-shadow: 0 40px 60px -36px rgba(0, 0, 0, .9);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.ring__card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(210, 166, 90, .14); pointer-events: none; }
.ring__art { position: relative; height: 196px; flex: none; display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, rgba(210, 166, 90, .1), transparent 70%); }
.ring__art svg { width: 82%; height: 82%; }
.ring__art svg * { fill: none !important; stroke: var(--gold) !important; stroke-width: 1.5px !important; }
.ring__art img { width: 100%; height: 100%; object-fit: cover; }
.ring__card h3 { margin: 1.1rem .6rem .45rem; font: italic 400 1.5rem/1.2 var(--f-serif); color: var(--cream); }
.ring__card p { margin: 0 .8rem; font-size: 1.02rem; line-height: 1.5; color: var(--muted-d); }
.ring__ctrl { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: .4rem; }
.ring__count { margin: 0; min-width: 4.5ch; text-align: center; font-style: italic; color: var(--gold); font-variant-numeric: lining-nums; }
.ring--flat .ring__stage { height: auto; perspective: none; cursor: default; }
.ring--flat .ring__track { position: static; margin: 0 auto; width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, var(--card-w))); justify-content: center; gap: 20px; transform: none !important; padding-inline: var(--gutter); }
.ring--flat .ring__card { position: relative; height: var(--card-h); transform: none !important; opacity: 1 !important; }
.ring--flat .ring__ctrl { display: none; }
@media (max-width: 560px) {
  .ring { --card-w: 240px; --card-h: 372px; }
  .ring__art { height: 166px; }
}

/* ---------- Carte ---------- */
.motto { margin: -1.2rem auto clamp(30px, 4vw, 48px); text-align: center; }
.motto blockquote { margin: 0; font: 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem)/1.25 var(--f-script); color: var(--ink); }
.motto figcaption { margin-top: .3rem; font-size: .98rem; font-variant: small-caps; letter-spacing: .1em; color: var(--muted-l); }
.chips { position: sticky; top: var(--hdr); z-index: 20; height: 60px; background: rgba(239, 231, 214, .95); border-block: 1px solid var(--line-l); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chips__in { height: 100%; display: flex; align-items: center; justify-content: safe center; gap: .2rem; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.chips__in::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 .9rem; font-size: 1.04rem; font-variant: small-caps; letter-spacing: .07em; text-decoration: none; white-space: nowrap; color: var(--muted-l); scroll-snap-align: center; position: relative; transition: color .25s; }
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); }
.chip::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 1px; background: var(--gold-ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.chip.is-active::after { transform: scaleX(1); }
.menu-card {
  position: relative; margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 76px);
  background: var(--paper-3); box-shadow: 0 30px 70px -40px rgba(27, 36, 31, .55);
  outline: 1px solid rgba(140, 106, 42, .45); outline-offset: -10px;
}
.menu-card::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(140, 106, 42, .2); pointer-events: none; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin: 0 0 1rem; padding: 0; font-size: .98rem; font-style: italic; color: var(--muted-l); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(140, 106, 42, .45); color: var(--gold-ink); }
.tag svg { width: 13px; height: 13px; }
.cat { padding-block: clamp(30px, 4vw, 52px); scroll-margin-top: calc(var(--hdr) + 72px); }
.cat + .cat { border-top: 1px solid var(--line-l); }
.cat__head { text-align: center; margin-bottom: clamp(20px, 3vw, 34px); }
.cat__co { margin: 0 auto; font: 400 clamp(2rem, 1.6rem + 1.2vw, 2.7rem)/1.15 var(--f-script); color: var(--ink); max-width: none; }
.cat__title { margin: .25rem 0 0; font-weight: 400; font-size: 1.1rem; font-variant: small-caps; letter-spacing: .14em; color: var(--gold-ink); }
.cat__note { margin: .7rem auto 0; font-size: 1.02rem; font-style: italic; color: var(--muted-l); max-width: 56ch; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem clamp(32px, 5vw, 72px); }
.items--one { grid-template-columns: minmax(0, 560px); justify-content: center; }
.item__row { display: flex; align-items: baseline; gap: .5rem; }
.item__name { flex: 0 1 auto; min-width: 0; font-size: 1.14rem; line-height: 1.35; color: var(--ink); }
.item__tags { display: inline-flex; gap: .2rem; margin-left: .4rem; vertical-align: -.25em; }
.item__tags .tag { width: 19px; height: 19px; }
.item__tags .tag svg { width: 11px; height: 11px; }
.item__dots { flex: 1 0 1rem; border-bottom: 1px dotted rgba(27, 36, 31, .4); transform: translateY(-.32em); }
.item__price { flex: none; font-size: 1.14rem; white-space: nowrap; color: var(--ink); font-feature-settings: "kern", "onum", "pnum"; }
.item__desc { margin: .15rem 0 0; font-size: 1rem; line-height: 1.45; font-style: italic; color: var(--muted-l); }
.item.is-out .item__name { text-decoration: line-through; opacity: .55; }
.item__out { display: inline-block; margin-left: .45rem; padding: 0 .45rem; border: 1px solid #A3382A; color: #A3382A; font-size: .82rem; font-variant: small-caps; letter-spacing: .06em; vertical-align: .12em; }
.menu__foot { margin-top: clamp(20px, 3vw, 36px); padding-top: 1.4rem; border-top: 1px solid var(--line-l); text-align: center; font-size: .95rem; font-style: italic; color: var(--muted-l); }
.menu__foot p { max-width: 80ch; margin: 0 auto .5rem; }
@media (max-width: 760px) {
  .items { grid-template-columns: 1fr; }
  .chips { height: 56px; }
  .chips__in { justify-content: flex-start; }
}

/* ---------- Photos : éventail 3D ---------- */
.fan { position: relative; }
.fan__stage { position: relative; list-style: none; margin: 0 auto; padding: 0; height: clamp(440px, 46vw, 600px); max-width: 1320px; perspective: 1600px; transform-style: preserve-3d; }
.print { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; will-change: transform; }
.print__btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 10px 10px 46px; border: 0; cursor: zoom-in;
  background: #F4EFE4; color: var(--ink); text-align: center;
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.print__btn:hover, .print__btn:focus-visible { transform: translateZ(50px) scale(1.03); box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .9); }
.print__img { display: block; width: 100%; height: 100%; overflow: hidden; background: #D8CFBD; }
.print__img img, .print__img svg { width: 100%; height: 100%; object-fit: cover; }
.print__cap { position: absolute; left: 10px; right: 10px; bottom: 9px; font: 400 1.2rem/1.2 var(--f-script); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan__more { text-align: center; margin-top: 1rem; }
@media (max-width: 900px) {
  .fan__stage { height: auto; perspective: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding-inline: var(--gutter); }
  .print { position: relative; left: auto; top: auto; margin: 0; width: auto; height: auto; align-self: start; transform: rotate(calc(var(--rot, 0deg) * .5)) !important; }
  .print.is-wide { grid-column: span 2; }
  .print__btn { height: auto; padding: 7px 7px 36px; }
  .print__img { aspect-ratio: var(--ar, 1); height: auto; }
  .print__cap { font-size: 1.05rem; bottom: 7px; }
}

/* ---------- Infos ---------- */
.infos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3.5vw, 48px); align-items: stretch; }
.hours { padding: clamp(24px, 3.4vw, 44px); background: var(--paper-3); outline: 1px solid rgba(140, 106, 42, .35); outline-offset: -8px; }
.hours .h3 .ico { color: var(--gold-ink); }
.hours__table { width: 100%; border-collapse: collapse; font-feature-settings: "kern", "onum", "pnum"; }
.hours__table tr { border-bottom: 1px dotted rgba(27, 36, 31, .3); }
.hours__table tr:last-child { border-bottom: 0; }
.hours__table th, .hours__table td { padding: .7rem 0; vertical-align: top; }
.hours__table th { text-align: left; font-weight: 400; }
.hours__table td { text-align: right; }
.hours__table .is-today th, .hours__table .is-today td { color: var(--gold-ink); font-weight: 700; }
.hours__table .is-closed td { font-style: italic; color: var(--muted-l); }
.today { display: inline-block; margin-left: .55rem; font-size: .85rem; font-weight: 400; font-style: italic; color: var(--gold-ink); }
.hours__note { margin: 1.2rem 0 0; font-size: 1rem; font-style: italic; color: var(--muted-l); }
.place { overflow: hidden; background: var(--night-2); color: var(--cream); display: flex; flex-direction: column; }
.place__art { aspect-ratio: 600 / 240; flex: none; }
.place__art svg { width: 100%; height: 100%; }
.place__body { padding: clamp(24px, 3.4vw, 44px); }
.place__addr { font-style: normal; font-size: 1.2rem; line-height: 1.55; }
.place__addr strong { display: block; font: 400 1.7rem/1.25 var(--f-script); color: var(--gold-2); margin-bottom: .2rem; }
.place__addr span { display: block; color: var(--muted-d); font-style: italic; font-size: 1.05rem; }
.place__btns { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.6rem; }
.sec--paper .place .btn--line { color: var(--cream); border-color: var(--gold-line); background: transparent; }
.sec--paper .place .btn--line:hover { border-color: var(--gold); background: rgba(210, 166, 90, .12); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-d); }
.links a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; font-style: italic; text-decoration: none; color: var(--muted-d); transition: color .25s; }
.links a:hover { color: var(--gold-2); }
.links .ico { width: 14px; height: 14px; opacity: .7; }
@media (max-width: 860px) { .infos { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.ftr { position: relative; background: var(--viola-deep); color: var(--cream); padding: clamp(64px, 7vw, 110px) 0 calc(40px + var(--bar) + env(safe-area-inset-bottom)); border-top: 1px solid var(--gold-line); }
.ftr::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .45; mix-blend-mode: overlay; pointer-events: none; }
.ftr__in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2.4rem; }
.ftr__logo { display: block; width: 52px; height: 52px; color: var(--gold); }
.ftr__logo svg, .ftr__logo img { width: 100%; height: 100%; object-fit: contain; }
.ftr__name { margin: .6rem 0 0; font: 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1.15 var(--f-script); }
.ftr__bye { margin: .2rem 0 0; font-style: italic; color: var(--muted-d); }
.ftr__cols { text-align: right; }
.ftr__cols p { margin: 0 0 .4rem; max-width: none; color: var(--muted-d); }
.ftr__tel { font-size: 1.3rem; text-decoration: none; color: var(--cream); }
.ftr__small { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1.4rem; margin-top: 1rem !important; font-size: 1rem; }
.ftr__admin { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1.1rem; border: 1px solid var(--gold-line); text-decoration: none; font-variant: small-caps; letter-spacing: .08em; color: var(--cream); transition: background-color .25s, border-color .25s; }
.ftr__admin:hover { background: rgba(210, 166, 90, .12); border-color: var(--gold); }
.ftr__admin .ico { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 640px) { .ftr__cols { text-align: left; } .ftr__small { justify-content: flex-start; } }

/* ---------- Barre d'actions mobile ---------- */
.bar { display: none; }
@media (max-width: 960px) {
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(17, 25, 21, .97); color: var(--cream); border-top: 1px solid var(--gold-line);
  }
  .bar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; font-size: .95rem; font-variant: small-caps; letter-spacing: .06em; text-decoration: none; }
  .bar__btn .ico { width: 20px; height: 20px; color: var(--gold); }
  .bar__btn:first-child { color: var(--gold-2); }
}

/* ---------- Boîtes de dialogue ---------- */
dialog::backdrop { background: rgba(10, 14, 12, .93); }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: hidden; }
.lightbox__fig { height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 72px 16px 32px; }
.lightbox__media { display: grid; place-items: center; width: 100%; height: min(78vh, 900px); }
.lightbox__media img, .lightbox__media svg { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 0 8px #F4EFE4; }
.lightbox__media svg { height: 100%; aspect-ratio: 4 / 5; }
.lightbox figcaption { font: 400 1.6rem/1.2 var(--f-script); text-align: center; color: var(--gold-2); }
.lightbox .iconbtn { position: absolute; color: var(--cream); background: rgba(10, 14, 12, .5); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -25px; }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; } }
.modal { width: min(92vw, 640px); border: 0; padding: clamp(24px, 4vw, 40px); background: var(--paper-3); color: var(--ink); outline: 1px solid rgba(140, 106, 42, .4); outline-offset: -8px; }
.modal .h3 .ico { color: var(--gold-ink); }
.modal__body { white-space: pre-line; margin-bottom: 1.4rem; color: var(--muted-l); font-size: 1.05rem; }
body.is-locked { overflow: hidden; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
