/* Charte Bryant : crème, vert parc, encre, un seul accent jaune taxi. Fraunces + Archivo. */
:root {
  --creme: #F4EEE1; --kraft: #EAE1CE; --vert: #1F3D2B; --encre: #161616; --doux: #5E584D;
  --jaune: #F9DA13; --brique: #A4492F; --filet: #C9BEA6; --champ: #FBF8F1;
  --titre: "Fraunces", "Iowan Old Style", Georgia, serif;
  --texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--creme); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--creme); }

.etq { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.doux { color: var(--doux); }
.vert { color: var(--vert); }
.brique { color: var(--brique); }
.t1 { font-family: var(--titre); font-size: 40px; line-height: 1.05; font-weight: 600; color: var(--vert); margin: 0; }
.t2 { font-family: var(--titre); font-size: 26px; line-height: 1.15; font-weight: 500; color: var(--vert); margin: 0; }
.prod { font-family: var(--titre); font-size: 19px; line-height: 1.2; font-weight: 600; }
.petit { font-size: 13px; line-height: 1.45; color: var(--doux); margin: 0; }
.pastille { display: inline-block; background: var(--jaune); color: var(--encre); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.etat { padding: 64px 24px; display: flex; flex-direction: column; gap: 12px; }

.bandeau-test { background: var(--encre); color: var(--creme); padding: 8px 20px; font-size: 12px; text-align: center; }
header.top { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--filet); }
.logo { font-family: var(--titre); color: var(--vert); font-size: 22px; white-space: nowrap; background: none; border: 0; padding: 0; }
.logo b { font-weight: 600; }
.logo span { font-weight: 500; font-size: 15px; }
.logo i { font-style: normal; font-size: 10px; vertical-align: middle; margin: 0 4px; }
.rond { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--vert); background: transparent; color: var(--vert); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.rond .badge { position: absolute; top: -4px; right: -4px; background: var(--jaune); color: var(--encre); border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.rond.clair { border-color: var(--creme); color: var(--creme); }

.modes { padding: 16px 20px 0; display: grid; grid-template-columns: 1fr 1fr; }
.modes button { height: 46px; border: 1px solid var(--vert); background: transparent; color: var(--vert); }
.modes button:first-child { border-radius: 4px 0 0 4px; }
.modes button:last-child { border-radius: 0 4px 4px 0; }
.modes button.on { background: var(--vert); color: var(--creme); }
.modes button:disabled { color: var(--doux); border-color: var(--filet); }

.hero { padding: 28px 20px 12px; display: flex; flex-direction: column; gap: 4px; }
nav.cats { position: sticky; top: 0; z-index: 5; background: var(--creme); display: flex; gap: 20px; overflow-x: auto; padding: 0 20px; border-bottom: 1px solid var(--filet); scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
nav.cats button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 13px 0; color: var(--doux); }
nav.cats button.on { color: var(--vert); border-bottom-color: var(--vert); }
section.cat { padding: 28px 20px 0; scroll-margin-top: 52px; }
.item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--filet); padding: 14px 0; display: flex; gap: 14px; text-align: left; }
.vign { width: 72px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 28px; font-weight: 600; color: var(--creme); background: var(--vert); }
.item .info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item .px { font-weight: 600; }
.item:disabled { opacity: .55; }

.bar { position: sticky; bottom: 0; z-index: 6; margin-top: auto; }
.bar .note { padding: 10px 20px; background: var(--creme); border-top: 1px solid var(--filet); }
.cta { width: 100%; min-height: 60px; padding: 0 20px; background: var(--vert); color: var(--creme); border: 0; display: flex; justify-content: space-between; align-items: center; }
.cta .m { font-size: 18px; font-weight: 600; }
.cta:disabled { background: var(--kraft); color: var(--doux); }
.btn { min-height: 48px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--vert); background: var(--vert); color: var(--creme); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.btn.ghost { background: transparent; color: var(--vert); }
.btn:disabled { background: var(--kraft); border-color: var(--kraft); color: var(--doux); }
.lien { background: none; border: 0; color: var(--vert); text-decoration: underline; font-size: 13px; min-height: 44px; padding: 0; }

