/* Kiff Volailles — espace client (commande en ligne). Couleurs reprises du logo, contrastes ≥ 4,5:1. */
:root {
  --encre: #2A1A12; --doux: #6B5A50; --trait: #EADFD6; --fond: #F7F2ED; --blanc: #FFFFFF;
  --orange: #B9530F; --orange-fonce: #8F3F0B; --orange-pale: #FCE9DA;
  --vert: #1E6B4A; --vert-pale: #E3F1E9; --rouge: #B42318; --rouge-pale: #FDECEA; --bleu: #1D4E89; --bleu-pale: #E3EDF8;
  --police: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--police); font-size: 15px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--orange); }
a:hover { color: var(--orange-fonce); }
h1 { font-size: 21px; margin: 4px 0 6px; line-height: 1.25; }
h2 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
h2 .ico { color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex-shrink: 0; }

.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: var(--blanc); border-bottom: 1px solid var(--trait); }
.entete .espace { flex: 1; }
.entete-titre { font-size: 17px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.marque img { width: 48px; height: 44px; object-fit: contain; border-radius: 10px; }
.marque span { display: flex; flex-direction: column; line-height: 1.2; }
.marque small { font-size: 12px; color: var(--doux); }
.btn-rond { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--trait); background: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; color: var(--encre); padding: 0; cursor: pointer; text-decoration: none; font: inherit; }
.btn-rond.petit { width: 38px; height: 38px; }
.btn-rond.plein { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-rond:disabled { opacity: .4; cursor: not-allowed; }
.pastille-nb { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rouge);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.contenu { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; display: flex; flex-direction: column; gap: 12px; }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.carte.vide, .centre { align-items: center; text-align: center; }
.vide { color: var(--doux); text-align: center; }
.aide { font-size: 13px; color: var(--doux); margin: 0; }
.bandeau { margin: 0; background: var(--vert-pale); color: var(--vert); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.message { margin: 0; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.message-succes { background: var(--vert-pale); color: var(--vert); }
.message-erreur { background: var(--rouge-pale); color: var(--rouge); }
.message-info { background: var(--bleu-pale); color: var(--bleu); }

.btn { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.btn.petit { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn-principal { background: var(--orange); color: #fff; }
.btn-principal:hover { background: var(--orange-fonce); color: #fff; }
.btn-principal:disabled { background: #C9B9AD; cursor: not-allowed; }
.btn-secondaire { background: var(--blanc); color: var(--encre); border-color: var(--trait); }
.btn-sombre { background: var(--encre); color: #fff; }
.btn-sombre:hover { color: #fff; }
.btn-large { width: 100%; min-height: 54px; font-size: 16px; }
.btn-large.repartir { justify-content: space-between; }
.btn-plein { width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.recherche input, .formulaire input, .formulaire select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--trait);
  background: var(--blanc); padding: 0 12px; font: inherit; font-size: 16px; color: var(--encre); }
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.formulaire .case { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; }
.case input { width: 20px; height: 20px; margin: 0; accent-color: var(--orange); flex-shrink: 0; }
.erreur { color: var(--rouge); font-size: 13px; font-weight: 600; margin-top: -6px; }
.lien-centre { text-align: center; font-weight: 600; font-size: 14px; }

.puces { display: flex; gap: 8px; flex-wrap: wrap; }
.puce { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--trait); background: var(--blanc); color: var(--encre);
  display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; text-decoration: none; }
.puce.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.puce-choix { position: relative; }
.puce-choix input { position: absolute; opacity: 0; }
.puce-choix span { min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--trait); display: inline-flex; align-items: center;
  font-weight: 600; font-size: 14px; cursor: pointer; background: var(--blanc); }
.puce-choix input:checked + span { border: 2px solid var(--orange); background: var(--orange-pale); color: var(--orange-fonce); }
.puce-choix input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.creneaux { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.creneaux legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; }

.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.produit { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.produit.epuise { opacity: .6; }
.produit-photo { width: 100%; height: 110px; object-fit: contain; border-radius: 12px; background: #fff; }
.vide-photo { display: flex; align-items: center; justify-content: center; background: var(--orange-pale); color: var(--orange); }
.produit-nom { font-size: 14px; line-height: 1.25; }
.produit-prix { color: var(--orange); font-weight: 700; }
.epuise-mention { min-height: 40px; border-radius: 12px; background: var(--fond); color: var(--doux); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.pas { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pas form, .ligne-panier form { margin: 0; }

.ligne-panier { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--trait); }
.ligne-panier:last-of-type { border-bottom: 0; }
.ligne-texte { flex: 1; display: flex; flex-direction: column; }
.ligne-texte small { color: var(--doux); }
.ligne-qte { min-width: 22px; text-align: center; }
.recap div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.recap .total { font-size: 17px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--trait); }
.recap small { color: var(--doux); font-size: 12px; }

.barre-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--blanc); border-top: 1px solid var(--trait); display: flex; justify-content: center; }
.barre-bas > * { max-width: 688px; flex: 1; }
.barre-bas.deux { gap: 10px; }

.compte { align-items: stretch; }
.logo-compte { width: 112px; height: auto; align-self: center; }
.onglets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--fond); border-radius: 12px; padding: 4px; }
.onglets a { min-height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; }
.onglets a.actif { background: var(--blanc); color: var(--encre); font-weight: 700; }

.etat { align-self: flex-start; display: inline-flex; min-height: 26px; padding: 0 10px; border-radius: 13px; align-items: center; font-size: 12px; font-weight: 700;
  background: var(--fond); color: var(--doux); }
.etat-recue, .etat-confirmee { background: var(--bleu-pale); color: var(--bleu); }
.etat-preparation, .etat-livraison { background: var(--orange-pale); color: var(--orange-fonce); }
.etat-livree { background: var(--vert-pale); color: var(--vert); }
.etat-refusee, .etat-annulee, .etat-non_livree { background: var(--rouge-pale); color: var(--rouge); }
.liste-commandes { display: flex; flex-direction: column; gap: 10px; }
.commande { text-decoration: none; color: var(--encre); gap: 4px; }
.commande-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.frise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.frise li { position: relative; display: flex; gap: 12px; min-height: 54px; }
.frise li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--trait); }
.frise li.fait:not(:last-child)::after { background: var(--vert); }
.frise .rond { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #fff; }
.frise li.fait .rond { background: var(--vert); border-color: var(--vert); }
.frise li.en-cours .rond { background: var(--orange-pale); border-color: var(--orange); }
.frise li > span:last-child { display: flex; flex-direction: column; padding-top: 3px; }
.frise li.a-venir strong { color: var(--doux); }
.frise small { color: var(--doux); font-size: 12px; }
.texte h2 { margin-top: 8px; }
.texte p { margin: 0; }

.pied { max-width: 720px; margin: 0 auto; padding: 8px 16px 110px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center;
  font-size: 12px; color: var(--doux); }
.pied a { color: var(--doux); display: inline-flex; align-items: center; gap: 4px; }
