[hidden] { display: none !important; }
:root {
  --vert: #0f5132; --or: #f5a524;
  --vert-clair: color-mix(in srgb, var(--vert) 9%, #fff);
  --vert-moyen: color-mix(in srgb, var(--vert) 75%, #fff);
  --encre: #18201c; --gris: #5f6b65; --ligne: #e3e9e6; --fond: #f5f7f6; --blanc: #fff;
  --rouge: #c0392b; --orange: #b86e00; --rayon: 16px;
  --ombre: 0 1px 2px rgba(16,24,20,.05), 0 4px 14px rgba(16,24,20,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--encre);
  background: var(--fond); line-height: 1.45; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -0.22em; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--vert); color: #fff; padding: 10px 16px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.entete-int { max-width: 1080px; margin: 0 auto; }
.entete-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; min-width: 0; }
.logo span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--or); color: var(--vert); display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.logo-img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.entete-actions { display: flex; align-items: center; gap: 6px; }
.rond { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.rond .ico { width: 19px; height: 19px; }
.btn-installer { display: inline-flex; gap: 6px; align-items: center; background: var(--or); color: var(--vert); border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: .8rem; }
.recherche { display: flex; background: #fff; border-radius: 12px; overflow: hidden; color: var(--encre); }
.recherche select { border: 0; background: var(--vert-clair); color: var(--vert); font-weight: 700; padding: 0 8px; max-width: 34%; font-size: .85rem; width: auto; }
.recherche input { flex: 1; min-width: 0; border: 0; padding: 11px 10px; outline: none; }
.recherche button { border: 0; background: var(--or); color: var(--vert); padding: 0 14px; display: grid; place-items: center; }

.contenu { max-width: 1080px; margin: 0 auto; padding: 16px 16px 28px; }
.titre-page { font-size: 1.4rem; margin: 6px 0 12px; letter-spacing: -.01em; }
.titre-ico { display: flex; align-items: center; gap: 10px; }
.titre-section { font-size: 1.12rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.titre-section small { color: var(--gris); font-weight: 500; }
.ico-promo { color: #e4572e; } .ico-nouveau { color: var(--or); }
.resume, .aide { color: var(--gris); font-size: .9rem; }
.fil { font-size: .82rem; color: var(--gris); margin-bottom: 4px; }
.fil a { color: var(--vert); font-weight: 600; }
.vide { color: var(--gris); padding: 24px 0 12px; }
.pastille-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--vert-clair); color: var(--vert); display: inline-grid; place-items: center; flex-shrink: 0; }
.pastille-ico .ico { width: 22px; height: 22px; }
.pastille-ico.petite { width: 30px; height: 30px; border-radius: 9px; }
.pastille-ico.petite .ico { width: 17px; height: 17px; }

/* Messages */
.messages { max-width: 1080px; margin: 10px auto 0; padding: 0 16px; }
.msg { padding: 11px 13px; border-radius: 12px; margin-bottom: 8px; font-size: .92rem; background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.msg-error { background: #fdecea; color: #8e2a1f; }
.msg-warning { background: #fff4d6; color: #7a5800; }
.ferme { background: #3b2a00; color: #ffe08a; text-align: center; padding: 10px 16px; font-weight: 700; font-size: .92rem; display: flex; gap: 8px; justify-content: center; align-items: center; }

/* Accueil */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--vert), color-mix(in srgb, var(--vert) 70%, #000));
  color: #fff; border-radius: 20px; padding: 22px 20px; display: flex; align-items: center; gap: 12px; }
.hero-texte { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; }
.hero p { margin: 0 0 14px; opacity: .9; font-size: .95rem; }
.hero-deco { position: absolute; right: -18px; bottom: -22px; color: var(--or); opacity: .22; }
.hero-deco .ico { width: 150px; height: 150px; }
@media (min-width: 760px) { .hero { padding: 36px; } .hero h1 { font-size: 2rem; } .hero-deco { right: 30px; bottom: -10px; opacity: .35; } .hero-deco .ico { width: 190px; height: 190px; } }
.atouts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.atouts li { background: #fff; border-radius: 14px; box-shadow: var(--ombre); padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--gris); }
.atouts li .ico { width: 22px; height: 22px; color: var(--vert); }
.atouts b { display: block; color: var(--encre); font-size: .84rem; }
@media (min-width: 640px) { .atouts li { flex-direction: row; align-items: center; padding: 12px 14px; font-size: .85rem; } .atouts li .ico { width: 28px; height: 28px; } }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tuile { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.tuile:hover, .tuile:active { border-color: var(--or); transform: translateY(-1px); }
.tuile-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; }
.tuile-ico .ico { width: 26px; height: 26px; }
.tuile-nom { font-weight: 800; font-size: 1rem; }
.tuile-sous { color: var(--gris); font-size: .78rem; line-height: 1.3; }
.etapes-achat ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .etapes-achat ol { grid-template-columns: repeat(3, 1fr); } }
.etapes-achat li { display: flex; gap: 12px; background: #fff; border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); font-size: .9rem; color: var(--gris); }
.etapes-achat li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--or); color: var(--vert); font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.etapes-achat b { display: block; color: var(--encre); }

/* Cartes articles */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.defile { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.defile::-webkit-scrollbar { display: none; }
.defile > * { scroll-snap-align: start; }
@media (min-width: 700px) { .defile { grid-auto-columns: 200px; } }
.carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.carte-photo { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, var(--vert-clair), #fff); display: grid; place-items: center; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-vide { color: var(--vert-moyen); display: grid; place-items: center; }
.photo-vide .ico { width: 54px; height: 54px; stroke-width: 1.5; }
.photo-vide.grande .ico { width: 110px; height: 110px; stroke-width: 1.2; }
.photo-vide.petite .ico { width: 28px; height: 28px; }
.pastille { position: absolute; top: 8px; left: 8px; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.pastille.promo { background: #e4572e; color: #fff; }
.pastille.nouveau { background: var(--or); color: var(--vert); }
.carte-corps { padding: 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.carte-nom { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.carte-format { color: var(--gris); font-size: .8rem; }
.prix { font-weight: 800; color: var(--vert); margin-top: auto; padding-top: 4px; }
.prix s { color: var(--gris); font-weight: 500; font-size: .82em; }
.prix.grand { font-size: 1.6rem; }
.rupture { color: var(--gris); background: var(--fond); border-radius: 10px; padding: 8px; text-align: center; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.alerte { color: var(--orange); font-weight: 700; font-size: .9rem; }

/* Quantité */
.quantite { margin-top: 6px; }
.q-pas, .lp-actions { display: flex; align-items: center; gap: 8px; }
.q-pas { justify-content: space-between; background: var(--vert-clair); border-radius: 11px; padding: 3px; }
.q-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--vert); color: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.q-btn:disabled { opacity: .35; }
.q-val { min-width: 24px; text-align: center; font-weight: 800; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; padding: 11px 16px; font-weight: 800; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn .ico { width: 18px; height: 18px; }
.btn-ajouter { width: 100%; background: var(--vert); color: #fff; padding: 9px; }
.btn-plein { background: var(--vert); color: #fff; }
.btn-accent { background: var(--or); color: var(--vert); }
.btn-contour { background: #fff; color: var(--vert); border-color: var(--vert); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn.large { width: 100%; padding: 14px; font-size: 1.05rem; margin-top: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.actions-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Catégorie */
.onglets { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; margin: 0 -16px 10px; scrollbar-width: none; }
.onglets a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); font-weight: 700; font-size: .88rem; }
.onglets a.actif { background: var(--vert); color: #fff; border-color: var(--vert); }
.filtres { background: #fff; border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--ombre); }
.filtres summary { font-weight: 800; cursor: pointer; color: var(--vert); }
.filtres form { display: grid; gap: 10px; margin-top: 10px; }
.filtres label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.filtres .coche { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.ligne-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type=number], input[type=text], input[type=search], input[type=tel], select, textarea { width: 100%; }
.filtres input, .filtres select, .formulaire input, .formulaire select, .formulaire textarea { border: 1px solid #d3dbd7; border-radius: 11px; padding: 11px; background: #fff; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--or); border-color: var(--vert); }

/* Fiche */
.fiche { display: grid; gap: 16px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--ombre); }
.fiche-photo { background: linear-gradient(160deg, var(--vert-clair), #fff); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.fiche h1 { margin: 0; font-size: 1.45rem; }
.description { color: #3c4541; }
@media (min-width: 760px) { .fiche { grid-template-columns: 1fr 1fr; padding: 20px; } }

/* Panier */
.liste-panier, .liste-commandes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: var(--rayon); padding: 10px; box-shadow: var(--ombre); }
.lp-photo { width: 64px; height: 64px; border-radius: 12px; background: var(--vert-clair); display: grid; place-items: center; overflow: hidden; }
.lp-infos { display: grid; gap: 4px; min-width: 0; }
.lp-actions .q-btn { width: 32px; height: 32px; }
.lien-retirer { background: none; border: 0; color: var(--rouge); font-size: .82rem; font-weight: 700; padding: 4px; cursor: pointer; }
.lp-total { color: var(--vert); white-space: nowrap; }
.recap { background: #fff; border-radius: var(--rayon); padding: 12px 14px; margin-top: 14px; box-shadow: var(--ombre); display: grid; gap: 8px; }
.recap > div { display: flex; justify-content: space-between; gap: 10px; }
.recap .discret { color: var(--gris); font-size: .88rem; }
.recap .total { border-top: 1px dashed var(--ligne); padding-top: 8px; font-size: 1.12rem; color: var(--vert); }

/* Formulaire de commande */
.formulaire fieldset { border: 0; background: #fff; border-radius: var(--rayon); padding: 14px; margin: 0 0 12px; box-shadow: var(--ombre); display: grid; gap: 12px; }
.formulaire legend { font-weight: 800; color: var(--vert); padding: 0; float: left; width: 100%; margin-bottom: 2px; }
.champ { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; }
.champ small { color: var(--gris); font-weight: 400; }
.champ.erreur input, .champ.erreur select { border-color: var(--rouge); }
.err { color: var(--rouge); font-size: .82rem; font-weight: 600; }
.paiements { display: grid; gap: 8px; }
.option-paiement { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; border: 2px solid var(--ligne); border-radius: 13px; padding: 11px 12px; cursor: pointer; font-weight: 700; }
.option-paiement:has(input:checked) { border-color: var(--vert); background: var(--vert-clair); }
.option-paiement small { grid-column: 2; color: var(--gris); font-weight: 400; }
.option-paiement input { margin-top: 3px; accent-color: var(--vert); width: auto; }
.offerte { color: var(--vert); font-weight: 800; }

/* Suivi */
.succes { text-align: center; background: #fff; border-radius: 20px; padding: 22px 16px; box-shadow: var(--ombre); }
.succes-ico { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; }
.succes-ico .ico { width: 32px; height: 32px; stroke-width: 3; }
.succes h1 { margin: 0 0 4px; font-size: 1.3rem; }
.etapes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; counter-reset: e; }
.etapes li { position: relative; padding: 0 0 18px 40px; color: var(--gris); counter-increment: e; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ligne); color: var(--gris); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--ligne); }
.etapes li.fait { color: var(--encre); }
.etapes li.fait::before { content: "✓"; background: var(--vert); color: #fff; }
.etapes li.fait::after { background: var(--vert); }
.etapes li.en-cours { color: var(--vert); font-weight: 800; }
.etapes li.en-cours::before { background: var(--or); color: var(--vert); }
.liste-commandes a { display: grid; gap: 4px; background: #fff; border-radius: var(--rayon); padding: 12px 14px; box-shadow: var(--ombre); }
.statut { font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--vert-clair); color: var(--vert); margin-left: 6px; }
.statut-annulee { background: #fdecea; color: var(--rouge); }
.statut-livree { background: var(--vert); color: #fff; }

/* Pied de page */
.pied { background: color-mix(in srgb, var(--vert) 92%, #000); color: rgba(255,255,255,.82); margin-top: 20px; font-size: .88rem; }
.pied-int { max-width: 1080px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 14px; }
.pied-marque { display: flex; gap: 10px; align-items: center; }
.pied-marque strong { display: block; color: #fff; font-size: 1.05rem; }
.pied-marque span { font-size: .82rem; }
.pied-infos { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.pied-infos li { display: flex; gap: 8px; align-items: center; }
.pied-infos .ico { color: var(--or); width: 17px; height: 17px; }
.pied-infos a { color: #fff; font-weight: 600; }
.pied-reseaux { display: flex; gap: 8px; }
.pied-reseaux a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.pied-reseaux a.txt { width: auto; padding: 0 12px; border-radius: 999px; }
.pied-copy { margin: 0; font-size: .78rem; opacity: .6; }
@media (min-width: 760px) { .pied-int { grid-template-columns: 1.2fr 1fr auto; align-items: start; } .pied-copy { grid-column: 1 / -1; } }

/* Barre du bas */
.barre-bas { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--ligne); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.barre-bas a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: .72rem; font-weight: 700; color: var(--gris); }
.barre-bas .ico { width: 23px; height: 23px; }
.barre-bas a.actif { color: var(--vert); }
.ico-panier { position: relative; display: inline-flex; }
.ico-panier b { position: absolute; top: -6px; right: -11px; background: #e4572e; color: #fff; font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* Page de discussion plein écran */
body.mode-discussion .pied, body.mode-discussion .entete, body.mode-discussion .barre-bas { display: none; }
body.mode-discussion .contenu { max-width: 820px; padding: 0; }
body.mode-discussion .page-discussion { height: 100dvh; }
body.mode-discussion { padding-bottom: 0 !important; }
@media (min-width: 820px) { body.mode-discussion .page-discussion { border-left: 1px solid var(--ligne); border-right: 1px solid var(--ligne); } }
