/* Food'andelle. The business card (slate, chalk lettering), the trailer's orange, the red-and-white awning.
   Default = a plain stacked page (no script, reduced motion). html.motion = the scroll-driven version (site.js). */
@font-face { font-family: "Gochi Hand"; src: url(fonts/gochi-hand.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --slate: #38383a;
  --slate-2: #454548;
  --slate-3: #2c2c2e;
  --chalk: #f3f2ef;
  --chalk-soft: #cdc9c1;
  --orange: #f29a2e;
  --orange-2: #e3851a;
  --orange-light: #f7ac52;
  --ink: #2b2b2d;
  --red: #d33a2c;
  --red-2: #bf3326;
  --display: "Gochi Hand", "Comic Sans MS", cursive;
  --text: Figtree, system-ui, sans-serif;
  --m: clamp(16px, 3vw, 48px);          /* page margin */
  --gap: clamp(96px, 12vw, 200px);      /* between sections */
  --nav: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--slate); color: var(--chalk); font: 400 17px/1.55 var(--text); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; }
p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-underline-offset .25s; }
a:hover { text-underline-offset: .34em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
  background: var(--red); color: #fff; font: 600 17px/1 var(--text); text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1.3), background-color .2s;
}
.btn:hover { background: var(--red-2); transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 64px; padding: 0 40px; font-size: 19px; }

/* ---- Nav ------------------------------------------------------------------------------------------ */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m); background: var(--slate); }
.brand { font-family: var(--display); font-size: 26px; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }

