/* Page Mes Commandes */
.page-title {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(221, 114, 91, 0.1);
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #DD725B;
    margin: 0;
}

.commandes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Card design */
.commande-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(221, 114, 91, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.commande-card:hover {
    transform: translateY(-2px);
    border-color: #DD725B;
    box-shadow: 0 4px 20px rgba(221, 114, 91, 0.1);
}

/* Remplacer la partie after par une div pour l'icône */
.commande-card-chevron {
    width: 24px;
    height: 24px;
    opacity: 0.3;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.commande-card:hover .commande-card-chevron {
    opacity: 0.6;
    transform: translateX(5px);
}

/* Header de la commande */
.commande-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.commande-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commande-number {
    font-size: 18px;
    font-weight: 600;
    color: #DD725B;
}

.commande-date {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

/* Status de la commande */
.commande-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.status-validee {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-en_cours {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

/* Corps de la commande */
.commande-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.restaurant-info {
    flex: 1;
    padding-right: 3rem;
}

.restaurant-info span {
    font-weight: 500;
    font-size: 16px;
    color: #333;
    display: block;
    line-height: 1.4;
}

.commande-total {
    text-align: right;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #DD725B;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 500px;
}

.empty-state p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .page-title {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .commande-card {
        padding: 1.25rem;
        margin: 0 1rem;
    }

    .commande-card::after {
        right: 1.25rem;
        width: 20px;
        height: 20px;
    }

    .commande-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .commande-status {
        align-self: flex-start;
        min-width: auto;
    }

    .commande-number {
        font-size: 16px;
    }

    .restaurant-info {
        padding-right: 2rem;
    }

    .total-price {
        font-size: 18px;
    }
}

/* Page Détail Commande */
.commande-detail-header {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.commande-detail-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #DD725B;
    margin: 0 0 1rem;
}

.commande-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.commande-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commande-detail-date {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.commande-detail-restaurant {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.commande-detail-table {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

/* Contenu principal */
.commande-detail-content {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(221, 114, 91, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Liste des articles */
.articles-list {
    padding: 1.5rem;
}

.articles-list h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.article-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-qty {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    min-width: 30px;
}

.article-name {
    font-weight: 500;
    color: #333;
}

.article-price {
    font-weight: 600;
    color: #333;
}

/* Total et actions */
.commande-detail-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(221, 114, 91, 0.1);
    background: rgba(221, 114, 91, 0.02);
    border-radius: 0 0 16px 16px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-line .total-price {
    color: #DD725B;
}

.commande-actions {
    display: flex;
    justify-content: flex-end;
}

.commande-actions .btn-v2 {
    min-width: 200px;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .commande-detail-header {
        padding: 0 1rem;
    }

    .commande-detail-info {
        flex-direction: column;
    }

    .commande-detail-content {
        margin: 0 1rem;
    }

    .articles-list,
    .commande-detail-footer {
        padding: 1.25rem;
    }

    .article-info {
        gap: 0.75rem;
    }

    .total-line {
        font-size: 16px;
    }

    .commande-actions {
        flex-direction: column;
    }

    .commande-actions .btn-v2 {
        width: 100%;
    }
}

/* Style pour le header avec le bouton mes commandes */
.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.back-header-logo-block {
    margin: 0 auto;
}

.top-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.top-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.top-btn p {
    font-size: 14px;
}

.invisible-block {
    display: none; /* On n'en a plus besoin */
} 