/* La Sénégalaise : site public. Couleurs tirées du logo. */
:root {
  --vert: #1d6b38; --vert-fonce: #134a27; --jaune: #f2b91c; --rouge: #b8262c; --brun: #3b2314;
  --creme: #fbf6ec; --papier: #fffdf8; --gris: #6f6359; --trait: #e7dccb;
  --titre: Georgia, "Times New Roman", serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bas: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font: 16px/1.5 var(--texte); color: var(--brun); background: var(--creme); padding-bottom: calc(64px + var(--bas)); }
body.fige { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--vert); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.05rem; font-family: var(--texte); font-weight: 650; }
main { max-width: 980px; margin: 0 auto; padding: 0 16px 24px; }
[hidden] { display: none !important; }

.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: rgba(251,246,236,.96);
  border-bottom: 1px solid var(--trait); backdrop-filter: blur(6px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brun); font-family: var(--titre); font-size: 1.25rem; font-weight: 700; }
.marque img { border-radius: 50%; }
.nav-haut { display: none; gap: 20px; }
.nav-haut a { text-decoration: none; color: var(--brun); font-weight: 600; padding: 6px 0; }
.nav-haut a.actif { color: var(--vert); border-bottom: 2px solid var(--vert); }

.onglets { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: var(--papier);
  border-top: 1px solid var(--trait); padding-bottom: var(--bas); }
.onglets a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .74rem;
  text-decoration: none; color: var(--gris); position: relative; }
