/* ============================================================
   CHALET 504 — feuille de style
   Palette : nuit alpine, or, ambre, crème
   ============================================================ */

:root {
  --black: #0d0b09;
  --night: #14110d;
  --night-2: #1c1813;
  --night-3: #241e17;
  --cream: #f4ece0;
  --cream-dim: #c9bfae;
  --gold: #c9a24b;
  --gold-soft: #e4c87f;
  --amber: #e9853b;
  --ember: #ff6a1f;
  --ok: #8fbf7f;
  --warn: #e0b35a;
  --err: #e07a5a;
  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.45);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --maxw: 1240px;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--night); color: var(--cream);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
::selection { background: var(--gold); color: var(--black); }
[hidden] { display: none !important; }

.gold { color: var(--gold); }

/* ===== Layout helpers ===== */
.section { padding: clamp(5rem, 11vw, 10rem) clamp(1.25rem, 5vw, 5rem); position: relative; isolation: isolate; overflow: clip; }

/* Filigrane « CHALET 504 » derrière chaque section */
.wm {
  position: absolute; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--serif); font-weight: 500; line-height: 0.8; letter-spacing: 0.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(201,162,75,0.10); will-change: transform;
}
.wm--top { left: 0; right: 0; top: 0.35em; text-align: center; font-size: clamp(5rem, 17vw, 16rem); }
.wm--bottom { left: 0; right: 0; bottom: 0.3em; text-align: center; font-size: clamp(5rem, 17vw, 16rem); }
.wm--right { writing-mode: vertical-rl; right: -0.12em; top: 8%; font-size: clamp(4rem, 11vw, 10rem); }
.wm--left { writing-mode: vertical-rl; transform: rotate(180deg); left: -0.12em; bottom: 8%; font-size: clamp(4rem, 11vw, 10rem); }
.wm--left.is-parallax { transform: none; }
@media (max-width: 900px) { .wm--right, .wm--left { display: none; } .wm--top, .wm--bottom { font-size: clamp(2.2rem, 13.5vw, 10rem); letter-spacing: 0.02em; } .wm--top { top: 0.5em; } .wm--bottom { bottom: 0.45em; } }
.section__head { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.section__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem; font-weight: 500;
}
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em;
}
.section__lead { margin-top: 1.2rem; color: var(--cream-dim); font-size: 1.05rem; }

/* Split words (titres) */
[data-split-words] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split-words] .w > span { display: inline-block; transform: translateY(110%) rotate(3deg); transition: transform 1s var(--ease); transform-origin: left bottom; }
[data-split-words].is-in .w > span { transform: translateY(0) rotate(0); }

