/* Menu Hero Section */
.menu-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-image: url('/img/unnamed (4).webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.menu-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.menu-hero h1, .menu-hero .lead {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white !important;
}

/* Menu Navigation Pills */
.nav-pills .nav-link {
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

/* Menu Items */
.menu-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.menu-item-title {
    color: #8B4513;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.menu-item-price {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.1em;
}

.menu-item-description {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 10px 0;
}

.menu-item-tags {
    margin-top: 15px;
}

.menu-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    font-size: 0.75em;
    border-radius: 12px;
    font-weight: 500;
}

.menu-tag:contains("végétarien") {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.menu-tag:contains("épicé") {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.menu-tag:contains("sans gluten") {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.menu-tag:contains("chef"), .menu-tag:contains("spécialité") {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Menu Categories Containers */
.tab-content {
    min-height: 400px;
    padding-bottom: 80px;
}

.row[id$='-list'] {
    margin-bottom: 60px;
}

/* Fix des colonnes pour mobile et desktop */
@media (max-width: 768px) {
    .menu-item {
        margin-bottom: 15px;
    }
    
    /* Ajustement des images sur mobile */
    .menu-item img {
        width: 80px !important;
        height: 60px !important;
    }
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Menu Items */
.menu-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--accent-color);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.menu-item-title {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.menu-item-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.menu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.menu-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.menu-tag.vegetarian {
    background-color: #d4edda;
    color: #155724;
}

.menu-tag.spicy {
    background-color: #f8d7da;
    color: #721c24;
}

.menu-tag.gluten-free {
    background-color: #fff3cd;
    color: #856404;
}

.menu-tag.chef-special {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Dish Gallery */
.dish-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 300px;
}

.dish-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dish-gallery-item:hover img {
    transform: scale(1.1);
}

.dish-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.dish-gallery-item:hover .dish-overlay {
    transform: translateY(0);
}

.dish-overlay h4 {
    color: var(--white);
    margin: 0;
}

/* Loading State */
.menu-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.menu-loading i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Empty State */
.menu-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-item-price {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        margin: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .nav-pills, .dish-gallery-item {
        display: none !important;
    }
    
    .menu-hero {
        height: auto;
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .menu-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Styles pour le modal d'image */
#imageModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#imageModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border-radius: 12px 12px 0 0;
}

#imageModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#imageModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#imageModal .btn-close:hover {
    opacity: 1;
}

#imageModal .modal-body {
    padding: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#modalImage {
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s ease;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

#modalImage:hover {
    transform: scale(1.02);
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #modalImage {
        max-height: 80vh;
    }
} 