/* Jemaah Coffee — M2 « La journée chez Jemaah »
   Charte : sauge #BDC1B3 · terracotta #BF7A69 · terracotta texte #94513F · noir #1D1D1B · lait #FAF8F4
   Teintes ajoutées : sauge claire #E4E6DE, terracotta pâle #F3E4DB (le matin).
   Formes : photos et panneaux à 16 px, boutons en pilule. Rien d'autre. */

:root {
  --lait: #FAF8F4;
  --noir: #1D1D1B;
  --sauge: #BDC1B3;
  --sauge-claire: #E4E6DE;
  --terra: #BF7A69;
  --terra-texte: #94513F;
  --terra-pale: #F3E4DB;
  --texte-doux: #4A4844;

  --display: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif;
  --text: "Work Sans", system-ui, sans-serif;
  --logo: "Amatic SC", "Work Sans", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 16px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--lait);
  color: var(--noir);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--terra); color: var(--noir); }
:focus-visible { outline: 2px solid var(--terra-texte); outline-offset: 3px; border-radius: 4px; }
.infos :focus-visible, .footer :focus-visible { outline-color: var(--terra); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--noir); color: var(--lait); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Boutons, liens ----------
   Survol : seulement opacity et transform (un calque de couleur qui apparaît, un trait qui s'allonge). */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover); opacity: 0; transition: opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--noir); color: var(--lait); --btn-hover: var(--terra-texte); }
.btn--light { background: var(--lait); color: var(--noir); --btn-hover: var(--terra); }
@media (hover: hover) and (pointer: fine) { .btn:hover::before { opacity: 1; } }
.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: currentColor; }

/* ---------- Logo horizontal (charte) ---------- */
.h-lock {
  display: flex; align-items: center; gap: .3em;
  font-family: var(--logo); font-weight: 700; line-height: .9; letter-spacing: .06em;
  color: var(--noir); text-decoration: none; font-size: 30px; --slit: var(--lait);
}
.h-lock .l { display: flex; align-items: baseline; }
.h-lock__branch { width: .9em; height: 1.15em; color: var(--terra); --leaf: var(--terra); }
.bean { display: inline-block; height: .7em; width: auto; vertical-align: -.02em; color: var(--terra); }

/* =========================================================
   1. LE LEVER DE SOLEIL
   ========================================================= */
.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: max(560px, min(100svh, 980px));
  background: var(--lait);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  position: relative; z-index: 3;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav a:not(.btn) { position: relative; font-weight: 500; font-size: 15px; text-decoration: none; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover::after { transform: scaleX(1); } }
@media (max-width: 719px) { .nav a:not(.btn) { display: none; } .h-lock { font-size: 26px; } }

.sky {
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter);
  border-bottom: 2px solid var(--noir);           /* la ligne d'horizon */
  --fs: clamp(96px, min(16.4vw, 52svh), 300px);   /* taille du nom (la branche à gauche prend sa place) */
  --lead: calc(var(--fs) * .86);                   /* place de la branche devant « JEMAAH » */
  --d: min(68svh, 46vw);                          /* diamètre du soleil */
}
/* Le soleil se lève derrière « JEMAAH » (le mot fait environ 2,27 fois la taille de la police). */
.sun, .sun-fx {
  position: absolute;
  left: calc(var(--gutter) + var(--lead) + (2.27 * var(--fs) - var(--d)) / 2);
  bottom: calc(var(--d) * -.22);
  width: var(--d); height: var(--d);
}
.sun { border-radius: 50%; background: var(--terra); will-change: transform; }
.sun-fx { pointer-events: none; }
.ripple {
  position: absolute; inset: 0; border-radius: 50%;
  border: max(2px, calc(var(--d) * .008)) solid var(--terra);
  opacity: 0;
}
/* La goutte : son rond inférieur tombe pile au centre du soleil. */
.drop {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--d) * .08); height: calc(var(--d) * .112);
  margin: calc(var(--d) * -.072) 0 0 calc(var(--d) * -.04);
  fill: var(--terra); opacity: 0;
}
.hero-name {
  position: relative; z-index: 1;
  font-family: var(--logo); font-weight: 700;
  font-size: var(--fs);
  line-height: .8; letter-spacing: .04em;
  display: flex; flex-wrap: wrap; column-gap: .2em;
  padding-bottom: .02em;
  --slit: var(--lait);
}
.hero-name__line { display: flex; align-items: baseline; }
.hero-bean { display: inline-block; margin: 0 .02em; }
.hero-bean .bean { height: .68em; display: block; }

