/* styles_improved.css - version modernisée et responsive */
/* Mobile-first */

:root{
    --bg: #fff;
    --surface: #ffffff;
    --muted: #6b7280;
    --accent: #ff5a3c;
    --accent-600: #e84a2e;
    --text: #111827;
    --radius: 12px;
    --glass: rgba(255,255,255,0.6);
    --shadow-sm: 0 1px 2px rgba(16,24,40,0.06);
    --shadow-md: 0 6px 20px rgba(16,24,40,0.12);
    --container: 1080px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  }

  
  
  *{box-sizing:border-box}
  html,body{height:100%;margin:0;background:linear-gradient(180deg,#fff 0%, #fffaf4 100%);color:var(--text);-webkit-font-smoothing:antialiased}
  .container{max-width:var(--container);margin:0 auto;padding:0 16px}
  
  /* Header */
  .site-header {
    background: white;
    padding: 14px 0;
    position: fixed;   /* ✅ remplace sticky par fixed */
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(6px);
    z-index: 1000;     /* plus haut que 40 pour passer devant tout */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* petit effet d'ombre */
  }
  
  /* Décalage du contenu pour ne pas passer sous le header */
  body {
    padding-top: 70px; /* ajuste selon la hauteur exacte de ton header */
  }
  .header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .sous-titre{ padding-left: 20px;}
  
  .brand{display:flex;align-items:center;gap:12px}
  .logo{height:48px;width:48px;object-fit:contain;border-radius:8px;box-shadow:var(--shadow-sm)}
  .brand-text h1{margin:0;font-size:18px;letter-spacing:0.4px}
  .tagline{margin:0;font-size:12px;color:var(--muted)}
  
  /* Buttons */
  .btn{background:transparent;border:1px solid transparent;padding:8px 12px;border-radius:10px;font-weight:600;cursor:pointer;transition:all .18s;font-size:18px}
  .btn:hover{transform:translateY(-2px)}
  .icon-btn{display:inline-flex;align-items:center;gap:8px;background:var(--surface);box-shadow: 3px 2px 2px grey;padding:8px 10px;border-radius:10px}
  .cart-count{background:var(--accent);color:white;padding:2px 8px;border-radius:999px;font-size:12px;margin-left:6px}
  
  
  /* Main layout */
  .main-layout{display:grid;grid-template-columns:1fr;gap:18px;padding:18px 0}
  .menu-controls{margin-bottom:12px}
  #search{width:100%;padding:12px;border-radius:10px;border:1px solid #ececec;font-size:14px}
  
  /* Menu grid */
  .menu-grid{display:grid;grid-template-columns:1fr;gap:14px}
  .menu-card{display:flex;flex-direction:row;background:white;border-radius:12px;overflow:hidden;box-shadow:var(--shadow-md);align-items:stretch}
  .card-media{width:130px;background-size:cover;background-position:center;height:100px;flex-shrink:0}
  .card-body{padding:12px;display:flex;flex-direction:column;justify-content:space-between;flex:1}
  .card-title{margin:0;font-size:16px}
  .card-desc{margin:6px 0 10px;color:var(--muted);font-size:13px}
  .card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .price{font-weight:400}

  
  /* Cart drawer */
  .cart-items{padding:12px 0;overflow:auto;flex:1}
  .cart-footer{padding-top:8px;border-top:1px solid #f7f7f7;display:flex;flex-direction:column;gap:10px}
  .primary{background:var(--accent);color:white;padding:12px;border-radius:10px;border:0;font-weight:700;cursor:pointer}
  .empty{color:var(--muted);text-align:center;padding:20px 0}
  
  /* Footer */
  .site-footer{padding:18px 0;text-align:center;color:var(--muted);font-size:13px;border-top:1px solid rgba(0,0,0,0.04);margin-top:36px}
  
  /* Larger screens */
  @media(min-width:900px){
    .main-layout{grid-template-columns: 1fr 360px;align-items:start}
    .menu-grid{grid-template-columns: repeat(2,1fr)}
    .card-media{height:120px;width:140px}
    
  }
  @media(min-width:1200px){
    .menu-grid{grid-template-columns: repeat(3,1fr)}
  }
  /* Accessibility */
  .visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

  /* Catégories */
.categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-header {
  width: 100%;
  font-size: 19px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔑 flèche à droite */
  gap: 10px;
}
.category-header:hover {
  background: #fafafa;
}
.category-content {
  display: none;
  padding: 12px 0;
}
.category-content.open {
  display: block;
}
.arrow {
  font-size: 14px;
  color: var(--muted);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre l’image et le texte */
}

.category-icon {
  width: 65px;   /* taille de l’icône */
  height: 65px;
  object-fit: contain; /* garde les proportions */
 
}

.category-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Disposition verticale des articles */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Variantes (toggle boutons) */
.variants {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.variant-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.variant-btn:hover {
  background: #f1f1f1;
}
.variant-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Sous-catégories */
.subcategory {
  margin: 8px 0;
}

.subcategory-header {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subcategory-header:hover {
  background: #f0f0f0;
}

.subcategory-content {
  display: none;
  padding: 10px 0;
}
.subcategory-content.open {
  display: block;
}

.subcategory-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subcategory-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.subcategory-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.subcategory-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-btn {
  width: 24px;           /* largeur du bouton */
  height: 24px;          /* hauteur du bouton */
  border-radius: 50%;    /* rond parfait */
  border: none;
  background-color: #eee; /* couleur de fond, à ajuster */
  color: #333;           /* couleur du "i" */
  font-size: 16px;       /* taille du "i" */
  font-weight: bold;     /* "i" plus lisible */
  display: inline-flex;
  vertical-align: middle; /* aligne avec le texte */
  margin-left: 6px;       /* petit espace entre titre et bouton */
  align-items: center;   /* centre verticalement */
  justify-content: center; /* centre horizontalement */
  cursor: pointer;
  padding: 0;            /* éviter le décalage dû au padding */
}

.info-btn:hover {
  background-color: #ddd; /* petit effet au survol */
}


.info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  padding: 20px;
  width: 90%;
  max-width: 360px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  text-align: left; /* ✅ force l’alignement */
}

.info-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.info-modal h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.info-modal p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.info-modal .close-info {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}



.cart-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding: 14px;
  background: #fafafa;
}


  


  

.close-cart {
  width: 20px;           /* largeur du bouton */
  height: 20px; 
}

/* Modal étape par étape */
.step-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2100;
}

.step-modal.open { display: flex; }

.step-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.close-step {
  position: absolute;
  top: 10px; right: 10px;
  border: none; background: transparent;
  font-size: 20px; cursor: pointer;
}

.step-options {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  max-height: 300px;  /* hauteur visible (ajuste si besoin) */
  overflow-y: auto;   /* active le scroll */
  padding-right: 6px; /* espace pour scrollbar */
}

.step-options button {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-options button:hover {
  background: #f0f0f0;
}

.step-options img {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.back-step {
  position: absolute;
  top: 10px;
  left: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: none; /* masqué par défaut */
}

.step-options button.selected {
  border: 2px solid var(--accent);
  border-color: #00ff00;
  background: #ecf8e0;
}

.step-options .btn.primary {
  background-color: #000;   /* fond noir */
  color: #fff;              /* texte blanc */
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.step-options .btn.primary:hover {
  background-color: #333; /* léger éclaircissement au survol */
}

#step-options button span {
  font-size: 15px;
  font-weight: 500;
}


/* Supprime la coloration bleue par défaut sur mobile */
a, button, .category-header, .subcategory-header {
  color: #000;              /* texte noir */
  text-decoration: none;    /* pas de soulignement */
  -webkit-tap-highlight-color: transparent; /* supprime le flash bleu iOS */
}

/* État actif / focus (quand on clique) */
a:active, a:focus,
button:active, button:focus,
.category-header:active, .category-header:focus,
.subcategory-header:active, .subcategory-header:focus {
  color: #000;              /* reste noir */
  outline: none;            /* supprime le contour bleu */
}

.cart-item {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 13px;
}

.cart-item h4 {
  margin: 0;
  font-size: 15px;
}

.cart-item-details {
  margin: 2px 0 6px 0; /* petit espacement mais pas de gros saut */
  font-size: 13px;
  color: var(--muted);
}

.cart-line {
  margin: 0 0 4px 0;
  color: var(--text);
}

.cart-line strong {
  font-weight: 600;
  font-size: 16px;
}

.cart-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-meta-line .price {
  font-weight: 600;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #ff5a3c;
  font-size: 10px;
  cursor: pointer;
}

.remove-btn:hover {
  color: #e84a2e;
}


.cart-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}






.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.done-btn {
  background: #16a34a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.done-btn:hover {
  background: #15803d;
}


@keyframes cart-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

#cart-count.animate {
  animation: pop 0.4s ease;
}

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(7); } /* Taille pour augmenter l'effet pop-up */
  100% { transform: scale(1); }
}