/* ============================================================
   DÉCOR : grain, barre de progression, curseur
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 2000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 50% { transform: translate(-3%, 2%); } 100% { transform: translate(2%, -3%); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--amber)); transform-origin: left; transform: scaleX(0); }

.cursor { position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body { cursor: none; } a, button, [data-tilt] { cursor: none; } }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); transition: transform 0.25s var(--ease), opacity 0.25s; }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(201,162,75,0.6); transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s, opacity 0.3s;
}
.cursor__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); font-weight: 500; white-space: nowrap;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.cursor.is-hover .cursor__ring { transform: scale(1.6); background: rgba(201,162,75,0.12); border-color: var(--gold); }
.cursor.is-hover .cursor__dot { transform: scale(0.4); }
.cursor.is-label .cursor__ring { transform: scale(2.4); background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-down .cursor__ring { transform: scale(0.8); }
.cursor.is-hidden { opacity: 0; }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(201,162,75,0.10), transparent 60%);
  opacity: 0; mix-blend-mode: screen;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; transition: clip-path 1s var(--ease-io), visibility 1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: flex; gap: 0.06em; }
.preloader__num {
  font-family: var(--serif); font-size: clamp(4rem, 16vw, 9rem); color: var(--gold); line-height: 1;
  opacity: 0; transform: translateY(40px); animation: numIn 0.7s var(--ease) forwards;
}
.preloader__num:nth-child(2) { animation-delay: 0.12s; }
.preloader__num:nth-child(3) { animation-delay: 0.24s; }
@keyframes numIn { to { opacity: 1; transform: translateY(0); } }
.preloader__bar { width: min(220px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: barFill 1.1s 0.3s var(--ease) forwards; }
@keyframes barFill { to { width: 100%; } }
.preloader__tag { font-size: 0.65rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--cream-dim); opacity: 0; animation: fadeIn 0.8s 0.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3.5rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
/* Le fond flouté est sur un calque séparé : un backdrop-filter posé directement sur .nav
   piégerait le menu mobile (position: fixed) à l'intérieur de la barre. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 11, 9, 0.72);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.5s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-top: 0.65rem; padding-bottom: 0.65rem; }
.nav.is-open::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { height: 54px; width: 54px; object-fit: contain; transition: transform 0.6s var(--ease), height 0.5s var(--ease), width 0.5s var(--ease); }
.nav.is-scrolled .nav__logo { height: 44px; width: 44px; }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.08); }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim); position: relative; padding: 0.3rem 0; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__links-cta { display: none; }
.nav__cta {
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  padding: 0.75rem 1.6rem; border-radius: 100px; transition: color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.nav__cta::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform 0.45s var(--ease); z-index: 0; }
.nav__cta span { position: relative; z-index: 1; }
.nav__cta:hover { color: var(--black); box-shadow: 0 10px 30px rgba(201,162,75,0.3); }
.nav__cta:hover::before { transform: translateY(0); }
.nav__burger { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--cream); transition: 0.4s var(--ease); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
.nav__burger span:nth-child(3) { bottom: 0; }
.nav.is-open .nav__burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.nav.is-open .nav__burger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 80% 28%;
  animation: kenburns 24s var(--ease-io) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, 1%); } }
.hero__embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 35%, transparent, rgba(13,11,9,0.5) 70%, rgba(13,11,9,0.95)),
    linear-gradient(180deg, rgba(13,11,9,0.6), transparent 35%, rgba(13,11,9,0.9));
}
.hero__content { position: relative; z-index: 3; text-align: center; padding: 0 1.25rem; will-change: transform, opacity; }
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 1.6rem; display: inline-flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeIn 1s 1.3s forwards;
}
.hero__eyebrow-line { width: 40px; height: 1px; background: var(--gold); transform: scaleX(0); animation: lineGrow 1s 1.5s var(--ease) forwards; }
@keyframes lineGrow { to { transform: scaleX(1); } }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(4.2rem, 19vw, 13.5rem); line-height: 0.86; letter-spacing: -0.02em; }
.hero__word { display: block; }
.hero__word--gold { color: var(--gold); }
.hero__title .ch { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(6deg) scale(0.9); filter: blur(6px);
  animation: chIn 1.1s var(--ease) forwards; animation-delay: calc(0.9s + var(--i) * 0.06s); transform-origin: bottom left; }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero__sub { margin-top: 1.8rem; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--cream); font-weight: 300; letter-spacing: 0.02em; display: flex; flex-direction: column; align-items: center; }
.hero__sub-line { display: block; overflow: hidden; }
.hero__sub-line > span { display: block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero__sub-line:nth-child(1) > span { animation-delay: 1.6s; }
.hero__sub-line:nth-child(2) > span { animation-delay: 1.75s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__actions { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s 2s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.status {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem;
  padding: 0.5rem 1rem; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(13,11,9,0.4); backdrop-filter: blur(8px);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim);
  opacity: 0; animation: fadeIn 1s 2.4s forwards;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(143,191,127,0.6); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: var(--err); box-shadow: 0 0 0 0 rgba(224,122,90,0.6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero__scroll {
  position: absolute; bottom: 4.2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cream-dim);
  opacity: 0; animation: fadeIn 1s 2.6s forwards;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cream); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { top: -50%; } 100% { top: 100%; } }

.hero__marquee-wrap { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; overflow: hidden; border-top: 1px solid var(--line); background: rgba(13,11,9,0.35); backdrop-filter: blur(6px); }
.hero__marquee {
  width: max-content; display: flex; gap: 1.6rem; list-style: none; padding: 0.85rem 0;
  font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--cream-dim);
  animation: marquee 30s linear infinite;
}
.hero__marquee-wrap:hover .hero__marquee { animation-play-state: paused; }
.hero__marquee li { white-space: nowrap; }
.hero__marquee li:nth-child(even) { color: var(--gold); font-style: normal; font-size: 0.7rem; display: flex; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1rem 2.1rem; border-radius: 100px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s, border-color 0.45s;
  position: relative; overflow: hidden; border: 1px solid transparent; background: transparent; text-decoration: none;
}
.btn span { position: relative; z-index: 1; }
.btn--gold { background: var(--gold); color: var(--black); font-weight: 500; }
.btn--gold::before { content: ""; position: absolute; inset: 0; background: var(--gold-soft); transform: translateY(101%); transition: transform 0.45s var(--ease); border-radius: inherit; }
.btn--gold:hover::before { transform: translateY(0); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(201,162,75,0.32); }
.btn--ghost { border-color: rgba(244,236,224,0.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn--lg { padding: 1.2rem 2.8rem; font-size: 0.84rem; }
.btn--sm { padding: 0.85rem 1.6rem; font-size: 0.72rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.is-loading span { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(13,11,9,0.3); border-top-color: var(--black); animation: spin 0.8s linear infinite; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.magnetic { will-change: transform; }

/* ============================================================
   HISTOIRE
   ============================================================ */
