@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/noto-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/noto-serif-700.woff2") format("woff2"); }

:root {
  --green: #4b7a3d;
  --green-dark: #33552a;
  --cream: #faf7f0;
  --brown: #7a5c3e;
  --text: #2e2a24;
  --text-light: #5c584f;
  --border: #e4ddce;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, .h3 {
  font-family: "Noto Serif", Georgia, serif;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-light); }

a { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand picture { flex: 0 0 auto; }

.brand img {
  height: 60px;
  width: auto;
  max-width: none;
  border-radius: 6px;
}

.brand-text {
  font-family: "Noto Serif", serif;
  color: var(--green-dark);
  line-height: 1.1;
}

.brand-text strong {
  display: block;
  font-size: 1.15rem;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--brown);
}

nav.main-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--green-dark);
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  background: var(--green-dark);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.hero::after { content: ""; position: absolute; inset: 0; background: rgba(30, 40, 20, 0.5); }
.hero picture, .hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-bg { object-fit: cover; }
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
}

.hero p {
  color: #f3f0e8;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.page-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 { color: #fff; margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover { background: #fff; color: var(--green-dark); }

/* Sections */
section { padding: 3.5rem 0; }

section.alt { background: #fff; }

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.grid {
  display: grid;
  gap: 1.8rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card ul {
  padding-left: 1.1rem;
  color: var(--text-light);
  margin: 0.6rem 0 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: 12px; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
  margin-top: 2rem;
}

.stat {
  min-width: 140px;
}

.stat strong {
  display: block;
  font-family: "Noto Serif", serif;
  font-size: 2rem;
  color: var(--green-dark);
}

.stat span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.team-grid figure {
  margin: 0;
  text-align: center;
}

.team-grid img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 0.75rem;
}

/* Product groups */
.product-group {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.product-group:first-of-type { border-top: none; padding-top: 0; }

.product-group h3 {
  color: var(--brown);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
}

/* Points of sale */
.pos-card {
  border-left: 4px solid var(--green);
}

.pos-card p { margin-bottom: 0.4rem; }

/* Photo d'un point de vente : affichée en entier (devanture, carte de visite…) */
.pos-card .pos-img { width: 100%; height: auto; border-radius: 8px; margin: 0.4rem 0 1rem; }

.pos-card strong { color: var(--text); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}

.contact-info dt {
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 1.1rem;
}

.contact-info dd {
  margin: 0.15rem 0 0;
  color: var(--text-light);
}


.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
}

/* Map */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.map { width: 100%; height: 420px; }
.map-fallback { padding: 1rem 1.5rem; margin: 0; }
.leaflet-container { font-family: inherit; }
@media (max-width: 720px) { .map { height: 340px; } }

/* Footer */
footer.site-footer {
  background: var(--green-dark);
  color: #e8e6dd;
  padding: 2.5rem 0 1.2rem;
  margin-top: 2rem;
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer.site-footer p { color: #e8e6dd; }

footer.site-footer h4 {
  color: #fff;
  font-family: "Noto Serif", serif;
  margin: 0 0 0.6rem;
}

footer.site-footer a {
  color: #d8e4cf;
  text-decoration: none;
}

footer.site-footer a:hover { text-decoration: underline; }

.footer-bottom a { color: #d8e4cf; }
.footer-updated { font-size: 0.75rem; opacity: 0.8; }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #b7c7ac;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 820px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col .img-wrap { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .site-header .container { position: relative; }
  h1 { font-size: 2rem; }
  .hero { padding: 3.5rem 0; }
}

/* Accessibilité */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }

/* Bandeau d'annonce */
.announcement { background: var(--brown); color: #fff; text-align: center; padding: 0.6rem 0; }
.announcement p { color: #fff; margin: 0; font-size: 0.95rem; }
.announcement a { color: #fff; font-weight: 600; margin-left: 0.5rem; }

/* Utilitaires (remplacent les styles inline, interdits par la CSP) */
.center { text-align: center; }
.center-cta { text-align: center; margin-top: 2rem; }
.small { font-size: 0.9rem; }
.page-hero-sub { color: #e8e6dd; max-width: 560px; margin: 0.8rem auto 0; }
.footer-title { color: #fff; font-family: "Noto Serif", serif; font-size: 1rem; margin: 0 0 0.6rem; }
.footer-social a { margin-right: 1rem; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { color: var(--text-light); padding-left: 1.2rem; }

/* Cartes cliquables, images */
.card-link { display: block; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.card-link:hover, .card-link:focus-visible { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card .card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.card .meta { font-size: 0.85rem; color: var(--brown); margin-bottom: 0.3rem; }
.hours-summary { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hours-summary li { margin-bottom: 0.9rem; color: var(--text-light); }
.hours-summary strong { color: var(--text); }
.closing-card { text-align: center; margin-top: 1rem; }

/* Produits avec image */
.product-group.has-image { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 2rem; align-items: center; }
.product-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 350px; margin: 0 auto; border-radius: 12px; }
.product-group { scroll-margin-top: 90px; }

/* Article */
.article { max-width: 760px; }
.article-img { margin-bottom: 1.5rem; }
.article-img img { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; border-radius: 12px; }

@media (max-width: 820px) {
  .product-group.has-image { grid-template-columns: 1fr; }
  .product-img { order: -1; }
}

[hidden] { display: none !important; }

/* Facebook (page Actualités) */
.fb-box { text-align: center; }
.fb-frame { max-width: 500px; margin: 0 auto 1rem; }
.fb-frame iframe { width: 100%; height: 1000px; border: 0; border-radius: 12px; background: #fff; display: block; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.btn-secondary { background: transparent; color: var(--green-dark); border: 2px solid var(--green); padding: calc(0.75rem - 2px) calc(1.6rem - 2px); }
.btn-secondary:hover { background: var(--green-dark); color: #fff; }
.fb-box .btn { margin: 0.3rem; }

