/* ==========================================================================
   shop.css — Charte de marque Le Marché Super (décision de Guillaume du 24/10,
   cahier D14) : Bricolage Grotesque (titres) + Figtree (texte) ; palette
   Vert Brocoli #3F6C4C, vert profond #24402D, kraft clair #EFE4CE,
   kraft foncé #6E5235, potiron #E0692F (accent), encre #1D1D1B, papier #FFFFFF.
   Aucune autre couleur, aucun dégradé. Les noms de variables viennent de la
   première maquette ; seules leurs valeurs suivent la charte.
   Points de rupture : mobile ≤ 760 px · tablette 761–1100 px.
   ========================================================================== */

:root {
  --vert: #3F6C4C;          /* Vert Brocoli */
  --vert-fonce: #24402D;    /* vert profond */
  --vert-pale: #EFE4CE;     /* kraft clair : pastilles et bandeaux d'information */
  --vert-voile: #EFE4CE;
  --jaune: #E0692F;         /* potiron : accent (anneau de focus, précommande, surtitres sur photo) */
  --ambre: #6E5235;         /* kraft foncé */
  --ambre-pale: #EFE4CE;
  --encre: #1D1D1B;
  --texte: #1D1D1B;
  --gris: #6E5235;          /* textes secondaires : kraft foncé (6,9:1 sur papier) */
  --gris-clair: #6E5235;
  --fond: #FFFFFF;          /* papier */
  --fond-off: #EFE4CE;      /* bandeaux kraft clair */
  --blanc: #FFFFFF;
  --bord: #EFE4CE;          /* séparateurs */
  --bord-fort: #6E5235;     /* bordures de champs : kraft foncé, contraste ≥ 3:1 (WCAG 1.4.11) */
  --rouge: #E0692F;         /* erreurs : bordure potiron ; le texte d'erreur reste en encre (contraste) */
  --footer-txt: #FFFFFF;
  --font: 'Figtree', system-ui, sans-serif;
  --font-titre: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.4;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--encre); }
a:hover { color: var(--vert); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-titre); font-optical-sizing: auto; }
p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* ---- Utilitaires -------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--encre); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--gris); }
.ambre { color: var(--ambre); }
.vert { color: var(--vert); }
.spacer { flex: 1 1 60px; }
.nowrap { white-space: nowrap; }
.m-only, .m-only-flex, .m-only-inline, .t-only { display: none !important; }

/* Pleine largeur, comme mon-marche.fr : 56 px de marge sur grand écran, réduite sur petit écran. */
.container { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; } /* même largeur que l'en-tête et l'accueil (passe de cohérence du 03/11) */
.container--vitrine { max-width: 1320px; } /* même largeur que la boutique et l'en-tête */
.container--mid { max-width: 1040px; }
.container--narrow { max-width: 880px; }