/* fiche produit / menu */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--creme); overflow-y: auto; }
.sheet .inner { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.shead { background: var(--vert); color: var(--creme); padding: 14px 16px 26px; display: flex; flex-direction: column; gap: 18px; }
.shead .t1 { color: var(--creme); }
.shead p { margin: 8px 0 0; font-size: 15px; }
.part { margin: 22px 20px 0; }
.part > .ph { padding-bottom: 8px; border-bottom: 1px solid var(--filet); color: var(--vert); }
.row { width: 100%; min-height: 50px; background: none; border: 0; border-bottom: 1px solid var(--kraft); padding: 6px 0; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; }
.row .l { flex: 1; }
.row .r { font-size: 13px; color: var(--doux); }
.row.sel { font-weight: 600; }
.row.sel .r { color: var(--encre); }
.row:disabled { color: var(--doux); }
.mark { width: 22px; height: 22px; flex: none; border: 1px solid var(--vert); display: flex; align-items: center; justify-content: center; }
.mark.radio { border-radius: 999px; }
.row.sel .mark { background: var(--vert); }
.row.sel .mark::after { content: ""; width: 8px; height: 8px; background: var(--creme); border-radius: 999px; }
.done { min-height: 50px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.done .l { flex: 1; font-weight: 600; }
.grp { margin-top: 14px; }
.grp .gh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 4px; }
.grp .gh .nom { font-size: 13px; font-weight: 600; }
.step { width: 44px; height: 44px; border: 1px solid var(--vert); background: transparent; color: var(--vert); border-radius: 4px; font-size: 18px; flex: none; }
.step:disabled { border-color: var(--filet); color: var(--filet); }
.qn { width: 22px; text-align: center; font-weight: 600; }
.err { color: var(--brique); font-size: 13px; }
.valider { width: 100%; margin-top: 16px; }

/* panier, validation */
.page { padding: 0 20px 24px; display: flex; flex-direction: column; }
.ligne { padding: 14px 0; border-top: 1px solid var(--filet); display: flex; gap: 12px; }
.ligne .info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.qty { display: flex; align-items: center; gap: 8px; }
.tot { display: flex; justify-content: space-between; padding: 4px 0; }
.tot.fort { font-size: 18px; font-weight: 600; border-top: 1px solid var(--filet); padding-top: 12px; margin-top: 4px; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.choix button { min-height: 56px; border: 1px solid var(--vert); background: transparent; color: var(--vert); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.choix button.on { background: var(--vert); color: var(--creme); }
.choix small { font-size: 12px; opacity: .85; }
label.f { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--doux); }
.f input, .f select, .f textarea { min-height: 48px; padding: 10px 12px; border: 1px solid var(--filet); border-radius: 4px; background: var(--champ); color: var(--encre); font-size: 16px; }
.f textarea { min-height: 80px; resize: vertical; }
.box { margin-top: 20px; padding: 16px; background: var(--kraft); }
.box.alerte { background: var(--vert); color: var(--creme); }
.box.alerte .petit { color: var(--creme); }
.box.erreur { background: #F6E3DC; color: var(--brique); }
.recap { margin: 16px 0 0; padding: 0; list-style: none; }
.recap li { padding: 8px 0; border-bottom: 1px solid var(--kraft); display: flex; justify-content: space-between; gap: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- compte client ---------- */
header.top .actions { display: flex; gap: 10px; }
.points { background: var(--vert); color: var(--creme); padding: 18px 20px; border-radius: 4px; }
.points .etq { color: var(--jaune); margin: 0; }
.points .solde { font-family: var(--titre); font-size: 48px; line-height: 1.1; font-weight: 600; margin: 4px 0; }
.points .solde small { font-size: 18px; }
.points .petit { color: var(--kraft); }
.bloc { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.case { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.case input { width: 20px; height: 20px; accent-color: var(--vert); }
.statut { display: block; color: var(--doux); font-size: 12px; }
