/* Le Napolitain : bandes de couleur pleines, typographie en blocs, zéro arrondi. */

:root {
  --orange: #ff4100;
  --yellow: #ffc700;
  --blue: #1573dd;
  --charcoal: #292a2c;
  --black: #000;
  --pink: #fdbeba;
  --cream: #fee3c1;
  --lemon: #f6e653;

  --display: 'Bowlby One SC', 'Arial Black', sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 60px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--orange);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  font-variation-settings: 'wdth' 100;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--yellow);
  padding: 10px 16px; font-family: var(--display); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* Lettres découpées */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.split-hover .char { transition: translate .35s var(--ease-spring), rotate .35s var(--ease-spring), scale .35s var(--ease-spring); }
.split-hover .char:hover { translate: 0 -0.14em; rotate: -7deg; scale: 1.08; }

/* ---------- curseur ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  }
  .cursor-dot, .cursor-ring {
    position: absolute; left: 0; top: 0; border-radius: 50%;
  }
  .cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--charcoal); }
  .cursor-dot, .cursor-ring { will-change: transform; }
  .cursor-ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 2px solid var(--charcoal);
    transition: scale .35s var(--ease-out), background-color .35s;
  }
  .cursor.is-hover .cursor-ring { scale: 2.1; background: rgba(255, 199, 0, .35); }
  .cursor.is-down .cursor-ring { scale: 0.7; }
}

/* ---------- illustrations converties en images ---------- */
.spin { width: 100%; height: 100%; will-change: transform; }
.spin canvas, .layer canvas, .ing canvas { display: block; width: 100%; height: 100%; }
.scene { position: relative; width: 100%; }
.layer { position: absolute; }
.layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dough-ball, .stretch-disc, .oven-pizza, .slice-piece, .layer.flames { will-change: transform; }
.dough-ball { transform-origin: 50% 100%; }
.slice-piece { transform-origin: 52% 39.2857%; }
.oven-mouth { overflow: hidden; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: transparent;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.nav.is-solid { background: var(--orange); }
.nav.is-hidden { transform: translateY(-110%); }

.logo {
  justify-self: center;
  font-family: var(--sans);
  font-variation-settings: 'wdth' 125;
  font-weight: 850;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.05em;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 18px; line-height: 1;
  color: var(--yellow);
  text-decoration: none;
  justify-self: start;
  padding: 8px 0;
}
.nav-cta { justify-self: end; }
.nav-zig {
  position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  color: var(--yellow);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s var(--ease-out);
}
.nav-zig svg { width: 100%; height: 100%; }
.nav-link:hover .nav-zig, .nav-link:focus-visible .nav-zig { clip-path: inset(0 0 0 0); }
.nav-link-text { display: inline-block; transition: transform .35s var(--ease-spring); }
.nav-link:hover .nav-link-text { transform: rotate(-4deg) scale(1.08); }

.nav-ring {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--blue);
  position: relative;
  transition: transform .5s var(--ease-spring);
}
.nav-ring::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--yellow);
  transform: scale(0); transition: transform .35s var(--ease-spring);
}
.nav-cta:hover .nav-ring { transform: rotate(180deg) scale(1.25); }
.nav-cta:hover .nav-ring::after { transform: scale(1); }

/* ---------- hero ---------- */
.hero {
  --pz: min(80svh, 66vw);
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--orange);
}

.hero-title {
  position: absolute; z-index: 3;
  inset: clamp(64px, 8vw, 84px) 0 120px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  font-family: var(--display);
  font-weight: 400;
  color: var(--yellow);
  line-height: 0.89;
  letter-spacing: -0.009em;
  text-align: center;
  pointer-events: none;
}
.hero-title .fit {
  -webkit-text-stroke: 0.018em var(--charcoal);
  paint-order: stroke fill;
  text-shadow:
    0.01em 0.01em 0 var(--charcoal), 0.02em 0.02em 0 var(--charcoal),
    0.03em 0.03em 0 var(--charcoal), 0.04em 0.04em 0 var(--charcoal);
}
.hero-title .char { pointer-events: auto; }
.hero-title .fit { will-change: transform; }
.fit { display: block; width: max-content; margin-inline: auto; white-space: nowrap; font-size: 15vw; }

