/* ==========================================================================
   #ANIMATIONS
   ========================================================================== */
@keyframes goldShine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ==========================================================================
   #VARIABLES
   ========================================================================== */
:root {
  /* Couleurs - Thème clair */
  --light-primary: #f8f8f8;
  --light-secondary: #ffffff;
  --light-text: #333333;
  --light-accent: #d4af37; /* Or */
  --light-shadow: rgba(0, 0, 0, 0.1);
  --light-card: #ffffff;
  --light-border: #e0e0e0;

  /* Couleurs - Thème sombre */
  --dark-primary: #121212;
  --dark-secondary: #1e1e1e;
  --dark-text: #e0e0e0;
  --dark-accent: #d4af37; /* Or */
  --dark-shadow: rgba(0, 0, 0, 0.3);
  --dark-card: #1e1e1e;
  --dark-border: #333333;

  /* Couleurs - Communes */
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  --info: #2196f3;

  /* Typography */
  --font-primary:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-secondary:
    "Playfair Display", Georgia, "Times New Roman", Times, serif;

  /* Espacements */
  --spacing-xsmall: 2px;
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 24px;
  --spacing-xlarge: 32px;

  /* Bordures */
  --border-radius: 8px;
  --border-radius-large: 16px;

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;

  /* Thème par défaut (clair) */
  --primary: var(--light-primary);
  --secondary: var(--light-secondary);
  --text: var(--light-text);
  --accent: var(--light-accent);
  --shadow: var(--light-shadow);
  --card: var(--light-card);
  --border: var(--light-border);
}

/* ==========================================================================
   #THEMES
   ========================================================================== */
body.dark-theme {
  --primary: var(--dark-primary);
  --secondary: var(--dark-secondary);
  --text: var(--dark-text);
  --accent: var(--dark-accent);
  --shadow: var(--dark-shadow);
  --card: var(--dark-card);
  --border: var(--dark-border);
}

/* ==========================================================================
   #BASE
   ========================================================================== */
* {
  /*! margin: 0; */ /* $$$*/
  /*! padding: 0; */
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-feature-settings: "kern", "liga", "clig", "calt";
  -webkit-font-smoothing: antialiased;
  background-color: var(--primary);
  color: var(--text);
  transition:
    background-color var(--transition-medium),
    color var(--transition-medium);
  line-height: 1.6;
  padding-top: 42px;
}

/* ==========================================================================
   #TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   #BUTTONS
   ========================================================================== */
button,
.button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  display: inline-block;
  text-align: center;
}

/* ==========================================================================
   #HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  padding: var(--spacing-small) 0;
  transition: all var(--transition-medium);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-medium);
  gap: 10px;
}

/* ==========================================================================
   #LOGO
   ========================================================================== */
.logo {
  max-height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

/* Effets du logo en mode sombre */
.dark-theme .logo {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 15px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
  position: relative;
  z-index: 1;
  animation: glowPulse 4s infinite ease-in-out;
}

.dark-theme .logo:hover {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
  transform: scale(1.03);
}

/* ==========================================================================
   #NAVIGATION
   ========================================================================== */
.nav-categories {
  display: flex;
  gap: var(--spacing-large);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: var(--spacing-small) 0;
}

.category-btn {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: var(--spacing-small) var(--spacing-medium);
  position: relative;
  opacity: 0.8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
  opacity: 1;
  color: var(--accent);
}

.category-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.category-btn:hover::after,
.category-btn.active::after {
  width: 100%;
}

/* ==========================================================================
   #HEADER ACTIONS
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: flex-start; /*align-items: center;*/
  gap: var(--spacing-medium);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border); /*background-color: rgba(0, 0, 0, 0.1);*/
  color: var(--accent);
}

/* ==========================================================================
   #ANIMATIONS
   ========================================================================== */
@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  }
}

/* ==========================================================================
   #RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .header {
    padding: 0;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xsmall);
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 var(--spacing-xsmall);
    height: 70px;
  }

  .logo {
    max-height: 50px;
  }

  .nav-categories {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary);
    padding: var(--spacing-small) var(--spacing-small);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }

  .header-container {
    height: 60px;
  }

  .logo {
    max-height: 40px;
  }

  .header-actions {
    gap: var(--spacing-small);
    overflow: auto;
  }
}

/* Slogan */
.slogan {
  color: var(--text);
  opacity: 0.8;
  margin-top: 2px;
}

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