.histoire { background: linear-gradient(var(--night), var(--night-2)); }
.histoire__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.histoire__text .section__eyebrow, .histoire__text .section__title { text-align: left; }
.histoire__text .section__title { margin-bottom: 1.6rem; }
.histoire__text p { color: var(--cream-dim); margin-bottom: 1.2rem; font-size: 1.06rem; }
.histoire__links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.4rem; }
.histoire__media { position: relative; border-radius: var(--radius); }
.histoire__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.histoire__badge {
  position: absolute; bottom: 1.4rem; right: 1.4rem; width: 110px; height: 110px;
  background: rgba(13,11,9,0.72); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.histoire__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 18s linear infinite; }
.histoire__badge-ring text { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--gold); font-family: var(--sans); font-weight: 500; }
.histoire__badge strong { font-family: var(--serif); font-size: 1.9rem; color: var(--cream); }
@keyframes rotate { to { transform: rotate(360deg); } }

.link-underline { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: 0.35s var(--ease); background: none; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; }
.link-underline:hover { color: var(--gold-soft); letter-spacing: 0.2em; }

.stats {
  max-width: var(--maxw); margin: clamp(3rem, 7vw, 6rem) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vw, 4rem);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -0.75rem; top: 15%; height: 70%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.5rem); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__plus { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--gold); }
.stat p { margin-top: 0.6rem; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }

/* ============================================================
   SPÉCIALITÉS
   ============================================================ */
.specialites { background: var(--night-2); }
.spec-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.spec-card {
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 460px; position: relative; overflow: hidden;
  transition: border-color 0.5s, transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent);
}
.spec-card:nth-child(even) { transform: translateY(2.5rem); }
.spec-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s; filter: saturate(1.05); }
.spec-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,11,9,0.1) 0%, rgba(13,11,9,0.45) 55%, rgba(13,11,9,0.94) 100%);
  transition: background 0.5s;
}
.spec-card__body { position: absolute; inset: 0; z-index: 2; padding: 2.2rem 1.8rem; display: flex; flex-direction: column; justify-content: flex-end; }
.spec-card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.spec-card:hover .spec-card__img { transform: scale(1.08); filter: saturate(1.2); }
.spec-card__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-soft); letter-spacing: 0.2em; margin-bottom: auto; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.spec-card h3 { font-family: var(--serif); font-size: 1.95rem; font-weight: 500; margin-bottom: 0.6rem; text-shadow: 0 2px 14px rgba(0,0,0,0.7); }
.spec-card p { color: var(--cream); font-size: 0.95rem; text-shadow: 0 1px 10px rgba(0,0,0,0.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.5s; }
.spec-card:hover p { max-height: 120px; opacity: 1; margin-bottom: 0.9rem; }
.spec-card__link { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.5rem; }
.spec-card__link::after { content: "→"; transition: transform 0.4s var(--ease); }
.spec-card:hover .spec-card__link::after { transform: translateX(6px); }
@media (hover: none) { .spec-card p { max-height: none; opacity: 1; margin-bottom: 0.9rem; } .spec-card:nth-child(even) { transform: none; } }

/* ============================================================
   CARTE
   ============================================================ */
.carte { background: linear-gradient(var(--night-2), var(--night)); }
.carte__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; position: relative; }
.carte__tab {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim);
  border: 1px solid var(--line); background: transparent; padding: 0.75rem 1.5rem; border-radius: 100px;
  transition: color 0.35s, border-color 0.35s, background 0.45s var(--ease), transform 0.35s var(--ease);
}
.carte__tab:hover { color: var(--cream); border-color: var(--line-strong); transform: translateY(-2px); }
.carte__tab.is-active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 500; }
.carte__panels { max-width: 880px; margin: 0 auto; position: relative; }
.carte__panel { display: none; }
.carte__panel.is-active { display: block; }
.carte__item { display: flex; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); animation: itemIn 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); transition: padding 0.4s var(--ease); }
.carte__item:hover { padding-left: 0.6rem; }
@keyframes itemIn { to { opacity: 1; transform: translateY(0); } }
.carte__item-head { display: flex; flex-direction: column; }
.carte__item h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; transition: color 0.3s; }
.carte__item:hover h4 { color: var(--gold-soft); }
.carte__item p { color: var(--cream-dim); font-size: 0.9rem; margin-top: 0.2rem; }
.carte__dots { flex: 1; border-bottom: 1px dotted rgba(201,162,75,0.4); transform: translateY(-4px); min-width: 20px; }
.carte__price { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); white-space: nowrap; }
.carte__cta { text-align: center; margin-top: 3.5rem; }

/* ============================================================
   MENU DE LA SEMAINE
   ============================================================ */