/* ✅ Confirmation Modal */
.confirmation-modal {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 2600;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);

  /* Ces propriétés seront appliquées uniquement quand tu veux l’ouvrir */
  justify-content: center;
  align-items: center;
}


.confirmation-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeInScale 0.3s ease;
}

.confirmation-close {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 18px;
  cursor: pointer;
}

.order-id {
  font-weight: bold;
  text-align: left;
  margin-bottom: 25px;
  font-size: 22px;
}

.confirmation-message {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.titrePerso {

font-size: 20px;
font-weight: 600;

}

.image-commande {
  width: 80px;   /* taille de l’icône */
  height: 80px;
}


/* Modal article */
.article-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.article-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}


.article-modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 12px 0;
}

.article-modal-content .btn {
  margin-top: 16px;
  float: right;
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 20px;
  cursor: pointer;
}


/* Drawer panier — slide depuis le bas */
.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;

  width: 100%;
  max-height: 85vh; /* laisse de la place pour header visible */
  background: #fff;

  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.18);

  /* ✅ totalement hors écran quand fermé */
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform .32s ease,
    opacity .2s ease,
    visibility 0s linear .32s;
  will-change: transform;

  overflow-y: auto; /* scroll interne */
  z-index: 1500; /* inférieur au header */
}

.cart-content {
  flex: 1;              /* prend tout l’espace restant */
  overflow-y: auto;     /* scroll interne */
  padding: 16px;
}

