/* =====================================================================
   Khrua Siam — MENU (thème clair « comfy » adouci)
   Fichier: assets/css/menu.css
   Spécifique à la page Menu uniquement. Aucun style global du header/hero.
   ===================================================================== */

/* Bloquer le scroll du body quand modal ouvert */
body.modal-open {
  overflow: hidden;
}

/* Fond et couleurs de la section menu */
.section.menu {
  background: linear-gradient(135deg, var(--cream) 0%, var(--pearl) 100%);
  color: var(--text-primary);
  position: relative;
  padding-top: calc(var(--page-top-gap) + 2rem);
}
.section.menu::before { display: none; }

/* En-tête de section dans la zone menu */
.section.menu .section-header { margin-bottom: 2.4rem; }
.section.menu .section-pretitle,
.section.menu .section-title { color: var(--text-primary); }
.section.menu .section-description { color: var(--text-secondary); }
.section.menu .section-ornament {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--forest-green), var(--copper-gold));
  margin: 2rem auto 0;
  opacity: 0.9;
}

/* Catégories — cartes douces et espacées */
.section.menu .menu-categories {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.section.menu .menu-category {
  background: rgba(255,255,255,0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(30,66,53,0.12);
  border-radius: 26px;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 24px 80px rgba(30,66,53,0.12);
  animation: cardIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

.section.menu .menu-category-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(30,66,53,0.12);
}

.section.menu .menu-category h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--forest-green);
  font-weight: 500;
  letter-spacing: .3px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section.menu .menu-category-subtitle {
  color: var(--text-secondary);
  opacity: .95;
  font-style: italic;
  font-size: 1rem;
}

/* Légende des niveaux de piquant */
.spice-legend {
  text-align: center;
  padding: 1rem;
  margin: 2rem auto 2.5rem;
  max-width: 700px;
}

.spice-legend .legend-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.spice-legend .legend-levels {
  display: inline-flex;
  gap: 1rem;
  margin-left: 0.5rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-primary);
  flex-wrap: wrap;
  justify-content: center;
}

.spice-legend .legend-levels span {
  white-space: nowrap;
}

/* Liste d'items */
.section.menu .menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section.menu .menu-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.35rem;
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(30,66,53,0.12);
  background: rgba(30,66,53,0.035);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: menuItemIn .9s cubic-bezier(0.22,1,0.36,1) both;
}

/* Supprimer une éventuelle barre décorative héritée */
.section.menu .menu-item::before { display: none !important; content: none !important; }

.section.menu .menu-item:hover {
  background: rgba(30, 66, 53, 0.08);
  border-color: rgba(30, 66, 53, 0.18);
  box-shadow: 0 8px 24px rgba(30, 66, 53, 0.08);
}

.section.menu .menu-item-content {
  flex: 1;
  min-width: 0;         /* empêche l'overflow flex */
  max-width: 78%;
}

.section.menu .menu-item h4 {
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin-bottom: .35rem;
  letter-spacing: .2px;
  font-size: 1.24rem;
}

.section.menu .menu-item-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
}

.section.menu .menu-item-price {
  color: var(--forest-green);
  font-weight: 600;
  white-space: nowrap;
}

.section.menu .menu-item-photo img {
  display: block;
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(30,66,53,0.12);
}

/* =====================================================================
   RESPONSIVE - Media Queries (ordre décroissant)
   ===================================================================== */

/* =====================================================================
   📱 RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* Écrans 4K et ultra-larges (2560px et plus) */
@media (min-width: 2560px) {
  /* Styles spécifiques aux écrans 4K si nécessaire */
}

/* Écrans QHD/2K (1920px à 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  /* Styles spécifiques aux écrans 2K si nécessaire */
}

/* Écrans desktop larges (1440px à 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  /* Styles spécifiques aux écrans larges si nécessaire */
}

/* Desktop standard (1025px à 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
  /* Styles spécifiques aux écrans desktop standard si nécessaire */
}

