/* Vitrine client -- les couleurs et polices viennent des jetons --cl-* du theme (VSEN 1633). */

:root {
  /* Alias internes -> jetons de theme (themes/<theme>/theme.css, charge avant ce fichier).
     Ce fichier ne doit plus porter aucune couleur ni police de marque en dur. */
  --bg: var(--cl-fond);
  --bg-rgb: var(--cl-fond-rgb);
  --bg-card: var(--cl-surface);
  --bg-hover: var(--cl-surface-survol);
  --surface-alt: var(--cl-surface-alt);
  --surface-survol-alt: var(--cl-surface-survol-alt);
  --vignette-fond: var(--cl-vignette-fond);
  --accent-sombre: var(--cl-accent-sombre);
  --accent: var(--cl-accent);
  --accent-dim: var(--cl-accent-fonce);
  --accent-rgb: var(--cl-accent-rgb);
  --accent-contraste: var(--cl-accent-contraste);
  --texte-sur-accent: var(--cl-texte-sur-accent);
  --accent-contraste-rgb: var(--cl-accent-contraste-rgb);
  --accent-2: var(--cl-accent-2);
  --accent-2-rgb: var(--cl-accent-2-rgb);
  --fg: var(--cl-texte);
  --fg-mute: var(--cl-texte-doux);
  --border: var(--cl-bordure);
  --radius: var(--cl-rayon);
  --rupture: var(--cl-inactif);
  --danger: var(--cl-danger);
  --succes: var(--cl-succes);
  --succes-rgb: var(--cl-succes-rgb);
  --police-marque: var(--cl-police-marque);
  --police-titre: var(--cl-police-titre);
  --police-section: var(--cl-police-section);
  --police-texte: var(--cl-police-texte);
  --discret-texte: var(--cl-discret-texte);
  --discret-bordure: var(--cl-discret-bordure);
  --discret-bordure-survol: var(--cl-discret-bordure-survol);
  /* icon-btn 44px + padding-top/bottom 10px x2 + border-bottom 1px = 65px */
  --header-h: 65px;
  --nav-h: 47px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.4 var(--police-texte); min-height: 100vh; }

a { color: var(--accent); }

header.top { position: sticky; top: 0; z-index: 10; background: var(--bg-card);
  border-bottom: 1px solid var(--border); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-hover);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--fg); fill: none; }
header.top .marque-lien { text-decoration: none; color: inherit; flex: 1; min-width: 0;
  display: flex; align-items: center; }
header.top .marque-logo { height: 31px; width: auto; max-width: 100%; object-fit: contain; display: block; }
header.top .marque { font-family: var(--police-marque); font-weight: 400;
  letter-spacing: 0.5px; font-size: 20px; text-shadow: 0 0 10px rgba(var(--accent-rgb),0.35); }
/* La classe imbriquee qui colore une syllabe du nom de marque n'existe que
   sur la page de confirmation (plus bas, sous .gate .marque) -- le header
   ne rend jamais de span imbrique du meme nom (carte/_logo.html). */
header.top a.panier-lien { color: var(--fg); text-decoration: none; font-size: 13px;
  background: var(--bg-hover); padding: 8px 14px; border-radius: 20px;
  min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--border); }
header.top a.panier-lien .n { color: var(--accent); font-weight: bold; margin-left: 4px; }

main { padding: 14px 12px 40px; max-width: 720px; margin: 0 auto; }
main.avec-barre-panier { padding-bottom: 96px; }

h1 { font-family: var(--police-titre); font-size: 19px; margin: 4px 0 14px;
  text-transform: uppercase; letter-spacing: 0.2px; }
h2 { font-size: 15px; margin: 20px 0 10px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- NAV CATEGORIES STICKY ---------- */
/* Ancres natives (liens <a href="/carte#slug">) vers les sections de la
   page unique /carte : fonctionne 100% sans JS, y compris depuis une autre
   page (fiche produit, panier...) puisque le chemin est absolu. La pastille
   "active" est surlignee cote client par scroll-spy.js (IntersectionObserver,
   amelioration progressive uniquement) -- sans JS, seule la surbrillance est
   perdue, la navigation par ancre reste 100% fonctionnelle. */
nav.cat-nav { position: sticky; top: var(--header-h); z-index: 9; background: var(--bg);
  border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px 10px; }
nav.cat-nav::-webkit-scrollbar { display: none; }
nav.cat-nav a { display: inline-block; color: var(--fg-mute); text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--border); margin-right: 8px; min-height: 32px; }
/* EPCR #1196 : texte clair, pas var(--bg) -- l'accent peut etre sombre, un
   texte quasi-noir dessus tomberait sous les 4,5:1 requis selon le theme. */
nav.cat-nav a.actif { color: var(--texte-sur-accent); background: var(--accent);
  border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb),0.5); }

/* ---------- MENU BURGER CATEGORIES (EPCR 1194) ----------
   En plus de la barre qui defile (nav.cat-nav) : un <details> natif dans le
   header, ouvert par un bouton "trois lignes". Fonctionne sans JS (le clic
   sur un lien est une ancre native comme dans cat-nav) ; scroll-spy.js ferme
   juste le panneau apres le clic pour ne pas rester ouvert par-dessus la
   section visee. */