/* ---- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 0;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn--pill { border-radius: 999px; }
.btn--primary { background: var(--vert); color: #fff; }
.btn--primary:hover { background: var(--vert-fonce); color: #fff; }
.btn--dark { background: var(--encre); color: #fff; }
.btn--dark:hover { background: var(--vert-fonce); color: #fff; }
.btn--light { background: #fff; color: var(--encre); }
.btn--light:hover { color: var(--vert); }
.btn--muted { background: var(--bord); color: var(--encre); }
.btn--outline { background: transparent; border: 1.5px solid var(--encre); color: var(--encre); }
.btn--outline:hover { background: var(--encre); color: #fff; }
.btn--sm { font-size: 13px; min-height: 40px; padding: 8px 14px; }
.btn--lg { font-size: 16px; min-height: 52px; padding: 14px 20px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: transparent; padding: 10px 4px; font-size: 13px; color: var(--gris); text-decoration: underline; cursor: pointer; }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bord-fort);
  background: var(--fond); color: var(--encre); cursor: pointer; text-decoration: none;
}
.round-btn--primary { background: var(--vert); border-color: var(--vert); color: #fff; }
.round-btn--primary:hover { color: #fff; }
.round-btn--white { background: #fff; border-color: var(--bord); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }

/* ---- En-têtes ----------------------------------------------------------- */
.bandeau { background: var(--vert); color: #fff; font-size: 14px; font-weight: 500; padding: 9px 16px; text-align: center; }
.site-header { background: #fff; border-bottom: 1px solid var(--bord); }
.site-header.is-sticky { position: sticky; top: 0; z-index: 20; }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 10px; padding-bottom: 10px; }
.site-header__row--between { justify-content: space-between; }
.site-header--vitrine .site-header__row { justify-content: space-between; gap: 12px 32px; }

.logo { display: block; overflow: hidden; flex: 0 0 auto; }
.logo img { display: block; height: auto; }
.logo--md { height: 56px; } .logo--md img { width: 180px; margin-top: -3px; }
.logo--lg { height: 60px; } .logo--lg img { width: 200px; margin-top: -4px; }
.logo--sm { height: 44px; } .logo--sm img { width: 140px; margin-top: -2px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.main-nav--shop { gap: 4px 22px; }
.main-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a.is-active { color: var(--vert); border-bottom-color: var(--vert); }
.nav-link { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 4px; }

.chip-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px;
  border: 1px solid var(--bord-fort); border-radius: 999px; background: var(--fond);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.search-field {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--bord-fort); border-radius: 999px; background: var(--fond); margin: 0;
}
.site-header--shop .search-field { flex-basis: 160px; min-width: 0; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; outline: none; }
.cart-pill { gap: 10px; padding: 10px 18px; }

.rail { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 12px; scrollbar-width: thin; }
.rail__item {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--bord); background: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--encre);
}
.rail__item img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: contain; }
.rail__item.is-active { background: var(--vert); border-color: var(--vert); color: #fff; }

/* ---- Pied de page ------------------------------------------------------- */
.site-footer { background: var(--vert-fonce); color: var(--footer-txt); }
.site-footer a { color: var(--footer-txt); }
.site-footer a:hover { color: #fff; }
.site-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 300px; }
.logo-footer { height: 70px; overflow: hidden; }
.logo-footer img { width: 220px; margin-top: -12px; display: block; }
.site-footer__col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__col strong { color: #fff; font-size: 15px; }
.site-footer__col a { padding: 4px 0; }
.site-footer__bar { border-top: 1px solid var(--texte); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer--thin { font-size: 13px; }
.site-footer--thin .site-footer__bar { border-top: 0; padding-top: 24px; padding-bottom: 24px; }

/* ---- Cartes, étiquettes, encadrés -------------------------------------- */
.card { background: #fff; border: 1px solid var(--bord); border-radius: 18px; }
.card--pad { padding: 20px; }
.card--list > * + * { border-top: 1px solid var(--bord); }
.card__title { font-size: 18px; font-weight: 600; }

.tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--gris); border: 1px solid var(--bord); border-radius: 6px; padding: 2px 6px; }
.tag--bio { font-weight: 600; color: var(--vert); border-color: var(--vert); }
.tag--consigne { font-weight: 600; color: var(--ambre); background: var(--ambre-pale); border-color: var(--ambre-pale); }
.tag--lg { font-size: 12px; padding: 3px 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.badge--preco { background: var(--jaune); color: var(--encre); }
.badge--vert { background: var(--vert-pale); color: var(--vert-fonce); }
.badge--off { background: var(--bord); color: var(--gris); }
.badge--noir { background: var(--encre); color: #fff; }
.badge--ambre { background: var(--ambre-pale); color: var(--ambre); }

.pill-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill-status--ok { background: var(--vert-pale); color: var(--vert-fonce); }
.pill-status--attente { background: var(--ambre-pale); color: var(--ambre); }

.preco-tag { font-size: 12px; color: var(--vert-fonce); background: var(--vert-pale); border-radius: 6px; padding: 3px 8px; align-self: flex-start; }

.notice { border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.notice--ambre { background: var(--ambre-pale); }
.notice--vert { background: var(--vert-pale); }
.notice--sm { border-radius: 12px; padding: 12px 14px; font-size: 13px; gap: 10px; }
.notice svg { flex: 0 0 auto; }
.notice a { font-weight: 600; color: var(--ambre); }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vert); }
.eyebrow--sm { font-size: 12px; }

/* ---- Quantités ---------------------------------------------------------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--bord-fort); border-radius: 10px; overflow: hidden; background: var(--fond); }
.qty form { display: contents; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.qty__n { min-width: 24px; text-align: center; font-weight: 700; font-size: 15px; }
.qty--solid { background: var(--vert); border-color: var(--vert); color: #fff; border-radius: 12px; }
.qty--solid button { color: #fff; width: 40px; height: 44px; font-size: 20px; }
.qty--solid .qty__n { font-size: 16px; }
.qty--lg button { width: 44px; height: 48px; font-size: 22px; }
.qty--lg .qty__n { min-width: 28px; font-size: 18px; }
.qty--sm { border-radius: 8px; }
.qty--sm button { width: 34px; height: 34px; font-size: 16px; }
.qty--sm .qty__n { min-width: 20px; font-size: 14px; }
.qty--sm button.is-plus { background: var(--vert); color: #fff; }
.qty--white { background: #fff; }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-btn { width: 48px; height: 44px; border: 0; border-radius: 12px; background: var(--vert); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.add-btn:hover { background: var(--vert-fonce); }

/* ---- Carte produit ------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--bord); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Badges de la photo empilés (dispo, puis « Consigné » en tablette / mobile) : jamais superposés. */
.product-card__badges {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none;
}
.product-card__badges .badge, .product-card .product-card__badges .m-cons-badge { position: static; }
/* Badge long (« Précommande · arrivage le 12/11 ») : reste dans la carte, sur deux lignes au besoin (D-15). */
.product-card__badges .badge { max-width: 100%; box-sizing: border-box; white-space: normal; line-height: 1.25; }
.badge.sr-only { padding: 0; }
.product-card__fav {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bord); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name { font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.3; }
.product-card__prod { font-size: 12px; color: var(--gris); }
.product-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.product-card__price { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--gris); }
.price { font-size: 20px; font-weight: 700; color: var(--vert); line-height: 1; }
.product-card__cons { font-size: 12px; color: var(--ambre); }
.product-card__note { font-size: 12px; color: var(--gris); display: inline-flex; align-items: center; gap: 6px; }
.product-card__box { font-size: 12px; background: var(--fond); border: 1px solid var(--bord); border-radius: 8px; padding: 6px 8px; line-height: 1.4; }
.m-cons-badge { display: none; }

/* ---- Récapitulatif ------------------------------------------------------ */
.recap { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.recap__row { display: flex; justify-content: space-between; gap: 12px; }
.recap__row--cons { color: var(--ambre); }
.recap__row--credit { color: var(--vert); font-weight: 600; }
.recap__row--total { border-top: 1px solid var(--bord); padding-top: 12px; font-size: 20px; font-weight: 700; }
.recap__hint { background: var(--fond); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--gris); }
.recap__hint strong { color: var(--encre); }
.small-print { font-size: 12px; color: var(--gris); }

/* ---- Formulaires -------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.field__label { font-size: 14px; font-weight: 600; }
.input {
  font-size: 15px; padding: 11px 14px; border: 1px solid var(--bord-fort); border-radius: 10px;
  background: var(--fond); min-height: 44px; width: 100%;
}
.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--vert); margin: 2px 0 0; flex: 0 0 auto; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--bord-fort); background: #fff; cursor: pointer; text-align: left;
}
.choice.is-on { border: 2px solid var(--vert); background: var(--vert-voile); padding: 11px 13px; }
.choice__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.choice__title input { accent-color: var(--vert); width: 18px; height: 18px; margin: 0; }
.choice__sub { font-size: 12px; color: var(--gris); }

/* Jours et créneaux */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.day {
  flex: 0 0 auto; min-width: 84px; min-height: 60px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--bord-fort); background: #fff; color: var(--encre); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.day strong { font-size: 14px; } .day span { font-size: 12px; } .day small { font-size: 10px; }
.day.is-on, .slot.is-on { background: var(--vert); border-color: var(--vert); color: #fff; }
.day:disabled, .slot:disabled { background: var(--fond-off); border-color: var(--bord); color: var(--gris-clair); cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--bord-fort);
  background: #fff; color: var(--encre); font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.slot small { font-size: 12px; font-weight: 500; }
.slot:disabled { border-color: var(--bord-fort); }

/* ---- Panneau panier ----------------------------------------------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(28,27,25,.45); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; z-index: 51;
  background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease, visibility 0s linear .25s; visibility: hidden;
}
.drawer-backdrop[hidden] { display: none; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer__head { padding: 18px 20px; border-bottom: 1px solid var(--bord); display: flex; justify-content: space-between; align-items: center; }
.drawer__head h2 { font-size: 20px; font-weight: 700; }
.drawer__head h2 span, .title-count { font-size: 14px; font-weight: 500; color: var(--gris); }
.drawer__info { padding: 12px 20px; background: var(--fond); border-bottom: 1px solid var(--bord); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.drawer__info a { font-weight: 600; color: var(--vert); }
.progress { flex: 1; height: 6px; background: var(--bord); border-radius: 3px; overflow: hidden; display: block; }
.progress span { display: block; height: 100%; background: var(--vert); }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer__group { padding: 14px 20px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.drawer__line { display: flex; gap: 12px; padding: 10px 20px; align-items: flex-start; border-bottom: 1px solid var(--fond-off); }
.drawer__line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--bord); flex: 0 0 auto; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--bord); display: flex; flex-direction: column; gap: 10px; background: #fff; }
.drawer__empty { padding: 40px 20px; text-align: center; color: var(--gris); display: flex; flex-direction: column; gap: 14px; align-items: center; }

.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-info__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-info__detail { font-size: 12px; color: var(--gris); }
.line-info__cons { font-size: 11px; color: var(--ambre); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.trash-btn { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Barre mobile ------------------------------------------------------- */
.bottom-nav { display: none; }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1100px) {
  .t-hide { display: none !important; }
  .t-only { display: inline-flex !important; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 760px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .d-only, .d-only-flex, .d-only-inline { display: none !important; }
  .m-only { display: block !important; }
  .m-only-flex { display: flex !important; }
  .m-only-inline { display: inline !important; }
  .t-only { display: none !important; }

  .bandeau { font-size: 12px; padding: 8px 16px; }
  .site-header__row { gap: 10px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; }
  .site-header--shop .site-header__row { justify-content: space-between; }
  .site-header--shop .site-header__row > .chip-link { display: none; }
  .site-header--vitrine { position: sticky; top: 0; z-index: 20; }
  .site-header--vitrine .site-header__row { gap: 10px; }
  .logo--md { height: 44px; } .logo--md img { width: 140px; margin-top: -2px; }
  .logo--lg { height: 48px; } .logo--lg img { width: 150px; margin-top: -2px; }
  .cart-pill { padding: 0 14px; font-size: 14px; gap: 8px; }
  .site-header .spacer { display: none; }

  /* Navigation vitrine repliée dans un menu */
  .site-header--vitrine .main-nav { display: none; }
  body.nav-open .site-header--vitrine .main-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--bord); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  body.nav-open .site-header--vitrine .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--fond-off); }
  .site-header--vitrine .site-header__row { position: relative; }
  .main-nav--shop { display: none; }

  .shop-header-mobile { padding: 0 16px 10px; }
  .shop-header-mobile > * + * { margin-top: 8px; }
  .lieu-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
    border: 1px solid var(--bord-fort); border-radius: 10px; padding: 8px 12px; font-size: 13px;
    text-decoration: none; background: var(--fond);
  }
  .lieu-bar > span { white-space: nowrap; }
  .lieu-bar > span:first-child { display: flex; align-items: center; gap: 6px; }
  .lieu-bar__edit { color: var(--vert); font-weight: 600; }
  .rail { gap: 6px; padding-top: 2px; padding-bottom: 10px; }
  .rail__item { font-size: 13px; min-height: 40px; padding: 4px 12px 4px 4px; gap: 6px; }
  .rail__item img { width: 30px; height: 30px; }

  .site-footer__inner { padding-top: 24px; padding-bottom: 24px; gap: 16px; }
  .site-footer__cols { gap: 16px; }
  .site-footer__col { flex-basis: 40%; }

  /* Grille produits en 2 colonnes compactes */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-card__body { padding: 10px; gap: 6px; }
  .product-card__name { font-size: 13px; }
  .product-card__prod, .product-card .tags, .product-card__cons-long, .product-card__fav { display: none; }
  .rond { width: 28px; height: 28px; }
  .origine-signes--rond { gap: 6px; }
  .product-card__price { font-size: 11px; }
  .price { font-size: 17px; }
  .product-card .m-cons-badge { display: inline-block; font-size: 12px; padding: 3px 8px; }
  .product-card__cons-short { display: block !important; font-size: 12px; color: var(--ambre); }
  .qty--solid button { width: 34px; height: 40px; font-size: 18px; }
  .qty--solid .qty__n { min-width: 16px; font-size: 14px; }
  .add-btn { width: 44px; height: 40px; border-radius: 10px; }

  .days .day { min-width: 70px; min-height: 56px; padding: 6px 8px; border-radius: 10px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot { min-height: 44px; font-size: 13px; border-radius: 10px; padding: 6px 10px; }

  body.has-bottom-nav { padding-bottom: 72px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--bord); padding: 6px 0 10px;
  }
  .bottom-nav a {
    text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 500; color: var(--gris); min-height: 44px;
  }
  .bottom-nav a.is-active { color: var(--vert); font-weight: 600; }

  .sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: #fff; border-top: 1px solid var(--bord);
    padding: 12px 16px 16px; display: flex; align-items: center; gap: 12px;
  }
}
.product-card__cons-short { display: none; }