.hero-stage {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: var(--pz); height: var(--pz);
  margin: calc(var(--pz) / -2) 0 0 calc(var(--pz) / -2);
}
.hero-pizza { width: 100%; height: 100%; will-change: transform; }


.hero-sub {
  position: absolute; z-index: 3;
  left: var(--gutter); top: 44%;
  max-width: min(24ch, calc((100vw - var(--pz)) / 2 - var(--gutter) - 10px));
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-badge {
  position: absolute; z-index: 4;
  right: var(--gutter); top: 38%;
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
  text-decoration: none;
}
.badge-star { position: absolute; inset: 0; }
.badge-star svg, .dish-star svg, .feature-star svg, .reserver-star svg { width: 100%; height: 100%; animation: spin 36s linear infinite; }
.badge-text {
  position: relative;
  font-family: var(--display);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1;
  text-align: center;
  color: var(--charcoal);
  max-width: 8ch;
  transform: rotate(-10deg);
  transition: transform .4s var(--ease-spring);
}
.hero-badge:hover .badge-text { transform: rotate(6deg) scale(1.12); }

.zig { position: absolute; top: 18%; width: 22px; height: 60%; color: var(--yellow); z-index: 1; }
.zig svg { width: 100%; height: 100%; }
.zig-left { left: 12px; }
.zig-right { right: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- bandeaux ---------- */
.ribbons {
  position: relative; z-index: 5;
  margin-top: -90px;
  height: 200px;
  pointer-events: none;
  overflow-x: clip;
}
.ribbon {
  position: absolute; left: -5vw; width: 110vw;
  overflow: hidden;
  padding: 16px 0;
}
.ribbon-dark { top: 20px; background: var(--charcoal); color: var(--yellow); transform: rotate(-3deg); }
.ribbon-yellow { top: 96px; background: var(--yellow); color: var(--charcoal); transform: rotate(2deg); }
.ribbon-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}
.ribbon-track i { width: 1.1em; height: 1.1em; display: block; flex: none; }
.ribbon-track i svg { width: 100%; height: 100%; }

/* ---------- titres en relief ---------- */
.title-3d {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: 0.89;
  letter-spacing: -0.009em;
  color: var(--yellow);
  -webkit-text-stroke: 0.022em var(--charcoal);
  paint-order: stroke fill;
  text-shadow:
    0.01em 0.01em 0 var(--orange), 0.02em 0.02em 0 var(--orange), 0.03em 0.03em 0 var(--orange),
    0.04em 0.04em 0 var(--orange), 0.05em 0.05em 0 var(--orange), 0.06em 0.06em 0 var(--orange),
    0.065em 0.07em 0 var(--charcoal);
}
.title-3d-dark {
  color: var(--orange);
  text-shadow:
    0.01em 0.01em 0 var(--charcoal), 0.02em 0.02em 0 var(--charcoal), 0.03em 0.03em 0 var(--charcoal),
    0.04em 0.04em 0 var(--charcoal), 0.05em 0.05em 0 var(--charcoal), 0.06em 0.06em 0 var(--charcoal);
}

/* ---------- carte ---------- */
.carte {
  position: relative;
  background: var(--pink);
  padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(80px, 10vw, 140px);
  margin-top: -110px;
}
.carte-head { text-align: center; margin-bottom: clamp(50px, 7vw, 100px); }
.carte-intro {
  max-width: 38ch; margin: 28px auto 32px;
  font-variation-settings: 'wdth' 112;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.filters { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter, .btn {
  font-family: var(--sans);
  font-variation-settings: 'wdth' 62;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.16;
  color: var(--charcoal);
  background: transparent;
  border: 2px solid var(--blue);
  border-radius: 0;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-spring), border-color .2s;
}
.filter:hover, .btn:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--charcoal); }
.filter:active, .btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--charcoal); }
.filter.is-active { border-color: var(--charcoal); border-width: 3px; padding: 7px 19px; box-shadow: 4px 4px 0 var(--charcoal); transform: translate(-4px, -4px); }

.menu {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(50px, 6vw, 90px) clamp(20px, 3vw, 50px);
}
.dish { text-align: center; }
.dish.is-hidden { display: none; }
.dish-visual {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 22px;
}
.dish-star {
  position: absolute; inset: 0;
  transition: transform .7s var(--ease-spring);
}
.dish-pizza {
  position: absolute; inset: 10%;
  transition: transform 1.1s var(--ease-out);
}