.semaine { background: var(--night); position: relative; }
.semaine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(201,162,75,0.08), transparent 55%); pointer-events: none; }
.semaine__inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.semaine__board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.day-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.025), transparent);
  transition: transform 0.5s var(--ease), border-color 0.45s, background 0.45s; position: relative; overflow: hidden;
}
.day-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,75,0.12), transparent 50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.day-card:hover::after { opacity: 1; }
.day-card.is-today { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,162,75,0.14), transparent); }
.day-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.day-card__day { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.day-card__today-tag { font-size: 0.55rem; background: var(--gold); color: var(--black); padding: 0.2rem 0.55rem; border-radius: 100px; letter-spacing: 0.1em; font-weight: 500; }
.day-card__plat + .day-card__plat { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.day-card__num { display: block; font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.35rem; }
.day-card__dish { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.4rem; }
.day-card__desc { color: var(--cream-dim); font-size: 0.88rem; }
.day-card__price { margin-top: 0.6rem; font-family: var(--serif); color: var(--gold); font-size: 1.15rem; }
.done__mail { margin: 1.2rem auto 0; max-width: 460px; font-size: 0.92rem; color: var(--ok); }
.done__mail strong { color: var(--cream); font-weight: 400; }
.semaine__note { text-align: center; color: var(--cream-dim); font-style: italic; font-family: var(--serif); font-size: 1.05rem; margin-top: 2.5rem; }

/* ============================================================
   CALENDRIER (partagé : agenda + réservation)
   ============================================================ */
.cal { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--cream-dim); transition: 0.3s; }
.cal__nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.cal__nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.5rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__grid.is-switching .cal__day { animation: none; opacity: 0; }
.cal__day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px; font-size: 0.92rem; position: relative; border: 1px solid transparent; background: transparent;
  color: var(--cream); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), color 0.3s;
  opacity: 0; animation: dayIn 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 12ms);
}
@keyframes dayIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
.cal__day.is-empty { pointer-events: none; animation: none; opacity: 0; }
.cal__day.is-past, .cal__day.is-disabled { color: rgba(201,191,174,0.3); cursor: default; }
.cal__day.is-closed { color: rgba(201,191,174,0.3); text-decoration: line-through; text-decoration-color: rgba(224,122,90,0.5); cursor: default; }
.cal__day.is-today { border-color: var(--line-strong); }
.cal__day.is-today::before { content: ""; position: absolute; top: 5px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal__day.is-selectable:hover { background: rgba(201,162,75,0.12); border-color: var(--line-strong); transform: scale(1.06); }
.cal__day.is-selected { background: var(--gold); color: var(--black); font-weight: 500; border-color: var(--gold); transform: scale(1.04); box-shadow: 0 8px 20px rgba(201,162,75,0.3); }
.cal__day.is-selected::before { background: var(--black); }
.cal__day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal__day .dot--ok { background: var(--ok); }
.cal__day .dot--limite { background: var(--warn); }
.cal__day .dot--complet { background: var(--err); }
.cal__day.is-selected .dot { background: var(--black); }
.cal__day.has-event { background: rgba(201,162,75,0.08); border-color: var(--line); }
.cal__day.has-event .num { color: var(--gold-soft); }
.cal__day.is-selected .num { color: var(--black); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 1.1rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); }
.cal__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.cal__legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.cal__legend-dot--ok { background: var(--ok); }
.cal__legend-dot--limite { background: var(--warn); }
.cal__legend-dot--complet { background: var(--err); }
.cal__legend-dot--closed { background: rgba(201,191,174,0.35); }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda { background: linear-gradient(var(--night), var(--night-2)); }
.agenda__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.agenda__cal { position: sticky; top: 100px; }
.agenda__list { display: flex; flex-direction: column; gap: 0.9rem; }
.agenda__list-title { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; }
.agenda__list-title button { background: none; border: 0; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; border-bottom: 1px solid var(--gold); }
.event {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 1.4rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.025), transparent);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(16px); animation: itemIn 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms);
}
.event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform 0.5s var(--ease); transform-origin: bottom; }
.event:hover { transform: translateX(6px); border-color: var(--line-strong); }
.event:hover::before { transform: scaleY(1); transform-origin: top; }
.event.is-highlight { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,162,75,0.12), transparent); }
.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: 1.2rem; }
.event__date strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.event__date span { display: block; font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); margin-top: 0.3rem; }
.event__body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.event__body p { color: var(--cream-dim); font-size: 0.9rem; margin-top: 0.35rem; }
.event__meta { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.6rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); }
.event__tag { padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 100px; color: var(--gold); }
.event__cta { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); background: transparent; padding: 0.7rem 1.1rem; border-radius: 100px; white-space: nowrap; transition: 0.35s var(--ease); }
.event__cta:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.agenda__empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--cream-dim); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* ============================================================
   TERRASSE / GALERIE
   ============================================================ */
