body{padding-top:70px; background:#f5f5f5;}
.card{transition: transform 0.2s, box-shadow 0.2s; border-radius:10px;}
.card:hover{transform:translateY(-5px); box-shadow:0 10px 20px rgba(0,0,0,0.2);}
.card-img-top{height:180px; object-fit:cover; border-top-left-radius:10px; border-top-right-radius:10px;}
.card-body{padding:10px;}
.card-title{font-size:1rem; font-weight:600; white-space: nowrap; overflow:hidden; text-overflow:ellipsis;}
.card-text{font-size:0.9rem; color:#555;}
.btn-sm{border-radius:5px;}
.navbar-brand{font-size:1.2rem; font-weight:bold;}
#search{border-radius:10px;}
#searchMobile{border-radius:50%; text-align:center;}
.modal-body img{border-radius:10px; margin-bottom:10px;}
.badge{font-size:0.7rem;}
  
.carousel-item img {border-radius:20px; height:300px; object-fit:cover;}
.service-card {position:relative; overflow:hidden; border-radius:15px; box-shadow:0 5px 15px rgba(0,0,0,0.1); transition:transform 0.3s;}
.service-card:hover {transform:scale(1.03);}
.service-overlay {position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,0.6); color:#fff; padding:15px; text-align:center;}
.service-overlay h5 {margin:0; font-weight:600; font-size:1.2rem;}
.service-overlay button {margin:5px; border:none; padding:8px 15px; border-radius:8px; font-weight:500;}
.btn-reserve {background:#28a745; color:#fff;}
.btn-view {background:#007bff; color:#fff;}
.btn-map {background:#ffc107; color:#222;}
.modal-header {background:#ffc107; color:white;}
#map {height:400px; border-radius:15px;}


  
   
  /* Boutons défilement */
.btn-cat-scroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 1.2rem;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}
.btn-cat-scroll:hover {
  background: #007bff;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* Supprimer scrollbar moche */
.scroll-hide::-webkit-scrollbar {
  display: none;
}
.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Carte catégorie */
.cat-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-5px) scale(1.05);
  color: #007bff;
}

/* Image catégorie */
.cat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 8px;
  transition: transform 0.3s ease;

}
.cat-card:hover .cat-img {
  transform: rotate(-5deg) scale(1.1);
}

/* Texte */
.cat-name {
  font-size: 0.9rem;
  font-weight: 500;
}



/* Animation progress bar */
.progress-bar {
  transition: width 1.2s ease-in-out;
}

.dispo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 500;
}
/* dispo produit bar */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-text {
  font-size: 0.9rem;
  color: #333;
}

/* badge */ 
.badge-promo {
  background: linear-gradient(45deg, #ff0000, #ff7300);
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: pulse 1.5s infinite;
}

.countdown {
  background: rgba(0,0,0,0.75);
  color: #ffc107;
  font-size: 0.85rem;
  font-weight: bold;
  animation: fadeInUp 1s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
 
.share-buttons a {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease;
}

.share-buttons a:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.share-buttons .btn-primary { background-color: #1877f2; }
.share-buttons .btn-success { background-color: #25d366; }
.share-buttons .btn-danger  { background-color: #e4405f; }

/* promo */
.promo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
  }

  .promo-carousel {
    width: 90%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff512f, #dd2476);
  }

  .promo-slide {
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 25px 20px;
    animation: fadeIn 0.8s ease;
    flex-wrap: wrap;
  }

  .promo-slide.active {
    display: flex;
  }

  .promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .promo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    animation: bounce 2s infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  .promo-text {
    max-width: 550px;
  }

  .promo-text h3 {
    font-size: 1.4rem;
    color: #ffe600;
    margin: 0;
  }

  .promo-text p {
    font-size: 0.95rem;
    margin: 8px 0;
  }

  .promo-link {
    background: #ffe600;
    color: #000;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
  }

  .promo-link:hover {
    background: #fff;
    color: #dd2476;
  }

  .countdown {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 5px 12px;
    display: inline-block;
    margin-top: 5px;
  }

  .promo-dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .promo-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
  }

  .promo-dot.active {
    background: #ffe600;
    transform: scale(1.2);
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: scale(0.98);}
    to {opacity: 1; transform: scale(1);}
  }

 

/* === BARRE DE SÉLECTION DE VILLE === */
.ville-container {
  background: linear-gradient(90deg, #ff512f, #dd2476);
  color: #fff;
  padding: 15px 25px;
  text-align: center;
  border-radius: 10px;
  margin: 20px auto;
  width: fit-content;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.ville-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ville-form select {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 25px;
  padding: 7px 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ville-form select:hover {
  transform: scale(1.05);
}

.ville-info {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* === whatsapp === */
/* === Conteneur WhatsApp === */
.whatsapp-widget {
  position: fixed;
  bottom: 100px; /* placé au-dessus de la navbar Loumogo */
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse; /* bouton en bas, box au-dessus */
  align-items: flex-end;
}

/* === Bouton WhatsApp flottant === */
.whatsapp-btn {
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* === Boîte WhatsApp (popup) === */
.whatsapp-box {
  display: none;  /* cachée par défaut */
  background: #fff;
  border-radius: 15px;
  width: 280px;
  max-height: 400px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease;
  margin-bottom: 15px;
  flex-direction: column;
  z-index: 10000;
}

/* Animation ouverture WhatsApp box */
@keyframes slideUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* === Header WhatsApp === */
.whatsapp-header {
  background: #25D366;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

/* === Corps de la boîte WhatsApp === */
.whatsapp-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
}

/* Champ texte */
.whatsapp-body textarea {
  width: 100%;
  height: 100px; /* hauteur confortable */
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 8px;
  resize: none;
  font-size: 14px;
}

/* Bouton envoyer */
.whatsapp-body button {
  background: #25D366;
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* === scroll === */
.scroll-btn {
  position: fixed;
  bottom: 180px; /* au-dessus du bouton WhatsApp */
  right: 25px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 9998;
}
.scroll-btn:hover {
  transform: scale(1.1);
  background: #20b358;
}



/* === like and commentaire === */
.btn-like{background:linear-gradient(90deg,#ff6b6b,#c33764); color:#fff; border:none;}
.counter-bubble{display:inline-block; background:#fff; color:#c33764; padding:2px 8px; border-radius:999px; font-weight:700; font-size:.85rem; margin-left:8px; border:1px solid #eee;}
.comment-box{background:#fff;border-radius:10px;padding:10px;margin-bottom:10px;box-shadow:0 2px 8px rgba(0,0,0,0.05);}
.reply{margin-left:18px; background:#f8f9fa;border-left:3px solid #c33764;padding:8px;border-radius:6px;}

@media(max-width:720px){
  .ville-container {
    width: 90%;
    font-size: 0.9rem;
  }
}
/* Tablettes et petits écrans */
@media(max-width:720px){
  /* Réduire WhatsApp box */
  .whatsapp-box {
    width: 240px;
  }

  /* Réduire bouton WhatsApp */
  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: 1.7rem;
  }

  /* Réduire bouton scroll */
  .scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
    bottom: 85px; /* au-dessus du bouton WhatsApp */
  }
}

/* Très petits écrans (<480px) */
@media(max-width:480px){
  .whatsapp-widget {
    right: 15px;
    bottom: 90px; /* remonte WhatsApp box */
  }
  .scroll-btn {
    bottom: 155px; /* au-dessus de WhatsApp */
    right: 15px;
  }
}
/* ======================
   CONTENEUR
====================== */
.payment-card {
  position: relative;
}

/* ======================
   IMAGE
====================== */
.payment-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 50%;
  padding: 10px;
  background: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* ======================
   COULEURS DYNAMIQUES
====================== */
.payment-card[data-color="green"] .payment-img.active {
  --glow: 46, 204, 113;
}

.payment-card[data-color="gold"] .payment-img.active {
  --glow: 241, 196, 15;
}

.payment-card[data-color="black"] .payment-img.active {
  --glow: 0, 0, 0; /* noir */
}

/* ======================
   GLOW + PULSE
====================== */
.payment-img.active {
  transform: scale(1.18);
  animation: glowPulse 1.6s infinite ease-in-out;
}

@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(var(--glow), 0.6),
      0 0 25px rgba(var(--glow), 0.6),
      0 0 45px rgba(var(--glow), 0.4);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(var(--glow), 0),
      0 0 40px rgba(var(--glow), 0.8),
      0 0 70px rgba(var(--glow), 0.6);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(var(--glow), 0),
      0 0 25px rgba(var(--glow), 0.6),
      0 0 45px rgba(var(--glow), 0.4);
  }
}

/* ======================
   ONDE CIRCULAIRE (RIPPLE)
====================== */
.payment-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(var(--glow), 0.35);
  transform: scale(0);
  opacity: 0;
}

.payment-img.ripple::after {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  from {
    transform: scale(0.2);
    opacity: 0.6;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Texte actif */
.payment-img.active + div {
  font-weight: bold;
  color: rgb(var(--glow));
}
.magic-input {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
}
