/* General Styles */
body {
    font-family: 'Georgia', serif; /* Serif for body text */
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', sans-serif; /* Sans-serif for titles */
    font-weight: bold;
    color: #228B22; /* Vert Forêt */
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

a {
    color: #4682B4; /* Bleu Ciel */
    text-decoration: none;
}

a:hover {
    color: #5F9EA0;
    text-decoration: underline;
}

.btn {
    font-family: 'Helvetica Neue', sans-serif; /* Sans-serif for buttons */
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #228B22; /* Vert Forêt */
    border-color: #228B22;
}

.btn-primary:hover {
    background-color: #3CB371;
    border-color: #3CB371;
}

.btn-secondary {
    background-color: #D2B48C; /* Terre Cuite (lighter) */
    border-color: #D2B48C;
    color: #333;
}

.btn-secondary:hover {
    background-color: #CD853F;
    border-color: #CD853F;
}

/* Layout & Spacing */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

.section-spacing {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-vert-foret {
    background-color: #228B22;
    color: #fff;
}

.bg-creme {
    background-color: #F5F5DC;
}

.bg-bleu-ciel {
    background-color: #87CEEB;
    color: #333;
}

.bg-terre-cuite {
    background-color: #CD853F;
    color: #fff;
}

/* Header */
.navbar {
    background-color: #228B22; /* Vert Forêt */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #F5F5DC !important; /* Crème */
    font-weight: bold;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: #F5F5DC !important; /* Crème */
    margin-left: 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #87CEEB !important; /* Bleu Ciel */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #87CEEB; /* Bleu Ciel */
    left: 0;
    bottom: -5px;
    transition: width .3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-img-top {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    height: 200px;
    object-fit: cover;
}

/* Two-column layout */
.two-column-section .row {
    align-items: center;
}

.two-column-section img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
}

/* FAQ Accordion */
.accordion .card {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

.accordion .card-header {
    background-color: #F5F5DC; /* Crème */
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.accordion .card-header h5 button {
    color: #228B22; /* Vert Forêt */
    text-align: left;
    width: 100%;
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
}

.accordion .card-body {
    background-color: #fff;
}

/* CSS Graphics for Food Groups */
.food-groups-graphic {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 2rem 0;
}

.food-group-item {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.food-group-item:hover {
    transform: scale(1.05);
}

.food-group-item.fruits {
    background-color: #FF6347; /* Tomato */
}
.food-group-item.vegetables {
    background-color: #3CB371; /* MediumSeaGreen */
}
.food-group-item.grains {
    background-color: #DAA520; /* Goldenrod */
}
.food-group-item.proteins {
    background-color: #B0C4DE; /* LightSteelBlue */
}
.food-group-item.dairy {
    background-color: #ADD8E6; /* LightBlue */
}

/* Footer */
.footer {
    background-color: #228B22; /* Vert Forêt */
    color: #F5F5DC; /* Crème */
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer a {
    color: #87CEEB; /* Bleu Ciel */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .text-muted {
    color: #F5F5DC !important;
}

/* Cookie Banner */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 139, 34, 0.95); /* Vert Forêt semi-transparent */
    color: #F5F5DC;
    padding: 1rem;
    text-align: center;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#cookieConsentBanner .btn {
    margin: 0.5rem;
}

#cookieConsentBanner a {
    color: #87CEEB;
    text-decoration: underline;
}

/* Blog Post Layouts */
.blog-post-section {
    padding: 3rem 0;
}

.blog-post-section img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.blog-post-section .content-block {
    margin-bottom: 2rem;
}

.blog-post-section .content-block h2, .blog-post-section .content-block h3 {
    color: #228B22;
    margin-bottom: 1rem;
}

.blog-post-section .content-block ul, .blog-post-section .content-block ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-section .content-block table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.blog-post-section .content-block table th, .blog-post-section .content-block table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.blog-post-section .content-block table th {
    background-color: #F5F5DC;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .hero-section {
        height: 50vh;
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-nav .nav-link {
        margin-left: 0;
    }
    .food-group-item {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
    }
}