.terrasse { background: var(--night-2); }
.gallery { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.gallery__item { position: relative; border-radius: var(--radius); aspect-ratio: 3 / 4; will-change: transform; }
.gallery__item:nth-child(2) { margin-top: 3rem; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2.2rem 1.4rem 1.3rem; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(13,11,9,0.88)); transform: translateY(10px); opacity: 0; transition: 0.5s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* Révélation d'image par masque */
.reveal-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.reveal-img__mask { width: 100%; height: 100%; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io); overflow: hidden; border-radius: inherit; }
.reveal-img__mask > img, .reveal-img__mask > iframe { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.reveal-img.is-in .reveal-img__mask { clip-path: inset(0 0 0 0); }
.reveal-img.is-in .reveal-img__mask > img, .reveal-img.is-in .reveal-img__mask > iframe { transform: scale(1); }
.gallery__item .reveal-img__mask { position: absolute; inset: 0; }

/* ============================================================
   BANNIÈRE RÉSERVATION
   ============================================================ */
.resa-banner { position: relative; overflow: hidden; padding: clamp(6rem, 14vw, 12rem) clamp(1.25rem, 5vw, 5rem); text-align: center; }
.resa-banner__bg { position: absolute; inset: -15% 0; z-index: 0; will-change: transform; }
.resa-banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: brightness(0.5) saturate(0.9); }
.resa-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(13,11,9,0.4), rgba(13,11,9,0.92)); }
.resa-banner__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.resa-banner__actions { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.resa-banner__perks { margin-top: 2.4rem; display: flex; gap: 1.5rem 2.2rem; justify-content: center; flex-wrap: wrap; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }

/* ============================================================
   INFOS
   ============================================================ */
.infos { background: linear-gradient(var(--night-2), var(--night)); }
.infos__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.infos__col .section__eyebrow, .infos__col .section__title { text-align: left; }
.infos__col .section__title { margin-bottom: 2rem; }
.infos__list { list-style: none; margin-bottom: 2.4rem; }
.infos__list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.35rem; }
.infos__label { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.infos__list a { font-family: var(--serif); font-size: 1.45rem; transition: color 0.3s, padding-left 0.4s var(--ease); }
.infos__list a:hover { color: var(--gold); padding-left: 0.4rem; }
.hours { margin-bottom: 2.4rem; }
.hours__list { list-style: none; margin-top: 0.9rem; }
.hours__list li { display: flex; justify-content: space-between; padding: 0.55rem 0; color: var(--cream-dim); font-size: 0.95rem; border-bottom: 1px solid rgba(201,162,75,0.08); }
.hours__list li.is-today { color: var(--cream); }
.hours__list li.is-today span:first-child { color: var(--gold); }
.hours__list span:first-child { color: var(--cream); letter-spacing: 0.05em; }
.infos__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.infos__map { border: 1px solid var(--line); height: 100%; min-height: 440px; filter: grayscale(0.5) contrast(1.05); transition: filter 0.6s; }
.infos__map:hover { filter: grayscale(0) contrast(1); }
.infos__map .reveal-img__mask { height: 100%; min-height: 440px; }
.infos__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem) 0; position: relative; overflow: hidden; }
.footer__top { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.footer__logo { height: 84px; width: 84px; object-fit: contain; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--cream-dim); }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom { max-width: var(--maxw); margin: 1.6rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--cream-dim); position: relative; z-index: 1; padding-bottom: 0.6rem; }
.footer__bottom a:hover { color: var(--gold); }
.footer__credit { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer__credit strong { font-weight: 500; color: var(--cream); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color 0.3s, border-color 0.3s; }
.footer__credit:hover strong { color: var(--gold); border-color: var(--gold); }
.footer__legal { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; padding-bottom: 1.2rem; position: relative; z-index: 1; }
.footer__legal a { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--cream-dim); text-transform: uppercase; }
.footer__legal a:hover { color: var(--gold); }

/* ===== Bandeau cookies ===== */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 400; max-width: 640px; margin: 0 auto;
  background: rgba(20,17,13,0.96); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7); transform: translateY(150%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s; }
