/* Menu des catégories */
.menu-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.btn-category {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #ddd;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.btn-category:hover,
.btn-category.active {
    background-color: #009688;
    color: white;
    border-color: #009688;
    transform: translateY(-2px);
}

/* Section produits */
.section-produits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
    color: #222;
}

.section-produits .sous-titre {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

.grid-produits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.carte-produit {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.carte-produit:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contenu h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #222;
}

.contenu .desc {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 0.9rem;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-populaire {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.badge-epice {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
}

.badge-vegetarien {
    background: #e8f5e9;
    color: #388e3c;
    border: 1px solid #81c784;
}

.prix {
    font-size: 1.5rem;
    font-weight: bold;
    color: #009688;
    min-width: 50px;
    text-align: right;
    align-self: center;
}

/*loader*/
.orbit-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 30px auto;
}

.orbit {
  position: absolute;
  border: 2px solid transparent;
  border-top: 2px solid;
  border-radius: 50%;
  animation: spin linear infinite;
}

/* Cercle 1 (petit, rapide) */
.orbit1 {
  width: 40px;
  height: 40px;
  top: 15px;
  left: 15px;
  border-top-color: #F43C1E; /* rouge */
  animation-duration: 0.8s;
}

/* Cercle 2 (moyen, vitesse intermédiaire) */
.orbit2 {
  width: 50px;
  height: 50px;
  top: 10px;
  left: 10px;
  border-top-color: #0FA3B1; /* vert */
  animation-duration: 1.6s;
}

/* Cercle 3 (grand, lent) */
.orbit3 {
  width: 60px;
  height: 60px;
  top: 5px;
  left: 5px;
  border-top-color: #1E3888; /* bleu */
  animation-duration: 2.5s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-categories {
        flex-direction: column;
        align-items: center;
    }
    .btn-category {
        width: 80%;
        text-align: center;
    }
    .carte-produit {
        flex-direction: column;
    }
    .prix {
        text-align: left;
        width: 100%;
        margin-top: 10px;
    }
}