/* Desktop petit / Laptop (900px à 1024px) */
@media (min-width: 900px) and (max-width: 1024px) {
  /* Styles spécifiques au desktop standard si nécessaire */
}
/* Tablettes (715px à 899px) */
@media (min-width: 715px) and (max-width: 899px) {
  /* Quand le menu passe à 2 vignettes par ligne, masquer le toggle */
  .menu-view-toggle { display: none; }
}
/* Tablettes (641px à 714px) */
@media (min-width: 641px) and (max-width: 714px) {
  .section.menu {
    padding-top: calc(var(--page-top-gap) + 2.5rem);
  }
  /* Masquer le bouton de basculement grille/liste en mode responsive */
  .view-toggle {
    display: none !important;
  }
}

/* Mobile large (481px à 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .section.menu {
    padding-top: calc(var(--page-top-gap) + 3.5rem);
  }
  
  .section.menu .menu-item { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .section.menu .menu-item-content { 
    max-width: 100%; 
  }
  .section.menu .menu-item-photo img { 
    width: 100%; 
    height: auto; 
  }
  
  /* Masquer le bouton de basculement grille/liste */
  .view-toggle {
    display: none !important;
  }
  
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .menu-item-image-wrapper {
    width: 100%;
    height: 180px;
  }
  
  .menu-item-price {
    align-self: flex-end;
    margin-left: 0;
  }
  
  .category-title {
    font-size: 1.75rem;
  }
  
  /* Formulaires responsive */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group-half {
    flex: none;
  }
  
  /* Success message responsive */
  .success-message-box {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
  }
  
  .success-title {
    font-size: 1.875rem;
  }
  
  .success-text {
    font-size: 0.9375rem;
  }
  
  .success-info {
    padding: 1.25rem;
  }
}

/* Mobile petit (480px et moins) */
@media (max-width: 480px) {
  .section.menu {
    padding-top: calc(var(--page-top-gap) + 4rem);
  }
  
  /* Masquer le bouton de basculement grille/liste */
  .view-toggle {
    display: none !important;
  }
  
  .menu-item {
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .menu-item-image-wrapper {
    width: 100%;
    height: 160px;
  }
  
  .menu-item-price {
    align-self: flex-end;
    margin-left: 0;
  }
  
  .menu-items {
    gap: 1rem;
  }
  
  .category-title {
    font-size: 1.75rem;
  }
  
  /* Modal optimisé pour mobile avec clavier */
  .checkout-modal-content {
    max-height: 95vh;
    width: 95%;
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 0.5rem 0.75rem;
  }
  
  .checkout-modal-close {
    top: 0.25rem;
    right: 0.25rem;
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
  }
  
  .back-to-choice-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .modal-body {
    padding: 1rem 1.25rem 1.5rem 1.25rem;
  }
  
  .modal-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  
  .modal-body > p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
}

/* =====================================================================
   🎛️ CONTROLS (SEARCH + VIEW TOGGLE)
   ===================================================================== */
.menu-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.search-wrapper {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border: 1px solid rgba(30, 66, 53, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: var(--copper-gold);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(200, 134, 13, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--copper-gold);
  font-size: 1.2rem;
  pointer-events: none;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(30, 66, 53, 0.1);
}

.view-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-btn.active {
  background: var(--forest-green);
  color: var(--cream);
  box-shadow: 0 4px 15px rgba(30, 66, 53, 0.2);
}

/* =====================================================================
   🎚️ FILTERS
   ===================================================================== */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(30, 66, 53, 0.15);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  border-color: var(--copper-gold);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--copper-gold);
  color: white;
  border-color: var(--copper-gold);
  box-shadow: 0 4px 15px rgba(200, 134, 13, 0.25);
}

