/*
Theme Name: Pasta Express
Theme URI: https://pasta-express.com
Author: Pasta Express Team
Author URI: https://pasta-express.com
Description: Thème personnalisé pour le restaurant Pasta Express - Menu, promotions et contact
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pasta-express
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

img {
    max-width: 100%;
    height: auto;
}

/* === HEADER === */
.site-header {
    background: white;
    color: #333;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-title:hover {
    opacity: 0.8;
}

/* Logo personnalisé */
.custom-logo-link {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    line-height: 0;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .custom-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        max-height: 50px;
    }
}

/* === NAVIGATION === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #1a5f3f;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: #1a5f3f;
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #1a5f3f;
    color: #1a5f3f;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #1a5f3f;
    color: white;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('images/pasta-hero.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #c41e3a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #c41e3a;
}

.btn:hover {
    background-color: white;
    color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* === MAIN CONTENT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #c41e3a;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #c41e3a;
}

/* === MENU SECTION === */
/* Menu Category Sections */
.menu-category-section {
    background: white;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.menu-category-title {
    color: white !important;
    background: linear-gradient(135deg, #1a5f3f 0%, #0d3d28 100%) !important;
    padding: 1rem 1.5rem !important;
    margin: 0 !important;
    font-size: 1.3rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold !important;
}

/* Menu List - Style comme l'image */
.menu-list {
    padding: 1.5rem;
}

.menu-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list-item:last-child {
    border-bottom: none;
}

.menu-list-item-left {
    flex-shrink: 0;
    max-width: 65%;
}

.menu-list-item-title {
    color: #2c2c2c !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.3;
}

.menu-list-item-description {
    color: #666 !important;
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin: 0 !important;
    font-style: italic;
}

.menu-list-item-dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 0.5rem;
    align-self: center;
    min-width: 20px;
}

.menu-list-item-prices {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.menu-price-badge {
    background-color: #ffd700 !important;
    color: #333 !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 45px;
    text-align: center;
}

.menu-price-badge.menu-price-large {
    background-color: #ffb700 !important;
}

/* Old grid/card styles - keep for backward compatibility */
.menu-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h3 {
    color: #c41e3a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.menu-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.menu-item .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    background-color: #ffd700;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Old grid style */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* === PROMOTIONS === */
.promo-section {
    background-color: #fff8dc;
    padding: 4rem 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.promo-card {
    background: white;
    border: 3px dashed #c41e3a;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(196, 30, 58, 0.3);
}

.promo-badge {
    background-color: #c41e3a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.promo-card h3 {
    color: #c41e3a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.promo-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* === ABOUT SECTION === */
.about-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    color: #c41e3a;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* === CONTACT SECTION === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #c41e3a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-item i {
    color: #c41e3a;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.map-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 400px;
}

/* === FOOTER === */
.site-footer {
    background-color: #2c2c2c;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Menu list - responsive */
    .menu-list {
        padding: 1rem;
    }
    
    .menu-list-item {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .menu-list-item-left {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .menu-list-item-dots {
        display: none;
    }
    
    .menu-list-item-prices {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-top: 0.3rem;
    }
    
    .menu-category-title {
        font-size: 1.1rem !important;
        padding: 0.8rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .menu-grid,
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    /* Menu items - optimize for small mobile */
    .menu-list {
        padding: 0.8rem;
    }
    
    .menu-list-item {
        padding: 0.6rem 0;
    }
    
    .menu-list-item-title {
        font-size: 0.95rem !important;
    }
    
    .menu-list-item-description {
        font-size: 0.8rem !important;
    }
    
    .menu-price-badge {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.85rem !important;
        min-width: 40px;
    }
    
    .menu-category-section {
        margin-bottom: 1.5rem;
    }
}

/* Large screens - optimize display */
@media (min-width: 1200px) {
    .menu-list-item-left {
        max-width: 70%;
    }
}
