/* Dukaa — feuille de style commune (vente, tableau de bord, vitrine) */
:root {
  --malachite: #0B6B4F;
  --malachite-fonce: #095841;
  --safran: #F2A93B;
  --encre: #14110F;
  --sable: #F6F1E9;
  --blanc: #FFFFFF;
  --argile: #C4572A;
  --trait: #E2D9CA;
  --doux: #6A6158;
  --rayon: 12px;
  --police: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--encre);
  background: var(--sable);
}
/* Chiffres alignés, seulement là où il y a des montants (sinon la ponctuation s'écarte). */
.chiffre strong, .commande .total, .commande li span:last-child, .ticket dd, .ticket .total, .t-prod i, .t-panier,
.v-prod .prix, .p-total, .p-ligne .nom span, .produit-ligne .infos span, .prix-carte .tarif, .v-barre button,
.abo .jours, .confirmation .somme, .a-prod i { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h3 { font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--malachite); outline-offset: 2px; }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.doux { color: var(--doux); }
.petit { font-size: 14px; }
.cadre { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--rayon);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; background: transparent; color: var(--encre);
  transition: background-color .12s ease, border-color .12s ease;
}
.btn-plein { background: var(--malachite); color: var(--blanc); }
.btn-plein:hover { background: var(--malachite-fonce); }
.btn-trait { border-color: var(--trait); background: var(--blanc); }
.btn-trait:hover { border-color: var(--encre); }
.btn-danger { border-color: var(--trait); background: var(--blanc); color: var(--argile); }
.btn-petit { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-large { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 600; color: var(--malachite); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* ---------- Champs ---------- */
.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.champ small { display: block; color: var(--doux); font-size: 14px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--blanc); font-size: 16px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--malachite); outline-offset: 0; border-color: var(--malachite); }
input[type=file] { width: 100%; font-size: 15px; }
.erreur { color: var(--argile); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.succes { color: var(--malachite); font-weight: 600; font-size: 15px; margin: 0 0 14px; }

.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 20px; }
.chargement { padding: 64px 20px; text-align: center; color: var(--doux); }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 50; margin: 0 auto; max-width: 420px;
  background: var(--encre); color: var(--blanc); padding: 14px 16px; border-radius: var(--rayon);
  font-weight: 600; font-size: 15px; text-align: center;
}

/* =========================================================
   PAGE DE VENTE
   ========================================================= */
