/* Fuzen — Restaurant asiatique Marseille 13013 */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-regular-webfont.woff') format('woff');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-medium-webfont.woff') format('woff');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-bold-webfont.woff') format('woff');
  font-weight: 700; font-display: swap;
}

:root {
  --bg: #000000;
  --accent: #53C22C;
  --accent-soft: #BBD368;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.5; font-size: 16px;
  min-height: 100vh; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ HOME — pleine page centrée ============ */
.home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative;
  padding: 2rem 1.5rem;
  padding-top: calc(2rem + env(safe-area-inset-top));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
}

/* Décor — reprise fidèle de l'EXPORT :
   • bois corner-gauche en haut-gauche (devant) + bois corner-droit en bas-droite (devant)
   • lampe suspension pendue du haut-gauche, DERRIÈRE le bois gauche
   • bambou pendu du haut-droit, passe DERRIÈRE le bois droit */
.deco { position: fixed; pointer-events: none; user-select: none; }

.deco-suspension {
  top: clamp(90px, 14vw, 160px); left: 0;
  width: clamp(90px, 14vw, 161px);
  z-index: 1;
}
.deco-bamboo {
  top: 0; right: 0;
  width: clamp(110px, 17vw, 201px);
  z-index: 2;
}
.deco-corner-tl {
  top: 0; left: 0;
  width: clamp(200px, 32vw, 384px);
  z-index: 3;
}
.deco-corner-br {
  bottom: 0; right: 0;
  width: clamp(200px, 32vw, 382px);
  z-index: 3;
}

.home-inner { position: relative; z-index: 10; max-width: 680px; width: 100%; }

.home-logo {
  width: min(400px, 70vw);
  height: auto;
  aspect-ratio: 400 / 225;
  margin: 0 auto 1.8rem;
}

.home-cta {
  display: inline-block;
  background: var(--accent); color: #000;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(83,194,44,0.2);
}
.home-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(83,194,44,0.4); }

.home-tagline {
  margin-top: 2rem;
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text);
}
.home-tagline .sep { color: var(--accent); margin: 0 0.7rem; }

.home-hours {
  margin-top: 2.2rem; line-height: 1.9; font-size: 0.95rem;
}
.home-hours .accent { color: var(--accent); }
.home-hours .muted { color: var(--text-dim); font-size: 0.85rem; }

.home-phones {
  margin-top: 1.5rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  font-size: 1rem; font-weight: 500;
}
.home-phones a { transition: color 0.2s; }
.home-phones a:hover { color: var(--accent); }

.home-address {
  margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-dim); line-height: 1.7;
}
.home-address a:hover { color: var(--accent); }

.home-review {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  transition: all 0.25s ease;
}
.home-review:hover { color: #000; background: var(--accent); border-color: var(--accent); }
.home-review svg { flex-shrink: 0; }

.home-socials { margin-top: 1.6rem; display: flex; justify-content: center; gap: 1.6rem; }
.home-socials a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  opacity: 0.8; transition: opacity 0.2s, transform 0.2s;
}
.home-socials a:hover { opacity: 1; transform: translateY(-2px); }
.home-socials img { height: 22px; width: auto; filter: brightness(0) invert(1); }

.home-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--text-dim); z-index: 10;
}
.home-footer a { display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0.8; transition: opacity 0.2s; }
.home-footer a:hover { opacity: 1; }
.home-footer img { height: 10px; width: auto; }

