:root {
  --bg:      #070709;
  --bg2:     #0d0d11;
  --red:     #ff2d4b;
  --red2:    #ff6b7a;
  --gold:    #c9a96e;
  --cream:   #f5efe6;
  --dim:     #9a948a;
  --line:    #22222a;
  --glow:    0 0 20px rgba(255,45,75,0.6), 0 0 60px rgba(255,45,75,0.2);
  --glow-sm: 0 0 8px rgba(255,45,75,0.5);
  --mono:    'Share Tech Mono', ui-monospace, monospace;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --kr:      'Noto Serif KR', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Ambiance ── */
#rain {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.28;
}
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
  animation: jitter 0.12s steps(1) infinite;
}
@keyframes jitter {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-2px, 0); }
  100% { transform: translate(0,0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(7,7,9,0.85) 100%);
}

main, .footer, .nav { position: relative; z-index: 10; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem;
  background: linear-gradient(to bottom, rgba(7,7,9,0.95), rgba(7,7,9,0));
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(7,7,9,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--dim);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover { color: var(--red); text-shadow: var(--glow-sm); }
.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 34px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 6px; right: 6px; height: 1px; background: var(--cream); transition: transform 0.25s, top 0.25s; }
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child  { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 16px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 16px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 4rem; position: relative;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.korean {
  font-family: var(--kr); font-weight: 300;
  font-size: clamp(0.85rem, 2.4vw, 1.25rem); letter-spacing: 0.5em;
  color: var(--red); text-shadow: var(--glow);
  margin-bottom: 1.2rem; animation: fadeIn 1s ease 0.3s both;
}
.logo-wrap { animation: fadeIn 1s ease 0.6s both; }
.logo { display: inline-block; animation: glitchSvg 4s steps(1) infinite; }
.logo-img { width: clamp(260px, 55vw, 700px); height: auto; }
@keyframes glitchSvg {
  0%, 93%, 100% { filter: none; transform: translate(0); }
  94% { filter: drop-shadow(3px 0 0 rgba(255,45,75,0.8)) drop-shadow(-3px 0 0 rgba(0,240,255,0.5)); transform: translate(-2px, 1px); }
  95% { filter: none; transform: translate(0); }
  97% { filter: drop-shadow(-3px 0 0 rgba(255,45,75,0.6)); transform: translate(2px, -1px); }
  98% { filter: none; }
}
.neon-line {
  width: 100%; max-width: 700px; height: 2px;
  background: var(--red); box-shadow: var(--glow);
  margin: 0.6rem 0 1.4rem;
  animation: flickerLine 6s ease infinite, fadeIn 1s ease 0.9s both;
}
@keyframes flickerLine {
  0%, 100% { opacity: 1; } 48% { opacity: 1; } 49% { opacity: 0.2; }
  50% { opacity: 1; } 62% { opacity: 1; } 63% { opacity: 0; } 64% { opacity: 1; }
}
.tagline {
  font-style: italic; font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.25rem); letter-spacing: 0.15em;
  color: var(--gold); animation: fadeIn 1s ease 1.1s both;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; animation: fadeIn 1s ease 1.4s both; }
.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid #444; border-radius: 12px;
  animation: fadeIn 1.5s ease 1.8s both;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--red); border-radius: 2px; box-shadow: var(--glow-sm);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Boutons ── */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.6rem; border: 1px solid var(--red);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red2); box-shadow: var(--glow-sm); }