header.top .menu-cats { position: relative; }
header.top .menu-cats > summary.icon-btn { list-style: none; cursor: pointer; }
header.top .menu-cats > summary.icon-btn::-webkit-details-marker { display: none; }
.menu-cats-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  display: flex; flex-direction: column; gap: 6px; min-width: 200px;
  max-width: calc(100vw - 28px); max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.menu-cats-panel a { color: var(--fg); text-decoration: none; font-size: 14px;
  font-weight: 600; padding: 10px 14px; border-radius: 20px;
  background: var(--bg-hover); border: 1px solid var(--border); }
.menu-cats-panel a:hover, .menu-cats-panel a:active { color: var(--texte-sur-accent); background: var(--accent);
  border-color: var(--accent); }

/* ---------- BANDEAU FERMETURE / PRE-COMMANDE (EPIC #86) ----------
   Sous le header, avant la nav categories. Non bloquant : le client peut
   composer normalement, mais sait que la commande sera prise en pre-commande
   a l'ouverture. Cohérent avec le tunnel WhatsApp (EPIC #84). */
.bandeau-fermeture { background: linear-gradient(180deg, rgba(var(--accent-rgb),0.14), rgba(var(--accent-rgb),0.06));
  border-bottom: 1px solid var(--border); color: var(--fg);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.35; }
.bandeau-fermeture .icone { font-size: 18px; flex-shrink: 0; }
.bandeau-fermeture .texte { flex: 1; }
.bandeau-precommande_active { background: linear-gradient(180deg, rgba(var(--accent-2-rgb),0.14), rgba(var(--accent-2-rgb),0.05)); }

/* ---------- BANDEAU PROMO DEFILANT (EPIC #772) ----------
   Marquee horizontal continu : la piste contient DEUX copies du texte
   collees, on translate de -50% en boucle pour un scroll infini sans
   saccade au raccord. Le mouvement est desactive avec prefers-reduced-motion
   (le texte reste lisible, aligne a gauche). */
