/* Styles spécifiques pour restaurant-scolaire.php */

/* Hero section */
.restaurant-hero {
    height: 300px;
    background: url('../../images/activites/Restauration-scolaire.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.restaurant-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
}

.restaurant-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.restaurant-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.restaurant-hero p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Menu section */
.menu-section {
    padding: 3rem 0;
    background-color: var(--background-color);
}

.menu-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Intro text */
.intro-text {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.intro-text p {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Engagement points */
.engagement-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.engagement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

.engagement i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.engagement span {
    font-weight: 500;
    color: var(--text-color);
}

/* Menu tabs */
.menu-tabs {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.menu-tab-btn {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.menu-tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.menu-date {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-date h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Menu content */
.menu-content {
    display: none;
}

.menu-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.meal-category {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.meal-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.meal-items {
    list-style: none;
    padding: 0;
}

.meal-items li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
}

.meal-items li:last-child {
    border-bottom: none;
}

.bio-label, .local-label, .veggie-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.bio-label {
    background-color: #76c043;
    color: white;
}

.local-label {
    background-color: #f39200;
    color: white;
}

.veggie-label {
    background-color: #8bc0d0;
    color: white;
}

.hot-label {
    display: inline-flex;
    align-items: center;
    background: #ff9800;
    color: #fff;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    padding: 2px 10px 2px 7px;
    margin-left: 8px;
    gap: 4px;
    box-shadow: none;
}

.hot-label i {
    margin-right: 3px;
    margin-left: 0;
    font-size: 1em;
    color: #fff;
    filter: none;
}

/* Info pratiques */
.info-pratiques {
    margin-top: 3rem;
}

.info-pratiques h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.info-card li {
    padding: 0.3rem 0;
    color: var(--text-color);
}

.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Back to home button */
.back-home {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 100;
}

.back-home i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-home:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.back-home:hover i {
    transform: translateX(-3px);
}

/* Dark mode styles */
[data-theme="dark"] .menu-tabs,
[data-theme="dark"] .info-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .meal-category {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .menu-tab-btn {
    background: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .menu-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Media Queries */
@media (max-width: 992px) {
    .restaurant-hero {
        height: 250px;
    }
    
    .menu-content.active {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-home {
        top: 90px;
        left: 15px;
    }
}

@media (max-width: 768px) {
    .restaurant-hero {
        height: 220px;
    }
    
    .restaurant-hero h1 {
        font-size: 2rem;
    }
    
    .restaurant-hero p {
        font-size: 1rem;
    }
    
    .engagement-points {
        gap: 1rem;
    }
    
    .engagement i {
        font-size: 1.8rem;
    }
    
    .menu-content.active {
        grid-template-columns: 1fr;
    }
    
    .menu-tabs {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-text h2,
    .info-pratiques h2 {
        font-size: 1.5rem;
    }
    
    .back-home {
        padding: 0.6rem 1.2rem;
        margin: 1rem;
        font-size: 0.9rem;
        top: 80px;
        left: 10px;
    }
}

@media (max-width: 576px) {
    .restaurant-hero {
        height: 180px;
        margin-top: 60px;
    }
    
    .restaurant-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .restaurant-hero p {
        font-size: 0.9rem;
    }
    
    .menu-section {
        padding: 2rem 0 1rem;
    }
    
    .intro-text {
        margin-bottom: 2rem;
    }
    
    .meal-category {
        padding: 1rem;
    }
    
    .meal-category h4 {
        font-size: 1.1rem;
    }
    
    .menu-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-buttons {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .back-home {
        padding: 0.5rem 1rem;
        margin: 0.75rem;
        font-size: 0.85rem;
        top: 70px;
        left: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .back-home span {
        display: none; /* Cacher le texte sur très petits écrans */
    }
    
    .back-home i {
        margin-right: 0;
        font-size: 1rem;
    }
} 