/* Appli de commande Big Bill's : plein écran sur téléphone, dans un cadre de téléphone sur ordinateur. */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../polices/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../polices/montserrat-latin-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --creme: #f8ebda;
  --creme-clair: #fdf6ec;
  --orange: #f48018;
  --orange-fonce: #b85400;
  --encre: #1a1410;
  --gris: #6b5d50;
  --vert: #2f7d3b;
  --affiche: 'Bebas Neue', Impact, sans-serif;
  --texte: 'Montserrat', system-ui, sans-serif;
  --ombre-produit: drop-shadow(0 0.8rem 1rem rgb(120 60 10 / 0.2));
  --bas-securite: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--orange-fonce);
  outline-offset: 2px;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.affiche {
  font-family: var(--affiche);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- Mise en page générale ---------- */

.a-cote {
  display: none;
}

.cadre {
  height: 100%;
}

.appli {
  position: relative;
  container-type: inline-size;
  height: 100%;
  overflow: hidden;
  background: var(--creme);
}

.appli__contenu {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 8rem;
}

/* Sur grand écran : texte à gauche, téléphone à droite. */
@media (min-width: 60rem) {
  body {
    display: grid;
    grid-template-columns: minmax(0, 30rem) auto;
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 7vw, 8rem);
    padding: 2rem;
    background:
      repeating-linear-gradient(-12deg, transparent 0 5.5rem, rgb(244 128 24 / 0.12) 5.5rem 7rem),
      var(--creme);
  }

  .a-cote {
    display: block;
  }

  .a-cote__logo {
    width: 6rem;
    margin-bottom: 2rem;
    padding: 0.6rem 0.7rem 0.5rem;
    border: 3px solid var(--encre);
    border-radius: 1rem;
    background: var(--creme-clair);
    box-shadow: 5px 5px 0 var(--encre);
    rotate: -3deg;
  }

  .a-cote__sur {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--encre);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .a-cote .a-cote__titre {
    margin-bottom: 1.25rem;
    font-family: var(--affiche);
    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
  }

  .a-cote__titre span {
    color: var(--orange);
  }

  .a-cote p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .a-cote .a-cote__astuce {
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--orange);
    background: var(--creme-clair);
    font-size: 0.92rem;
  }

  .a-cote__retour {
    display: inline-block;
    margin-block: 0.5rem 2rem;
    font-weight: 800;
    color: var(--encre);
  }

  .a-cote .a-cote__signature {
    color: var(--gris);
    font-size: 0.85rem;
  }

  .a-cote__signature a {
    color: inherit;
  }

  .cadre {
    position: relative;
    height: min(52rem, calc(100svh - 4rem));
    aspect-ratio: 390 / 844;
    padding: 0.75rem;
    border: 3px solid var(--encre);
    border-radius: 3.2rem;
    background: #111;
    box-shadow: 12px 12px 0 var(--encre);
  }

  /* Encoche */
  .cadre::before {
    content: '';
    position: absolute;
    top: 1.3rem;
    left: 50%;
    z-index: 30;
    width: 6.5rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #111;
    translate: -50% 0;
  }

  .appli {
    border-radius: 2.5rem;
  }

  .appli__contenu {
    scrollbar-width: none;
  }

  .cadre .barre {
    padding-top: 3.2rem;
  }

  .cadre .fiche {
    max-height: calc(100% - 3.5rem);
  }
}


/* ---------- Barre du haut ---------- */

.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.7rem;
  background: color-mix(in srgb, var(--creme) 90%, transparent);
  backdrop-filter: blur(10px);
}

.barre__logo img {
  width: 2.6rem;
}

.mode {
  display: flex;
  padding: 0.2rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--creme-clair);
  font-size: 0.75rem;
  font-weight: 800;
}

.mode button {
  min-height: 2.2rem;
  padding: 0.3rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.mode button[aria-pressed='true'] {
  background: var(--encre);
  color: var(--creme-clair);
}

.barre__panier {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--encre);
  border-radius: 50%;
  background: var(--orange);
  color: var(--encre);
}

.barre__panier svg {
  width: 1.3rem;
  height: 1.3rem;
}

