/* ============================================
   BOKASHI GUIDE - Design System v2
   Aesthetic: Handmade / Organic / Artisanal
   ============================================ */

/* ============ VARIABLES ============ */
:root {
  /* Palette principale */
  --green-lightest: #F0F5EC;
  --green-light: #E8F0E3;
  --green-soft: #C5D9B7;
  --green-main: #7BA05B;
  --green-dark: #4A6741;
  --green-darker: #2D3E28;
  
  /* Accents chauds */
  --cream: #FBF9F3;
  --cream-dark: #F3EEE4;
  --terracotta: #C67D4E;
  --terracotta-light: #E8A878;
  --terracotta-dark: #A65D3A;
  --brown: #8B6F47;
  --brown-dark: #5C4A32;
  --ochre: #D4A853;
  
  /* Neutres */
  --text: #3D3D3D;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --white: #FFFFFF;
  --black: #1A1A1A;
  
  /* Sémantique */
  --color-success: #5A8F5A;
  --color-warning: #D4915D;
  --color-info: #5B7A9E;
  --color-star: #F4B942;
  
  /* Typographie */
  --font-hand: 'Caveat', cursive;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Tailles de texte fluides */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.2rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3vw, 4rem);
  
  /* Espacements */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-sm: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
  --space-md: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --space-lg: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --space-xl: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
  --space-2xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
  --space-3xl: clamp(4rem, 3.5rem + 3vw, 6rem);
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-wide: 1400px;
  --header-height: 80px;
  
  /* Rayons de bordure */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --radius-blob: 60% 40% 50% 70% / 50% 60% 40% 50%;
  
  /* Ombres - style "papier découpé" */
  --shadow-sm: 3px 3px 0 rgba(45, 62, 40, 0.1);
  --shadow-md: 4px 4px 0 rgba(45, 62, 40, 0.12);
  --shadow-lg: 6px 6px 0 rgba(45, 62, 40, 0.15);
  --shadow-xl: 8px 8px 0 rgba(45, 62, 40, 0.18);
  --shadow-color: 4px 4px 0 var(--green-dark);
  --shadow-terracotta: 4px 4px 0 var(--terracotta-dark);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--green-light);
  overflow-x: hidden;
}

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

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ============ TYPOGRAPHIE ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green-darker);
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  max-width: 65ch;
}

.font-hand {
  font-family: var(--font-hand);
}

.font-serif {
  font-family: var(--font-serif);
}

.handwritten {
  font-family: var(--font-hand);
  color: var(--terracotta);
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.section--sm {
  padding-block: var(--space-2xl);
}

.section--cream {
  background: var(--cream);
}

.section--green {
  background: var(--green-light);
}

/* Séparateur vague */
.section--wave-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 80 Q300 0 600 40 T1200 20 L1200 80 Z' fill='%23FBF9F3'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
}

.section--wave-top-green::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 80 Q300 0 600 40 T1200 20 L1200 80 Z' fill='%23E8F0E3'/%3E%3C/svg%3E");
}

/* ============ HEADER ============ */
.header {
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-light);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(45, 62, 40, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo__icon {
  width: 50px;
  height: 50px;
  background: var(--green-main);
  border-radius: 50% 50% 50% 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-color);
  transition: transform var(--duration-fast) var(--ease-bounce);
}

.logo:hover .logo__icon {
  transform: rotate(-10deg) scale(1.05);
}

.logo__text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--green-darker);
}

.logo__text span {
  color: var(--terracotta);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-darker);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  background: var(--green-soft);
}

.nav__link--cta {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-terracotta);
}

.nav__link--cta:hover {
  background: var(--terracotta-light);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta-dark);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--green-soft);
  border-radius: var(--radius-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--green-darker);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-main);
  color: var(--white);
  box-shadow: var(--shadow-color);
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--green-darker);
}

.btn--secondary {
  background: var(--cream);
  color: var(--green-darker);
  border: 2px solid var(--green-dark);
}

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

.btn--terracotta {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-terracotta);
}

.btn--terracotta:hover {
  background: var(--terracotta-light);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta-dark);
}