.dish-price {
  position: absolute; top: 2%; right: 4%;
  background: var(--charcoal);
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1;
  padding: 10px 12px 8px;
  transform: rotate(-8deg);
  transition: transform .45s var(--ease-spring);
}
.dish-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.011em;
  transition: scale .4s var(--ease-spring), rotate .4s var(--ease-spring);
}
.dish-desc {
  max-width: 30ch; margin: 10px auto 0;
  font-size: 17px; line-height: 1.45;
}
.dish:hover .dish-star { transform: scale(1.1) rotate(-12deg); }
.dish:hover .dish-pizza { transform: rotate(48deg) scale(1.07); }
.dish:hover .dish-price { transform: rotate(10deg) scale(1.22) translate(6px, -6px); }
.dish:hover .dish-name { scale: 1.06; rotate: -2deg; }

/* ---------- fabrication ---------- */
.process { position: relative; overflow: hidden; }
.process-track { display: flex; width: max-content; will-change: transform; }
.panel {
  position: relative;
  width: 100vw; height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  padding: 90px var(--gutter) 60px;
  overflow: hidden;
}
.panel-intro { background: var(--orange); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.panel-1 { background: var(--cream); }
.panel-2 { background: var(--pink); }
.panel-3 { background: var(--yellow); }

.panel-title {
  font-family: var(--display); font-weight: 400;
  color: var(--yellow);
  font-size: clamp(3.5rem, 12vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.009em;
  max-width: 9ch;
}
.panel-lead {
  margin-top: 32px; max-width: 30ch;
  font-variation-settings: 'wdth' 112;
  font-weight: 600; font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
}
.panel-hand { position: absolute; right: var(--gutter); bottom: 14%; width: clamp(140px, 16vw, 240px); animation: nudge 1.4s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }

.panel-text { position: relative; max-width: 34ch; }
.step-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(7rem, 16vw, 15rem);
  line-height: 0.8;
  color: var(--orange);
  -webkit-text-stroke: 0.02em var(--charcoal);
  paint-order: stroke fill;
  text-shadow: 0.03em 0.03em 0 var(--charcoal), 0.05em 0.05em 0 var(--charcoal);
  margin-bottom: 18px;
}
.panel-3 .step-num { color: var(--yellow); text-shadow: 0.03em 0.03em 0 var(--orange), 0.05em 0.05em 0 var(--charcoal); }
.step-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.92;
  margin-bottom: 18px;
}
.panel-text p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.panel-visual { width: 100%; }


.process-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: rgba(41, 42, 44, .15);
  z-index: 3;
}
.process-progress span { display: block; height: 100%; background: var(--charcoal); transform-origin: 0 50%; transform: scaleX(0); }

.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 0.9s ease-in-out infinite alternate; }
.f2 { animation-duration: .7s; animation-delay: -.2s; }
.f3 { animation-duration: 1.1s; animation-delay: -.5s; }
.f4 { animation-duration: .6s; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  50% { transform: scale(0.92, 1.12) skewX(-4deg); }
  100% { transform: scale(1.06, 0.94) skewX(3deg); }
}

/* ---------- la plus commandée ---------- */
.feature {
  position: relative;
  background: var(--yellow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px) var(--gutter);
  overflow: hidden;
}
.feature .title-3d { font-size: clamp(2.6rem, 5.4vw, 6.4rem); }
.feature-lead {
  margin-top: 28px; max-width: 26ch;
  font-variation-settings: 'wdth' 112;
  font-weight: 600; font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
}
.feature-hand { display: block; width: clamp(130px, 14vw, 220px); margin-top: 40px; animation: nudge 1.4s var(--ease-out) infinite; }
.feature-visual { position: relative; }
.feature-visual { width: min(100%, 760px); justify-self: center; }
.feature-star { position: absolute; left: 52%; top: 39.3%; width: 92%; aspect-ratio: 1; margin: -46% 0 0 -46%; }
.feature-star svg polygon { fill: var(--cream); }
.feature-slice { position: relative; }
.slice-strings { filter: drop-shadow(1px 2px 0 rgba(160, 95, 30, .55)); }