.favorites-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  /*margin-right: 1rem;*/
}

.favorites-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.favorites-btn i {
  color: #ff0016;
}

/* Mode sombre */
.dark-theme .favorites-btn {
  color: var(--text);
}

.dark-theme .favorites-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   #MAIN CONTENT
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-large);
}

/* Bandeau d'annonce (Paramètres admin) : fin, doré, masqué par défaut */
.announce-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #d4af37, #f3d27a, #d4af37);
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  text-align: center;
}

.announce-banner[hidden] {
  display: none;
}

.announce-banner i {
  flex-shrink: 0;
}

/* ==========================================================================
   #HOME SECTION
   ========================================================================== */
.home-section {
  margin-top: var(--spacing-large);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-large);
  box-shadow: 0 8px 16px var(--shadow);
}

/* .carousel-slide/.carousel-slide img du carousel principal sont définis plus
   bas (§ ModernCarousel). Les règles legacy (.carousel-btn, .carousel-slide
   display:flex/height:400px) ont été supprimées : elles entraient en conflit
   avec le rendu du ModernCarousel (collision P5) et leur markup est mort. */

/* ==========================================================================
   #MENU SECTION
   ========================================================================== */
.menu-section {
  margin-top: var(--spacing-xlarge);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-xlarge);
  position: relative;
  /*! display: inline-block; */
  color: var(--text);
}

/* ==========================================================================
   #DISH GRID
   ========================================================================== */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-large);
  margin-top: var(--spacing-large);
}

/* ==========================================================================
   #DISH CARD
   ========================================================================== */
.dish-card {
  background-color: var(--card, #fff); /*white;*/
  border-radius: var(--border-radius, 8px); /*var(--border-radius);*/
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow, rgba(0, 0, 0, 0.1));
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease; /*all var(--transition-medium);*/
  display: flex;
  flex-direction: column;
  position: relative; /*border: 1px solid #f0f0f0;*/
  height: 100%;
}

.dish-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow, rgba(0, 0, 0, 0.1)); /*0 8px 16px rgba(0, 0, 0, 0.1);*/
  border-color: #e0e0e0;
}

.dish-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.popular-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent, #d4af37);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

/* Badge promo : en ligne avec le prix (jamais en absolu pour ne pas
   chevaucher le cœur favori) */
.promo-badge {
  display: inline-block;
  background-color: #e63946;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Badge + carte grisée pour les plats indisponibles */
.unavailable-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  z-index: 1;
}

.dish-card.unavailable .dish-image {
  filter: grayscale(0.8);
  opacity: 0.7;
}

.dish-card.unavailable .btn-add-to-cart:disabled,
.dish-card.unavailable .customize-link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

/* Prix : ancien barré + promo en avant */
.dish-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dish-price-old {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.85em;
  font-weight: 400;
}

.dish-price-promo {
  color: #e63946;
  font-weight: 700;
}

.cart-item-oldprice {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.8em;
}

/* Ingrédients indisponibles barrés sur la carte */
.dish-ingredients s {
  opacity: 0.65;
}

/* Mode employé : onglets restreints + note */
#adminModal.staff-mode .tabs .tab-btn:not([data-tab="dispo"]) {
  display: none;
}

.staff-note {
  background: #fff8e1;
  border: 1px solid #f0d27a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Lignes dispo (plats + ingrédients) */
.dispo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border, #f0f0f0);
}

.dispo-row .dispo-name {
  flex: 1;
}

.dispo-row select {
  max-width: 170px;
}

.dispo-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
}

.dispo-switch input {
  width: 20px;
  height: 20px;
}

/* Éditeur des suppléments (Paramètres) */
.supp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.supp-row input[type="text"] {
  flex: 2;
}

.supp-row input[type="number"] {
  flex: 1;
  min-width: 90px;
}

.supp-del {
  background: transparent;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 12px;
  min-height: 44px;
}

.dish-info {
  padding: 15px; /*20px;*/
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px; /*12px;*/
}