.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn__icon {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__icon--arrow {
  transform: translateX(4px);
}

/* ============ HERO ============ */
.hero {
  padding: var(--space-xl) 0 var(--space-3xl);
  position: relative;
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  color: var(--terracotta);
  background: var(--cream);
  border: 2px dashed var(--terracotta);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  transform: rotate(-2deg);
}

.hero__title {
  font-size: var(--text-5xl);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__title .handwritten {
  font-size: 1.2em;
  display: inline-block;
  transform: rotate(-1deg);
}

.hero__intro {
  font-size: var(--text-lg);
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: var(--space-xl);
}

.hero__intro strong {
  color: var(--green-dark);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px dashed var(--green-soft);
}

.stat {
  text-align: center;
}

.stat__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: var(--cream);
  border: 2px solid var(--green-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat__value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--green-dark);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Blobs animés */
.blob {
  position: absolute;
  border-radius: var(--radius-blob);
  animation: blob-morph 8s ease-in-out infinite;
}

.blob--1 {
  width: 350px;
  height: 350px;
  background: var(--green-soft);
  opacity: 0.6;
  top: -20px;
  right: -20px;
}

.blob--2 {
  width: 200px;
  height: 200px;
  background: var(--cream);
  bottom: 0;
  left: 0;
  animation-delay: -3s;
}

.blob--3 {
  width: 120px;
  height: 120px;
  background: var(--terracotta-light);
  opacity: 0.3;
  top: 50%;
  left: 10%;
  animation-delay: -5s;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 50% 70% / 50% 60% 40% 50%;
    transform: translateY(0) rotate(0deg);
  }
  33% {
    border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%;
    transform: translateY(-10px) rotate(5deg);
  }
  66% {
    border-radius: 40% 50% 60% 50% / 50% 50% 50% 50%;
    transform: translateY(5px) rotate(-3deg);
  }
}

/* Annotations manuscrites */
.annotation {
  position: absolute;
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  color: var(--terracotta);
  white-space: nowrap;
  pointer-events: none;
}

/* ============ SECTION HEADER ============ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.section-header__eyebrow {
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  color: var(--terracotta);
  display: block;
  margin-bottom: var(--space-xs);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  font-size: var(--text-lg);
  color: var(--text-light);
}

/* ============ CARDS - SILOS ============ */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.silo-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  border: 2px solid transparent;
  overflow: hidden;
}

.silo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--green-main);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.silo-card:hover {
  border-color: var(--green-soft);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.silo-card:hover::before {
  opacity: 1;
}

/* Couleurs variées pour les silos */
.silo-card:nth-child(2)::before { background: var(--terracotta); }
.silo-card:nth-child(3)::before { background: var(--brown); }
.silo-card:nth-child(4)::before { background: #6B8E5A; }
.silo-card:nth-child(5)::before { background: #D4915D; }
.silo-card:nth-child(6)::before { background: #5B7A4A; }

.silo-card__icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.silo-card:hover .silo-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.silo-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.silo-card__desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.silo-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--green-dark);
}

.silo-card__link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.silo-card:hover .silo-card__link svg {
  transform: translateX(4px);
}

/* ============ CARDS - PRODUITS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-full);
  z-index: 2;
  transform: rotate(-3deg);
}

.product-card__badge--eco {
  background: var(--green-main);
}

.product-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--white), transparent);
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-main);
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 2px dashed var(--green-light);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-star);
}

.stars svg.empty {
  fill: #E0E0E0;
}

.product-card__rating-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-card__price {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--green-dark);
}

.product-card__price-old {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: var(--space-xs);
}

/* ============ CARDS - ARTICLES ============ */
.article-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.article-card__image {
  aspect-ratio: 16/10;
  background: var(--green-light);
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.article-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.article-card__category {
  font-weight: 700;
  color: var(--green-main);
}

.article-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  flex: 1;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--green-dark);
}

/* ============ CTA BOX ============ */
.cta-box {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--green-main);
  border-radius: 50%;
  opacity: 0.2;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 150px;
  height: 150px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0.15;
}

.cta-box__content {
  position: relative;
  z-index: 1;
}

.cta-box__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.cta-box__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-box__desc {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  max-width: 450px;
}

.cta-box__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cta-box__feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
}

.cta-box__feature svg {
  width: 20px;
  height: 20px;
  color: var(--green-soft);
}