.bandeau-promo {
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.22), rgba(var(--accent-rgb),0.10));
  border-bottom: 1px solid var(--border);
  color: var(--fg); font-weight: 700; font-size: 14px;
  padding: 10px 0; overflow: hidden; position: relative;
}
.bandeau-promo-piste {
  display: flex; gap: 3em; width: max-content;
  animation: promo-scroll 22s linear infinite;
  will-change: transform;
}
.bandeau-promo-texte {
  flex-shrink: 0; padding-right: 3em; letter-spacing: 0.5px;
  white-space: nowrap;
}
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-promo-piste { animation: none; padding: 0 12px; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- TUILE SOMBRE PHOTO (produits en fond blanc) ---------- */
.foto-tuile { background: var(--bg-hover); border-radius: var(--radius);
  padding: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; }
.foto-tuile img { border-radius: calc(var(--radius) - 4px); }

/* ---------- PORTE 18+ ---------- */
.gate { min-height: calc(100vh - 32px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px; }
.gate .marque { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
/* EPI2 #1619 : le logo du bandeau a la place du nom de la boutique en texte. */
.gate .marque-logo { width: 220px; max-width: 70%; height: auto; margin-bottom: 16px; }
.gate p { color: var(--fg-mute); max-width: 340px; margin: 0 0 28px; }
.gate form { display: flex; gap: 12px; width: 100%; max-width: 340px; }
.gate button { flex: 1; padding: 18px; font-size: 17px; font-weight: bold;
  border-radius: var(--radius); min-height: 56px; border: 1px solid var(--border);
  cursor: pointer; }
.gate button.oui { background: var(--accent); color: var(--accent-contraste); border-color: var(--accent); }
.gate button.non { background: var(--bg-card); color: var(--fg); }
.gate .mention { margin-top: 24px; font-size: 12px; color: var(--fg-mute);
  max-width: 340px; }

/* ---------- ACCUEIL : sections categories empilees (page unique) ---------- */
.cat-section { scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 8px); margin-bottom: 8px; }
.cat-section + .cat-section { border-top: 1px solid var(--border); padding-top: 4px; }

.produits { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) {
  .produits { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 960px) {
  .produits { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.prod-card { background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; display: flex;
  flex-direction: column; }
/* Container photo carré 1:1 sur toutes résolutions (produits ET packs — David 15/09/2026).
   Les images produits sont pré-normalisées à 1000×1000 noir pur
   (voir scripts/normalize_images.py). Les packs restent en 450×800, letterboxés
   dans le carré 1:1 avec fond noir — cohérent visuellement avec les produits. */
.prod-card .foto-lien { display: block; text-decoration: none; aspect-ratio: 1 / 1;
  background: var(--vignette-fond); overflow: hidden; width: 100%; }
.prod-card .foto-tuile { border-radius: 0; padding: 0; width: 100%; height: 100%;
  background: var(--vignette-fond); display: block; }
.prod-card img { width: 100%; height: 100%; object-fit: contain;
  object-position: center; display: block; }
/* Packs sur le catalogue : image portrait 450×800 (ratio 9:16), donc dans une
   tuile carrée 1:1 elles apparaissaient trop petites face aux produits solo.
   On donne aux tuiles pack un aspect-ratio 3:4 (David 15/09/2026 retour #651),
   le pack occupe plus de hauteur visuelle. */
.prod-card.pack .foto-lien { aspect-ratio: 3 / 4; }
/* Info bloc en flex-column pour pouvoir pousser le bouton d'action tout en bas
   (David #655, 15/09/2026) — évite les décalages visuels entre vignettes dont
   les noms n'ont pas la même longueur, tous les boutons s'alignent en bas. */
.prod-card .info { padding: 8px 10px 10px; display: flex; flex-direction: column;
  flex: 1 1 auto; gap: 3px; }
.prod-card .info form { margin-top: auto; padding-top: 6px; }
.prod-card.pack .info .btn-secondaire { margin-top: auto; }
.prod-card .nom-lien { color: var(--fg); text-decoration: none; }
.prod-card .nom { font-size: 13px; font-weight: 600; margin-bottom: 1px; line-height: 1.25; }
.prod-card .fmt { font-size: 11px; color: var(--fg-mute); margin-bottom: 5px; }
.prod-card .prix { font-variant-numeric: tabular-nums; font-weight: bold;
  color: var(--accent); font-size: 15px; }
.prix-barre { text-decoration: line-through; color: var(--fg-mute);
  font-size: 12px; font-weight: normal; margin-right: 5px; }
.prod-card.rupture { opacity: 0.55; filter: grayscale(1); }
.prod-card.rupture .info::after { content: "Rupture"; display: inline-block;
  margin-top: 4px; font-size: 11px; color: var(--fg-mute); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 10px; }
.prod-card form { margin: 8px 0 0; }
.prod-card button.ajouter { width: 100%; padding: 10px; background: var(--accent-sombre);
  color: var(--fg); border: 1px solid var(--accent-dim); border-radius: var(--radius);
  font-size: 13px; font-weight: bold; min-height: 44px; cursor: pointer; }
.prod-card button.ajouter:hover, .prod-card button.ajouter:active { background: var(--accent-dim);
  color: var(--accent-contraste); }

/* ---------- BADGE 18+ ---------- */
.badge-18 { display: inline-block; font-size: 10px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: 10px; padding: 3px 8px;
  text-transform: uppercase; letter-spacing: .4px; }

/* ---------- BADGE NOUVEAUTE ---------- */
.badge-new { display: inline-block; color: var(--accent); font-weight: 700;
  font-size: 14px; line-height: 1; vertical-align: middle; }

/* ---------- ERREUR / INDISPONIBLE ---------- */
.erreur { background: var(--bg-card); border: 1px solid var(--danger);
  color: var(--danger); border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 14px; font-size: 14px; }
.indisponible { opacity: 0.7; font-size: 14px; margin: 16px 0; }

/* ---------- BANDEAU ENVOI PANIER (EPI2 #1212) ----------
   Panier deja envoye sur la messagerie : informatif, pas une erreur --
   meme famille que .bandeau-fermeture, sans le degrade plein largeur. */
.bandeau-envoi { background: var(--bg-card); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 14px; font-size: 14px; line-height: 1.4; }

/* ---------- FICHE PACK : photo en grand (l'argument de vente) ---------- */
.pack-hero { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; }
.pack-hero img { width: 100%; max-height: 440px; object-fit: contain; display: block; }

/* ---------- FICHE PACK / FICHE PRODUIT (bloc en-tete) ---------- */
.pack-fixe { background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 18px; margin-bottom: 20px;
  display: flex; gap: 16px; align-items: center; position: relative; }
.pack-fixe .foto-tuile { width: 92px; height: 92px; flex-shrink: 0; padding: 6px; }
.pack-fixe .foto-tuile img { width: 100%; height: 100%; object-fit: contain; }
.pack-fixe .nom { font-size: 18px; font-weight: 800; line-height: 1.2; }
.pack-fixe .fmt { color: var(--fg-mute); font-size: 13px; margin-top: 2px; }
.pack-fixe .prix { color: var(--accent); font-weight: bold; font-size: 20px;
  margin-top: 6px; font-variant-numeric: tabular-nums; }
.pack-fixe .badge-18 { margin-top: 8px; }

/* ---------- FICHE PLEIN ECRAN (produit / pack) : bouton fermer ---------- */
/* padding-bottom couvre la hauteur de .barre-fixe-achat (bouton 18px*2 padding
   + ses 14px*2 + safe-area-inset-bottom sur mobile encoche) avec marge, pour
   que le dernier bloc (bouton "Retour") ne soit jamais masque derriere elle */
.fiche-scroll { padding-bottom: 130px; position: relative; }
.fiche-fermer { position: absolute; top: 8px; right: 8px; z-index: 5; width: 36px;
  height: 36px; border-radius: 50%; background: rgba(var(--bg-rgb), 0.72);
  color: var(--fg); border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; text-decoration: none;
  font-size: 18px; line-height: 1; }

/* Fiche pack/produit : contenu scrollable + barre d'achat fixee en bas (reflex pouce mobile) */
.barre-fixe-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), var(--bg) 25%); }
.barre-fixe-achat .contenu { max-width: 720px; margin: 0 auto; }
.barre-fixe-achat .btn-principal, .barre-fixe-achat .choix-formule { margin-top: 0; }

/* ---------- BARRE PANIER STICKY BAS (accueil / categorie / fiche produit) ---------- */
.barre-panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.barre-panier a { display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; background: var(--accent); color: var(--accent-contraste);
  text-decoration: none; padding: 14px 18px; border-radius: 999px;
  font-weight: bold; font-size: 15px; min-height: 48px;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb),0.45); }
.barre-panier .total { font-variant-numeric: tabular-nums; }

/* Bandeau « ajouté au panier » (EPCR #1042) : posé au-dessus de la barre
   panier, il s'efface seul en CSS -- aucun JS requis (WebView). */
