/* Pas une Miette — menu en ligne (téléphone d'abord) */

:root {
  --creme: #FCE8DE;
  --brun: #2F190D;
  --terracotta: #CD6A45;
  --terracotta-clair: #E8936F;
  --texte-doux: #5a4035;
  --vert-vege: #4CAD33; /* vert de la feuille Veggi.svg */
  /* Couleur du logo : var(--terracotta) ou var(--brun) */
  --logo: var(--brun);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--creme);
  color: var(--brun);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Sur ordinateur : colonne centrée de la largeur d'un téléphone */
.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  overflow: clip; /* empêche le navigateur de faire glisser tout le menu de côté */
  background: var(--creme);
}
@media (min-width: 520px) {
  body { background: #f3d9cc; }
  .app { box-shadow: 0 0 40px rgba(47, 25, 13, .12); }
}

.cv { font-family: var(--serif); font-style: italic; font-weight: 500; }
.mo { letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 500; }

/* Pages (une par onglet), qui glissent de côté */
.pane {
  position: absolute; inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--creme);
  transition: transform .42s cubic-bezier(.22, .9, .25, 1);
}
.pane::-webkit-scrollbar { display: none; }
.pane[hidden] { display: block; visibility: hidden; }

/* Logo */
.logo .cls-2 { fill: currentColor; }
.logo .cls-1 { fill: none; stroke: var(--terracotta); stroke-width: 2px; stroke-linecap: round; } /* les 2 traits autour de « Pas une » */.head { display: flex; justify-content: center; padding: calc(30px + env(safe-area-inset-top)) 0 8px; color: var(--logo); }
.head .logo { width: 194px; height: auto; display: block; }