.pastille {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme-clair);
  font-size: 0.7rem;
  font-weight: 800;
}

.pastille[hidden] {
  display: none;
}

.pastille.rebond {
  animation: rebond 0.45s ease;
}

@keyframes rebond {
  40% {
    scale: 1.45;
  }
}

/* ---------- Accueil ---------- */

.accueil__salut {
  padding: 0.5rem 1rem 0;
  font-size: 2.6rem;
}

.accueil__salut span {
  color: var(--orange-fonce);
}

.accueil__info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0;
  color: var(--gris);
  font-size: 0.8rem;
  font-weight: 600;
}

.accueil__info::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 0 3px rgb(47 125 59 / 0.2);
}

.vedettes {
  display: flex;
  gap: 0.8rem;
  padding: 0.75rem 1rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.vedettes-zone {
  margin-top: 1.1rem;
}

.vedettes-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}

.vedettes-tete h2 {
  font-size: 1.35rem;
}

.fleches {
  display: none;
  gap: 0.45rem;
}

.fleche {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--encre);
  border-radius: 50%;
  background: var(--creme-clair);
  box-shadow: 2px 2px 0 var(--encre);
  transition: translate 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.fleche svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fleche:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: default;
}

.fleche:not(:disabled):active {
  translate: 2px 2px;
  box-shadow: none;
}

.points {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: -0.35rem;
}

.points span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgb(15 15 15 / 0.2);
  transition: width 0.25s, background 0.25s;
}

.points .est-actif {
  width: 1.3rem;
  background: var(--orange);
}

/* Flèches seulement avec une souris : au doigt, on fait glisser. */
@media (hover: hover) and (pointer: fine) {
  .fleches {
    display: flex;
  }

  .fleche:not(:disabled):hover {
    background: var(--orange);
  }

  [data-glisser] {
    cursor: grab;
  }

  [data-glisser].en-glisse {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  [data-glisser].en-glisse img {
    pointer-events: none;
  }
}

.vedette img {
  -webkit-user-drag: none;
}

.vedette {
  position: relative;
  flex: 0 0 85%;
  padding: 1rem 1rem 0.6rem;
  border: 3px solid var(--encre);
  border-radius: 1.4rem;
  background: var(--creme-clair);
  box-shadow: 5px 5px 0 var(--orange);
  text-align: left;
  scroll-snap-align: center;
}

.vedette__sur {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme-clair);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vedette__nom {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.9rem;
}

.vedette__prix {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-weight: 800;
}

.vedette__prix small {
  padding: 0.15rem 0.55rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--orange);
  font-size: 0.72rem;
}

/* Burger plus petit, posé sur une ombre douce dessinée en CSS : le bas du détourage reste propre. */
.vedette img {
  position: relative;
  z-index: 1;
  display: block;
  width: 74%;
  margin: 0.5rem auto 0.55rem;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center bottom;
}

.vedette::after {
  content: '';
  position: absolute;
  bottom: 0.55rem;
  left: 22%;
  right: 22%;
  height: 1.3rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(80 40 10 / 0.3), transparent);
}

.puces {
  position: sticky;
  top: 4.2rem;
  z-index: 5;
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  overflow-x: auto;
  background: var(--creme);
  scrollbar-width: none;
}

@media (min-width: 60rem) {
  .puces {
    top: 6.4rem;
  }
}

