/* main.css */
:root {
    --vert-foret: #228B22;
    --creme: #FFFDD0;
    --terracotta: #E2725B;
    --bleu-ciel-clair: #ADD8E6;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --font-heading: 'Montserrat', 'Lato', sans-serif;
    --font-body: 'Open Sans', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--creme);
    margin: 0;
    padding-top: 56px; /* Height of fixed header */
}

/* Mobile-first approach */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.full-width-section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: var(--text-light) !important;
}

.bg-vert-foret {
    background-color: var(--vert-foret) !important;
}

.bg-terracotta {
    background-color: var(--terracotta) !important;
}

.bg-bleu-ciel-clair {
    background-color: var(--bleu-ciel-clair) !important;
}

.text-vert-foret {
    color: var(--vert-foret) !important;
}

.text-terracotta {
    color: var(--terracotta) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--vert-foret);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--terracotta);
    text-decoration: none;
}

a:hover {
    color: var(--vert-foret);
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--vert-foret);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    color: var(--creme);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.header .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header .nav-menu li {
    margin-left: 1.5rem;
}

.header .nav-menu a {
    color: var(--creme);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header .nav-menu a:hover {
    color: var(--bleu-ciel-clair);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    background-color: var(--vert-foret);
}

.hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.hero-content h1 {
    color: var(--creme);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--creme);
}

/* Section Styling */
.section-padding {
    padding: 4rem 0;
}

.section-vert-foret {
    background-color: var(--vert-foret);
    color: var(--text-light);
}

.section-creme {
    background-color: var(--creme);
    color: var(--text-dark);
}

.section-bleu-ciel-clair {
    background-color: var(--bleu-ciel-clair);
    color: var(--text-dark);
}

.section-terracotta {
    background-color: var(--terracotta);
    color: var(--text-light);
}

/* Two-column layout */
.two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .two-column-layout {
        flex-direction: row;
        justify-content: space-between;
    }
    .two-column-layout.reverse {
        flex-direction: row-reverse;
    }
}

.two-column-layout .text-content, .two-column-layout .image-content {
    flex: 1;
    min-width: 0;
}

.two-column-layout .image-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cards */
.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card h3 {
    color: var(--vert-foret);
    margin-top: 0;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

.card .btn {
    display: inline-block;
    background-color: var(--terracotta);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.card .btn:hover {
    background-color: #c95d48; /* Darker terracotta */
    transform: translateY(-2px);
}

.card-icon {
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* FAQ Accordion */
.accordion-item {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: var(--bleu-ciel-clair);
    color: var(--vert-foret);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #9acfe2; /* Lighter bleu-ciel-clair */
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: none;
}

/* CSS Icons/Graphics */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--terracotta);
    color: var(--creme);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.icon-carbs::before {
    content: 'C';
}
.icon-proteins::before {
    content: 'P';
}
.icon-lipids::before {
    content: 'L';
}
.icon-vitamins::before {
    content: 'V';
}
.icon-minerals::before {
    content: 'M';
}
.icon-water {
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 50% 0%;
    background-color: var(--bleu-ciel-clair);
    color: var(--vert-foret);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    transform: rotate(45deg);
}
.icon-water::before {
    content: '\2614'; /* Unicode for umbrella with rain drops, a simple water visual */
    transform: rotate(-45deg);
}

.icon-check::before {
    content: '\2713'; /* Checkmark */
    color: var(--vert-foret);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}
.icon-cross::before {
    content: '\2717'; /* Cross mark */
    color: var(--terracotta);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.icon-brain {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--terracotta);
    color: var(--creme);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.icon-brain::before {
    content: '\1F9E0'; /* Brain emoji, simple representation */
}

/* Footer */
.footer {
    background-color: var(--vert-foret);
    color: var(--creme);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer a {
    color: var(--bleu-ciel-clair);
    text-decoration: none;
}

.footer a:hover {
    color: var(--creme);
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer h4 {
    color: var(--creme);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer .disclaimer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    z-index: 1050;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cookie-banner p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-banner .cookie-buttons button {
    background-color: var(--terracotta);
    color: var(--text-light);
    border: none;
    padding: 0.7rem 1.2rem;
    margin: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cookie-banner .cookie-buttons button:hover {
    background-color: #c95d48;
    transform: translateY(-2px);
}

.cookie-banner .cookie-buttons a {
    color: var(--bleu-ciel-clair);
    text-decoration: underline;
    margin: 0.5rem;
    font-weight: 500;
}

.cookie-banner .cookie-buttons a:hover {
    color: var(--creme);
}

/* Form Styling */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--vert-foret);
}

.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(226, 114, 91, 0.25);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-left: 4px solid var(--bleu-ciel-clair);
    background-color: #f0f8ff;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--vert-foret);
    color: var(--text-light);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    background-color: #1a6b1a; /* Darker vert-foret */
    transform: translateY(-2px);
}

/* Responsive adjustments for header */
@media (max-width: 767px) {
    .header .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 56px;
        left: 0;
        background-color: var(--vert-foret);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header .nav-menu.active {
        display: flex;
    }

    .header .nav-menu li {
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .header .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--creme);
        font-size: 2rem;
        cursor: pointer;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}