.onglets a.actif { color: var(--vert); font-weight: 650; }
.ic { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ic-maison { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ic-carte { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 3h14v18H5zM9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.ic-sac { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 8h14l-1 13H6zM9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.ic-agenda { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 5h16v16H4zM4 10h16M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.pastille { position: absolute; top: 3px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge);
  color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }

.hero { position: relative; margin: 0 -16px; min-height: 76vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,15,6,.92) 30%, rgba(30,15,6,.25)); }
.hero-texte { position: relative; padding: 24px 20px 32px; width: 100%; }
.hero-logo { width: 104px; height: 104px; border-radius: 50%; border: 3px solid #fff; margin-bottom: 12px; }
.hero h1 { font-size: 2.4rem; color: #fff; }
.slogan { font-family: var(--titre); font-style: italic; font-size: 1.15rem; margin: 0 0 8px; color: #fbe7b0; }
.hero-infos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; font-size: .95rem; opacity: .95; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.bouton { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 1rem var(--texte); text-decoration: none; cursor: pointer; }
.hero .bouton { color: #fff; }
.bouton.principal { background: var(--vert); border-color: var(--vert); color: #fff; }
.bouton.large { width: 100%; }
.bouton:disabled { opacity: .6; }

.bloc { padding: 32px 0 8px; }
.vedettes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vedette { background: var(--papier); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--brun); border: 1px solid var(--trait); }
.vedette img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.vedette-nom { display: block; padding: 8px 10px 0; font-weight: 650; }
.vedette-prix { display: block; padding: 0 10px 10px; color: var(--vert); font-weight: 700; }
.centre { text-align: center; }
.lien { font-weight: 650; }
.deux-colonnes { display: grid; gap: 16px; }
.photo-salle { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.adresse-bloc { font-weight: 600; }

.titre-page { margin: 20px 0 8px; }
.intro { color: var(--gris); margin-top: 0; }
.rubriques { position: sticky; top: 60px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px;
  padding-left: 16px; background: var(--creme); scrollbar-width: none; }
.rubriques::-webkit-scrollbar { display: none; }
.rubriques a { flex: none; padding: 7px 14px; border-radius: 20px; background: var(--papier); border: 1px solid var(--trait);
  color: var(--brun); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.rubrique { padding-top: 14px; }
.rubrique h2 { border-bottom: 2px solid var(--jaune); padding-bottom: 4px; display: inline-block; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plat { display: flex; gap: 12px; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: 10px; }
.plat-photo { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: none; }
.plat-texte { flex: 1; min-width: 0; }
.plat-ligne { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.plat-ligne h3 { margin: 0; }
.prix { font-weight: 700; color: var(--vert); white-space: nowrap; }
.plat-desc { margin: 4px 0 0; color: var(--gris); font-size: .92rem; }
.plat-choix { margin: 4px 0 0; font-size: .85rem; color: var(--gris); }
.plat.epuise { opacity: .55; }
.badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 650; background: #eee3d2; }
.badge.vert { background: #dcefe1; color: var(--vert-fonce); } .badge.jaune { background: #fdf0c8; } .badge.rouge { background: #f7dcdc; color: var(--rouge); }
.bandeau-table { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--vert); color: #fff; }
.note-prix { color: var(--gris); font-size: .9rem; }
.bas-carte { position: sticky; bottom: calc(70px + var(--bas)); padding-top: 8px; }
.ajouter { margin-top: 8px; min-height: 40px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--vert); color: #fff; font: 600 .95rem var(--texte); cursor: pointer; }
.chargement { color: var(--gris); }

.barre-panier { position: fixed; left: 12px; right: 12px; bottom: calc(70px + var(--bas)); z-index: 25; display: flex; justify-content: space-between;
  align-items: center; gap: 8px; min-height: 54px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--brun); color: #fff;
  font: 600 1rem var(--texte); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.feuille { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.feuille-fond { position: absolute; inset: 0; background: rgba(20,10,4,.5); }
.feuille-corps { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--papier);
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + var(--bas)); }
.feuille-corps.haute { max-height: 94vh; }
.feuille-corps img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.fermer { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #efe6d8; font-size: 1.5rem; cursor: pointer; }
.groupe { border: 0; padding: 0; margin: 14px 0; }
.groupe legend { font-weight: 700; margin-bottom: 6px; }
.groupe small { color: var(--rouge); font-weight: 600; }
.option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--trait); border-radius: 10px; margin-bottom: 6px; }
.option input { width: 20px; height: 20px; accent-color: var(--vert); }
.option span { flex: 1; } .option em { font-style: normal; color: var(--gris); }
.champ { display: block; margin: 12px 0; font-weight: 600; font-size: .95rem; }
.champ input, .champ select, .champ textarea { display: block; width: 100%; margin-top: 5px; padding: 12px; border: 1px solid #d7c9b3; border-radius: 10px;
  font: 16px var(--texte); background: #fff; color: var(--brun); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quantite { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0; font-size: 1.2rem; font-weight: 700; }
.quantite button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--vert); background: #fff; color: var(--vert); font-size: 1.4rem; cursor: pointer; }
.quantite.petite { gap: 10px; margin: 0; font-size: 1rem; }
.quantite.petite button { width: 32px; height: 32px; font-size: 1.1rem; }
.panier-lignes { list-style: none; padding: 0; margin: 10px 0; }
.panier-lignes li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.panier-lignes li > div:first-child { flex: 1; }
.panier-lignes small { display: block; color: var(--gris); }
fieldset.choix-mode, fieldset.choix-paiement { border: 0; padding: 0; margin: 14px 0; }
fieldset legend { font-weight: 700; margin-bottom: 6px; }
.choix-mode label, .choix-paiement label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--trait); border-radius: 10px; margin-bottom: 6px; }
.choix-mode input, .choix-paiement input { width: 20px; height: 20px; accent-color: var(--vert); }
.encadre-paiement { padding: 4px 14px; border-radius: 12px; background: #fdf3d6; }
.aide { color: var(--gris); font-size: .9rem; }
.total-ligne { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-size: 1.15rem; }
.erreur { color: var(--rouge); font-weight: 600; }
.ok { color: var(--vert); font-weight: 700; }
.alerte { padding: 12px 14px; border-radius: 12px; background: #f7dcdc; color: #6d1518; margin: 12px 0; }
.formulaire { max-width: 520px; }
.confirmation { padding: 20px; border-radius: 14px; background: var(--papier); border: 1px solid var(--trait); }
.numero { font-size: 1.05rem; }
.etapes { list-style: none; padding: 0; margin: 16px 0; display: flex; gap: 4px; }
.etapes li { flex: 1; text-align: center; font-size: .8rem; padding-top: 30px; position: relative; color: var(--gris); }
.etapes li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--trait); }
.etapes li.faite::before { background: var(--vert); } .etapes li.en-cours { color: var(--brun); font-weight: 700; }
.etapes li.en-cours::before { background: var(--jaune); box-shadow: 0 0 0 4px #fdf0c8; }

.pied { background: var(--brun); color: #f3e8d6; padding: 28px 16px 20px; margin-top: 24px; }
.pied a { color: #fbe7b0; }
.pied-grille { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.pied p { margin: 2px 0; }
.reseaux { display: flex; gap: 16px; flex-wrap: wrap; }
.credit { max-width: 980px; margin: 18px auto 0; font-size: .8rem; opacity: .7; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .onglets { display: none; }
  .nav-haut { display: flex; }
  .hero { margin: 0; border-radius: 0 0 20px 20px; min-height: 520px; }
  .hero-texte { padding: 40px; max-width: 640px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .vedettes { grid-template-columns: repeat(3, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .plats { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 2fr 2fr 1fr; }
  .barre-panier { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 20px; }
  .bas-carte { bottom: 16px; max-width: 420px; }
  .feuille { align-items: center; }
  .feuille-corps { border-radius: 20px; }
}

/* Page d'erreur */
.erreur-page { max-width: 480px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.erreur-page img { border-radius: 50%; }
.erreur-page p:last-child { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