/* =====================================================================
   🍽️ MENU GRID VIEW
   ===================================================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-grid.hidden {
  display: none;
}

.dish-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(30, 66, 53, 0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  animation: cardFadeIn 0.6s ease-out both;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(30, 66, 53, 0.15);
  border-color: var(--copper-gold);
}

.dish-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 66, 53, 0.05), rgba(200, 134, 13, 0.05));
}

.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-image {
  transform: scale(1.08);
}

.dish-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge.vegetarien {
  background: rgba(82, 183, 136, 0.95);
  color: white;
}

.badge.poulet {
  background: rgba(199, 124, 62, 0.95);
  color: white;
}

.badge.porc {
  background: rgba(30, 66, 53, 0.95);
  color: white;
}
.badge.poisson {
  background: rgba(138, 28, 28, 0.95);
  color: white;
}
.badge.curry {
  background: rgba(255, 165, 0, 0.95);
  color: white;
}

.dish-content {
  padding: 1.8rem;
}

.dish-header {
  margin-bottom: 1rem;
}

.dish-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--forest-green);
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.dish-category {
  font-size: 0.85rem;
  color: var(--copper-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.dish-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.spice-indicator {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}

/* Dans les titres de plats */
.dish-name .spice-indicator,
.menu-item-name .spice-indicator {
  font-size: 1rem;
  margin-right: 0.3rem;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 66, 53, 0.1);
}

.dish-price {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.375rem;
  color: var(--forest-green);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.order-btn {
  padding: 0.7rem 1.5rem;
  background: var(--forest-green);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-btn:hover {
  background: var(--copper-gold);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(200, 134, 13, 0.3);
}

/* =====================================================================
   📋 MENU LIST VIEW
   ===================================================================== */
.menu-list {
  display: none;
  flex-direction: column;
  gap: 2.5rem;
}

.menu-list.active {
  display: flex;
}

.menu-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-header {
  text-align: center;
  margin-bottom: 1rem;
}

.category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest-green);
  margin: 0 0 0.5rem 0;
}

.category-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.menu-item-image-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pearl);
}

.menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-item-content {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-green);
  margin: 0 0 0.5rem 0;
}

.menu-item-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.menu-item-price {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--copper-gold);
  margin-left: 1rem;
}

/* =====================================================================
   ❌ NO RESULTS STATE
   ===================================================================== */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.no-results-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* =====================================================================
   🛒 CART - FLOATING BUTTON
   ===================================================================== */
.cart-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--forest-green);
  color: var(--cream);
  padding: 1.2rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(30, 66, 53, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
}

.cart-floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(30, 66, 53, 0.4);
  background: var(--copper-gold);
}

.cart-floating-btn.auto-hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(30, 66, 53, 0.4);
  background: var(--copper-gold);
}

.cart-floating-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.cart-floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(30, 66, 53, 0.4);
  background: var(--copper-gold);
}

.cart-floating-btn.bounce {
  animation: cartBounce 0.6s ease;
}

.cart-count {
  background: var(--copper-gold);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  font-size: 0.85rem;
  min-width: 25px;
  text-align: center;
}

.cart-floating-btn:hover .cart-count,
.cart-floating-btn.auto-hover .cart-count {
  background: var(--forest-green);
}

/* =====================================================================
   🛒 CART - SIDE PANEL
   ===================================================================== */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.cart-panel.open {
  pointer-events: all;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.cart-panel.open .cart-overlay {
  opacity: 1;
}

.cart-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: min(450px, 100vw);
  height: 100vh;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
}

.cart-panel.open .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(30, 66, 53, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.cart-header h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--forest-green);
  font-size: 1.8rem;
  margin: 0;
}

.cart-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(30, 66, 53, 0.1);
  border-radius: 50%;
  color: var(--forest-green);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-close:hover {
  background: var(--forest-green);
  color: white;
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 66, 53, 0.1);
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 8px 25px rgba(30, 66, 53, 0.1);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--forest-green);
  margin-bottom: 0.3rem;
}

.cart-item-price {
  color: var(--copper-gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(30, 66, 53, 0.2);
  background: white;
  border-radius: 6px;
  color: var(--forest-green);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
}

.qty-value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-green);
}

.cart-item-remove {
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.cart-empty-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(30, 66, 53, 0.1);
  background: white;
  display: none;
}

