/* Aux Saveurs du Cambodge — minimal, à la manière d'apple.com :
   des tuiles noires et gris perle, la police du système, un seul bleu pour agir. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #fff;
  --perle: #f5f5f7;
  --verre: rgb(250 250 252 / 0.8);
  --verre-plein: #fafafc;
  --encre: #1d1d1f;
  --gris: #6e6e73;
  --gris-nuit: #86868b;
  --filet: #d2d2d7;
  --filet-verre: rgb(0 0 0 / 0.1);
  --pied-lien: #424245;
  --noir: #000;
  --bleu: #0071e3;
  --bleu-appuye: #0066cc;
  --lien: #0066cc;
  --lien-nuit: #2997ff;
  --ouvert: #34c759;
  --commande: #ff9f0a;
  --ferme: #ff3b30;

  /* SF Pro sur les appareils Apple (rien à télécharger), Inter ailleurs. */
  --police: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav: 44px;
  --gouttiere: 22px;
  --rayon: 18px;
  --courbe: cubic-bezier(0.28, 0.11, 0.32, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav) + 12px);
}

/* Le pied de page reste en bas des pages courtes (404). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--lien);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 4px;
}

.tuile--noire :focus-visible {
  outline-color: var(--lien-nuit);
}

[hidden] {
  display: none !important;
}

.insecable {
  white-space: nowrap;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  letter-spacing: normal;
  border: 0;
}

.evitement {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--blanc);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.14);
}

.evitement:focus {
  top: 8px;
}

.icone {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 1.7;
}

.icone--chevron {
  stroke-width: 2.6;
}

/* ---------- Liens et boutons ---------- */

/* « En savoir plus › » : texte bleu et chevron, comme sur apple.com. */
.lien {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  color: var(--lien);
}

.lien .icone--chevron {
  width: 0.7em;
  height: 0.7em;
  margin-top: 0.08em;
}

.tuile--noire .lien {
  color: var(--lien-nuit);
}

.lien--bouton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lien);
  font: inherit;
}

.lien--bouton:hover {
  text-decoration: underline;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 44px;
  padding: 11px 21px;
  border: 1px solid var(--bleu);
  border-radius: 980px;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.bouton:hover {
  border-color: var(--bleu-appuye);
  background: var(--bleu-appuye);
  text-decoration: none;
}

.bouton--contour {
  background: transparent;
  color: var(--lien);
}

.bouton--contour:hover {
  border-color: var(--bleu);
  background: var(--bleu);
  color: var(--blanc);
}

.tuile--noire .bouton--contour {
  border-color: var(--lien-nuit);
  color: var(--lien-nuit);
}

.tuile--noire .bouton--contour:hover {
  background: var(--lien-nuit);
  color: var(--noir);
}

.bouton--petit {
  padding: 8px 18px;
  font-size: 15px;
  line-height: 1.2;
}

.bouton--large {
  width: 100%;
}

/* ---------- Navigation globale ---------- */

.navigation {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--verre);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  view-transition-name: navigation;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navigation {
    background: var(--verre-plein);
  }
}

.navigation__barre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 1024px;
  min-height: var(--nav);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.navigation__nom {
  justify-self: start;
  color: var(--encre);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  white-space: nowrap;
}

.navigation__nom:hover {
  text-decoration: none;
}

.navigation__liens {
  display: flex;
}

.navigation__liens a {
  display: flex;
  align-items: center;
  height: var(--nav);
  padding: 0 10px;
  color: rgb(0 0 0 / 0.8);
  transition: color 0.2s ease;
}

.navigation__liens a:hover,
.navigation__liens a[aria-current="page"] {
  color: var(--noir);
  text-decoration: none;
}

.navigation__appel {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--nav);
  color: rgb(0 0 0 / 0.8);
  white-space: nowrap;
}

.navigation__appel:hover {
  color: var(--noir);
  text-decoration: none;
}

.navigation__appel .icone {
  width: 15px;
  height: 15px;
}

.navigation__menu {
  display: none;
  position: relative;
  width: 44px;
  height: var(--nav);
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre);
}