.dish-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem; /*22px;*/
  font-weight: 650;
  color: #d4af37; /*var(--text, #333);*/
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.dish-price {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem; /*18px;*/
  font-weight: 500;
  color: var(--accent, #d4af37);
  margin-left: 10px;
  white-space: nowrap;
}

.dish-ingredients {
  font-family: "Montserrat", sans-serif;
  color: #666; /*var(--text, #666);*/
  font-size: 0.9rem; /*14px;*/
  line-height: 1.5;
  margin: 0 0 16px 0; /*margin-bottom: 16px; */
  flex-grow: 1;
}

.dish-nutrition {
  display: flex;
  gap: 24px;
  margin-bottom: 5px;
  /*    padding-top: 5px;
	min-height: 20px;*/
  border-top: 0.1px solid var(--border, #eee);
  justify-content: center;
  align-items: center;
}

.dish-nutrition:empty {
  display: none;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.nutrition-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px; /*0.8rem;*/
  color: var(--text-light, #888);
}
/*
.nutrition-item .icon {
    font-size: 14px;
}
.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d4af37;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 1;
}
*/
.dish-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border, #eee);
}

.btn-add-to-cart {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add-to-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-add-to-cart:hover::before {
  left: 100%;
}

.btn-add-to-cart:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart i {
  font-size: 0.9rem;
}

/* Animation de clic */
@keyframes clickWave {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.btn-add-to-cart:active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  animation: clickWave 0.5s ease-out;
  pointer-events: none;
}

/* Icône avec animation */
.btn-add-to-cart i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i {
  transform: rotate(90deg);
}

/* Effet pour le mode sombre */
.dark-theme .btn-add-to-cart {
  color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-theme .btn-add-to-cart:hover {
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6);
}

/* Animation de succès après l'ajout */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.btn-add-to-cart.added {
  animation: successPulse 0.5s ease;
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.btn-add-to-cart:hover .quantity-badge {
  transform: scale(1.1) rotate(15deg);
}

.dark-theme .dish-card {
  background: #1e1e1e;
  border-color: #333;
}

.dark-theme .dish-name {
  color: #f0f0f0;
}

.dark-theme .dish-ingredients {
  color: #aaa;
}

.dark-theme .dish-nutrition {
  border-color: #333;
}

.dark-theme .nutrition-item {
  color: #888;
}

.dark-theme .favorite-btn {
  color: #555;
}

.dark-theme .favorite-btn.favorited {
  color: #f00;
}

/* ==========================================================================
   #FAVORITE BUTTON ***Dans les CARDS***
   ========================================================================== */
.favorite-btn {
  position: absolute;
  top: var(--spacing-small);
  left: var(--spacing-small);
  color: var(--accent);
  border: 0.2px solid #ff6b6b; /*none;*/
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /*! cursor: pointer; */
  /*! color: #ccc; */
  transition: all var(--transition-fast);
  z-index: 2;
  /*background-color: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.05) 100%
	);	*/
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 215, 0, 0.65) 50%,
    rgba(255, 215, 0, 0.05) 100%
  );
  /*border: 1px solid rgba(255, 215, 0, 0.4);
    border-left: 2px solid #FFD700;*/
  animation: goldShine 4s linear infinite;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.1);
}

.favorite-btn:hover {
  background-color: white;
  color: #ff4757;
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #ff4757;
}

.favorite-btn i {
  font-size: 1.2rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 115px;
  height: 3px;
  background-color: var(--accent);
}

.favorite-btn.favorited {
  color: #ff4757;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-large);
  margin-top: var(--spacing-medium);
}

/* ==========================================================================
   #CART MODAL
   ========================================================================== */
.cart-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: var(--secondary);
  box-shadow: -5px 0 15px var(--shadow);
  z-index: 2000;
  transition: right var(--transition-medium);
  overflow-y: auto;
}

/* ".cart-modal.active" supprimée : la bascule se fait via style.right, jamais via .active */

.cart-modal-content {
  padding: var(--spacing-large);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   #CART HEADER
   ========================================================================== */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-large);
  padding-bottom: var(--spacing-medium);
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  opacity: 0.7;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.close-cart:hover {
  opacity: 1;
  transform: rotate(90deg);
  background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   #CART ITEMS
   ========================================================================== */
.cart-items {
  flex: 1 1 auto;
  min-height: 0; /* sans ça, la zone plats refuse de rétrécir en colonne flex */
  overflow-y: auto;
  margin-bottom: var(--spacing-medium);
  padding-right: var(--spacing-small);
}

/* Le résumé garde sa hauteur naturelle et ne s'écrase jamais */
.cart-summary {
  flex-shrink: 0;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-small) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: all var(--transition-fast);
  padding-right: 40px;
}

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

.cart-item:hover {
  transform: translateX(-5px);
  background-color: var(--hover);
}