.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.cta-box__btn {
  padding: var(--space-md) var(--space-xl);
  font-weight: 700;
  font-size: var(--text-base);
  background: var(--white);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  transition: all var(--duration-fast) var(--ease-out);
}

.cta-box__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.25);
}

.cta-box__price {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--white);
}

.cta-box__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-md) 0;
}

.breadcrumbs a {
  color: var(--text-light);
  transition: color var(--duration-fast);
}

.breadcrumbs a:hover {
  color: var(--green-dark);
}

.breadcrumbs__separator {
  color: var(--green-soft);
}

.breadcrumbs__current {
  color: var(--green-dark);
  font-weight: 600;
}

/* ============ TABLE DES MATIÈRES ============ */
.toc {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 2px dashed var(--green-soft);
}

.toc__title {
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  color: var(--green-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--green-light);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.toc__link {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.toc__link:hover {
  background: var(--green-light);
  color: var(--green-darker);
}

.toc__link.is-active {
  background: var(--green-light);
  border-left-color: var(--green-main);
  color: var(--green-dark);
  font-weight: 600;
}

.toc__link--nested {
  padding-left: var(--space-lg);
  font-size: var(--text-xs);
}

/* Article Grid Layout (Sidebar) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

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

  .article-sidebar {
    display: none;
  }
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

/* Sidebar CTA */
.sidebar-cta {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
}

.sidebar-cta__badge {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: var(--text-lg);
  color: var(--green-soft);
}

.sidebar-cta__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--white);
  margin: var(--space-sm) 0;
}

.sidebar-cta__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
}

.sidebar-cta__btn {
  display: block;
  padding: var(--space-sm);
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: transform var(--duration-fast) var(--ease-out);
}

.sidebar-cta__btn:hover {
  transform: scale(1.02);
}

.sidebar-cta__price {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--white);
}

/* ============ CONTENU ARTICLE ============ */
.article-content {
  font-size: var(--text-base);
  line-height: 1.8;
}

.article-content > * + * {
  margin-top: var(--space-lg);
}

.article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 2px dashed var(--green-soft);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-content p {
  color: var(--text);
}

.article-content a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}

.article-content a:hover {
  color: var(--terracotta);
}

.article-content strong {
  color: var(--green-darker);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-lg);
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.article-content ul li::before {
  content: '🌿';
  position: absolute;
  left: 0;
  font-size: 0.8em;
}

.article-content ol {
  list-style: none;
  counter-reset: ol-counter;
}

