/* Charte Planet Burger : vert #177852, anis #BCD43E, noir et blanc, police Rethink Sans. */
@font-face { font-family: "Rethink Sans"; src: url(fonts/RethinkSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url(fonts/RethinkSans-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url(fonts/RethinkSans-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url(fonts/RethinkSans-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url(fonts/RethinkSans-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --vert: #177852; --vert-fonce: #0F5A3C; --vert-doux: #E6F2EB; --anis: #BCD43E;
  --fond: #F4F6F2; --fond-alt: #E6EBE4; --encre: #111111; --gris: #5B6660; --trait: #E1E7DF; --danger: #C62F35;
  --ombre: 0 6px 28px rgba(11, 46, 32, .10); --rayon: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Rethink Sans", system-ui, sans-serif; background: var(--fond); color: var(--encre); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.cache { display: none !important; }

/* Boutons */
.btn { border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 17px; background: var(--vert); color: #fff; }
.btn:hover { background: var(--vert-fonce); }
.btn:disabled { background: var(--fond-alt); color: var(--gris); cursor: default; }
.btn.anis { background: var(--anis); color: var(--encre); }
.btn.anis:hover { background: #a9bf33; }
.btn.ghost { background: #fff; color: var(--vert); box-shadow: inset 0 0 0 2px var(--vert); }
.btn.petit { padding: 8px 14px; font-size: 14px; }
.btn.danger { background: var(--danger); }
.lien { background: none; border: 0; color: var(--vert); font-weight: 600; padding: 0; }

/* En-tête du site */
.entete { background: var(--vert); color: #fff; position: sticky; top: 0; z-index: 10; }
.entete .ligne { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.entete img { height: 44px; display: block; }
.entete .infos { margin-left: auto; text-align: right; font-size: 14px; color: #E3F1EA; }
.onglets { max-width: 1100px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.onglets button { flex: none; border: 0; border-radius: 999px; padding: 8px 16px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.onglets button.actif { background: var(--anis); color: var(--encre); }

main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 120px; }
.titre-section { font-size: 26px; font-weight: 800; margin: 8px 0 16px; }

/* Cartes produits */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.produit { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px; text-align: left; border: 0; display: flex; flex-direction: column; gap: 6px; }
.produit img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.produit .nom { font-weight: 700; font-size: 17px; }
.produit .desc { color: var(--gris); font-size: 13px; flex: 1; }
.produit .prix { color: var(--vert); font-weight: 800; font-size: 18px; }
.produit:hover { outline: 2px solid var(--anis); }

/* Fenêtres */
.voile { position: fixed; inset: 0; background: rgba(8, 42, 28, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.fenetre { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 20px 20px 0; }
@media (min-width: 700px) { .voile { align-items: center; } .fenetre { border-radius: 24px; } }
.fenetre .haut { display: flex; gap: 14px; align-items: center; }
.fenetre .haut img { width: 84px; height: 84px; object-fit: contain; }
.fenetre .fermer { margin-left: auto; align-self: flex-start; border: 0; background: var(--fond); border-radius: 50%; width: 36px; height: 36px; font-size: 20px; }
.section { margin-top: 18px; }
.section h3 { font-size: 17px; margin-bottom: 8px; }
.section .regle { color: var(--gris); font-weight: 500; font-size: 13px; margin-left: 6px; }
.choix { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--trait); border-radius: 14px; margin-bottom: 6px; cursor: pointer; }
.choix.coche { border-color: var(--vert); background: var(--vert-doux); }
.choix input { accent-color: var(--vert); width: 18px; height: 18px; }
.choix .sup { margin-left: auto; color: var(--vert); font-weight: 700; font-size: 14px; }
.pied-fenetre { position: sticky; bottom: 0; background: #fff; padding: 14px 0 18px; display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--trait); margin-top: 16px; }
.quantite { display: flex; align-items: center; gap: 10px; }
.quantite button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--vert); background: #fff; color: var(--vert); font-weight: 800; font-size: 18px; }
.quantite span { min-width: 22px; text-align: center; font-weight: 700; }

/* Barre panier */
.barre-panier { position: fixed; left: 0; right: 0; bottom: 0; background: var(--vert); color: #fff; z-index: 15; }
.barre-panier .ligne { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 16px; }
.barre-panier .total { font-size: 22px; font-weight: 800; }

/* Panier et commande */
.carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; margin-bottom: 16px; }
.ligne-panier { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.ligne-panier:last-child { border-bottom: 0; }
.ligne-panier .det { color: var(--gris); font-size: 13px; }
.ligne-panier .montant { margin-left: auto; font-weight: 700; white-space: nowrap; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label { font-weight: 600; font-size: 14px; }
.champ input, .champ select, .champ textarea { border: 2px solid var(--trait); border-radius: 12px; padding: 11px 12px; background: #fff; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); }
.erreur { color: var(--danger); font-weight: 600; margin: 8px 0; }
.note { color: var(--gris); font-size: 13px; }
.pastille { display: inline-block; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; background: var(--vert-doux); color: var(--vert); }
.pastille.anis { background: var(--anis); color: var(--encre); }

/* Confirmation */
.confirmation { text-align: center; }
.confirmation .numero { font-size: 88px; font-weight: 800; color: var(--vert); line-height: 1; margin: 8px 0; }
.etapes-suivi { display: flex; justify-content: center; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.etapes-suivi span { padding: 6px 12px; border-radius: 999px; background: var(--fond-alt); color: var(--gris); font-weight: 600; font-size: 14px; }
.etapes-suivi span.fait { background: var(--vert); color: #fff; }
