/* ======= Palette de couleurs centralisée avec variables CSS ======= */
:root {
  --primary-color: #F39C12;
  --secondary-color: #ed6226;
  --background-color: #fffaf3;
  --text-color: #5a2f1f;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --highlight-color: #ffa726;
  --hover-dark: #a5441f;
  --neutral-bg: #fff;
  --neutral-bg-light: #fffaf3;
  --neutral-bg-lighter: #fff5ea;
  --neutral-bg-highlight: #fff1dd;
}
/* ======= Bière Section Styles (Unified, Cleaned) ======= */
/* ======= Bière Section Styles (Unified, Cleaned, Variables) ======= */
#biere, #biere_pression, #biere_bouteille {
  background-color: var(--background-color);
  border: 2px solid #e0cbb2;
  margin-top: 20px;
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

#biere_pression h3, #biere_bouteille h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

#biere .item, #biere_pression .item, #biere_bouteille .item {
  margin-bottom: 16px;
  padding: 16px;
  background-color: var(--neutral-bg);
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow-color);
}

#biere .item:hover, #biere_pression .item:hover, #biere_bouteille .item:hover {
  background-color: #fdf7e0;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Style pour le bouton "Bière" dans le menu Burger */
#burger-btn-biere {
  font-size: 1.2rem;
  color: white;
  background-color: var(--primary-color);
  padding: 12px 24px;
  text-align: center;
  width: 100%;
  border-radius: 8px;
  transition: background-color 0.2s;
}

#burger-btn-biere:hover {
  background-color: #e67e22;
  cursor: pointer;
}
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #FDFEFE;
  color: #2C3E50;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-size: 16px;
}

.banniere {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  margin-top: 48px;
  background-color: #F4D03F; /* Jaune doré en arrière-plan */
}

.tabs {
  background-color: #34495E; /* Bleu gris foncé */
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  list-style: none;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.tabs li {
  background: linear-gradient(90deg, #F4D03F, #F39C12); /* Dégradé de jaune doré */
  color: white;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
  min-width: 180px;
  transition: background 0.2s ease, transform 0.2s;
}

.tabs li:hover {
  background: linear-gradient(90deg, #F39C12, #F4D03F); /* Changement au survol */
  transform: scale(1.05);
}

/* S'assurer que toutes les sections .categorie sont bien visibles */
.categorie {
  margin: 16px auto;
  padding: 24px;
  background: #fffaf3;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: block;
  opacity: 1;
  visibility: visible;
}

#boissons_froides.categorie {
  display: block;
  opacity: 1;
  visibility: visible;
  background-color: #fffaf3;
  border: 2px solid #e0cbb2;
  margin-top: 20px;
  padding: 24px;
}

/* Pour Bières au Fût */
#biere_pression.categorie {
  visibility: visible;
  opacity: 1;
  display: block;
  background-color: #fffaf3;
  border: 2px solid #e0cbb2;
  margin-top: 20px;
}

#menu-container .categorie {
  background: #fffaf3;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Vérification que chaque section est bien visible dans le DOM */
#boissons_froides.categorie,
#brochettes.categorie,
#pates_omelettes.categorie,
#sandwichs_snacks.categorie,
#toasts.categorie,
#provencettes.categorie,
#petitdej.categorie,
#desserts.categorie,
#biere_pression.categorie,
#biere.categorie {
  display: block;
  opacity: 1;
  visibility: visible;
}

.categorie h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #34495E; /* Texte en bleu foncé */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
  border-bottom: 2px solid #F39C12; /* Jaune pour la ligne sous le titre */
  padding-bottom: 10px;
}

#compteur-cuisine {
  font-size: 1.3rem; /* Augmenter la taille du texte */
  font-weight: bold;
  color: #5a2f1f;
  background-color: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent */
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0cbb2;
  transition: all 0.3s ease;
  text-align: center;
}