.cart-summary {
  margin-bottom: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.cart-summary-total {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-green);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(30, 66, 53, 0.1);
  margin-top: 0.8rem;
}

.cart-checkout-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.cart-checkout-btn {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.cart-checkout-btn .btn-icon {
  font-size: 1.3rem;
}

.cart-checkout-btn .btn-text {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}



.cart-checkout-btn.primary {
  background: var(--forest-green);
  color: white;
}

.cart-checkout-btn.primary:hover {
  background: var(--copper-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 134, 13, 0.3);
}

.cart-clear-btn {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(30, 66, 53, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-clear-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: #dc3545;
}

/* =====================================================================
   � MODAL CHECKOUT
   ===================================================================== */
.checkout-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.checkout-modal.is-open {
  display: flex;
}

.checkout-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  margin-top: 90px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
  position: relative;
  min-height: 50px;
}

.modal-body {
  padding: 1.5rem 2rem 2rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--forest-green);
  margin: 0 0 0.3rem 0;
}

.modal-body > p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 10;
}

.checkout-modal-close:hover {
  color: var(--forest-green);
}

#checkoutForm,
#createAccountForm,
#loginForm,
#guestOrderForm {
  display: flex;
  flex-direction: column;
  gap: 0.2rem; /* Espacement ultra-compact identique pour tous */
}

/* Espacement spécial pour les sections logiques */
.form-section {
  margin-bottom: 1.5rem; /* Réduit pour gagner de l'espace */
}

.form-actions {
  margin-top: 0.8rem; /* Espacement réduit avant les boutons */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.4rem; /* Espacement ultra-compact */
}

.form-group label {
  font-weight: 500;
  color: var(--forest-green);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem;
  border: 2px solid rgba(30, 66, 53, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--forest-green);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e4235' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* === TOGGLE CONTACT === */
.contact-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

.contact-toggle .toggle-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-toggle .toggle-btn:hover {
  border-color: var(--forest-green);
  background: #f0f7f0;
}

.contact-toggle .toggle-btn.active {
  border-color: var(--forest-green);
  background: var(--forest-green);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 139, 34, 0.2);
}

.contact-field {
  margin-top: 0 !important;
}

.contact-field input {
  width: 100%;
}

/* === STYLES CHAMPS EN LIGNE === */
.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.form-group-half {
  flex: 1;
}

.form-group-half input {
  width: 100%;
}