/* ==========================================================================
   #CART ITEM DETAILS
   ========================================================================== */
.cart-item-details {
  flex: 1;
  min-width: 0;
  /*padding: 4px 0;*/
}

.cart-item-name {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qty-price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.cart-item-quantity {
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.cart-item-options {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   #CART ITEM QUANTITY
   ========================================================================== */
.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-left: var(--spacing-medium);
}

.quantity-btn {
  background: var(--card);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quantity-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.quantity-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.quantity-btn:hover {
  background: var(--hover);
}

.quantity-btn:active {
  background: var(--border);
}

.quantity-display {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   #REMOVE ITEM BUTTON
   ========================================================================== */
.remove-item {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  opacity: 0.5;
  transition: all var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.remove-item:hover {
  opacity: 1;
  background-color: rgba(220, 53, 69, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.remove-item:active {
  transform: translateY(-50%) scale(0.95);
  background-color: var(--secondary);
  box-shadow: 0 0 0 2px var(--secondary);
}

.cart-item:hover .remove-item,
.remove-item:hover {
  transform: translateY(-50%) scale(1.2) translateX(-5px);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--danger);
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: var(--spacing-small);
}

.cart-item-price {
  color: var(--accent);
  font-weight: 500;
}

.special-request {
  margin-bottom: var(--spacing-medium);
}

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.special-request-label {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 1px 8px 1px 5px;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 215, 0, 0.15) 50%,
    rgba(255, 215, 0, 0.05) 100%
  );
  background-size: 200% 100%;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-left: 2px solid #ffd700;
  border-radius: 2px;
  letter-spacing: 0.2px;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  animation: shine 3s linear infinite;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.1);
}
.special-request-toggle {
  cursor: pointer;
}

.special-request-details {
  margin: 5px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.9em;
}

.special-request-summary {
  padding: 2px 6px 2px 5px;
  cursor: pointer;
  list-style: none;
  /*    line-height: 1.2;
    display: inline-block;*/
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 215, 0, 0.2) 50%,
    rgba(255, 215, 0, 0.05) 100%
  );
  background-size: 200% 100%;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-left: 2px solid #ffd700;
  border-radius: 2px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  text-transform: lowercase;
  animation: goldShine 4s linear infinite;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.1);
  margin: 0;
}

.special-request-summary:hover {
  background: var(--hover);
  border-color: var(--accent);
}

/* Hide default marker */
.special-request-summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.special-request-summary::after {
  content: "▼";
  float: right;
  transition: transform 0.2s ease;
  font-size: 0.7em;
  margin-top: 4px;
  margin-left: 8px;
}

details[open] > .special-request-summary::after {
  transform: rotate(-180deg);
}

.special-request-content {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  color: var(--text);
}

.special-request textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  padding: var(--spacing-small);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  background-color: var(--secondary);
  color: var(--text);
  resize: both;
  min-height: 50px;
}

.special-request textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.special-request small {
  font-size: 0.6rem;
  line-height: 1;
  display: block;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 4px;
  opacity: 0.7;
}

.total-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 1rem;
}