.toast-ajout { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 20; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--bg-card); color: var(--fg); border: 1px solid var(--accent-2);
  border-radius: 999px; padding: 10px 18px; font-weight: bold; font-size: 15px;
  white-space: nowrap; box-shadow: 0 4px 18px rgba(0,0,0,0.5); pointer-events: none;
  animation: toast-ajout 2.8s ease forwards; }
@keyframes toast-ajout {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; visibility: hidden; transform: translate(-50%, 0); }
}

.groupe-options { margin-bottom: 20px; }
.groupe-options .titre { font-weight: bold; margin-bottom: 10px; font-size: 15px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; min-height: 48px; }
.option input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.option label { flex: 1; display: flex; justify-content: space-between; gap: 10px;
  cursor: pointer; }
.option .nom-opt { font-size: 15px; }
.option .fmt-opt { color: var(--fg-mute); font-size: 12px; }
.option .supplement { font-size: 13px; font-weight: bold; color: var(--accent);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.option .supplement.inclus { color: var(--fg-mute); font-weight: normal; }

.choix-formule { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.choix-formule .btn-principal { margin-top: 0; }

.recap-detail { margin-bottom: 4px; }
.ligne-recap { display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--border);
  font-size: 14px; }
.ligne-recap .supplement { font-weight: bold; color: var(--accent);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.ligne-recap .supplement.inclus { color: var(--fg-mute); font-weight: normal; }

.btn-principal { width: 100%; padding: 18px; background: var(--accent); color: var(--accent-contraste);
  border: none; border-radius: var(--radius); font-size: 17px; font-weight: bold;
  cursor: pointer; min-height: 56px; margin-top: 8px;
  text-align: center; text-decoration: none; box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.32); }
a.btn-principal { display: block; }
.btn-principal:hover, .btn-principal:active { background: var(--accent-dim);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.42); }
.btn-secondaire { width: 100%; padding: 14px; background: var(--bg-card); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px;
  cursor: pointer; min-height: 48px; margin-top: 8px; text-align: center;
  text-decoration: none; display: block; }
/* Sur la carte, le bouton « Composer » d'un pack utilise la même couleur bordeaux
   que le bouton « Ajouter » des produits (David 15/09/2026). */
.prod-card.pack .btn-secondaire { background: var(--accent-sombre); color: var(--fg);
  border-color: var(--accent-dim); font-weight: bold; font-size: 13px; padding: 10px;
  min-height: 44px; }
.prod-card.pack .btn-secondaire:hover, .prod-card.pack .btn-secondaire:active {
  background: var(--accent-dim); color: var(--accent-contraste); }

/* ---------- PANIER ---------- */
.ligne-panier { background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px; margin-bottom: 10px; }
.ligne-panier .haut { display: flex; justify-content: flex-start; gap: 12px;
  align-items: center; }
/* Vignette panier (EPIC #659, David 15/09/2026) — thumbnail petit et compact,
   mobile + PC. 60×60 sur mobile, 72×72 desktop, fond noir cohérent avec la
   carte pour éviter le contraste avec les images 1000×1000 noires. */
