/* Madame Beans — feuille de style commune
   Maquette de référence : canvas Canva 1366 px. */

:root {
  --green: #5b7254;
  --green-dark: #4b5f45;
  --yellow: #fec829;
  --yellow-dark: #f0b800;
  --beige: #e2dbcb;
  --beige-light: #efeae0;
  --ink: #1a1a1a;
  --white: #fff;

  --max: 1180px;
  --radius: 22px;
  --radius-lg: 34px;

  --shadow-card: 0 10px 30px rgba(26, 26, 26, .08);
  --nav-h: 86px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* ---------- Titres ---------- */

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }

.h-section {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  color: var(--green);
  text-align: center;
  font-weight: 500;
}

.h-section.ink { color: var(--ink); font-weight: 600; }

.h-sub {
  margin: 14px 0 0;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink);
}

/* Soulignement jaune tracé à la main */
.brush {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.brush::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.06em;
  height: .17em;
  background: var(--yellow);
  border-radius: 50%;
  z-index: -1;
}

/* Pastille verte de titre */
.pill {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  padding: .45em 1.1em;
  border-radius: 18px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: Fredoka, Poppins, sans-serif;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-round {
  background: var(--yellow);
  color: var(--ink);
  width: 76px; height: 76px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.btn-round:hover { background: var(--yellow-dark); }

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  padding: .8em 2em;
  border-radius: 999px;
  font-size: 1.05rem;
}
.btn-yellow:hover { background: var(--yellow-dark); }

.btn-green {
  background: var(--green);
  color: var(--white);
  padding: .8em 2.2em;
  border-radius: 999px;
  font-size: 1.05rem;
}
.btn-green:hover { background: var(--green-dark); }

/* Bouton "étiquette" jaune rectangulaire de la maquette */
.btn-tag {
  background: var(--yellow);
  color: var(--ink);
  padding: .55em 1.2em;
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
}
.btn-tag:hover { background: var(--yellow-dark); }

/* Traits d'énergie autour des CTA */
.spark { position: relative; display: inline-block; }
.spark::before,
.spark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px; height: 26px;
  translate: 0 -50%;
  background: no-repeat center / contain;
}
.spark::after {
  right: -52px;
  width: 40px; height: 40px;
  background-image: url("../img/traits-verts.png");
}
.spark::before { display: none; }

/* ---------- Bandeau de navigation ---------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  z-index: 50;
  width: min(100% - 48px, 1260px);
  background: var(--green);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 34px;
  box-shadow: 0 6px 26px rgba(26, 26, 26, .16);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .45s ease, translate .45s ease;
}
.nav-logo img { height: 52px; width: auto; }
.nav.is-scrolled .nav-logo { opacity: 1; translate: 0 0; }

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 400;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--yellow); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: translate .25s ease, rotate .25s ease, opacity .2s ease;
}
.nav.is-open .nav-burger span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card {
  position: relative;
  width: min(100% - 48px, 1060px);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 62px) clamp(30px, 7vw, 110px);
  text-align: center;
  transition: opacity .4s ease, scale .4s ease;
}
.hero-card img { margin-inline: auto; width: min(760px, 68vw); }
.hero-card.is-hidden { opacity: 0; scale: .96; }

.hero-scroll {
  position: absolute;
  bottom: 118px;
  left: 50%;
  translate: -50% 0;
  width: 34px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% 10px; } }

/* ---------- Sections génériques ---------- */

.section { padding: clamp(52px, 6.2vw, 88px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }

.intro-card {
  background: rgba(255, 255, 255, .84);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 54px);
  text-align: center;
}
.intro-card p { margin: 18px 0 0; font-size: clamp(1rem, 1.6vw, 1.3rem); }

mark.hl {
  background: var(--yellow);
  color: inherit;
  padding: .06em .2em;
  border-radius: 4px;
}

/* ---------- Cartes secteurs ---------- */

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }

.sector {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.sector h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sector figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; }
.sector figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bloc "Entre tradition et innovation" ---------- */