/* Deux traits qui se croisent à l'ouverture. */
.navigation__menu span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition:
    translate 0.32s var(--courbe),
    rotate 0.32s var(--courbe);
}

.navigation__menu span:first-child {
  top: calc(50% - 4px);
}

.navigation__menu span:last-child {
  top: calc(50% + 3px);
}

.est-ouverte .navigation__menu span:first-child {
  translate: 0 3.5px;
  rotate: 45deg;
}

.est-ouverte .navigation__menu span:last-child {
  translate: 0 -3.5px;
  rotate: -45deg;
}

/* ---------- Ruban : l'état d'ouverture, en direct ---------- */

.ruban {
  padding: 13px var(--gouttiere);
  background: var(--perle);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  text-align: center;
}

.ruban__texte {
  min-height: 1.42859em;
}

.ruban .lien {
  margin: -10px 0;
  padding: 10px 2px;
  white-space: nowrap;
}

.etat__pastille {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--gris-nuit);
  vertical-align: 0.1em;
}

.etat:not([data-code]) .etat__pastille {
  display: none;
}

.etat[data-code="ouvert"] .etat__pastille {
  background: var(--ouvert);
}

.etat[data-code="commande"] .etat__pastille {
  background: var(--commande);
}

.etat[data-code="ferme"] .etat__pastille {
  background: var(--ferme);
}

/* Avec JavaScript, le résumé statique laisse la place à l'état en direct sans faire bouger la page. */
.js .etat:not([data-code]) .etat__texte {
  display: none;
}

/* ---------- Tuiles ---------- */

.tuile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 692px;
  padding: 52px var(--gouttiere) 0;
  background: var(--perle);
  color: var(--encre);
  text-align: center;
}

main > .tuile + .tuile,
main > .tuile + .grille {
  margin-top: 12px;
}

.tuile--noire {
  background: var(--noir);
  color: var(--perle);
}

.tuile--blanche {
  background: var(--blanc);
}

.tuile__texte {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.tuile--demi .tuile__texte {
  max-width: 40rem;
}

.tuile__titre {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.tuile__accroche {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.14286;
  letter-spacing: 0.007em;
  text-wrap: balance;
}

.tuile__detail {
  margin-top: 12px;
  color: var(--gris);
  text-wrap: pretty;
}

.tuile--noire .tuile__detail {
  color: var(--gris-nuit);
}

.tuile__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

/* Le plat sort du bas de la tuile, comme un produit sur apple.com. */
.tuile__image {
  --taille: 520px;
  width: var(--taille);
  max-width: none;
  height: auto;
  margin-top: auto;
  margin-bottom: calc(var(--taille) * -0.2);
  padding-top: 32px;
  pointer-events: none;
  user-select: none;
}

.tuile--demi {
  min-height: 580px;
}

.tuile--demi .tuile__titre {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
}

.tuile--demi .tuile__accroche {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0.011em;
}

.tuile--demi .tuile__image {
  --taille: 380px;
  margin-bottom: calc(var(--taille) * -0.16);
}

.grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

main > .grille {
  margin-top: 0;
}

/* ---------- Manifeste ---------- */

.manifeste {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px var(--gouttiere) 150px;
  text-align: center;
}

.manifeste__texte {
  font-size: 64px;
  line-height: 1.0625;
  font-weight: 600;
  letter-spacing: -0.009em;
  text-wrap: balance;
  view-timeline: --manifeste block;
}

.manifeste__detail {
  max-width: 34em;
  margin: 28px auto 0;
  color: var(--gris);
  font-size: 21px;
  line-height: 1.38105;
  letter-spacing: 0.011em;
  text-wrap: pretty;
}

.manifeste .lien {
  margin-top: 18px;
  font-size: 21px;
  letter-spacing: 0.011em;
}

/* ---------- Horaires ---------- */

.tuile--horaires,
.tuile--acces {
  min-height: 0;
  padding-bottom: 72px;
}

.tuile__conseil {
  color: var(--encre);
}

.semaine {
  width: min(560px, 100%);
  margin-top: 36px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.semaine th,
.semaine td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--filet);
  font-weight: 400;
}

.semaine td {
  text-align: right;
  white-space: nowrap;
}

.semaine tr:last-child > * {
  border-bottom-color: transparent;
}

.semaine__commande {
  color: var(--gris);
}

.semaine .est-aujourdhui > * {
  border-bottom-color: transparent;
  background: var(--blanc);
  font-weight: 600;
}

.semaine .est-aujourdhui > :first-child {
  border-radius: 12px 0 0 12px;
}

.semaine .est-aujourdhui > :last-child {
  border-radius: 0 12px 12px 0;
}

.semaine tr:has(+ .est-aujourdhui) > * {
  border-bottom-color: transparent;
}

.tuile__note {
  max-width: 34em;
  margin-top: 20px;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.tuile--horaires .tuile__actions {
  margin-top: 26px;
}

/* ---------- Accès ---------- */

.tuile__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 26px;
  margin-top: 8px;
}

.tuile__liens .lien {
  padding: 10px 0;
}

.plan {
  width: min(980px, 100%);
  margin-top: 40px;
}

.plan__lien {
  display: block;
  overflow: hidden;
  border-radius: var(--rayon);
  background: #f2f2f4;
}

.plan img {
  width: 100%;
  height: auto;
}

.plan figcaption {
  margin-top: 10px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--perle);
  color: var(--gris);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.pied__conteneur {
  max-width: 980px;
  margin: 0 auto;
  padding: 17px var(--gouttiere) 21px;
}

.pied__notes {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--filet);
}

