/* ---
Styles for the "Fresh & Natural" Programme Alimentaire Page
--- */

/* ----------------------------- */
/* 0. Variables & Global Styles
/* ----------------------------- */

:root {
    --color-bg-natural: #e9edc9;
    --color-green-sage: #003049;
    --color-green-sage-dark: #58b8a2;
    --color-coral-accent: #E88873;
    --color-coral-accent-dark: #d76c54;
    --color-text-charcoal: #3D405B;
    --color-text-light: #6e7188;
    --color-card-bg: #FFFFFF;
    --color-warning: #E8C573;
    --color-danger: #E45757;
    --color-success: #6ed4bb;
}

body,
html {
    scroll-behavior: smooth;
}

.programme-body {
    font-family: 'Lato', 'Tajawal', sans-serif;
    background-color: var(--color-bg-natural);
    color: var(--color-text-charcoal);
    margin: 0;
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ----------------------------- */
/* 1. General Layout & Sections
/* ----------------------------- */

.programme-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-text-charcoal);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* ----------------------------- */
/* 2. Hero Section
/* ----------------------------- */

.programme-hero {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?q=80&w=2070&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ----------------------------- */
/* 3. Golden Rules Section
/* ----------------------------- */

.rules-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    background-color: #F5F1DE;
    padding: 60px 20px;
    border-radius: 20px;
    margin-bottom: 5rem;
}

.rules-section .section-title {
    width: 100%;
    color: #333A45;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.rules-section .rule-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rules-section .rule-number {
    font-size: 6rem;
    font-weight: 600;
    color: #E8A09A;
    line-height: 1;
}

.rules-section .rule-text {
    color: #333A45;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 250px;
    margin-top: 15px;
}

/* ----------------------------- */
/* 4. Food Banners Section
/* ----------------------------- */

.programme-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 5rem;
}

.food-banner {
    min-height: 250px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.food-banner:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.food-banner:hover .banner-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.food-banner h3 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.banner-avoid {
    background-image: url('éviter.jpg');
}

.banner-limit {
    background-image: url('limiter.jpg');
}

.banner-recommended {
    background-image: url('volonter.jpg');
}

/* ----------------------------- */
/* 5. Equivalences Section
/* ----------------------------- */

.equivalences-section {
    padding: 3rem 0;
}

.equivalences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.equivalence-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(61, 64, 91, 0.05);
    border-top: 4px solid var(--color-green-sage);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equivalence-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(61, 64, 91, 0.1);
}

.equivalence-card h4 {
    color: var(--color-text-charcoal);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.equivalence-card i {
    color: var(--color-coral-accent);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
}

.equivalence-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equivalence-card li {
    color: var(--color-text-light);
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    position: relative;
}

.equivalence-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-green-sage);
    font-weight: bold;
}

.equivalence-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
    background-color: var(--color-bg-natural);
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ----------------------------- */
/* 6. Useful Information Section
/* ----------------------------- */

.info-utiles-section {
    margin: 4rem 0;
}

.info-utiles-section .section-title {
    margin-bottom: 30px;
}

.info-utiles-section .section-title .fa-lightbulb {
    color: var(--color-warning);
    margin-right: 15px;
    vertical-align: middle;
}

.info-utiles-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-left: 5px solid var(--color-green-sage-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-utiles-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.info-utiles-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0 0 15px 0;
    padding-left: 20px;
    position: relative;
}

.info-utiles-card p:last-child {
    margin-bottom: 0;
}

.info-utiles-card p::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--color-success);
    font-weight: bold;
}

/* ----------------------------- */
/* 7. Glycemic Index Section
/* ----------------------------- */

.gi-section {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 4rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.gi-section h3 {
    margin-bottom: 1rem;
    color: var(--color-text-charcoal);
    font-size: 1.5rem;
}

.gi-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--color-text-light);
}

.gi-scale {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
}

.gi-level {
    flex: 1;
    min-width: 150px;
}

.gi-level span {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gi-level p {
    font-size: 0.9rem;
    margin: 0;
}

.gi-low span { color: var(--color-success); }
.gi-medium span { color: var(--color-warning); }
.gi-high span { color: var(--color-danger); }

/* ----------------------------- */
/* 8. Meal Plan Section
/* ----------------------------- */

.meal-plan-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
    border-radius: 20px;
    margin: 50px 0;
}

.meal-plan-section .section-title {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
}

.meal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    color: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.meal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.meal-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.meal-card h4 {
    color: #f0ad4e;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.meal-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.meal-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.meal-content li::before {
    content: '•';
    color: #4A90E2;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.meal-content em {
    font-style: italic;
    font-size: 0.9em;
    color: #ccc;
}

.snack-card {
    grid-column: 1 / -1;
}

.snack-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 15px auto 0 auto;
}

.meal-icon-placeholder {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed #ccc;
    border-radius: 50%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.decorative-icon {
    grid-column: 1 / -1;
    margin: 20px auto 0 auto;
    width: 120px;
    height: 120px;
}


/* ----------------------------- */
/* 9. BMI Calculator
/* ----------------------------- */

.bmi-calculator {
    background-color: var(--color-green-sage);
    color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 4rem 0;
    text-align: center;
}

.bmi-calculator h3 {
    color: white;
    font-size: 1.5rem;
}

.bmi-inputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.bmi-inputs div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bmi-inputs label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bmi-inputs input {
    border: none;
    border-radius: 5px;
    padding: 0.8rem;
    font-family: 'Lato', sans-serif;
}

.bmi-calculator button {
    background-color: var(--color-coral-accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.bmi-calculator button:hover {
    background-color: var(--color-coral-accent-dark);
}

#bmi-result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    height: 30px;
    transition: color 0.3s ease;
}

/* ----------------------------- */
/* 10. Footer
/* ----------------------------- */

.main-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg-natural);
    margin-top: 2rem;
}

.main-footer p {
    margin: 0;
    color: var(--color-green-sage);
}

/* ----------------------------- */
/* 11. Responsive Adjustments
/* ----------------------------- */

@media (max-width: 768px) {
    .programme-container {
        padding: 0 1rem 3rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title,
    .rules-section .section-title,
    .meal-plan-section .section-title {
        font-size: 1.8rem;
    }

    .food-banner h3 {
        font-size: 1.8rem;
    }
    
    .rules-section {
        flex-direction: column;
        align-items: center;
    }

    .rules-section .rule-card {
        width: 100%;
        margin-bottom: 30px;
    }

    .meal-grid {
        grid-template-columns: 1fr;
    }
}