.haut { background: var(--sable); border-bottom: 1px solid var(--trait); }
.haut .cadre { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.haut img { height: 28px; width: auto; }
.haut nav { display: flex; align-items: center; gap: 8px; }
.haut .lien-nav { font-weight: 600; text-decoration: none; padding: 12px 10px; }
.haut .btn { display: none; }

.hero { padding: 48px 0 56px; }
.hero h1 { font-size: 36px; max-width: 13em; }
.hero h1 span { display: block; color: var(--malachite); }
.hero .sous { font-size: 18px; margin-top: 18px; max-width: 34em; color: #3A342E; }
.hero .actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero .actions .btn { width: 100%; min-height: 54px; font-size: 17px; }
.metiers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.metiers li { border: 1px solid var(--trait); border-radius: 999px; padding: 6px 12px; font-size: 14px; background: var(--blanc); }

.bloc { padding: 56px 0; border-top: 1px solid var(--trait); }
.bloc-blanc { background: var(--blanc); }
.bloc h2 { font-size: 28px; max-width: 16em; }
.bloc .intro { margin-top: 12px; color: #3A342E; max-width: 36em; }
.surtitre { font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin-bottom: 12px; }

.etapes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; counter-reset: etape; }
.etapes li { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 20px; counter-increment: etape; }
.bloc-blanc .etapes li { background: var(--sable); }
.etapes li::before { content: counter(etape); display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--malachite); margin-bottom: 10px; }
.etapes h3 { font-size: 19px; margin-bottom: 6px; }
.etapes p { color: #3A342E; }

.demo { display: grid; gap: 32px; margin-top: 36px; align-items: center; }
.telephone { width: 100%; max-width: 310px; margin: 0 auto; border: 9px solid var(--encre); border-radius: 38px; background: var(--sable); overflow: hidden; }
.telephone .ecran { padding: 0 0 12px; }
.t-entete { padding: 18px 16px 14px; background: var(--blanc); border-bottom: 1px solid var(--trait); display: flex; gap: 12px; align-items: center; }
.t-logo { width: 42px; height: 42px; border-radius: 10px; background: var(--malachite); color: var(--blanc); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.t-entete strong { display: block; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.t-entete small { color: var(--doux); font-size: 13px; }
.t-cats { display: flex; gap: 6px; padding: 12px 16px; overflow: hidden; }
.t-cats span { font-size: 12px; font-weight: 600; border: 1px solid var(--trait); border-radius: 999px; padding: 4px 10px; background: var(--blanc); white-space: nowrap; }
.t-cats span:first-child { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.t-prod { margin: 0 16px 8px; padding: 12px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.t-prod b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; }
.t-prod i { font-style: normal; font-size: 13px; color: var(--doux); }
.t-prod span { font-size: 12px; font-weight: 600; border-radius: 9px; padding: 7px 10px; background: var(--malachite); color: var(--blanc); white-space: nowrap; }
.t-prod span.qte { background: var(--blanc); color: var(--encre); border: 1px solid var(--trait); }
.t-panier { margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--malachite); color: var(--blanc); display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }

.ticket { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 20px; max-width: 380px; margin: 0 auto; width: 100%; }
.ticket .entete-ticket { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--trait); margin-bottom: 12px; }
.ticket .entete-ticket small { color: var(--doux); font-size: 13px; }
.ticket .num { font-family: var(--mono); font-weight: 500; font-size: 20px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 15px; }
.ticket dt, .ticket dd { margin: 0; }
.ticket dd { text-align: right; }
.ticket .total { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--trait); display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.ticket .client { margin-top: 12px; font-size: 14px; color: var(--doux); }
.sous-demo { margin-top: 14px; font-size: 14px; color: var(--doux); text-align: center; }

.argent { background: var(--malachite); color: var(--blanc); border-top: 0; }
.argent h2 { color: var(--blanc); font-size: 30px; }
.argent p { margin-top: 14px; max-width: 34em; font-size: 18px; color: #E4F0EB; }
.argent .trait-safran { width: 48px; height: 4px; background: var(--safran); border-radius: 2px; margin-bottom: 20px; }

.prix-carte { margin-top: 28px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 24px; max-width: 460px; }
.prix-carte .essai { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.prix-carte .tarif { margin-top: 6px; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.prix-carte .tarif small { font-size: 16px; font-weight: 400; color: var(--doux); letter-spacing: 0; }
.prix-carte ul { list-style: none; padding: 0; margin: 20px 0 22px; }
.prix-carte li { padding: 10px 0; border-top: 1px solid var(--trait); }

.faq { margin-top: 28px; max-width: 720px; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 13px; font-family: var(--mono); font-size: 20px; color: var(--malachite); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 18px; color: #3A342E; max-width: 38em; }

.fin { text-align: left; }
.fin .btn { margin-top: 24px; min-height: 54px; width: 100%; font-size: 17px; }
.pied { border-top: 1px solid var(--trait); padding: 28px 0 40px; font-size: 14px; color: var(--doux); }
.pied .cadre { display: flex; flex-direction: column; gap: 14px; }
.pied img { height: 24px; width: auto; }
.pied a { font-weight: 600; }

@media (min-width: 720px) {
  .haut .btn { display: inline-flex; }
  .hero { padding: 80px 0 88px; }
  .hero h1 { font-size: 60px; }
  .hero .sous { font-size: 20px; }
  .hero .actions { flex-direction: row; align-items: center; gap: 18px; }
  .hero .actions .btn, .fin .btn { width: auto; padding: 0 28px; }
  .bloc { padding: 80px 0; }
  .bloc h2 { font-size: 38px; }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .demo { grid-template-columns: 1fr 1fr; }
  .pied .cadre { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================================================
   TABLEAU DE BORD
   ========================================================= */
.auth { min-height: 100vh; padding: 28px 20px 48px; display: flex; flex-direction: column; align-items: center; }
.auth .marque img { height: 30px; width: auto; margin: 8px 0 28px; }
.carte-auth { width: 100%; max-width: 420px; padding: 24px 20px; }
.carte-auth h1 { font-size: 26px; margin-bottom: 6px; }
.carte-auth .sous { color: var(--doux); margin-bottom: 22px; }
.carte-auth .bas { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.apercu-lien { font-family: var(--mono); font-weight: 500; font-size: 14px; background: var(--sable); border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; margin: -4px 0 18px; word-break: break-all; }

.tb-haut { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.tb-haut .cadre { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.tb-haut img { height: 26px; width: auto; }
.tb-haut .droite { display: flex; align-items: center; gap: 6px; }
.tb-haut .btn { white-space: nowrap; padding: 0 12px; }
.tb-menu { background: var(--blanc); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 10; }
.tb-menu .cadre { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.tb-menu .cadre::-webkit-scrollbar { display: none; }
.tb-menu button {
  flex: none; min-height: 48px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--doux); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tb-menu button[aria-current=page] { color: var(--encre); border-bottom-color: var(--malachite); }
.tb-menu .pastille { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: 12px; font-family: var(--mono); font-weight: 500; text-align: center; }
.tb-contenu { padding: 24px 20px 96px; }
.tb-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tb-titre h1 { font-size: 26px; }
.bandeau { background: #FCEFD6; border: 1px solid var(--safran); border-radius: var(--rayon); padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.bandeau .lien { display: inline; min-height: 0; }

.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chiffre { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 16px; }
.chiffre span { display: block; font-size: 14px; color: var(--doux); }
.chiffre strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; word-break: break-word; }
.section { margin-top: 24px; }
.section h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.graphique { width: 100%; height: auto; display: block; }
.graphique text { font-family: var(--police); font-size: 11px; fill: var(--doux); }
.graphique .val { font-family: var(--mono); font-size: 10px; fill: var(--encre); }
.vide { background: var(--blanc); border: 1px dashed var(--trait); border-radius: 14px; padding: 28px 20px; text-align: center; color: var(--doux); }
.vide strong { display: block; color: var(--encre); font-weight: 700; margin-bottom: 4px; }
.vide .btn { margin-top: 16px; }

.filtres { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px 2px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.filtres button[aria-pressed=true] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

.commande { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.commande .ligne-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.commande .num { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.commande .total { font-weight: 700; font-size: 18px; white-space: nowrap; }
.commande .qui { margin-top: 6px; font-size: 15px; }
.commande .qui a { color: var(--malachite); font-weight: 600; }
.commande .quand { font-size: 13px; color: var(--doux); }
.commande ul { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--trait); }
.commande li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; }
.commande li span:last-child { white-space: nowrap; }
.commande .detail { margin-top: 10px; font-size: 14px; color: #3A342E; overflow-wrap: anywhere; }
.commande .detail b { font-weight: 600; }
.commande .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--trait); white-space: nowrap; }
.badge.nouvelle { background: var(--safran); border-color: var(--safran); color: var(--encre); }
.badge.en_preparation { background: var(--sable); }
.badge.livree { background: var(--malachite); border-color: var(--malachite); color: var(--blanc); }
.badge.annulee { color: var(--doux); text-decoration: line-through; }

.produit-ligne { display: flex; gap: 12px; align-items: center; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.produit-ligne .vignette { flex: none; width: 60px; height: 60px; border-radius: 10px; background: var(--sable); object-fit: cover; display: grid; place-items: center; font-weight: 800; color: var(--doux); border: 1px solid var(--trait); }
.produit-ligne .infos { flex: 1; min-width: 0; }
.produit-ligne .infos strong { display: block; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.produit-ligne .infos span { font-size: 14px; color: var(--doux); }
.produit-ligne .droite { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.produit-ligne.masque .infos, .produit-ligne.masque .vignette { opacity: .5; }

dialog.feuille { border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 92vh; border-radius: 18px 18px 0 0; margin: auto auto 0; background: var(--blanc); color: var(--encre); }
dialog.feuille::backdrop { background: rgba(20, 17, 15, .55); }
.feuille .interieur { padding: 20px 20px 28px; }
.feuille .tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feuille .tete h2 { font-size: 22px; }
.feuille .fermer { min-width: 44px; min-height: 44px; border: 1px solid var(--trait); border-radius: 10px; background: none; cursor: pointer; font-weight: 600; }
.feuille .pied-feuille { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.feuille .pied-feuille .btn-plein { flex: 1; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 14px; font-weight: 600; }
.case input { width: 22px; height: 22px; accent-color: var(--malachite); }
@media (min-width: 620px) { dialog.feuille { border-radius: 18px; margin: auto; } }

.deux-col { display: grid; gap: 20px; }
.pastilles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 420px; }
.pastilles label { position: relative; display: block; aspect-ratio: 1; min-height: 36px; border-radius: 10px; cursor: pointer; border: 1px solid rgba(20, 17, 15, .15); }
.pastilles input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pastilles label:has(input:checked) { outline: 3px solid var(--encre); outline-offset: 2px; }
.pastilles label:has(input:focus-visible) { outline: 3px solid var(--malachite); outline-offset: 2px; }
.bascule { display: inline-flex; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
.bascule label { position: relative; min-height: 44px; padding: 0 18px; display: grid; place-items: center; font-weight: 600; cursor: pointer; }
.bascule input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bascule label:has(input:checked) { background: var(--encre); color: var(--blanc); }
.groupe { margin-bottom: 18px; }
.groupe > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }

.apercu { border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; background: var(--v-fond, #F6F1E9); color: var(--v-texte, #14110F); }
.apercu .a-entete { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--v-carte, #fff); border-bottom: 1px solid var(--v-trait, #E2D9CA); }
.apercu .a-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--accent, #0B6B4F); color: var(--sur-accent, #fff); display: grid; place-items: center; font-weight: 800; flex: none; }
.apercu .a-entete strong { display: block; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.apercu .a-entete small { font-size: 13px; opacity: .7; }
.apercu .a-prod { margin: 12px 16px 0; padding: 12px; border: 1px solid var(--v-trait, #E2D9CA); border-radius: 12px; background: var(--v-carte, #fff); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.apercu .a-prod b { font-weight: 600; font-size: 15px; display: block; }
.apercu .a-prod i { font-style: normal; font-size: 14px; opacity: .7; }
.apercu .a-btn { background: var(--accent, #0B6B4F); color: var(--sur-accent, #fff); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.apercu .a-bas { margin: 12px 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent, #0B6B4F); color: var(--sur-accent, #fff); font-weight: 600; text-align: center; }

.lien-vitrine { display: flex; gap: 8px; }
.lien-vitrine input { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.partage { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.affiche { margin-top: 18px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 24px; text-align: center; }
.affiche h3 { font-size: 22px; overflow-wrap: anywhere; }
.affiche canvas { margin: 16px auto; width: 220px; height: 220px; image-rendering: pixelated; display: block; }
.affiche .adresse { font-family: var(--mono); font-weight: 500; font-size: 14px; word-break: break-all; }
.affiche img { height: 20px; width: auto; margin: 16px auto 0; }

.abo .jours { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.abo .jours small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.abo .btn { margin-top: 20px; }
.abo ul { padding: 0; margin: 18px 0 0; list-style: none; }
.abo li { padding: 10px 0; border-top: 1px solid var(--trait); }

@media (min-width: 860px) {
  .tb-contenu { padding-top: 32px; }
  .chiffres { grid-template-columns: repeat(4, 1fr); }
  .deux-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .tb-menu .cadre { padding: 0 20px; }
}

@media print {
  body * { visibility: hidden; }
  .affiche, .affiche * { visibility: visible; }
  .affiche { position: fixed; inset: 0; border: 0; display: flex; flex-direction: column; justify-content: center; }
  .affiche canvas { width: 320px; height: 320px; }
  .toast { display: none; }
}

/* =========================================================
   VITRINE PUBLIQUE
   ========================================================= */
body.vitrine {
  --accent: #0B6B4F; --sur-accent: #FFFFFF;
  --v-fond: #F6F1E9; --v-carte: #FFFFFF; --v-texte: #14110F; --v-trait: #E2D9CA; --v-doux: #6A6158;
  background: var(--v-fond); color: var(--v-texte);
}
html[data-mode=sombre] body.vitrine, .apercu[data-mode=sombre] {
  --v-fond: #14110F; --v-carte: #1F1B18; --v-texte: #F6F1E9; --v-trait: #37312C; --v-doux: #A79E93;
}
.vitrine .cadre { max-width: 760px; padding: 0 16px; }
.v-entete { background: var(--v-carte); border-bottom: 1px solid var(--v-trait); padding: 22px 0 18px; }
.v-entete .cadre { display: flex; gap: 14px; align-items: center; }
.v-logo { width: 60px; height: 60px; flex: none; border-radius: 14px; object-fit: cover; background: var(--accent); color: var(--sur-accent); display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.v-entete h1 { font-size: 24px; overflow-wrap: anywhere; }
.v-entete .ville { color: var(--v-doux); font-size: 15px; margin-top: 2px; }
.v-desc { padding: 14px 0 0; color: var(--v-doux); overflow-wrap: anywhere; white-space: pre-line; }
.v-avis { margin-top: 16px; border: 1px solid var(--v-trait); background: var(--v-carte); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.v-cats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.v-cats::-webkit-scrollbar { display: none; }
.v-cats button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--v-trait); background: var(--v-carte); color: var(--v-texte); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.v-cats button[aria-pressed=true] { background: var(--v-texte); color: var(--v-fond); border-color: var(--v-texte); }
.v-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0 120px; }
.v-prod { background: var(--v-carte); border: 1px solid var(--v-trait); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.v-prod .photo { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--v-fond); display: grid; place-items: center; font-weight: 800; font-size: 34px; color: var(--v-doux); border-bottom: 1px solid var(--v-trait); }
.v-prod .corps { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.v-prod h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
.v-prod .desc { font-size: 13px; color: var(--v-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.v-prod .prix { font-weight: 700; margin-top: auto; padding-top: 6px; }
.v-prod .zone { padding: 0 12px 12px; }
.v-btn { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: var(--sur-accent); font-weight: 600; font-size: 15px; cursor: pointer; }
.v-btn[disabled] { opacity: .45; cursor: not-allowed; }
.compteur { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--v-trait); border-radius: 10px; min-height: 44px; }
.compteur button { width: 44px; min-height: 44px; border: 0; background: none; color: var(--v-texte); font-size: 20px; font-weight: 600; cursor: pointer; }
.compteur span { font-weight: 700; min-width: 2ch; text-align: center; }
.v-vide { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--v-doux); }

.v-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--v-fond); border-top: 1px solid var(--v-trait); }
.v-barre button { width: 100%; max-width: 728px; margin: 0 auto; min-height: 54px; border: 0; border-radius: 12px; background: var(--accent); color: var(--sur-accent); font-weight: 600; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }

.vitrine dialog.feuille { background: var(--v-carte); color: var(--v-texte); }
.vitrine .feuille .fermer { border-color: var(--v-trait); color: var(--v-texte); }
.vitrine .feuille input, .vitrine .feuille textarea { background: var(--v-fond); border-color: var(--v-trait); color: var(--v-texte); }
.vitrine .feuille input:focus, .vitrine .feuille textarea:focus { outline-color: var(--v-texte); border-color: var(--v-texte); }
.p-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--v-trait); }
.p-ligne .nom { flex: 1; min-width: 0; }
.p-ligne .nom b { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.p-ligne .nom span { font-size: 14px; color: var(--v-doux); }
.p-ligne .compteur { width: 120px; flex: none; }
.p-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.p-total span:first-child { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.p-note { font-size: 14px; color: var(--v-doux); margin-top: 12px; text-align: center; }
.v-btn.grand { min-height: 54px; font-size: 17px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.confirmation { text-align: center; padding: 12px 0 4px; }
.confirmation .num { font-family: var(--mono); font-weight: 500; font-size: 40px; line-height: 1.1; margin: 10px 0 6px; }
.confirmation p { color: var(--v-doux); margin-bottom: 18px; }
.confirmation .somme { color: var(--v-texte); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.vitrine .erreur { color: #D9683A; }

.v-pied { padding: 20px 16px 110px; text-align: center; font-size: 13px; color: var(--v-doux); }
.v-pied a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.v-pied img { height: 18px; width: auto; }
html[data-mode=sombre] .v-pied .logo-clair { display: none; }
html:not([data-mode=sombre]) .v-pied .logo-sombre { display: none; }
.v-introuvable { max-width: 420px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.v-introuvable h1 { font-size: 26px; margin-bottom: 10px; }
.v-introuvable .btn { margin-top: 22px; }

@media (min-width: 620px) {
  .v-grille { grid-template-columns: repeat(3, 1fr); }
  .v-entete h1 { font-size: 30px; }
}