.total-grand {
  border-top: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.total-grand #grandTotal {
  color: var(--accent, #d4af37);
}

/* Steppers de quantité dans le panier (- / +) */
.qty-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 1px solid var(--border, #e0e0e0);
  background: transparent;
  color: var(--text, #333);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0;
}

.qty-btn:hover {
  background: var(--accent, #d4af37);
  border-color: var(--accent, #d4af37);
  color: #111;
}

.qty-price-container .cart-item-quantity {
  min-width: 2.2em;
  text-align: center;
}

.cart-actions {
  display: flex;
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

/* Mobile : compacter le panier pour laisser un max de place aux plats.
   Les <details> (supplément/suivi) restent repliés par défaut ; on réduit
   tout ce qui entoure la liste : header, totaux, boutons, aides. */
@media (max-width: 480px) {
  .cart-modal-content {
    padding: var(--spacing-medium);
  }

  .cart-header {
    margin-bottom: var(--spacing-small);
    padding-bottom: var(--spacing-small);
  }

  .cart-header h3 {
    font-size: 1.2rem;
  }

  .special-request small {
    display: none;
  }

  .special-request-content {
    padding: 8px;
  }

  .special-request textarea {
    min-height: 38px;
  }

  .total-container {
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .total-grand {
    font-size: 1.05rem;
  }

  .cart-actions {
    gap: 8px;
    margin-top: var(--spacing-small);
  }

  .cart-actions .btn-clear,
  .cart-actions .btn-checkout {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .cart-item {
    padding-right: 32px;
  }
}

.btn-clear {
  flex: 1;
  padding: var(--spacing-medium);
  background-color: var(--danger);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-clear:hover {
  /*background-color: #e53935;$$$*/
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-checkout {
  flex: 2;
  padding: var(--spacing-medium);
  background-color: var(--accent);
  color: var(--secondary);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-checkout:hover {
  background-color: #c9a227;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

/*.payment-options {
    margin-top: var(--spacing-large);
    padding-top: var(--spacing-medium);
    border-top: 1px solid var(--border);
}

.payment-options h4 {
    margin-bottom: var(--spacing-medium);
    text-align: center;
}

.btn-payment {
    width: 100%;
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
    background-color: var(--card);
    color: var(--text);
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.btn-payment:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.online-payment {
    display: flex;
    gap: var(--spacing-medium);
    margin-top: var(--spacing-medium);
}

.btn-payment-method {
    flex: 1;
    padding: var(--spacing-medium);
    background-color: var(--card);
    color: var(--text);
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-small);
}

.btn-payment-method:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}*/

/* Étape paiement : 3e ligne <details>, onglets sur une ligne */
.pay-step {
  margin-top: 8px;
}

.pay-step .special-request-summary {
  font-weight: 600;
}

.pay-methods {
  display: flex;
  gap: 8px;
}

.pay-method {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.pay-method[hidden] {
  display: none;
}

.pay-method input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pay-method:has(input:checked) {
  border-color: var(--accent, #d4af37);
  background: color-mix(in srgb, var(--accent, #d4af37) 8%, transparent);
}

.pay-online-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--accent, #d4af37);
  border-radius: 8px;
  font-size: 0.9rem;
}

.pay-online-panel[hidden] {
  display: none;
}

.pay-online-panel p {
  margin: 4px 0;
}

/* Overlay pour modals */
/*.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}*/

/* Styles responsives */
@media (max-width: 768px) {
  /*.header-container {
        flex-direction: column;
        gap: var(--spacing-medium);
        padding: var(--spacing-medium);
    }
    
    .nav-categories {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--spacing-small);
        -webkit-overflow-scrolling: touch;
    }
    
    .header-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }*/

  /*    .search-container input {
        width: 150px;
    }
    
    .search-container input:focus {
        width: 180px;
    }*/

  .menu-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .cart-modal {
    max-width: 100%;
  }

  /*    .import-export-container {
        flex-direction: column;
    }
    
    .stats-container {
        flex-direction: column;
    }*/
}

/*@media (max-width: 480px) {
    body {
        padding-top: 120px;
    }
    
    .search-container-large {
        flex-direction: column;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .menu-container {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .online-payment {
        flex-direction: column;
    }
}*/

/* Animation pour le panier */
@keyframes cartPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
    background-color: #f1c40f;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  }
}

/* Animation de pulsation continue premium */
.floating-cart.has-items {
  animation: cartPulse 1.8s infinite;
  /*animation: continuousPulse 2s ease-in-out infinite;*/
}

@keyframes continuousPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  }
}

/*.cart-icon-container.pulse {
    animation: cartPulse 1.5s infinite;
}*/

/* Animation pour les cartes de plats --PULSE GOLD--OK*/
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 5px rgba(212, 175, 55, 0.5),
      0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow:
      0 0 10px rgba(212, 175, 55, 0.8),
      0 0 20px rgba(212, 175, 55, 0.5),
      0 0 40px rgba(212, 175, 55, 0.4);
  }
  100% {
    box-shadow:
      0 0 5px rgba(212, 175, 55, 0.5),
      0 0 10px rgba(212, 175, 55, 0.3);
  }
}

/* Notification Ajouté au Panier */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  color: #1a1a1a;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.4),
    0 4px 16px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cart-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/*.cart-notification i {
    font-size: 20px;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}*/

/* Animation d'apparition premium */
@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.cart-notification.show::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: goldShimmer 1.5s ease-in-out;
  border-radius: inherit;
  pointer-events: none;
}

/* ==========================================================================
   #RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .cart-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 14px 20px;
    font-size: 14px;
    transform: translateY(-100px);
  }

  .cart-notification.show {
    transform: translateY(0);
  }
}

/* Panier Flottant Gold */
/*.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Masqué par défaut, affiché par JavaScript quand nécessaire ++++++
}*/

/*.floating-cart.pulse {
    animation: floatingCartPulse 0.6s ease-in-out;
}

.cart-bubble {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4),
                0 4px 16px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: floatingCartPulse 2s infinite;
    transition: all 0.3s ease;
}

.cart-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6),
                0 6px 20px rgba(212, 175, 55, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cart-bubble i {
    font-size: 24px;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
    border: 2px solid #fff;
    animation: badgePulse 1.5s infinite;
}

@keyframes floatingCartPulse {
    0% {
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4),
                    0 4px 16px rgba(212, 175, 55, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6),
                    0 6px 20px rgba(212, 175, 55, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4),
                    0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    100% {
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4),
                    0 4px 16px rgba(212, 175, 55, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3),
                    0 0 0 20px rgba(212, 175, 55, 0);
    }
}

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

@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-bubble {
        width: 60px;
        height: 60px;
    }
    
    .cart-bubble i {
        font-size: 20px;
    }
    
    .cart-count-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}
*/
.dish-card.selected {
  animation: neonPulse 2s infinite;
}

/* Pour un effet plus doux sur mobile */
/*@media (hover: hover) {
    .cart-item:hover {
        transform: translateX(-5px);
    }
    
    .cart-item:hover .remove-item,
    .remove-item:hover {
        transform: translateY(-50%) scale(1.2) translateX(-5px);
    }
}*/

/* Notification de confirmation de vidage du panier ---OK*/
.clear-cart-confirmation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  padding: 1rem;
}

.clear-cart-confirmation.show {
  display: flex;
  opacity: 1;
}

.clear-cart-confirmation .confirmation-content {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 380px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.clear-cart-confirmation.show .confirmation-content {
  transform: translateY(0);
}

.clear-cart-confirmation .confirmation-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.clear-cart-confirmation p {
  margin: 0.5rem 0 1.5rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

/*.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}*/

.btn-confirm,
.btn-cancel {
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-confirm {
  background: linear-gradient(135deg, #ff5252, #ff1744);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-confirm:active {
  transform: translateY(0);
}

.btn-cancel {
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.btn-cancel:active {
  transform: translateY(0);
}

/* Mode sombre */
.dark-theme .clear-cart-confirmation {
  background-color: rgba(0, 0, 0, 0.7);
}

.dark-theme .clear-cart-confirmation .confirmation-content {
  background: var(--card);
  border-color: var(--border);
}

.dark-theme .btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.dark-theme .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Animation d'icône */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-3px);
  }
  40%,
  80% {
    transform: translateX(3px);
  }
}

/*.clear-cart-confirmation .fa-trash {
    color: #ff5252;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: shake 0.6s ease-in-out;
}*/

/* Réduire l'espace sur mobile */
/*@media (max-width: 480px) {
    .clear-cart-confirmation .confirmation-content {
        padding: 1.25rem 1rem;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-confirm,
    .btn-cancel {
        width: 100%;
        padding: 0.6rem;
    }*/

/* ==========================================================================
   #FOOTER
   ========================================================================== */
.footer {
  background-color: var(--dark-secondary);
  color: #fff;
  padding: 0.8rem 1rem 0.3rem;
  position: relative;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--light-accent),
    transparent
  );
  animation: shine 3s infinite;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  padding: 0.2rem;
}

.footer-section h3 {
  color: var(--light-accent);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--light-accent);
}

.contact-info p {
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.contact-info i {
  color: var(--light-accent);
  width: 16px;
  text-align: center;
  font-size: 0.9em;
}

.map-link {
  color: var(--light-accent);
  margin-left: 5px;
  font-size: 1em;
  transition: transform 0.3s;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background-color: var(--light-accent);
  color: #000;
}

.social-icon.whatsapp:hover {
  background-color: #25d366;
  color: #fff;
}

.about-link {
  display: inline-flex;
  align-items: center;
  color: var(--light-accent);
  margin-top: 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  gap: 5px;
}

.about-link:hover {
  text-decoration: underline;
}

.nutrition-link {
  color: var(--light-accent);
  text-decoration: none;
  font-weight: 500;
}

.nutrition-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 0.5rem 0 0.2rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Icônes désactivées */
.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.disabled::after {
  content: "Bientôt";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.disabled:hover::after {
  opacity: 1;
}

/* Animation de la barre scintillante */
@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-section {
    padding: 0.3rem;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.2rem 0.8rem 0.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .contact-info p {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   #ABOUT MODAL
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: block;
  opacity: 1;
}
.modal.hiding {
  opacity: 0;
}

.modal-content {
  position: relative;
  background-color: var(--secondary);
  color: var(--text);
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.modal.show .modal-content {
  animation: modalFadeIn 0.35s ease-out;
}
.modal.hiding .modal-content {
  animation: modalFadeOut 0.25s ease-in;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.close-modal:hover {
  color: var(--text);
  background-color: var(--border);
}
.close-modal:active {
  transform: scale(0.96);
}

.about-modal-content {
  position: relative;
  padding: 20px 0;
}

.about-modal-content h1 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  animation: slideDown 0.8s ease;
}

.about-modal-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 3px;
}

.about-modal-content h2 {
  color: var(--accent);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  animation: slideUp 0.8s ease;
}

.about-modal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  animation: fadeInText 1s ease;
  color: var(--text);
}

.about-modal-content .highlight {
  color: var(--accent);
  font-weight: 500;
}
.about-modal-content .signature {
  text-align: right;
  font-style: italic;
  margin-top: 3rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.nutrition-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.nutrition-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   #SEARCH RESULTS
   ========================================================================== */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--card);
  border-radius: var(--border-radius);
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

/* Smooth transitions for search */
.modern-carousel,
#homeSection,
#menuSection {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* ==========================================================================
   #FLOATING CART
   ========================================================================== */
/* Accessibilité: texte uniquement pour lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-radius: 50%;
  border: none;
  padding: 0;
  display: none; /* hidden by default; shown when .has-items */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  z-index: 1000;
  font-size: 1.5rem;
  color: #fff;
  font-family: inherit;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.floating-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* Show when there are items in cart */
.floating-cart.has-items {
  display: flex;
}

.floating-cart .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none; /* scripts.js toggles visibility */
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.floating-cart.pulse {
  animation: pulse 0.6s;
}

/* Search (Premium) */
.search-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 215, 0, 0.15) 100%
  );
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.search-toggle:hover {
  color: var(--accent);
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(255, 215, 0, 0.2) 100%
  );
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2);
}

/* Bouton Partager — même style que search-toggle */
.share-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 215, 0, 0.15) 100%
  );
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 215, 0, 0.3);
  cursor: pointer;
  font-size: 0.95rem;
}
.share-toggle:hover {
  color: var(--accent);
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(255, 215, 0, 0.2) 100%
  );
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2);
}
.share-toggle:active {
  transform: translateY(0);
}