.cookie.is-in { transform: translateY(0); opacity: 1; }
.cookie__text { font-size: 0.86rem; color: var(--cream-dim); line-height: 1.5; flex: 1; min-width: 220px; }
.cookie__text strong { color: var(--cream); font-weight: 500; display: block; margin-bottom: 0.2rem; font-family: var(--serif); font-size: 1.05rem; }
.cookie__text a { color: var(--gold); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.cookie__text a:hover { color: var(--gold-soft); }
.cookie__actions { flex-shrink: 0; }
@media (max-width: 560px) { .cookie { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; } .cookie__actions, .cookie__actions .btn { width: 100%; } }
.footer__big {
  font-family: var(--serif); font-size: clamp(2.6rem, 11.5vw, 11rem); line-height: 0.8; letter-spacing: 0.02em; white-space: nowrap;
  text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(201,162,75,0.16); user-select: none;
  margin-top: 0.4rem; padding-bottom: 1.2rem; line-height: 0.95;
}

/* ===== FAB ===== */
.fab-group { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.5s, transform 0.5s var(--ease); }
.fab-group.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; border-radius: 100px; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s; }
.fab--ghost { width: 48px; height: 48px; background: rgba(13,11,9,0.7); backdrop-filter: blur(10px); color: var(--gold); }
.fab--ghost:hover { transform: scale(1.1); border-color: var(--gold); }
.fab--main { background: var(--gold); color: var(--black); padding: 0.9rem 1.5rem; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; border-color: var(--gold); box-shadow: 0 14px 40px rgba(201,162,75,0.35); }
.fab--main:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 50px rgba(201,162,75,0.45); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   MODALE RÉSERVATION
   ============================================================ */
.resa { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.resa__backdrop { position: absolute; inset: 0; background: rgba(8,6,4,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.5s; }
.resa.is-open .resa__backdrop { opacity: 1; }
.resa__panel {
  position: relative; width: min(1040px, 100%); height: min(94vh, 860px); display: grid; grid-template-columns: 320px 1fr;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.resa.is-open .resa__panel { opacity: 1; transform: none; }
.resa__side { position: relative; overflow: hidden; display: flex; min-height: 0; }
.resa__side-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); transform: scale(1.1); transition: transform 8s var(--ease); }
.resa.is-open .resa__side-img { transform: scale(1); }
.resa__side-content { position: relative; z-index: 1; padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: linear-gradient(180deg, rgba(13,11,9,0.2), rgba(13,11,9,0.88)); }
.resa__side-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 1rem; flex-shrink: 0; }
.resa__side-eyebrow { font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); }
.resa__side-title { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; margin: 0.5rem 0 1.2rem; }
.resa__summary { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: auto; flex-shrink: 0; }
.resa__summary li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.resa__summary span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); }
.resa__summary strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; text-align: right; color: var(--cream); transition: color 0.3s; }
.resa__summary li.is-set strong { color: var(--gold-soft); }
.resa__summary li.is-flash strong { animation: flash 0.6s var(--ease); }
@keyframes flash { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.resa__side-phone { margin-top: 1rem; font-size: 0.8rem; color: var(--cream-dim); flex-shrink: 0; }
@media (max-height: 720px) { .resa__side-logo, .resa__side-phone { display: none; } .resa__side-title { font-size: 1.9rem; } }
.resa__side-phone a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }

.resa__main { position: relative; display: flex; flex-direction: column; min-height: 0; }
.resa__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(13,11,9,0.5); color: var(--cream-dim); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.resa__close:hover { color: var(--cream); border-color: var(--gold); transform: rotate(90deg); }
.resa__steps { list-style: none; display: flex; gap: 0; padding: 1.3rem 2.4rem 0; padding-right: 4.6rem; counter-reset: s; flex-shrink: 0; }
.resa__steps li { flex: 1; display: flex; align-items: center; gap: 0.6rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(201,191,174,0.5); position: relative; }
.resa__steps li i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: 0.4s var(--ease); flex-shrink: 0; }
.resa__steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line); margin: 0 0.8rem; }
.resa__steps li.is-active { color: var(--cream); }
.resa__steps li.is-active i { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,0.15); }
.resa__steps li.is-done { color: var(--cream-dim); }
.resa__steps li.is-done i { background: var(--gold); border-color: var(--gold); color: var(--black); }
.resa__viewport { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1.3rem 2.4rem 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; display: flex; flex-direction: column; }
.resa__step.is-active { display: flex; flex-direction: column; flex: 1; }
.resa__form { flex: 1; }
.resa__step { display: none; }
.resa__step.is-active { display: block; animation: stepIn 0.6s var(--ease); }
.resa__step.is-leaving-back.is-active { animation: stepInBack 0.6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.resa__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.1; margin-bottom: 1.1rem; }
.resa__field { margin-bottom: 1.2rem; }
.resa__label { display: block; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.resa__label span { color: var(--cream-dim); letter-spacing: 0.1em; text-transform: none; font-size: 0.78rem; margin-left: 0.4rem; }
.resa__hint { font-size: 0.8rem; color: var(--cream-dim); margin-top: 0.7rem; }
.resa__error { color: var(--err); font-size: 0.85rem; margin: 0; }
.resa__error:empty { display: none; }
.resa__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
/* pied collant : les boutons restent visibles même si le contenu dépasse */
.resa__step > .resa__nav, .resa__form > .resa__nav, .done > .resa__nav {
  position: sticky; bottom: 0; z-index: 3; margin-left: -2.4rem; margin-right: -2.4rem; padding: 1rem 2.4rem 1.3rem;
  background: var(--night-2);
}
.resa__step > .resa__nav::before, .resa__form > .resa__nav::before, .done > .resa__nav::before { content: ""; position: absolute; left: 0; right: 0; top: -1.2rem; height: 1.2rem; background: linear-gradient(180deg, rgba(28,24,19,0), rgba(28,24,19,0.9)); pointer-events: none; }
.resa__nav--center { justify-content: center; }
.resa__nav--inline { position: static !important; margin: 0 !important; padding: 0 !important; border: 0; background: none !important; }
.resa__nav--inline::before { display: none !important; }
.resa__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.resa__form { gap: 0.9rem; }
.cal--resa { padding: 1.1rem; }

/* convives */
.pax { display: inline-flex; align-items: center; gap: 1.2rem; border: 1px solid var(--line); border-radius: 100px; padding: 0.4rem; }
.pax__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.4rem; line-height: 1; transition: 0.3s; color: var(--cream); }
.pax__btn:hover:not(:disabled) { background: var(--gold); color: var(--black); border-color: var(--gold); }
.pax__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pax__val { min-width: 120px; text-align: center; display: flex; flex-direction: column; line-height: 1; }
.pax__val strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold); }
.pax__val span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); margin-top: 0.2rem; }
.pax__val strong.is-bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }

/* créneaux */
.slots { display: flex; flex-direction: column; gap: 1rem; }
.slots__service { display: flex; flex-direction: column; gap: 0.6rem; }
.slots__service-name { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); display: flex; align-items: center; gap: 0.8rem; }
.slots__service-name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.slot {
  padding: 0.75rem 0.4rem; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--cream);
  font-size: 0.95rem; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: 0.3s var(--ease); opacity: 0; animation: dayIn 0.4s var(--ease) forwards; animation-delay: calc(var(--i) * 25ms);
}
.slot small { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); }
.slot:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.slot.is-selected { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 500; box-shadow: 0 8px 20px rgba(201,162,75,0.3); }
.slot.is-selected small { color: var(--black); }
.slot:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.slots__empty { color: var(--cream-dim); font-style: italic; font-family: var(--serif); font-size: 1.05rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.slots__loading { height: 60px; display: flex; align-items: center; justify-content: center; }
.slots__loading::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }

/* zones */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0.6rem; }
.zone { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 2.2rem 0.8rem 0.95rem; background: transparent; text-align: left; transition: 0.35s var(--ease); display: flex; flex-direction: column; gap: 0.25rem; position: relative; overflow: hidden; }
.zone::after { content: ""; position: absolute; top: 0.8rem; right: 0.8rem; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); transition: 0.3s; }
.zone strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.zone span { font-size: 0.74rem; color: var(--cream-dim); line-height: 1.35; }
.zone:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.zone.is-selected { border-color: var(--gold); background: rgba(201,162,75,0.1); }
.zone.is-selected::after { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--night-2); }

/* inputs */
.resa__form { display: flex; flex-direction: column; gap: 1rem; }
.input { display: flex; flex-direction: column; gap: 0.45rem; }
.input span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.input input, .input textarea {
  background: rgba(13,11,9,0.5); border: 1px solid var(--line); color: var(--cream); border-radius: 10px;
  padding: 0.75rem 0.95rem; font-size: 0.98rem; font-weight: 300; transition: border-color 0.3s, box-shadow 0.3s; width: 100%; resize: vertical;
}
.input input:focus, .input textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,0.12); }
.input input.is-invalid, .input textarea.is-invalid { border-color: var(--err); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* confirmation */
.done { text-align: center; padding: 0.5rem 0 1rem; }
.done__check { width: 110px; height: 110px; margin: 0 auto 1.4rem; }
.done__check circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s 0.2s var(--ease) forwards; }
.done__check path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.6s 0.9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__text { color: var(--cream-dim); font-size: 1.05rem; max-width: 460px; margin: 0.8rem auto 0; }
.done__text strong { color: var(--cream); font-weight: 400; }
.done__code { margin: 1.8rem auto 0; display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.1rem 2.4rem; border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(201,162,75,0.06); }
.done__code span { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-dim); }
.done__code strong { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 500; }

/* gestion */
.manage-result { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; animation: stepIn 0.5s var(--ease); }
.manage-result__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.manage-result__grid div span { display: block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.2rem; }
.manage-result__grid div strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.badge--confirmee { background: rgba(143,191,127,0.15); color: var(--ok); border: 1px solid rgba(143,191,127,0.4); }
.badge--annulee { background: rgba(224,122,90,0.15); color: var(--err); border: 1px solid rgba(224,122,90,0.4); }
.badge--arrivee { background: rgba(201,162,75,0.15); color: var(--gold); border: 1px solid var(--line-strong); }
.badge--noshow { background: rgba(201,191,174,0.12); color: var(--cream-dim); border: 1px solid var(--line); }
.btn--danger { border-color: rgba(224,122,90,0.5); color: var(--err); }
.btn--danger:hover { border-color: var(--err); color: var(--err); background: rgba(224,122,90,0.1); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 600; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(150%); z-index: 700;
  background: var(--gold); color: var(--black); font-weight: 500; padding: 0.9rem 1.6rem; border-radius: 100px;
  font-size: 0.85rem; letter-spacing: 0.04em; box-shadow: 0 12px 40px rgba(0,0,0,0.4); transition: transform 0.5s var(--ease); max-width: calc(100vw - 2rem); text-align: center; }