.story { position: relative; display: grid; grid-template-columns: 300px 1fr; align-items: center; }
.story-photo { grid-column: 1; grid-row: 1; z-index: 2; border-radius: 50%; overflow: hidden; aspect-ratio: 1; width: 300px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 54px) clamp(32px, 4vw, 52px) 220px;
  margin-left: 130px;
}
.story-text p { margin: 0 0 18px; text-align: justify; }
.story-text p:last-of-type { margin-bottom: 0; }
.story-title { text-align: center; margin-bottom: 26px; }

/* ---------- Engagements ---------- */

.pledges { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-top: 46px; }
.pledge {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--beige);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 22px;
}
.pledge:nth-child(even) { background: var(--beige-light); }
.pledge-icon {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
}
.pledge-icon img { width: 42px; }
.pledge h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.pledge p { margin: 0; font-size: .96rem; text-align: justify; }

.pledge-aside { position: relative; text-align: center; }
.pledge-blob {
  background: var(--yellow);
  border-radius: 52% 48% 44% 56% / 48% 54% 46% 52%;
  padding: 56px 42px 46px;
  margin-top: 46px;
}
.pledge-blob p { margin: 0; text-align: justify; font-size: .98rem; }
.pledge-badge { width: 210px; margin: 0 auto -34px; position: relative; z-index: 2; }

/* ---------- Témoignages ---------- */

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; position: relative; }
.quote { background: var(--beige); border-radius: 18px; padding: 26px 30px; }
.quote p { margin: 0 0 14px; text-align: justify; font-size: .98rem; }
.quote .more { color: var(--yellow-dark); text-decoration: none; }
.quote .more:hover { text-decoration: underline; }
.quote cite { font-style: italic; font-size: .96rem; }

.quote-mark { position: absolute; width: 96px; }
.quote-mark.tl { top: -54px; left: -18px; }
.quote-mark.br { bottom: -46px; right: -10px; rotate: 180deg; }

/* ---------- Presse ---------- */

.press { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 54px; }
.press-video { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #000; }
.press-video img { width: 100%; height: 100%; object-fit: cover; }
.press-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.press-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.press-play svg { width: 74px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); }
.press h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; margin-bottom: 14px; }
.press p { text-align: justify; margin: 0 0 16px; }

/* ---------- Partenaires ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
}
.partners img { max-height: 78px; width: auto; object-fit: contain; }

/* ---------- Bandeau photo pleine largeur ---------- */

