/* =========================================================
   Legros Rucher — feuille de style
   Polices chargées : Cormorant Garamond (titres) + Jost (texte)
   ========================================================= */

:root {
  --honey:        #c98a14;
  --honey-dark:   #a96d0c;
  --honey-soft:   #f4d99b;
  --ink:          #2a2118;
  --ink-soft:     #5c5346;
  --cream:        #fdfaf3;
  --cream-2:      #f6efe2;
  --white:        #ffffff;
  --line:         #e7ddca;
  --shadow:       0 18px 40px -18px rgba(58, 43, 16, .35);
  --shadow-soft:  0 8px 24px -12px rgba(58, 43, 16, .25);
  --radius:       16px;
  --radius-lg:    24px;
  --max:          1140px;
  --serif:        "Cormorant Garamond", Georgia, serif;
  --sans:         "Jost", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }

/* ---------- Utilitaires ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey-dark);
  margin-bottom: .6rem;
}

.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 2rem);
}

.section__head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.section__lead { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary {
  background: var(--honey);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--honey-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn--full { width: 100%; padding-block: 1rem; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(253, 250, 243, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-soft); border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: .75rem clamp(1.2rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-main { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.nav__brand-sub { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--honey-dark); }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .95rem; color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--honey-dark); }
.nav__links .nav__cta {
  background: var(--honey);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.nav__links .nav__cta:hover { background: var(--honey-dark); color: #fff; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 1.2rem 4rem;
  background: url("images/g1.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 28, 8, .55) 0%, rgba(40, 28, 8, .35) 45%, rgba(40, 28, 8, .65) 100%);
}
.hero__content { position: relative; max-width: 760px; }
.hero__eyebrow {
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--honey-soft);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__tagline { margin-top: 1.2rem; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 300; }
.hero__rating {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  background: rgba(0, 0, 0, .25);
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.hero__rating .stars { font-size: 1.1rem; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: #fff;
  opacity: .85;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =========================================================
   Bandeau pratique
   ========================================================= */
.strip {
  background: var(--ink);
  color: #f3ead7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(2rem, 6vw, 4rem);
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.strip__item { display: inline-flex; align-items: baseline; gap: .5rem; font-size: .95rem; }
.strip__label { font-weight: 600; color: var(--honey-soft); letter-spacing: .04em; }
.strip a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   Histoire / Nos ruches
   ========================================================= */
.histoire__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.histoire__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.histoire__text h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 1.1rem; }
.histoire__text p { color: var(--ink-soft); margin-bottom: 1rem; }
.histoire__points { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .9rem; }
.histoire__points li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 500;
  color: var(--ink);
}
.histoire__points svg { width: 26px; height: 26px; color: var(--honey); flex: none; }

/* =========================================================
   Nos miels / Produits
   ========================================================= */
.carte { background: var(--cream-2); max-width: none; }
.carte > * { max-width: var(--max); margin-inline: auto; }
.produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.produit {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.produit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.produit__img { width: 100%; height: 240px; object-fit: cover; }
.produit__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.produit__name { font-size: 1.5rem; }
.produit__desc { color: var(--ink-soft); font-size: .95rem; margin: .5rem 0 1.2rem; flex: 1; }
.produit__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.produit__size { color: var(--ink-soft); font-size: .9rem; }
.produit__price { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--honey-dark); }

.carte__note {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.carte__note p { color: var(--ink-soft); flex: 1; min-width: 240px; }

/* =========================================================
   Pourquoi / Atouts
   ========================================================= */
.atouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.atout {
  text-align: center;
  padding: 2rem 1.4rem;
  background: var(--cream-2);
  border-radius: var(--radius);
  transition: transform .2s ease;
}
.atout:hover { transform: translateY(-4px); }
.atout__icon { font-size: 2.4rem; display: block; margin-bottom: .8rem; }
.atout h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.atout p { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   Galerie
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* =========================================================
   Commander / Formulaire
   ========================================================= */
.commander { background: var(--cream-2); max-width: none; }
.commander__inner { max-width: 760px; margin-inline: auto; }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.1rem;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.form input, .form select, .form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(201, 138, 20, .15);
}
.form textarea { resize: vertical; }
.form__status { text-align: center; font-size: .95rem; min-height: 1.2em; }
.form__status.is-ok { color: #2e7d32; font-weight: 500; }
.form__status.is-error { color: #c0392b; font-weight: 500; }

/* =========================================================
   Pied de page
   ========================================================= */
.footer { background: var(--ink); color: #d8cdb8; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem) 1.5rem; }
.footer__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer__brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: .3rem; }
.footer__title { color: var(--honey-soft); font-weight: 600; letter-spacing: .06em; margin-bottom: .6rem; font-size: .9rem; text-transform: uppercase; }
.footer p { font-size: .95rem; line-height: 1.9; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .85rem;
  color: #a89c84;
}
.footer__credit a { color: var(--honey-soft); }

/* =========================================================
   Bouton d'appel flottant
   ========================================================= */
.fab {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 40;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--honey);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.fab:hover { background: var(--honey-dark); transform: scale(1.08); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .histoire__grid { grid-template-columns: 1fr; }
  .histoire__media { order: -1; }
}

@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: .5rem 1.2rem 1.2rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { text-align: center; margin-top: .8rem; }
  .form__grid { grid-template-columns: 1fr; }
  .carte__note { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