.toast.is-show { transform: translateX(-50%) translateY(0); }
.toast.is-err { background: var(--err); color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-card:nth-child(even) { transform: none; }
  .spec-card { min-height: 380px; }
}
@media (max-width: 900px) {
  .histoire__grid, .infos__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
  .stat + .stat::before { display: none; }
  .agenda__grid { grid-template-columns: 1fr; }
  .agenda__cal { position: static; }
  .event { grid-template-columns: 70px 1fr; }
  .event__cta { grid-column: 1 / -1; justify-self: start; }

  .nav__links {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(0.9rem, 2.5vh, 1.6rem); background: rgba(13,11,9,0.97); backdrop-filter: blur(20px);
    clip-path: circle(0% at calc(100% - 2.5rem) 2.2rem); transition: clip-path 0.7s var(--ease-io); z-index: 99;
    overflow-y: auto; padding: 5rem 1.5rem 2.5rem;
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 2.5rem) 2.2rem); }
  .nav__links a { font-size: 1.5rem; font-family: var(--serif); text-transform: none; letter-spacing: 0; opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease), color 0.3s; }
  .nav__links a::before { content: attr(data-i); font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); margin-right: 0.8rem; vertical-align: middle; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(1) { transition-delay: 0.2s; } .nav.is-open .nav__links a:nth-child(2) { transition-delay: 0.25s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: 0.3s; } .nav.is-open .nav__links a:nth-child(4) { transition-delay: 0.35s; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: 0.4s; } .nav.is-open .nav__links a:nth-child(6) { transition-delay: 0.45s; }
  .nav.is-open .nav__links a:nth-child(7) { transition-delay: 0.5s; }
  .nav__links-cta { display: inline-block; margin-top: 1rem; background: var(--gold); color: var(--black); border: 0; padding: 1rem 2.2rem; border-radius: 100px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; opacity: 0; transition: opacity 0.5s 0.55s; }
  .nav.is-open .nav__links-cta { opacity: 1; }
  .nav__cta { display: none; }
  .nav__burger { display: block; z-index: 100; }

  .resa__panel { grid-template-columns: 1fr; height: min(94vh, 860px); }
  .resa__side { display: none; }
  .resa__steps { padding: 1.2rem 1.4rem 0; padding-right: 4rem; }
  .resa__steps li span { display: none; }
  .resa__viewport { padding: 1.1rem 1.4rem 0; }
  .resa__step > .resa__nav, .resa__form > .resa__nav, .done > .resa__nav { margin-left: -1.4rem; margin-right: -1.4rem; padding: 0.9rem 1.4rem 1.1rem; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:nth-child(2) { margin-top: 0; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 300px; margin-inline: auto; }
  .hero__actions .btn { width: 100%; }
  .resa { padding: 0; align-items: flex-end; }
  .resa__panel { border-radius: 18px 18px 0 0; height: 96vh; height: 96svh; }
  .resa__row { grid-template-columns: 1fr; }
  .resa__nav { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .resa__nav .btn { width: 100%; letter-spacing: 0.12em; padding: 0.95rem 1rem; }
  .resa__nav .btn--gold { order: -1; }
  .fab--main span { display: none; }
  .fab--main { width: 52px; height: 52px; padding: 0; }
  .event__date { border-right: 0; padding-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cal { padding: 1rem; }
  .cal__title { font-size: 1.25rem; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal, .reveal-img .reveal-img__mask, [data-split-words] .w > span, .hero__title .ch { opacity: 1; transform: none; clip-path: none; filter: none; }
  .grain, .hero__embers, .cursor, .cursor-glow { display: none; }
  body, a, button { cursor: auto !important; }
}

/* Petits écrans / faible hauteur */
@media (max-width: 560px) {
  .hero__eyebrow { letter-spacing: 0.3em; font-size: 0.68rem; gap: 0.6rem; }
  .hero__eyebrow-line { width: 22px; }
  .hero__sub { margin-top: 1.2rem; }
  .hero__actions { margin-top: 1.8rem; }
  .status { margin-top: 1.4rem; }
}
@media (max-height: 680px) {
  .hero__content { padding-top: 3.5rem; padding-bottom: 3rem; }
}
body.is-locked .fab-group { opacity: 0; pointer-events: none; }
