/* Pages publiques : épicerie fine (commande à retirer) et pages légales */
:root {
  --navy: #092849; --red: #A50020; --cream: #FFF9EF; --ink: #202020; --white: #fff;
  --muted: #6b6457; --line: #e7dfcf; --soft: #f6efe2; --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.5 "Roboto Condensed", system-ui, sans-serif; }
a { color: var(--red); }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; }

/* En-tête */
.pub-header { background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  box-shadow: 0 3px 14px rgba(9, 40, 73, .3); position: sticky; top: 0; z-index: 20; }
.pub-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.pub-brand img { height: 42px; width: auto; }
.pub-brand strong { display: block; font: 400 1.45rem/1.1 "Kaushan Script", cursive; }
.pub-brand em { font-style: normal; color: #ff8fa1; }
.pub-brand small { display: block; font-size: .85rem; color: #c9d3e2; letter-spacing: .02em; }
.pub-phone { display: flex; align-items: center; gap: 6px; color: var(--white); text-decoration: none; font-weight: 700; }
.pub-phone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.pub-main { max-width: 1060px; margin: 0 auto; padding: 22px 16px 120px; }
h1 { font: 400 2.1rem/1.15 "Kaushan Script", cursive; color: var(--navy); margin: 6px 0 10px; }

/* Introduction */
.pub-intro p { margin: 0 0 14px; font-size: 1.08rem; max-width: 46em; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 22px; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: var(--white); font-size: .9rem; }

/* Filtres */
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; position: sticky; top: 64px; z-index: 10;
  background: var(--cream); padding: 8px 0; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.cats button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Types de vin : sous-filtre affiché dans « Vins » */
.wtypes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; order: 2; }
.wtypes[hidden] { display: none; }
.wtypes::-webkit-scrollbar { display: none; }
.wtypes button { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--red); border-radius: 999px; padding: 5px 12px; font-size: .92rem; font-weight: 700; cursor: pointer; }
.wtypes button.on { background: var(--red); border-color: var(--red); color: var(--white); }
.search { position: relative; flex: 0 1 240px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 16px; background: var(--white); }
.none, .empty { color: var(--muted); }