.btn-ghost { color: var(--cream); background: transparent; border-color: #444; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); box-shadow: var(--glow-sm); }

/* ── Sections ── */
.section { padding: 6rem 1.5rem; }
.section-alt { background: linear-gradient(to bottom, rgba(13,13,17,0.85), rgba(13,13,17,0.85)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container { max-width: 980px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--red); text-transform: uppercase; margin-bottom: 1rem; text-shadow: var(--glow-sm); }
h2 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 1.6rem; }
h2 em { color: var(--gold); font-weight: 300; }
.lead { font-size: 1.3rem; color: #d8d1c6; margin-bottom: 2rem; }

.award {
  display: inline-flex; align-items: center; gap: 1rem;
  border: 1px solid var(--line); padding: 1rem 1.4rem;
}
.award-mark { color: var(--red); font-size: 1.5rem; text-shadow: var(--glow-sm); }
.award strong { display: block; font-weight: 600; }
.award span { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ── Carte ── */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin: 2.4rem 0 2.6rem; }
.tab {
  background: none; border: 1px solid var(--line); color: var(--dim);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.8rem 1.3rem; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--cream); border-color: #444; }
.tab.active { color: #fff; background: var(--red); border-color: var(--red); box-shadow: var(--glow-sm); }
.panel[hidden] { display: none; }
.panel { animation: fadeIn 0.4s ease both; }

.menu { list-style: none; display: grid; gap: 1.8rem; }
.item { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.item h3 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.item h3 small { font-weight: 300; font-style: italic; color: var(--gold); font-size: 0.9rem; }
.price { font-family: var(--mono); color: var(--red); font-size: 1rem; white-space: nowrap; text-shadow: var(--glow-sm); }
.notes { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0.4rem 0; }
.desc { color: #d8d1c6; }
.meta { font-size: 0.9rem; color: var(--dim); margin-top: 0.3rem; }
.item.featured { border: 1px solid var(--red); padding: 1.6rem; box-shadow: 0 0 24px rgba(255,45,75,0.15); }
.badge { display: inline-block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; background: var(--red); color: #fff; padding: 0.3rem 0.7rem; }

.menu-cols { display: grid; gap: 2.6rem; grid-template-columns: 1fr; }
.block h4 {
  font-family: var(--mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem; margin-bottom: 1rem; display: flex; justify-content: space-between;
}
.block .sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; color: var(--dim); text-transform: uppercase; margin-bottom: 0.6rem; }
.plain { list-style: none; columns: 2; column-gap: 2rem; }
.plain li { padding: 0.2rem 0; }
.priced { list-style: none; }
.priced li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.55rem 0; border-bottom: 1px dotted var(--line); }
.priced b { font-family: var(--mono); font-weight: 400; color: var(--red); white-space: nowrap; }
.priced em { color: var(--gold); font-style: italic; }
.block .menu { gap: 1.2rem; }
.block .item { padding-bottom: 1.2rem; }

.legal-menu { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); display: grid; gap: 0.6rem; }
.legal-menu strong { color: var(--cream); font-weight: 600; }
.dl { margin-top: 2.2rem; }

/* ── Infos ── */
.info-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
.info-card { border: 1px solid var(--line); padding: 1.6rem; }
.info-card h3 { font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 0.8rem; }
.link { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.link:hover { color: var(--red); border-color: var(--red); }
.muted { color: var(--dim); font-size: 0.95rem; margin-top: 0.4rem; }

/* ── Footer ── */
.footer { text-align: center; padding: 3.5rem 1.5rem 3rem; border-top: 1px solid var(--line); background: var(--bg); }
.footer img { height: 18px; width: auto; margin: 0 auto 1.2rem; opacity: 0.8; }
.footer p { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--dim); text-transform: uppercase; line-height: 2; }
.footer a { color: var(--red); text-decoration: none; }
.footer a:hover { text-shadow: var(--glow-sm); }
.footer-legal { font-size: 0.58rem !important; color: #55524d !important; }

/* ── Reveal au scroll ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Page mentions légales ── */
.doc { max-width: 720px; margin: 0 auto; padding: 8rem 1.5rem 5rem; position: relative; z-index: 10; }
.doc h1 { font-weight: 300; font-size: 2.4rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; color: var(--gold); }
.doc p { color: #d8d1c6; margin-bottom: 0.8rem; }
.todo { background: rgba(255,45,75,0.15); border: 1px dashed var(--red); padding: 0 0.4rem; font-family: var(--mono); font-size: 0.85em; }

/* ── Responsive ── */
@media (min-width: 760px) {
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7,7,9,0.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 240px; }
  .nav-links a { padding: 1.1rem 1.6rem; border-top: 1px solid var(--line); }
  .plain { columns: 1; }
  .section { padding: 4.5rem 1.2rem; }
  .item-head { flex-direction: column; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .logo, .neon-line, .scroll-hint span { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  #rain { display: none; }
}

/* ═════ Panneau Privateaser (suit le scroll, côté gauche) ═════ */
.rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 6px;
}
.rail-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 1.3rem 0.8rem; text-decoration: none;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream); background: rgba(7,7,9,0.88); backdrop-filter: blur(6px);
  border: 1px solid #333; border-left: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, padding 0.2s;
}
.rail-btn:hover { border-color: var(--red); color: var(--red); box-shadow: var(--glow-sm); padding-inline: 1rem; }
.rail-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--glow-sm); }
.rail-primary:hover { background: var(--red2); border-color: var(--red2); color: #fff; }
.rail-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Réservation pas encore ouverte (avant la date dans script.js) */
.js-resa.soon { cursor: default; }
.rail-btn.soon, .btn.soon { background: transparent; color: var(--dim); border-color: #333; box-shadow: none; }
.rail-btn.soon .rail-dot { animation: none; background: var(--gold); }
.js-resa.soon small { display: block; font-size: 0.8em; letter-spacing: 0.18em; color: var(--gold); }
.btn.soon small { display: inline; margin-left: 0.6em; }
.link.soon { color: var(--dim); border: 0; }

/* Marge pour que le panneau ne recouvre pas le contenu */
@media (min-width: 641px) {
  .section, .hero { padding-left: 4.2rem; padding-right: 4.2rem; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

/* ═════ Galerie ═════ */
.gallery-section { padding-left: 0; padding-right: 0; overflow: hidden; }
.gallery-section .container { padding: 0; }
.gallery {
  display: flex; gap: 1.4rem; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 2.4rem max(1.5rem, calc((100vw - 980px) / 2)) 2.4rem;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; }
.shot:nth-child(even) { margin-top: 3rem; }   /* décalage éditorial */
.shot-btn, .thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; overflow: hidden; }
.shot-btn::after, .thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,7,9,0.55), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255,45,75,0.0); transition: box-shadow 0.3s;
}
.shot-btn:hover::after, .shot-btn:focus-visible::after, .thumb:hover::after, .thumb:focus-visible::after { box-shadow: inset 0 0 0 1px var(--red), inset 0 0 30px rgba(255,45,75,0.25); }
.shot-btn img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); filter: saturate(1.05) contrast(1.03); }
.shot-btn:hover img { transform: scale(1.05); }
.shot figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); margin-top: 0.9rem; }
.shot figcaption span { color: var(--red); margin-right: 0.7em; text-shadow: var(--glow-sm); }
@media (min-width: 1100px) {
  .gallery { overflow: visible; justify-content: center; padding-inline: 4.2rem; }
  .shot { flex: 0 0 300px; }
}

