/* Carte web Epicerise -- identite Instagram @epicerise_ (nuit, neon, cerise).
   Mobile-first, HTML natif. Aucune regle ici ne depend du JS pour fonctionner. */
/* EPI2 #1255 (demande de Valentin, 1197) : Lobster, police des titres de la
   page d'accueil -- celle qui explique la livraison et les zones. Servie depuis
   le site (licence OFL, fonts/Lobster-OFL.txt), sous-ensemble latin seul :
   accents, apostrophe typographique et euro y sont. */
@font-face {
  font-family: "Lobster"; font-style: normal; font-weight: 400;
  font-display: swap; src: url(/static/carte/fonts/lobster-latin.woff2) format("woff2");
}

:root {
  --bg: #0b0709;
  --bg-rgb: 11, 7, 9;
  --bg-card: #171013;
  --bg-hover: #211318;
  --bordeaux: #5c1120;
  /* EPCR #1196 : cerise et neon convergent sur #A9042F, la couleur exacte du
     logo de Valentin (mesuree sur logo-header.webp) -- avant, deux rouges
     distincts (cerise #d7263d, neon #ff2e78) juraient avec le logo. */
  --cerise: #a9042f;
  --cerise-dim: #800323;
  --neon: #a9042f;
  --neon-dim: #800323;
  --neon-cyan: #23e6d1;
  --jaune: #ffd23f;
  --fg: #eae2e4;
  --fg-mute: #8c7a7e;
  --border: #2a171c;
  --radius: 8px;
  --rupture: #4a3a3d;
  --font-marque: "Permanent Marker", cursive;
  --font-titre: "Archivo Black", "Arial Narrow", sans-serif;
  --font-livraison: "Lobster", "Permanent Marker", cursive;
  /* 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 system-ui, -apple-system, sans-serif; min-height: 100vh; }

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

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(--font-marque); font-weight: 400;
  letter-spacing: 0.5px; font-size: 20px; text-shadow: 0 0 10px rgba(169,4,47,0.35); }
header.top .marque .cerise { color: var(--neon); }
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(--cerise); font-weight: bold; margin-left: 4px; }
/* EPI2 #1784 : le panier en jaune, texte quasi-noir (~14:1), pour qu'on le
   trouve d'un coup d'oeil et que le site paraisse moins sombre. */
header.top a.panier-lien { background: var(--jaune); border-color: var(--jaune);
  color: var(--bg); font-weight: 800; font-size: 14px; }
header.top a.panier-lien .caddie { font-size: 20px; line-height: 1; }
header.top a.panier-lien .n { color: var(--bg); margin-left: 6px; }

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

h1 { font-family: var(--font-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) -- #A9042F est sombre, un texte
   quasi-noir dessus tombe a 2,6:1 de contraste (sous les 4,5:1 requis). */
nav.cat-nav a.actif { color: var(--fg); background: var(--neon);
  border-color: var(--neon); box-shadow: 0 0 12px rgba(169,4,47,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 { min-width: min(290px, calc(100vw - 28px)); }
.menu-cats-liste, .menu-infos { display: flex; flex-direction: column; gap: 6px; }
.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);
  display: flex; align-items: center; gap: 10px; }
/* EPI2 #1782 : l'icone devant chaque entree, dans une colonne de largeur fixe
   pour que les libelles restent alignes. */
.menu-icone { width: 1.4em; text-align: center; flex-shrink: 0; }
.menu-separateur { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }
.menu-infos a { background: transparent; }
.menu-cats-panel a:hover, .menu-cats-panel a:active { color: var(--fg); background: var(--neon);
  border-color: var(--neon); }

/* ---------- 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(169,4,47,0.14), rgba(169,4,47,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(35,230,209,0.14), rgba(35,230,209,0.05)); }

/* ---------- BANDEAU VACANCES (EPCR #1993) ----------
   En cours : le plus imposant de la page, couleur pleine du logo. Preavis
   (une semaine avant) : une ligne sobre, de la famille du bandeau fermeture. */
.bandeau-vacances { display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; line-height: 1.4; border-bottom: 1px solid var(--border); }
.bandeau-vacances .icone { flex-shrink: 0; }
.bandeau-vacances .texte { flex: 1; }
.bandeau-vacances-en_cours { background: var(--cerise); color: #fff;
  font-size: 17px; font-weight: 700; padding: 22px 18px; text-align: center;
  justify-content: center; flex-direction: column; gap: 6px; }
.bandeau-vacances-en_cours .icone { font-size: 30px; }
.bandeau-vacances-preavis { background: rgba(255,210,63,0.12); color: var(--fg);
  font-size: 13px; }
.bandeau-vacances-preavis .icone { font-size: 18px; }

/* ---------- 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(169,4,47,0.22), rgba(169,4,47,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; }
.gate .marque .cerise { color: var(--cerise); }
/* EPI2 #1619 : le logo du bandeau a la place du mot « épicerise ». */
.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(--cerise); color: #fff; border-color: var(--cerise); }
.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; }
/* EPCR #1993 (Valentin, maquette du 02/10) : la porte sur fond blanc, logo
   cerise, « Moins de 18 ans » en bouton sombre plein. Seule page claire de la
   boutique : la classe vient de porte18.html (bloc body_class). */
html:has(body.page-claire), body.page-claire { background: #fff; color: #1d1d1f; }
body.page-claire .gate p { color: #3a3a3c; }
body.page-claire .gate .mention { color: #6e6e73; }
body.page-claire .gate button.non { background: #1c1f2b; color: #fff; border-color: #1c1f2b; }

/* ---------- 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: #000; overflow: hidden; width: 100%; }
.prod-card .foto-tuile { border-radius: 0; padding: 0; width: 100%; height: 100%;
  background: #000; 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(--cerise); 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(--bordeaux);
  color: var(--fg); border: 1px solid var(--cerise-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(--cerise-dim); }

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

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

/* ---------- ERREUR / INDISPONIBLE ---------- */
.erreur { background: var(--bg-card); border: 1px solid var(--cerise);
  color: var(--cerise); 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(--cerise); 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(--jaune); color: var(--bg);
  text-decoration: none; padding: 14px 18px; border-radius: 999px;
  font-weight: 800; font-size: 15px; min-height: 48px;
  box-shadow: 0 4px 18px rgba(255,210,63,0.35); }
.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(--neon-cyan);
  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(--cerise); flex-shrink: 0; }
.option label { flex: 1; display: flex; justify-content: space-between; gap: 10px;
  cursor: pointer; }
.option .nom-opt { font-size: 15px; }
/* EPI2 #1781 : la photo du produit devant chaque choix de pack (composer et
   choix de bouteille). Fond sombre + contain : les photos sont sur fond blanc
   ou detourees, jamais recadrees. */
.vignette-opt { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0;
  border-radius: 6px; background: var(--bg-hover); padding: 3px; }
.option label { align-items: center; }
.option label .nom-opt { flex: 1; }
.option .fmt-opt { color: var(--fg-mute); font-size: 12px; }
.option .supplement { font-size: 13px; font-weight: bold; color: var(--cerise);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.option .supplement.inclus { color: var(--fg-mute); font-weight: normal; }

/* EPI2 #1781 (Valentin) : la composition d'un pack comme une borne -- des
   vignettes par trois, la selection encadree en rouge. Le radio reste dans le
   DOM (clavier, lecteur d'ecran, `required`) mais invisible : c'est la
   vignette entiere qui se touche. */
.composer-borne fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.composer-borne legend.titre { padding: 0; display: flex; align-items: center; gap: 10px;
  font-size: 17px; }
/* EPCR #1842 : le numero d'etape, pastille du meme rouge que la vignette choisie. */
.composer-borne .etape-num { flex-shrink: 0; display: inline-flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: #e3163f; color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 10px rgba(227, 22, 63, 0.45); }
.choix-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.composer-borne .option { display: block; padding: 0; margin: 0; min-height: 0;
  background: none; border: 0; position: relative; }
.composer-borne .option input.tuile-radio { position: absolute; opacity: 0;
  width: 1px; height: 1px; margin: 0; pointer-events: none; }
.composer-borne .option label.tuile { display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 6px; height: 100%;
  padding: 8px 6px 10px; text-align: center; cursor: pointer;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.composer-borne .tuile-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  border-radius: 8px; background: var(--bg-hover); padding: 4px; }
.composer-borne .option .nom-opt { flex: 0 1 auto; font-size: 13px; font-weight: 600;
  line-height: 1.25; overflow-wrap: anywhere; }
.composer-borne .option .fmt-opt { display: block; font-weight: normal; }
.composer-borne .option .supplement { margin-top: auto; font-size: 13px; }
.composer-borne input.tuile-radio:checked + label.tuile { border-color: #e3163f;
  box-shadow: 0 0 0 1px #e3163f, 0 0 14px rgba(227, 22, 63, 0.45); }
.composer-borne input.tuile-radio:focus-visible + label.tuile { outline: 2px solid var(--fg);
  outline-offset: 2px; }
.composer-borne .btn-principal { margin-top: 4px; }
/* EPCR #1888 : le choix oublie, dit dans son bloc -- iPhone n'affiche pas la
   bulle du navigateur. Rouge de la borne, texte lisible, bloc encadre. */
.composer-borne fieldset.manquant { outline: 2px solid #e3163f; outline-offset: 6px;
  border-radius: var(--radius); scroll-margin-top: 120px; }
.composer-borne .choix-manquant { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(227, 22, 63, 0.16); border: 1px solid #e3163f; color: var(--fg);
  font-size: 14px; font-weight: 700; }
.composer-borne .manque-resume { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(227, 22, 63, 0.16); border: 1px solid #e3163f; color: var(--fg);
  font-size: 14px; font-weight: 600; }
.composer-borne [hidden] { display: none !important; }

.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(--cerise);
  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(--cerise); color: #fff;
  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(169, 4, 47, 0.32); }
a.btn-principal { display: block; }
.btn-principal:hover, .btn-principal:active { background: var(--cerise-dim);
  box-shadow: 0 4px 14px rgba(169, 4, 47, 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(--bordeaux); color: var(--fg);
  border-color: var(--cerise-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(--cerise-dim); }

/* ---------- 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: #000; 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(--cerise);
  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; }

.total-box { background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--cerise-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(--cerise);
  font-variant-numeric: tabular-nums; }
.paiement-livraison { text-align: center; font-weight: 700; margin: 0 0 12px; }

/* ---------- LIVRAISON GRATUITE (EPI2 #1783) ----------
   Jaune demande par Valentin, pour eclairer un site juge trop sombre.
   Bandeau : texte quasi-noir sur #ffd23f (~14:1). Mention seule : jaune sur
   le fond sombre (~12:1). */
.bandeau-livraison { margin: 0; background: var(--jaune); color: var(--bg);
  text-align: center; font-weight: 800; font-size: 14px; letter-spacing: 0.3px;
  padding: 6px 12px; }
.livraison-gratuite { color: var(--jaune); font-weight: 800; }
p.livraison-gratuite { text-align: center; margin: 0 0 6px; font-size: 16px; }

.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(--cerise); 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(169, 4, 47, 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(169, 4, 47, 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; }
/* Lobster est une ecriture liee, dessinee pour les minuscules : les majuscules
   et l'espacement herites de h1/h2 en cassent les liaisons (#1255). */
.home-section h2 { font-family: var(--font-livraison); 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(--font-livraison); 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(--font-titre); color: var(--neon); }
.home-etapes li strong { color: var(--neon); }
.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(--neon); color: var(--neon); }
.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(--neon); 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(--neon); }
.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(--cerise);
  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(--neon);
  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 Epicerise. */
.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(169, 4, 47, 0.32); }
.wiz-titre { font-family: var(--font-marque); font-size: 22px;
  color: var(--fg);
  text-shadow: 0 0 12px rgba(169, 4, 47, 0.4); }
/* EPI2 #1677 : le logo du bandeau a la place du mot « Épicerise ». */
.wiz-entete .marque-logo { height: 44px; width: auto; max-width: 60%; object-fit: contain; display: block; }
.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(--cerise); color: var(--fg);
  border-bottom-right-radius: 4px; }
.wiz-bulle-ok { background: rgba(35, 230, 209, 0.14) !important;
  border: 1px solid rgba(35, 230, 209, 0.4);
  color: var(--fg); }
.wiz-bulle em { color: var(--fg-mute); }
.wiz-erreur { background: rgba(169, 4, 47, 0.14);
  border: 1px solid var(--cerise); color: var(--fg);
  padding: 10px 14px; border-radius: 12px; font-size: 14px;
  margin-bottom: 12px; }
.wiz-erreur a { color: var(--neon); }
/* 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(169,4,47,0.14), rgba(169,4,47,0.06));
  border: 1px solid rgba(169,4,47,0.35); color: var(--fg);
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  line-height: 1.45; margin-bottom: 12px; }
/* EPCR #1847 : « Compléter mon panier », au-dessus du formulaire de l'etape 3. */
.wiz-completer { margin-top: 8px; }
.wiz-form-titre { margin: 0; font-size: 14px; color: var(--fg-mute); }
.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(--neon);
  box-shadow: 0 0 0 3px rgba(169, 4, 47, 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 cerise doux. */
.wiz-suggestions .btn-suggestion { width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--cerise-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(--cerise); }
.wiz-suggestions .btn-suggestion:hover, .wiz-suggestions .btn-suggestion:active
  { background: var(--bg-hover); border-color: var(--cerise); }

/* Bulles post-validation (task EPIC #610, iter 3 de #598). */
.wiz-bulle-attente { background: rgba(169, 4, 47, 0.10) !important;
  border: 1px solid rgba(169, 4, 47, 0.35);
  color: var(--fg); }
.wiz-bulle-refus { background: rgba(169, 4, 47, 0.15) !important;
  border: 1px solid var(--cerise); 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(--cerise); }

.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: #151013; 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(--cerise);
  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(--cerise); 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 en rouge cerise (David 15/09/2026 retour #651) — mobile + PC. */
.pack-option { display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--cerise); background: var(--cerise);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 10px;
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(169, 4, 47, 0.32);
  transition: background .15s ease, box-shadow .15s ease; }
.pack-option:hover, .pack-option:focus { background: var(--cerise-dim);
  box-shadow: 0 4px 14px rgba(169, 4, 47, 0.42); }
.pack-option:active { transform: translateY(1px); }
.pack-option-nom { font-size: 16px; font-weight: 700; color: #fff; }
.pack-option-desc { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
/* EPI2 #1198 -- Valentin : 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(255, 255, 255, 0.72); text-transform: uppercase; letter-spacing: .04em; }
.pack-formules .pack-option-desc { font-size: 18px; font-weight: 700;
  color: #fff; 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: #fff; }
/* 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(--cerise); background: var(--bg-card-hover, #241a1c); }
.pack-option-radio input[type=radio] { accent-color: var(--cerise); 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(--cerise); 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(--cerise); }
.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(--cerise); }

/* === 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(--cerise); }
.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(--cerise); }

/* === FAQ, accordéon natif <details> (EPCR #1142) === */
.faq-accordeon { margin: 8px 0 24px; }
.faq-item { border-bottom: 1px solid var(--border, #2a2226); 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(--cerise); 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(--cerise);
  color: var(--cerise); border-radius: 10px; padding: 10px 18px;
  font-size: 14px; cursor: pointer; width: 100%; transition: background .15s; }
.btn-annuler:hover { background: rgba(169,4,47,.12); }


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

/* EPIC #773 v2 — chat client PC ↔ Valentin */
.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(--cerise); color: var(--fg);
  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(--cerise); }
.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); }

/* ---------- AVANTAGES (EPI2 #1786) ----------
   Trois cellules cote a cote meme a 390 px, qui ressortent en jaune (demande
   de Valentin) : bordure, icone et titre en --jaune sur la carte sombre
   (~12:1), le detail en --fg. */
.avantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 2px 0 18px; }
.avantage { background: var(--bg-card); border: 2px solid var(--jaune);
  border-radius: 12px; padding: 12px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avantage svg { width: 28px; height: 28px; fill: none; stroke: var(--jaune);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.avantage-titre { margin: 0; color: var(--jaune); font-weight: 800;
  font-size: 13px; line-height: 1.25; }
.avantage-detail { margin: 0; color: var(--fg); font-size: 12px; line-height: 1.25; }
@media (min-width: 600px) {
  .avantage { padding: 16px 10px; }
  .avantage-titre { font-size: 15px; }
  .avantage-detail { font-size: 13px; }
}
.home-avantages { margin-top: 8px; }

/* ---------- ZONES EN VIGNETTES (EPI2 #1787) ----------
   Le rouge du logo (#a9042f = 169,4,47) a une opacite qui baisse d'un palier
   a l'autre (--a, pose par le gabarit) : sur le fond de nuit, la vignette
   fonce a mesure que le minimum monte. Texte blanc : >= 7:1 a --a = 0.95,
   davantage en dessous. */
.zone-vignette { display: flex; align-items: center; gap: 14px;
  background: rgba(169, 4, 47, var(--a, 0.8)); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 14px; margin: 0 0 10px; color: #fff; }
.zone-min { margin: 0; flex: 0 0 64px; display: flex; flex-direction: column;
  padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, 0.22); }
.zone-montant { font-family: var(--font-titre); font-size: 24px; line-height: 1.1; white-space: nowrap; }
.zone-min-lbl { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; }
.zone-communes { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.zone-re { display: block; }
.zone-re-titre { font-family: var(--font-livraison); font-size: 24px; margin: 0 0 8px; }
.zone-re-ligne { display: flex; gap: 14px; align-items: baseline; margin: 0 0 6px; }
.zone-re-montant { font-family: var(--font-titre); font-size: 18px; flex: 0 0 64px; white-space: nowrap; }