/* La branche du logo pousse à gauche du nom, comme dans le logo de l'en-tête. */
.hero-name { padding-left: var(--lead); }
.hero-name__line--first { position: relative; }
.hero-branch {
  position: absolute; z-index: -1;
  --h: 1.15em;                                   /* hauteur du dessin ; largeur = 0,8 × hauteur (160 × 200) */
  height: var(--h); width: calc(var(--h) * .8);
  right: calc(100% + .01em);                     /* collée au J, la tige penche vers le nom */
  bottom: calc(var(--h) * -.09 + .02em);         /* pied de la tige (y = 152 sur 200) posé sur l'horizon */
  color: var(--noir); overflow: visible;
}
.hero-branch .hb-fill { fill: var(--terra); }
/* Le H et le C que le grain vient cogner */
.hn-h, .hn-c { display: inline-block; }

.ground {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding: clamp(18px, 3svh, 30px) var(--gutter) clamp(20px, 3.4svh, 34px);
}
.signature {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 92, "opsz" 48;
  font-size: clamp(24px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.ground__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ground__place { font-size: 15px; color: var(--texte-doux); }
.today { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.today::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terra); flex: none;
}
.today.is-closed::before { background: transparent; box-shadow: inset 0 0 0 2px var(--terra-texte); }

@media (max-width: 719px) {
  .hero { min-height: max(560px, min(100svh, 700px)); }
  .sky { --fs: clamp(80px, 29vw, 150px); --d: 96vw; --lead: calc(var(--fs) * .8); }
  .sun, .sun-fx { left: auto; right: -46vw; bottom: calc(var(--d) * -.1); }
  .hero-bean .bean { color: var(--terra-texte); }   /* le grain passe devant le soleil : terracotta foncé (charte) pour rester visible */
  .hero-name { flex-direction: column; }
  /* Téléphone : la branche, plus petite, pousse à gauche de « COFFEE », le pied posé sur l'horizon (comme sur ordinateur). */
  .hero-name__line--first { position: static; }
  .hero-branch { --h: 1em; right: auto; left: calc(var(--lead) - var(--h) * .8 - .01em); bottom: calc(var(--h) * -.09 - .005em); }
  .ground { flex-direction: column; align-items: flex-start; }
  .ground__aside { align-items: flex-start; text-align: left; }
  .today, .ground__place { font-size: 14px; }
}

/* États de départ de l'effet d'entrée (posés par le JS seulement) */
/* Retour à la position d'avant un rechargement : la page reste invisible le temps de se mettre en place (≤ 1,5 s). */
html.restoring body { opacity: 0; }
html.js body { transition: opacity .2s ease; }
.intro-pending .hero-name { transform: translateY(105%); }
.intro-pending .sun { transform: scale(0); }
.intro-pending .hero-branch { opacity: 0; }
.intro-pending .hero-bean { opacity: 0; }
.intro-pending .ground, .intro-pending .topbar { opacity: 0; }

/* Heures géantes (partout) */
.clock {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "wdth" 88, "opsz" 96;
  line-height: .86; letter-spacing: -.035em;
  overflow: hidden;                      /* fenêtre du compteur */
  padding-bottom: .04em;
  font-feature-settings: "tnum" 0;
}
.clock__in { display: inline-block; }

/* =========================================================
   2. LA FAÇADE, 8H45
   ========================================================= */
.facade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: clamp(64px, 11vw, 140px) var(--gutter) clamp(72px, 10vw, 140px);
  max-width: 1520px; margin: 0 auto;
}
.clock--facade { font-size: clamp(96px, 19vw, 220px); color: var(--terra-texte); }
.facade__title {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 72;
  font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.02em;
  margin-top: 18px;
}
.facade__lead { margin-top: 18px; max-width: 38ch; color: var(--texte-doux); font-size: 18px; }
.rating { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--terra); }
.rating__stars svg { width: 16px; height: 16px; }
.facade__frame {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 632 / 600;          /* le cadrage du fichier : sans climatiseur ni ombre */
  background: var(--sauge-claire);
}
.facade__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  transform-origin: 50% 50%;
}
.facade__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--texte-doux); }

