/* ============================================
   MAIN.CSS — Styles globaux Miellerie du Jura
   ============================================ */
:root {
  --miel: #F7C04A;
  --sapin: #29503B;
  --terre: #9C7A40;
  --creme: #FFF9E6;
  --noir: #1A1A1A;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--noir);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { width: min(1140px, 92vw); margin-inline: auto; }
.section { padding: 6rem 0; }
.section--center { text-align: center; }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid #0001;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; }
.nav__list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav__list a { padding: .4rem .6rem; border-radius: 12px; }
.nav__list a:hover { background: #0000000d; }
.site-footer { background: #111; color: #fff; padding: 2rem 0; margin-top: 4rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: var(--radius);
  cursor: pointer; font-weight: 600;
  transition: background .3s ease, transform .2s ease;
}
.btn--miel { background: var(--miel); color: #111; box-shadow: var(--shadow); }
.btn--miel:hover { background: #ffd25c; transform: translateY(-2px); }

/* Product Cards */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  transition: transform .2s ease;
}
.product-card:hover { transform: translateY(-5px); }

/* Offcanvas (mini-panier) */
.offcanvas {
  position: fixed; inset: 0; display: none; z-index: 999;
}
.offcanvas[aria-hidden="false"] { display: block; }
.offcanvas__backdrop {
  position: absolute; inset: 0; background: #0006;
}
.offcanvas__panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(400px,90vw);
  background: #fff; padding: 1.5rem; border-radius: 16px 0 0 16px;
  box-shadow: var(--shadow);
}
.offcanvas__close {
  position: absolute; right: 1rem; top: 1rem; background: none; border: 0; font-size: 1.5rem;
}

/* Search Overlay */
.search-overlay { position: fixed; inset: 0; display: none; z-index: 999; }
.search-overlay[aria-hidden="false"] { display: block; }
.search-overlay__backdrop { position: absolute; inset: 0; background: #0006; }
.search-overlay__panel {
  position: absolute; left: 50%; top: 15%; transform: translateX(-50%);
  width: min(600px, 90vw); background: #fff; padding: 2rem; border-radius: 16px;
  box-shadow: var(--shadow);
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 3px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--sapin);
}
.logo__img {
  height: 40px;
  width: auto;
  transition: transform .3s ease;
}
.logo:hover .logo__img { transform: scale(1.05); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  background: none;
  border: 0;
  position: relative;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--sapin);
  transition: transform .2s ease;
}
.header-icon:hover { transform: translateY(-2px); }

.cart-count {
  position: absolute;
  top: -5px; right: -10px;
  background: var(--miel);
  color: #111;
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  cursor: pointer;
}
.header-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--sapin);
  border-radius: 3px;
  margin-bottom: 4px;
  transition: .3s;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 999;
}
.mobile-menu[aria-hidden="false"] { display: block; }
.mobile-menu__inner {
  background: #fff;
  width: min(80%, 300px);
  height: 100%;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.mobile__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile__list li {
  margin: 1rem 0;
}
.mobile__list a {
  text-decoration: none;
  color: var(--sapin);
  font-weight: 600;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-burger { display: flex; }
}

.site-footer {
  background: #111;
  color: #fff;
  margin-top: 6rem;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 2rem;
}
.footer-block h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--miel);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li {
  margin: .4rem 0;
}
.footer-list a {
  color: #ddd;
  text-decoration: none;
  transition: color .3s;
}
.footer-list a:hover {
  color: var(--miel);
}
.footer-logo img {
  width: 130px;
  margin-bottom: 1rem;
}
.footer-desc {
  color: #ccc;
  max-width: 250px;
  line-height: 1.4;
}
.footer-socials a {
  font-size: 1.4rem;
  margin-right: .8rem;
  color: var(--miel);
}
.footer-socials a:hover {
  color: #fff;
}

/* Paiements */
.footer-payments {
  margin-top: 1rem;
}
.footer-payments h4 {
  font-size: 1rem;
  color: var(--miel);
  margin-bottom: .6rem;
}
.payment-icons {
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.payment-icons img {
  width: 40px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .3s;
}
.payment-icons img:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 1rem;
  color: #aaa;
  font-size: .85rem;
}

.contact-infos p {
  margin: .5rem 0;
  line-height: 1.6;
  font-size: 1rem;
}
.contact-infos a {
  color: var(--sapin);
  font-weight: 600;
  text-decoration: none;
}
.contact-form form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.contact-socials a {
  font-size: 1.6rem;
  margin-right: 1rem;
  color: var(--sapin);
  transition: color .3s;
}
.contact-socials a:hover { color: var(--miel); }


/* === FOOTER COLLÉ EN BAS === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.site-content {
  flex: 1; /* le contenu pousse le footer vers le bas */
}

.site-footer {
  background: #111;
  color: #fff;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
  margin-top: auto; /* force le footer à coller au bas */
}