/* =====================================================================
   BORNE — écran de commande (1080 × 1920)
   ===================================================================== */
.commande { box-sizing: border-box; display: flex; flex-direction: column; background: #fff; color: var(--navy); font-family: var(--corps); }

/* En-tête */
.top { height: 170px; flex-shrink: 0; box-sizing: border-box; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--line); }
.top img { width: 150px; height: auto; display: block; }
.back { min-height: 84px; padding: 0 30px; border-radius: 999px; border: 3px solid var(--line-2); background: var(--lilac-2); color: var(--violet); font-weight: 800; font-size: 28px; display: flex; align-items: center; gap: 12px; }
.back:active { transform: scale(.97); }

.body { flex: 1; min-height: 0; display: flex; }

/* Colonne des catégories */
.rail { width: 230px; flex-shrink: 0; box-sizing: border-box; padding: 20px 14px; background: var(--lilac); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.cat { width: 100%; min-height: 190px; flex-shrink: 0; border: 2px solid var(--line-2); border-radius: 26px; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; }
.cat[aria-pressed="true"] { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 0 var(--navy); }
.cat img { width: 120px; height: 100px; display: block; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(20,0,50,.55)); }
.cat span { font-family: var(--display); font-size: 25px; line-height: 1.05; text-align: center; text-transform: uppercase; letter-spacing: .5px; }