/* Ouvert */
.cart-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform .32s ease,
    opacity .2s ease,
    visibility 0s;
}

.cart-total {
  margin-right: auto; /* ✅ colle le total à gauche */
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 15px;
}

/* Pour mobile : plein écran en largeur mais pas en hauteur */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
    max-height: 80vh; /* tu ajustes selon la taille de ton header */
  }
}

/* Overlay noirci derrière */
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1400; /* sous le drawer mais sous le header aussi */
}


/* Footer toujours visible */
.cart-footer {
  display: flex;
  justify-content: space-between; /* total à gauche, bouton à droite */
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.cart-footer button {
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  width: 250px;
}

.step-footer {
  position: sticky; /* reste en bas du conteneur */
  bottom: 0;
  background: #fff;
  padding: 12px;
  border-top: 1px solid #eee;
  text-align: center;
}

.step-footer .btn.primary {
  width: 100%;
  background-color: #ff5a3c;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px;
}

/* Overlay global */
.category-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 900;              /* Sous le header (1000), au-dessus du contenu */
}
.category-overlay.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Quand une catégorie est ouverte, elle passe AU-DESSUS du voile */
.category.open {
  position: relative;
  z-index: 950; /* supérieur au voile */
  background: #fff; /* optionnel, pour s’assurer que le fond reste net */
}



#article-modal-subtitle {
  margin: 8px 0;
  font-size: 17px;
  font-weight: 600;
  color: #444;
  text-align: center;
}


