/* ------------------ */
/* RESET CSS MINIMAL  */
/* ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background-color: #F5F3E7;
    color: #333333;
}

/* ------------------ */
/* GLOBAL STYLES      */
/* ------------------ */

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    color: #6C8C55;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------ */
/* LAYOUT SECTIONS    */
/* ------------------ */

header {
    padding: 0;
    max-width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.site-title a {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #1a1a2e;
}

footer {
    padding: 0;
    max-width: 100%;
    background-color: #1a1a2e;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

.footer-contact {
    text-align: center;
}

.footer-contact p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-contact p strong {
    color: #ffffff;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-legal {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-legal p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0;
}

section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

/* ------------------ */
/* UTILITY CLASSES    */
/* ------------------ */

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f0f0f0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #6C8C55;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5A7548;
}

.bg-accent {
    background-color: #6C8C55;
    color: white;
}

/* ------------------ */
/* PLACEHOLDER ZONES  */
/* ------------------ */

/* ---- HERO ---- */
.hero {
    background-image: url('../img/hero-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    position: relative;
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #f0f0f0;
}

/* ---- SECTION ROW (two-column layout) ---- */
.section-row {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.section-row .section-text,
.section-row .section-image {
    flex: 1;
}

.section-row .section-text h2 {
    color: #1a1a2e;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.section-row .section-text p {
    color: #555;
}

.image-placeholder-ferme {
    background-color: #e0e0e0;
    border-radius: 8px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #888;
    background-image: url('../img/la-ferme.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.image-placeholder-sandrine {
    background-image: url('../img/sandrine.jpg');
    border-radius: 8px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* ---- PRESENTATION ---- */
.presentation {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

/* ---- A PROPOS ---- */
.a-propos {
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    max-width: 100%;
}

.a-propos .section-row {
    max-width: 1200px;
    margin: 0 auto;
}

.a-propos .section-text h2 {
    color: #1a1a2e;
}

/* ---- VALEURS ---- */
.valeurs {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.valeurs h2 {
    color: #1a1a2e;
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
}

/* ---- CARDS ---- */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* ---- FONCTIONNEMENT ---- */
.fonctionnement {
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    max-width: 100%;
}

.fonctionnement h2,
.fonctionnement .cards-grid,
.fonctionnement .text-center {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.fonctionnement h2 {
    color: #1a1a2e;
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
}

.fonctionnement .card {
    background-color: #ffffff;
}

/* ---- BUTTON DARK ---- */
.btn-dark {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 1rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-dark:hover {
    background-color: #2d2d4a;
}

/* -------------------------------- */
/* RESPONSIVE                       */
/* -------------------------------- */

@media (max-width: 992px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .section-row {
        flex-direction: column;
    }

    .section-row.reverse {
        flex-direction: column;
    }

    .section-row .section-image {
        width: 100%;
    }

    .image-placeholder-ferme,
    .image-placeholder-sandrine {
        width: 100%;
        min-height: 220px;
    }

    .cards-3,
    .cards-4 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        align-items: center;
    }
}

/* -------------------------------- */
/* PAGE PRODUITS                    */
/* -------------------------------- */

/* ---- Hero produits ---- */
.produits-hero {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    max-width: 100%;
}

.produits-hero h1 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.produits-hero p {
    font-size: 1.05rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Filtres ---- */
.produits-filtres {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-filtre {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border: 2px solid #1a1a2e;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-filtre:hover {
    background-color: #2d2d4a;
    border-color: #2d2d4a;
}

.btn-filtre.active {
    background-color: #6C8C55;
    border-color: #6C8C55;
    color: #ffffff;
}

/* ---- Grille produits ---- */
.produits-liste {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ---- Carte produit ---- */
.produit-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.produit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.produit-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e8e8e8;
}

.produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produit-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produit-nom {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.produit-description {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}

.produit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    gap: 0.5rem;
}

.produit-saison {
    background-color: #6C8C55;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.produit-jours {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    text-align: right;
}

/* ---- Responsive produits ---- */
@media (max-width: 992px) {
    .produits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .produits-grid {
        grid-template-columns: 1fr;
    }

    .produits-hero h1 {
        font-size: 1.6rem;
    }

    .produits-filtres {
        flex-wrap: wrap;
    }
}