@media (min-width: 900px) {
  .facade {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
  }
  .facade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .facade__photo { justify-self: end; width: min(100%, 640px); }   /* la photo fait 632 px : pas plus grand */
  .clock--facade { font-size: clamp(120px, 13vw, 210px); }
}

/* =========================================================
   3. LA JOURNÉE
   Par défaut (mobile, sans JS, mouvement réduit) : 4 blocs empilés, chacun dans sa couleur.
   Avec .is-pinned (ordinateur) : une scène collante, les blocs superposés.
   ========================================================= */
.day { position: relative; }
.day__title {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 72;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em;
  padding: 0 var(--gutter) 28px;
}
.moment { position: relative; color: var(--noir); }
.moment__bg { position: absolute; inset: 0; background: var(--bg); }
.moment__inner {
  position: relative;
  display: grid; gap: 28px;
  padding: clamp(56px, 9vw, 96px) var(--gutter);
  max-width: 1520px; margin: 0 auto;
}
.moment .clock { font-size: clamp(120px, 38vw, 300px); }
.moment__title {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 60;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.02em;
  margin-top: 10px; text-wrap: balance;
}
.moment__text > p:not(.clock) { margin-top: 14px; max-width: 36ch; font-size: 18px; }

/* Deux photos de même hauteur, bords alignés en haut et en bas. */
.duo {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  gap: 12px; aspect-ratio: 4 / 3;
}
.duo .ph { display: block; min-width: 0; overflow: hidden; border-radius: var(--radius); }   /* fenêtre : la photo y glisse comme l'heure */
.duo img { width: 100%; height: 100%; object-fit: cover; }
.moment[data-moment="3"] .duo__b img { object-position: 40% 50%; }   /* les tables basses et la banquette */

.ruler { display: none; }

@media (min-width: 900px) {
  .moment__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 5vw; }
  .duo { gap: 16px; aspect-ratio: 16 / 10; }
}

