
/* Style général inspiré de la pâtisserie haute-couture */
.supplements {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    max-width: 300px;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Bouton principal - style minimaliste chic */
.supplements > p {
    background-color: #000;
    color: #fff;
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 14px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2;
}

/* Flèche stylisée */
.supplements > p::after {
    content: "↓";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 14px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Conteneur des options (masqué par défaut) */
.supplements .options-container {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: max-height;
}

/* Options visibles quand actif */
.supplements.active .options-container {
    max-height: 500px; /* Valeur suffisamment grande */
}

/* Animation d'ouverture */
.supplements.active > p::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Style des options */
.supplements label {
    display: block;
    padding: 14px 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    border-bottom: 1px solid #f0f0f0;
    animation: fadeIn 0.5s forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Animation d'apparition séquentielle */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style des checkbox modernes */
.supplements input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.3s ease;
}

.supplements input[type="checkbox"]:checked {
    background-color: #000;
    animation: checkAnim 0.4s ease;
}

@keyframes checkAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.supplements input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Effet hover subtil */
.supplements label:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

/* Style pour le prix */
.supplements label:after {
    content: attr(data-price);
    float: right;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.supplements label:hover:after {
    color: #000;
}








/* === Reset et base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* === Structure globale === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: white;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* === Typographie élégante === */
h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #111;
  position: relative;
  padding-bottom: 20px;
}

h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #000, transparent);
}

.sous-titre {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* === Section produits === */
.section-title {
  font-size: 1.2rem;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.section-title:before,
.section-title:after {
  content: "•";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.5rem;
}

.section-title:before {
  left: calc(50% - 100px);
}

.section-title:after {
  right: calc(50% - 100px);
}

/* === Grille de produits uniformisée === */
.liste-produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 20px;
  align-items: stretch;
}

/* === Carte produit uniforme === */
.produit {
  background: white;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.produit:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* === Image produit === */
.image-produit {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(0%);
  transition: filter 0.5s ease;
}

.produit:hover .image-produit {
  filter: grayscale(30%);
}

/* === Contenu texte uniforme === */
.produit-contenu {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.produit h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-align: center;
  color: #111;
  font-weight: 400;
}

.description-produit {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
  flex: 1;
  font-weight: 300;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Version standard moderne */
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  /* Limite de lignes avec préfixes et version standard */
  -webkit-line-clamp: 4;
  -moz-line-clamp: 4;
  line-clamp: 4;
  
  /* Orientation du box layout */
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  
  /* Alternative pour certains navigateurs */
  max-height: calc(1.7em * 4); /* line-height × nombre de lignes */
}








.prix-produit {
  font-size: 1.4rem;
  color: #111;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* === Bouton ajout panier === */
.produit button {
  background-color: white;
  color: #000000;
  border: 2px solid #000000;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.produit button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: -1;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.produit button:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.produit button:hover::before {
  left: 0;
}

.produit button span {
  position: relative;
  z-index: 2;
  text-decoration: none;
}







/* === Panier flottant === */
#panier-flottant {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
}



#panier-flottant button.toggle {
  background: white;
  color: #111;
  border: 1px solid #111;
  padding: 12px 20px;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

#panier-flottant button.toggle:hover {
  background: #111;
  color: white;
}

/* === Contenu panier === */

#contenu-panier {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

#contenu-panier.ouvert {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#contenu-panier h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#fermer-panier {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

#fermer-panier:hover {
  color: #111;
}

#liste-panier {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}






#liste-panier img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  vertical-align: middle;
  transition: transform 0.3s ease;
}

#liste-panier img:hover {
  transform: scale(1.05);
}




@media (max-width: 480px) {
  #panier-flottant {
    position: fixed !important;
    top: calc(60px + env(safe-area-inset-top)) !important;  /* augmenté */
    left: calc(10px + env(safe-area-inset-left)) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1001 !important;
    
  }

  #contenu-panier {
    position: absolute !important;
    top: 100% !important;
    right: auto !important;
    left: 0 !important;
    width: 300px !important;
    max-height: 500px !important;
    
  }
}