.ligne-panier .vignette-panier { flex-shrink: 0; width: 60px; height: 60px;
  background: var(--vignette-fond); border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.ligne-panier .vignette-panier img { width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block; }
@media (min-width: 720px) {
  .ligne-panier .vignette-panier { width: 72px; height: 72px; }
}
.ligne-panier .ligne-panier-texte { flex: 1 1 auto; min-width: 0; }
.ligne-panier .nom { font-weight: 600; font-size: 15px; }
.ligne-panier .opts { color: var(--fg-mute); font-size: 12px; margin-top: 2px; }
.ligne-panier .prix-ligne { font-weight: bold; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-panier .bas { display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; gap: 10px; }
.qte-boutons { display: flex; align-items: center; gap: 10px; }
.qte-boutons form { margin: 0; }
.qte-boutons button { width: 44px; height: 44px; min-height: 44px; padding: 0;
  background: var(--bg-hover); color: var(--fg); border: 1px solid var(--border);
  border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.qte-boutons .qte-valeur { min-width: 20px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: bold; }
.retirer-form button { min-height: 44px; padding: 8px 14px;
  background: var(--bg-hover); color: var(--fg-mute); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; cursor: pointer; }

/* ---------- CHOIX PAIEMENT (VSEN 1641) ----------
   Puces de paiement affichees en ligne flexbox avec wrap, pour que les deux
   options (en ligne / sur place) soient « en face » horizontalement (David). */
.wiz-paiement { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-paiement legend { display: none; }
/* ZZZZ 1831 : prefixees par .wiz-form, sinon « .wiz-form label » (declaree plus bas,
   meme specificite) et « .wiz-form input » (width 100 %, padding, bordure) s'appliquaient
   aux puces : le bouton radio prenait toute la carte et le libelle debordait en 390 px. */
.wiz-form .wiz-paiement label { flex: 1; min-width: 140px; display: flex; align-items: center;
  gap: 10px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; font-size: 15px; min-height: 44px;
  color: var(--fg); font-weight: 400; letter-spacing: normal; text-transform: none; }
.wiz-form .wiz-paiement label:hover { border-color: var(--accent); background: var(--bg-hover); }
.wiz-form .wiz-paiement input[type=radio] { accent-color: var(--accent); flex-shrink: 0;
  width: auto; margin: 0; padding: 0; border: none; background: none; box-shadow: none; }

.total-box { background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--accent-dim); padding: 16px; margin: 20px 0;
  display: flex; justify-content: space-between; align-items: center; }
.total-box .lbl { font-size: 15px; color: var(--fg-mute); }
.total-box .val { font-size: 24px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; }
.paiement-livraison { text-align: center; font-weight: 700; margin: 0 0 12px; }

.vide { text-align: center; color: var(--fg-mute); padding: 60px 20px; }

/* ---------- MENTION SANITAIRE (Loi Evin) ---------- */
.mention-sanitaire { font-size: 11px; color: var(--fg-mute); text-align: center;
  padding: 14px 12px; border-top: 1px solid var(--border); margin-top: 24px; }

/* ---------- SUGGESTIONS (#43) : interstitiel apres ajout + bloc fiche ---------- */
.suggestion-carte { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.suggestion-carte .txt { flex: 1; min-width: 0; }
.suggestion-carte .nom { font-size: 14px; font-weight: 600; }
.suggestion-carte .libelle { color: var(--fg-mute); font-size: 12px; margin-top: 2px; }
.suggestion-carte .prix { font-weight: bold; color: var(--accent); font-size: 14px;
  white-space: nowrap; margin-right: 4px; font-variant-numeric: tabular-nums; }
.suggestion-carte form { margin: 0; }
.suggestion-carte button { min-height: 40px; padding: 8px 14px; background: var(--bg-hover);
  color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; cursor: pointer; }

/* Cible tactile minimale partout */
button, a.btn-secondaire { min-height: 44px; }

/* ---------- HOME VITRINE (page d'arrivee /) ---------- */
/* Page d'atterrissage du lien envoye par le bot WhatsApp. Une phrase,
   un CTA, aucun bruit -- pas de header top, pas de nav categories,
   pas de barre panier. La porte 18+ se declenche en aval (au clic
   CTA -> /carte). */
.home-hero { display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 24px calc(40px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 30%,
    rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--bg-rgb), 0) 60%),
    var(--bg);
  max-width: 720px; margin: 0 auto; }
.home-hero-visual { display: block; width: calc(100% + 48px);
  margin: 0 -24px 24px; aspect-ratio: 16 / 9; overflow: hidden;
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.18),
              0 2px 12px rgba(0, 0, 0, 0.6); }
.home-hero-visual img { width: 100%; height: 100%; object-fit: cover;
  display: block; }
.home-baseline { color: var(--fg); font-size: 17px; line-height: 1.5;
  max-width: 340px; margin: 0 0 28px; }
.home-cta { max-width: 340px; margin-top: 0; }
.home-mention { margin-top: 24px; font-size: 11px; color: var(--fg-mute);
  max-width: 340px; line-height: 1.45; }

@media (min-width: 720px) {
  .home-hero-visual { width: 100%; margin: 24px 0;
    border-radius: var(--radius); }
}
.home-section { max-width: 720px; margin: 40px auto 0; padding: 0 24px; }
/* --cl-police-section peut etre une ecriture liee, dessinee pour les
   minuscules : les majuscules et l'espacement herites de h1/h2 en
   casseraient les liaisons (#1255). */
.home-section h2 { font-family: var(--police-section); font-weight: 400;
  font-size: 30px; color: var(--fg); margin: 0 0 12px;
  text-transform: none; letter-spacing: 0; }
.home-section-hint { color: var(--fg-mute); font-size: 14px;
  margin: 0 0 16px; }

.home-titre { font-family: var(--police-section); font-weight: 400;
  text-transform: none; letter-spacing: 0; font-size: 30px; line-height: 1.2; color: var(--fg); margin: 0 0 12px;
  max-width: 340px; }
@media (min-width: 720px) { .home-titre { font-size: 40px; max-width: 560px; } }
.home-etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape;
  display: grid; grid-template-columns: 1fr; gap: 10px; }
.home-etapes li { counter-increment: etape; padding: 12px 14px 12px 48px;
  position: relative; background: var(--bg-card); border-radius: var(--radius);
  font-size: 15px; line-height: 1.5; color: var(--fg); }
.home-etapes li::before { content: counter(etape); position: absolute;
  left: 14px; top: 12px; font-family: var(--police-titre); color: var(--accent); }
.home-etapes li strong { color: var(--accent); }
.home-categories { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.home-categories a { display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px; text-align: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); font-size: 15px; font-weight: bold; text-decoration: none; }
.home-categories a:hover { border-color: var(--accent); color: var(--accent); }
.home-faq-r { margin: 8px 0 4px; font-size: 14px; line-height: 1.55;
  color: var(--fg-mute); }
.home-faq-plus { margin: 12px 0 0; }
.home-faq-plus a, .home-contact a { color: var(--accent); text-decoration: none;
  font-weight: bold; }
.home-contact p { margin: 0 0 10px; font-size: 15px; }

.home-palier { margin: 0 0 10px; padding: 12px 14px;
  background: var(--bg-card); border-radius: var(--radius); }
.home-palier summary { cursor: pointer; font-size: 15px; font-weight: bold;
  color: var(--fg); list-style: none; padding: 4px 0; }
.home-palier summary::-webkit-details-marker { display: none; }
.home-palier summary::before { content: "▸ "; color: var(--accent); }
.home-palier[open] summary::before { content: "▾ "; }
.home-palier-n { color: var(--fg-mute); font-weight: normal; font-size: 13px; }
.home-communes { list-style: none; padding: 12px 0 4px; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px; }
.home-communes li { padding: 4px 10px; background: var(--bg-hover);
  border-radius: 16px; font-size: 13px; color: var(--fg); }