/* --- scène collante (posée par le JS) --- */
.day.is-pinned .day__stage {
  position: relative; z-index: 0;
  height: 100svh; min-height: 540px;
  overflow: hidden;
  background: var(--lait);
}
.day.is-pinned .day__title {
  position: absolute; z-index: 5; left: 0; top: clamp(20px, 4svh, 40px);
  font-size: clamp(20px, 1.7vw, 26px); padding-bottom: 0;
}
.day.is-pinned .moment { position: absolute; inset: 0; }
.day.is-pinned .moment__inner {
  height: 100%;
  padding-top: clamp(64px, 11svh, 104px);
  padding-bottom: clamp(72px, 12svh, 112px);
  align-items: center;
}
.day.is-pinned .moment .clock { font-size: clamp(120px, min(15vw, 30svh), 300px); }
.day.is-pinned .moment__title { font-size: clamp(28px, min(3.2vw, 6svh), 50px); }
.day.is-pinned .moment__text > p:not(.clock) { font-size: clamp(16px, 2.6svh, 18px); }
.day.is-pinned .moment__inner { align-items: start; }   /* les heures restent à la même place d'un moment à l'autre */
.day.is-pinned .duo {
  aspect-ratio: auto; gap: 16px;
  height: clamp(260px, calc(100svh - 230px), 620px);
}
/* Les fonds passent tous sous les contenus : la couleur qui arrive ne voile jamais la photo qui part. */
.day.is-pinned .day__stage { isolation: isolate; }
.day.is-pinned .moment__bg { z-index: 0; }
.day.is-pinned .moment__inner { z-index: 1; }
.moment[data-moment="3"] .duo__a img { object-position: 70% 50%; }
.moment[data-moment="2"] .duo__b img { object-position: 41% 50%; }   /* la tasse et le clavier */
.moment[data-moment="2"] .duo__a img { object-position: 50% 78%; }   /* les tables plutôt que le plafond */
.moment[data-moment="1"] .duo__a img { object-position: 42% 50%; }   /* l'assiette entière */
.moment[data-moment="1"] .duo__b img { object-position: 36% 50%; }   /* le burger et le muffin */

.day.is-pinned .ruler {
  display: block;
  position: absolute; z-index: 5;
  left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4svh, 36px);
  height: 34px;
}
.ruler__line { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--noir); }
.ruler__tick {
  position: absolute; top: 18px; left: calc(var(--at) * 100%);
  transform: translateX(-50%);
  font: 600 13px/1 var(--display); letter-spacing: .01em;
}
.ruler__tick:first-of-type { transform: none; }
.ruler__tick:last-of-type { transform: translateX(-100%); }
.ruler__track { position: absolute; left: 0; right: 0; top: 0; height: 18px; }
.ruler__sun {
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 2px var(--noir);
  will-change: transform;
}

/* =========================================================
   4. LA CARTE, HEURE PAR HEURE
   ========================================================= */
