/* Tobiko & Lyna — accueil v2.0
   Palette conservée : encre #141114, crème #F7F2E7, rose #DF2E96 / #B81F77, rose tendre #FF8DC0,
   beurre #FFF3CF, or #C9A35C, menthe #9FE8D8. */

@property --split { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --v { syntax: '<number>'; inherits: true; initial-value: .5128; }

:root {
  --ink: #141114;
  --cream: #F7F2E7;
  --butter: #FFF3CF;
  --pink: #DF2E96;
  --pink-deep: #B81F77;
  --pink-soft: #FF8DC0;
  --gold: #C9A35C;
  --mint: #9FE8D8;
  --plum: #571039;

  --nav-h: 88px;
  --ticker-h: 48px;
  --logo-h: clamp(100px, 18vh, 210px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: #fff; }
body { font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ HERO ============ */
.hero {
  --split: 50%;
  --bgw: min(80vh, 56vw); /* largeur de la photo : on la voit en entier, sans zoom */
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  transition: --split .75s cubic-bezier(.4, 0, .2, 1);
}

.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.panel-t { clip-path: polygon(0 0, calc(var(--split) + 8%) 0, calc(var(--split) - 8%) 100%, 0 100%); }
.panel-l { clip-path: polygon(calc(var(--split) + 8%) 0, 100% 0, 100% 100%, calc(var(--split) - 8%) 100%); }

/* Photo : boîte fixe pour que l'image ne glisse pas quand la séparation bouge.
   Photos verticales vues en entier : Tobiko ancrée en haut (plats en haut, table sombre en bas pour le texte),
   Lyna ancrée en bas (mur rose en haut pour la marque, bols en bas). */
.panel-t { background: #120807; }
.panel-l { background: #e9a3c0; }
.bg { position: absolute; width: var(--bgw); height: auto; overflow: hidden; }
.panel-t .bg {
  left: 0; top: calc(var(--nav-h) + 12px - .249 * var(--bgw));
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent), linear-gradient(0deg, transparent, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 80%, transparent), linear-gradient(0deg, transparent, #000 14%);
  mask-composite: intersect;
}
.panel-l .bg {
  right: 0; bottom: calc(-.22 * var(--bgw));
  -webkit-mask-image: linear-gradient(270deg, #000 80%, transparent), linear-gradient(180deg, transparent, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg, #000 80%, transparent), linear-gradient(180deg, transparent, #000 14%);
  mask-composite: intersect;
}
.bg img {
  width: 100%; height: auto; object-fit: fill;
  transform-origin: 50% 40%;
  animation: kenburns 22s ease-in-out infinite alternate;
  transition: filter .6s var(--ease);
}
.panel-l .bg img { animation-delay: -8s; }
/* Animations vidéo (poussée de caméra, aller-retour sans coupure) : même boîte que les photos qu'elles remplacent.
   Le mouvement est déjà dans la vidéo, donc pas de zoom CSS en plus. */
.bg video { display: block; width: 100%; height: auto; object-fit: fill; background: transparent; transition: filter .6s var(--ease); }
.panel:hover .bg video { filter: saturate(1.15) brightness(1.08); }
.panel { cursor: pointer; }
.panel:hover .bg img { filter: saturate(1.15) brightness(1.08); }

.shade { position: absolute; inset: 0; pointer-events: none; }
.panel-t .shade {
  background:
    radial-gradient(55% 40% at 22% 78%, #141114c0, transparent 75%),
    linear-gradient(0deg, #141114f0 0%, #141114a0 22%, transparent 48%),
    linear-gradient(180deg, #141114b3 0%, transparent 20%);
}
.panel-l .shade {
  background:
    radial-gradient(55% 40% at 78% 24%, #57103990, transparent 75%),
    linear-gradient(0deg, #571039c8 0%, #57103970 16%, transparent 38%),
    linear-gradient(180deg, #57103980 0%, transparent 20%);
}
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.panel-l .fx { mix-blend-mode: normal; }

/* ============ SCÈNE (logo + texte) ============ */
.stage {
  position: absolute;
  top: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 8px) 24px calc(var(--ticker-h) + 32px);
}
.panel-t .stage { left: 0; width: calc(var(--split) - 6%); justify-content: flex-start; padding-top: calc(var(--nav-h) + 30px + .474 * var(--bgw)); }
.panel-l .stage { left: calc(var(--split) + 6%); right: 0; justify-content: flex-end; padding-bottom: calc(.633 * var(--bgw) + 20px); }
.panel-l .eyebrow { display: none; }
.panel-l .lede { margin: 8px 0 14px; }

.logo-box {
  position: relative; flex: none;
  height: var(--logo-h);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(16px, 3.2vh, 32px);
}
.logo-par { height: 100%; flex: none; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .35s var(--ease); }
.logo-float { height: 100%; animation: bob 5.5s ease-in-out infinite; }
.logo-float-l { animation-duration: 6.5s; animation-delay: -2s; }
.logo { height: 100%; width: auto; max-width: none; flex: none; object-fit: contain; }
.logo-t { filter: drop-shadow(0 0 20px #ff3b2f40) drop-shadow(0 2px 3px #000c) drop-shadow(0 8px 18px #000b); } /* logo blanc : ombre franche pour rester net sur la table */
.logo-l {
  border-radius: 50%;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 10px 24px #3a0a2699);
  box-shadow: 0 0 0 5px #ffffffd9, 0 0 44px 6px #ff8dc088;
}

/* Autocollant Menu 15$ — posé sur le bord bas-droite du logo */
.sticker {
  position: absolute;
  left: calc(50% + var(--logo-h) * .28);
  bottom: calc(var(--logo-h) * -.06);
  width: calc(var(--logo-h) * .62);
  transform: rotate(-9deg);
  animation: wobble 4.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px #2a061c88);
  transition: scale .3s var(--ease);
  z-index: 2;
}
.sticker img { width: 100%; height: auto; }
.sticker:hover, .sticker:focus-visible { scale: 1.12; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  padding: 0 0 10px;
  position: relative;
}
.eyebrow::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 34px; height: 2px; border-radius: 2px;
  transform: translateX(-50%); background: var(--gold);
}
.panel-l .eyebrow::after { background: var(--pink-soft); }

.lede {
  margin: 14px 0 24px;
  max-width: 400px;
  min-height: 2.9em;
  font-family: 'Kalam', cursive; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 2px 10px #141114, 0 0 2px #141114;
}
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ BOUTONS ============ */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 100px; border: 2px solid transparent;
  font: 800 14px/1 'Manrope', sans-serif; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.pill::before {                       /* éclat qui traverse au survol */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, #ffffff66, transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.pill:hover::before { left: 130%; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill .arr { display: inline-block; transition: transform .25s var(--ease); }
.pill:hover .arr { transform: translateX(5px); }
.pill-cream { background: var(--cream); color: var(--ink); box-shadow: 0 8px 22px #0006; }
.pill-cream:hover { background: #fff; box-shadow: 0 12px 28px #0008, 0 0 0 4px #c9a35c66; }
.pill-pink { background: var(--pink-deep); color: #fff; box-shadow: 0 8px 22px #57103980; }
.pill-pink:hover { background: var(--pink); box-shadow: 0 12px 28px #57103999, 0 0 0 4px #ff8dc066; }
.pill-outline { border-color: var(--cream); color: var(--cream); background: #14111433; backdrop-filter: blur(6px); }
.pill-outline:hover { background: var(--cream); color: var(--ink); }
:is(a, button):focus-visible { outline: 3px solid #ffda77; outline-offset: 4px; }

/* ============ NAV ============ */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 3vw, 44px);
  background: linear-gradient(#141114cc, transparent);
}
.nav-reserve { justify-self: start; min-height: 44px; padding: 0 22px; }
.nav-addr {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 100px; background: #14111466; backdrop-filter: blur(6px);
  border: 1px solid #ffffff29;
  transition: background-color .25s, border-color .25s;
}
.nav-addr svg { color: var(--pink-soft); }
.nav-addr:hover { background: #141114b3; border-color: #ffffff66; }
.nav-links { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-link {
  white-space: nowrap;
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 800; text-decoration: none; color: #fff; text-shadow: 0 1px 8px #000a;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--pink-soft); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-links .pill { min-height: 44px; padding: 0 22px; }

/* ============ COUTURE + SCEAU ============ */
.seam {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  clip-path: polygon(calc(var(--split) + 8% - 2px) 0, calc(var(--split) + 8% + 2px) 0, calc(var(--split) - 8% + 2px) 100%, calc(var(--split) - 8% - 2px) 100%);
  background: linear-gradient(180deg, var(--gold), var(--pink-soft) 50%, var(--pink));
  background-size: 100% 300%;
  animation: shimmer 6s linear infinite;
  filter: drop-shadow(0 0 6px #ffffff88);
}
.seal {
  position: absolute; z-index: 7; left: var(--split); top: calc(50% - var(--ticker-h) / 2); translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); color: var(--pink-deep);
  font: 800 34px/1 'Baloo 2', cursive;
  box-shadow: 0 0 0 4px var(--ink), 0 10px 26px #0009;
  cursor: grab; touch-action: none; user-select: none;
}
.seal span { transform: translateY(-2px); }
.seal::before, .seal::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink-soft);
  animation: ping 3s ease-out infinite;
}
.seal::after { animation-delay: 1.5s; }
.seal.is-drag { cursor: grabbing; scale: 1.08; }
.hero.dragging, .hero.dragging .panel, .hero.dragging .seam { transition: none; }
.seal:focus-visible { outline: 3px solid #ffda77; outline-offset: 8px; }
.chev { position: absolute; top: 50%; translate: 0 -54%; font: 800 26px/1 'Manrope', sans-serif; color: #fff; text-shadow: 0 2px 8px #000a; font-style: normal; pointer-events: none; }
.chev-l { right: calc(100% + 10px); animation: nudge-l 1.8s ease-in-out infinite; }
.chev-r { left: calc(100% + 10px); animation: nudge-r 1.8s ease-in-out infinite; }
@keyframes nudge-l { 50% { transform: translateX(-6px); } }
@keyframes nudge-r { 50% { transform: translateX(6px); } }

/* ============ BANDEAU ============ */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: var(--ticker-h);
  overflow: hidden; display: flex; align-items: center;
  background: #141114d9; backdrop-filter: blur(10px);
  border-top: 1px solid #ffffff1f;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font: 800 13px/1 'Manrope', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--butter);
  white-space: nowrap;
}
.ticker li::after { content: "✦"; color: var(--pink-soft); font-size: 12px; letter-spacing: 0; }
.ticker li:nth-child(even)::after { color: var(--gold); }

/* ============ ENTRÉE ============ */
.reveal { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.panel-t { animation: slide-t 1s var(--ease) both; }
.panel-l { animation: slide-l 1s var(--ease) both; }

/* ============ KEYFRAMES ============ */
@keyframes kenburns { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-9deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slide-t { from { translate: -6% 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes slide-l { from { translate: 6% 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes shimmer { to { background-position: 0 300%; } }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ MOBILE : deux univers empilés, un seul écran (cible iPhone 15 Pro Max 430×932) ============ */
@media (max-width: 819px) {
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-h: calc(60px + var(--safe-top));
    --ticker-h: calc(44px + var(--safe-bottom));
    --logo-h: clamp(104px, 15.5svh, 150px);
    --cut: 22px;
  }
  .hero {
    height: 100svh; min-height: 640px;
    --v: .45;
    display: grid; grid-template-rows: calc((max(640px, 100svh) - var(--ticker-h)) * var(--v)) minmax(0, 1fr); padding-bottom: var(--ticker-h);
    transition: --v .6s cubic-bezier(.4, 0, .2, 1);
  }
  .nav { grid-template-columns: auto 1fr; padding: var(--safe-top) 16px 0; }
  .nav-addr, .nav-link { display: none; }
  .nav-links { justify-self: end; }
  .nav-reserve, .nav-links .pill { min-height: 44px; padding: 0 18px; font-size: 13px; }

  .panel { position: relative; inset: auto; min-height: 0; }
  .panel-t { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); z-index: 2; }
  .panel-l { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); }
  /* Photos pleine largeur, ancrées : Tobiko sous la navigation (plats en haut, table sombre en bas pour la marque),
     Lyna en bas (mur rose en haut pour la marque et le menu 15 $, bols en bas). */
  .panel-t { background: #120807; }
  .panel-l { background: #f6c4d2; }
  .bg, .panel-t .bg, .panel-l .bg { width: 100%; left: 0; right: 0; bottom: auto; height: auto; -webkit-mask-image: none; mask-image: none; }
  .panel-t .bg { top: calc(var(--nav-h) - 27vw); }
  .panel-l .bg { top: auto; bottom: -11vw; }
  .bg video { width: 100%; height: auto; max-width: none; }
  .bg img, .panel-t .bg img, .panel-l .bg img { width: 100%; height: auto; max-width: none; object-fit: fill; animation: none; }
  .panel:hover .bg img, .panel:hover .bg video { filter: none; }
  .stage, .panel-t .stage, .panel-l .stage { position: absolute; inset: 0; left: 0; right: 0; width: auto; display: block; padding: 0; }
  .logo-box { position: absolute; left: 18px; height: 64px; width: auto; margin: 0; }
  .logo-float, .logo-par { height: 100%; }
  .panel-t .logo-box { bottom: calc(var(--cut) + 6px); height: 68px; }
  .panel-l .logo-box { top: calc(var(--cut) + 14px); height: 60px; }
  .logo-t { filter: drop-shadow(0 1px 2px #000d) drop-shadow(0 3px 12px #000c); }
  .logo-l { box-shadow: 0 0 0 3px #fff, 0 6px 16px #57103955; filter: none; }
  .actions { position: absolute; right: 18px; }
  .panel-t .actions { bottom: calc(var(--cut) + 12px); }
  .panel-l .actions { top: calc(var(--cut) + 14px); }
  .actions .pill { min-height: 46px; padding: 0 20px; font-size: 13px; }
  .eyebrow, .lede { display: none; }
  /* Menu 15 $ : l'élément vedette de Lyna */
  .sticker { display: block; left: calc(100% + 4px); top: 6px; bottom: auto; width: clamp(80px, 11.5svh, 120px); z-index: 3; }
  .reveal { opacity: 1; }
  .panel, .reveal, .logo-float { animation: none; }
  .panel-t .shade {
    background:
      linear-gradient(180deg, #141114d9 0, #14111400 calc(var(--nav-h) + 20px)),
      linear-gradient(0deg, #120807 0, #120807d9 60px, #12080700 130px);
  }
  .panel-l .shade { background: linear-gradient(180deg, #f6c4d2d9 0, #f6c4d200 140px); }
  .seam { display: none; }
  .chev { right: auto; left: 50%; rotate: 90deg; font-size: 22px; }
  .chev-l { top: auto; bottom: calc(100% + 4px); translate: -50% 0; }
  .chev-r { top: calc(100% + 4px); translate: -50% 0; }
  .seal { left: 50%; top: calc((100% - var(--ticker-h)) * var(--v)); width: 56px; height: 56px; font-size: 30px; }
  .hero.dragging { transition: none; }
  .ticker { padding-bottom: var(--safe-bottom); }
  .logo-par { transform: none; }
}
/* Téléphones hauts (iPhone Pro Max plein écran) : une phrase d'accroche sous les plats de Tobiko */
@media (max-width: 819px) and (min-height: 900px) and (max-height: 1179px) {
  .hero { --v: .47; }
  .panel-t .lede { display: block; position: absolute; left: 24px; right: 24px; bottom: calc(var(--cut) + 76px); margin: 0 auto; max-width: 340px; min-height: 0; font-size: 16.5px; line-height: 1.4; text-align: center; }
  .sticker { width: 128px; top: 8px; }
}
/* Lyna sur téléphones de taille courante (360×800 à 440×956) : logo, autocollant et bouton se répartissent sur la hauteur,
   au lieu d'être tassés en haut avec un vide avant les bols. L'autocollant suit la largeur pour ne jamais toucher le bouton. */
@media (max-width: 819px) and (min-height: 740px) and (max-height: 1179px) {
  .panel-l .logo-box { left: 18px; top: calc(var(--cut) + 34px); height: 76px; }
  .panel-l .sticker { width: clamp(96px, calc(100vw - 262px), 144px); top: 4px; left: calc(100% + 6px); }
  .panel-l .actions { top: calc(var(--cut) + 82px); right: 16px; }
}

/* Écrans très hauts (cadre étroit et allongé) : mise en page empilée, plus généreuse, pour ne pas laisser de vide */
@media (max-width: 819px) and (min-height: 1180px) {
  .hero { --v: .47; }
  .panel-t .stage, .panel-l .stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 28px; }
  .panel-t .stage { justify-content: center; top: calc(var(--nav-h) + 44vw); bottom: calc(var(--cut) + 62px); }
  .panel-l .stage { justify-content: center; top: calc(var(--cut) + 34px); bottom: 72vw; }
  .logo-box, .panel-t .logo-box, .panel-l .logo-box { position: relative; left: auto; top: auto; bottom: auto; height: 76px; margin: 0 0 10px; flex: none; }
  .panel-l .logo-box { height: 100px; margin: 0 0 54px; transform: translateX(-58px); }
  .sticker { width: 156px; left: calc(100% - 6px); top: -14px; }
  .lede, .actions { flex: none; }
  .panel-t .lede { display: block; font-size: 17px; margin: 2px 0 12px; max-width: 320px; min-height: 0; }
  .panel-l .lede, .panel-l .eyebrow { display: none; }
  .actions, .panel-t .actions, .panel-l .actions { position: static; }
  .actions .pill { min-height: 46px; padding: 0 22px; font-size: 14px; }
}

@media (max-width: 819px) and (max-height: 760px) { .lede { display: none; } .logo-box { margin-bottom: 8px; } }

/* Écrans larges peu hauts : pas de phrase d'accroche, pour que logos et boutons restent dégagés */
@media (min-width: 820px) and (max-height: 800px) {
  .lede { display: none; }
  .panel-t .stage { padding-top: calc(var(--nav-h) + 20px + .474 * var(--bgw)); }
}

/* Paysage bas (téléphone couché) */
@media (min-width: 820px) and (max-height: 560px) {
  :root { --logo-h: clamp(110px, 28vh, 160px); --nav-h: 72px; }
  .lede { display: none; }
  .hero { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
