:root {
  --blanc: #FBF7F0;      /* off-white, the reading ground */
  --beige: #EBE0CF;      /* photo spaces, the index */
  --beige-fonce: #DCCBB2;
  --brun: #5C3A24;       /* the logo's brown */
  --encre: #3A2416;      /* dark brown: running text and the hero field */
  --marge: 20px;
  --t-petit: 1rem;
  --t-texte: 1.125rem;
  --t-sous: 1.5rem;
  --t-titre: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Besley', Georgia, serif;
  --sans: 'Libre Franklin', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 var(--t-texte)/1.5 var(--sans); font-variant-numeric: tabular-nums }
img { display: block; max-width: 100% }
ul { list-style: none; margin: 0; padding: 0 }
h1, h2, h3, h4, p, figure { margin: 0 }
a { color: inherit }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
:focus-visible { outline: 3px solid var(--brun); outline-offset: 2px }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance }
[id] { scroll-margin-top: 12px }

/* The fixed half: on a phone it holds at the top and the carte slides up over it */
.split { background: var(--encre) }
.scene { position: sticky; top: 0; height: 54svh; padding: 12px 12px 0 }
.cadre { position: relative; height: 100%; overflow: hidden; background: var(--brun) }
.cadre > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease }
.cadre > img.on { opacity: 1 }
.cadre > img[data-g="douceurs"], .cadre > img[data-g="boissons"] { object-position: 50% 8% }
.cadre > img[data-g="accueil"] { object-position: 50% 30%; animation: derive 16s var(--sortie) both }
@keyframes derive { from { transform: scale(1.07) } }
/* The monogram: an off-white paper seal hanging from the frame's top edge, away from the name */
.sceau { position: absolute; top: 0; right: 16px; width: 92px; padding: 18px 13px 13px; background: var(--blanc); animation: pose .9s var(--sortie) .15s both }
.sceau img { width: 100% }
@keyframes pose { from { transform: translateY(-100%) } }

.carte { position: relative; z-index: 1; background: var(--blanc) }
.hero { display: flow-root; background: var(--encre); color: var(--blanc); padding: 0 var(--marge) 84px; min-height: 46svh }
h1 { font-size: 25.5vw; font-weight: 500; line-height: .9; letter-spacing: -.04em; margin-top: -.26em; white-space: nowrap; position: relative; animation: monte 1s var(--sortie) both }
@keyframes monte { from { opacity: 0; transform: translateY(.18em) } }
.accroche { margin-top: 18px; max-width: 34ch; animation: monte 1s var(--sortie) .12s both }
.nb { white-space: nowrap }
.bouton { display: none }

.diptyque { display: none }

/* Chapters: a change of the whole field, each one lists its own categories */
.chap { padding: 56px var(--marge) 40px; background: var(--beige) }
.chap h2 { font-size: var(--t-titre) }
.chap p { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px; font-size: var(--t-petit) }
.chap a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px }
.chap-douceurs { background: var(--brun); color: var(--blanc) }
.chap-boissons { background: var(--beige-fonce) }

/* Every section: name, then picture, then items */
.cat { padding: 56px var(--marge) 8px }
.groupe > .cat:last-child { padding-bottom: 72px }
h3 { font-size: 2.125rem; margin-bottom: 20px }
.note { margin: 18px 0 -6px }

/* The photo space. The picture lies on top of a designed plate; if the file is not there yet, the plate shows. */
.ph { position: relative; overflow: hidden; background: var(--beige); aspect-ratio: 4 / 5 }
.ph::before { content: ''; position: absolute; inset: 24%; background: url(logo.svg) center / contain no-repeat; opacity: .3 }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ph.large { aspect-ratio: 16 / 9; margin-inline: calc(var(--marge) * -1) }
.ph.large::before { inset: 32% }

/* Two-ended rows */
.prix { margin-top: 12px }
.ligne, .plat, .verre { position: relative }
.ligne { display: flex; align-items: center; gap: 12px; min-height: 48px }
.nom { font-family: var(--serif); font-weight: 500; font-size: var(--t-texte); letter-spacing: 0; line-height: 1.25 }
.ligne .nom { flex: 1 }
b { font: 600 var(--t-texte)/1.25 var(--sans); white-space: nowrap }

/* Dishes with their own picture */
.plat { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding-block: 12px }
.plat .nom { font-size: var(--t-sous) }
.plat b { display: block; margin: 6px 0 8px }
.plat p { font-size: var(--t-petit); line-height: 1.45 }

