/* YouChef public homepage — design/youchef-site.pen, "Site · Accueil (FR)". */
:root {
  --paper: #FFFBF4; --flour: #F5EDE0; --card: #FFFFFF; --ink: #1B1A17; --ink-2: #4A453E; --mute: #8C857A;
  --rule: #E9E1D3; --tomato: #EF4A2A; --tomato-deep: #C8361C; --peach: #FFE3D6; --basil: #1E4A38;
  --basil-soft: #DCEBDF; --saffron: #F4B33D; --saffron-soft: #FCEBC4;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--tomato); letter-spacing: 0; }
em.basil { color: var(--basil); }
.wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(1040px, calc(100% - 48px)); }
.center { text-align: center; }
.kicker { margin: 0 0 6px; color: var(--tomato); font-size: 14px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
h2 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.02; }
h2 em { font-size: 1.1em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 34px; padding: 18px 28px; font-family: var(--display); font-weight: 700; font-size: 18px; transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn-tomato { background: var(--tomato); color: #fff; box-shadow: 0 10px 0 -2px var(--tomato-deep); }
.btn-tomato:hover { box-shadow: 0 13px 0 -2px var(--tomato-deep); }
.btn-outline { border: 2px solid var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-small { padding: 13px 20px; font-size: 16px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.logo { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.05em; }
.logo span { color: var(--tomato); }
.logo-small { font-size: 24px; }
.nav-links { display: flex; gap: 36px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--tomato); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 20px 0 90px; }
.badge { display: inline-flex; gap: 8px; margin: 0 0 26px; background: var(--saffron-soft); color: #7A5A12; border-radius: 20px; padding: 8px 14px; font-size: 14.5px; font-weight: 700; }
h1 { font-size: clamp(52px, 6.4vw, 88px); line-height: .95; letter-spacing: -0.05em; }
h1 em { display: block; font-size: 1.2em; line-height: 1.05; }
.wink { display: inline-block; font-style: normal; margin-left: 14px; font-size: .6em; transform: rotate(-12deg); animation: wink 3s ease-in-out infinite; }
.lead { max-width: 560px; margin: 26px 0 30px; color: var(--ink-2); font-size: 21px; line-height: 1.45; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 30px 0 0; color: var(--mute); font-size: 14px; font-weight: 700; }
.platforms span { color: var(--ink-2); font-weight: 600; }

.hero-visual { position: relative; height: 640px; }
.blob { position: absolute; border-radius: 50%; }
.blob-peach { left: 30px; top: 40px; width: 540px; height: 540px; background: var(--peach); }
.blob-saffron { left: 420px; top: 440px; width: 170px; height: 170px; background: var(--saffron-soft); }
.phone { position: absolute; left: 170px; top: 20px; width: 300px; height: 600px; background: var(--ink); border-radius: 48px; padding: 10px; transform: rotate(4deg); box-shadow: 0 30px 60px -20px rgba(27,26,23,.35); animation: float 6s ease-in-out infinite; }
.screen { height: 100%; border-radius: 39px; overflow: hidden; background: var(--paper); }
.dish { width: 100%; height: 280px; object-fit: cover; }
.panel { padding: 16px 18px; }
.meta { margin: 0 0 8px; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.recipe-title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -0.03em; }
.stats { display: flex; background: rgba(255,227,214,.6); border-radius: 14px; padding: 9px 0; margin-bottom: 10px; }
.stats span { flex: 1; text-align: center; color: var(--tomato-deep); font-size: 10.5px; font-weight: 600; }
.stats b { display: block; color: var(--tomato); font-family: var(--display); font-size: 17px; }
.ing { display: flex; align-items: center; margin: 7px 0; font-size: 13px; }
.ing i { width: 28px; height: 28px; border-radius: 50%; background: var(--flour); display: grid; place-items: center; font-style: normal; margin-right: 10px; font-size: 14px; }
.sticker { position: absolute; border-radius: 22px; padding: 12px 18px; font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(27,26,23,.35); }
.sticker-basil { left: 330px; top: 95px; background: var(--basil); color: #fff; transform: rotate(-8deg); animation: wobble 5s ease-in-out infinite; }
.sticker-card { left: 350px; top: 340px; background: var(--card); border: 1.5px solid var(--rule); transform: rotate(6deg); animation: wobble 6s ease-in-out -2s infinite; }
.sticker-saffron { left: 10px; top: 210px; background: var(--saffron); transform: rotate(-10deg); animation: wobble 5.5s ease-in-out -1s infinite; }
.hero-chef { position: absolute; left: 0; top: 395px; width: 230px; height: 260px; object-fit: contain; animation: bounce 2.6s ease-in-out infinite; transform-origin: bottom center; }

/* Marquee */
.marquee { background: var(--tomato); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -0.03em; white-space: nowrap; }
.marquee b { color: var(--saffron); font-size: 28px; align-self: center; }

/* How it works */
.how { padding: 120px 0 110px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; }
.aside { max-width: 300px; margin: 0; color: var(--mute); font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { position: relative; height: 300px; border-radius: 36px; overflow: hidden; margin-bottom: 20px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.step-card:hover { transform: rotate(0) scale(1.03) !important; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(1.5deg); } .tilt-l2 { transform: rotate(-1deg); }
.bg-peach { background: var(--peach); } .bg-saffron { background: var(--saffron-soft); } .bg-basil-soft { background: var(--basil-soft); }
.num { position: absolute; left: 26px; top: 0; font-family: var(--serif); font-style: italic; font-size: 150px; line-height: 1; color: rgba(27,26,23,.15); }
.step-card img { position: absolute; right: 30px; bottom: 0; width: 250px; height: 250px; object-fit: contain; }
.steps h3 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Features bento */
.features { padding: 40px 0 110px; }
.features h2 { margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); }
.tile i { font-style: normal; font-size: 44px; line-height: 1; margin-bottom: auto; }
.tile h3 { font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; }
.tile p { margin: 0; opacity: .85; }
.bento .tile { grid-column: span 2; }
.bento .span-2 { grid-column: span 4; }
.tile-basil { background: var(--basil); color: var(--paper); }
.tile-saffron { background: var(--saffron); }
.tile-basil-soft { background: var(--basil-soft); color: var(--basil); }
.tile-peach { background: var(--peach); }
.tile-ink { background: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips span { background: rgba(255,255,255,.12); border-radius: 16px; padding: 8px 13px; font-size: 14px; font-weight: 700; }
.chips .chip-saffron { background: var(--saffron); color: var(--ink); }

/* Before / after */
.before-after { background: var(--flour); padding: 110px 0; }
.before-after h2 { margin-bottom: 36px; }
.compare { border: 1.5px solid var(--rule); border-radius: 28px; overflow: hidden; background: var(--flour); }
.compare .row { display: grid; grid-template-columns: 1fr 1fr; }
.compare .row span { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--rule); font-size: 18px; }
.compare .row span:first-child { color: var(--mute); }
.compare .row span:last-child { background: #fff; font-weight: 700; }
.compare .row:last-child span { border-bottom: 0; }
.compare .head span { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 18px 28px; }
.compare .head span:first-child { background: var(--rule); }
.compare .head span:last-child { background: var(--tomato); color: #fff; }
.compare i { font-style: normal; font-size: 24px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 380px 1fr; gap: 80px; padding: 110px 0; }
.faq h2 { font-size: 52px; }
.serif-tomato { font-family: var(--serif); font-style: italic; color: var(--tomato); font-size: 30px; line-height: 1.15; margin: 14px 0 20px; }
.faq-title img { width: 200px; animation: bounce 3s ease-in-out infinite; }
details { border-bottom: 1.5px solid var(--rule); padding: 24px 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tomato); font-size: 30px; line-height: .8; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; max-width: 720px; color: var(--ink-2); }

/* Final CTA */
.final { padding-bottom: 110px; }
.final-card { position: relative; overflow: hidden; background: var(--basil); border-radius: 44px; padding: 70px 72px; min-height: 440px; }
.final-card::before { content: ""; position: absolute; right: -40px; top: -60px; width: 520px; height: 520px; border-radius: 50%; background: rgba(244,179,61,.2); }
.final-text { position: relative; max-width: 720px; }
.final h2 { color: var(--paper); font-size: clamp(56px, 7vw, 84px); line-height: 1; letter-spacing: -0.05em; }
.final h2 em { display: block; color: var(--saffron); font-size: 1.2em; }
.final p { color: rgba(255,251,244,.8); font-size: 19px; max-width: 520px; margin: 22px 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { background: var(--paper); border-radius: 18px; padding: 12px 22px; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.store:hover { transform: translateY(-3px) rotate(1deg); }
.store small { display: block; font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--mute); }
.final-chef { position: absolute; right: 60px; bottom: 0; width: 380px; height: 400px; object-fit: contain; animation: bounce 2.8s ease-in-out infinite; transform-origin: bottom center; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 0; border-top: 1px solid var(--rule); color: var(--mute); font-size: 14.5px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 24px; font-weight: 600; color: var(--ink-2); }

/* Motion */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-10px) scaleY(1.02); } }
@keyframes wink { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(8deg) scale(1.1); } }
@keyframes wobble { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Tablet / phone */
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 640px; max-width: 620px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile, .bento .span-2 { grid-column: span 1; }
  .bento .span-2 { grid-column: span 2; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .final-chef { opacity: .35; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .lead { font-size: 18px; }
  /* The composed visual keeps its desktop geometry and is scaled down to
     the column (342 px on a 390 px phone). */
  .hero-visual { width: 620px; height: 640px; max-width: none; margin: 0; zoom: .55; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile, .bento .span-2 { grid-column: span 1; }
  .compare .row span { padding: 16px; font-size: 15px; }
  .final-card { padding: 44px 28px 260px; }
  .final-chef { opacity: 1; width: 240px; height: 250px; right: 20px; }
  .marquee span { font-size: 26px; }
}
