/* ============================================================
   MON BOUCHER BIO — Design System
   ============================================================ */

/* ----- Variables ----- */
:root {
  --green: #2C5F2E;
  --green-light: #4A8A4D;
  --green-pale: #D4EDDA;
  --terra: #7BF259;
  --terra-light: #a6f78f;
  --terra-pale: #cafabd;
  --bg: #FAF6F0;
  --bg-alt: #F0EBE3;
  --dark: #1A1208;
  --text: #3D2B1A;
  --muted: #7A6555;
  --border: #DDD5C8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 4px rgba(44, 30, 16, .08);
  --shadow-md: 0 4px 16px rgba(44, 30, 16, .12);
  --shadow-lg: 0 8px 32px rgba(44, 30, 16, .15);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: .22s ease;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --header-h: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

ul,
ol {
  list-style: none;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--text);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .75rem;
}

/* ----- Layout ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

/* ----- Header / Nav ----- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.logo-icon {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.logo span {
  color: var(--terra);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.cart-btn:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--terra);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .hamburger {
    display: flex;
  }

  .cart-btn span {
    display: none;
  }

  .cart-btn {
    padding: 9px 14px;
  }

  /* Réduit l'icône logo sur mobile pour que le hamburger reste visible */
  .logo-icon {
    width: 64px;
    height: 64px;
  }

  .logo {
    font-size: 1.05rem;
  }

  /* Badge hero : espace entre le header et le badge */
  .hero-badge {
    margin-top: 24px;
  }

  /* Hero : espace en bas pour que la flèche "Découvrir" ne chevauche pas les stats */
  #hero {
    padding-bottom: 120px;
  }

  .hero-stats {
    margin-top: 32px;
  }
}

/* ----- Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

.btn-primary:hover {
  background: #a84f22;
  border-color: #a84f22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 98, 45, .35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--green);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ----- Hero ----- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #1a3d1c 0%, #2C5F2E 50%, #3d7a40 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
}

.hero-shape {
  position: absolute;
  right: -100px;
  bottom: -80px;
  width: 60vw;
  max-width: 700px;
  height: 60vw;
  max-height: 700px;
  background: var(--terra);
  border-radius: 50%;
  opacity: .08;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 24px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: #f5b87a;
  font-style: normal;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: #f5b87a;
}

.hero-stat span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ----- Section titres ----- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--terra);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ----- À propos ----- */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge .icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.about-badge strong {
  display: block;
  font-size: .95rem;
  color: var(--dark);
}

.about-badge span {
  font-size: .78rem;
  color: var(--muted);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-value .icon {
  width: 38px;
  height: 38px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-value strong {
  display: block;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.about-value span {
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ----- Comment ça marche ----- */
#howto {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 auto 20px;
  position: relative;
  transition: all var(--transition);
}

.step:hover .step-number {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.1);
}

.step h4 {
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  font-size: .88rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Produits phares ----- */
#featured-products {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-badge.unavailable {
  background: var(--muted);
}

.product-card-body {
  padding: 18px;
}

.product-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.product-card-body h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.product-card-body p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.product-price strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--green);
}

.product-price span {
  font-size: .82rem;
  color: var(--muted);
}

/* ----- Vidéos ----- */
#videos {
  background: var(--bg-alt);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark);
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  transition: background var(--transition);
}

.video-card:hover .video-play-btn {
  background: rgba(0, 0, 0, .45);
}

.video-play-btn::after {
  content: '▶';
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  padding-left: 4px;
}

.video-card-body {
  padding: 14px 16px 16px;
}

.video-card-body h4 {
  font-size: .9rem;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-product-link {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.video-product-link:hover {
  text-decoration: underline;
}

/* ----- Zone / Carte ----- */
#map-section {
  background: var(--white);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

#leaflet-map {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.zone-finder {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.zone-finder h3 {
  margin-bottom: 8px;
}

.zone-finder p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.zone-result {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid;
}

.zone-result.livraison {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green);
}

.zone-result.quick_collect {
  background: var(--terra-pale);
  border-color: var(--terra);
  color: var(--terra);
}

.zone-result strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.zone-result span {
  font-size: .85rem;
}

@media (max-width: 900px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }

  #leaflet-map {
    height: 320px;
  }
}

/* ----- Blog ----- */
#blog-section {
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.blog-card-body p {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terra);
  font-size: .88rem;
  font-weight: 600;
  transition: gap var(--transition);
}

.blog-link:hover {
  gap: 10px;
}

/* ----- Contact ----- */
#contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--green);
}

.contact-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item span {
  font-size: .9rem;
  color: var(--muted);
}

.contact-form-wrap h3 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 95, 46, .12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Footer ----- */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, .7);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Toasts / Notifications ----- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.5;
  animation: slideIn .3s ease;
  border-left: 4px solid var(--terra);
}

.toast.success {
  border-color: var(--green-light);
}

.toast.error {
  border-color: #e74c3c;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes slideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ----- Formulaire boutique (panier, quantité) ----- */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--bg-alt);
}

.qty-display {
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  font-size: .88rem;
  color: var(--dark);
  padding: 0 4px;
}

/* ----- Modals ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 8, .55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
}

/* ----- Badges statuts ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.badge-pending {
  background: #FFF3CD;
  color: #856404;
}

.badge-confirmed {
  background: #D1ECF1;
  color: #0C5460;
}

.badge-ready {
  background: #D4EDDA;
  color: #155724;
}

.badge-delivered {
  background: #E2E3E5;
  color: #383D41;
}

.badge-cancelled {
  background: #F8D7DA;
  color: #721C24;
}

.badge-green {
  background: var(--green-pale);
  color: var(--green);
}

.badge-terra {
  background: var(--terra-pale);
  color: var(--terra);
}

/* ----- Loader ----- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 40px;
}

/* ----- Utilitaires ----- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.text-green {
  color: var(--green);
}

.text-terra {
  color: var(--terra);
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: .5rem;
}

.gap-4 {
  gap: 1rem;
}

/* ----- Page interne (hero mini) ----- */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: calc(var(--header-h) + 48px) 0 48px;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, .75);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .75);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ----- Empty state ----- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 24px;
}

/* ----- Responsive général ----- */
@media (max-width: 480px) {
  .btn {
    padding: 11px 22px;
    font-size: .88rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    gap: 24px;
  }
}

#partners-grid a {
  background: #73fb8273 !important;
  border: none !important;
}