/* =========================================================
   Pizzeria B52 — feuille de style vitrine
   Inspiration : comptoir méditerranéen, éditorial, sans ombres.
   Couleurs issues du logo : jaune B52, noir four, blanc.
   ========================================================= */
:root {
  /* Couleurs */
  --ink: #23211c;          /* noir four, sous-ton chaud */
  --ink-soft: #4a463c;
  --cream: #fff4ec;        /* canevas */
  --peach: #f6e6d9;        /* surface secondaire */
  --yellow: #f9d337;       /* jaune exact du logo */
  --yellow-deep: #e9bd12;
  --white: #ffffff;
  --line: rgba(35, 33, 28, .9);

  /* Typo */
  --font-body: "IBM Plex Serif", Georgia, serif;
  --font-display: "DM Serif Display", "Playfair Display", Georgia, serif;
  --font-badge: "Inter", system-ui, sans-serif;
  --font-logo: "Archivo Black", "Arial Black", sans-serif;

  /* Formes */
  --r-img: 20px;
  --r-btn: 10px;
  --r-pill: 9999px;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Logo (calque jaune + mot PIZZERIA) ---------- */
.logo { display: block; overflow: visible; }
.logo text {
  font-family: var(--font-logo);
  font-size: 27px;
  text-anchor: middle;
  fill: var(--logo-word, var(--ink));
  letter-spacing: 1px;
}

/* ---------- Typo display ---------- */
.h-xl, .h-lg, .h-sm, .hero__title { font-family: var(--font-display); letter-spacing: -0.025em; }
.h-xl { font-size: clamp(54px, 9vw, 120px); line-height: .9; }
.h-lg { font-size: clamp(42px, 6vw, 80px); line-height: .95; }
.h-sm { font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }

.badge {
  font: 500 13px/1 var(--font-badge);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 20px;
  display: inline-flex; gap: 10px; align-items: center;
}
.badge span { font-size: 15px; }
.badge--light { color: var(--yellow); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 28px;
  border-radius: var(--r-btn);
  font: 700 15px/1 var(--font-body);
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--ghost { background: transparent; color: var(--ink); font-weight: 500; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); font-weight: 500; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; display: inline-flex; gap: 8px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--cream);
  font: 500 15px/1 var(--font-body);
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.pill svg { width: 16px; height: 16px; fill: currentColor; }
.pill:hover { background: var(--ink); color: var(--cream); }
.pill--solid { background: var(--ink); color: var(--cream); }
.pill--solid:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px var(--gutter);
  transition: background-color .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
  --logo-word: var(--white);
  color: var(--white);
}
.nav .logo { width: 96px; transition: width .35s var(--ease); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 16px; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: 10px; }
.nav .pill { background: transparent; border-color: currentColor; color: inherit; }
.nav .pill--solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.nav.is-scrolled {
  background: var(--ink); color: var(--cream);
  border-bottom-color: var(--yellow); padding-block: 8px;
}
.nav.is-scrolled .logo { width: 72px; }
.nav .pill:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nav .pill--solid:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 115%; object-fit: cover;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.08);
  animation: heroZoom 2.2s var(--ease) both;
  will-change: transform;
}
@keyframes heroZoom { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,33,28,.55) 0%, rgba(35,33,28,.15) 35%, rgba(35,33,28,.85) 100%); }
.hero__content { position: relative; padding: 120px var(--gutter) clamp(56px, 9vw, 110px); max-width: 1100px; }
.hero__title { font-size: clamp(60px, 11vw, 150px); line-height: .88; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title em { color: var(--yellow); }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; max-width: 520px; margin: 0 0 32px; opacity: 0; animation: fadeUp .8s .5s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp .8s .65s var(--ease) forwards; }
.hero .badge { opacity: 0; animation: fadeUp .8s .1s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; width: 28px; height: 46px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--yellow); border-block: 1px solid var(--ink); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font: 400 clamp(26px, 3.4vw, 42px)/1 var(--font-display); white-space: nowrap; }
.marquee i { font-style: normal; font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center;
  padding: var(--section) var(--gutter);
}
.split__text { max-width: 540px; justify-self: end; }
.split__text h2 { margin-bottom: 28px; }
.split__text p { font-size: 18px; line-height: 1.55; margin: 0 0 18px; }
.split__text .link-arrow { margin-top: 12px; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); }
.split__media figcaption { font-size: 13px; margin-top: 12px; }

/* ---------- Bandes ---------- */
.band { padding: var(--section) var(--gutter); position: relative; overflow: hidden; }
.band__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.band--yellow { background: var(--yellow); border-block: 1px solid var(--ink); }
.band--ink { background: var(--ink); color: var(--cream); --logo-word: var(--white); }

/* Nuage de mots */
.cloud { position: relative; height: clamp(220px, 28vw, 340px); margin: 40px auto 60px; max-width: 980px; }
.cloud .w {
  position: absolute; font-family: var(--font-display); line-height: 1; white-space: nowrap;
  transition: transform .6s var(--ease);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--rot, 0deg));
}
.w1 { left: 2%;  top: 8%;  font-size: clamp(40px, 6vw, 80px); --rot: -6deg; }
.w2 { left: 38%; top: 0;   font-size: clamp(30px, 4vw, 54px); --rot: 4deg; font-style: italic; }
.w3 { left: 66%; top: 14%; font-size: clamp(46px, 7vw, 96px); --rot: -3deg; }
.w4 { left: 10%; top: 58%; font-size: clamp(34px, 5vw, 66px); --rot: 3deg; font-style: italic; }
.w5 { left: 44%; top: 46%; font-size: clamp(44px, 6.6vw, 90px); --rot: -2deg; }
.w6 { left: 76%; top: 66%; font-size: clamp(28px, 3.6vw, 48px); --rot: 7deg; }
.circled { padding: 0 .2em; }
.circled svg { position: absolute; inset: -18% -14%; width: 128%; height: 136%; overflow: visible; }
.circled ellipse { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 640; stroke-dashoffset: 640; transition: stroke-dashoffset 1.6s var(--ease) .3s; vector-effect: non-scaling-stroke; }
.cloud.is-in .circled ellipse { stroke-dashoffset: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); text-align: left; }
.value { padding: 30px 30px 10px 0; }
.value + .value { border-left: 1px solid var(--ink); padding-left: 30px; }
.value__num { font: 600 13px/1 var(--font-badge); letter-spacing: .1em; }
.value h3 { font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--font-display); margin: 18px 0 12px; }
.value p { margin: 0; font-size: 16px; }

