/* 
 * Styles Front-End - Resto Network Menus
 */

/* Container principal */
.rnm-menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Section plats du jour */
.rnm-daily-section {
    background: #fffbf0;
    border: 2px solid #f4d03f;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.rnm-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
}

/* Plat du jour */
.rnm-daily-specials {
    margin-bottom: 20px;
}

.rnm-daily-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Menu du jour */
.rnm-menu-of-day {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rnm-menu-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #e74c3c;
}

.rnm-menu-items {
    margin: 15px 0;
}

.rnm-menu-item-compact {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rnm-menu-item-compact:last-child {
    border-bottom: none;
}

.rnm-menu-item-compact strong {
    display: block;
    color: #2c3e50;
}

.rnm-menu-item-compact .rnm-item-desc {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 3px;
}

.rnm-menu-price {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f4d03f;
}

/* Sections normales */
.rnm-sections {
    margin-top: 30px;
}

.rnm-section {
    margin-bottom: 50px;
}

.rnm-section-description {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
}

/* Grille de plats */
.rnm-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rnm-menu-item {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.rnm-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.rnm-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rnm-item-content {
    padding: 20px;
}

.rnm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rnm-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    flex: 1;
}

.rnm-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
    margin-left: 15px;
}

.rnm-item-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
}

.rnm-item-allergens {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.rnm-item-allergens small {
    color: #e74c3c;
    font-size: 12px;
}

/* PDF Container */
.rnm-pdf-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.rnm-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.rnm-pdf-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.rnm-pdf-download {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.rnm-pdf-download:hover {
    background: #c0392b;
    color: #fff;
}

.rnm-pdf-viewer {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rnm-pdf-viewer object,
.rnm-pdf-viewer iframe {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .rnm-menu-container {
        padding: 15px;
    }
    
    .rnm-items-grid {
        grid-template-columns: 1fr;
    }
    
    .rnm-daily-item {
        flex-direction: column;
    }
    
    .rnm-pdf-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .rnm-section-title {
        font-size: 24px;
    }
}