/* === POLICES === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

/* === BASE === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-bottom: 60px;
}

/* === HEADER === */
.header {
  width: 100%;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8b0000, #a52a2a);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-bottom: 3px solid #ffd700;
}

.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.header .logo {
  height: 180px;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  margin: 0 auto;
}

.header .logo:hover {
  transform: scale(1.1) rotate(-5deg);
}

#cart-button {
  background-color: #fff;
  color: #8b0000;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 11;
  position: absolute;
  right: 20px;
}

#cart-button:hover {
  background-color: #8b0000;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#cart-button::before {
  content: "🛒";
  font-size: 18px;
}

/* === EMOJIS BACKGROUND === */
.emoji-container {
  position: fixed;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: -1;
}

.emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0.8;
  animation: fall linear forwards;
  user-select: none;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes fall {
  to { 
    transform: translateY(110vh);
  }
}

/* === Bouton Ramadan === */
.ramadan-button {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(45deg, #8b0000, #a52a2a);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ramadan-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

/* === MENU PRINCIPAL === */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  flex-wrap: wrap;
  z-index: 10;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.menu-button {
  padding: 15px 20px;
  font-size: 20px;
  font-weight: bold;
  color: #8b0000;
  background-color: #fff;
  border: 2px solid #8b0000;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
  animation: fadeIn 0.5s ease;
  box-sizing: border-box;
}

.menu-button:hover {
  background-color: #8b0000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* === ÉTAPES DE COMMANDE === */
.step-container {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 800px;
  padding: 25px;
  border-radius: 15px;
  background-color: #f9f9f9;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 20;
  opacity: 0;
  transform: scale(0.9);
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.step-container.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.step-container h3 {
  margin: 0;
  font-size: 22px;
  color: #333;
  font-weight: 700;
}

/* === OPTIONS === */
.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  width: 100%;
  margin-top: 15px;
  justify-items: center;
}

.option-button {
  padding: 12px 18px;
  font-size: 16px;
  border: 2px solid #8b0000;
  border-radius: 10px;
  background-color: #fff;
  color: #8b0000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  word-break: break-word;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.option-emoji {
  display: inline-block;
  margin-left: 5px;
  animation: bounce 1s infinite;
}

.option-count {
  margin-left: 5px;
  font-size: 0.9em;
  color: inherit;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.option-button.selected {
  background-color: #8b0000 !important;
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.3) !important;
}

.option-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2) !important;
}

/* === BOUTONS DE NAVIGATION === */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  width: 100%;
  flex-wrap: wrap;
}

.nav-button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #8b0000;
  border-radius: 10px;
  background-color: #fff;
  color: #8b0000;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
}

.nav-button:hover {
  background-color: #8b0000;
  color: #fff;
  transform: translateY(-2px);
}

.next-button {
  background-color: #8b0000;
  color: #fff;
}

.next-button:hover {
  background-color: #700000;
}

