/* Pain Quotidien — commandes en ligne
   Palette tirée du logo : encre brun-noir des traits (#231e19), or des ombres (#e6bd63),
   crème de la mie (#fcfcef) pour les fonds. Les noms de variables historiques sont gardés :
   --olive = action principale (encre), --kraft = accent doré, --lin = fond crème.
   Une seule fantaisie : la Bricolage Grotesque des titres et des prix, comme une étiquette découpée. */
@font-face {
  font-family: 'Bricolage';
  src: url('/static/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --lin: #f6f2e5;          /* crème du logo, un ton plus chaud pour le fond */
  --carte: #fffdf7;
  --seigle: #231e19;       /* encre des traits du logo */
  --gris: #6d655a;
  --trait: #e3dac4;
  --olive: #231e19;        /* boutons principaux : encre */
  --olive-fonce: #3d3328;
  --olive-pale: #f8ecc9;   /* or pâle : sélection, confirmations */
  --kraft: #e6bd63;        /* or des ombres du logo */
  --kraft-pale: #fbf3dd;
  --or-texte: #7a5714;     /* or foncé lisible sur crème */
  --alerte: #a33a2b;
  --alerte-pale: #f6e1dc;
  --info-pale: #efe9db;
  --titre: 'Bricolage', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-photo: 10px;
  --r-panneau: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lin); color: var(--seigle); font: 16px/1.5 var(--texte); }
a { color: var(--olive-fonce); text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titre); font-weight: 650; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--kraft); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--gris); }
.petit { font-size: .88rem; }
.centre { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; } .mb0 { margin-bottom: 0; }

