/* Dedi China — un seul monde, celui de son logo : le dragon rouge et or, sur un quai de Chine au soleil levant.
   Rouge laque, or, crème chaude. Les objets du quai deviennent l'interface : portes de conteneur, lanternes, tampon. */
:root {
  --creme: #FFF5E3; --papier: #FFFCF5; --laque: #C4161C; --laque-nuit: #6E0A10; --or: #D2A544; --or-clair: #F6DF9C; --encre: #2B0A0A;
  --doux: rgba(43, 10, 10, .62); --trait: rgba(110, 10, 16, .14);
  --titre: 'Rozha One', 'Times New Roman', serif; --texte: 'Figtree', system-ui, -apple-system, sans-serif;
  --bas: env(safe-area-inset-bottom, 0px); --haut: env(safe-area-inset-top, 0px);
  --ombre: 0 14px 30px rgba(110, 10, 16, .16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-x pan-y; }
body { background: var(--creme); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.45; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; font-size: 16px !important; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--laque); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -.005em; color: var(--laque-nuit); }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
#app { position: relative; max-width: 520px; margin: 0 auto; padding-bottom: calc(104px + var(--bas)); }
.ecran { padding: calc(18px + var(--haut)) 18px 24px; min-height: 100dvh; }
#e-accueil { padding: 0; }

/* ---------- Les portes du conteneur : l'entrée, et la commande qui part ---------- */
#portes { position: fixed; inset: 0; z-index: 60; perspective: 1500px; pointer-events: none; visibility: hidden; }
#portes.la { visibility: visible; pointer-events: auto; }
#portes i { position: absolute; top: 0; bottom: 0; width: 50.2%; background: #B3121B url(../assets/conteneur.webp) no-repeat; background-size: auto 100%; will-change: transform; backface-visibility: hidden; box-shadow: inset 0 0 60px rgba(60, 4, 8, .35); }
#portes .pg { left: 0; background-position: right -50dvh top; transform-origin: left center; }
#portes .pd { right: 0; background-position: left -50dvh top; transform-origin: right center; }
#portes .plaque { position: absolute; left: 50%; top: 44%; width: min(64vw, 300px); margin-left: calc(min(64vw, 300px) / -2); transform: translateY(-50%); padding: 18px 20px; border-radius: 26px; background: var(--papier);
  box-shadow: 0 0 0 3px var(--or), 0 18px 40px rgba(40, 2, 5, .5); }

/* ---------- Le quai : premier écran ---------- */
.quai { position: relative; height: 100svh; min-height: 620px; max-height: 920px; overflow: hidden; background: #F7C9A0; isolation: isolate; }
.quai .decor { position: absolute; inset: -4% 0 0; width: 100%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.quai::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(transparent, rgba(255, 245, 227, 0) 10%, var(--creme) 96%); z-index: 1; pointer-events: none; }
.lanterne { width: 74px; filter: drop-shadow(0 12px 14px rgba(110, 10, 16, .3)); }
/* Une lanterne pend du haut de l'écran au bout de son fil d'or, et se balance. */
.pend { position: absolute; top: -10px; z-index: 0; display: grid; justify-items: center; transform-origin: 50% 0; animation: balance 4.6s ease-in-out infinite alternate; }
.pend::before { content: ""; width: 2px; height: var(--fil, 200px); background: linear-gradient(rgba(210, 165, 68, .2), #D2A544); }
.pend img { margin-top: -6px; }
.pend.l1 { left: 3%; --fil: 44svh; animation-delay: -1.2s; }
.pend.l1 img { width: 54px; }
.pend.l2 { right: 3%; --fil: 37svh; }
.pend.l2 img { width: 66px; }
.pend.l3 { right: 30%; --fil: 2.5svh; animation-duration: 3.8s; animation-delay: -2s; z-index: 0; }
.pend.l3 img { width: 40px; }
@keyframes balance { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
.quai-tete { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--haut)) 16px 0; }
.quai-tete img { height: 58px; filter: drop-shadow(0 4px 10px rgba(255, 255, 255, .7)); }
.langues { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 252, 245, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1.5px rgba(210, 165, 68, .7); }
.langues button { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--doux); }
.langues button[aria-pressed="true"] { background: var(--laque); color: #fff; }
.quai h1 { position: relative; z-index: 3; margin: 2.2svh 20px 0; font-size: clamp(31px, 9.5vw, 46px); color: var(--laque-nuit); text-shadow: 0 2px 0 rgba(255, 250, 235, .7), 0 0 30px rgba(255, 246, 225, .9); }
.quai h1 span { display: block; color: var(--laque); font-style: italic; }
.mascotte-boite { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(196px + var(--bas)); height: 45%; display: flex; justify-content: center; pointer-events: none; will-change: translate; }
.mascotte { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 26px 22px rgba(110, 10, 16, .32)); will-change: transform; }
.quai-bas { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: calc(112px + var(--bas)); display: grid; gap: 10px; }
.preuve { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 252, 245, .92); font-size: 13.5px; font-weight: 600; box-shadow: 0 0 0 1.5px rgba(210, 165, 68, .8), 0 8px 18px rgba(110, 10, 16, .14); }
.preuve b { color: var(--laque); }