#compteur-cuisine:hover {
  background-color: rgba(255, 255, 255, 1); /* Plus visible au survol */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#compteur-cuisine.urgent {
  background-color: #ffe6e6;
  color: #d32f2f;
  border: 1px solid #f5c6cb;
}

.tabs::after {
  content: "→";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #ffe7c4;
  animation: blinkArrow 1.2s infinite;
  pointer-events: none;
}

@keyframes blinkArrow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media screen and (max-width: 767px) {
  .tabs li {
    min-width: 200px;
    font-size: 1.2rem;
    padding: 20px;
  }

  .tabs::after {
    display: block;
  }

  .nom, .prix {
    font-size: 1.1rem;
  }

  .desc {
    font-size: 1rem;
  }

  .prix {
    font-size: 1.1rem;
  }

  .categorie h2 {
    font-size: 1.3rem;
  }

  /* Augmenter la taille du titre de la catégorie Pâtes & Omelettes sur mobile */
  #pates_omelettes.categorie h2 {
    font-size: 1.5rem;
  }

  /* Réduire la taille du sous-titre "Choisissez vos pâtes et votre sauce" sur mobile */
  #pates_omelettes.categorie h2::after {
    font-size: 1rem;
  }

  #reseaux-sociaux p {
    font-size: 1.4rem; /* Augmenter la taille de la police des promotions */
  }

  #google-review-btn {
    font-size: 1.4rem; /* Agrandir le texte du bouton sur mobile */
    padding: 16px 24px; /* Ajuster le padding pour mieux s'adapter à la taille du texte */
  }
}

@media screen and (min-width: 768px) {
  .tabs::after {
    display: none;
  }
  .categorie {
    max-width: 700px;
    margin: 24px auto;
  }
}

#burger-button {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #ffa726, #ed6226);
  color: white;
  border: none;
  padding: 14px;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 2000;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

#burger-button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #ed6226, #ffa726);
}
/* ====== BURGER MENU MODERNISÉ ====== */

#burger-menu {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1999;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent */
  backdrop-filter: blur(8px);
  color: var(--text-color);
  padding: 0;
  border: none;
  box-shadow: none;
  display: none;
}

#burger-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0; /* Espacement uniforme */
  margin: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

#burger-menu-list button {
  padding: 12px 24px;
  font-size: 1.2rem;
  color: white;
  background-color: var(--primary-color);
  border-radius: 8px;
  transition: background-color 0.2s;
  margin: 4px 0;
  border: none;
  font-weight: bold;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#burger-menu-list button i {
  margin-right: 10px; /* Espacer les icônes du texte */
  font-size: 1.5rem; /* Augmenter la taille des icônes */
  vertical-align: middle;
}

#burger-menu-list button:hover {
  background-color: var(--secondary-color);
}

/* Style pour le bouton "ESC Bar à Brochettes" dans le menu Burger */
#burger-btn-bar-brochettes {
  font-size: 1.2rem;
  color: white;
  background-color: var(--primary-color);
  padding: 12px 24px;
  text-align: center;
  width: 100%;
  border-radius: 8px;
  transition: background-color 0.2s;
}

#burger-btn-bar-brochettes:hover {
  background-color: #e67e22;
  cursor: pointer;
}
main {
  padding-top: 0;
  margin-top: 0;
}
#burger-menu.hidden {
  display: none;
}
#burger-menu.show {
  display: block;
}

/* Bouton "Laissez-nous un avis" aligné à droite, taille ajustée, décollé du bouton haut */
#google-review-btn {
  font-size: 1.2rem;
  padding: 10px 18px;
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 21px;
  right: 20px; /* Plus décollé du bord pour éviter chevauchement */
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  z-index: 1000;
}

#google-review-btn:hover {
  background-color: var(--hover-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Animation d'étoiles au clic */
#google-review-btn .cta::after {
  content: ""; /* Pas d'étoiles par défaut */
  display: inline-block;
  font-size: 1.2rem;
  transition: content 0.5s ease;
}