/* ---------- Carte ---------- */
.menu { padding: var(--section) var(--gutter); max-width: 1400px; margin: 0 auto; }
.menu__head { text-align: center; margin-bottom: 40px; }
.menu__note { font-size: 16px; margin: 20px auto 0; max-width: 520px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; position: relative; }
.tab {
  font: 500 16px/1 var(--font-body);
  padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .25s, color .25s;
}
.tab:hover { background: var(--peach); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tab small { font: 600 11px/1 var(--font-badge); margin-left: 6px; opacity: .7; }

.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 30px; }
.dish { display: flex; flex-direction: column; opacity: 0; transform: translateY(24px); animation: dishIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes dishIn { to { opacity: 1; transform: none; } }
.dish__img { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 1 / 1; background: var(--peach); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.06) rotate(1.5deg); }
.dish__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.dish__tag { font: 600 11px/1 var(--font-badge); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; border-radius: var(--r-pill); background: var(--cream); }
.dish__tag--sig { background: var(--yellow); }
.dish__row { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.dish__name { font: 400 30px/1 var(--font-display); }
.dish__dots { flex: 1; border-bottom: 1px dotted var(--ink); transform: translateY(-5px); }
.dish__price { font: 700 18px/1 var(--font-body); white-space: nowrap; }
.dish__desc { font-size: 15px; line-height: 1.45; margin: 10px 0 0; color: var(--ink-soft); }
.dish--off { opacity: .45 !important; }
.dish--off .dish__img::after { content: "Victime de son succès"; position: absolute; inset: auto 14px 14px auto; background: var(--ink); color: var(--cream); font: 600 11px/1 var(--font-badge); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-radius: var(--r-pill); }
.menu__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 72px; }

/* ---------- Citation ---------- */
.quote .logo--xl { width: min(380px, 70vw); margin: 0 auto 48px; }
.quote__text { font: 400 clamp(32px, 4.6vw, 64px)/1.05 var(--font-display); max-width: 980px; margin: 0 auto; letter-spacing: -0.02em; }
.quote__text em { color: var(--yellow); }

/* ---------- Infos ---------- */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); padding: var(--section) var(--gutter); max-width: 1200px; margin: 0 auto; }
.infos h2 { margin-bottom: 28px; }
.infos address { font-style: normal; font-size: 20px; line-height: 1.5; margin-bottom: 30px; }
.infos__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.infos__col:last-child { background: var(--peach); border-radius: var(--r-img); padding: 30px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.hours th { text-align: left; font-weight: 500; padding: 12px 0; }
.hours td { text-align: right; padding: 12px 0; }
.hours tr { border-bottom: 1px solid rgba(35,33,28,.25); }
.hours td span { white-space: nowrap; }
.hours td span + span::before { content: " · "; }
@media (max-width: 640px) {
  .hours td span { display: block; }
  .hours td span + span::before { content: none; }
}
.hours tr.is-today { font-weight: 700; }
.hours tr.is-today th::before { content: "→ "; }
.hours__today { margin: 18px 0 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.dot--open { background: #3b9b4a; box-shadow: 0 0 0 0 rgba(59,155,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59,155,74,0); } 100% { box-shadow: 0 0 0 0 rgba(59,155,74,0); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); text-align: center; padding: 72px var(--gutter) 110px; --logo-word: var(--white); }
.logo--footer { width: 170px; margin: 0 auto 28px; }
.footer p { margin: 0 0 12px; }
.footer a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { border-color: currentColor; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.footer__small { font-size: 12px; opacity: .6; margin-top: 24px !important; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Révélations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .split, .infos { grid-template-columns: 1fr; }
  .split__text { justify-self: start; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { border-left: 0; padding: 24px 0 18px; }
  .value + .value { border-top: 1px solid var(--ink); }
}
@media (max-width: 640px) {
  .nav { padding-inline: 16px; }
  .nav__actions .pill:not(.pill--solid) span { display: none; }
  .nav__actions .pill:not(.pill--solid) { padding: 10px 12px; }
  .hero__content { padding-inline: 16px; }
  .hero__scroll { display: none; }
  .split, .band, .menu, .infos { padding-inline: 16px; }
  .cloud { height: 260px; }
  .w1 { left: 0; top: 8%; }
  .w2 { left: 48%; top: 0; }
  .w3 { left: 50%; top: 20%; }
  .w4 { left: 0; top: 72%; }
  .w5 { left: 30%; top: 44%; }
  .w6 { left: 62%; top: 82%; }
  .btn { width: 100%; }
  .hero__ctas, .menu__cta, .infos__ctas { flex-direction: column; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .tab { flex: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--cream); border-top: 1px solid var(--ink);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { text-align: center; padding: 15px; border-radius: var(--r-btn); text-decoration: none; font: 700 15px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--ink); }
  .mobile-bar__order { background: var(--yellow); border-color: var(--yellow) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .hero__title .line > span { transform: none; }
}