.pied__notes p {
  max-width: 75ch;
}

.pied__notes p + p {
  margin-top: 8px;
}

.pied__plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0 8px;
}

.pied__plan h2 {
  margin-bottom: 9px;
  color: var(--encre);
  font-size: 12px;
  font-weight: 600;
}

.pied__plan li {
  margin-bottom: 8px;
}

.pied a {
  color: var(--pied-lien);
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--filet);
}

/* ---------- La carte ---------- */

.carte-tete {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px var(--gouttiere) 36px;
  text-align: center;
}

.carte-tete__titre {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.carte-tete__accroche {
  margin-top: 8px;
  color: var(--gris);
  font-size: 21px;
  line-height: 1.38105;
  letter-spacing: 0.011em;
}

.carte-tete__detail {
  margin-top: 6px;
}

/* Un lien au milieu d'une phrase se voit aussi sans la couleur. */
.carte-tete__detail a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.recherche {
  position: relative;
  max-width: 560px;
  margin: 32px auto 0;
}

.recherche .icone {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 19px;
  height: 19px;
  color: var(--gris);
  translate: 0 -50%;
  pointer-events: none;
}

.recherche input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--gris-nuit);
  border-radius: 12px;
  background: var(--blanc);
  font-size: 17px;
  appearance: none;
  -webkit-appearance: none;
}

.recherche input::placeholder {
  color: var(--gris);
  opacity: 1;
}

.recherche input:focus {
  outline: none;
}

.recherche input:focus-visible {
  border-color: var(--bleu);
  box-shadow: 0 0 0 4px rgb(0 125 250 / 0.35);
}