.puces a {
  flex: none;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.puces a[aria-current='true'] {
  background: var(--encre);
  color: var(--creme-clair);
}

.rayon {
  padding: 1rem 1rem 0.5rem;
}

.rayon h2 {
  margin-bottom: 0.7rem;
  font-size: 1.9rem;
}

.produits {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.produit {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.6rem 0.8rem 0.6rem 0.5rem;
  border: 2px solid transparent;
  border-radius: 1.1rem;
  background: var(--creme-clair);
  text-align: left;
  transition: border-color 0.2s, translate 0.2s;
}

.produit:hover {
  border-color: var(--encre);
}

.produit:active {
  translate: 0 2px;
}

.produit img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: var(--ombre-produit);
}

.produit__nom {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}

.produit__desc {
  display: -webkit-box;
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--gris);
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.produit__prix {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.produit__prix small {
  margin-left: 0.3rem;
  color: var(--orange-fonce);
  font-size: 0.7rem;
}

.produit__plus {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid var(--encre);
  border-radius: 50%;
  background: var(--orange);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.pied-appli {
  padding: 1.5rem 1rem 7rem;
  color: var(--gris);
  font-size: 0.72rem;
  text-align: center;
}

/* ---------- Barre panier flottante ---------- */

.barre-panier {
  position: absolute;
  right: 1rem;
  bottom: calc(1rem + var(--bas-securite));
  left: 1rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.2rem 0.5rem 0.6rem;
  border: 3px solid var(--encre);
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme-clair);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0.8rem 1.5rem rgb(26 20 16 / 0.25);
  animation: monter 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.barre-panier[hidden] {
  display: none;
}

.barre-panier__compte {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--encre);
}

.barre-panier strong {
  margin-left: auto;
}

@keyframes monter {
  from {
    translate: 0 150%;
  }
}

/* ---------- Fiche produit (feuille du bas) ---------- */

.voile {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgb(26 20 16 / 0.45);
  animation: apparaitre 0.25s ease;
}

.fiche {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  max-height: 92%;
  border-top: 3px solid var(--encre);
  border-radius: 1.8rem 1.8rem 0 0;
  background: var(--creme);
  animation: glisser 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.fiche[hidden],
.voile[hidden] {
  display: none;
}

.fiche.se-ferme {
  animation: descendre 0.25s ease forwards;
}

@keyframes descendre {
  to {
    translate: 0 100%;
  }
}

@keyframes glisser {
  from {
    translate: 0 100%;
  }
}

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

.fiche__defile {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fiche__fermer {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--encre);
  border-radius: 50%;
  background: var(--creme-clair);
  font-size: 1.2rem;
  font-weight: 800;
}

.fiche__visuel {
  padding: 1.6rem 2.5rem 0;
  background: radial-gradient(circle at 50% 60%, var(--orange) 0 48%, transparent 48.5%);
}

.fiche__visuel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  filter: var(--ombre-produit);
  animation: poser 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes poser {
  from {
    scale: 0.8;
    rotate: -8deg;
    opacity: 0;
  }
}

.fiche__tete {
  padding: 1rem 1.2rem 0.5rem;
}

.fiche__tete h2 {
  font-size: 2.3rem;
}

.fiche__tete p {
  margin-top: 0.35rem;
  color: var(--gris);
  font-size: 0.85rem;
}

.groupe {
  margin: 0.8rem 1.2rem 0;
  padding: 0;
  border: 0;
}

.groupe legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0;
  font-weight: 800;
}

.groupe legend small {
  color: var(--gris);
  font-size: 0.72rem;
  font-weight: 600;
}

.groupe legend .requis {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--encre);
  font-weight: 800;
}

.groupe legend .requis.ok {
  background: var(--vert);
  color: #fff;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid rgb(26 20 16 / 0.15);
  border-radius: 0.9rem;
  background: var(--creme-clair);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option:has(input:checked) {
  border-color: var(--encre);
  background: #fff3e2;
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--orange-fonce);
  outline-offset: 2px;
}

.option input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--encre);
}

.option__texte {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.option__texte small {
  display: block;
  color: var(--gris);
  font-size: 0.72rem;
  font-weight: 500;
}

.option__prix {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Boissons : verres illustrés en CSS, sans logo de marque. */
.boissons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.boisson {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.2rem 0.5rem;
  border: 2px solid rgb(26 20 16 / 0.15);
  border-radius: 0.9rem;
  background: var(--creme-clair);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, translate 0.15s;
}

.boisson input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.boisson:has(input:checked) {
  border-color: var(--encre);
  background: #fff3e2;
  translate: 0 -2px;
}

.boisson:has(input:focus-visible) {
  outline: 3px solid var(--orange-fonce);
  outline-offset: 2px;
}

.verre {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.8rem;
  border: 2px solid var(--encre);
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: linear-gradient(to top, var(--teinte) 0 78%, transparent 78%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  overflow: hidden;
}

/* Reflet et glaçons */
.verre::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 18%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid rgb(255 255 255 / 0.8);
  border-radius: 0.15rem;
  background: rgb(255 255 255 / 0.35);
  rotate: 18deg;
  box-shadow: 0.6rem 0.25rem 0 -1px rgb(255 255 255 / 0.35);
}

.boisson__verre {
  position: relative;
  display: block;
  padding-top: 0.5rem;
}

/* Paille qui dépasse du verre */
.boisson__verre::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0.45rem;
  width: 0.22rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--orange);
  rotate: 14deg;
}

