/* La Ferme des Trois Pommes — couleurs tirées du logo */
:root {
  --brun: #5b3519;
  --brun-fonce: #3e2410;
  --or: #ba8c36;
  --vert: #6b8f4e;
  --creme: #f8f3ea;
  --blanc: #fefefe;
  --texte: #3a2a1e;
  --texte-doux: #6f5a48;
  --rayon: 14px;
  --ombre: 0 6px 20px rgba(62, 36, 16, .10);
  --titre: "Rockwell", "Roboto Slab", "Georgia", serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; display: block; }
a { color: var(--brun); }
h1, h2, h3 { font-family: var(--titre); color: var(--brun); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-block;
  padding: .75em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brun);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brun); color: #fff; }
.btn-primary:hover { background: var(--brun-fonce); border-color: var(--brun-fonce); }
.btn-ghost { background: transparent; color: var(--brun); }
.btn-ghost:hover { background: var(--brun); color: #fff; }
.btn-small { padding: .45em 1em; font-size: .95rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(254, 254, 254, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee3d3;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--titre); font-weight: 700; color: var(--brun); font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--texte); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--or); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--brun); cursor: pointer; }

/* Accueil */
.hero { background: var(--blanc); padding: 2rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.hero-logo { width: 100%; max-width: 480px; height: auto; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--or); margin-bottom: .5em; }
.lead { font-size: 1.3rem; font-style: italic; color: var(--brun); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Chiffres */
.stats { background: var(--brun); color: #fff; padding: 1.8rem 0; }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 1rem; }
.stats strong { display: block; font-family: var(--titre); font-size: 2.2rem; color: #f0d9a8; }
.stats span { font-size: .95rem; opacity: .9; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--creme); }
.section-intro { max-width: 720px; color: var(--texte-doux); margin-bottom: 2rem; }

.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.story-img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid #eee3d3; border-radius: var(--rayon);
  padding: 1.8rem; box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.card p { flex: 1; color: var(--texte-doux); }
.card .btn { align-self: flex-start; }
.card-icon { font-size: 2rem; margin-bottom: .4rem; }
.card-highlight { border: 2px solid var(--or); }
.missions .card { text-align: center; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(30, 18, 8, .75));
  color: #fff; font-family: var(--titre); font-size: 1.15rem;
}

.thanks { text-align: center; margin-top: 2.5rem; font-style: italic; color: var(--brun); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid #e6dac6; font-size: 1.1rem; }
.contact-img { border-radius: var(--rayon); box-shadow: var(--ombre); max-height: 420px; width: 100%; object-fit: cover; }

/* Pied de page */
.site-footer { background: var(--brun-fonce); color: #e9dcc8; padding: 2.5rem 0; font-size: .92rem; text-align: center; }
.site-footer p { margin: .3em 0; }
.site-footer details { max-width: 700px; margin: 1rem auto; text-align: left; }
.site-footer summary { cursor: pointer; text-align: center; text-decoration: underline; }
.site-footer details p { margin: .6em 0; }
.copyright { opacity: .7; margin-top: 1rem !important; }

/* Mobile */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--blanc);
    border-bottom: 1px solid #eee3d3; padding: .5rem 0 1rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem; width: 100%; text-align: center; }
  .nav .btn { margin-top: .5rem; }
  .hero-inner, .story, .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-logo { max-width: 300px; }
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .stats strong { font-size: 1.7rem; }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .brand span { font-size: .95rem; }
}