/* ==========================================================================
   Ajouts lot 0 (vues Blade) : photo absente, rail sans illustration, compte.
   ========================================================================== */

/* Gabarit Blade : pied de page collé en bas des pages courtes. */
/* « corps » sur <body> : jamais « page-vitrine », classe du contenu des pages (vitrine.css). */
body.corps { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* Blocs .container posés directement dans le <body> (haut de page rayon, message flash) :
   pleine largeur, sinon les marges automatiques de la colonne flex les centrent et les rétrécissent (D-11 point 6). */
body.corps > .container { width: 100%; box-sizing: border-box; }
body.corps > main { flex: 1 0 auto; width: 100%; }

/* Bloc neutre à la place d'une photo produit pas encore publiée. */
.media-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: var(--fond-off); color: var(--bord-fort);
}
.product-card__noprice { font-size: 13px; font-weight: 600; color: var(--gris); }


/* Sans photo : illustration du rayon sur fond kraft clair (D-06 point 7). */
.media-placeholder--rayon img { width: 58%; height: 58%; object-fit: contain; }
.produit__img.media-placeholder--rayon img { width: 46%; height: auto; aspect-ratio: 1; }

/* Conditionnement, une seule fois, sous le nom (D-06 point 5). */
.product-card__format { font-size: 13px; color: var(--gris); }