/* ============ CARTE ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 1.5rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { height: 36px; width: auto; aspect-ratio: 400 / 179; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; font-size: 0.9rem; font-weight: 500; }
.nav-phone-icon { display: none; }
@media (max-width: 768px) { .nav-phone-icon { display: inline-block; } }
.nav-links a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-cta {
  background: var(--accent); color: #000 !important; opacity: 1 !important;
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--accent-soft); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.menu-hero {
  padding: 7rem 1.5rem 2.5rem;
  padding-top: calc(7rem + env(safe-area-inset-top));
  text-align: center;
}
.menu-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
  color: var(--accent); letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.menu-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }
.menu-download {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--accent); border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem; border-radius: 999px; transition: all 0.2s;
}
.menu-download:hover { background: var(--accent); color: #000; }

.menu-tabs {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 40;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.menu-tabs-scroller {
  max-width: 1100px; margin: 0 auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.menu-tabs-scroller::-webkit-scrollbar { display: none; }
.menu-tabs-inner {
  display: flex; gap: 0.3rem; padding: 0.8rem clamp(1rem, 4vw, 2rem);
  white-space: nowrap;
}
.menu-tabs a {
  font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--text-dim);
  transition: all 0.2s; flex-shrink: 0;
}
.menu-tabs a:hover, .menu-tabs a.active { background: var(--accent); color: #000; }

.menu-section { padding: clamp(2.5rem, 5vw, 4rem) 0; scroll-margin-top: 130px; border-top: 1px solid var(--border); }
.menu-section:first-of-type { border-top: none; }
.menu-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--accent);
  margin-bottom: 0.4rem; font-weight: 700;
}
.menu-section h2 .small { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; margin-left: 0.5rem; }
.menu-section .desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; max-width: 560px; }

.dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2.5rem; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px dashed var(--border); }
.dish-name { font-size: 0.98rem; font-weight: 500; }
.dish-name .qty { color: var(--text-dim); font-size: 0.82rem; font-weight: 400; margin-left: 0.3rem; }
.dish-desc { font-size: 0.83rem; color: var(--text-dim); margin-top: 0.2rem; font-style: italic; }
.dish-price { font-size: 0.98rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.formule {
  border: 1px solid rgba(83,194,44,0.3);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.formule h3 { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.25rem; font-weight: 700; }
.formule .price { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.formule .note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.2rem; font-style: italic; }
.formule-step { margin-top: 1.2rem; }
.formule-step h4 { color: var(--accent-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.formule-step ul { list-style: none; padding-left: 0; font-size: 0.92rem; }
.formule-step ul li { padding: 0.1rem 0; }
.formule-step .muted { color: var(--text-dim); font-size: 0.82rem; font-style: italic; }

.menu-footnote {
  text-align: center; padding: 2rem 1rem; color: var(--text-dim); font-size: 0.8rem;
  font-style: italic; border-top: 1px solid var(--border);
}

.footer {
  padding: 2.5rem 1.5rem 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  text-align: center; border-top: 1px solid var(--border);
}
.footer .socials { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer .socials a { opacity: 0.8; transition: opacity 0.2s; }
.footer .socials a:hover { opacity: 1; }
.footer .socials img { height: 22px; filter: brightness(0) invert(1); }
.footer-meta { color: var(--text-dim); font-size: 0.82rem; line-height: 1.8; }
.footer-meta a:hover { color: var(--accent); }
.footer-credit { margin-top: 1rem; font-size: 0.7rem; opacity: 0.6; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-credit img { height: 10px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .deco-bamboo  { width: 110px; }
  .deco-suspension { width: 70px; }
  .deco-leaf-left, .deco-leaf-right { width: 140px; }
  .home-tagline { font-size: 0.72rem; letter-spacing: 0.15em; }
  .home-tagline .sep { margin: 0 0.35rem; }
  .home-cta { padding: 0.85rem 1.8rem; font-size: 0.85rem; }
  .home-footer { flex-direction: column; gap: 0.35rem; text-align: left; align-items: flex-start; }

  .nav { padding: 0.8rem 1rem; padding-top: calc(0.8rem + env(safe-area-inset-top)); }
  .nav-logo { height: 30px; }
  .nav-links { gap: 0.7rem; font-size: 0.82rem; }
  .hide-mobile { display: none !important; }
  .dishes { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ ENTRÉE / TRANSITIONS ============ */

/* View Transitions API (Chrome 111+, Safari 18+) — transition douce entre pages */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* Décors : fade doux à l'arrivée */
.deco {
  opacity: 0;
  animation: deco-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.deco-corner-tl { animation-delay: 0.05s; }
.deco-corner-br { animation-delay: 0.15s; }
.deco-suspension { animation-delay: 0.45s; animation-name: deco-lamp-in; }
.deco-bamboo    { animation-delay: 0.35s; animation-name: deco-bamboo-in; }
@keyframes deco-in       { from { opacity: 0; } to { opacity: 0.95; } }
@keyframes deco-lamp-in  { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes deco-bamboo-in{ from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

/* Home : contenu en stagger */
.home-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-inner > .home-logo   { animation-delay: 0.15s; }
.home-inner > .home-cta    { animation-delay: 0.35s; }
.home-inner > .home-tagline{ animation-delay: 0.48s; }
.home-inner > .home-hours  { animation-delay: 0.58s; }
.home-inner > .home-phones { animation-delay: 0.68s; }
.home-inner > .home-address{ animation-delay: 0.76s; }
.home-inner > .home-review { animation-delay: 0.84s; }
.home-inner > .home-socials{ animation-delay: 0.92s; }
.home-inner > h1           { animation: none; } /* titre SR-only */
.home-footer { opacity: 0; animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards; }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }

/* Carte : hero & tabs à l'arrivée */
.menu-hero > * {
  opacity: 0; transform: translateY(14px);
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.menu-hero > h1 { animation-delay: 0.1s; }
.menu-hero > p  { animation-delay: 0.2s; }
.menu-hero > .menu-download { animation-delay: 0.3s; }
.menu-tabs { opacity: 0; animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; }

/* Scroll reveal (activé via JS) */
.sr { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.sr.in { opacity: 1; transform: translateY(0); }