/* Produits */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; transition: border-color .15s, box-shadow .15s; }
.product.in-cart { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.ph { width: 116px; height: 155px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph img.panier-icon { object-fit: contain; background: #fff9ef; }
.pinfo { display: flex; flex-direction: column; min-width: 0; }
.pcat { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); font-weight: 700; }
.product h2 { font-size: 1.12rem; line-height: 1.25; margin: 2px 0; color: var(--navy); }
.psize { color: var(--muted); font-size: .92rem; }
.pdesc { margin: 6px 0 0; font-size: .93rem; color: #4a4438; line-height: 1.4; white-space: pre-line; }
.pcontents { margin: 6px 0 0; font-size: .9rem; color: var(--navy); }
.pcontents ul { margin: 2px 0 0; padding-left: 1.1em; }
.pcontents span { color: var(--muted); }
.pbuy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pprice { font-weight: 700; font-size: 1.2rem; color: var(--red); font-variant-numeric: tabular-nums; }

/* Choix obligatoire (taille…) */
.popt { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 700; color: var(--navy); font-size: .95rem; }
.opt-select { flex: 1 1 auto; min-width: 0; max-width: 220px; padding: 8px 10px; border: 1.5px solid var(--navy); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.opt-select.invalid { border-color: var(--red); box-shadow: 0 0 0 2px rgba(165, 0, 32, .18); }
.opt-error { margin: 4px 0 0; color: var(--red); font-weight: 700; font-size: .9rem; }
.opt-incart { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

/* Boutons +/- */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 42px; height: 40px; border: 0; background: none; color: var(--navy); font-size: 1.35rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.qty button:disabled { color: #c5c0b5; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty.has { background: var(--navy); }
.qty.has button, .qty.has output { color: var(--white); }
.qty.has button:disabled { color: rgba(255, 255, 255, .35); }

/* Barre du panier */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: var(--white); padding: 12px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  box-shadow: 0 -4px 18px rgba(9, 40, 73, .3); }
.cb-info { display: flex; flex-direction: column; min-width: 0; font-size: 1.05rem; line-height: 1.3; }
.cb-sum { white-space: nowrap; }
.cb-sum strong { font-size: 1.15rem; }
.cartbar .btn-main { flex: none; white-space: nowrap; }
.btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 13px 22px;
  background: var(--red); color: var(--white); font-weight: 700; font-size: 1.05rem; cursor: pointer; min-height: 48px; }
.btn-main:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border: 1.5px solid var(--navy); background: none; color: var(--navy); border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer; }

/* Panier */
.back { border: 0; background: none; color: var(--navy); font-weight: 700; padding: 6px 0; cursor: pointer; }
.cart-lines { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cname strong { display: block; color: var(--navy); line-height: 1.25; }
.cname small { color: var(--muted); }
.cprice { font-weight: 700; color: var(--red); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.cqty { color: var(--muted); font-weight: 700; }
.remove { border: 0; background: none; color: var(--muted); font-size: 1rem; width: 32px; height: 32px; cursor: pointer; border-radius: 50%; }
.remove:hover { background: var(--soft); color: var(--red); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; font-size: 1.1rem; }
.cart-total strong { font-size: 1.5rem; color: var(--red); }
.notice { background: #fff3dd; border-left: 4px solid #d08a00; border-radius: 10px; padding: 12px 14px; margin: 6px 0 22px; }
.notice > strong:first-child { display: block; color: #7a4d00; }

/* Paniers garnis */
.gift-invite { display: flex; align-items: center; gap: 14px; background: #fbeef0; border: 1px dashed var(--red); border-radius: var(--radius);
  padding: 12px 16px; margin: 0 0 16px; }
.gift-invite[hidden] { display: none; }
.gift-invite p { margin: 0; flex: 1 1 auto; line-height: 1.4; }
.gift-invite .btn-ghost { flex: none; border-color: var(--red); color: var(--red); background: var(--white); }
.gi-icon { font-size: 1.9rem; line-height: 1; }
.dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; margin: 0 0 14px; scroll-margin-top: 140px; }
.dest[hidden] { display: none; }
.dest.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--red); } 100% { box-shadow: 0 0 0 0 transparent; } }
.dest-label { font-weight: 700; color: var(--navy); }
.dest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-weight: 700; cursor: pointer; max-width: 100%; }
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }
.chip .n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); font-size: .85rem; text-align: center; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.on.gift { background: var(--red); border-color: var(--red); }
.chip.on .n { background: rgba(255, 255, 255, .22); }
.chip.add { border-style: dashed; border-color: var(--red); color: var(--red); }
.cb-dest { display: block; border: 0; background: none; color: #ffd9df; font: inherit; font-size: .9rem; padding: 2px 0 0; cursor: pointer;
  text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.cb-dest[hidden] { display: none; }

.cgroup { margin: 0 0 16px; }
.cg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; }
.cg-head h2 { margin: 0; font-size: 1.2rem; color: var(--navy); overflow-wrap: anywhere; }
.cgroup.gift .cg-head h2 { color: var(--red); }
.cg-head small { color: var(--muted); }
.cg-tools { margin-left: auto; display: flex; gap: 4px; }
.cg-tools button { border: 0; background: none; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; padding: 4px 6px; cursor: pointer; }
.cg-tools button.danger { color: var(--red); }
.cgroup.gift .cart-lines { border-color: #e9b9c1; }
.cline.compose { grid-template-columns: minmax(0, 1fr) auto; }
.cline.compose small { white-space: pre-line; }
.cempty { margin: 0; padding: 14px; color: var(--muted); }
.add-to { display: block; border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; padding: 8px 2px 0; cursor: pointer; }
.csub { display: flex; justify-content: space-between; margin: 6px 4px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.add-gift { display: block; width: 100%; margin: 4px 0 6px; padding: 12px; border: 1.5px dashed var(--red); border-radius: var(--radius);
  background: #fbeef0; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.add-gift span { font-weight: 400; }
.add-gift[hidden] { display: none; }

.gift-dlg { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--ink);
  box-shadow: 0 20px 60px rgba(9, 40, 73, .35); }
.gift-dlg::backdrop { background: rgba(9, 40, 73, .55); }
.gift-dlg form { padding: 20px; }
.gift-dlg h2 { margin: 0 0 4px; color: var(--red); font-size: 1.35rem; }
.gift-dlg .small { margin: 0 0 14px; }
.gift-dlg label { display: block; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.gift-dlg .opt { font-weight: 400; color: var(--muted); }
.gift-dlg input:not([type=radio]), .gift-dlg textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #cfc6b5;
  border-radius: 10px; font: inherit; font-size: 16px; background: var(--white); color: var(--ink); }
.gift-dlg textarea { resize: vertical; }
.gift-dlg small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.gift-mode { border: 0; padding: 0; margin: 0 0 12px; }
.gift-mode legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 6px; }
.gift-mode .mode { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  margin: 0 0 8px; font-weight: 400; color: var(--ink); cursor: pointer; }
.gift-mode .mode:has(input:checked) { border-color: var(--red); background: #fbeef0; }
.gift-mode .mode input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.gift-mode .mode strong { display: block; color: var(--navy); }
.compose-fields[hidden] { display: none; }
.euro { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.euro input { max-width: 140px; }
.dlg-buttons { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); text-align: center; }
.toast[hidden] { display: none; }

/* L'épicerie comme une appli (écran d'accueil) */
.app-banner { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 10px; padding: 10px 8px 10px 12px; margin: 0 0 16px; }
.app-banner[hidden] { display: none; }
.app-banner p { margin: 0; flex: 1 1 auto; line-height: 1.35; font-size: .95rem; }
.ab-icon { font-size: 1.5rem; line-height: 1; }
.ab-how { flex: none; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 7px 12px;
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.ab-close { flex: none; border: 0; background: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.linkish { border: 0; background: none; padding: 0; color: var(--white); font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.app-link[hidden] { display: none; }
.app-dlg { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--ink);
  box-shadow: 0 20px 60px rgba(9, 40, 73, .35); }
.app-dlg::backdrop { background: rgba(9, 40, 73, .55); }
.app-dlg-body { padding: 20px; }
.app-dlg h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.3rem; }
.app-dlg .small { margin: 0 0 12px; }
.app-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.app-tabs button { flex: 1 1 0; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 10px;
  font: inherit; font-weight: 700; cursor: pointer; }
.app-tabs button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.app-panel[hidden] { display: none; }
.app-steps { margin: 0 0 10px; padding-left: 1.4em; line-height: 1.5; }
.app-steps li { margin: 0 0 8px; }
.ico-share { width: 22px; height: 22px; vertical-align: -5px; fill: none; stroke: #0a7aff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-install { width: 100%; margin: 0 0 12px; }
.app-install[hidden] { display: none; }

/* Retour en haut (au-dessus de la barre du panier quand elle est affichée) */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 35;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--navy); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(9, 40, 73, .35); }
.to-top[hidden] { display: none; }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--red); }
.to-top:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
body.has-cartbar .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* Formulaire */
.order-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.order-form h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.25rem; }
.order-form label { display: block; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.order-form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #cfc6b5; border-radius: 10px; font: inherit; font-size: 16px; background: var(--white); color: var(--ink); }
.order-form input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.order-form input.invalid { border-color: var(--red); background: #fff5f6; }
.order-form small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.order-form .closure-note { color: #7a4d00; background: #fff3dd; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.order-form .closure-note strong { display: inline; color: #7a4d00; }
.order-form .opening-note { color: #2f6b2a; background: #e8f4e5; }
.order-form .opening-note strong { color: #2f6b2a; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.check input.invalid { outline: 2px solid var(--red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.info-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 6px 0 16px; }
.info-cards > div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.info-cards strong { display: block; color: var(--navy); }
.field-error, .form-errors { color: var(--red); font-weight: 700; }
.field-error:empty { display: none; }
/* Contrôle en temps réel (static/js/champs.js) */
.field-error.live-error { margin: 4px 0 0; font-size: .92rem; }
/* Pas de message = pas d'espace : un message masqué ou vide ne prend aucune place */
.field-error[hidden], .field-error:empty, #resa-info:empty { display: none !important; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(165, 0, 32, .12); }
input.is-valid, select.is-valid, textarea.is-valid { border-color: #2f6b2a !important; }
.form-errors p { margin: 0 0 6px; }
.order-form .btn-main { width: 100%; margin-top: 6px; }
.small { font-size: .88rem; color: var(--muted); }

/* Confirmation */
.done { max-width: 640px; margin: 0 auto; text-align: center; }
.done-icon { width: 64px; height: 64px; margin: 10px auto 4px; border-radius: 50%; background: #2f7d3a; color: var(--white); font-size: 2rem; display: grid; place-items: center; }
.done .ref { font-size: 1.15rem; }
.done .ref strong { color: var(--red); letter-spacing: .03em; }
.done .cart-lines, .done .cart-total, .done .info-cards { text-align: left; }

/* Boutique fermée */
.closed { max-width: 640px; margin: 30px auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; }

/* Pages légales */
.legal { max-width: 800px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.legal h1 { margin-top: 0; }
.legal h2 { color: var(--navy); font-size: 1.2rem; margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.55; }
.legal .todo { background: #fff3dd; color: #7a4d00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* Pied de page */
.pub-footer { background: var(--navy); color: #d6dde8; padding: 26px 18px max(26px, env(safe-area-inset-bottom)); }
.pub-footer a { color: var(--white); }
.pub-footer strong { color: var(--white); }
.pub-footer-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hours, .links { list-style: none; margin: 4px 0 0; padding: 0; }
.pub-footer .follow { display: block; margin-top: 16px; }
.networks { display: flex; flex-direction: column; gap: 4px; }
.networks .handle { color: #b8c3d4; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; gap: 10px; max-width: 230px; }
.alcohol { max-width: 1060px; margin: 20px auto 0; text-align: center; font-size: .9rem; color: #b8c3d4; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; }
body.has-cartbar .pub-footer { padding-bottom: 96px; }

/* Pages « Réserver une table » et « Laisser un avis » */
.pub-form-page { max-width: 760px; margin: 0 auto; }
.pub-form-page .lead { font-size: 1.08rem; margin: 0 0 16px; }
.pub-form-page.done { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pub-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pub-form fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.pub-form legend { font-weight: 700; color: var(--red); font-size: 1.05rem; padding: 0; margin: 0 0 8px; }
.pub-form label { display: block; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.pub-form input:not([type=checkbox]):not([type=radio]), .pub-form select, .pub-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #cfc6b5; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 400; background: var(--white); color: var(--ink); }
.pub-form textarea { resize: vertical; }
.pub-form input:focus, .pub-form select:focus, .pub-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.pub-form .opt { font-weight: 400; color: var(--muted); }
.pub-form .field-error { margin: 4px 0 0; font-size: .92rem; }
.pub-form .btn-main { width: 100%; margin-top: 8px; }
.pub-form .muted { color: var(--muted); }
.pub-form .small { font-size: .9rem; }
.row3 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
/* Étoiles cliquables (sans JavaScript : radios inversés) */
.rating { margin: 0 0 12px !important; }
.rating legend { color: var(--navy) !important; font-size: 1rem !important; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { margin: 0 !important; font-size: 2rem; line-height: 1; color: #d9d2c3 !important; cursor: pointer; padding: 0 2px; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #e3a008 !important; }
.stars-input input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.more-ratings { margin: 0 0 14px; }
.more-ratings summary { cursor: pointer; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.ratings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ratings-grid .stars-input label { font-size: 1.6rem; }

@media (max-width: 760px) {
  .row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row3 > :first-child { grid-column: 1 / -1; }
  .pub-form .row2, .ratings-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-form { padding: 16px 14px; }
  body { font-size: 16px; }
  .pub-brand strong { font-size: 1.25rem; }
  .pub-phone span { display: none; }
  .pub-phone svg { width: 24px; height: 24px; }
  h1 { font-size: 1.7rem; }
  .shop-tools { top: 62px; }
  .search { flex: 1 1 100%; order: -1; }
  .products { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .product { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .ph { width: 88px; height: 118px; }
  .pdesc { font-size: .9rem; }
  .cline { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "qty price"; row-gap: 8px; }
  .cline .cname { grid-area: name; }
  .cline .qty, .cline .cqty { grid-area: qty; justify-self: start; }
  .cline .cprice { grid-area: price; }
  .cline .remove { display: none; }
  .row2, .info-cards { grid-template-columns: minmax(0, 1fr); }
  .gift-invite { flex-wrap: wrap; padding: 12px; }
  .gift-invite p { flex: 1 1 calc(100% - 50px); font-size: .95rem; }
  .gift-invite .btn-ghost { width: 100%; }
  .dest { padding: 10px; }
  .dest-label { flex: 1 1 100%; font-size: .95rem; }
  .chip .nm { max-width: 9em; }
  .app-banner { flex-wrap: wrap; }
  .app-banner p { flex: 1 1 calc(100% - 80px); }
  .ab-close { order: 1; }
  .ab-how { order: 2; margin-left: 34px; }
  .cb-info { font-size: .95rem; }
  .cartbar .btn-main { padding: 12px 16px; }
  .cline.compose { grid-template-areas: "name name" "qty price"; }
  .dlg-buttons button { flex: 1 1 auto; }
  .order-form { padding: 14px; }
  .pub-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .legal { padding: 16px; }
}

/* Langues du site : voir static/css/lang.css (menu déroulant avec drapeaux) */
.lang-note { background: #fff7e6; border: 1px solid #f0d9a8; color: #6b4a00; border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 0 0 14px; }
