:root {
  --rouge: #7a1f1f;
  --creme: #faf7f2;
  --encre: #2d2a26;
  --gris: #6b6560;
  --vert: #2e7d43;
}
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: var(--creme); color: var(--encre); line-height: 1.5; }
a { color: var(--rouge); }
.entete { background: var(--rouge); color: #fff; padding: .8rem 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.entete nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.entete nav a { color: #fff; text-decoration: none; opacity: .92; }
.panier { background: #fff2; padding: .2rem .6rem; border-radius: 999px; }
main { max-width: 62rem; margin: 1.5rem auto 3rem; padding: 0 1rem; }
footer { text-align: center; color: var(--gris); font-size: .85rem; padding: 1rem; border-top: 1px solid #e5ddd0; }
.messages p { padding: .6rem 1rem; border-radius: 8px; background: #efe6d8; }
.messages .success { background: #e2f0e5; color: var(--vert); }
.messages .error { background: #f7e0e0; color: var(--rouge); }

.hero { background: #fff; border: 1px solid #e5ddd0; border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; }
.hero h1 { margin: 0 0 .3rem; font-size: 1.5rem; }

.categorie-titre { margin: 1.6rem 0 .6rem; font-size: 1.1rem; color: var(--rouge); border-bottom: 2px solid #efe6d8; padding-bottom: .3rem; }
.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.carte { background: #fff; border: 1px solid #e5ddd0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.carte img { width: 100%; height: 9rem; object-fit: cover; background: #efe6d8; }
.carte-corps { padding: .7rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.carte h3 { margin: 0; font-size: 1rem; }
.carte .desc { color: var(--gris); font-size: .85rem; }
.prix { font-weight: 700; color: var(--rouge); }
.variantes { display: flex; flex-direction: column; gap: .3rem; }
.variantes .ligne { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; }
.pastille { display: inline-block; background: #cfc9c2; color: #4d4844; font-size: .7rem; padding: .1rem .5rem; border-radius: 999px; }
.carte.epuise { opacity: .65; }
.btn { background: var(--rouge); color: #fff; border: 0; border-radius: 8px; padding: .45rem .9rem; cursor: pointer; font-size: .9rem; }
.btn:disabled { background: #cfc9c2; cursor: not-allowed; }
.btn.secondaire { background: #efe6d8; color: var(--encre); }
.btn.petit { padding: .2rem .55rem; font-size: .8rem; }

.liste-vue table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.liste-vue th, .liste-vue td { padding: .55rem .7rem; border-bottom: 1px solid #efe6d8; text-align: left; }
.liste-vue td input[type=number] { width: 5.5rem; }
.total { font-size: 1.2rem; font-weight: 700; text-align: right; margin-top: 1rem; }

.formulaire { background: #fff; border: 1px solid #e5ddd0; border-radius: 12px; padding: 1.2rem 1.4rem; max-width: 42rem; }
.formulaire label { display: block; margin-top: .8rem; font-weight: 600; font-size: .9rem; }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; padding: .45rem .6rem; border: 1px solid #d8cfc0; border-radius: 8px; font: inherit; }
.formulaire .checkbox { font-weight: 400; }
.formulaire .checkbox input { width: auto; }
.variantes-table { width: 100%; margin-top: .3rem; }
.variantes-table td { padding: .2rem .3rem; }
.erreurs { color: var(--rouge); font-size: .85rem; }
.actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.mini-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.login-form { max-width: 24rem; margin: 2rem auto; }