.confirm-button {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.confirm-button:hover {
  background-color: #218838;
  color: white;
}

.reset-button {
  padding: 12px 24px;
  font-size: 16px;
  border: 2px solid #555;
  border-radius: 10px;
  background-color: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.reset-button:hover {
  background-color: #555;
  color: #fff;
}

/* Options de commande */
.takeaway-option {
  margin: 15px 0;
  font-size: 16px;
  color: #555;
}

/* === SUPPLÉMENTS === */
.supp-nav-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.supp-nav-button {
  padding: 10px 5px;
  font-size: 14px;
  border: 1px solid #8b0000;
  border-radius: 20px;
  background-color: #fff;
  color: #8b0000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.supp-nav-button.active {
  background-color: #8b0000;
  color: #fff;
}

.supp-nav-button:hover {
  background-color: #8b0000;
  color: #fff;
}

.supp-category {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.supp-category.open {
  display: block;
}

/* === RÉCAPITULATIF === */
.summary-container {
  width: 100%;
  padding: 20px;
  background-color: #fff9f9;
  border-radius: 10px;
  border: 1px solid #ffdddd;
  margin-bottom: 20px;
  text-align: left;
  box-sizing: border-box;
}

.summary-title {
  color: #8b0000;
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.summary-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ffcccc;
  display: flex;
  flex-wrap: wrap;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: bold;
  color: #8b0000;
  min-width: 120px;
  margin-right: 10px;
}

.summary-value {
  flex: 1;
  word-break: break-word;
}

.total-item {
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #8b0000;
}

/* === APPEL EMPLOYÉ === */
.restaurant-call {
  margin: 20px 0;
  text-align: center;
  width: 100%;
}

.call-employee {
  display: block;
  padding: 15px;
  background-color: #8b0000;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px auto;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.call-employee:hover {
  background-color: #700000;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* === PANIER === */
.cart-items-container {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 10px;
  width: 100%;
}

.cart-item {
  background-color: rgba(139, 0, 0, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(139, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding-right: 100px;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.1);
}

.cart-item h4 {
  color: #8b0000;
  margin-top: 0;
  margin-bottom: 10px;
}

.cart-item p {
  margin: 6px 0;
  font-size: 14px;
}

.item-total {
  font-weight: bold;
  color: #8b0000;
  margin-top: 10px !important;
}

.quantity-controls {
  position: absolute;
  right: 50px;
  top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #8b0000;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.quantity-btn:hover {
  background-color: #700000;
}

.remove-item {
  position: absolute;
  top: 15px;
  right: 10px;
  background-color: #8b0000;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cart-total {
  font-size: 24px;
  font-weight: bold;
  color: #8b0000;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #8b0000;
  text-align: center;
}

.empty-cart {
  color: #666;
  font-style: italic;
  text-align: center;
}

/* === MODALS === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: slideDown 0.4s ease;
  box-sizing: border-box;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal h3 {
  color: #8b0000;
  margin-top: 0;
  text-align: center;
}

/* FORMULAIRE CLIENT */
.customer-form {
  margin: 20px 0;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

/* OPTIONS DE CONTACT */
.contact-options {
  margin: 25px 0;
  text-align: center;
}

.contact-method {
  margin-bottom: 25px;
}

.contact-method p {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.whatsapp-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
  box-sizing: border-box;
  text-align: center;
  background-color: #25D366;
  color: white;
  border: 2px solid #25D366;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.final-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid #eee;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.modal-button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
}

.modal-button.ok {
  background-color: #28a745;
  color: white;
  border: 2px solid #28a745;
}

.modal-button.ok:hover {
  background-color: #218838;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #8b0000, #a52a2a);
  color: white;
  padding: 15px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 3px solid #ffd700;
  z-index: 100;
}



.footer a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

/* SHAK MOMENTS MODAL */
.shak-moments {
  max-width: 95%;
  padding: 15px;
  width: 95%;
  margin: 10% auto;
}

.shak-slideshow {
  position: relative;
  margin: 20px 0;
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shak-slide {
  display: none;
  width: 100%;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shak-slide.active {
  display: flex;
  animation: fadeIn 1s;
}

.shak-slide img {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.shak-slide p {
  font-size: 18px;
  font-weight: bold;
  color: #8b0000;
  margin-top: 15px;
}

.shak-dots {
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: #8b0000;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #8b0000;
}

.modal-ok-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 25px;
  background-color: #8b0000;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
}

.modal-ok-btn:hover {
  background-color: #700000;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .button-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .menu-button {
    width: 100%;
  }
  
  .options-container {
    grid-template-columns: 1fr;
  }
  
  .option-button {
    max-width: 100%;
  }
  
  .ramadan-button {
    width: 90%;
    font-size: 20px;
  }
  
  .nav-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-button, .reset-button {
    width: 100%;
  }
  
  .step-container {
    margin: 10px;
    padding: 20px;
  }
  
  .modal-content {
    margin: 15% auto;
    padding: 20px;
  }
  
  .supp-nav-buttons {
    grid-template-columns: 1fr;
  }
  
  .contact-options {
    display: flex;
    flex-direction: column;
  }
  
  .whatsapp-button {
    width: 100%;
    margin: 5px 0;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-button {
    width: 100%;
  }
  
  .header .logo {
    height: 150px;
  }
  
  #cart-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .shak-moments {
    padding: 15px;
  }
  
  .shak-slideshow {
    max-height: 50vh;
  }
  
  .shak-slide img {
    max-height: 40vh;
  }
}

@media (max-width: 480px) {
  .header .logo {
    height: 120px;
  }
  
  #cart-button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .emoji {
    font-size: 18px;
  }
  
  .step-container h3 {
    font-size: 18px;
  }
  
  .option-button {
    font-size: 14px;
    padding: 10px;
  }
  
  .summary-label {
    display: block;
    margin-bottom: 5px;
    width: 100%;
  }
  
  .summary-value {
    width: 100%;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .call-employee {
    padding: 12px;
    font-size: 14px;
  }
  
  .shak-slideshow {
    max-height: 40vh;
  }
  
  .shak-slide img {
    max-height: 30vh;
  }
  
  .shak-slide p {
    font-size: 16px;
  }
  
  .cart-item {
    padding-right: 90px;
  }
  
  .quantity-controls {
    right: 40px;
    gap: 5px;
  }
  
  .quantity-btn, .remove-item {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
}
/* Styles personnalisés pour la section contact-info, la carte et les boutons réseaux */

/* La section entière avec un fond clair et une légère ombre */
.contact-info {
  background-color: #f3f3f3; /* Vous pouvez modifier cette couleur de fond */
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Conteneur de la carte : déjà défini avec bg-white, padding, border-radius et ombre via Tailwind */
.map-container {
  overflow: hidden;
  border-radius: 0.75rem; /* arrondir la carte */
}

/* Boutons réseaux sociaux (en complément des classes Tailwind) */
.social-button {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Optionnel : au survol, agrandir légèrement les boutons */
.social-button:hover {
  transform: scale(1.05);
}