/* Glasses and plates: two across, three for the eggs */
.verres { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px }
.verre { display: flex; flex-direction: column }
.verre .nom { display: block; margin-top: 10px }
.verre b { display: block; margin-top: 2px }
.verre:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; gap: 12px; align-items: flex-end }
.verre:last-child:nth-child(odd) .ph { width: calc(50% - 6px); flex: none }
.trois { grid-template-columns: repeat(3, 1fr); gap: 10px }
.trois .ph { aspect-ratio: 1 }
.trois .verre:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0 }
.trois .verre:last-child:nth-child(odd) .ph { width: auto }

/* Milkshakes: one photo space, the four glasses take turns */
.ph.fondu { aspect-ratio: 4 / 3 }
.fondu img { object-position: 50% 28%; opacity: 0; animation: fondu 24s linear infinite }
.fondu img:nth-child(2) { animation-delay: -18s }
.fondu img:nth-child(3) { animation-delay: -12s }
.fondu img:nth-child(4) { animation-delay: -6s }
@keyframes fondu { 0%, 100% { opacity: 0 } 7%, 25% { opacity: 1 } 32% { opacity: 0 } }


/* The thumb bar */
.barre { position: fixed; z-index: 3; inset: auto 0 0 0; display: flex; background: var(--beige-fonce); padding-bottom: env(safe-area-inset-bottom) }
.barre-carte { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 var(--marge); text-align: left; font: 500 var(--t-texte)/1.2 var(--serif); transition: background-color .2s ease }
.barre-carte:active { background: var(--beige) }
.barre-action { font: 600 var(--t-petit)/1 var(--sans); background: var(--brun); color: var(--blanc); padding: 0 14px; min-height: 44px; display: flex; align-items: center }

/* Bottom sheets, opened natively with popover so they also work without script */
[popover] { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 86svh; overflow: auto; margin: 0; border: 0; padding: 20px var(--marge) calc(24px + env(safe-area-inset-bottom)); background: var(--blanc); color: var(--encre); box-shadow: 0 -12px 40px rgb(30 15 5 / .3); /* taste-skill-ignore: a real sheet floating over the page */ transition: translate .35s var(--sortie), display .35s allow-discrete, overlay .35s allow-discrete }
@starting-style { [popover]:popover-open { translate: 0 40px } }
[popover]::backdrop { background: rgb(40 22 12 / .5) }
.sommaire-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px }
.sommaire-tete h2 { font-size: var(--t-sous) }
.fermer { min-height: 44px; padding: 0 0 0 16px; font-weight: 600; font-size: var(--t-petit); text-decoration: underline; text-underline-offset: 3px }
#sommaire .tete { font: 500 var(--t-petit)/1 var(--serif); margin-top: 8px }
#sommaire .tete a { display: flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--brun) }
#sommaire ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px }
#sommaire ul a { display: flex; align-items: center; min-height: 46px; font: 500 var(--t-texte)/1.15 var(--serif); text-decoration: none; transition: translate .25s var(--sortie) }
#sommaire ul a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px }


/* The close: full width, breaks the split */
.fin { position: relative; z-index: 1; background: var(--beige); padding-bottom: 64px }
.fin figure { height: 46svh; overflow: hidden }
.fin figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28% }
.fin-texte { padding: 40px var(--marge) 32px }
.fin-sceau { width: 128px; margin-bottom: 28px }
.fin h2 { font-size: var(--t-sous) }
.fin ul { margin-top: 14px }
.fin a { display: flex; align-items: center; min-height: 56px; font: 500 var(--t-titre)/1.05 var(--serif); letter-spacing: -.02em; text-decoration: none; transition: translate .3s var(--sortie) }

/* Entrances, by kind: rise for words, opening for pictures, row after row for prices. Hidden only once the script runs. */
.js .rv { opacity: 0; translate: 0 20px; transition: opacity .55s ease, translate .7s var(--sortie) }
.js .rv.in { opacity: 1; translate: 0 0 }
.js .ph.rv { translate: 0; clip-path: inset(0 0 14% 0); transition: opacity .5s ease, clip-path .9s var(--sortie) }
.js .ph.rv.in { clip-path: inset(0) }
.js .prix .ligne { opacity: 0; translate: 0 10px; transition: opacity .4s ease, translate .5s var(--sortie); transition-delay: calc(var(--i, 0) * 30ms) }
.js .prix.in .ligne { opacity: 1; translate: 0 0 }
.prix .ligne:nth-child(2) { --i: 1 } .prix .ligne:nth-child(3) { --i: 2 } .prix .ligne:nth-child(4) { --i: 3 } .prix .ligne:nth-child(5) { --i: 4 } .prix .ligne:nth-child(6) { --i: 5 } .prix .ligne:nth-child(n+7) { --i: 6 }

