/* ==========================================================================
   Meilleur Produit Bio — Refonte 2027
   Charte issue du handoff Claude Design (crème / vert forêt / sauge / terracotta)
   ========================================================================== */

:root {
  /* Fonds */
  --bg: #F8F4ED;
  --bg-alt: #F1EAE0;
  --card: #FDFBF7;
  --sand: #EDE6D9;
  --white: #FFFFFF;

  /* Verts */
  --green-dark: #37452F;   /* titres, panneaux sombres, footer */
  --green: #7E9377;        /* CTA principal */
  --green-hover: #6C8166;
  --green-text: #57694F;
  --green-soft: #9BA88F;   /* eyebrows sur fond sombre */

  /* Encres */
  --ink: #3D362E;
  --muted: #6F675C;
  --muted-2: #8A8175;

  /* Terracotta / rosé */
  --terra: #A5806F;        /* eyebrows */
  --rose: #C9A099;
  --rose-dark: #8C5F53;
  --rose-bg: #EFE0DA;      /* CTA final */
  --rose-bg-hover: #F3E4DF;
  --rose-title: #5A423B;
  --rose-text: #8C6F66;

  /* Footer */
  --footer-text: #E9E4DA;
  --footer-muted: #C6C9BC;
  --footer-dim: #A9B19D;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;

  --shadow-card: 0 4px 24px rgba(61, 54, 46, .05);
  --shadow-card-hover: 0 14px 36px rgba(61, 54, 46, .10);
  --radius-card: 20px;
  --radius-panel: 26px;
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-dark); color: var(--bg);
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* === Animations === */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes floatY { from { transform: translateY(0); } to { transform: translateY(-8px); } }

#hero-frame img {
  width: 100%; height: clamp(320px, 42vw, 520px);
  object-fit: cover; display: block;
  animation: heroZoom 16s ease-in-out infinite alternate;
  will-change: transform;
}

.rise-1 { animation: rise .8s both; }
.rise-2 { animation: rise .9s .05s both; }
.rise-3 { animation: rise 1s .1s both; }
.rise-4 { animation: rise 1s .15s both; }

[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.16,.6,.24,1), transform .8s cubic-bezier(.16,.6,.24,1);
}
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* === Typographie commune === */
.eyebrow {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow--on-dark { color: var(--green-soft); }

h1, .h1 {
  margin: 0; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 58px); line-height: 1.15;
  color: var(--green-dark); text-wrap: balance;
}
.lead {
  margin: 0; font-size: clamp(16px, 1.4vw, 18px); font-weight: 300;
  line-height: 1.75; color: var(--muted);
}
.section-title {
  margin: 0; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px); color: var(--green-dark);
}

/* === Boutons pilule === */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  letter-spacing: .04em; padding: 15px 30px; border-radius: 999px;
  border: none; transition: background .2s, transform .2s, box-shadow .25s;
}
.btn--primary { background: var(--green); color: var(--card); }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn--rose { background: transparent; border: 1px solid var(--rose); color: var(--rose-dark); padding: 14px 30px; }
.btn--rose:hover { background: var(--rose-bg-hover); transform: translateY(-1px); }
.btn--rose-dark { background: transparent; border: 1px solid var(--rose-dark); color: var(--rose-dark); padding: 14px 30px; }
.btn--rose-dark:hover { background: rgba(255,255,255,.5); }
.btn--light { background: var(--bg); color: var(--green-dark); }
.btn--light:hover { background: var(--white); }
.btn--outline-green { background: transparent; border: 1px solid var(--green); color: var(--green-text); padding: 13px 28px; }
.btn--outline-green:hover { background: #EDF1EA; }

.link-arrow {
  text-decoration: none; color: var(--green-text); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--green); padding-bottom: 3px; transition: color .2s;
}
.link-arrow:hover { color: var(--green-dark); }