.band { height: clamp(260px, 38vw, 520px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */

.faq { background: var(--yellow); padding: clamp(56px, 7vw, 92px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 400; line-height: 1.3; }
.faq-intro { margin: 10px 0 0; }

.faq-item { border-bottom: 1px solid rgba(26, 26, 26, .25); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  text-align: left;
  padding: 20px 46px 20px 0;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate .25s ease;
}
.faq-item.is-open .faq-q::after { rotate: -135deg; translate: 0 -20%; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 20px; font-size: .98rem; }

.faq-cta { text-align: center; margin-top: 56px; }
.faq-cta p { font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin: 0 0 20px; }

/* ---------- Contact ---------- */

.contact { position: relative; padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(91, 114, 84, .55), rgba(91, 114, 84, .75));
}
.contact-card {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 760px);
  margin-inline: auto;
  background: rgba(255, 255, 255, .9);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
}
.contact-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 400; }
.contact-card > p { margin: 14px 0 0; font-size: .98rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; text-align: left; }
.form input, .form select, .form textarea {
  font: inherit;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(26, 26, 26, .18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form button { justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .9rem; }

/* ---------- Footer ---------- */

.footer { background: var(--green); color: var(--white); padding: 52px 0 34px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo img { height: 92px; width: auto; }
.footer-social {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 26px;
  text-align: center;
  color: var(--ink);
}
.footer-social p { margin: 0 0 10px; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.footer-social a { display: inline-block; margin: 0 9px; }
.footer-social svg { width: 34px; height: 34px; fill: var(--green); }

.footer-bottom {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 46px;
  font-style: italic;
  font-size: .98rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Vague verte décorative ---------- */

.wave { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.wave path { fill: var(--green); }

/* ---------- Checklists animées ---------- */

.checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}
.check {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #4caf50;
  display: grid;
  place-items: center;
  scale: 0;
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1);
}
.checklist.is-on .check { scale: 1; }
.checklist.is-on li:nth-child(2) .check { transition-delay: .1s; }
.checklist.is-on li:nth-child(3) .check { transition-delay: .2s; }
.checklist.is-on li:nth-child(4) .check { transition-delay: .3s; }
.checklist.is-on li:nth-child(5) .check { transition-delay: .4s; }
.checklist.is-on li:nth-child(6) .check { transition-delay: .5s; }
.check svg { width: 17px; stroke: #fff; stroke-width: 3.4; fill: none; }

/* Variante coche verte tracée (pages secteur) */
.checklist.outline .check { background: none; border-radius: 0; }
.checklist.outline .check svg { stroke: var(--green); width: 24px; }

/* ---------- Badges produits ---------- */

.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.badges > img { width: 100%; height: 100%; object-fit: contain; }
.badges.five { grid-template-columns: repeat(5, 1fr); max-width: 980px; margin-inline: auto; }
.badge {
  border-radius: 14px;
  padding: 18px 12px 22px;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}
.badge span { font-family: Fredoka, Poppins, sans-serif; font-weight: 600; font-size: .86rem; line-height: 1.2; text-transform: uppercase; }
.badge img, .badge svg { width: 74px; height: 74px; object-fit: contain; }
.badge.green { background: var(--green); }
.badge.yellow { background: var(--yellow); color: var(--ink); }
.badge.beige { background: #cdb79b; color: var(--ink); }
.badge.white { background: var(--beige); color: var(--ink); }

/* ---------- Carrousel plateaux ---------- */

.trays { margin-top: 44px; overflow: hidden; }
.trays-track { display: flex; gap: 20px; width: max-content; animation: slide 46s linear infinite; }
.trays:hover .trays-track { animation-play-state: paused; }
.trays-track figure { margin: 0; flex: 0 0 auto; width: 330px; }
.trays-track img { width: 100%; height: 240px; object-fit: cover; border-radius: 4px; }
@keyframes slide { from { translate: 0 0; } to { translate: -50% 0; } }

/* ---------- Produits ---------- */

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.product { background: var(--beige); border-radius: var(--radius); overflow: hidden; }
.product img { width: 100%; }

/* ---------- Galerie créations ---------- */

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }

/* ---------- Split texte + image ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: 50px; }
.split-media img { border-radius: 18px; width: 100%; }
.split-text p { margin: 0 0 16px; font-size: clamp(1rem, 1.55vw, 1.16rem); }

/* ---------- Popup starter pack ---------- */

.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(26, 26, 26, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.popup.is-on { opacity: 1; pointer-events: auto; }
.popup-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  width: min(100% - 48px, 520px);
  text-align: center;
  position: relative;
  scale: .94;
  transition: scale .3s ease;
}
.popup.is-on .popup-box { scale: 1; }
.popup-box h3 { font-size: 1.5rem; color: var(--green); margin-bottom: 10px; }
.popup-box p { margin: 0 0 22px; }
.popup-box form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.popup-box input {
  font: inherit;
  flex: 1 1 240px;
  padding: 13px 16px;
  border: 1px solid rgba(26, 26, 26, .18);
  border-radius: 8px;
}
.popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Apparition au scroll ---------- */

.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-card, .nav-logo { transition: none; opacity: 1; translate: 0; }
  .trays-track { animation: none; }
  .hero-scroll { animation: none; }
  .check { scale: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .sectors { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .pledges, .press, .faq-grid, .split, .products { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story-photo { width: 200px; margin: 0 auto -110px; }
  .story-text { margin-left: 0; padding: 130px clamp(24px, 5vw, 40px) 40px; }
  .pledge-aside { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 760px) {
  :root { --nav-h: 74px; }
  .nav { padding: 12px 20px; gap: 14px; flex-wrap: wrap; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 6px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-logo { opacity: 1; translate: 0 0; }
  .nav-logo img { height: 42px; }
  .form { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-top { justify-content: center; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; gap: 16px; }
  .trays-track figure { width: 250px; }
  .trays-track img { height: 190px; }
  .quote-mark { width: 62px; }
}