.produit-description { color: var(--fg-mute); font-size: 14px; line-height: 1.5;
  margin: 12px 0 20px; padding: 12px 14px;
  background: var(--bg-card); border-left: 3px solid var(--accent);
  border-radius: 8px; }
.fiche-ajouter { margin: 16px 0 24px; }
.fiche-ajouter .btn-principal { max-width: 400px; margin: 0 auto; }

.home-famille { margin: 20px 0 24px; }
.home-famille h3 { font-size: 17px; margin: 0 0 10px;
  color: var(--fg); font-weight: bold; }
.home-vignettes { display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; }
@media (min-width: 640px) {
  .home-vignettes { grid-template-columns: repeat(4, 1fr); }
}
.home-vignette { background: var(--bg-card); border-radius: var(--radius);
  padding: 10px; text-align: center; }
.home-vignette img { width: 100%; aspect-ratio: 1; object-fit: contain;
  background: var(--bg-hover); border-radius: 6px; }
.home-vignette-nom { margin-top: 6px; font-size: 13px; color: var(--fg);
  line-height: 1.3; }
.home-vignette-fmt { font-size: 11px; color: var(--fg-mute); }
.home-vignette-prix { margin-top: 4px; font-weight: bold; color: var(--accent);
  font-size: 15px; }
.home-cta-bas { text-align: center; margin: 24px 0 0; }
.home-cta-bas .btn-principal { max-width: 400px; margin: 0 auto; }

/* ---------- WIZARD COMMANDE WEB (task EPIC #608, iter 1 de #598) ---------- */
/* Conversation replay HTML rendue serveur -- pas de JS de chat. Chaque
   soumission POST rejoue l'echange complete. Esthetique : bulles style
   messagerie (IA a gauche, client a droite), palette du theme. */
.wiz { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.wiz-entete { display: flex; align-items: center; gap: 12px;
  padding: 12px 4px 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px; }
.wiz-avatar { width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); display: flex; align-items: center;
  justify-content: center; font-size: 22px;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.32); }
.wiz-titre { font-family: var(--police-marque); font-size: 22px;
  color: var(--fg);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4); }
.wiz-conv { display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 20px; }
.wiz-msg { display: flex; }
.wiz-msg.ia { justify-content: flex-start; }
.wiz-msg.client { justify-content: flex-end; }
.wiz-bulle { max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 15px; line-height: 1.45; white-space: normal;
  word-wrap: break-word; }
.wiz-msg.ia .wiz-bulle { background: var(--bg-card); color: var(--fg);
  border-bottom-left-radius: 4px; }
.wiz-msg.client .wiz-bulle { background: var(--accent); color: var(--texte-sur-accent);
  border-bottom-right-radius: 4px; }
.wiz-bulle-ok { background: rgba(var(--accent-2-rgb), 0.14) !important;
  border: 1px solid rgba(var(--succes-rgb), 0.4);
  color: var(--fg); }
.wiz-bulle em { color: var(--fg-mute); }
.wiz-erreur { background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid var(--danger); color: var(--fg);
  padding: 10px 14px; border-radius: 12px; font-size: 14px;
  margin-bottom: 12px; }
.wiz-erreur a { color: var(--accent); }
/* EPCR #914 : boutique fermee au recap -- information, pas erreur. Meme
   codage couleur que le bandeau de fermeture de l'en-tete. */
.wiz-precommande { background: linear-gradient(180deg, rgba(var(--accent-rgb),0.14), rgba(var(--accent-rgb),0.06));
  border: 1px solid rgba(var(--accent-rgb),0.35); color: var(--fg);
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  line-height: 1.45; margin-bottom: 12px; }
.wiz-form { display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--bg-card); border-radius: 16px;
  margin-top: 8px; }
.wiz-form label { font-size: 13px; color: var(--fg-mute);
  font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.wiz-form input, .wiz-form textarea { width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--fg);
  font-size: 16px; font-family: inherit; box-sizing: border-box; }
.wiz-form input:focus, .wiz-form textarea:focus { outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.wiz-form textarea { resize: vertical; min-height: 72px; }
.wiz-form .btn-principal { margin-top: 8px; }
.wiz-form .btn-secondaire { margin-top: 2px; }
.wiz-fin { text-align: center; padding-top: 20px; }

/* Suggestions upsell dans le wizard (task EPIC #609, iter 2 de #598).
   Boutons pleine largeur, empiles verticalement, halo d'accent doux. */
.wiz-suggestions .btn-suggestion { width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--accent-dim);
  color: var(--fg); border-radius: 12px;
  font-size: 15px; font-family: inherit; text-align: left; cursor: pointer;
  min-height: 52px; margin-bottom: 4px; }
.wiz-suggestions .btn-suggestion strong { color: var(--accent); }
.wiz-suggestions .btn-suggestion:hover, .wiz-suggestions .btn-suggestion:active
  { background: var(--bg-hover); border-color: var(--accent); }

/* Bulles post-validation (task EPIC #610, iter 3 de #598). */
.wiz-bulle-attente { background: rgba(var(--accent-rgb), 0.10) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--fg); }
.wiz-bulle-refus { background: rgba(var(--accent-rgb), 0.15) !important;
  border: 1px solid var(--danger); color: var(--fg); }
.wiz-spinner { display: inline-block; margin-right: 4px; }

/* ---------- FICHE PACK — refonte UX/UI (EPIC #651, David 15/09/2026) ---------- */
/* Objectifs : supprimer l'espace vide, 2 colonnes desktop, boutons formule
   immédiatement sous les infos produit. Aucun min-height forcé. */