/* Photos dans la carte */
.item.has-photo { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: start; }
.thumb { width: 96px; aspect-ratio: 2 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.thumb:hover img { transform: scale(1.08); }
.item-body { min-width: 0; }

/* ═════ Visionneuse ═════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,9,0.94); backdrop-filter: blur(8px); padding: 1.2rem;
  animation: fadeInPlain 0.25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); max-height: calc(100svh - 7rem); width: auto; height: auto; box-shadow: 0 0 60px rgba(255,45,75,0.18); }
.lightbox figcaption { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: var(--cream); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-close:hover { color: var(--red); }
@keyframes fadeInPlain { from { opacity: 0; } to { opacity: 1; } }

/* ═════ Mobile : le panneau devient une barre en bas ═════ */
@media (max-width: 640px) {
  .rail {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; gap: 0; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(7,7,9,0.96);
  }
  .rail-btn {
    writing-mode: horizontal-tb; transform: none; flex: 1;
    padding: 1rem 0.5rem; font-size: 0.62rem; letter-spacing: 0.16em; text-align: center;
    border: 0; border-right: 1px solid var(--line);
  }
  .rail-btn:last-child { border-right: 0; }
  .rail-btn:hover { padding-inline: 0.5rem; }
  .footer { padding-bottom: 6rem; }
  .item.has-photo { grid-template-columns: 78px 1fr; gap: 0.9rem; }
  .thumb { width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-dot { animation: none; }
  .shot-btn img, .thumb img { transition: none; }
}

/* ═════ Corrections ═════ */
.gallery-section .container { padding: 0 1.5rem; }
@media (min-width: 641px) { .gallery-section .container { padding-left: 4.2rem; } }

/* Carte : colonnes équilibrées (plus de vide sous un bloc court) */
@media (min-width: 760px) {
  .menu-cols { display: block; columns: 2; column-gap: 3rem; }
  .menu-cols .block { break-inside: avoid; margin-bottom: 2.6rem; }
}

@media (max-width: 640px) {
  .rail-btn { flex-direction: column; gap: 0.15rem; }
  .rail-btn.soon small { display: block; margin: 0; }
}