/* === Navigation === */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 237, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 54, 46, .08);
}
.site-nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav__brand {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; transition: transform .25s cubic-bezier(.16,.6,.24,1);
}
.site-nav__brand:hover { transform: scale(1.045); }
.site-nav__brand img { height: 52px; width: auto; display: block; }
.site-nav__brand span {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600;
  color: var(--green-dark); letter-spacing: .01em;
}
.site-nav__links { display: flex; align-items: center; gap: 26px; }
.site-nav__links a:not(.btn) {
  text-decoration: none; font-size: 15px; letter-spacing: .02em;
  color: var(--muted); border: 1px solid transparent;
  padding: 6px 12px; border-radius: 999px;
  transition: color .2s, background .25s, transform .25s;
}
.site-nav__links a:not(.btn):hover {
  color: var(--green-dark); background: rgba(126, 147, 119, .14); transform: translateY(-1px);
}
.site-nav__links a[aria-current="page"] { color: var(--green-dark); border-color: var(--green); }
.site-nav__cta {
  text-decoration: none; background: var(--green); color: var(--card);
  font-size: 14px; font-weight: 500; letter-spacing: .05em;
  padding: 12px 24px; border-radius: 999px;
  transition: background .2s, transform .25s, box-shadow .25s;
}
.site-nav__cta:hover {
  background: var(--green-hover); transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 129, 102, .35);
}
.site-nav__mobile { display: none; align-items: center; gap: 12px; }
.site-nav__mobile .site-nav__cta { font-size: 13px; letter-spacing: .04em; padding: 10px 18px; }
.site-nav__burger {
  width: 44px; height: 44px; border: 1px solid rgba(61,54,46,.15);
  background: transparent; border-radius: 999px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.site-nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.site-nav__panel {
  display: none; border-top: 1px solid rgba(61,54,46,.08);
  background: var(--bg); padding: 12px 20px 24px;
  flex-direction: column;
}
.site-nav__panel.is-open { display: flex; }
.site-nav__panel a:not(.btn) {
  text-decoration: none; font-size: 17px; color: var(--muted);
  padding: 14px 8px; border-bottom: 1px solid rgba(61,54,46,.06);
  border-radius: 10px; transition: background .25s, color .2s;
}
.site-nav__panel a:not(.btn):hover { background: rgba(126,147,119,.12); color: var(--green-dark); }
.site-nav__panel a[aria-current="page"] { color: var(--green-dark); }
.site-nav__panel .btn { margin-top: 18px; text-align: center; }

@media (max-width: 940px) {
  .site-nav__links { display: none; }
  .site-nav__mobile { display: flex; }
  .site-nav__brand span { display: none; }
}
@media (min-width: 941px) {
  .site-nav__panel { display: none !important; }
}

/* === En-tête de page (commun) === */
.page-head {
  max-width: 800px; margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) 20px clamp(32px, 5vw, 48px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* === Cartes === */
.card {
  background: var(--card); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* Carte partenaire */
.partner-card { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.partner-card__logo {
  background: var(--white); border: 1px solid rgba(61,54,46,.06); border-radius: 14px;
  height: 96px; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.partner-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-card h3 {
  margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--green-dark);
}
.partner-card p { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: var(--muted); }

/* Carte produit lauréat */
.product-card { position: relative; overflow: hidden; }
.product-card__img {
  background: var(--white); display: flex; align-items: center; justify-content: center;
}
.product-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__badge {
  position: absolute; border-radius: 999px; font-weight: 500; letter-spacing: .04em;
}
.product-card__body { display: flex; flex-direction: column; }
.product-card__cat { letter-spacing: .18em; text-transform: uppercase; }
.product-card__name {
  margin: 0; font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.25;
}
.product-card__brand { font-weight: 300; color: var(--muted); }

/* === Panneau sombre === */
.panel-dark {
  background: var(--green-dark); border-radius: var(--radius-panel); color: var(--footer-text);
}

/* === Sections pleine largeur === */
.band-alt { background: var(--bg-alt); }
.band-card { background: var(--card); border-top: 1px solid rgba(61,54,46,.06); border-bottom: 1px solid rgba(61,54,46,.06); }
.band-dark { background: var(--green-dark); }
.band-rose { background: var(--rose-bg); }

.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* === Pilules filtres / onglets === */
.pill-btn {
  cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  letter-spacing: .04em; padding: 10px 20px; min-height: 44px; border-radius: 999px;
  border: 1px solid rgba(61,54,46,.18); background: transparent; color: var(--muted);
  transition: all .25s;
}
.pill-btn:hover { border-color: var(--green); }
.pill-btn.is-active--dark { background: var(--green-dark); color: var(--bg); border-color: var(--green-dark); }
.pill-btn.is-active--green { background: var(--green); color: var(--card); border-color: var(--green); }

/* Bascule (tablist) */
.toggle-tabs { display: flex; gap: 4px; background: var(--sand); border-radius: 999px; padding: 5px; }
.toggle-tabs button {
  border: none; cursor: pointer; font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  letter-spacing: .03em; padding: 12px 28px; border-radius: 999px; min-height: 44px;
  background: transparent; color: var(--muted-2); box-shadow: none; transition: all .25s;
}
.toggle-tabs button[aria-selected="true"] {
  background: var(--card); color: var(--green-dark); box-shadow: 0 2px 10px rgba(61,54,46,.10);
}

/* === FAQ accordéon === */
.faq-item { background: var(--bg); border-radius: 16px; overflow: hidden; }
.faq-item__q {
  width: 100%; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; min-height: 56px;
}
.faq-item__q span:first-child { font-size: 16px; font-weight: 500; color: var(--green-dark); line-height: 1.4; }
.faq-item__icon {
  font-family: var(--font-serif); font-size: 26px; font-weight: 400; color: var(--terra);
  flex-shrink: 0; transition: transform .3s;
}
.faq-item[data-open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  margin: 0; padding: 0 24px 22px; font-size: 15px; font-weight: 300;
  line-height: 1.75; color: var(--muted); display: none;
}
.faq-item[data-open] .faq-item__a { display: block; }

/* === Formulaires === */
.form-card {
  background: var(--card); border-radius: 24px; padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 4px 28px rgba(61,54,46,.06);
  display: flex; flex-direction: column; gap: 20px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field > span, .form-legend {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid rgba(61,54,46,.16); border-radius: 12px;
  background: var(--bg); outline: none;
}
.form-field select { appearance: none; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); }
input::placeholder, textarea::placeholder { color: #A69D8F; }
.form-note { margin: 0; font-size: 12.5px; font-weight: 300; color: var(--muted-2); text-align: center; }
.form-submit {
  border: none; cursor: pointer; background: var(--green); color: var(--card);
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: .04em;
  padding: 16px 32px; border-radius: 999px; min-height: 52px; transition: background .2s;
}
.form-submit:hover { background: var(--green-hover); }
.form-success {
  background: var(--card); border-radius: 24px; padding: 48px 36px;
  box-shadow: 0 4px 28px rgba(61,54,46,.06); text-align: center;
  display: none; flex-direction: column; align-items: center; gap: 14px;
  animation: rise .6s both;
}
.form-success span {
  font-family: var(--font-serif); font-size: 34px; font-weight: 500; color: var(--green-dark);
}
.form-success p { margin: 0; font-size: 15.5px; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 420px; }

.interest-pill {
  cursor: pointer; font-family: var(--font-sans); font-size: 14px;
  padding: 10px 18px; min-height: 44px; border-radius: 999px;
  border: 1px solid rgba(61,54,46,.18); background: transparent; color: var(--muted);
  transition: all .2s;
}
.interest-pill[aria-pressed="true"] { background: var(--green); color: var(--card); border-color: var(--green); }

/* === Témoignages : pastilles logo === */
.temoin-logo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.temoin-logo span {
  background: var(--white); border: 1px solid rgba(61, 54, 46, .06); border-radius: 12px;
  height: 58px; padding: 9px 16px;
  display: flex; align-items: center; justify-content: center;
}
.temoin-logo img { max-height: 40px; max-width: 130px; object-fit: contain; }

/* === Footer === */
.site-footer { background: var(--green-dark); color: var(--footer-text); }
.site-footer__grid {
  max-width: 1200px; margin: 0 auto; padding: 64px 20px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand > span:first-child {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--bg);
}
.site-footer__brand p {
  margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.7;
  color: var(--footer-muted); max-width: 300px;
}
.site-footer__tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-soft); }
.site-footer nav, .site-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.site-footer__heading {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 4px;
}
.site-footer a { color: var(--footer-text); text-decoration: none; font-size: 15px; font-weight: 300; }
.site-footer a:hover { color: var(--white); }
.site-footer__contact span { font-size: 15px; font-weight: 300; line-height: 1.6; }
.site-footer__bottom { border-top: 1px solid rgba(233,228,218,.14); }
.site-footer__bottom-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; font-weight: 300; color: var(--footer-dim);
}
