/* ═══════════════════════════════════════════
   MODAL DE PERSONNALISATION BURGER
   ═══════════════════════════════════════════ */

.burger-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.burger-modal[style*="display: flex"] {
  display: flex !important;
}

.burger-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.burger-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

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

.burger-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.burger-modal-close:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
  transform: rotate(90deg);
}

.burger-modal-close i {
  width: 20px;
  height: 20px;
}

.burger-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 2px solid #f0f0f0;
}

.burger-modal-header h2 {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 32px;
  color: #1a1a1a;
  margin: 0 0 8px;
  padding-right: 2rem;
}

.modal-burger-desc {
  color: #5f5e5a;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.burger-modal-body {
  padding: 25px 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 18px;
  color: #1a1a1a;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.section-icon {
  width: 22px;
  height: 22px;
  color: #c8102e;
  stroke-width: 2.5;
}

.modal-section-subtitle {
  color: #5f5e5a;
  font-size: 13px;
  margin: 0 0 15px;
}

.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extras-category-title {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 13px;
  color: #5f5e5a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 15px 0 5px;
}

.extras-category-title:first-child {
  margin-top: 0;
}

.modal-option-row {
  display: flex;
  align-items: center;
}

.modal-checkbox-label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.modal-checkbox-label:hover {
  background: #f0f0f0;
}

.modal-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #1a1a1a;
  border-radius: 5px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-checkbox:checked + .checkbox-custom {
  background: #c8102e;
  border-color: #c8102e;
}

.modal-checkbox:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.option-name {
  flex: 1;
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
}

.option-price {
  color: #c8102e;
  font-weight: 700;
  font-size: 14px;
  margin-left: 10px;
}

.modal-option-row-fixed {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: #f0f0f0;
  border-radius: 8px;
}

.lock-icon {
  width: 16px;
  height: 16px;
  color: #5f5e5a;
  margin-right: 12px;
  flex-shrink: 0;
}

.option-name-fixed {
  color: #5f5e5a;
  font-weight: 500;
}

.option-fixed-label {
  color: #5f5e5a;
  font-size: 12px;
  font-style: italic;
  margin-left: 10px;
}

.burger-modal .quantity-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 12px;
}

.burger-modal .qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.burger-modal .qty-btn:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
}

.burger-modal .qty-btn i {
  width: 20px;
  height: 20px;
}

.burger-modal .qty-value {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  color: #1a1a1a;
  min-width: 40px;
  text-align: center;
}

.burger-modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fafafa;
  border-radius: 0 0 16px 16px;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-total-label {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: #1a1a1a;
}

.modal-total-price {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  color: #c8102e;
}

.btn-add-to-cart {
  width: 100%;
  padding: 18px;
  background: #c8102e;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-add-to-cart:hover {
  background: #ed1c24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.btn-add-to-cart.btn-success {
  background: #2d9d3f;
  box-shadow: 0 4px 12px rgba(45, 157, 63, 0.3);
}

.btn-customize {
  width: 100%;
  padding: 14px 20px;
  background: #c8102e;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.btn-customize:hover {
  background: #ed1c24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.cart-drawer__item-custom {
  display: block;
  font-size: 0.75rem;
  color: var(--gris-texte, #5f5e5a);
  margin-top: 0.25rem;
  line-height: 1.35;
}

.menu-card__footer--burger {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.menu-card__footer--burger .menu-card__price {
  text-align: center;
}

@media (max-width: 768px) {
  .burger-modal {
    padding: 10px;
  }

  .burger-modal-content {
    max-height: 95vh;
  }

  .burger-modal-header {
    padding: 20px 20px 15px;
  }

  .burger-modal-header h2 {
    font-size: 24px;
  }

  .burger-modal-body {
    padding: 20px;
  }

  .burger-modal-footer {
    padding: 15px 20px;
  }

  .modal-total-price {
    font-size: 24px;
  }

  .btn-add-to-cart {
    padding: 15px;
    font-size: 16px;
  }

  .btn-customize {
    font-size: 13px;
    padding: 12px 16px;
  }
}