/* Erreurs de formulaire (Q-01) : pictogramme potiron, texte en encre gras ; récapitulatif en haut. */
.field__error { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--encre); font-weight: 600; }
.field__error svg { flex: 0 0 auto; margin-top: 1px; }
.input[aria-invalid="true"] { border-color: var(--jaune); border-width: 2px; }
.erreurs { border: 2px solid var(--jaune); border-radius: 14px; background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.erreurs:focus { outline: 3px solid var(--jaune); outline-offset: 2px; }
.erreurs__titre { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--encre); }
.erreurs__titre svg { flex: 0 0 auto; }
.erreurs__liste { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 4px; }
.erreurs__liste a { color: var(--encre); font-weight: 600; }

/* Cibles tactiles d'au moins 44 px (D-05, WCAG 2.5.5) pour les liens et boutons hors d'une phrase. */
.skip-link { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.site-footer__col a, .site-footer__links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; align-self: flex-start; }
.site-footer__col { gap: 0; }
.site-footer__links { gap: 0 20px; }
.rangee__tout { min-height: 44px; display: inline-flex; align-items: center; }
.aside-link { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
/* Carte produit : le nom couvre toute la carte (cible = la carte entière). Les futurs boutons
   de la carte (panier, lot 1) devront passer au-dessus (position relative, z-index 1). */
.product-card { position: relative; }
.product-card__name::after { content: ""; position: absolute; inset: 0; z-index: 0; }

/* D-17 : origine (drapeau + pays) et signes de qualité, sur une ligne. */
.origine-signes { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.origine-signes__pays { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris); }
.drapeau { flex: 0 0 auto; display: block; border-radius: 2px; }
.origine-signes__logos { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.origine-signes__logo { height: 24px; width: auto; display: block; }
.origine-signes__pastille { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: #EFE4CE; color: #6E5235; }
.origine-signes__pastille--bio { background: #5FA34A; color: #fff; }
.origine-signes__pastille--aop, .origine-signes__pastille--dop { background: #B4232A; color: #FFE36E; }
.origine-signes__pastille--igp { background: #0E4A9E; color: #FFE36E; }
.origine-signes__pastille--label_rouge { background: #C8102E; color: #fff; }
.origine-signes--complet { justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.origine-signes--complet .origine-signes__pays { font-size: 15px; color: var(--encre); }
.origine-signes--complet .origine-signes__logos { justify-content: flex-start; gap: 8px; }
.origine-signes--complet .origine-signes__logo { height: 32px; }
/* Symboles AOP et IGP de la Commission : PNG carrés avec une marge blanche autour du sceau. */
.origine-signes__logo--rond { height: 32px; margin: -4px 0; }
.origine-signes--complet .origine-signes__logo--rond { height: 44px; margin: -6px -4px; }   /* fiche : symboles ronds (IGP, AOP) lisibles */
.origine-signes__nom { font-size: 14px; color: var(--encre); margin-right: 8px; }

/* Carte produit (demande du 07/11, comme l'ancien site) : signes puis drapeau, pastilles rondes de même taille
   sous la photo. Logos officiels entiers, sur leur couleur de fond ; drapeaux recadrés au centre. */
.origine-signes--rond { justify-content: flex-start; gap: 8px; min-height: 0; flex-wrap: wrap; }
.rond { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: inset 0 0 0 1px #E3E6E1; font-size: 10px; font-weight: 800; color: var(--ambre); }
.rond img { display: block; }
.rond--bio { background: #A9C938; box-shadow: none; }
.rond--bio img { width: 125%; height: auto; max-width: none; }
.rond--aop img, .rond--dop img, .rond--igp img { width: 100%; height: 100%; object-fit: contain; }
.rond--pays .drapeau { position: absolute; inset: 0; width: 100%; height: 100%; }
.rond--pays::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.rond--label_rouge { background: #C8102E; color: #fff; box-shadow: none; }
.rond--produit_idf { background: #EFE4CE; }
.product-card__price { flex: 1; min-width: 0; }
.product-card__ligne-prix { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__kg { margin-left: auto; white-space: nowrap; }