.menu { padding: clamp(72px, 10vw, 120px) 0; background: linear-gradient(to bottom, #F7EFE8 0%, var(--terra-pale) 55%, #EFD9CC 100%); }
.menu__head { padding: 0 var(--gutter); width: 100%; max-width: 1520px; margin: 0 auto; }
.menu__title {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 96;
  font-size: clamp(48px, 7.6vw, 112px); line-height: .92; letter-spacing: -.025em;
  text-wrap: balance;
}
.menu__lead { margin-top: 16px; max-width: 46ch; color: var(--texte-doux); font-size: 18px; }

.menu__track { margin-top: 40px; }
.menu-group + .menu-group { margin-top: 44px; }
.menu-group__head {
  background: var(--bg);
  margin: 0 var(--gutter);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.menu-group__head h3 {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 72;
  font-size: clamp(30px, 3.4vw, 46px); line-height: .95; letter-spacing: -.03em;
}
.menu-group__head p {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 92, "opsz" 36;
  font-size: 18px; line-height: 1.1;
}

.menu-group__list {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 16px var(--gutter) 6px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--sauge) transparent;
}
.dish { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--sauge-claire); }
.dish h4 {
  margin-top: 14px;
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 36;
  font-size: 22px; line-height: 1.1; letter-spacing: -.01em;
}
.dish p { margin-top: 4px; font-size: 15px; color: var(--texte-doux); line-height: 1.45; }

/* Ordinateur : une rangée par moment. Les photos gardent une hauteur commune
   et une largeur proportionnelle à leur cadrage (--r), comme des assiettes posées sur une étagère. */
@media (min-width: 900px) {
  .menu__track { padding: 0 var(--gutter); max-width: 1520px; margin: 56px auto 0; display: grid; gap: 40px; }
  .menu-group { display: flex; gap: 16px; align-items: stretch; }
  .menu-group + .menu-group { margin-top: 0; }
  .menu-group__head {
    margin: 0; flex: 0 0 clamp(190px, 16vw, 240px);
    flex-direction: column; justify-content: space-between; align-items: flex-start;
    padding: 22px 22px 20px;
  }
  .menu-group__list { overflow: visible; padding: 0; gap: 16px; flex: 1; min-width: 0; }
  .dish { flex: var(--r, 1) 1 0; min-width: 0; }
  .dish img { aspect-ratio: var(--r, 1); }
}

.menu-group--warm .menu-group__head { color: var(--noir); }

/* =========================================================
   4 bis. LES BOISSONS
   Fond terracotta foncé : la page continue de foncer vers le noir des infos.
   La branche du logo pousse au survol. Chaque morceau (tige + 5 feuilles) est
   un <span> (avec son <svg>) animé en transform et opacity seulement : rien n'est repeint,
   et si la souris file, la transition repart en arrière depuis là où elle en est.
   ========================================================= */
.drinks { background: var(--terra-texte); color: var(--lait); padding: clamp(72px, 10vw, 128px) 0; }
.drinks__inner {
  width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 32px;
  grid-template-areas: "head" "lists";
}
.drinks__head { grid-area: head; }
.drinks__title {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 96;
  font-size: clamp(48px, 7.6vw, 112px); line-height: .92; letter-spacing: -.025em;
}
.drinks__lead { margin-top: 16px; max-width: 34ch; color: var(--terra-pale); font-size: 18px; }

/* La formule : le seul bloc clair de la section, comme une ardoise posée sur le comptoir. */
.formule {
  margin-top: 32px; max-width: 360px;
  background: var(--lait); color: var(--noir);
  border-radius: var(--radius); padding: 24px 24px 22px;
}
.formule__title {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 48;
  font-size: 26px; line-height: 1.02; letter-spacing: -.02em;
}
.formule__price {
  margin-top: 6px; color: var(--terra-texte);
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 96;
  font-size: 54px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.formule__base { margin-top: 14px; font-style: italic; color: var(--texte-doux); }
.formule__list { list-style: none; margin: 8px 0 0; padding: 0; }
.formule__list li { padding: 3px 0; }

.drinks__lists { grid-area: lists; display: grid; gap: 44px 48px; align-content: start; }
.drinks__col { display: grid; gap: 44px; align-content: start; }
.drinks__group h3 {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 48;
  font-size: clamp(24px, 2vw, 30px); line-height: 1; letter-spacing: -.02em;
  padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 2px solid var(--terra);   /* le filet terracotta de la carte imprimée */
}
.drinks__group ul { list-style: none; margin: 0; padding: 0; }
.drinks__note { margin-top: 10px; padding-left: 1.05rem; font-style: italic; font-size: 15px; color: var(--terra-pale); }

.drink {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  font-size: clamp(20px, 1.6vw, 24px);   /* la branche se règle en em sur le nom */
  padding: 9px 0 9px .95em;
}
.drink__name {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 92, "opsz" 36;
  line-height: 1.1; letter-spacing: -.01em;
  transition: transform .45s var(--ease-out);
}
.drink__price { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drink__detail { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--terra-pale); }

.sprig {
  position: absolute; left: -.34em; top: calc(9px - .42em);   /* pied de la branche au ras de la ligne, comme sur le logo */
  width: 1.25em; height: 1.56em;
  color: var(--lait); --leaf-fill: var(--terra);
  pointer-events: none;
}
.sprig > span, .sp-stem__in {
  position: absolute; inset: 0;
  will-change: transform, opacity;   /* calques fixes : le survol ne repeint rien */
  /* sortie : tout se replie en même temps, vite */
  transition: transform .24s cubic-bezier(.4, 0, 1, 1), opacity .2s linear;
  transition-delay: 0s;
}
.sprig svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Tige : la fenêtre (overflow hidden) part d'en bas, son contenu part d'en haut d'autant : rien ne se voit.
   Les deux reviennent à 0 ensemble, la tige se découvre de bas en haut. Pas d'agrandissement, donc rien à redessiner. */
.sprig .sp-stem { overflow: hidden; transform: translateY(100%); opacity: 0; }   /* opacity : aucun pixel ne dépasse au repos */
.sprig .sp-stem__in { transform: translateY(-100%); }
/* Feuilles : elles s'ouvrent en tournant autour de leur attache. */
.sprig .sp-l1, .sprig .sp-l2, .sprig .sp-l3, .sprig .sp-l4, .sprig .sp-l5 { opacity: 0; transform: rotate(-70deg); }
.sprig .sp-l2, .sprig .sp-l5 { transform: rotate(70deg); }
.sprig .sp-l1, .sprig .sp-l2 { transform-origin: 41% 75%; }
.sprig .sp-l3 { transform-origin: 50% 59%; transform: rotate(70deg); }
.sprig .sp-l4 { transform-origin: 60% 41%; }
.sprig .sp-l5 { transform-origin: 71% 21%; }
.sprig .sp-l1 { --d: .14s; } .sprig .sp-l2 { --d: .18s; } .sprig .sp-l3 { --d: .25s; }
.sprig .sp-l4 { --d: .32s; } .sprig .sp-l5 { --d: .40s; }

/* entrée : la tige monte, puis chaque feuille s'ouvre quand la tige l'atteint (comme sur le premier écran) */
.drink.is-grown .sprig > span, .drink.is-grown .sp-stem__in {
  transform: none; opacity: 1;
  transition: transform .5s cubic-bezier(.34, 1.45, .64, 1), opacity .18s linear;
  transition-delay: calc(var(--d, 0s) + var(--stagger, 0s));
}
.drink.is-grown .sprig .sp-stem, .drink.is-grown .sp-stem__in { transition: transform .45s cubic-bezier(.33, 0, .2, 1), opacity .08s linear; transition-delay: var(--stagger, 0s); }
.drink__name { will-change: transform; }
.drink.is-grown .drink__name { transform: translateX(.16em); }

@media (hover: hover) and (pointer: fine) {
  .drink:hover .sprig > span, .drink:hover .sp-stem__in {
    transform: none; opacity: 1;
    transition: transform .5s cubic-bezier(.34, 1.45, .64, 1), opacity .18s linear;
    transition-delay: var(--d, 0s);
  }
  .drink:hover .sprig .sp-stem, .drink:hover .sp-stem__in { transition: transform .45s cubic-bezier(.33, 0, .2, 1), opacity .08s linear; transition-delay: 0s; }
  .drink:hover .drink__name { transform: translateX(.16em); }
}

@media (prefers-reduced-motion: reduce) {
  .sprig > span, .sp-stem__in, .drink__name { transition: none !important; }
}

@media (min-width: 700px) {
  .drinks__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .drinks__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "head lists";   /* le titre à gauche, la carte à droite */
    column-gap: 5vw; align-items: start;
  }
}

/* =========================================================
   5. INFOS, 18H30
   ========================================================= */
.infos { background: var(--noir); color: var(--lait); padding-bottom: clamp(64px, 9vw, 120px); }
.dusk {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(260px, 52svh, 520px);
  padding: 0 var(--gutter);
  border-bottom: 2px solid var(--lait);
  --d: min(56svh, 40vw);
}
.dusk__sun {
  position: absolute; right: 8vw; bottom: calc(var(--d) * -.45);
  width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--terra);
  will-change: transform;
}
.clock--dusk { position: relative; z-index: 1; font-size: clamp(110px, 21vw, 300px); color: var(--lait); }
.infos__title {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 72;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.02em;
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
  max-width: 1520px; margin: 0 auto;
}
.infos__grid {
  display: grid; gap: 40px;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
  max-width: 1520px; margin: 0 auto;
}
.infos__block h3 {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 36;
  font-size: 22px; letter-spacing: -.01em; color: var(--terra);
  padding-bottom: 12px; border-bottom: 1px solid rgba(250, 248, 244, .22); margin-bottom: 16px;
}
.hours div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; font-size: 18px; }
.hours dd { white-space: nowrap; }
.hours__note { margin-top: 12px; font-size: 15px; opacity: .85; }
.dish img.pos-haut { object-position: 50% 28%; }   /* la vitrine : les viennoiseries sont posées dessus */
.hours dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.hours .is-today { color: var(--terra); }
.hours .is-today dt::after { content: "aujourd'hui"; display: block; font-size: 13px; line-height: 1.2; }
.infos__big { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; }
.infos__actions { margin-top: 22px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.perks li { padding: 4px 0; font-size: 18px; }
.infos__note { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; }
.infos__note + p { margin-top: 10px; }
.muted { color: rgba(250, 248, 244, .72); }

@media (min-width: 900px) {
  .infos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
}
@media (max-width: 719px) {
  .dusk { --d: 86vw; min-height: 300px; }
  .dusk__sun { right: -16vw; }
  .clock--dusk { font-size: clamp(96px, 30vw, 150px); }
}

/* =========================================================
   Pied de page
   ========================================================= */
.footer {
  background: var(--lait);
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: 56px var(--gutter) 40px;
}
.round-logo { position: relative; width: 200px; aspect-ratio: 1; font-size: 38px; }
.round-logo__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.round-logo__name {
  position: absolute; inset: 0; display: grid; justify-items: center; align-content: center;
  padding-right: 18%; padding-top: 2%;
  font-family: var(--logo); font-weight: 700; line-height: .9; letter-spacing: .06em; --slit: var(--lait);
}
.round-logo__name .l { display: flex; align-items: baseline; }
.footer__sig { font-family: var(--display); font-weight: 600; font-size: 18px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.footer__links a { color: var(--texte-doux); }

/* =========================================================
   3 bis. GIGNAC : la mini-carte et la vue du village
   Plan clair « gravure » : la vieille ville à l'encre, l'enceinte en pointillés terracotta (l'anneau du logo).
   ========================================================= */
/* Entre Gignac et la carte : un fondu léger qui part du lait au bas de Gignac et continue derrière toute la carte,
   jusqu'à un terracotta pâle un peu plus soutenu juste avant le soir (18h30). */
.gignac {
  --fondu: clamp(220px, 24vw, 360px);
  padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 176px);
  background: linear-gradient(to bottom, var(--lait) 0, var(--lait) calc(100% - var(--fondu)), #F7EFE8 100%);
}
.gignac__inner {
  display: grid; gap: 28px 48px; align-items: end;
  max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter);
}
.gignac__title {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 96;
  font-size: clamp(40px, 5.2vw, 76px); line-height: .95; letter-spacing: -.025em;
  text-wrap: balance;
}
.gignac__lead { margin: 18px 0 26px; max-width: 40ch; font-size: 18px; color: var(--texte-doux); }
.plan, .gignac__photo { margin: 0; }
.plan__map {
  --carte: var(--sauge-claire);
  position: relative; overflow: hidden;
  aspect-ratio: 680 / 440; border-radius: var(--radius);
  background: var(--carte);
}
.plan__layer { position: absolute; inset: 0; }
.plan__map img { width: 100%; height: 100%; }
.plan__wall {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--terra); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 10;
}
.plan__mark {
  position: absolute; left: var(--x); top: var(--y);
  padding-left: 14px; transform: translateY(-50%);
  font: 600 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--noir); text-shadow: 0 0 3px var(--carte), 0 0 6px var(--carte), 0 0 10px var(--carte);
}
/* Les portes et la tour : de petits carrés, comme des tours sur le rempart. */
.plan__mark::before {
  content: ""; position: absolute; left: -4px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 1px;
  background: var(--noir); box-shadow: 0 0 0 2px var(--carte);
}
.plan__mark--left { padding: 0 14px 0 0; transform: translate(-100%, -50%); }
.plan__mark--left::before { left: auto; right: -4px; }
.plan__mark--below { padding: 14px 0 0; transform: translateX(-88%); margin-top: -4px; }
.plan__mark--below::before { left: 88%; top: 0; margin: 0 0 0 -4px; }
.plan__mark--tour::before { width: 10px; height: 14px; margin-top: -7px; left: -5px; background: var(--terra); }
.plan__pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; --slit: var(--carte); }
.plan__pin .bean { position: absolute; height: 30px; left: -11px; top: -15px; }
.plan__ring {
  position: absolute; left: -24px; top: -24px; width: 48px; height: 48px;
  border-radius: 50%; border: 2px solid var(--terra); opacity: 0;
}
.plan__name {
  position: absolute; left: 20px; top: 0; transform: translateY(-50%);
  background: var(--noir); color: var(--lait); border-radius: 999px; padding: 5px 11px;
  font: 600 13px/1.2 var(--text); white-space: nowrap;
}
.plan__north, .plan__scale {
  position: absolute; right: 14px;
  font: 600 11px/1 var(--text); letter-spacing: .08em; color: var(--texte-doux);
}
.plan__north { top: 14px; padding-top: 14px; width: 12px; text-align: center; }
.plan__north::before {
  content: ""; position: absolute; top: 0; left: 50%; margin-left: -4px;
  border: 4px solid transparent; border-bottom: 9px solid var(--texte-doux); border-top: 0;
}
.plan__scale {
  bottom: 14px; width: 14.7%; padding-top: 7px; text-align: right; /* 100 m sur 680 m de large */
  border-top: 2px solid var(--texte-doux);
}
.plan figcaption, .gignac__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--texte-doux); }
/* La vue de Gignac : la photo glisse dans sa fenêtre depuis la gauche, puis se rapproche doucement pendant le défilement. */
.gignac__town { display: grid; gap: 22px 48px; align-items: center; }
.gignac__frame { overflow: hidden; border-radius: var(--radius); background: var(--sauge-claire); aspect-ratio: 4 / 5; }
.gignac__slide, .gignac__slide picture { display: block; height: 100%; }
.gignac__slide { overflow: hidden; }            /* la photo zoomée ne dépasse pas avant d'entrer */
.gignac__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.gignac__about h3 {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 95, "opsz" 48;
  font-size: clamp(28px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance;
}
.gignac__about p { margin-top: 16px; max-width: 40ch; font-size: clamp(18px, 1.4vw, 20px); color: var(--texte-doux); }

@media (min-width: 900px) {
  .gignac__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .gignac__head { padding-bottom: 34px; }          /* aligne le bouton sur le bas du plan, au-dessus de la légende */
  .gignac__town { grid-column: 1 / -1; margin-top: 12px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px clamp(40px, 6vw, 96px); }
}
@media (max-width: 719px) {
  .plan__wall { stroke-width: 6; stroke-dasharray: .1 15; }
  .plan__mark { font-size: 0; padding: 0; }        /* téléphone : les portes restent, sans leur nom */
  .plan__mark--tour { font-size: 11px; padding-left: 12px; }
  /* Téléphone : cadre 4:3 et plan agrandi 1,5 fois, centré sur la vieille ville (les repères suivent, ils sont dans le même calque). */
  .plan__map { aspect-ratio: 4 / 3; }
  .plan__layer { inset: auto; left: -22%; top: -15%; width: 150%; aspect-ratio: 680 / 440; }
  .plan__scale { width: 22%; right: auto; left: 14px; text-align: left; }   /* 100 m une fois le plan agrandi */
  .plan__name { font-size: 12px; padding: 4px 9px; left: 0; top: -22px; transform: translate(-50%, -50%); }
  .plan__pin .bean { height: 22px; left: -8px; top: -11px; }
}