/* Media queries pour les champs en ligne */
/* Lien de création de compte dans l'astuce */
.create-account-link {
  color: var(--copper-gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.create-account-link:hover {
  color: #c8860d;
  border-bottom-color: var(--copper-gold);
  text-shadow: 0 1px 2px rgba(200, 134, 13, 0.2);
}

.create-account-link:active {
  color: #b8760d;
  transform: translateY(1px);
}

/* Validation des mots de passe */
.password-match-status {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-height: 1.6rem; /* Espace réduit pour éviter le scroll */
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-5px);
}

.password-match-status.match {
  background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
  border: 1px solid var(--forest-green);
  color: var(--forest-green);
  opacity: 1;
  transform: translateY(0);
}

.password-match-status.no-match {
  background: linear-gradient(135deg, #ffeaea, #fff0f0);
  border: 1px solid #dc3545;
  color: #dc3545;
  opacity: 1;
  transform: translateY(0);
}

/* Vérification d'email */
.email-verification-status {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-height: 1.6rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-5px);
}

.email-verification-status.checking {
  background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
  border: 1px solid #007bff;
  color: #007bff;
  opacity: 1;
  transform: translateY(0);
}

.email-verification-status.available {
  background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
  border: 1px solid var(--forest-green);
  color: var(--forest-green);
  opacity: 1;
  transform: translateY(0);
}

.email-verification-status.exists {
  background: linear-gradient(135deg, #ffeaea, #fff0f0);
  border: 1px solid #dc3545;
  color: #dc3545;
  opacity: 1;
  transform: translateY(0);
}

.email-verification-status.error {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  color: #856404;
  opacity: 1;
  transform: translateY(0);
}

.validation-notice {
  background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
  border: 2px solid var(--forest-green);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--forest-green);
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 66, 53, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions button {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #f0f0f0;
  color: var(--text-secondary);
}

.btn-cancel:hover {
  background: #e0e0e0;
}

.btn-submit {
  background: var(--forest-green);
  color: white;
  transition: all 0.3s ease;
}

.btn-submit:hover:not(.disabled) {
  background: var(--copper-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 134, 13, 0.3);
}

.btn-submit.disabled,
.btn-submit:disabled {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none;
}

.btn-submit.disabled:hover,
.btn-submit:disabled:hover {
  background: #ccc !important;
  transform: none !important;
  box-shadow: none !important;
}

/* === STYLE GLOBAL POUR TOUS LES ÉLÉMENTS DÉSACTIVÉS === */
button:disabled,
button.disabled,
input:disabled,
input.disabled,
textarea:disabled,
textarea.disabled,
select:disabled,
select.disabled,
.checkout-btn:disabled,
.choice-btn:disabled {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  border-color: #bbb !important;
}

button:disabled:hover,
button.disabled:hover,
.checkout-btn:disabled:hover,
.choice-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* === STYLES CRÉATION DE COMPTE === */
.account-creation {
  background: linear-gradient(135deg, rgba(200, 134, 13, 0.05), rgba(76, 104, 73, 0.05));
  border: 1px solid rgba(200, 134, 13, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.account-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.account-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--copper-gold);
}

.account-label {
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.account-label strong {
  color: var(--forest-green);
}

.password-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 134, 13, 0.2);
  transition: all 0.3s ease;
}

.password-group label {
  color: var(--forest-green);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.password-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid rgba(200, 134, 13, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  padding-right: 3rem;
  flex: 1;
}

.password-toggle {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.password-toggle:hover {
  background: rgba(200, 134, 13, 0.1);
  color: var(--copper-gold);
  transform: scale(1.1);
}

.password-toggle:active {
  transform: scale(0.95);
}

.password-group input:focus {
  outline: none;
  border-color: var(--copper-gold);
}

.password-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Animation d'apparition du champ mot de passe */
.password-group.show {
  animation: fadeInPassword 0.3s ease;
}

@keyframes fadeInPassword {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
  .category-title {
    font-size: 1.5rem;
  }
  
  .menu-item-name {
    font-size: 1.1rem;
  }
  
  .menu-item-price {
    font-size: 1.3rem;
  }
  
  /* Cart buttons responsive */
  .cart-checkout-btn {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }
  
  .cart-checkout-btn .btn-icon {
    font-size: 1.1rem;
  }
  
  .cart-checkout-btn .btn-text {
    font-size: 0.8rem;
  }

/* Animations locales au menu */
@keyframes cardIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes menuItemIn {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  25% { transform: scale(1.1) translateY(-10px); }
  50% { transform: scale(0.95) translateY(0); }
  75% { transform: scale(1.05) translateY(-5px); }
}

/* === MODAL DE CHOIX COMMANDE === */
.choice-content {
  /* Exactement même taille que checkout-modal-content */
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  min-height: 400px; /* Hauteur minimale pour éviter les sauts */
}

.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--forest-green);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.choice-btn:hover {
  background: var(--forest-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 66, 53, 0.2);
}

.choice-btn:hover .choice-icon {
  transform: scale(1.2);
}

.choice-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.choice-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--forest-green);
}

.choice-btn:hover .choice-text strong {
  color: white;
}

.choice-text small {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.choice-btn:hover .choice-text small {
  color: rgba(255, 255, 255, 0.8);
}

/* === BOUTON RETOUR === */
.back-to-choice-btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--copper-gold);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: inherit;
  margin: 0;
  text-align: left;
}

.back-to-choice-btn:hover {
  background: rgba(200, 134, 13, 0.1);
  color: var(--forest-green);
  transform: translateX(-2px);
}