/* ---- 1. Intro ---------------------------------------------------------------------------------------- */
.intro { padding-top: var(--nav); background: var(--slate); }
.stage { position: relative; }
.awning {
  height: 74px; transform-origin: top;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='74'%3E%3Crect width='30' height='58' fill='%23d33a2c'/%3E%3Ccircle cx='15' cy='58' r='15' fill='%23d33a2c'/%3E%3Crect x='30' width='30' height='58' fill='%23f3f2ef'/%3E%3Ccircle cx='45' cy='58' r='15' fill='%23f3f2ef'/%3E%3C/svg%3E") repeat-x center top / 60px 74px;
}
.word-wrap { padding: 72px var(--m) 24px; text-align: center; }
.word { font-size: 13.4vw; line-height: .9; text-transform: uppercase; white-space: nowrap; }
.sub { margin-top: 18px; font-size: clamp(18px, 1.6vw, 24px); color: var(--chalk-soft); }
.cue { display: none; }
.scene { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 32px var(--m) 64px; text-align: center; }
.trailer { width: min(88vw, 760px); height: auto; }
.scene-text { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 46ch; }
.headline { font-family: var(--display); font-size: clamp(40px, 4.6vw, 72px); line-height: .95; }
.lede { font-size: clamp(17px, 1.3vw, 20px); }
.next { color: var(--chalk-soft); }
.next strong { color: var(--chalk); }
.soon { color: var(--orange-light); font-weight: 600; white-space: nowrap; }
.photo-window { position: relative; overflow: hidden; background: var(--slate-3); }
.photo-window img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 45% 40%; }
.photo-window figcaption { position: absolute; left: var(--m); bottom: var(--m); right: var(--m); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.statement { font-family: var(--display); font-size: clamp(40px, 6vw, 104px); line-height: .95; background: var(--slate); padding: 10px 20px 14px; }
.credit { background: var(--slate); padding: 6px 12px; font-size: 15px; }

/* ---- 2. Archives ---------------------------------------------------------------------------------- */
.archives { background: var(--chalk); color: var(--ink); padding: var(--gap) var(--m); overflow: hidden; }
.archives-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 6vw; align-items: end; }
.archives h2 { font-size: clamp(56px, 8.4vw, 150px); }
.archives-head p { font-size: clamp(17px, 1.35vw, 21px); max-width: 40ch; }
.archives-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 2vw; margin-top: clamp(64px, 9vw, 140px); }
.arch figcaption { margin-top: 12px; font-size: 15px; color: #57554f; }
.frame { overflow: hidden; background: var(--slate); }
.frame img { width: 100%; height: auto; }
.arch-a { grid-column: 1 / 6; grid-row: 1; }
.arch-b { grid-column: 8 / 13; grid-row: 1; margin-top: 26vh; }
.arch-c { grid-column: 5 / 8; grid-row: 1; align-self: end; margin-bottom: -14vh; position: relative; z-index: 2; }

/* ---- 3. La carte (horizontal) ------------------------------------------------------------------- */
.carte { background: var(--slate); }
.carte-track { display: flex; flex-direction: column; }
.panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(200px, .8fr); align-items: center; gap: 4vw; padding: calc(var(--nav) + 48px) 7vw 64px; min-height: 100svh; }
.panel-intro { background: var(--slate); }
.panel-intro h2 { font-size: clamp(80px, 12vw, 230px); text-transform: uppercase; color: var(--orange); }
.panel-intro p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 24px); max-width: 30ch; }
.big-crepe { width: min(60vh, 40vw, 560px); justify-self: center; }
.price-big { position: absolute; z-index: 0; right: -2vw; bottom: -6vw; font-family: var(--display); font-size: clamp(200px, 32vw, 600px); line-height: .8; white-space: nowrap; pointer-events: none; }
.panel-body { position: relative; z-index: 1; max-width: 520px; }
.panel h3 { font-size: clamp(48px, 6vw, 110px); margin-bottom: 28px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 10px 0; font-size: clamp(18px, 1.5vw, 22px); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.panel-note { margin-top: 12px; font-size: 15px; }
.dish { position: relative; z-index: 1; width: min(34vw, 420px); justify-self: center; }
.cone { width: min(24vw, 300px); }
.panel-galettes { background: var(--orange); color: var(--ink); }
.panel-galettes .price-big { color: var(--orange-2); }
.panel-crepes { background: var(--slate-3); color: var(--chalk); }
.panel-crepes .price-big { color: var(--slate-2); }
.panel-ete { background: var(--red); color: #fff; }
.panel-ete .price-big { color: var(--red-2); }

/* ---- 4. Planning (route on the 1700 map) ----------------------------------------------------- */
.planning { background: var(--slate); padding-top: var(--gap); }
.planning-head { padding: 0 var(--m) 56px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.giant { font-size: clamp(64px, 12.5vw, 230px); text-transform: uppercase; color: var(--orange); }
.planning-head p { max-width: 34ch; font-size: clamp(17px, 1.35vw, 21px); }
.route { position: relative; }
.route-svg { width: 100%; height: auto; aspect-ratio: 1934 / 1108; background: #e9e1d3; }
.route-bed { fill: none; stroke: var(--slate); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 16; opacity: .55; }
.route-line { fill: none; stroke: var(--orange); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.route-pin { fill: var(--chalk); stroke: var(--red); stroke-width: 7; }
.stops { list-style: none; margin: 0; padding: 24px var(--m); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.stop { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--slate-3); }
.stop-date { font-family: var(--display); font-size: clamp(26px, 2.2vw, 36px); color: var(--orange-light); line-height: 1; margin-bottom: 6px; }
.stop-what { font-weight: 600; font-size: 19px; }
.stop-where, .stop-hours { color: var(--chalk-soft); }
.route-caption { position: absolute; right: var(--m); bottom: var(--m); padding: 8px 14px; background: var(--slate); font-size: 15px; }
.months { max-width: 720px; margin: 0 auto; padding: 72px var(--m) var(--gap); }
.months h3 { font-size: clamp(32px, 3vw, 48px); margin-bottom: 20px; }
.month { background: var(--slate-2); margin-top: 6px; }
.month summary { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 600; transition: background-color .2s; }
.month summary::-webkit-details-marker { display: none; }
.month summary:hover { background: #505053; }
.count { margin-left: auto; font-weight: 400; color: var(--chalk-soft); }
.plus { font-family: var(--display); font-size: 28px; line-height: 1; width: 20px; text-align: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1.3); }
.month[open] .plus { transform: rotate(45deg); }
.month ul { list-style: none; margin: 0; padding: 2px 20px 20px; }
.month li { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 14px; align-items: baseline; padding: 7px 0; }
.day { font-family: var(--display); font-size: 21px; color: var(--orange-light); }
.where, .hours { color: var(--chalk-soft); }
.hours { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 5. Réserver ------------------------------------------------------------------------------------ */
.reserve { background: var(--orange); color: var(--ink); overflow: hidden; padding-bottom: var(--gap); }
.marquee { background: var(--ink); color: var(--chalk); padding: 18px 0 22px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; font-family: var(--display); font-size: clamp(40px, 6vw, 100px); line-height: 1; white-space: nowrap; }
.marquee-track span { padding-right: .3em; }
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 6vw; padding: var(--gap) var(--m) 0; align-items: end; }
.reserve h2 { font-size: clamp(56px, 7.5vw, 140px); margin-bottom: 28px; }
.reserve-text p { font-size: clamp(18px, 1.4vw, 22px); max-width: 36ch; }
.ask { margin-top: 24px; max-width: 460px; }
.ask div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 18px; }
.ask dt { font-weight: 700; }
.ask dd { text-align: right; }
.reserve-call { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.phone-big { font-family: var(--display); font-size: clamp(48px, 6.6vw, 120px); line-height: 1; text-decoration: none; white-space: nowrap; }
.mail { font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; }

/* ---- Footer: the back of the card -------------------------------------------------------------- */
.back { background: var(--orange); padding: 0 var(--m) var(--m); }
.back-card { position: relative; max-width: 1100px; min-height: 380px; margin: 0 auto; padding: 72px clamp(24px, 5vw, 72px) 28px; background: var(--slate); color: var(--chalk); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 64px; }
.back-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -45px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Ccircle cx='50' cy='50' r='50' fill='%2338383a'/%3E%3C/svg%3E") repeat-x left top / calc(100% / 12) 100%;
}
.signoff { font-family: var(--display); font-size: clamp(40px, 3.9vw, 58px); line-height: 1; margin-bottom: 20px; }
.back-msg p:not(.signoff) { max-width: 38ch; }
.back-addr { display: flex; flex-direction: column; gap: 12px; padding-right: 120px; font-size: 18px; }
.back-addr a { width: fit-content; }
.stamp { position: absolute; top: 28px; right: 28px; width: 100px; height: auto; padding: 6px; background: var(--chalk); transform: rotate(4deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1.3); }
.stamp:hover { transform: rotate(-3deg) scale(1.08); }
.imprint { grid-column: 1 / -1; align-self: end; margin-top: 32px; text-align: center; font-size: 15px; color: var(--chalk-soft); }

/* ---- Mentions légales: a sheet on the orange ------------------------------------------------- */
.carte-legal { background: var(--orange); padding: 64px 10px; }
.sheet { position: relative; max-width: 640px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 64px); background: var(--slate); color: var(--chalk); }
.legal h1 { font-size: clamp(40px, 3.9vw, 58px); }
.note { margin-top: 12px; font-size: 15px; color: var(--chalk-soft); }
.group { margin-top: 44px; }
.legal .group h2 { font-size: clamp(22px, 1.8vw, 26px); color: var(--orange); margin-bottom: 10px; }
.legal .group p + p { margin-top: 8px; }

/* =====================================================================================================
   Scroll-driven version: html.motion is set in <head> (no reduced motion) and confirmed by site.js.
   ===================================================================================================== */
html.motion .intro { padding-top: 0; }
html.motion .stage { height: 100svh; overflow: hidden; }
html.motion .awning { position: absolute; z-index: 3; top: var(--nav); left: 0; right: 0; }
html.motion .word-wrap { position: absolute; inset: var(--nav) 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--m); }
html.motion .cue { display: block; position: absolute; bottom: 28px; left: 50%; translate: -50% 0; font-size: 15px; color: var(--chalk-soft); }
html.motion .cue::after { content: ""; display: block; width: 14px; height: 14px; margin: 10px auto 0; background: var(--orange); border-radius: 50%; }
html.motion .scene { position: absolute; inset: calc(var(--nav) + 74px) 0 0; justify-content: center; gap: 2.4vh; padding: 0 var(--m) 3vh; }
html.motion .trailer { width: min(86vw, 760px, calc((100svh - 470px) * 1.78)); min-width: 260px; }
html.motion .photo-window { position: absolute; inset: 0; z-index: 4; clip-path: inset(50% 50% 50% 50%); }
html.motion .photo-window img { aspect-ratio: auto; }
html.motion .photo-window figcaption { bottom: 6vh; }

html.motion .carte { height: 100svh; overflow: hidden; }
html.motion .carte-track { flex-direction: row; width: max-content; height: 100%; }
html.motion .panel { width: 100vw; height: 100%; min-height: 0; flex: none; }
html.motion .panel-intro { width: 88vw; }

html.motion .route { height: 100svh; overflow: hidden; }
html.motion .route-svg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
html.motion .stops { position: absolute; z-index: 2; left: var(--m); top: 50%; translate: 0 -50%; width: min(420px, 36vw); height: 260px; padding: 0; display: block; }
html.motion .stop { position: absolute; inset: 0 0 auto; visibility: hidden; }
html.motion .route-caption { z-index: 2; }

/* Short landscape screens (small laptops): a bigger trailer, a tighter text block under it. */
@media (min-width: 821px) and (max-height: 720px) {
  html.motion .trailer { width: min(86vw, 760px, calc((100svh - 360px) * 1.78)); }
  html.motion .scene-text { gap: 10px; }
  html.motion .headline { font-size: clamp(32px, 6vh, 48px); }
  html.motion .lede { display: none; }
}

/* ---- Phone ----------------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  :root { --nav: 56px; }
  .nav nav a:not(.btn) { display: none; }
  .awning { height: 56px; background-size: 46px 56px; }
  .archives-head { grid-template-columns: 1fr; }
  .archives-grid { grid-template-columns: repeat(6, 1fr); }
  .arch-a { grid-column: 1 / 6; }
  .arch-b { grid-column: 3 / 7; grid-row: 2; margin-top: 9vh; }
  .arch-c { grid-column: 1 / 4; grid-row: 3; margin: 7vh 0 0; align-self: start; }
  .photo-window img { object-position: 20% 40%; }
  .panel { grid-template-columns: 1fr; align-content: center; gap: 28px; padding: calc(var(--nav) + 24px) 24px 40px; }
  .big-crepe { width: min(70vw, 42vh); }
  .dish { width: min(46vw, 26vh); grid-row: 1; justify-self: start; }
  .cone { width: min(32vw, 22vh); }
  .price-big { font-size: 58vw; bottom: -4vw; }
  .panel h3 { margin-bottom: 14px; }
  .items li { padding: 6px 0; }
  .reserve-grid { grid-template-columns: 1fr; }
  .phone-big { font-size: 13vw; }
  .back-card { grid-template-columns: 1fr; padding-top: 48px; }
  .back-card::before { top: -29px; height: 30px; background-size: calc(100% / 6) 100%; }
  .back-addr { padding-right: 0; }
  .signoff { padding-right: 76px; }
  .stamp { width: 72px; top: -6px; right: 16px; }
  html.motion .scene { inset: calc(var(--nav) + 56px) 0 0; }
  html.motion .trailer { width: min(88vw, calc((100svh - 470px) * 1.78)); }
  html.motion .panel-intro { width: 100vw; }
  html.motion .stops { left: 16px; right: 16px; top: calc(var(--nav) + 12px); translate: none; width: auto; height: 190px; }
  html.motion .route-caption { left: 16px; right: auto; bottom: 16px; max-width: calc(100% - 32px); }
  .month li { grid-template-columns: 4.4em 1fr; }
  .month .hours { grid-column: 2; margin-top: -6px; }
}