/* ======================
   🧾 MODAL RÉCAPITULATIF (amélioré)
   ====================== */
   .recap-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 5000 !important;     /* plus haut que tout le monde */
    pointer-events: auto !important;  /* capte les events */
  }
  
  .recap-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    position: relative;

    /* 🔽 clé : structure en colonne */
    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    scroll-behavior: smooth;
    pointer-events: auto !important;

    /* 🔽 la carte a une hauteur maxi, mais ne scrolle plus elle-même */
    max-height: calc(90vh - 40px);
    overflow: hidden; /* ⬅️ au lieu de overflow-y:auto */
  }

  
  .recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .btn-icon {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.1s ease;
  }
  .btn-icon:hover {
    transform: scale(1.15);
  }
  
  .recap-image {
    width: 80%;
    border-radius: 12px;
   /* margin: 15px 0;*/
  }
  
  #recap-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
  }
  
  #recap-price {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  /* ✅ chaque option sur une ligne */
  .recap-summary {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;

    /* 🔽 devient la zone qui scrolle */
    flex: 1;
    overflow-y: auto;

    /* petit espace pour éviter que le texte touche le bouton */
    padding-bottom: 12px;
    margin-bottom: 0; /* ⬅️ important : on vire le margin-bottom */
  }

  
  .recap-option {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .recap-option img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 10px;
  }
  
  .recap-option span {
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: #333;
  }



.recap-option.customize:hover {
  transform: scale(1.02);
  transition: all 0.2s ease;
}
  
/* ✅ Footer ancré en bas du viewport du modal */
.recap-footer {
  /* 🔽 ne colle plus au scroll, reste en bas de la carte */
  position: relative;
  bottom: 0;

  background: #fff;
  padding: 14px 0;
  text-align: center;
  border-top: 1px solid #eee;
  z-index: 10;
  width: 100%;
  flex-shrink: 0; /* ⬅️ pour éviter qu’il rétrécisse si peu d’espace */
}


.recap-modal.open {             /* on l’ouvrira en JS avec .open */
  display: flex !important;
}



/* Empêche le fond de scroller quand un modal est ouvert */
body.modal-open {
  overflow: hidden !important;
}


/* ✅ Bouton parfaitement centré et stable */
.recap-add {
  width: 85%;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  background-color: #ef4224;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.recap-add:hover {
  background-color: #f35e44;
  transform: scale(1.02);
}


.ingredients-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  inset: 0;
  z-index: 5100;
}

.ingredients-modal.open {
  display: flex;
}

.ingredients-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: calc(90vh - 40px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

.ingredients-header {
  display: flex;
  justify-content: flex-end; /* ✅ pousse le bouton tout à droite */
  padding: 8px 12px;
}

.ingredients-header .btn-icon {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s ease;
}

.ingredients-header .btn-icon:hover {
  transform: scale(1.1);
}


.ingredients-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.ingredients-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.ingredients-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.ingredients-footer button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

#ingredients-title {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 600;
}


/* TITRE DE CATEGORIE */
.ingredient-category-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 16px 0 8px;
  text-transform: uppercase;
  color: #444;
}

/* BOUTONS D'INGRÉDIENTS */
.ingredient-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ingredient-btn img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.ingredient-btn span {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.ingredient-btn.selected {
  /*background: #ffe9c7;*/
 
  border: 2px solid var(--accent);
  border-color: #00ff00;
  background: #ecf8e0;
}


/* Empêche un modal fermé de bloquer les clics */
.step-modal:not(.open),
.recap-modal:not(.open),
.ingredients-modal:not(.open) {
  pointer-events: none;
}

.recap-option.customize {
  display: flex;
  /*align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;*/
  border-bottom: 1px solid #eee;
  margin-top: 15px;
  margin-bottom: 40px; /* espace entre le bouton Personnaliser et les autres */
}

.recap-option.customize img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  /*object-fit: cover;*/
}

.recap-option-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.recap-option-text {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.recap-custom-details {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.2;
  display: block;
}


/* --- Animation douce de fermeture du recap-modal --- */
/* --- Sortie du recap-modal (ultra rapide mais propre) --- */
.recap-modal.fade-out {
  animation: fadeOutModal 0.02s ease-out forwards;
}

@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* --- Entrée du step-modal (ultra fluide) --- */
.step-modal.open {
  animation: fadeInModal 0.02s ease-out forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ✅ Espacement supplémentaire avant les catégories d'extras */
.ingredient-category-title:not(:first-of-type) {
  padding-top: 53px;
}












  










  