/* Barre des rubriques, qui reste en haut */
.bar {
  position: sticky; top: 0; z-index: 3;
  background: rgba(252, 232, 222, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.mini { height: 0; overflow: hidden; display: flex; justify-content: center; color: var(--logo); transition: height .25s; }
.bar.sh .mini { height: calc(38px + env(safe-area-inset-top)); }
.mini .logo { width: 78px; height: 40px; margin-top: calc(8px + env(safe-area-inset-top)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none;
  font-size: 13px; font-weight: 500;
  background: rgba(47, 25, 13, .07);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  transition: background .2s, color .2s;
}
.chips button.on { background: var(--brun); color: var(--creme); }
.chips:empty { display: none; }

/* Rubriques et produits */
.sec { padding: 0 14px; margin-top: 20px; }
.hd { color: var(--terracotta); margin: 0 6px 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: inherit; font-weight: inherit; }
.hd .mo { font-size: 12px; font-weight: 700; } /* titres de rubrique (Les Classiques…) */
/* En-têtes des deux formats, alignés sur les colonnes de prix */
.fmt { display: flex; gap: 6px; padding-right: 10px; }
.fmt span { width: 64px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--brun); }
.grp { background: rgba(255, 255, 255, .5); border-radius: 20px; padding: 2px 16px; }
.it { padding: 12px 0; border-bottom: 1px solid rgba(47, 25, 13, .08); }
.it:last-child { border-bottom: none; }
.nm { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nm .cv { font-size: 21px; line-height: 1.15; font-weight: 700; }
.pr { font-weight: 600; color: var(--terracotta); font-size: 14px; white-space: nowrap; background: rgba(205, 106, 69, .1); border-radius: 999px; padding: 3px 9px; }
.prices { display: flex; gap: 6px; flex: none; }
.prices .pr { width: 64px; text-align: center; padding: 3px 0; }
.ig { font-size: 13px; line-height: 1.45; color: var(--texte-doux); margin-top: 3px; }
.tag { display: inline-block; font-size: 9px; font-weight: 500; letter-spacing: .1em; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 3px; font-style: normal; font-family: var(--sans); }
.tag.vege { background: var(--vert-vege); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; }
.tag.vege svg { width: 14px; height: 8px; }
.tag.piquant { background: rgba(178, 34, 34, .1); color: #a3291f; }
.sauces { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.sauces span { font-size: 13px; background: rgba(47, 25, 13, .06); border-radius: 999px; padding: 6px 12px; }
.card { margin: 14px 14px 0; background: var(--terracotta); color: var(--creme); border-radius: 22px; padding: 16px 18px; }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .price { font-weight: 600; font-size: 15px; background: rgba(252, 232, 222, .18); border-radius: 999px; padding: 4px 12px; }
.card .cv { font-size: 25px; line-height: 1.05; margin-top: 4px; }
.card p { font-size: 12px; margin: 4px 0 0; }
.card p b { font-weight: 600; font-size: 13px; }
.card p span { opacity: .85; }
.card.fid { background: var(--brun); }
.card.fid .cv { font-size: 24px; }
.card.fid sup { font-size: .6em; }
/* Bandeau accordéon (Formule Étudiant / Carte de fidélité) */
.acc { display: flex; gap: 6px; margin: 14px 14px 0; touch-action: pan-y; } /* le glissement horizontal est pour le bandeau */
.acc .card { margin: 0; padding: 0; }
.acc-item {
  position: relative; overflow: hidden;
  flex: 0 0 44px;
  transition: flex-basis .55s cubic-bezier(.22, .9, .25, 1), flex-grow .55s cubic-bezier(.22, .9, .25, 1);
}
.acc-item.on { flex: 1 1 0; }
.acc-body {
  width: var(--bw, 280px);
  padding: 16px 18px;
  opacity: 0; transition: opacity .3s;
}
.acc-item.on .acc-body { opacity: 1; transition: opacity .35s .2s; }
.acc-spine {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--creme);
  transition: opacity .25s .25s;
}
/* Titre vertical de la tranche : passe sur 2 colonnes s'il est plus long que la carte n'est haute */
.acc-spine span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: normal; max-height: calc(100% - 16px); text-align: center; line-height: 1.35; font-size: 10px; }
.acc-item.on .acc-spine { opacity: 0; pointer-events: none; transition: opacity .15s; }

.foot { text-align: center; font-size: 11px; line-height: 1.6; color: var(--texte-doux); padding: 22px 18px calc(120px + env(safe-area-inset-bottom)); }
.foot .promesse { display: flex; align-items: center; gap: 10px; }
.foot .promesse::before, .foot .promesse::after { content: ""; flex: 1; height: 1px; background: var(--terracotta); opacity: .5; }
.foot .promesse span { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.foot .slogan { font-family: var(--sans); font-style: normal; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--brun); margin-top: 8px; }
.foot .trait { height: 1px; background: var(--terracotta); opacity: .5; margin: 12px 0 16px; } /* même largeur que la ligne « Notre promesse » */
.foot .legend { margin-bottom: 8px; }
.foot .legend .tag { margin-left: 0; vertical-align: 1px; }
.foot .legend .tag + .tag, .foot .legend .tag ~ .tag { margin-left: 10px; }

/* Dock flottant */
.dock {
  position: absolute; left: 22px; right: 22px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  height: 62px; border-radius: 31px;
  background: var(--brun);
  box-shadow: 0 10px 28px rgba(47, 25, 13, .35), 0 2px 6px rgba(47, 25, 13, .25);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 5px; z-index: 5;
}
.blob { position: absolute; top: 5px; bottom: 5px; border-radius: 26px; background: rgba(252, 232, 222, .14); }
.dock button {
  position: relative;
  color: rgba(252, 232, 222, .5);
  height: 52px; border-radius: 26px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .02em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: color .25s;
}
.dock button.on { color: var(--creme); }
.dock .ic { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.dock .ic svg { width: 24px; height: 24px; }
.dock button[data-t="0"] .ic svg { width: 26px; height: 26px; }
.dock button.on .ic { color: var(--terracotta-clair); }

/* Bouton « revenir en haut » */
.up {
  position: absolute; right: 24px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--brun); color: var(--creme);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
  z-index: 5;
  box-shadow: 0 6px 16px rgba(47, 25, 13, .3);
}
.up svg { width: 18px; height: 18px; }
.up.v { opacity: 1; transform: scale(1); pointer-events: auto; }

/* Coordonnées : bloc « Nous trouver » */
.trouver .grp { padding: 14px 16px; }
.trouver p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.trouver .adr { font-weight: 500; }
.trouver .jour b { color: var(--terracotta); font-weight: 700; }
.note { background: rgba(205, 106, 69, .12); color: var(--brun); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.bts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.bt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--brun); color: var(--creme); font-size: 13px; font-weight: 600; text-decoration: none; }
.bt + .bt { background: rgba(47, 25, 13, .08); color: var(--brun); }
.plus-infos { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--terracotta); min-height: 40px; }

/* Bouton « Horaires » et fiche des infos */
.btn-info {
  position: absolute; z-index: 6;
  top: calc(5px + env(safe-area-inset-top)); right: 10px;
  height: 32px; padding: 0 10px 0 8px; border-radius: 12px;
  background: rgba(252, 232, 222, .9); color: var(--brun);
  box-shadow: 0 0 0 1px rgba(47, 25, 13, .15);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.btn-info svg { width: 15px; height: 15px; }
.btn-info::before { content: ""; position: absolute; inset: -6px; } /* zone de toucher plus grande que le dessin */
.btn-info .txt { font-size: 10.5px; line-height: 1.15; text-align: left; white-space: nowrap; }
/* Écrans courants (≥ 360 px) : la pilule a la place d'être plus haute sans toucher le logo */
@media (min-width: 360px) {
  /* Horloge au-dessus, texte dessous : plus haute mais étroite, elle reste à droite du logo */
  .btn-info { top: calc(8px + env(safe-area-inset-top)); height: auto; flex-direction: column; padding: 8px 9px 7px; gap: 4px; border-radius: 16px; }
  .btn-info svg { width: 20px; height: 20px; }
  .btn-info .txt { font-size: 11px; line-height: 1.2; text-align: center; }
  .btn-info.compact { width: 34px; height: 34px; border-radius: 17px; top: calc(4px + env(safe-area-inset-top)); }
}
.btn-info.compact { width: 32px; padding: 0; justify-content: center; border-radius: 16px; }
.btn-info.compact .txt { display: none; }
.voile-infos { position: absolute; inset: 0; z-index: 10; background: rgba(47, 25, 13, .35); display: flex; align-items: flex-end; }
.voile-infos[hidden] { display: none; }
.fiche {
  position: relative; width: 100%; max-height: 88%; overflow-y: auto;
  background: var(--creme); border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  animation: monte .25s cubic-bezier(.2, .9, .3, 1);
}
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.fiche h2 { margin: 0 0 12px; font-size: 28px; }
.fiche h3 { margin: 18px 0 8px; color: var(--terracotta); font-size: 11px; }
.fiche .adr { margin: 0; font-size: 14px; line-height: 1.5; }
.fiche .fermer { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 20px; background: rgba(47, 25, 13, .07); font-size: 22px; }
.horaires { width: 100%; border-collapse: collapse; font-size: 14px; }
.horaires th { text-align: left; font-weight: 500; padding: 6px 0; }
.horaires td { text-align: right; padding: 6px 0; }
.horaires tr + tr th, .horaires tr + tr td { border-top: 1px solid rgba(47, 25, 13, .08); }
.horaires .auj th, .horaires .auj td { color: var(--terracotta); font-weight: 700; }

.erreur { padding: 120px 24px; text-align: center; font-size: 15px; color: var(--texte-doux); }

@media (prefers-reduced-motion: reduce) {
  .pane, .blob, .up, .mini, .acc-item, .acc-body, .acc-spine { transition: none !important; }
  .fiche { animation: none !important; }
}