/* Le bouton laqué : rouge brillant, liseré or */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, #E8333A 0%, #C4161C 46%, #A00D13 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(70, 4, 8, .28), 0 0 0 2.5px var(--or), 0 12px 24px rgba(110, 10, 16, .34); }
.btn::before { content: ""; position: absolute; left: 14px; right: 14px; top: 5px; height: 42%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .28), transparent); pointer-events: none; }
.btn:active { transform: translateY(2px); }
.btn.large { width: 100%; }
.btn .rond { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-right: -14px; margin-left: auto; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); }
.btn .rond svg { width: 18px; height: 18px; }
.btn .gauche { margin-right: auto; }
.btn.or { color: var(--laque-nuit); background: linear-gradient(180deg, #FBE9B0, #E2B851 55%, #C4952F); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 80, 10, .25), 0 0 0 2.5px var(--laque), 0 12px 24px rgba(110, 10, 16, .25); }
.btn.fil { color: var(--laque-nuit); background: var(--papier); box-shadow: 0 0 0 2px var(--or); }
.btn.fil::before { display: none; }

/* ---------- Le catalogue ---------- */
.rayon { padding: 26px 18px 0; }
#catalogue { scroll-margin-top: 0; }
.rayon > h2 { font-size: 38px; }
.rayon > h2 + p { margin: 6px 0 18px; color: var(--doux); }
.pastilles { display: flex; gap: 9px; overflow-x: auto; margin: 0 -18px; padding: 6px 18px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pastilles::-webkit-scrollbar { display: none; }
.pastilles button { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 6px; border-radius: 999px; font-size: 14.5px; font-weight: 700; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); white-space: nowrap; scroll-snap-align: start; }
.pastilles button i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, #F3E2C2); overflow: hidden; }
.pastilles button i img { width: 86%; }
.pastilles button.seul { padding: 0 18px; }
.pastilles button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #E8333A, #B01017); box-shadow: 0 0 0 2px var(--or); }
/* Les catégories restent en haut de l'écran pendant qu'on fait défiler les produits. */
.pastilles.cats { position: sticky; top: 0; z-index: 12; padding-top: calc(10px + var(--haut)); padding-bottom: 10px; background: var(--creme); }
.pastilles.marques { padding-top: 2px; }
.pastilles.marques button { min-height: 36px; padding: 0 12px; font-weight: 600; font-size: 13.5px; background: none; box-shadow: none; color: var(--doux); }
.pastilles.marques button[aria-pressed="true"] { color: var(--laque); background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2.5px; text-decoration-color: var(--or); }

.cat-tete { position: relative; margin: 44px 0 6px; min-height: 104px; padding: 22px 46% 22px 22px; border-radius: 26px; background: linear-gradient(160deg, #D21E25, #8E0B11); box-shadow: 0 0 0 2.5px var(--or), var(--ombre); display: grid; align-items: center; }
.cat-tete::before { content: ""; position: absolute; inset: 7px; border-radius: 20px; border: 1.5px dashed rgba(246, 223, 156, .5); pointer-events: none; }
.cat-tete h3 { color: var(--or-clair); font-size: 24px; }
.cat-tete img { position: absolute; right: 10px; bottom: 0; height: 152px; width: auto; filter: drop-shadow(0 10px 10px rgba(40, 2, 5, .35)); }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.carte { position: relative; text-align: left; display: block; width: 100%; padding: 8px 8px 14px; border-radius: 26px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait), var(--ombre); }
.plateau { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fff 0, #FBEED3 55%, #F1D9A8 100%); }
.plateau::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 9%; border-radius: 50%; background: rgba(110, 10, 16, .16); filter: blur(7px); }
.plateau img { position: relative; z-index: 1; width: 88%; }
.carte b { display: block; margin: 12px 6px 0; font-weight: 700; font-size: 14.5px; line-height: 1.22; }
.carte small { display: block; margin: 3px 6px 0; font-size: 12.5px; color: var(--doux); }
.carte .prix { display: block; margin: 6px 6px 0; font-family: var(--titre); font-size: 20px; color: var(--laque); }
.carte .plus { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); font-size: 20px; font-weight: 700; box-shadow: 0 4px 10px rgba(110, 10, 16, .2); }
.vide { grid-column: 1 / -1; text-align: center; color: var(--doux); padding: 26px 10px; }
.vide img { width: 190px; margin: 0 auto 6px; }

/* Le Personal Shopper : une étiquette d'expédition */
.shopper { position: relative; margin: 44px 18px 0; padding: 26px 22px 24px; border-radius: 28px; color: #fff; background: linear-gradient(160deg, #D21E25, #8E0B11); box-shadow: 0 0 0 2.5px var(--or), var(--ombre); overflow: hidden; }
.shopper::before { content: ""; position: absolute; inset: 8px; border-radius: 21px; border: 1.5px dashed rgba(246, 223, 156, .55); pointer-events: none; }
.shopper h2 { color: var(--or-clair); font-size: 31px; max-width: 58%; }
.shopper p { margin: 10px 0 18px; max-width: 56%; color: rgba(255, 246, 228, .9); font-size: 15px; }
.shopper img { position: absolute; right: -22px; bottom: -14px; width: 52%; filter: drop-shadow(0 10px 12px rgba(40, 2, 5, .4)); }
.shopper .btn { position: relative; z-index: 1; min-height: 50px; font-size: 15.5px; padding: 0 22px; }
.fin { margin: 26px 18px 0; display: grid; gap: 12px; }
.lien-gros { padding: 14px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--laque-nuit); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--or); }
.mention { margin: 4px 0 0; font-size: 12px; text-align: center; color: var(--doux); }

/* ---------- La barre du bas ---------- */
.onglets { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 520px); display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end;
  padding: 8px 8px calc(8px + var(--bas)); background: rgba(255, 252, 245, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 rgba(210, 165, 68, .55), 0 -10px 30px rgba(110, 10, 16, .1); border-radius: 24px 24px 0 0; }
.onglets button { position: relative; height: 54px; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: rgba(43, 10, 10, .5); }
.onglets svg { width: 23px; height: 23px; }
.onglets button[aria-current="page"] { color: var(--laque); }
.onglets button[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; width: 18px; height: 3px; border-radius: 2px; background: var(--or); }
.onglets .centre { height: auto; color: var(--laque-nuit); gap: 5px; }
.onglets .centre::after { display: none !important; }
.onglets .centre .rond { width: 68px; height: 68px; margin-top: -34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #E8333A, #A00D13); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 0 0 3px var(--or), 0 0 0 7px var(--papier), 0 12px 22px rgba(110, 10, 16, .35); }
.onglets .centre .rond svg { width: 28px; height: 28px; }
.pastille-n { position: absolute; top: -36px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); font-size: 12px; font-weight: 800; line-height: 22px; font-style: normal; box-shadow: 0 0 0 2px var(--papier); }

/* ---------- Feuilles ---------- */
.voile { position: fixed; inset: 0; z-index: 30; background: rgba(60, 6, 10, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.feuille { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100%, 520px); transform: translateX(-50%); max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--creme); border-radius: 30px 30px 0 0; padding: 0 20px calc(22px + var(--bas)); box-shadow: 0 -2px 0 var(--or); }
.fermer { position: sticky; top: 12px; margin-left: auto; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); font-size: 22px; color: var(--laque-nuit); box-shadow: 0 0 0 1.5px var(--or), 0 6px 12px rgba(110, 10, 16, .15); }
.f-plateau { position: relative; margin: -42px -20px 0; height: 44dvh; max-height: 400px; display: grid; place-items: center; overflow: hidden; border-radius: 30px 30px 0 0; background: radial-gradient(circle at 50% 38%, #fff 0, #FBEED3 50%, #EFCF94 100%); }
.f-plateau::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0 7deg, transparent 7deg 18deg); animation: tourne 50s linear infinite; mask-image: radial-gradient(circle, #000 20%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%); }
@keyframes tourne { to { transform: rotate(360deg); } }
.f-plateau .lanterne { position: absolute; width: 46px; top: -8px; left: 9%; transform-origin: 50% 0; animation: balance 4s ease-in-out infinite alternate; }
.f-plateau .sujet { position: relative; width: min(74%, 320px); filter: drop-shadow(0 24px 20px rgba(110, 10, 16, .28)); }
.f-marque { margin: 20px 0 4px; color: var(--doux); font-size: 14px; font-weight: 600; }
.f-nom { font-size: 30px; }
.f-prix { font-family: var(--titre); font-size: 28px; color: var(--laque); margin: 8px 0 20px; }
.f-label { font-weight: 700; margin: 0 0 10px; }
.tailles { display: flex; flex-wrap: wrap; gap: 9px; }
.tailles button { min-width: 58px; height: 54px; padding: 0 12px; border-radius: 16px; font-weight: 700; font-size: 16px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.tailles button[aria-pressed="true"] { background: var(--laque); color: #fff; box-shadow: 0 0 0 2px var(--or); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14.5px; color: var(--doux); }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--laque); }
.note strong { color: var(--encre); }
.f-bas { position: sticky; bottom: 0; margin: 22px -20px 0; padding: 14px 20px 0; background: linear-gradient(rgba(255, 245, 227, 0), var(--creme) 30%); }
.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Panier, commande ---------- */
.titre-ecran { font-size: 42px; margin: 6px 0 20px; }
.ligne { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.ligne .vignette { width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #fff, #F3E2C2); }
.ligne .vignette img { width: 86%; }
.ligne b { display: block; font-size: 15px; line-height: 1.22; }
.ligne small { color: var(--doux); }
.ligne .retire { display: block; margin-top: 2px; font-size: 13px; color: var(--doux); text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.qte { display: flex; align-items: center; gap: 4px; }
.qte button { width: 36px; height: 36px; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 1.5px var(--or); font-size: 18px; font-weight: 700; color: var(--laque-nuit); }
.qte span { min-width: 22px; text-align: center; font-weight: 800; }
.jauge { margin: 18px 0 6px; height: 8px; border-radius: 4px; background: rgba(110, 10, 16, .1); overflow: hidden; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--laque), var(--or)); border-radius: 4px; transition: width .5s; }
.jauge-t { font-size: 13.5px; color: var(--doux); margin: 0 0 16px; }
.totaux { margin: 16px 0; display: grid; gap: 8px; }
.totaux div { display: flex; justify-content: space-between; color: var(--doux); }
.totaux .gros { align-items: baseline; color: var(--laque-nuit); font-family: var(--titre); font-size: 28px; padding-top: 12px; border-top: 2px dashed rgba(210, 165, 68, .7); }
.bloc { margin-top: 32px; }
.bloc h2 { font-size: 27px; margin-bottom: 14px; }
.champs { display: grid; gap: 10px; }
.champs input, .champs select, .champs textarea { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.champs input::placeholder, .champs textarea::placeholder { color: rgba(43, 10, 10, .45); }
.champs input:focus, .champs textarea:focus, .champs select:focus { outline: 0; box-shadow: 0 0 0 2.5px var(--or); }
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choix button { min-height: 60px; border-radius: 18px; font-weight: 700; font-size: 14.5px; padding: 6px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.choix button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #E8333A, #B01017); box-shadow: 0 0 0 2px var(--or), 0 8px 16px rgba(110, 10, 16, .22); }
.detail-pay { margin-top: 14px; padding: 18px; border-radius: 24px; background: var(--papier); box-shadow: 0 0 0 2px var(--or), var(--ombre); }
.montant { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; color: var(--doux); font-size: 14.5px; }
.montant b { font-family: var(--titre); font-weight: 400; font-size: 28px; color: var(--laque); }
.adresses { display: flex; gap: 8px; margin-bottom: 14px; }
.adresses button { flex: 1; min-height: 42px; border-radius: 13px; font-size: 13px; font-weight: 700; background: var(--creme); box-shadow: 0 0 0 1.5px var(--trait); }
.adresses button[aria-pressed="true"] { background: var(--laque-nuit); color: var(--or-clair); box-shadow: none; }
.qr { width: 176px; height: 176px; margin: 0 auto 14px; padding: 11px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 2px var(--or); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.copie { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--creme); margin-top: 8px; }
.copie span { font-size: 12px; color: var(--doux); display: block; }
.copie code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; word-break: break-all; }
.copie button { min-height: 40px; padding: 0 16px; border-radius: 999px; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); font-weight: 800; font-size: 13.5px; }
.rdv { font-family: var(--titre); font-size: 22px; line-height: 1.15; margin: 4px 0 8px; color: var(--laque-nuit); }

/* ---------- Suivi : le bordereau du colis ---------- */
.commande { position: relative; border-radius: 28px; padding: 22px 20px 20px; background: var(--papier); box-shadow: 0 0 0 2px var(--or), var(--ombre); overflow: hidden; }
.commande header { display: flex; justify-content: space-between; align-items: baseline; }
.commande header b { font-family: var(--titre); font-weight: 400; font-size: 24px; color: var(--laque-nuit); }
.commande header span { font-weight: 700; color: var(--laque); }
.route { position: relative; height: 150px; margin: 6px -6px 0; }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path.trajet { stroke: rgba(110, 10, 16, .22); stroke-width: 2.5; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.route path.fait { stroke: var(--laque); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.route text { fill: var(--doux); font: 700 12px var(--texte); }
.route .vol { position: absolute; width: 104px; left: 0; top: 0; margin: -58px 0 0 -52px; filter: drop-shadow(0 8px 8px rgba(110, 10, 16, .25)); }
.etapes { list-style: none; padding: 0; margin: 14px 0 0; }
.etapes li { position: relative; padding: 0 0 18px 32px; color: rgba(43, 10, 10, .42); font-size: 15.5px; font-weight: 600; }
.etapes li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--creme); box-shadow: inset 0 0 0 2px rgba(110, 10, 16, .22); z-index: 1; }
.etapes li::after { content: ""; position: absolute; left: 10.5px; top: 16px; bottom: -4px; width: 2px; background: rgba(110, 10, 16, .14); }
.etapes li:last-child::after { display: none; }
.etapes li.fait { color: var(--encre); }
.etapes li.fait::before { background: var(--or); box-shadow: none; }
.etapes li.fait::after { background: var(--or); }
.etapes li.encours { color: var(--laque); font-weight: 800; }
.etapes li.encours::before { background: var(--laque); box-shadow: 0 0 0 5px rgba(196, 22, 28, .18); }
.etapes li p { margin: 4px 0 0; font-weight: 500; font-size: 14px; color: var(--doux); max-width: 30ch; }
.sceau { position: absolute; right: 4px; bottom: 70px; width: 132px; transform: rotate(6deg); filter: drop-shadow(0 10px 10px rgba(110, 10, 16, .25)); }
.demo-btn { margin-top: 14px; width: 100%; min-height: 48px; border-radius: 16px; border: 2px dashed rgba(210, 165, 68, .9); color: var(--doux); font-size: 13.5px; font-weight: 600; padding: 8px 12px; }

/* ---------- Aide ---------- */
.aide-tete { display: grid; grid-template-columns: 1fr 116px; align-items: end; gap: 6px; margin-bottom: 14px; }
.aide-tete h1 { font-size: 36px; margin: 6px 0 10px; }
.aide-tete img { width: 116px; }
.faq { display: grid; gap: 10px; margin-bottom: 26px; }
.faq details { border-radius: 20px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); padding: 0 16px; }
.faq details[open] { box-shadow: 0 0 0 2px var(--or), 0 10px 20px rgba(110, 10, 16, .1); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 17px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); font-size: 19px; font-weight: 700; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--doux); max-width: 46ch; }
.aide-actions { display: grid; gap: 12px; }

/* ---------- Profil ---------- */
.pf-tete { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; }
.pf-tete img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 3px var(--or), 0 10px 20px rgba(110, 10, 16, .25); }
.pf-tete h1 { font-size: 34px; }
.pf-tete p { margin: 4px 0 0; color: var(--doux); font-weight: 600; }
.pf-d { margin: 0 0 18px; color: var(--doux); }
.pf-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 2px var(--or), var(--ombre); }
.pf-ligne b { display: block; font-family: var(--titre); font-weight: 400; font-size: 20px; color: var(--laque-nuit); }
.pf-ligne small { display: block; margin-top: 2px; color: var(--laque); font-weight: 700; font-size: 13.5px; }
.pf-ligne .prix { font-family: var(--titre); font-size: 22px; color: var(--laque); white-space: nowrap; }