/* Version mobile - Alignement à droite */
@media (max-width: 767px) {
  .container .container { /* Cible spécifiquement le conteneur du bouton */
    text-align: right; /* Aligne le bouton à droite */
    padding-right: 15px; /* Marge intérieure pour respiration */
  }
  
  .bouton-retour {
    margin-left: auto; /* Pousse le bouton vers la droite */
    display: inline-flex; /* Pour mieux gérer l'icône */
    align-items: center;
    padding: 5px 10px 7px 20px; /* Ajustement du padding */
  }
  
  .bouton-retour:hover {
    padding-left: 25px; /* Ajustement hover mobile */
    padding-right: 15px;
  }
  
  .bouton-retour::before {
  
    margin-right: 8px;
    position: static; /* Reset de la position absolute */
  }
}














.supprimer {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-weight: bold;
  font-size: 2rem;
  transition: color 0.3s ease;
  margin-left: 200px;
  position: relative;
  top: -80px;
}

.supprimer:hover {
  color: #c0392b;
}

.article-panier:not(:last-child) {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* === Total panier === */
#total {
  font-size: 1.2rem;
  text-align: right;
  font-weight: 400;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* === Bouton valider === */
#valider-commande {
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 15px;
  margin-top: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #000;
}

#valider-commande:hover {
  background-color: #fff;
  color: #000;
}

#valider-commande:disabled {
  background-color: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* === Bouton retour === */
.bouton-retour {
  display: inline-block;
  margin-bottom: 30px;
  padding: 8px 15px;
  background-color: transparent;
  color: #333;
  text-decoration: none;
  border: 1px solid #333;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bouton-retour:hover {
  background-color: #333;
  color: white;
}

.bouton-retour:hover::before {
  content: "→";
  position: absolute;
  left: -15px;
  transition: all 0.3s ease;
}

.bouton-retour:hover {
  padding-left: 25px;
  padding-right: 10px;
}











/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.produit:nth-child(1) { animation-delay: 0.1s; }
.produit:nth-child(2) { animation-delay: 0.2s; }
.produit:nth-child(3) { animation-delay: 0.3s; }
.produit:nth-child(4) { animation-delay: 0.4s; }
.produit:nth-child(5) { animation-delay: 0.5s; }

@keyframes pop-panier {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.bouton-panier-pop {
  animation: pop-panier 0.3s ease;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }
  
  .liste-produits {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .produit {
    max-width: 400px;
    margin: 0 auto;
  }
  
  #panier-flottant {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
#contenu-panier {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

#contenu-panier.ouvert {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


  
}

    



#creme-btn {
  background-color: white;
  color: #09a0c2;;
  border: 2px solid #09a0c2;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px #09a0c2;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  right: -4%;    
  margin-top: -150px;  /* encore plus haut */
  margin-left: 10px;
}




#creme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #09a0c2;
  z-index: -1;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#creme-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: #09a0c2;
}

#creme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;      /* au lieu de right */
  width: 100%;
  height: 100%;
  background: #09a0c2;
  z-index: -1;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#creme-btn:hover::before {
  left: 0;          /* au lieu de right */
}

#creme-btn span {
  position: relative;
  z-index: 2;
  text-decoration: none;
}


.taille-select {
  appearance: none; /* Supprime le style natif */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  border: 2px solid #333;
  padding: 8px 40px 8px 12px; /* espace à droite pour la flèche */
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  color: #333;
  transition: border-color 0.3s ease;
}

.taille-select:hover,
.taille-select:focus {
  border-color: #333;
  outline: none;
}

/* Flèche personnalisée en SVG, verte */
.taille-select::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg fill='%234CAF50' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Conteneur parent en position relative pour que ::after se place correctement */
.taille-select-wrapper {
  position: relative;
  display: inline-block;
}







.choix-sauces {
  margin-top: 0.5rem;
  font-family: Arial, sans-serif;
}

.choix-sauces label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.sauces-select {
  width: 100%;
  max-width: 260px;
  height: 120px; /* taille pour voir 6 options */
  padding: 6px 8px;
  font-size: 0.9rem;
  border: 1.5px solid #555;
  border-radius: 6px;
  background-color: #fff;
  color: #222;
  cursor: pointer;
  box-sizing: border-box;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
}

.sauces-select:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 5px rgba(255, 107, 0, 0.7);
}

#sauce-warning-TacosM {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #d60000;
}