/* ---------- ingrédients ---------- */
.ingredients {
  background: var(--orange);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
}
.ingredients-title {
  font-family: var(--display); font-weight: 400;
  color: var(--yellow);
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.89;
  letter-spacing: -0.009em;
  max-width: 12ch;
  margin-bottom: clamp(40px, 6vw, 90px);
}
.ingredients-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.ingredient-list { list-style: none; margin: 0; padding: 0; border-bottom: 3px solid var(--charcoal); }
.ingredient-list li {
  position: relative;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 12px;
  border-top: 3px solid var(--charcoal);
  isolation: isolate;
}
.ingredient-list li::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.ingredient-list li:hover::before, .ingredient-list li.is-active::before { transform: scaleX(1); }
.ingredient-list strong {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1;
  transition: transform .4s var(--ease-spring);
}
.ingredient-list li:hover strong { transform: translateX(10px); }
.ingredient-list span { font-size: 16px; text-align: right; max-width: 22ch; line-height: 1.35; }

.ingredient-cloud { position: relative; height: clamp(420px, 60vw, 680px); }
.ing { position: absolute; transition: filter .3s; }
.ing { aspect-ratio: 1; will-change: transform; }
.ing > div { width: 100%; height: 100%; transition: transform .6s var(--ease-spring); }
.ing.is-active > div { transform: scale(1.3) rotate(-12deg); }
.ing-tomate { width: 38%; left: 4%; top: 6%; }
.ing-mozzarella { width: 34%; left: 52%; top: 0; }
.ing-basilic { width: 30%; left: 34%; top: 34%; }
.ing-huile { width: 24%; left: 72%; top: 44%; }
.ing-ail { width: 28%; left: 8%; top: 58%; }
.ing-piment { width: 30%; left: 48%; top: 68%; }

/* ---------- réserver ---------- */
.reserver {
  position: relative;
  background: var(--pink);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.reserver .title-3d { position: relative; z-index: 1; }
.infos {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  max-width: 1100px; margin: clamp(50px, 6vw, 90px) auto;
  text-align: left;
}
.info { border-top: 3px solid var(--charcoal); padding-top: 18px; }
.info h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; margin-bottom: 14px; }
.info p { font-size: 18px; line-height: 1.5; }
.info p + p { margin-top: 10px; }
.ctas { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.reserver-star { position: absolute; width: clamp(200px, 26vw, 380px); aspect-ratio: 1; right: -6vw; top: -6vw; opacity: 1; }
.reserver-star svg polygon { fill: var(--cream); }

/* ---------- pied de page ---------- */
.footer {
  background: var(--orange);
  padding: clamp(60px, 8vw, 110px) var(--gutter) 28px;
  overflow: hidden;
}
.footer-word {
  font-family: var(--display);
  color: var(--yellow);
  line-height: 0.89;
  text-align: center;
  letter-spacing: -0.009em;
}
.footer-meta {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 18px;
  border-top: 3px solid var(--charcoal);
  font-size: 16px;
}
.footer-meta a { font-family: var(--display); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- tablette et mobile ---------- */
@media (max-width: 1000px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
  .infos { grid-template-columns: 1fr; max-width: 520px; }
  .feature { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .ingredients-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .process-track { flex-direction: column; width: 100%; }
  .panel { width: 100%; height: auto; min-height: 0; grid-template-columns: 1fr; padding: 80px var(--gutter); }
  .panel-intro { min-height: 70svh; }
  .panel-hand { display: none; }
  .process-progress { display: none; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-link { font-size: 14px; }
  .nav-ring { display: none; }
  .logo { font-size: 15px; }
  .zig { display: none; }
  .hero { --pz: 104vw; min-height: 560px; }
  .hero-title { inset: 64px 0 130px; }
  .hero-sub { display: none; }
  .hero-badge { right: 10px; top: auto; bottom: 205px; width: 100px; }
  .ribbons { margin-top: -120px; height: 160px; }
  .ribbon-yellow { top: 80px; }
  .menu { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .ingredient-list li { flex-direction: column; gap: 6px; }
  .ingredient-list span { text-align: left; }
  .feature { padding-left: 16px; padding-right: 16px; }
}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .cursor { display: none !important; }
}
