﻿/* --- TON CSS site.css inclus ici --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.restaurant-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.restaurant-header {
    background-size: cover;
    background-position: center;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.header-overlay 
{
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem 4rem;
    border-radius: 5px;
}

.restaurant-header h1
{
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.tagline
{
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.menu-toggle
{
    display: none;
    background-color: #8B0000;
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    width: 100%;
}

.menu-nav 
{
    background-color: #8B0000;
    padding: 1rem 0;
    position: sticky;
    top:0;
    z-index: 100;
}

.menu-nav ul 
{
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav li
{
    margin: 0 2rem;
}

.menu-nav a 
{
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.menu-nav a:hover {
    color: #FFD700;
}

.menu-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s;
}

.menu-nav a:hover:after {
    width: 100%;
}

.menu-main {
    padding: 2rem;
}

.menu-section {
    margin-bottom: 4rem;
}

.menu-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B0000;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.menu-section h2 span {
    background: white;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.menu-section h2:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.menu-item-image
{
    height: 250px;
    background-size: cover;
    background-position: center;
}

.menu-item-content
{
    padding: 1.5rem;
}

.menu-item h3
{
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.description {
    color: #666;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.price {
    font-weight: bold;
    color: #8B0000;
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
}

.restaurant-footer {
    background-color: #333;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.footer-section p 
{
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}
.add-to-cart {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
    width: 100%;
    text-align: center;
}
.addExtra {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: auto;
    text-align: center;
}
.add-to-cart:hover {
        background-color: #a00000;
    }
.cart-icon {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B0000;
    z-index: 999;
    border-radius: 0 0 0 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.payment-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position:fixed;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .form-group input {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        width: 100%;
        height: 40px;
    }

.card-field {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

    .card-field input {
        border: none;
        flex: 1;
        padding: 10px;
        font-size: 16px;
    }

.card-icons {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: white;
}

.card-icon {
    height: 24px;
    margin-left: 5px;
}

.form-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.half-width {
    flex: 1;
}

.equal-input {
    height: 40px;
    text-align: center;
}

.pay-button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .pay-button:hover {
        background-color: #0056b3;
    }

/* Responsive */
@media (max-width: 768px) {
    .restaurant-header h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        background-color: #8B0000;
        color: white;
        padding: 0.75rem 1.25rem;
        font-size: 1.2rem;
        border: none;
        cursor: pointer;
        width: 100%;
        /* Make it sticky */
        position: sticky;
        top: 0;
        z-index: 110; /* higher than .menu-nav */
    }

    .menu-nav {
        display: none; /* Masqué par défaut */
        flex-direction: column;
        align-items: center;
        z-index: 100;
        top: 40px;
    }

        .menu-nav.active {
            display: flex;
        }

        .menu-nav ul {
            flex-direction: column;
            width: 100%;
        }

        .menu-nav li {
            margin: 0.5rem 0;
        }

    .menu-items {
        grid-template-columns: 1fr;
    }
}

/* 🎯 Promotion */
.promo-box {
    background-color: #fcebea; /* fond rouge clair */
    border-left: 4px solid #8B0000;
    padding: 0.5rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    color: #8B0000;
}

.promo-date {
    font-size: 0.9rem;
    color: #8B0000;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 1em;
}

.new-price {
    color: #8B0000;
    font-weight: bold;
    font-size: 1.1rem;
}

.tax {
    font-size: 0.7em;
    margin-left: 2px;
    color: #666;
}


/* 🪙 Points fidélité */
.point-box {
    background-color: #fff4f4; /* fond rouge pâle */
    border-left: 4px solid #8B0000;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #8B0000;
    position: relative;
}

.point-badge {
    display: inline-block;
    background-color: White;
    color: #8B0000;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 14px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.point-message {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #8B0000;
}

/* 🎁 Message bonus si échange de points */
.reward-info {
    background-color: #fff0f0;
    border-left: 4px solid #8B0000;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #8B0000;
    margin-top: 0.4rem;
}
.login-required {
    background-color: #fff0f0;
    /*border-left: 4px solid #8B0000;*/
    color: #8B0000;
    padding: 0.5rem;
    /*border-radius: 6px;*/
    font-size: 0.9rem;
    margin-top: 0.5rem;
}