.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.etiquette {
  position: relative;
  padding: 0.5rem 0.85rem;
  border: 2px solid rgb(26 20 16 / 0.2);
  border-radius: 999px;
  background: var(--creme-clair);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.etiquette input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.etiquette:has(input:checked) {
  border-color: var(--encre);
  background: var(--encre);
  color: var(--creme-clair);
}

.etiquette:has(input:focus-visible) {
  outline: 3px solid var(--orange-fonce);
  outline-offset: 2px;
}

.fiche__bas {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem calc(0.9rem + var(--bas-securite));
  border-top: 2px solid rgb(26 20 16 / 0.1);
  background: var(--creme);
}

.quantite {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--creme-clair);
}

.quantite button {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.2rem;
  font-weight: 800;
}

.quantite button:hover {
  background: var(--creme);
}

.quantite output {
  min-width: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.quantite--petite button {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1rem;
}

.bouton {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 3.3rem;
  padding: 0.6rem 1.3rem;
  border: 3px solid var(--encre);
  border-radius: 999px;
  background: var(--orange);
  color: var(--encre);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--encre);
  transition: translate 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.bouton:active {
  translate: 3px 3px;
  box-shadow: 1px 1px 0 var(--encre);
}

.bouton span {
  white-space: nowrap;
}

.bouton[aria-disabled='true'] {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.bouton--centre {
  justify-content: center;
}

.bouton--clair {
  background: var(--creme-clair);
}

/* ---------- Panier ---------- */

.page {
  padding: 0.5rem 1rem 2rem;
}

.page__titre {
  margin-bottom: 1rem;
  font-size: 2.6rem;
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.lignes {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.ligne {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 1rem;
  background: var(--creme-clair);
  animation: apparaitre 0.3s ease;
}

.ligne img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.ligne h3 {
  font-size: 0.9rem;
  line-height: 1.2;
}

.ligne__detail {
  margin-top: 0.2rem;
  color: var(--gris);
  font-size: 0.72rem;
  line-height: 1.35;
}

.ligne__bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-weight: 800;
}

.bloc {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px solid var(--encre);
  border-radius: 1.1rem;
  background: var(--creme-clair);
}

.bloc h2 {
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
}

.choix-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.choix-mode label {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  border: 2px solid rgb(26 20 16 / 0.15);
  border-radius: 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.choix-mode label:has(input:checked) {
  border-color: var(--encre);
  background: var(--orange);
}

.choix-mode label:has(input:focus-visible) {
  outline: 3px solid var(--orange-fonce);
  outline-offset: 2px;
}

.choix-mode input {
  position: absolute;
  opacity: 0;
}

.choix-mode small {
  font-weight: 600;
  font-size: 0.72rem;
}

.champ {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.champ input,
.champ select {
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid rgb(26 20 16 / 0.25);
  border-radius: 0.8rem;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.champ input:focus,
.champ select:focus {
  border-color: var(--encre);
  outline: none;
}

.champ input[aria-invalid='true'] {
  border-color: #c0392b;
}

.erreur {
  color: #a8281b;
  font-size: 0.75rem;
  font-weight: 700;
}

.alerte {
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: #fff3e2;
  font-size: 0.8rem;
  font-weight: 600;
}

.alerte strong {
  color: var(--orange-fonce);
}

.jauge {
  height: 0.45rem;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(26 20 16 / 0.1);
}

.jauge span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 0.4s ease;
}

.recap {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.recap div {
  display: flex;
  justify-content: space-between;
}

.recap .total {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 2px dashed rgb(26 20 16 / 0.25);
  font-size: 1.05rem;
  font-weight: 800;
}

.note-demo {
  margin-top: 0.8rem;
  color: var(--gris);
  font-size: 0.72rem;
  text-align: center;
}

.vide {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}

.vide img {
  width: 70%;
  filter: var(--ombre-produit);
  opacity: 0.9;
}

.vide .bouton {
  flex: none;
}

/* ---------- Paiement en cours ---------- */

.chargement {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tourner 0.7s linear infinite;
}

@keyframes tourner {
  to {
    rotate: 1turn;
  }
}

/* ---------- Suivi de commande ---------- */

.suivi__entete {
  padding: 1.2rem;
  border: 3px solid var(--encre);
  border-radius: 1.4rem;
  background: var(--orange);
  box-shadow: 5px 5px 0 var(--encre);
  text-align: center;
}

.suivi__numero {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.suivi__statut {
  margin-block: 0.3rem;
  font-size: 2.6rem;
}

.suivi__heure {
  font-size: 0.85rem;
  font-weight: 600;
}

.suivi__scene {
  position: relative;
  height: 9rem;
  margin-top: 0.5rem;
}

.suivi__scene img {
  position: absolute;
  inset: 0;
  width: 78%;
  height: 100%;
  margin: auto;
  object-fit: contain;
  filter: var(--ombre-produit);
  animation: flotter 3s ease-in-out infinite;
}

/* Vapeur au-dessus du burger pendant la cuisson */
.suivi__scene[data-etape='1']::before,
.suivi__scene[data-etape='1']::after {
  content: '';
  position: absolute;
  top: 0;
  left: 42%;
  width: 0.6rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  filter: blur(3px);
  animation: vapeur 1.8s ease-in infinite;
}

.suivi__scene[data-etape='1']::after {
  left: 56%;
  animation-delay: 0.6s;
}

@keyframes vapeur {
  from {
    opacity: 0;
    translate: 0 1.5rem;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    translate: 0 -1rem;
  }
}

@keyframes flotter {
  50% {
    translate: 0 -0.4rem;
  }
}

.etapes {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
  padding: 0 0 0 0.3rem;
  list-style: none;
}

.etapes::before {
  content: '';
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 1.05rem;
  width: 3px;
  background: rgb(26 20 16 / 0.15);
}

.etape {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  align-items: center;
  gap: 0.8rem;
  color: var(--gris);
  font-size: 0.9rem;
  font-weight: 600;
}

.etape__point {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 3px solid rgb(26 20 16 / 0.2);
  border-radius: 50%;
  background: var(--creme);
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 0.3s, border-color 0.3s;
}

.etape small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
}

.etape.faite,
.etape.en-cours {
  color: var(--encre);
}

.etape.faite .etape__point {
  border-color: var(--encre);
  background: var(--encre);
  color: var(--creme-clair);
}

.etape.en-cours .etape__point {
  border-color: var(--encre);
  background: var(--orange);
  animation: pulsation 1.2s ease-in-out infinite;
}

.etape.en-cours {
  font-weight: 800;
}

@keyframes pulsation {
  50% {
    box-shadow: 0 0 0 0.45rem rgb(244 128 24 / 0.3);
  }
}

/* ---------- Message éphémère ---------- */

.toast {
  position: absolute;
  top: 5rem;
  left: 50%;
  z-index: 40;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme-clair);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  translate: -50% -1rem;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s;
}

.toast.visible {
  opacity: 1;
  translate: -50% 0;
}

@media (min-width: 60rem) {
  .toast {
    top: 7rem;
  }
}

/* Vue qui entre */
#vue > * {
  animation: entrer 0.3s ease;
}

@keyframes entrer {
  from {
    opacity: 0;
    translate: 0 0.6rem;
  }
}

/* Écran étroit (cadre sur ordinateur, petits téléphones) : vignettes produit plus compactes. */
@container (max-width: 23rem) {
  .produit {
    grid-template-columns: 4.8rem minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .mode button {
    padding-inline: 0.55rem;
  }

  .produit__desc {
    -webkit-line-clamp: 1;
  }

  .produit__prix small {
    white-space: nowrap;
  }

  .fiche__bas {
    gap: 0.5rem;
    padding-inline: 0.9rem;
  }

  .fiche__bas .bouton {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