/* Liste des articles */
.list { flex: 1; min-width: 0; box-sizing: border-box; padding: 34px 36px 40px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.rail::-webkit-scrollbar, .list::-webkit-scrollbar, .f-corps::-webkit-scrollbar, .p-lignes::-webkit-scrollbar { width: 0; }
/* Dans une colonne qui défile, une carte « overflow: hidden » se laisserait écraser : jamais */
.list > * { flex-shrink: 0; }
.list h1 { margin: 0; font-size: 84px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.card { position: relative; overflow: hidden; border-radius: 30px; background: #fff; border: 2px solid var(--line); box-shadow: 0 8px 24px rgba(43,7,82,.08); padding: 22px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.card:active { transform: scale(.985); }
.card.off { cursor: default; }
.card.off:active { transform: none; }
.card h2 { margin: 0; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.card p { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--text-2); flex: 1; }
.pic { height: 280px; border-radius: 22px; background: var(--lilac); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { display: block; width: 100%; height: 250px; object-fit: contain; }
.pic .court { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--violet); text-transform: uppercase; text-align: center; padding: 0 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; }
.price { font-family: var(--display); font-size: 38px; line-height: 1.05; color: var(--violet); }
.plus { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; border: 4px solid var(--navy); background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 var(--navy); padding: 0; }
.plus:disabled { border-color: #D9D3E3; background: #D9D3E3; color: #8A8299; box-shadow: none; cursor: not-allowed; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.veil { position: absolute; inset: 0; background: rgba(255,255,255,.5); pointer-events: none; }
.ribbon { position: absolute; left: -30%; top: 40%; width: 160%; padding: 14px 0; color: #fff; font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: 3px; text-align: center; text-transform: uppercase; transform: rotate(-22deg); box-shadow: 0 8px 18px rgba(43,7,82,.3); pointer-events: none; }
.ribbon.out { background: var(--rouge); }
.ribbon.soon { background: var(--violet); font-size: 40px; letter-spacing: 2px; }
.dans-panier { position: absolute; top: 18px; right: 18px; min-width: 60px; height: 60px; box-sizing: border-box; padding: 0 14px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--display); font-size: 32px; display: flex; align-items: center; justify-content: center; }

/* Carte vedette (La Box du Peuple) */
.featured { border-radius: 34px; padding: 24px 28px 30px; gap: 14px; }
.featured > img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 22px rgba(20,0,50,.55)); }
.featured h2 { font-size: 56px; line-height: 1; }
.featured p { font-size: 28px; }
.featured .price { font-size: 64px; }
.add-big { min-height: 96px; padding: 0 44px; border: 4px solid var(--navy); border-radius: 999px; background: var(--grad-h); color: #fff; font-family: var(--display); font-size: 38px; text-transform: uppercase; box-shadow: 0 7px 0 var(--navy); }

/* Sauces */
.sauces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sauce { border-radius: 24px; padding: 18px; gap: 10px; }
.sauce h2 { font-size: 27px; min-height: 58px; }
.sauce .price { font-size: 30px; }
.sauce .plus { width: 80px; height: 80px; box-shadow: 0 5px 0 var(--navy); }
.sauce-pic { height: 150px; border-radius: 18px; }
.sauce-pic img { width: 100%; height: 135px; object-fit: contain; }

/* Barre panier */
.cart, .e-pied { height: 190px; flex-shrink: 0; box-sizing: border-box; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--violet-dark); color: #fff; }
.cart-infos { display: flex; flex-direction: column; gap: 4px; }
.count { font-size: 30px; font-weight: 800; color: #E9DDF7; }
.total { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--gold); }
.checkout { min-width: 470px; height: 124px; box-sizing: border-box; padding: 0 36px; border-radius: 999px; border: 6px solid var(--navy); background: var(--grad-h); box-shadow: 0 9px 0 var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-size: 44px; text-transform: uppercase; letter-spacing: 1px; }
.checkout:disabled { background: #4A2A6E; border-color: #3A1C5C; box-shadow: none; color: #A898BC; cursor: default; }
.checkout:not(:disabled):active { transform: translateY(4px); box-shadow: 0 5px 0 var(--navy); }

/* ---------- Fiche de personnalisation ---------- */
.voile { position: absolute; inset: 0; z-index: 20; background: rgba(20,4,45,.62); display: flex; align-items: flex-end; }
.voile[hidden], .ecran[hidden], .ajoute[hidden] { display: none; }
.fiche { width: 100%; height: 1720px; box-sizing: border-box; background: #fff; border-radius: 48px 48px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: monter .22s ease-out; }
@keyframes monter { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
.f-tete { flex-shrink: 0; display: flex; gap: 28px; align-items: center; padding: 34px 36px 26px; border-bottom: 2px solid var(--line); }
.f-photo { width: 250px; height: 210px; flex-shrink: 0; border-radius: 26px; background: var(--lilac); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.f-photo img { width: 92%; height: 92%; object-fit: contain; }
.f-photo .court { font-family: var(--display); font-size: 40px; color: var(--violet); text-transform: uppercase; text-align: center; }
.f-titre { flex: 1; min-width: 0; }
.f-titre h2 { margin: 0 0 10px; font-size: 58px; line-height: 1; text-transform: uppercase; }
.f-titre p { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 600; color: var(--text-2); }
.fermer { width: 96px; height: 96px; flex-shrink: 0; align-self: flex-start; border-radius: 50%; border: 3px solid var(--line-2); background: var(--lilac-2); color: var(--violet); display: flex; align-items: center; justify-content: center; padding: 0; }
.f-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 36px 40px; }
.groupe { border: 0; margin: 0; padding: 28px 0 8px; min-width: 0; }
.groupe + .groupe { border-top: 2px solid var(--line); }
.groupe legend { width: 100%; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.groupe legend span:first-child { font-family: var(--display); font-size: 40px; text-transform: uppercase; }
.regle { flex-shrink: 0; color: var(--text-2); font-size: 26px; font-weight: 600; }
.choix-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choix-grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choix { position: relative; min-height: 116px; box-sizing: border-box; padding: 16px 18px; border-radius: 24px; border: 3px solid var(--line-2); background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.choix span { font-size: 28px; font-weight: 800; line-height: 1.15; }
.choix small { font-size: 23px; font-weight: 800; color: var(--violet); }
/* Choix avec photo (boisson d'une formule, sauce) */
.choix.avec-photo { min-height: 0; padding: 12px 10px 14px; justify-content: flex-start; }
.choix.avec-photo img { width: 100%; height: 130px; object-fit: contain; display: block; filter: drop-shadow(0 6px 8px rgba(20,0,50,.25)); }
.choix.avec-photo span { font-size: 24px; }
.choix.epuise img { filter: grayscale(1); opacity: .5; }
.choix[aria-pressed="true"] { border-color: var(--navy); background: var(--grad); color: #fff; box-shadow: 0 6px 0 var(--navy); }
.choix[aria-pressed="true"] small { color: #fff; }
.choix:disabled { opacity: .38; cursor: not-allowed; }
.choix.epuise { opacity: 1; background: #F4F2F6; border-style: dashed; color: #9C95A8; }
.choix.epuise small { color: var(--rouge); }
.f-pied { flex-shrink: 0; box-sizing: border-box; padding: 22px 36px 36px; border-top: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 16px; }
.f-manque { margin: 0; min-height: 34px; font-size: 28px; font-weight: 800; color: #B0123F; text-align: center; }
.f-actions { display: flex; gap: 24px; align-items: center; }
.qte { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: var(--lilac-2); }
.qte button { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; color: var(--violet); font-size: 54px; font-weight: 800; line-height: 1; padding: 0; }
.qte button:disabled { opacity: .35; }
.qte b { min-width: 70px; text-align: center; font-family: var(--display); font-weight: 400; font-size: 52px; }
.ajouter { flex: 1; height: 128px; border-radius: 999px; border: 6px solid var(--navy); background: var(--grad-h); box-shadow: 0 8px 0 var(--navy); color: #fff; font-family: var(--display); font-size: 44px; text-transform: uppercase; }
.ajouter:disabled { background: #D9D3E3; border-color: #C9C2D6; box-shadow: none; color: #7E7690; }

/* ---------- Écrans plein (panier, étapes, merci) ---------- */
.ecran { position: absolute; inset: 0; z-index: 30; background: #fff; display: flex; flex-direction: column; }
.e-tete { height: 210px; flex-shrink: 0; box-sizing: border-box; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--line); }
.e-tete h1 { margin: 0; font-size: 86px; line-height: 1; text-transform: uppercase; }
.e-tete h1, .e-tete .back { white-space: nowrap; }
.e-tete .back { flex-shrink: 0; }
#panier .e-tete h1 { font-size: 74px; }
.e-aide { margin: 50px 60px 0; font-size: 36px; line-height: 1.4; font-weight: 600; color: var(--text-2); text-align: center; }
.e-aide b { color: var(--navy); font-weight: 800; white-space: nowrap; }
.p-lignes { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.p-ligne { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px; border-radius: 28px; border: 2px solid var(--line); box-shadow: 0 6px 18px rgba(43,7,82,.06); }
.p-photo { width: 150px; height: 130px; border-radius: 20px; background: var(--lilac); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-photo img { width: 90%; height: 90%; object-fit: contain; }
.p-photo .court { font-family: var(--display); font-size: 26px; color: var(--violet); text-transform: uppercase; text-align: center; }
.p-texte h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.05; text-transform: uppercase; }
.p-texte p { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 600; color: var(--text-2); }
.p-texte .p-prix { margin-top: 8px; font-family: var(--display); font-size: 34px; color: var(--violet); }
.p-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.p-droite .qte button { width: 80px; height: 80px; font-size: 46px; }
.p-droite .qte b { font-size: 44px; min-width: 56px; }
.retirer { border: 0; background: none; color: #B0123F; font-size: 24px; font-weight: 800; padding: 8px 10px; text-decoration: underline; }
.p-vide { margin: 120px 0 0; text-align: center; font-size: 36px; font-weight: 800; color: var(--text-2); }

.tuiles { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 60px 50px 40px; align-content: center; }
/* Bouton Retour des étapes : en bas à droite */
.e-bas { flex-shrink: 0; display: flex; justify-content: flex-end; padding: 0 40px 60px; }
.e-bas .back { min-height: 100px; padding: 0 40px; font-size: 32px; }
.tuiles.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 40px; }
.tuile { min-height: 640px; border-radius: 44px; border: 4px solid var(--line-2); background: var(--lilac); color: var(--violet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; box-shadow: 0 12px 30px rgba(43,7,82,.1); }
.tuiles.trois .tuile { min-height: 520px; gap: 30px; }
.tuile span { font-size: 64px; line-height: 1; text-transform: uppercase; color: var(--navy); }
.tuiles.trois .tuile span { font-size: 50px; }
.tuile:active { transform: scale(.97); background: var(--grad); color: #fff; }
.tuile:active span { color: #fff; }
.tuile:disabled { opacity: .5; }

.merci {
  align-items: center; justify-content: center; gap: 26px; text-align: center; padding: 0 80px;
  background: #30025a url(assets/fond-accueil.webp) center/cover no-repeat; color: #fff; font-family: var(--corps);
}
.m-logo { width: 200px; height: auto; filter: drop-shadow(0 10px 18px rgba(20,0,50,.55)); }
.m-titre {
  margin: 0; font-size: 150px; line-height: 1; color: var(--gold); text-transform: uppercase; letter-spacing: 1px;
  paint-order: stroke fill; -webkit-text-stroke: 16px #1E0A5C; text-shadow: 0 12px 0 #1E0A5C, 0 0 34px rgba(255,40,170,.75);
}
/* Le ticket blanc : numéro, pointillés, total */
.m-ticket {
  width: 660px; box-sizing: border-box; margin-top: 10px; padding: 40px 40px 44px; border-radius: 44px;
  background: #fff; color: var(--navy); border: 8px solid #1E0A5C; box-shadow: 0 16px 0 #1E0A5C, 0 0 60px rgba(255,40,170,.45);
  transform: rotate(-2deg); animation: ticket-arrive .45s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes ticket-arrive { from { transform: translateY(80px) rotate(-2deg) scale(.9); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.m-sous { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); }
.m-numero {
  margin: 0; font-size: 300px; line-height: .95;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-coupe { margin: 26px -40px 24px; border-top: 6px dashed var(--line-2); }
.m-total { margin: 6px 0 0; font-size: 96px; line-height: 1; color: var(--violet); }
.m-texte { margin: 14px 0 10px; font-size: 44px; line-height: 1.35; font-weight: 800; color: #fff; text-shadow: 0 3px 0 #1E0A5C; }
.m-texte small { font-size: 34px; font-weight: 600; color: #E9DDF7; }
.m-fleche { display: inline-block; color: var(--gold); animation: fleche 1.1s ease-in-out infinite; }
@keyframes fleche { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.m-retour { width: 470px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.m-retour i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--gold); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .m-ticket, .m-fleche { animation: none; } .m-retour i { transition: none; } }

/* Boîte de message */
.voile.centre { align-items: center; justify-content: center; z-index: 40; }
.boite { width: 860px; box-sizing: border-box; padding: 60px 56px 50px; border-radius: 44px; background: #fff; text-align: center; display: flex; flex-direction: column; gap: 26px; animation: monter .2s ease-out; }
.boite h2 { margin: 0; font-size: 64px; line-height: 1.05; text-transform: uppercase; }
.boite p { margin: 0; font-size: 32px; line-height: 1.4; font-weight: 600; color: var(--text-2); }
.b-boutons { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.b-boutons .checkout { width: 100%; min-width: 0; }
.b-boutons .back { justify-content: center; min-height: 100px; font-size: 32px; }

/* « Ajouté au panier » */
.ajoute { position: absolute; left: 50%; bottom: 230px; z-index: 25; transform: translateX(-50%); padding: 26px 50px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 34px; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 30px rgba(20,4,45,.4); animation: ajoute-monter .18s ease-out; pointer-events: none; }
/* Sa propre animation : « monter » remplacerait le translateX(-50%) qui le centre (il glissait de droite à gauche) */
@keyframes ajoute-monter { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- Suggestions (upsell) ---------- */
.boite.suggestion { width: 980px; max-height: 1560px; }
.s-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-height: 1060px; overflow-y: auto; padding: 4px; }
.s-liste::-webkit-scrollbar, .p-plus-liste::-webkit-scrollbar { width: 0; height: 0; }
.suggere { position: relative; box-sizing: border-box; min-height: 300px; padding: 14px 12px 18px; border: 3px solid var(--line-2); border-radius: 26px; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center; }
.suggere:active { transform: scale(.97); border-color: var(--navy); }
.suggere img { width: 100%; height: 170px; object-fit: contain; display: block; filter: drop-shadow(0 8px 10px rgba(20,0,50,.3)); }
.suggere .court { height: 170px; display: flex; align-items: center; font-family: var(--display); font-size: 40px; color: var(--violet); text-transform: uppercase; }
.suggere b { font-size: 26px; font-weight: 800; line-height: 1.15; }
.suggere .s-prix { margin-top: auto; font-family: var(--display); font-size: 32px; color: var(--violet); }
.suggere .dans-panier { top: 10px; right: 10px; }
.p-plus { flex-shrink: 0; padding: 20px 0 24px 40px; border-top: 2px solid var(--line); background: var(--lilac); }
.p-plus h2 { margin: 0 0 14px; font-size: 46px; line-height: 1; text-transform: uppercase; }
.p-plus-liste { display: flex; gap: 18px; overflow-x: auto; padding: 4px 40px 4px 0; }
.p-plus-liste .suggere { flex: 0 0 230px; min-height: 280px; }
.p-plus-liste .suggere img { height: 140px; }