/* Toast notification générique */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  z-index: 11000;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
  max-width: calc(100vw - 32px);
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-notification i {
  color: var(--accent);
}

/* Bandeau de mise à jour (nouveau SW prêt) : persistant jusqu'au rechargement */
.update-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 12px 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  z-index: 11000;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
  max-width: calc(100vw - 32px);
}

.update-banner:not([hidden]) {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.update-banner i {
  color: var(--accent);
}

.update-banner button {
  border: none;
  border-radius: 999px;
  background: var(--accent, #d4af37);
  color: #111;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 16px;
  z-index: 1200;
  opacity: 0;
  transition: opacity var(--transition-medium);
}
.search-overlay.open {
  display: flex;
  opacity: 1;
}

.search-panel {
  width: min(500px, 90%);
  background: var(--card);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 16px 8px 40px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  /*  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);*/
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  color: var(--accent);
}

.search-input {
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  border: none;
  border-radius: 0;
  padding: 10px 36px 10px 8px;
  outline: none;
  height: 36px;
  box-sizing: border-box;
}
.search-input:focus {
  box-shadow: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
}
.search-clear:hover {
  color: var(--danger);
  background: rgba(255, 0, 0, 0.1);
}
/* Utilities */
body.no-scroll {
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ====== MODERN CAROUSEL ====== */
.modern-carousel {
  --carousel-height: 60vh;
  --carousel-max-height: 600px;
  --carousel-padding: 1.5rem;
  --carousel-button-size: 3rem;
  --carousel-dot-size: 0.75rem;
  --carousel-dot-active-size: 1.25rem;
  --carousel-transition-duration: 500ms;
  --carousel-easing: cubic-bezier(0.4, 0, 0.2, 1);

  width: 100%;
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: var(--carousel-height);
  max-height: var(--carousel-max-height);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform var(--carousel-transition-duration)
    var(--carousel-easing);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--carousel-transition-duration) var(--carousel-easing);
  /* will-change removed to optimize performance */
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  /* will-change removed to optimize performance */
  backface-visibility: hidden;
}

.carousel-img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-img-hover {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.carousel-img-container:hover .carousel-img-hover,
.carousel-img-container:focus .carousel-img-hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.carousel-img-container:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem var(--carousel-padding);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.carousel-caption h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff; /* sinon le h3 hérite #333 (--text) et est illisible sur la photo */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
  margin: 0;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  opacity: 0.9;
  color: #fff; /* même raison : hérite sinon de --text (#333) */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--carousel-button-size);
  height: var(--carousel-button-size);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.8;
}

.carousel-button:hover,
.carousel-button:focus {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  outline: none;
}

.carousel-button.prev {
  left: var(--carousel-padding);
}

.carousel-button.next {
  right: var(--carousel-padding);
}

.carousel-button svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

/* Pagination Dots */
.carousel-pagination {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  padding: 0 var(--carousel-padding);
}

.carousel-dot {
  width: var(--carousel-dot-size);
  height: var(--carousel-dot-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: white;
  transform: scale(1.2);
}

/* Touch and Mobile Optimizations */
@media (hover: none) {
  .carousel-button {
    --carousel-button-size: 2.5rem;
  }

  .carousel-caption {
    padding: 1rem var(--carousel-padding);
  }

  .carousel-dot {
    --carousel-dot-size: 0.875rem;
    --carousel-dot-active-size: 1rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .modern-carousel {
    --carousel-height: 50vh;
    --carousel-padding: 1rem;
    margin: 1rem 0;
  }

  .carousel-button {
    --carousel-button-size: 2.25rem;
    opacity: 0.9;
  }

  .carousel-caption h3 {
    margin-bottom: 0.25rem;
  }

  .carousel-pagination {
    bottom: 0.5rem;
  }
}

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

.carousel-slide {
  animation: fadeIn var(--carousel-transition-duration) var(--carousel-easing)
    forwards;
}

/* État vide / repli du panier et de la liste admin */
.empty-cart,
.dish-image--missing {
  display: block;
}
.empty-cart {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted, #777);
  font-style: italic;
}
.admin-dish-item img {
  max-width: 80px;
}
img.dish-image--missing {
  object-fit: contain;
  opacity: 0.7;
  background: #f4f4f4;
}

/* Rangée "Modifier les ingrédients" : volontairement effacée —
   pas de filet, pas de fond, petit texte. La hauteur tactile (44 px)
   est conservée pour le mobile, seul le visuel s'allège. */
.customize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 4px 2px;
  margin: 0;
  min-height: 44px;
  color: var(--text-light, #888);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.customize-row:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.customize-chevron {
  font-size: 1rem;
  line-height: 1;
  color: var(--text-light, #888);
}

/* Bottom-sheet de personnalisation (mobile-first) */
.customize-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
}

.customize-modal[hidden] {
  display: none;
}

.customize-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.customize-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 640px;
  margin: 0 auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--text, #222);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  animation: sheetUp 0.25s ease-out;
}

@keyframes sheetUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.customize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #eee);
}

.customize-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.customize-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.customize-body {
  padding: 12px 16px;
  overflow-y: auto;
}

.customize-body h4 {
  margin: 12px 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #777);
}

.customize-body h4:first-child {
  margin-top: 0;
}

.customize-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
  border-bottom: 1px dashed var(--border, #f0f0f0);
}

.customize-opt input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.customize-opt .opt-name {
  flex: 1;
}

.customize-opt .opt-price {
  font-weight: 600;
  color: var(--accent, #d4af37);
  white-space: nowrap;
}

/* Ingrédient globalement indisponible : non cochable */
.customize-opt.opt-missing {
  opacity: 0.6;
}

.customize-opt.opt-missing .opt-name {
  text-decoration: line-through;
}

.opt-missing-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e63946;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.customize-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border, #eee);
  background: var(--card, #fff);
}

.customize-footer #customizeTotal {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Lignes de personnalisation dans le panier */
.cart-item-custom {
  font-size: 0.8rem;
  color: var(--text-muted, #777);
  margin: 2px 0 0;
}

.cart-item-custom .extra-price {
  color: var(--accent, #d4af37);
  font-weight: 600;
}

/* ====== END OF STYLES ====== */