/* === FORMULAIRE INVITÉ === */
.guest-notice {
  background: linear-gradient(135deg, rgba(200, 134, 13, 0.1), rgba(76, 104, 73, 0.1));
  border: 1px solid rgba(200, 134, 13, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--forest-green);
  text-align: center;
}

.contact-toggle {
  margin: 1rem 0;
}

.contact-toggle label {
  display: block;
  font-weight: 500;
  color: var(--forest-green);
  margin-bottom: 0.5rem;
}

.toggle-buttons {
  display: flex;
  gap: 0.5rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--forest-green);
  border-radius: 8px;
  background: white;
  color: var(--forest-green);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: var(--forest-green);
  color: white;
}

.toggle-btn:hover:not(.active) {
  background: rgba(76, 104, 73, 0.1);
}

textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--forest-green);
}

/* Sélecteur d'adresses enregistrées */
.saved-addresses-container {
  margin-bottom: 1.5rem;
}

.saved-addresses-container label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.saved-addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.address-card {
  display: block;
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.address-card:hover {
  border-color: var(--forest-green);
  box-shadow: 0 4px 12px rgba(30,66,53,0.15);
  transform: translateY(-2px);
}

.address-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.address-card input[type="radio"]:checked + .address-card-content {
  background: transparent;
  border-left: 3px solid var(--forest-green);
}

.address-card:has(input[type="radio"]:checked) {
  background: #f9f9f9;
  border: 3px solid var(--copper-gold);
  box-shadow: 0 4px 16px rgba(200, 134, 13, 0.25);
  transform: scale(1.02);
}

.address-card:has(input[type="radio"]:checked)::before {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--copper-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(200, 134, 13, 0.3);
  z-index: 1;
}

.address-card-content {
  padding-left: 0.75rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.address-card strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.address-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.address-card .address-badge {
  display: inline-block;
  background: var(--copper-gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.new-address-option {
  margin-top: 1rem;
}

.new-address-option .address-card {
  border-style: dashed;
  border-color: var(--forest-green);
  background: rgba(30,66,53,0.02);
}

.new-address-option .address-card:hover {
  background: rgba(30,66,53,0.08);
}

/* Option retrait sur place */
.pickup-option {
  background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
  border: 2px solid #667eea;
}

.pickup-option:hover {
  background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
  border-color: #764ba2;
}

.pickup-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Checkbox retrait invité */
.pickup-option-guest {
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
  border: 2px solid #667eea;
  border-radius: 8px;
}

.pickup-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.pickup-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.pickup-checkbox span {
  flex: 1;
}

/* Statut de vérification du nom d'adresse */
.address-name-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.address-name-status.success {
  color: var(--forest-green);
}

.address-name-status.error {
  color: #e74c3c;
}

/* ====================================================================
   MESSAGE DE SUCCÈS DE COMMANDE - Design élégant
   ==================================================================== */

.success-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message-overlay.show {
  opacity: 1;
}

.success-message-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.success-message-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper-gold), var(--forest-green));
}

.success-message-overlay.show .success-message-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Checkmark animé */
.success-checkmark {
  margin: 0 auto 2rem;
  width: 80px;
  height: 80px;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: var(--forest-green);
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 var(--forest-green);
  animation: fill 0.4s ease-in-out 0.4s forwards, 
             scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: var(--forest-green);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #fff;
  stroke-width: 3;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0 0 0 40px var(--forest-green);
  }
}

/* Titre */
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Détails */
.success-details {
  margin-bottom: 2rem;
}

.success-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* Infos de livraison */
.success-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.info-row:first-child {
  padding-top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-row:last-child {
  padding-bottom: 0;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Bouton */
.success-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(30, 66, 53, 0.2);
}

.success-btn:hover {
  background: #1e4235;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 66, 53, 0.3);
}

.success-btn:active {
  transform: translateY(0);
}

.success-btn svg {
  transition: transform 0.3s ease;
}

.success-btn:hover svg {
  transform: translateX(4px);
}