@media (hover: hover) {
  .chap a:hover, #sommaire ul a:hover { text-decoration: underline }
  #sommaire ul a:hover, .fin a:hover { translate: 6px 0 }
}

@media (min-width: 700px) {
  :root { --marge: 56px }
  .hero { padding-bottom: 120px }
  .cat { max-width: 640px; margin-inline: auto; padding-inline: 0 }
  .ph.large { margin-inline: 0 }
  .chap, .hero { padding-inline: max(var(--marge), calc(50% - 320px)) }
  h1 { font-size: 24vw; margin-top: -.3em }
  .barre-carte { justify-content: center; gap: 24px }
  .fin { display: grid; grid-template-columns: 1fr 1fr }
  .fin figure { height: auto; min-height: 60svh }
}

/* Desktop: two halves. The left never moves: the picture above, the whole index below it. */
@media (min-width: 1100px) {
  :root { --marge: clamp(40px, 3.9vw, 56px); --t-texte: 1.1875rem; --index: 276px }
  .split { display: grid; grid-template-columns: 1fr 1fr; align-items: start }
  .scene { height: 100svh; padding: 20px 20px 0; display: flex; flex-direction: column }
  .cadre { flex: 1; min-height: 0 }
  .carte { min-width: 0 }
  .hero { min-height: 100svh; position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100svh; padding: 0 var(--marge) 32px }
  .hero > p, .hero > a { flex: none }
  .diptyque { display: block; position: absolute; top: 20px; right: 20px; left: 0; width: calc(100% - 20px); max-width: none; height: calc(100svh - var(--index) - 20px - 11vw); object-fit: cover; object-position: 50% 0 }
  .accroche { font-size: var(--t-sous); line-height: 1.3; margin-top: 0; max-width: 34ch }
  .bouton { display: inline-flex; align-self: flex-start; align-items: center; min-height: 52px; margin-top: 20px; padding: 0 26px; background: var(--beige); color: var(--encre); font-weight: 600; text-decoration: none; transition: background-color .2s ease, scale .2s var(--sortie) }
  .bouton:hover { background: var(--blanc) }
  .bouton:active { scale: .97 }
  h1 { position: absolute; left: -9vw; bottom: calc(var(--index) - .1em); margin: 0; font-size: min(15.5vw, 34svh) }
  .cat { max-width: none; margin: 0; padding: 88px var(--marge) 8px }
  .chap { padding: 96px var(--marge) 56px }
  h3 { font-size: 2.5rem }
  .plat { grid-template-columns: 30% 1fr; gap: 24px }
  .verres { gap: 32px 16px }
  .ph.large, .ph.fondu { aspect-ratio: 2 / 1 }

  #sommaire { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 0 20px; position: static; flex: none; height: var(--index); width: auto; max-height: none; overflow: hidden; padding: 14px calc(var(--marge) - 20px) 0; background: none; color: var(--blanc); box-shadow: none } /* taste-skill-ignore: removes the sheet shadow on desktop */
  .sommaire-tete { display: none }
  #sommaire ul { display: block }
  #sommaire ul a { min-height: 34px; font-size: 1rem }
  #sommaire .tete { margin: 0; font-size: 1.1875rem; font-weight: 600 }
  #sommaire .tete a { color: var(--beige-fonce); min-height: 40px }

  .barre { display: none }

  .fin { padding: 0; min-height: 90svh }
  .fin-texte { padding: 64px var(--marge); display: grid; align-content: center }
  .fin-sceau { width: 180px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .js .rv, .js .prix .ligne { opacity: 1; translate: 0 0; clip-path: none }
  .js .ph.rv { clip-path: none }
  .ph.fondu { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: auto }
  .fondu img { position: static; opacity: 1; height: auto; aspect-ratio: 1 }
  .cadre > img[data-g] { transition: none }
}

/* Signature: the name settles as the first screen leaves. Static where scroll timelines are missing. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes pese { to { scale: .93 } }
    h1 { animation: monte 1s var(--sortie) both, pese linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 90svh; transform-origin: 0 100% }
  }
}
