/* Global  */
.menu-title {
    font-family: 'Playfair Display';
    font-size: 2rem;
    margin: 2rem 0;
    color: #5C4033;
    text-align: center;
}

/* Info Boxes */
.menu-info-boxes,
.menu-stats-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.info-box,
.stat-box {
    flex: 1 1 150px;
    max-width: 200px;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Inter';
    font-weight: 500;
}

.info-box.theme,
.info-box.regime {
    background-color: #A28873;
    color: #F6F1EB;
}

.stat-box {
    background-color: #5C4033;
    color: #F6F1EB;
}


/* Conditions */
.menu-conditions {
    font-family: 'Inter';
    font-weight: 400;
    color: #2F2F2F;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #6B7B63;
}

.menu-conditions .condition {
    margin: 3px 0;
}

/* Menu Selection Columns  */
.menu-selection-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin: 0 20px 20px 20px;
    align-items: stretch;
}

.column-box {
    background-color: #F6F1EB;
    box-shadow: 0 2px 4px #2F2F2F;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selection-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.column-box h3 {
    font-family: 'Playfair Display';
    font-size: 1.5rem;
    text-align: center;
    color: #5C4033;
    margin-bottom: 10px;
}

/* Plat Card  */
.plat-card {
    background-color: #5C4033;
    color: #F6F1EB;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px #2F2F2F;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 800px;
    min-height: 600px;
}

.plat-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.plat-card.selected {
    border: 2px solid #F6F1EB; 
    opacity: 1 !important;
}

.plat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px #2F2F2F;
}

.plat-card img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    max-height: 500px;
}

.plat-card h4 {
    font-family: 'Playfair Display';
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    margin-top: 10px;
}

.plat-card p {
    font-family: 'Inter';
    font-size: 0.95rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.plat-stats {
    display: flex;
    flex-direction: column;
    font-family: 'Inter';
    font-size: 0.85rem;
    gap: 4px;
}

.plat-stats span {
    display: block;
    text-align: center;
}

.select-plat-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #A28873;
    color: #F6F1EB;
    border: none;
    border-radius: 5px;
    font-family: 'Inter';
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.select-plat-btn:hover {
    background-color: #6B7B63;
}

.next-icon {
    width: 24px;
    height: 24px;
}

/* ===== Next Button ===== */
.menu-next-btn-container {
    text-align: right;
    margin-bottom: 20px;
}

.menu-next-btn {
    display: inline-flex;        
    align-items: center;         
    justify-content: center;     
    gap: 8px;                    
    padding: 10px 20px;
    background-color: #5C4033;
    color: #F6F1EB;
    border: none;
    border-radius: 5px;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-right: 20px;
}

.menu-next-btn:hover {
    background-color: #6B7B63;
}

.next-icon {
    width: 30px;      /* Ajuste la taille si besoin */
    height: 30px;
}

.stock-box {
    display: inline-block;
    background-color: #F6F1EB;
    color: #5C4033;
    font-weight: 600;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 5px;
}

.plat-allergenes {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.allergenes-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}

.allergene-icon {
    display: inline-block;
    margin: 0 4px;
    cursor: default;
    position: relative;
}

.allergene-icon img {
    width: 25px;
    height: 25px;
} 

.allergene-icon img:hover {
    cursor: help;
} 

.allergene-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%; 
    transform: translateX(-50%);
    background: #6B7B63;
    color: #F6F1EB;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
}

.menu-detail-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.next-menu-btn {
    width: 100%;
    max-width: 200px;
    padding: 10px 16px;
    background-color: #A28873;
    color: #F6F1EB;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
    margin-bottom: 20px;
}

.next-menu-btn img {
    width: 28px;
    height: 28px;
}

.select-menu-btn:hover {
    background-color: #6B7B63;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    background-color: #5C4033;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.decrease-btn,
.increase-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    background-color: #A28873;
    color: #F6F1EB;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.decrease-btn:hover,
.increase-btn:hover {
    background-color: #6B7B63;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #A28873;
    border-radius: 5px;
    padding: 4px 0;
    font-size: 1rem;
    font-family: 'Inter';
    color: #2F2F2F;
}

.stock-error {
    color: #721c24;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

/* Bouton valider */
.validate-menu-btn {
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #A28873;
    color: #F6F1EB;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.validate-menu-btn:hover {
    background-color: #6B7B63;
}

.validate-menu-btn img {
    width: 16px;
    height: 16px;
}

/* ===== Media Queries ===== */

/* Tablette : <= 1200px (2 colonnes) */
@media (max-width: 1200px) {
    .menu-selection-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Petit écran : <= 900px (1 colonne) */
@media (max-width: 900px) {
    .menu-selection-container {
        grid-template-columns: 1fr;
    }

    .selection-column h3 {
        font-size: 1.3rem;
    }

    .plat-card h4 {
        font-size: 1.1rem;
    }

    .plat-card p {
        font-size: 0.9rem;
    }

    .plat-stats {
        font-size: 0.8rem;
    }
}

/* Mobile : <= 600px */
@media (max-width: 600px) {
    .menu-selection-container {
        grid-template-columns: 1fr;
        margin: 0 10px 15px 10px;
    }

    .selection-column h3 {
        font-size: 1.1rem;
    }

    .plat-card h4 {
        font-size: 1rem;
    }

    .plat-card p {
        font-size: 0.85rem;
    }

    .plat-stats {
        font-size: 0.75rem;
    }

    .select-plat-btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}