#google-review-btn:active .cta::after {
  content: " ⭐⭐⭐⭐⭐"; /* Affichage des 5 étoiles après clic */
  font-size: 1.5rem; /* Agrandir les étoiles pendant l'animation */
  color: #FFD700; /* Jaune doré pour les étoiles */
  animation: fadeInStars 1s forwards;
}

@keyframes fadeInStars {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#avis-fixe {
  position: fixed;
  bottom: 24px;
  right: 16px;
  background-color: #f1c18c;
  color: #5a2f1f;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  transition: all 0.2s ease;
}

#avis-fixe:hover {
  transform: scale(1.05);
  background-color: #ed6226;
  color: white;
}

#reseaux-sociaux {
  background-color: #fffaf3;
  padding: 20px;
  margin: 0 16px 4px 16px; /* ✅ espace en bas encore réduit */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  font-size: 1rem;
  color: #5a2f1f;
}

/* Augmenter la taille du texte des réseaux sociaux */
#reseaux-sociaux p {
  font-size: 1.6rem; /* Augmenter la taille du texte */
  font-weight: bold;
  color: #5a2f1f;
  text-align: center;
}

/* Augmenter la taille des boutons Instagram et Facebook */
.boutons-reseaux a {
  font-size: 1.2rem; /* Agrandir les boutons */
  padding: 12px 20px;
  background-color: #ed6226;
  color: white;
  text-decoration: none;
  margin: 0 8px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.boutons-reseaux a:hover {
  background-color: #a5441f;
  transform: scale(1.05); /* Zoom au survol */
}
.reseaux {
  margin: 16px auto 8px auto; /* ⬅️ Réduit le bas à 8px au lieu de 24px ou plus */
  padding: 12px;
  background: #fffdf9;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

/* Refondre entièrement le style de la carte pour une présentation claire, moderne et mobile-friendly */
.item {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
  border-left: 5px solid #F39C12; /* Jaune pour la mise en avant */
  position: relative;
}

.item:hover {
  transform: scale(1.02);
}

.ligne-article {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 8px;
}

.nom {
  font-weight: 600;
  font-size: 1.3rem;
  color: #a5441f;
  flex: 1;
}

.prix {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F39C12; /* Jaune pour les prix */
  white-space: nowrap;
  padding-right: 24px;
}

.desc {
  font-size: 1rem;
  color: #6B4D3B;
  margin-top: 4px;
  font-style: italic;
  padding-left: 4px;
}

.desc.sauce {
  font-style: normal;
  font-weight: bold;
  background-color: #fce8d5;
  color: #a5441f;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.desc.sauce::before {
  content: "🍝 "; /* Utilise une icône de plat pour indiquer les sauces */
}

.item-title {
  margin: 24px 0 12px;
  padding: 10px 16px;
  background: #fce8d5;
  border-left: 5px solid #ed6226;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-title .titre-section {
  font-size: 1.1rem;
  font-weight: bold;
  color: #a5441f;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Ajout d'un pictogramme selon le type de boisson via data-icon */
.item-title .titre-section::before {
  content: attr(data-icon) " ";
  font-size: 1.2rem;
  margin-right: 6px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2rem; /* Ajuste selon taille souhaitée */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.back-to-top:focus,
.back-to-top:hover {
  transform: scale(1.2); /* Petit effet au survol */
}


/* Affichage des produits phares */
.item.best-seller {
  position: relative;
  background: linear-gradient(90deg, #FFF5E0, #FFF);
}

.item.best-seller::before {
  content: "🔥 BEST SELLER";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F39C12;
  color: #FFF;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}


.categorie.best-seller {
  background: #fff1dd;
  border: 2px solid #ffa726;
  box-shadow: 0 2px 10px rgba(255, 167, 38, 0.2);
  animation: pop-in-highlight 0.7s ease-out both;
}

.categorie.best-seller h2::after {
  content: "BEST SELLER";
  display: inline-block;
  background-color: #ffa726;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Zebra effect alternance fonds catégories */
.categorie:nth-child(even) {
  background: #fff5ea;
}

.categorie:nth-child(odd) {
  background: #fffaf3;
}

/* Apparition au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effet ripple boutons menu burger */
#burger-menu-list button:active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: ripple 0.4s ease-out;
  z-index: 0;
}

@keyframes ripple {
  from {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}


.categorie.best-seller {
  animation: pop-in-highlight 0.7s ease-out both;
}

@keyframes pop-in-highlight {
  0% {
    opacity: 0;
    transform: scale(0.95);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(255, 167, 38, 0.2);
  }
}

.item-title {
  display: block;
}
.categorie#brochettes,
#brochettes.categorie {
  background: linear-gradient(180deg, #fff1dd, #fffaf3);
  border: 3px solid #ffa726;
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
  animation: brochetteHighlight 1s ease-out both;
  position: relative;
}

#brochettes.categorie h2::before {
  content: "🍢 ";
}


@keyframes brochetteHighlight {
  0% {
    transform: scale(0.96);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
/* Mise en valeur spéciale pour la section Pâtes & Omelettes */
#pates_omelettes.categorie {
  background: #fffdf6;
  border: 2px dashed #ed6226;
  box-shadow: 0 2px 10px rgba(237, 98, 38, 0.1);
  position: relative;
}

#pates_omelettes.categorie h2::before {
  content: "🍝 ";
}

#pates_omelettes.categorie h2::after {
  content: "•Choisissez vos pâtes et votre sauce!•";
  display: inline-block;
  background-color: #ed6226;
  color: white;
  font-size: 0.55rem; /* Réduire la taille de la police de deux tailles */
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
 /* Style spécial pour les descriptions de sauces */
.desc.sauce {
  font-style: normal;
  font-weight: bold;
  background-color: #fce8d5;
  color: #a5441f;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#brochettes + #accompagnements::before {
  content: "🍟 Composez votre assiette ! Ajoutez frites ou salade à vos brochettes ↓";
  display: block;
  background-color: #ed6226;
  color: white;
  padding: 12px 16px;
  margin: -24px 0 16px 0;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#accompagnements.categorie, #formule.categorie {
  display: block;
  opacity: 1;
  visibility: visible;
  background-color: #fffaf3;
  border: 2px solid #e0cbb2;
  margin-top: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ajouter un fond léger pour la section Formule */
#formule.categorie {
  background-color: #fdf7e0; /* Légèrement plus clair pour différencier */
}

/* Ajuster la taille et espacement des éléments dans la section Accompagnement et Formule */
#accompagnements .item, #formule .item {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#menu-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  #menu-container {
    max-width: 700px; /* Largeur centrée sur tablette et plus */
  }
}


/* ======= Bouton "Revenir en haut" (flottant, bas gauche, toujours visible et bien positionné) ======= */
#scroll-left {
  display: block; /* Toujours affiché */
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #F39C12; /* Jaune doré pour attirer l'attention */
  color: white;
  font-size: 1.5rem; /* Taille réduite mais visible */
  border: none;
  padding: 12px 16px;
  border-radius: 50%; /* Cercle autour du bouton */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Toujours au-dessus des autres éléments */
  transition: all 0.3s ease;
}

#scroll-left.show {
  display: block; /* Afficher lorsque nécessaire */
}

#scroll-left:hover {
  background-color: #F4D03F; /* Changement au survol */
  transform: scale(1.1); /* Effet de zoom */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre au survol */
}

#scroll-left:active {
  transform: scale(1.05); /* Réduction au clic */
}

.categorie#brochettes h2::after {
  content: "• SPÉCIALITÉ MAISON •";
  display: inline-block;
  background-color: #ffa726;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
