:root {
        --algerian-green: #006233;
        --algerian-red: #d21034;
        --algerian-white: #fff;
        --algerian-gradient: linear-gradient(135deg, #006233 0%, #d21034 100%);
        --algerian-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
      }

      body {
        background: slategray;
        font-family: 'Segoe UI', 'Arial', sans-serif;
      }
      .navbar {
        background: transparent !important;
        transition: all 0.3s ease;
        padding: 1rem 0;
        position: fixed;
        width: 100%;
        z-index: 1000;
      }
      .navbar.scrolled {
        background: var(--algerian-gradient) !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
      }
      .navbar-brand {
        font-size: 1.8rem;
        font-weight: 800;
        background: linear-gradient(45deg, var(--algerian-white), #ff0040);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* text-fill-color: transparent; Removed invalid property */
      }
      .navbar-brand, .navbar-nav .nav-link {
        color: #dc3545 !important;
        font-weight: 600;
        letter-spacing: 1px;
      }
      .navbar-brand i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
        color: var(--algerian-red);
      }
      .algerian-flag {
        width: 28px;
        margin-right: 0.5rem;
        vertical-align: middle;
      }
      .hero-section {
        background: var(--algerian-gradient);
        background-image: var(--algerian-pattern);
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
      }
      .hero-content {
        position: relative;
        z-index: 2;
        padding: 4rem 0;
      }
      .hero-content h1 {
        font-size: 4.5rem;
        font-weight: 800;
        margin-bottom: 2rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        animation: fadeInUp 1s ease;
      }
      .hero-content p {
        font-size: 1.25rem;
        line-height: 1.8;
        margin-bottom: 3rem;
        animation: fadeInUp 1s ease 0.3s;
        opacity: 0;
        animation-fill-mode: forwards;
      }
      .hero-content .btn {
        background: var(--algerian-white);
        color: var(--algerian-green);
        border-radius: 50px;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        animation: fadeInUp 1s ease 0.6s;
        opacity: 0;
        animation-fill-mode: forwards;
      }
      .hero-content .btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        background: var(--algerian-red);
        color: var(--algerian-white);
      }
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .floating-shapes {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
      }
      .shape {
        position: absolute;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        animation: float 20s infinite;
      }
      @keyframes float {
        0% { transform: translate(0, 0) rotate(0deg); }
        50% { transform: translate(100px, 100px) rotate(180deg); }
        100% { transform: translate(0, 0) rotate(360deg); }
      }
      .section-title {
        color: var(--algerian-green);
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
      }
      .menu-card {
        border: none;
        border-radius: 1.5rem;
        box-shadow: 0 4px 24px rgba(0,98,51,0.12);
        transition: transform 0.2s, box-shadow 0.2s;
        overflow: hidden;
        background: #fff;
        position: relative;
      }
      .menu-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 8px 32px rgba(0,98,51,0.18);
      }
      .menu-card .card-img-top {
        height: 220px;
        object-fit: cover;
        border-bottom: 4px solid var(--algerian-green);
      }
      .menu-card .card-title {
        color: var(--algerian-red);
        font-weight: 700;
      }
      .menu-card .badge {
        background: var(--algerian-green);
        font-size: 1rem;
      }
      .menu-card .bi {
        color: var(--algerian-green);
      }
      .contact-section {
        background: #fff;
        border-radius: 2rem;
        box-shadow: 0 2px 16px rgba(0,98,51,0.08);
        padding: 2rem 1rem;
      }
      .form-control:focus {
        border-color: var(--algerian-green);
        box-shadow: 0 0 0 0.2rem rgba(0,98,51,0.15);
      }
      .btn-algerian {
        background: var(--algerian-green);
        color: #fff;
        font-weight: bold;
        border: none;
        transition: background 0.2s;
      }
      .btn-algerian:hover {
        background: var(--algerian-red);
        color: #fff;
      }
      footer {
        background: var(--algerian-gradient);
        color: #fff;
        letter-spacing: 1px;
        font-weight: 500;
      }
      .footer-icons .bi {
        margin: 0 0.5rem;
        font-size: 1.2rem;
        color: #fff;
        transition: color 0.2s;
      }
      .footer-icons .bi:hover {
        color: #222;
      }
      /* Menu filter styles */
      .menu-filter {
        margin-bottom: 3rem;
        text-align: center;
        background: rgb(205, 198, 198);
        padding: 1rem;
        border-radius: 15px;
        backdrop-filter: blur(10px);
      }
      
      .menu-filter .btn {
        margin: 0.5rem;
        border-radius: 25px;
        padding: 0.8rem 1.5rem;
        border: 2px solid ;
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: all 0.5s ease;
      }
      
      .menu-filter .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: var(--algerian-gradient);
        transition: all 0.5s ease;
        z-index: -1;
      }
      
      .menu-filter .btn:hover::before {
        width: 100%;
      }
      
      .menu-filter .btn:hover {
        color: white;
        transform: translateY(-3px);
      }

      /* Enhanced Menu Cards */
      .menu-card {
        transform-style: preserve-3d;
        perspective: 1000px;
      }

      .menu-card:hover .card-body {
        transform: translateZ(20px);
      }

      .menu-card .card-body {
        transition: transform 0.5s ease;
      }

      .menu-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--algerian-gradient);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 1.5rem;
        z-index: -1;
      }

      .menu-card:hover::before {
        opacity: 0.1;
      }

      .menu-card .badge {
        transform: rotate(-3deg);
        transition: transform 0.3s ease;
      }

      .menu-card:hover .badge {
        transform: rotate(0deg) scale(1.1);
      }

      /* Floating Elements Animation */
      @keyframes floatAnimation {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
      }

      .floating {
        animation: floatAnimation 3s ease-in-out infinite;
      }

      /* Parallax Effect */
      .parallax-bg {
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
      }

      /* Text Animation */
      @keyframes textGradient {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
      }

      .gradient-text {
        background: linear-gradient(90deg, var(--algerian-green), var(--algerian-red), var(--algerian-green));
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textGradient 3s linear infinite;
      }

      /* Card Hover Effect */
      .hover-card-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--algerian-gradient);
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        padding: 1rem;
        border-radius: 1.5rem;
        z-index: 1; /* Réduire le z-index */
        pointer-events: none; /* Désactiver les interactions avec la couche d'animation */
      }

      .quantity-controls, 
      .order-btn {
        position: relative;
        z-index: 2; /* Mettre les contrôles au-dessus des animations */
      }

      .menu-card .card-body {
        position: relative;
        z-index: 2; /* Assurer que le contenu de la carte reste cliquable */
      }

      /* Cart Section Styles */
      .cart-section {
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin: 20px 0;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
      }

      .cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 10px;
        transition: all 0.3s ease;
      }

      .cart-item:hover {
        transform: translateX(-5px);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
      }

      #cart-total {
        margin: 15px 0;
        font-weight: bold;
        text-align: right;
      }

      .order-btn {
        width: 100%;
      }

      /* Cart Styles */
.offcanvas {
  direction: rtl;
}

.price-badge {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity {
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

/* Order Tracking Styles */
.order-progress {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 10px;
  background: #f8f9fa;
  opacity: 0.5;
}

.progress-step.active {
  opacity: 1;
  background: #d4edda;
  color: #155724;
}

.progress-step i {
  font-size: 1.5rem;
}

/* Order Form Styles */
.order-form {
    direction: rtl;
    text-align: right;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.order-summary h6 {
    color: var(--algerian-green);
    margin-bottom: 1rem;
}

#orderSummaryItems {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

#orderTotal {
    color: var(--algerian-green);
    text-align: left;
}

.product-extras {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-notes {
    font-size: 0.9rem;
    resize: none;
    height: 60px;
}

.toast-container {
    z-index: 1060;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #198754;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0.95;
}