/* ---------------------------------------------------------------- barre */
.barre { background: var(--seigle); color: #f6f3ec; position: sticky; top: 0; z-index: 20; }
.barre .in { max-width: 1120px; margin: 0 auto; padding: .55rem 16px; display: flex; align-items: center; gap: 1rem; }
.marque { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; color: #f6f3ec; text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.barre nav { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
.barre nav a, .barre nav button { color: #e9e4d9; text-decoration: none; padding: .4rem .65rem; border-radius: 8px; font-size: .95rem; background: none; border: 0; font: inherit; cursor: pointer; }
.barre nav a:hover, .barre nav button:hover, .barre nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.barre form { margin: 0; }
.btn-panier { display: inline-flex; align-items: center; gap: .45rem; background: var(--kraft) !important; color: var(--seigle) !important; font-weight: 600; }
.btn-panier .n { background: var(--seigle); color: #fff; border-radius: 999px; min-width: 1.4em; padding: 0 .4em; font-size: .82rem; text-align: center; }
.btn-panier .n:empty { display: none; }
@media (max-width: 600px) {
  .barre .in { gap: .5rem; padding: .45rem 12px; }
  .marque { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
  .barre nav { flex-wrap: nowrap; flex: none; gap: 0; }
  .barre nav a, .barre nav button { padding: .35rem .45rem; font-size: .88rem; }
  .barre nav .long { display: none; }
}
.barre nav .court { display: none; }
@media (max-width: 600px) { .barre nav .court { display: inline; } }

main { max-width: 1120px; margin: 0 auto; padding: 1.2rem 16px 6rem; }
.etroit { max-width: 560px; margin: 0 auto; }
.moyen { max-width: 760px; margin: 0 auto; }
.pied { text-align: center; color: var(--gris); font-size: .85rem; padding: 2rem 16px 5.5rem; }
.pied a { color: var(--gris); }

/* --------------------------------------------------------------- messages */
.flash { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; background: var(--olive-pale); border-left: 4px solid var(--olive); }
.flash.err { background: var(--alerte-pale); border-left-color: var(--alerte); }
.flash.info { background: var(--info-pale); border-left-color: #8a7f6c; }

/* --------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem/1.2 var(--texte); padding: .7rem 1.15rem;
  border-radius: 999px; border: 1.5px solid var(--olive); background: var(--carte); color: var(--olive-fonce); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--olive-pale); }
.btn.plein { background: var(--olive); color: #fcfcef; border-color: var(--olive); }
.btn.plein:hover { background: var(--olive-fonce); }
.btn.danger { border-color: var(--alerte); color: var(--alerte); }
.btn.danger:hover { background: var(--alerte-pale); }
.btn.bloc { display: flex; width: 100%; }
.btn.petit { padding: .4rem .8rem; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; color: var(--olive-fonce); text-decoration: underline; cursor: pointer; font: inherit; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------- formulaires */
.champ { margin-bottom: 1rem; }
.champ label, .etiq { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.champ .aide { color: var(--gris); font-size: .85rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: .62rem .75rem; border: 1.5px solid var(--trait); border-radius: 10px; background: #fff; color: var(--seigle); }
input:focus, select:focus, textarea:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px var(--olive-pale); }
textarea { min-height: 5rem; resize: vertical; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.grille3 { display: grid; grid-template-columns: 7rem 1fr; gap: 0 .9rem; }
@media (max-width: 520px) { .grille2 { grid-template-columns: 1fr; } }
.coche { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.coche input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--olive); }
.piege { position: absolute; left: -5000px; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; margin-bottom: .4rem; }

.panneau { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-panneau); padding: 1.25rem; margin-bottom: 1.1rem; }
.panneau > h2:first-child, .panneau > h3:first-child { margin-top: 0; }

/* ------------------------------------------------------------- choix segmenté */
.choix { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; margin-bottom: 1rem; }
.choix label { border: 1.5px solid var(--trait); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; background: #fff; font-weight: 600; }
.choix label small { display: block; font-weight: 400; color: var(--gris); font-size: .84rem; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label:has(input:checked) { border-color: var(--olive); background: var(--olive-pale); }
.choix label:has(input:focus-visible) { outline: 3px solid var(--kraft); }

/* ============================================================== VITRINE */
.accueil { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; margin: .4rem 0 1.4rem; }
.accueil h1 { margin: 0; }
.accueil p { margin: .4rem 0 0; color: var(--gris); max-width: 60ch; }
.prochain { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-panneau); padding: .8rem 1rem; min-width: 15rem; }
.prochain b { font-family: var(--titre); font-size: 1.25rem; display: block; }
.prochain span { color: var(--gris); font-size: .9rem; }
@media (max-width: 720px) { .accueil { grid-template-columns: 1fr; } .prochain { min-width: 0; } }

.onglets { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .8rem; position: sticky; top: 3.1rem; background: var(--lin); z-index: 10; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { flex: none; text-decoration: none; color: var(--seigle); background: var(--carte); border: 1px solid var(--trait); border-radius: 999px; padding: .38rem .85rem; font-size: .92rem; }
.onglets a:hover { border-color: var(--olive); }

.vitrine { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.vitrine > *, .etapes-cmd > *, .fiche-cmd > * { min-width: 0; }
@media (max-width: 920px) { .vitrine { grid-template-columns: minmax(0, 1fr); } .resume { display: none; } }
.rayon { margin-bottom: 1.8rem; scroll-margin-top: 6.5rem; }
.rayon h2 { border-bottom: 2px solid var(--seigle); padding-bottom: .3rem; margin-bottom: .2rem; }
.produit { display: grid; grid-template-columns: 88px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--trait); align-items: center; }
.produit .ph { width: 88px; height: 88px; border-radius: var(--r-photo); object-fit: cover; background: var(--kraft-pale); }
.produit .ph.vide { display: grid; place-items: center; color: var(--kraft); font-family: var(--titre); font-size: 1.6rem; }
.produit h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.produit .desc { color: var(--gris); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produit .desc.ouvert { -webkit-line-clamp: unset; }
.allerg { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.allerg span { font-size: .74rem; background: var(--kraft-pale); color: var(--or-texte); border-radius: 5px; padding: .05rem .4rem; }
.delai { font-size: .8rem; color: var(--olive-fonce); margin-top: .3rem; }
.achat { text-align: right; display: grid; gap: .45rem; justify-items: end; }
.prix { font-family: var(--titre); font-weight: 650; font-size: 1.15rem; white-space: nowrap; }
.prix small { display: block; font-family: var(--texte); font-weight: 400; font-size: .75rem; color: var(--gris); }
.pas { display: inline-flex; align-items: center; border: 1.5px solid var(--olive); border-radius: 999px; overflow: hidden; background: #fff; }
.pas button { width: 2.3rem; height: 2.3rem; border: 0; background: none; color: var(--olive-fonce); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pas button:hover { background: var(--olive-pale); }
.pas input { width: 2.6rem; text-align: center; border: 0; padding: 0; font-weight: 600; background: none; -moz-appearance: textfield; }
.pas input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pas.zero { border-color: var(--trait); }
.pas.zero input { color: var(--gris); }
@media (max-width: 480px) {
  .produit { grid-template-columns: 64px 1fr; }
  .produit .ph { width: 64px; height: 64px; }
  .achat { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; text-align: left; }
}

.resume { position: sticky; top: 4rem; }
.resume ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.resume li { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--trait); font-size: .93rem; }
.total { display: flex; justify-content: space-between; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; margin: .5rem 0 1rem; }

/* Barre panier collante (téléphone) */
.barre-panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--seigle); color: #fff; display: none; }
.barre-panier .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.barre-panier b { font-family: var(--titre); font-size: 1.15rem; }
.barre-panier .btn { background: var(--kraft); border-color: var(--kraft); color: var(--seigle); }
.barre-panier.visible { display: block; }
@media (min-width: 921px) { .barre-panier.seulement-mobile { display: none !important; } }

/* --------------------------------------------------------- panier / commande */
.lignes-panier { list-style: none; margin: 0; padding: 0; }
.lignes-panier li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--trait); }
.lignes-panier .nom { font-weight: 600; }
.vide-panier { text-align: center; padding: 2.5rem 1rem; }
.etapes-cmd { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .etapes-cmd { grid-template-columns: minmax(0, 1fr); } }
.recap { list-style: none; margin: 0 0 .4rem; padding: 0; }
.recap li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--trait); font-size: .94rem; }
.ligne-frais { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .94rem; }
.jours { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .8rem; }
.jours button { flex: none; border: 1.5px solid var(--trait); background: #fff; border-radius: 12px; padding: .5rem .7rem; cursor: pointer; font: inherit; text-align: center; min-width: 4.6rem; }
.jours button b { display: block; font-family: var(--titre); font-size: 1.05rem; }
.jours button[aria-pressed=true] { border-color: var(--olive); background: var(--olive-pale); }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .4rem; }
.heures button { border: 1.5px solid var(--trait); background: #fff; border-radius: 10px; padding: .45rem 0; cursor: pointer; font: 600 .95rem var(--texte); }
.heures button[aria-pressed=true] { border-color: var(--olive); background: var(--olive); color: #fcfcef; }
.remarques { font-size: .88rem; color: var(--or-texte); background: var(--kraft-pale); border-radius: 10px; padding: .5rem .8rem; margin: .5rem 0; }
.remarques:empty { display: none; }

/* -------------------------------------------------------------- statut client */
.suivi { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; counter-reset: s; }
.suivi li { text-align: center; font-size: .82rem; color: var(--gris); position: relative; padding-top: 1.9rem; }
.suivi li::before { content: ''; position: absolute; top: .45rem; left: 50%; transform: translateX(-50%); width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--trait); background: var(--carte); }
.suivi li::after { content: ''; position: absolute; top: .95rem; left: calc(50% + .6rem); right: calc(-50% + .6rem); height: 2px; background: var(--trait); }
.suivi li:last-child::after { display: none; }
.suivi li.fait { color: var(--seigle); font-weight: 600; }
.suivi li.fait::before { background: var(--olive); border-color: var(--olive); }
.suivi li.fait::after { background: var(--olive); }
.etat { display: inline-block; font-size: .82rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--olive-pale); color: var(--olive-fonce); white-space: nowrap; }
.etat.nouvelle { background: var(--kraft-pale); color: var(--or-texte); }
.etat.annulee { background: var(--alerte-pale); color: var(--alerte); }
.etat.terminee { background: #ece5d3; color: var(--gris); }
.etat.prete, .etat.en_livraison { background: var(--olive); color: #fff; }

table.liste { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--r-panneau); overflow: hidden; }
table.liste th, table.liste td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
table.liste th { font-size: .85rem; color: var(--gris); font-weight: 600; background: #f8f4e8; }
table.liste td.num, table.liste th.num { text-align: right; white-space: nowrap; }
table.liste tr:last-child td { border-bottom: 0; }
.defile { overflow-x: auto; }

.carte-notif { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ================================================================ GESTION */
body.gestion { background: #f1ecdd; }
.gestion .barre { background: var(--seigle); box-shadow: inset 0 -4px 0 var(--kraft); }  /* gestion : liseré doré */
.gestion main { max-width: 1400px; }
.pastille { background: var(--kraft); color: var(--seigle); border-radius: 999px; padding: 0 .45em; font-size: .78rem; font-weight: 700; margin-left: .25rem; }
.outils { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.outils form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.outils input[type=date], .outils input[type=search] { width: auto; }
.a-confirmer { background: var(--kraft-pale); border: 1.5px solid var(--kraft); border-radius: var(--r-panneau); padding: 1rem; margin-bottom: 1.2rem; }
.a-confirmer h2 { margin-bottom: .6rem; }
.tableau { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: .9rem; overflow-x: auto; align-items: start; }
.colonne h2 { font-size: 1rem; display: flex; justify-content: space-between; margin: 0 0 .5rem; padding: 0 .2rem; }
.ticket { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: .75rem .85rem; margin-bottom: .6rem; }
.ticket.nouvelle { border-left: 5px solid var(--kraft); }
.ticket.annulee { opacity: .6; }
.ticket .tete { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.ticket .h { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; }
.ticket .qui { font-weight: 600; }
.ticket ul { margin: .4rem 0; padding-left: 1.1rem; font-size: .92rem; }
.ticket .bas { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.ticket form { margin: 0; }
.mode { font-size: .78rem; border-radius: 5px; padding: .05rem .4rem; background: #ece5d3; }
.mode.livraison { background: var(--info-pale); }
.fiche-cmd { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 960px) { .fiche-cmd { grid-template-columns: minmax(0, 1fr); } .tableau { grid-template-columns: repeat(4, 260px); } }
dl.infos { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.infos dt { color: var(--gris); }
dl.infos dd { margin: 0; }
.histo { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.histo li { padding: .35rem 0; border-bottom: 1px dashed var(--trait); }
.qte-edit { width: 5rem !important; text-align: right; }
.vignette { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--kraft-pale); }
.photo-art { width: 220px; height: 220px; object-fit: cover; border-radius: var(--r-photo); background: var(--kraft-pale); }
.cases { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.cases label { font-weight: 400; display: flex; gap: .35rem; align-items: center; }
.horaires td { padding: .25rem .4rem; }
.horaires input[type=time] { width: 7.5rem; }
.onglets-g { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.onglets-g a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; background: var(--carte); border: 1px solid var(--trait); color: var(--seigle); }
.onglets-g a.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.alerte-son { display: none; }
.alerte-son.visible { display: inline-flex; }

/* ---------------------------------------------------------------- impression */
@media print {
  .barre, .pied, .outils, .no-print, .barre-panier, .flash { display: none !important; }
  body, body.gestion { background: #fff; }
  main { padding: 0; max-width: none; }
  .panneau { border: 0; padding: 0; }
}
.bon { background: #fff; padding: 2rem; max-width: 800px; margin: 0 auto; border: 1px solid var(--trait); }
.bon h1 { font-size: 1.6rem; }
.bon .entete { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .ajoute { animation: pulse .5s ease; }
  @keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
}

/* Articles : sélection multiple */
.barre-lot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 .8rem; padding: .6rem .8rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-panneau); position: sticky; top: 3.4rem; z-index: 5; }
.barre-lot .coche { align-items: center; margin: 0; }
.barre-lot .coche input { margin-top: 0; }
.barre-lot .actions-lot { display: flex; gap: .4rem; margin-left: auto; }
.barre-lot button:disabled { opacity: .45; cursor: not-allowed; }
table.liste th.case, table.liste td.case { width: 2.2rem; padding-right: 0; vertical-align: middle; }
table.liste td.case input, table.liste th.case input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--olive); cursor: pointer; }
table.liste tr:has(td.case input:checked) td { background: var(--olive-pale); }
@media (max-width: 560px) { .barre-lot { top: 2.85rem; } .barre-lot .actions-lot { margin-left: 0; width: 100%; } .barre-lot .actions-lot .btn { flex: 1; } }

/* Vitrine sans connexion : invitation à se connecter (pas de panier) */
.accueil .cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.achat a.btn.petit { white-space: nowrap; }

/* Articles : groupes par catégorie, changement de catégorie, catégories */
table.liste tr.groupe th { background: var(--kraft-pale); color: var(--seigle); border-top: 2px solid var(--kraft); font-family: var(--titre); font-size: 1rem; padding: .5rem .7rem; border-bottom: 1px solid var(--trait); }
table.liste tr.groupe th .muted { font-family: var(--texte); font-weight: 400; font-size: .85rem; }
.barre-lot .cat-lot { margin-left: 0; }
.barre-lot .cat-lot select { width: auto; max-width: 15rem; padding: .35rem .6rem; font-size: .9rem; }
.barre-lot select.a-choisir { border-color: var(--kraft); box-shadow: 0 0 0 3px var(--kraft-pale); }
.outils select { width: auto; max-width: 16rem; }
.ligne-form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.ligne-form input[type=text] { max-width: 22rem; padding: .4rem .6rem; }
@media (max-width: 560px) { .barre-lot .cat-lot { width: 100%; } .barre-lot .cat-lot select { flex: 1; max-width: none; } }

/* Vitrine : boutons de catégorie qui filtrent */
.onglets a.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.onglets a .nb { font-size: .78rem; opacity: .7; margin-left: .15rem; }
.rayon[hidden] { display: none !important; }

/* Historique des prix */
.chip { display: inline-block; border-radius: 999px; padding: .05rem .55rem; font-size: .78rem; font-weight: 600; margin-right: .3rem; }
.chip.ok { background: var(--olive); color: #fff; }
.chip.prog { background: var(--kraft); color: var(--seigle); }
table.histo-prix td, table.histo-prix th { font-size: .88rem; padding: .45rem .55rem; }
table.histo-prix tr.en_vigueur td { background: var(--olive-pale); }
table.histo-prix tr.programme td { background: var(--kraft-pale); }
table.histo-prix tr.passe td { color: var(--gris); }
.prog-prix { color: var(--or-texte); white-space: nowrap; }

/* Logo */
.marque { display: inline-flex; align-items: center; gap: .55rem; }
.marque span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.marque-logo { width: 34px; height: 34px; flex: none; object-fit: contain; background: #fcfcef; border-radius: 8px; padding: 3px; }
.titre-logo { display: flex; align-items: center; gap: 1.1rem; }
.logo-accueil { width: 112px; height: auto; flex: none; }
.logo-page { display: block; width: 96px; height: auto; margin: .6rem auto .2rem; }
@media (max-width: 600px) {
  .marque-logo { width: 30px; height: 30px; border-radius: 7px; }
  .logo-accueil { width: 64px; }
  .titre-logo { gap: .8rem; }
  .titre-logo h1 { font-size: 1.55rem; line-height: 1.15; }
}
.logo-page + h1 { text-align: center; }
/* Gestion sur ordinateur : le nom du magasin se raccourcit plutôt que le menu passe à la ligne */
@media (min-width: 901px) {
  .gestion .barre .in { max-width: 1400px; }
  .gestion .marque { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .gestion .barre nav { flex-wrap: nowrap; flex: none; }
}

/* ---------------------------------------------------------------- atelier (tablettes) */
.atelier main { max-width: 1100px; }
.atelier .barre { box-shadow: inset 0 -4px 0 var(--kraft); }
.marque-sous { font-weight: 400; opacity: .75; }
.atelier .qui { color: #e9e4d9; font-size: .9rem; padding: 0 .4rem; }
.at-outils { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; margin: .2rem 0 .8rem; }
.at-outils .onglets-g { margin: 0; align-items: center; }
.at-outils .onglets-g a { font-size: 1.02rem; padding: .5rem 1rem; }
.at-outils form { margin: 0; }
.at-outils input[type=date] { width: auto; padding: .45rem .6rem; }
.at-resume { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1rem; font-size: 1.05rem; }
.at-resume progress { width: 100%; height: 12px; accent-color: var(--kraft); }
.at-conf { color: var(--or-texte); font-weight: 600; }
.at-cats { top: 3.4rem; }
.at-cat h2, .at-heure h2 { border-bottom: 2px solid var(--seigle); padding-bottom: .3rem; margin: 1.2rem 0 .3rem; }
.at-liste { list-style: none; margin: 0; padding: 0; }
.at-art { display: grid; grid-template-columns: 5.2rem 1fr auto; gap: .9rem; align-items: center; padding: .8rem .4rem; border-bottom: 1px solid var(--trait); border-radius: 10px; }
.at-qte { font-family: var(--titre); font-weight: 700; font-size: 2.3rem; line-height: 1; text-align: right; }
.at-nom { font-family: var(--titre); font-weight: 650; font-size: 1.3rem; line-height: 1.2; }
.at-heures { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.at-heures span { background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; padding: .1rem .5rem; font-size: .95rem; }
.at-etat { font-size: .9rem; color: var(--gris); margin-top: .25rem; }
.at-etat:empty { display: none; }
.at-btn { min-width: 8.5rem; min-height: 3.4rem; border-radius: 14px; border: 2px solid var(--seigle); background: var(--carte); color: var(--seigle); font: 700 1.1rem var(--titre); cursor: pointer; padding: 0 1rem; }
.at-btn:disabled { opacity: .5; }
.at-art.fait .at-qte, .at-art.fait .at-info { opacity: .45; }
.at-art.fait .at-nom { text-decoration: line-through; }
.at-art.fait .at-btn { background: var(--seigle); color: var(--kraft); }
.at-art.complement { background: var(--kraft-pale); }
.at-art.complement .at-btn { background: var(--kraft); border-color: var(--kraft); }
.at-art.complement .at-etat { color: var(--or-texte); font-weight: 600; }
.at-liste.compacte .at-art { grid-template-columns: 4rem 1fr auto; padding: .45rem .4rem; }
.at-liste.compacte .at-qte { font-size: 1.6rem; }
.at-liste.compacte .at-nom { font-size: 1.1rem; }
.at-notes { margin-top: 1.5rem; }
.at-notes ul { margin: 0; padding-left: 1.1rem; }
.at-notes li { margin: .45rem 0; }
.at-note { font-weight: 600; }
.print-only { display: none; }
@media (max-width: 600px) {
  .at-art { grid-template-columns: 3.6rem 1fr; }
  .at-btn { grid-column: 1 / -1; width: 100%; min-height: 3rem; }
  .at-qte { font-size: 1.9rem; }
  .marque-sous { display: none; }
  .at-cats { top: 2.85rem; }
}
@media print {
  .print-only { display: block; }
  .at-case { width: 1.4rem; height: 1.4rem; border: 2px solid #000; border-radius: 4px; }
  .at-art { grid-template-columns: 4rem 1fr 2rem; break-inside: avoid; padding: .4rem 0; }
  .at-art.fait .at-qte, .at-art.fait .at-info { opacity: 1; }
  .at-art.fait .at-nom { text-decoration: none; }
  .at-art.complement { background: none; }
  .at-qte { font-size: 1.6rem; }
  .at-nom { font-size: 1.1rem; }
}

/* Photos du site Le Pain Quotidien */
.apercu-lpq { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--kraft-pale); }
table.photos-lpq td { vertical-align: middle; }