/* ---------- Installer, Personal Shopper ---------- */
.inst { padding-top: 6px; }
.inst h2 { font-size: 28px; margin: 0; }
.inst .depuis { display: flex; gap: 8px; margin: 12px 0 18px; }
.inst .depuis button { flex: 1; min-height: 42px; border-radius: 13px; font-size: 13px; font-weight: 700; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.inst .depuis button[aria-pressed="true"] { background: var(--laque-nuit); color: var(--or-clair); box-shadow: none; }
.inst ol { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; counter-reset: pas; }
.inst li { counter-increment: pas; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; font-weight: 500; }
.inst li::before { content: counter(pas); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-size: 22px; background: linear-gradient(140deg, var(--or-clair), var(--or)); color: var(--laque-nuit); }
.inst .icone { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.inst .icone img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 2px var(--or), 0 10px 20px rgba(110, 10, 16, .3); }
.inst .loupe { width: 150px; margin: -6px auto 6px; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(118px + var(--bas)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: calc(100% - 40px); padding: 13px 20px; border-radius: 18px; background: var(--laque-nuit); color: var(--or-clair); font-weight: 700; font-size: 14.5px; text-align: center; box-shadow: 0 0 0 2px var(--or), 0 12px 30px rgba(110, 10, 16, .35); transition: .3s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.braise-vol { position: fixed; z-index: 80; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; pointer-events: none; }
.braise-vol img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(110, 10, 16, .3)); }

/* ---------- Prix à la pièce, lots par taille (gros) ---------- */
.prix em, .f-prix em { font: 600 12.5px var(--texte); font-style: normal; color: var(--doux); margin-left: 5px; }
.lots { display: grid; gap: 8px; }
.lots > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; border-radius: 18px; background: var(--papier); box-shadow: 0 0 0 1.5px var(--trait); }
.lots b { font-weight: 800; font-size: 16px; }
.lots .qte span { min-width: 34px; font-size: 17px; }
/* Le conteneur qui se remplit jusqu'au minimum de commande */
.jauge-gros { position: fixed; z-index: 19; left: 50%; translate: -50% 0; bottom: calc(96px + var(--bas)); width: min(calc(100% - 28px), 492px); height: 42px; border-radius: 12px; overflow: hidden; background: var(--laque-nuit); box-shadow: 0 0 0 2px var(--or), 0 10px 20px rgba(110, 10, 16, .25); display: grid; place-items: center; }
.jauge-gros i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, #E2B851 0 10px, #C99A30 10px 13px); transition: width .5s cubic-bezier(.2, .9, .3, 1.2); }
.jauge-gros span { position: relative; padding: 0 12px; color: #fff; font-weight: 800; font-size: 13.5px; text-shadow: 0 1px 3px rgba(60, 4, 8, .9), 0 0 8px rgba(60, 4, 8, .6); text-align: center; }
.jauge-gros.plein span { color: var(--laque-nuit); text-shadow: 0 1px 0 rgba(255, 244, 200, .8); }
body.gros .quai-bas { bottom: calc(160px + var(--bas)); }
body.gros .mascotte-boite { bottom: calc(240px + var(--bas)); height: 42%; }
body.en-gros #app { padding-bottom: calc(156px + var(--bas)); }
body.en-gros .toast { bottom: calc(170px + var(--bas)); }

/* ---------- L'app Gros : l'or domine, le rouge souligne ---------- */
body.gros #portes i { background-color: #C99A30; background-image: url(../assets/conteneur-or.webp); }
body.gros .btn:not(.fil), body.gros .pastilles:not(.marques) button[aria-pressed="true"], body.gros .choix button[aria-pressed="true"] { color: var(--laque-nuit); background: linear-gradient(180deg, #FBE9B0, #E2B851 55%, #C4952F); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 0 0 2.5px var(--laque); }
body.gros .btn:not(.fil) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 80, 10, .25), 0 0 0 2.5px var(--laque), 0 12px 24px rgba(110, 10, 16, .25); }
body.gros .btn .rond { background: linear-gradient(180deg, #E8333A, #A00D13); color: #fff; }
body.gros .onglets .centre .rond { color: var(--laque-nuit); background: linear-gradient(180deg, #FBE9B0, #D9AC45 60%, #BF8F28); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 0 0 3px var(--laque), 0 0 0 7px var(--papier), 0 12px 22px rgba(110, 10, 16, .3); }
body.gros .pastille-n { background: linear-gradient(180deg, #E8333A, #A00D13); color: #fff; }
body.gros .cat-tete { background: linear-gradient(160deg, #F4D98A, #C4952F); box-shadow: 0 0 0 2.5px var(--laque), var(--ombre); }
body.gros .cat-tete::before { border-color: rgba(110, 10, 16, .4); }
body.gros .cat-tete h3 { color: var(--laque-nuit); }
body.gros .carte .plus { background: linear-gradient(180deg, #E8333A, #A00D13); color: #fff; }

/* ---------- Une boutique ouverte depuis le bot Telegram : la barre de Telegram au-dessus ---------- */
.tg-barre { position: fixed; z-index: 25; top: 0; left: 50%; translate: -50% 0; width: min(100%, 520px); height: 46px; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; text-align: center; background: #fff; border-bottom: 1px solid #E3E3E8; font: 600 15px/1.15 -apple-system, system-ui, sans-serif; color: #111; }
.tg-barre span, .tg-barre a { color: #2481CC; font-weight: 500; }
.tg-barre small { display: block; font-weight: 400; font-size: 11.5px; color: #8E8E93; }
body.tg #app { padding-top: 46px; }
body.tg .quai { height: calc(100svh - 46px); }
body.tg .pastilles.cats { top: 46px; padding-top: 10px; }
.bascule { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 2px var(--or); }
.bascule button { min-height: 44px; border-radius: 999px; font-weight: 800; color: var(--doux); }
.bascule button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #E8333A, #B01017); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #fx { display: none; }
}
body.tg #portes { top: 46px; }

/* Petits réglages d'espacement (aucun style écrit dans le HTML : la règle de sécurité du serveur les refuse). */
.mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .m0 { margin: 0; }
.rdv-lib { color: var(--doux); font-weight: 600; margin: 0; }
.note-auto { margin: -4px 0 14px; } .note-ps { margin: 8px 0 16px; } .note-suivi { margin: 8px 2px 0; font-size: 13.5px; }
.vide img.grand { width: 230px; }
.lien-gros.large { width: 100%; }