.pack-fiche { max-width: 1100px; margin: 0 auto; padding: 12px 4px 40px; }
.pack-retour { display: inline-block; color: var(--fg-mute); text-decoration: none;
  font-size: 13px; padding: 8px 12px; margin-bottom: 8px; border-radius: 999px;
  transition: color .15s ease; }
.pack-retour:hover, .pack-retour:focus { color: var(--accent); }

.pack-grille { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) {
  .pack-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px; align-items: start; }
}

.pack-visuel { background: var(--surface-alt); border-radius: 16px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); }
/* Photo agrandie +30% (David 15/09/2026 3e retour #651) :
   mobile 520→680px, desktop 680→885px. Ratio préservé (object-fit contain). */
.pack-visuel img { display: block; width: 100%; height: auto; max-height: 680px;
  object-fit: contain; }
@media (min-width: 820px) {
  .pack-visuel img { max-height: 885px; }
}

.pack-detail { display: flex; flex-direction: column; gap: 8px; }
.pack-titre { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 0;
  color: var(--fg); }
@media (min-width: 820px) {
  .pack-titre { font-size: 32px; }
}
.pack-prix { font-size: 26px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.pack-detail .badge-18 { align-self: flex-start; }
.pack-desc { color: var(--fg-mute); font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.pack-composition { list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 6px; }
.pack-composition li { display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--fg); }
.pack-composition li:last-child { border-bottom: none; }
.pack-comp-lib { color: var(--fg-mute); }
.pack-comp-lib em { font-style: normal; color: var(--accent); font-weight: 600; }
.pack-comp-detail { font-weight: 600; text-align: right; }

.pack-formules { margin-top: 20px; }
.pack-formules-titre { font-size: 15px; font-weight: 600; margin: 0 0 12px;
  color: var(--fg); text-transform: uppercase; letter-spacing: .5px; }
/* Boutons Formule dans la couleur d'accent (David 15/09/2026 retour #651) — mobile + PC. */
.pack-option { display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--accent); background: var(--accent);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 10px;
  color: var(--accent-contraste); text-decoration: none;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.32);
  transition: background .15s ease, box-shadow .15s ease; }
.pack-option:hover, .pack-option:focus { background: var(--accent-dim);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.42); }
.pack-option:active { transform: translateY(1px); }
.pack-option-nom { font-size: 16px; font-weight: 700; color: var(--accent-contraste); }
.pack-option-desc { font-size: 13px; color: rgba(var(--accent-contraste-rgb), 0.85); }
/* EPI2 #1198 -- Le commerçant : le client doit voir CE QU'IL Y A dedans en premier.
   "Formule A/B" passe en discret, le contenu (2 boissons au choix, etc.)
   devient le texte principal. Scope aux boutons de formule seulement : les
   memes classes servent au choix de bouteille (.pack-option-radio), qui ne
   doit pas changer. */
.pack-formules .pack-option-nom { font-size: 11px; font-weight: 600;
  color: rgba(var(--accent-contraste-rgb), 0.72); text-transform: uppercase; letter-spacing: .04em; }
.pack-formules .pack-option-desc { font-size: 18px; font-weight: 700;
  color: var(--accent-contraste); line-height: 1.25; }
/* Supplement de formule (EPI2 #1240, D1) -- absent des 10 packs actuels
   (tous a supplement 0, donc jamais affiche : rendu identique), visible
   des qu'une formule en porte un. */
.pack-formules .pack-option .supplement { display: block; margin-top: 2px;
  font-size: 13px; font-weight: 700; color: var(--accent-contraste); }
/* button.pack-option : mêmes styles que a.pack-option (David #715, 17/09) */
button.pack-option { width: 100%; font: inherit; cursor: pointer;
  text-align: left; appearance: none; }

/* Choix bouteille amont sur fiche pack (David #715, 17/09) */
.pack-bouteille-choix { margin-top: 20px; }
.pack-option-radio { display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); cursor: pointer;
  transition: border-color .15s ease, background .15s ease; }
.pack-option-radio:hover { border-color: var(--accent); background: var(--surface-survol-alt); }
.pack-option-radio input[type=radio] { accent-color: var(--accent); flex: 0 0 auto; }
.pack-option-radio .pack-option-nom { color: var(--fg); flex: 1; }
.pack-option-radio .fmt-opt { color: var(--fg-mute); font-weight: 400; margin-left: 6px; }
.pack-option-radio .supplement { color: var(--accent); font-weight: 700; }
.pack-option-radio .supplement.inclus { color: var(--fg-mute); font-weight: 500; }
.pack-choix-form { display: block; }

.pack-suggestions { margin-top: 24px; border-top: 1px solid var(--border);
  padding-top: 16px; }
.pack-suggestions summary { cursor: pointer; font-size: 14px; color: var(--fg-mute);
  padding: 8px 0; user-select: none; }
.pack-suggestions summary:hover { color: var(--accent); }
.pack-suggestions .suggestion-carte { margin-top: 8px; }

/* === Footer liens légaux (#716) === */
.site-footer { padding: 24px 16px 40px; margin-top: 32px; text-align: center;
  border-top: 1px solid var(--border); color: var(--fg-mute); font-size: 13px; }