.recherche__etat {
  min-height: 20px;
  margin-top: 10px;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.carte {
  max-width: 1280px;
  margin: 0 auto;
}

/* Rubriques : une barre locale collante, soulignée sous la rubrique en cours. */
.rubriques {
  position: sticky;
  top: var(--nav);
  z-index: 40;
  border-bottom: 1px solid var(--filet-verre);
  background: var(--verre);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.rubriques ul {
  position: relative;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 var(--gouttiere);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.rubriques ul::-webkit-scrollbar {
  display: none;
}

.rubriques a {
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--gris);
  font-size: 14px;
  letter-spacing: -0.016em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.rubriques a:hover,
.rubriques a[aria-current] {
  color: var(--encre);
  text-decoration: none;
}

/* Le trait mesure 100 px et se met à l'échelle du lien : rien que de la transformation. */
.rubriques__curseur {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--encre);
  transform-origin: 0 0;
  translate: var(--x, 0) 0;
  scale: var(--sx, 0) 1;
  transition:
    translate 0.45s var(--courbe),
    scale 0.45s var(--courbe),
    opacity 0.2s ease;
  pointer-events: none;
}

.rubriques__curseur.sans-transition {
  transition: none;
}

.carte__liste {
  max-width: 692px;
  margin: 0 auto;
  padding: 0 var(--gouttiere) 96px;
}

.rubrique {
  padding-top: 52px;
  scroll-margin-top: calc(var(--nav) + 45px);
}

.rubrique__titre {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
}

.rubrique__riz {
  margin-top: 6px;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.rubrique__riz-sup {
  white-space: nowrap;
}

.plats {
  margin-top: 16px;
  border-top: 1px solid var(--filet);
}

.plat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "nom prix"
    "desc prix";
  column-gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--filet);
}

.js .plat {
  grid-template-columns: minmax(0, 1fr) auto 32px;
  grid-template-areas:
    "nom prix ajout"
    "desc prix ajout";
}

.plat__nom {
  grid-area: nom;
  font-weight: 600;
}

.plat__desc {
  grid-area: desc;
  margin-top: 2px;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.plat__prix {
  grid-area: prix;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* Ajouter à la commande : un cercle bleu, la quantité en pastille. */
/* Aligné sur la première ligne, comme le prix. */
.plat__ajout {
  grid-area: ajout;
  position: relative;
  align-self: start;
  margin-top: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--bleu);
  border-radius: 50%;
  background: var(--blanc);
  color: var(--bleu);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.plat__ajout::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.plat__ajout .icone {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.plat__ajout:hover,
.plat__ajout.est-dans-bon {
  background: var(--bleu);
  color: var(--blanc);
}

.plat__ajout[data-quantite]::after {
  content: attr(data-quantite);
  position: absolute;
  top: -11px;
  right: -13px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--blanc);
  border-radius: 9px;
  background: var(--encre);
  color: var(--blanc);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  box-sizing: content-box;
}

.plat__ajout--petit {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  vertical-align: middle;
}

.plat__ajout--petit::before {
  inset: -9px;
}

.plat__ajout--petit .icone {
  width: 13px;
  height: 13px;
}

.carte__vide {
  padding: 56px 0 8px;
  color: var(--gris);
  text-align: center;
}

.carte__vide p + p {
  margin-top: 6px;
}

.carte__maj {
  max-width: 75ch;
  margin-top: 40px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

/* ---------- Votre commande ---------- */

.bon__feuille {
  padding: 24px;
  border-radius: var(--rayon);
  background: var(--perle);
}

.bon__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bon__tete h2 {
  font-size: 21px;
  line-height: 1.19048;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.bon__tete h2:focus {
  outline: none;
}

.bon__fermer {
  display: none;
  position: relative;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--perle);
  color: var(--gris);
}

.bon__fermer::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.bon__fermer .icone {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.bon__vide {
  margin-top: 10px;
  color: var(--gris);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.icone--texte {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  padding: 0.18em;
  border: 1px solid var(--bleu);
  border-radius: 50%;
  color: var(--bleu);
  vertical-align: -0.35em;
  stroke-width: 2.4;
}

.bon__lignes {
  margin-top: 12px;
}

.bon__ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "nom montant"
    "quantite quantite";
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--filet);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.bon__nom {
  grid-area: nom;
  font-weight: 600;
}

.bon__montant {
  grid-area: montant;
  font-variant-numeric: tabular-nums;
}

.bon__quantite {
  grid-area: quantite;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.bon__quantite button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 0 0 1px var(--filet);
}

.bon__quantite button::before {
  content: "";
  position: absolute;
  inset: -7px;
}

.bon__quantite .icone {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.bon__qte {
  min-width: 26px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bon__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 14px;
  font-weight: 600;
}

.bon__total output {
  font-variant-numeric: tabular-nums;
}

.bon .bouton--large {
  margin-top: 18px;
}

.bon__vider {
  display: block;
  margin: 4px auto 0;
  padding: 12px 8px;
  font-size: 14px;
  letter-spacing: -0.016em;
}

.bon__note {
  margin-top: 4px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  text-align: center;
}

.barre-bon {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--filet-verre);
  background: var(--verre);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.barre-bon__ouvrir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--encre);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.barre-bon__ouvrir .icone {
  width: 22px;
  height: 22px;
}

.barre-bon__compte {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.barre-bon .bouton {
  margin-left: auto;
}

/* Le jeton « +1 » qui vole jusqu'à la commande. */
.jeton {
  position: fixed;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  pointer-events: none;
}

/* ---------- Pages de texte et 404 ---------- */

.texte {
  max-width: 692px;
  margin: 0 auto;
  padding: 72px var(--gouttiere) 96px;
}

.texte h1,
.introuvable h1 {
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

.texte h2 {
  margin-top: 40px;
  font-size: 21px;
  line-height: 1.19048;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.texte p {
  margin-top: 10px;
}

.a-completer {
  color: #b25000;
  font-weight: 600;
}

.introuvable {
  max-width: 692px;
  margin: 0 auto;
  padding: 120px var(--gouttiere) 140px;
  text-align: center;
}

.introuvable p {
  margin-top: 12px;
  color: var(--gris);
  font-size: 21px;
  line-height: 1.38105;
  letter-spacing: 0.011em;
}

/* ---------- Grands écrans : la carte sur trois colonnes ---------- */

@media (min-width: 1069px) {
  .carte {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 320px;
    align-items: start;
    gap: 56px;
    padding: 12px var(--gouttiere) 0;
  }

  .rubriques {
    top: calc(var(--nav) + 40px);
    max-height: calc(100vh - var(--nav) - 64px);
    overflow-y: auto;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    scrollbar-width: none;
  }

  .rubriques ul {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0 0 0 16px;
    border-left: 1px solid var(--filet);
  }

  .rubriques a {
    height: auto;
    padding: 6px 0;
    white-space: normal;
  }

  .rubriques__curseur {
    top: 0;
    bottom: auto;
    left: -1px;
    width: 2px;
    height: 100px;
    translate: 0 var(--y, 0);
    scale: 1 var(--sy, 0);
  }

  .carte__liste {
    max-width: none;
    margin: 0;
    padding: 0 0 96px;
  }

  .rubrique {
    scroll-margin-top: calc(var(--nav) + 16px);
  }

  .rubrique:first-of-type {
    padding-top: 28px;
  }

  .bon {
    position: sticky;
    top: calc(var(--nav) + 40px);
    margin-top: 40px;
  }

  .barre-bon {
    display: none;
  }
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 1068px) {
  .tuile {
    min-height: 0;
  }

  .tuile:not(.tuile--demi) .tuile__titre {
    font-size: 48px;
    line-height: 1.08349;
    letter-spacing: -0.003em;
  }

  .tuile:not(.tuile--demi) .tuile__accroche {
    font-size: 24px;
    line-height: 1.16667;
    letter-spacing: 0.009em;
  }

  .tuile__image {
    --taille: 460px;
  }

  .tuile--demi {
    min-height: 0;
  }

  .tuile--demi .tuile__titre {
    font-size: 32px;
    line-height: 1.125;
    letter-spacing: 0.004em;
  }

  .tuile--demi .tuile__image {
    --taille: min(340px, 90%);
  }

  .manifeste__texte {
    font-size: 48px;
    line-height: 1.08349;
  }

  .carte-tete__titre {
    font-size: 48px;
    line-height: 1.08349;
  }

  .page-carte {
    padding-bottom: calc(61px + env(safe-area-inset-bottom));
  }

  /* La commande devient une feuille qui monte du bas de l'écran, sur un voile. */
  .bon {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgb(0 0 0 / 0);
    visibility: hidden;
    transition:
      background-color 0.45s ease,
      visibility 0s linear 0.45s;
  }

  .bon.est-ouvert {
    background: rgb(0 0 0 / 0.32);
    visibility: visible;
    transition:
      background-color 0.45s ease,
      visibility 0s linear 0s;
  }

  .bon__feuille {
    width: 100%;
    max-width: 692px;
    max-height: min(82vh, 680px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px var(--gouttiere) calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--rayon) var(--rayon) 0 0;
    background: var(--blanc);
    translate: 0 100%;
    transition: translate 0.45s var(--courbe);
  }

  .bon.est-ouvert .bon__feuille {
    translate: 0 0;
  }

  .bon__fermer {
    display: grid;
  }
}

@media (max-width: 833px) {
  :root {
    --nav: 48px;
  }

  .navigation__barre {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 6px 0 16px;
  }

  .navigation__nom {
    font-size: 15px;
  }

  .navigation__appel {
    justify-content: center;
    width: 44px;
  }

  .navigation__appel span {
    display: none;
  }

  .navigation__appel .icone {
    width: 18px;
    height: 18px;
  }

  .navigation__menu {
    display: block;
  }

  /* Sans JavaScript, les liens passent sur une seconde ligne. */
  html:not(.js) .navigation__barre {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html:not(.js) .navigation__appel {
    grid-row: 1;
    grid-column: 2;
  }

  html:not(.js) .navigation__liens {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .js .navigation__liens {
    display: none;
  }

  .js .navigation.est-ouverte {
    background: var(--verre-plein);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .js .navigation.est-ouverte .navigation__liens {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav));
    height: calc(100dvh - var(--nav));
    overflow-y: auto;
    padding: 20px 48px;
    background: var(--verre-plein);
  }

  .js .navigation.est-ouverte .navigation__liens a {
    height: auto;
    padding: 8px 0;
    color: var(--encre);
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: 0.007em;
  }

  .menu-ouvert,
  .menu-ouvert body {
    overflow: hidden;
  }
}

@media (max-width: 734px) {
  :root {
    --gouttiere: 16px;
  }

  .ruban {
    padding: 12px var(--gouttiere);
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
  }

  .ruban__texte {
    min-height: 1.33337em;
  }

  .tuile {
    padding-top: 44px;
  }

  .tuile:not(.tuile--demi) .tuile__titre {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .tuile:not(.tuile--demi) .tuile__accroche,
  .tuile--demi .tuile__accroche {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: 0.011em;
  }

  .tuile__detail {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.012em;
  }

  .tuile__actions {
    gap: 12px;
    margin-top: 20px;
  }

  .tuile__image {
    --taille: min(360px, 94vw);
  }

  .tuile--demi .tuile__image {
    --taille: min(320px, 84vw);
  }

  .grille {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
  }

  .manifeste {
    padding: 100px var(--gouttiere) 108px;
  }

  .manifeste__texte {
    font-size: 40px;
    line-height: 1.1;
  }

  .manifeste__detail,
  .manifeste .lien {
    font-size: 19px;
  }

  .tuile--horaires,
  .tuile--acces {
    padding-bottom: 56px;
  }

  .semaine {
    margin-top: 28px;
    font-size: 15px;
  }

  .semaine th,
  .semaine td {
    padding: 12px 10px;
  }

  .plan {
    margin-top: 32px;
  }

  .pied__plan {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 8px;
  }

  .pied__plan > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--filet);
  }

  .pied__plan li {
    margin-bottom: 4px;
  }

  .pied__plan a {
    display: inline-block;
    padding: 12px 0;
    font-size: 14px;
  }

  .pied__bas {
    flex-direction: column;
    border-top: 0;
  }

  .pied__bas a {
    display: inline-block;
    padding: 12px 0;
    font-size: 14px;
  }

  .carte-tete {
    padding-top: 48px;
  }

  .carte-tete__titre,
  .texte h1,
  .introuvable h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .carte-tete__accroche,
  .introuvable p {
    font-size: 19px;
  }

  .rubrique {
    padding-top: 44px;
  }

  .rubrique__titre {
    font-size: 28px;
    line-height: 1.14286;
    letter-spacing: 0.007em;
  }
}

/* ---------- Mouvement ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* L'accueil s'ouvre : le texte monte, le bol se pose en tournant. */
  .tuile--heros .tuile__texte > * {
    animation: monter 1s var(--courbe) both;
  }

  .tuile--heros .tuile__accroche {
    animation-delay: 0.1s;
  }

  .tuile--heros .tuile__detail {
    animation-delay: 0.18s;
  }

  .tuile--heros .tuile__actions {
    animation-delay: 0.26s;
  }

  .tuile--heros .tuile__image {
    animation: poser 1.6s var(--courbe) 0.15s both;
  }

  /* Les tuiles se révèlent en entrant dans l'écran (classe posée par le script) ; le masquage, lui, est immédiat. */
  [data-reveler]:not(.est-pret) > * {
    transition:
      opacity 0.9s var(--courbe),
      translate 1.1s var(--courbe);
  }

  [data-reveler]:not(.est-pret) > :nth-child(2) {
    transition-delay: 0.08s;
  }

  [data-reveler]:not(.est-pret) > :nth-child(3) {
    transition-delay: 0.16s;
  }

  [data-reveler]:not(.est-pret) > :nth-child(4) {
    transition-delay: 0.24s;
  }

  [data-reveler].est-pret > * {
    opacity: 0;
    translate: 0 36px;
  }

  [data-reveler].est-pret > .tuile__image {
    translate: 0 90px;
  }

  .vient-de-changer {
    animation: pulsation 0.42s var(--courbe);
  }

  .vient-d-arriver {
    animation: arrivee 0.45s var(--courbe);
  }

  .js .navigation.est-ouverte .navigation__liens {
    animation: voile 0.3s ease both;
  }

  .js .navigation.est-ouverte .navigation__liens li {
    animation: menu-lien 0.5s var(--courbe) both;
  }

  .js .navigation.est-ouverte .navigation__liens li:nth-child(2) {
    animation-delay: 0.05s;
  }

  .js .navigation.est-ouverte .navigation__liens li:nth-child(3) {
    animation-delay: 0.1s;
  }
}

/* Défilement : le plat tourne doucement, le manifeste s'allume phrase après phrase. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveler] .tuile__image {
      animation: tourner linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .manifeste__texte span {
      animation: allumer linear both;
      animation-timeline: --manifeste;
    }

    .manifeste__texte span:first-of-type {
      animation-range: cover 22% cover 36%;
    }

    .manifeste__texte span:last-of-type {
      animation-range: cover 34% cover 48%;
    }
  }
}

@keyframes monter {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes poser {
  from {
    opacity: 0;
    translate: 0 120px;
    rotate: -24deg;
  }
}

@keyframes tourner {
  from {
    rotate: -10deg;
  }

  to {
    rotate: 10deg;
  }
}

@keyframes allumer {
  from {
    color: var(--gris-nuit);
  }

  to {
    color: var(--encre);
  }
}

@keyframes pulsation {
  40% {
    scale: 1.2;
  }
}

@keyframes arrivee {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

@keyframes voile {
  from {
    opacity: 0;
  }
}

@keyframes menu-lien {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Impression : la carte et les horaires, sans le décor ---------- */

@media print {
  .navigation,
  .ruban,
  .barre-bon,
  .evitement,
  .tuile__actions,
  .tuile__image,
  .tuile__liens,
  .plat__ajout,
  .bon,
  .recherche,
  .rubriques,
  .plan,
  .manifeste .lien {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .tuile {
    min-height: 0;
    padding: 16pt 0;
    background: none !important;
    color: #000 !important;
  }

  .tuile__detail,
  .semaine__commande {
    color: #333 !important;
  }

  .manifeste {
    padding: 16pt 0;
  }

  .carte__liste {
    max-width: none;
    padding: 0;
  }

  .plat {
    break-inside: avoid;
  }

  .pied {
    background: none;
  }
}
