/* Tout Vrac — démonstration de boutique en ligne (ZataLabs, V7.4). */
:root { --kraft: #e9dcc4; --kraft-2: #dccaa9; --vert: #2d5a3d; --encre: #1f1d17; --doux: #6b6352; --papier: #f7f1e5; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 16px/1.5 Chivo, system-ui, sans-serif; }
h2, h3 { font-weight: 900; margin: 0 0 .5em; line-height: 1.1; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }

.entete { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem clamp(1rem, 4vw, 3rem); background: var(--kraft); background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 6px 6px; }
.logo { display: grid; font: 900 1.6rem/.9 Chivo, sans-serif; letter-spacing: .08em; padding: .6rem .8rem; border: 3px solid var(--encre); transform: rotate(-3deg); background: var(--papier); }
.logo span:last-child { color: var(--vert); }
.entete p { margin: 0; font-family: "Chivo Mono", monospace; font-size: .9rem; }
.rayons { display: flex; gap: .4rem; padding: 1rem clamp(1rem, 4vw, 3rem); overflow-x: auto; border-bottom: 2px dashed var(--kraft-2); }
.rayons button { padding: .5rem 1rem; border: 2px solid var(--encre); border-radius: 4px; background: none; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rayons button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }

.mise { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem; align-items: start; }
@media (max-width: 900px) { .mise { grid-template-columns: 1fr; } }
.bocaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.bocal { display: grid; gap: .6rem; padding: 1rem; background: #fff; border: 2px solid var(--encre); border-radius: 6px; }
.bocal__verre { position: relative; height: 150px; }
.bocal__verre svg { width: 100%; height: 100%; }
.bocal__verre .contenu { transition: y .4s, height .4s; }
.bocal h3 { font-size: 1.1rem; margin: 0; }
.bocal .origine { margin: -.4rem 0 0; font-size: .82rem; color: var(--doux); }
.etiquette { display: flex; justify-content: space-between; font-family: "Chivo Mono", monospace; font-size: .85rem; }
.poids { display: grid; gap: .3rem; }
.poids label { display: flex; justify-content: space-between; font-family: "Chivo Mono", monospace; font-size: .9rem; }
.poids output { font-weight: 600; }
.poids input { width: 100%; accent-color: var(--vert); }
.bocal button { padding: .6rem; border: 0; border-radius: 4px; background: var(--vert); color: #fff; font-weight: 700; cursor: pointer; }
.bocal button:disabled { background: #b8b2a3; cursor: default; }

/* Ticket façon caisse */
.ticket { position: sticky; top: 1rem; padding: 1.3rem; background: #fff; font-family: "Chivo Mono", monospace; border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--kraft-2); }
.ticket h2 { font-family: Chivo, sans-serif; font-size: 1.4rem; }
.minimum p { margin: 0 0 .4rem; font-size: .85rem; }
.minimum__barre { height: 8px; border: 2px solid var(--encre); border-radius: 4px; overflow: hidden; }
.minimum__barre span { display: block; height: 100%; width: 0; background: var(--vert); transition: width .3s; }
#lignes { list-style: none; margin: 1rem 0; padding: 0; border-top: 2px dashed var(--kraft-2); }
#lignes li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--kraft-2); font-size: .88rem; }
#lignes li small { color: var(--doux); }
#lignes li button { grid-column: 2; border: 0; background: none; color: var(--doux); text-decoration: underline; cursor: pointer; font-size: .8rem; justify-self: end; }
.consigne { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.consigne input { accent-color: var(--vert); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: .8rem 0; padding-top: .6rem; border-top: 2px solid var(--encre); }
.total b { font: 900 1.6rem/1 Chivo, sans-serif; }
#valider { width: 100%; padding: .9rem; border: 0; border-radius: 4px; background: var(--encre); color: var(--papier); font: 700 1rem/1 Chivo, sans-serif; cursor: pointer; }
#valider:disabled { opacity: .4; cursor: not-allowed; }
#retour { min-height: 1em; font-size: .85rem; }
.pied { padding: 1.5rem; text-align: center; color: var(--doux); font-size: .88rem; border-top: 2px dashed var(--kraft-2); }