.site-footer p { margin: 0 0 12px; line-height: 1.5; }
.site-footer-liens { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 20px; margin: 0 0 12px; }
.site-footer-alcool { font-size: 11px; }
.site-footer a { font-size: 13px; color: var(--fg-mute); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* === Pages éditoriales mentions / RGPD (#716) === */
.page-edito { max-width: 640px; margin: 32px auto; padding: 0 20px 48px; }
.page-edito h1 { font-size: 24px; margin: 0 0 24px; color: var(--accent); }
.page-edito h2 { font-size: 17px; margin: 24px 0 8px; color: var(--fg); }
.page-edito p { font-size: 15px; line-height: 1.65; color: var(--fg-mute);
  margin: 0 0 12px; }
.page-edito a { color: var(--accent); }

/* === FAQ, accordéon natif <details> (EPCR #1142) === */
.faq-accordeon { margin: 8px 0 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item summary { font-size: 15px; font-weight: 600; color: var(--fg);
  cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 18px;
  color: var(--accent); font-weight: 700; }
.faq-item[open] summary::before { content: "–"; }
.faq-item p { margin: 10px 0 0 18px; }

/* === Chrono annulation client (#720) === */
.wiz-bulle-annul { background: transparent; padding: 0; }
.btn-annuler { background: transparent; border: 1px solid var(--danger);
  color: var(--danger); border-radius: 10px; padding: 10px 18px;
  font-size: 14px; cursor: pointer; width: 100%; transition: background .15s; }
.btn-annuler:hover { background: rgba(var(--accent-rgb),.12); }


/* EPIC #773 — CTA "j'ai une question" dans le wizard */
.wiz-help { text-align: center; margin: 24px 0 12px; }
.wiz-help-lien { color: var(--discret-texte); font-size: 13px; text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--discret-bordure); border-radius: 20px;
  display: inline-block; background: rgba(255,255,255,0.02); }
.wiz-help-lien:hover, .wiz-help-lien:focus { color: var(--accent-contraste); border-color: var(--discret-bordure-survol); }

/* EPIC #773 v2 — chat client PC ↔ le commerçant */
.chat-intro { color: var(--fg-mute); font-size: 13px; line-height: 1.55;
  padding: 8px 0 12px; }
.chat-fil { display: flex; flex-direction: column; gap: 8px;
  max-height: 60vh; overflow-y: auto; padding: 10px 4px;
  background: rgba(0,0,0,0.15); border-radius: 12px; }
.chat-msg { display: flex; padding: 0 8px; }
.chat-msg-in { justify-content: flex-end; }
.chat-msg-out { justify-content: flex-start; }
.chat-bulle { max-width: 82%; padding: 10px 14px; border-radius: 16px;
  line-height: 1.5; word-wrap: break-word; white-space: pre-wrap;
  font-size: 15px; }
.chat-msg-in .chat-bulle { background: var(--accent); color: var(--texte-sur-accent);
  border-bottom-right-radius: 4px; }
.chat-msg-out .chat-bulle { background: var(--bg-card); color: var(--fg);
  border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.chat-form { display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; }
.chat-form textarea { width: 100%; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--fg); font-size: 15px;
  font-family: inherit; resize: vertical; min-height: 60px; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-retour { text-align: center; margin-top: 16px; font-size: 13px; }
.chat-retour a { color: var(--fg-mute); text-decoration: none; }
.chat-retour a:hover { color: var(--fg); }

/* ---------------------------------------------------------------------------
   Bandeau de démonstration ([demo] bandeau) : une ligne discrète en tête de
   chaque page, pour qu'aucun visiteur ne prenne l'instance pour une vraie boutique. */
.bandeau-demo { background: var(--bg-card); color: var(--fg-mute); border-bottom: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.04em; text-align: center; padding: 6px 12px; }

/* Parcours WhatsApp court ([parcours] whatsapp_court) : l'adresse sur le panier. */
.form-coordonnees { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.form-coordonnees label { font-size: 13px; color: var(--fg-mute); }
.form-coordonnees input[type=text], .form-coordonnees select { width: 100%; min-height: 48px;
  padding: 12px 14px; background: var(--bg-card); color: var(--fg); border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; font-size: 16px; }
.form-coordonnees input[type=text]:focus-visible, .form-coordonnees select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-coordonnees .coordonnees-zone { margin: 0 0 4px; font-size: 13px; color: var(--fg-mute); }

/* Lien d'évitement : hors écran jusqu'à ce qu'il prenne le focus clavier. */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 1000; padding: 10px 14px;
  background: #fff; color: #111; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus-visible { top: 8px; outline: 2px solid currentColor; outline-offset: 2px; }
main:focus { outline: none; }

/* Cibles tactiles : les liens du pied de page et des noms de produit ont au moins 24 px de haut. */
.site-footer-liens a, .site-footer-nom a { display: inline-block; padding: 4px 2px; }
.prod-card .nom-lien { display: inline-block; padding: 4px 0; }

/* Mouvement réduit : plus de transition ni d'animation pour qui le demande. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

h1, h2 { text-wrap: balance; }
.home-faq-plus a, .page-edito > p:last-child > a { display: inline-block; padding: 4px 0; }

/* Vacances (VLIV 2354) : le bandeau d'avertissement prend le ton de la fermeture,
   en plus marque pendant les vacances elles-memes. */
.bandeau-vacances { background: linear-gradient(180deg, rgba(var(--accent-rgb),0.28), rgba(var(--accent-rgb),0.12)); font-weight: 600; }
.bandeau-preavis { background: linear-gradient(180deg, rgba(var(--accent-2-rgb),0.14), rgba(var(--accent-2-rgb),0.05)); }