.article-content ol li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  background: var(--green-main);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content blockquote {
  padding: var(--space-lg);
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Sommaire / Table of Contents */
.sommaire {
  background: var(--green-lightest);
  border: 2px solid var(--green-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.sommaire__title {
  font-family: var(--font-body);
  font-size: var(--text-lg) !important;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: var(--space-md) !important;
  padding-bottom: var(--space-sm);
  border-bottom: 2px dashed var(--green-soft);
}

.sommaire__list {
  list-style: decimal;
  padding-left: var(--space-lg);
  margin: 0;
}

.sommaire__list li {
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.sommaire__list a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.sommaire__list a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0 !important;
  border-radius: 12px !important;
  border: 2px solid #4A6741 !important;
  background: #fff !important;
}

table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

thead, table thead, .article-content thead, .table-responsive thead {
  background: #4A6741 !important;
}

th, table th, thead th, .article-content th, .table-responsive th {
  padding: 1rem 1.25rem !important;
  text-align: left !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: #fff !important;
  background: #4A6741 !important;
  border-bottom: 2px solid #2D3E28 !important;
}

td, table td, tbody td, .article-content td, .table-responsive td {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid #C5D9B7 !important;
  color: #2D3E28 !important;
}

tbody tr:nth-child(even), table tbody tr:nth-child(even) {
  background: #FBF9F3 !important;
}

tbody tr:nth-child(odd), table tbody tr:nth-child(odd) {
  background: #fff !important;
}

tbody tr:last-child td {
  border-bottom: none !important;
}

tbody tr:hover {
  background: rgba(123, 160, 91, 0.2) !important;
}

td:first-child, table td:first-child {
  font-weight: 600 !important;
  color: #2D3E28 !important;
}

/* Info boxes */
.info-box {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid;
}

.info-box--tip {
  background: rgba(123, 160, 91, 0.1);
  border-color: var(--green-soft);
}

.info-box--warning {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--ochre);
}

.info-box--important {
  background: rgba(198, 125, 78, 0.1);
  border-color: var(--terracotta);
}

.info-box__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.info-box--tip .info-box__title { color: var(--green-dark); }
.info-box--warning .info-box__title { color: var(--brown); }
.info-box--important .info-box__title { color: var(--terracotta); }

.info-box__content {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ============ CTA INLINE (dans articles) ============ */
.cta-inline {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-darker) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-inline::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--green-main);
  border-radius: 50%;
  opacity: 0.2;
}

.cta-inline__badge {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-hand);
  font-size: var(--text-base);
  background: var(--terracotta);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.cta-inline__title {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.cta-inline .cta-inline__desc {
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-inline__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.cta-inline__btn {
  padding: var(--space-sm) var(--space-lg);
  font-weight: 700;
  background: var(--white);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast);
}

.cta-inline__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-inline__price {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--green-darker);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-main);
  border-radius: 50% 50% 50% 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.footer-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-title {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--green-soft);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ============ ARTICLE PAGE ============ */
.article-page {
  padding-bottom: var(--space-3xl);
}

.article-header {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-bottom: 2px dashed var(--green-soft);
  margin-bottom: var(--space-2xl);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.article-header__category {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.article-header__date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-header__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.article-header__intro {
  font-size: var(--text-lg);
  color: var(--text-light);
  max-width: 600px;
}

/* ============ MOBILE MENU ============ */
.nav--mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--cream);
  z-index: 1000;
  padding: var(--space-2xl) var(--space-lg);
  transition: right var(--duration-normal) var(--ease-out);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav--mobile.is-open {
  right: 0;
}

.nav--mobile .nav__link {
  display: block;
  padding: var(--space-md);
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .silo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-box__content {
    order: 2;
  }

  .cta-box__desc {
    margin-inline: auto;
  }

  .cta-box__features,
  .cta-box__actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }

  /* IMPORTANT: Override inline grid styles on hero sections */
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns: 1fr 350px"],
  [style*="grid-template-columns: 1fr 250px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 300px"] > div:last-child,
  [style*="grid-template-columns: 1fr 280px"] > div:last-child,
  [style*="grid-template-columns: 1fr 350px"] > div:last-child,
  [style*="grid-template-columns: 1fr 250px"] > div:last-child {
    order: -1;
    margin: 0 auto var(--space-lg);
  }

  [style*="grid-template-columns: 1fr 300px"] svg,
  [style*="grid-template-columns: 1fr 280px"] svg,
  [style*="grid-template-columns: 1fr 350px"] svg {
    max-width: 180px !important;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .silo-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: var(--space-xl);
  }

  .cta-box__visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Hero sections */
  section[style*="padding: 120px"] {
    padding-top: 90px !important;
    padding-bottom: 40px !important;
  }

  h1[style*="font-size: var(--text-5xl)"] {
    font-size: var(--text-3xl) !important;
  }

  p[style*="font-size: var(--text-lg)"] {
    font-size: var(--text-base) !important;
  }

  /* Silo cards - reduce padding */
  .silo-card {
    padding: var(--space-lg);
  }

  .silo-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
  }

  .silo-card__icon svg {
    width: 36px;
    height: 36px;
  }

  /* Product cards */
  .product-card__image {
    height: 160px;
  }

  .product-card__body {
    padding: var(--space-md);
  }

  /* Article pages - sidebar below content */
  [style*="grid-template-columns: 1fr 280px"] {
    display: block !important;
  }

  [style*="grid-template-columns: 1fr 280px"] aside {
    margin-top: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }

  .logo__text {
    font-size: var(--text-lg);
  }

  .logo__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .section-header__title {
    font-size: var(--text-2xl);
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* CTA inline */
  .cta-inline {
    padding: var(--space-lg);
  }

  .cta-inline__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer */
  .footer-logo-icon {
    width: 40px;
    height: 40px;
  }

  .footer-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
  }
}
