/* ═══════════════════════════════════════════════════════════════
   SAVANE — Design System AgroDigital+
   Version 1.0 | Thème clair + sombre intégré
═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Vert Savane */
  --g900: #1a3d2b; --g800: #245c3e; --g700: #2d7a52;
  --g600: #3a9966; --g500: #4db87a; --g400: #72cc96;
  --g300: #99ddb2; --g200: #c4eecf; --g100: #e8f8ed;

  /* Orange Savane */
  --o700: #c44d00; --o600: #e05a00;
  --o500: #f47324; --o400: #f7924f;
  --o200: #fbd4b8; --o100: #fef2ea;

  /* Neutre */
  --n900: #111827; --n800: #1f2937; --n700: #374151;
  --n600: #4b5563; --n500: #6b7280; --n400: #9ca3af;
  --n300: #d1d5db; --n200: #e5e7eb; --n100: #f3f4f6; --n50: #f9fafb;

  /* Sémantiques – Mode clair */
  --color-primary:    var(--g600);
  --color-primary-h:  var(--g700);
  --color-secondary:  var(--o500);
  --color-secondary-h:var(--o600);
  --color-bg:         #ffffff;
  --color-surface:    var(--n50);
  --color-surface-2:  var(--n100);
  --color-text:       var(--n800);
  --color-text-muted: var(--n500);
  --color-border:     var(--n200);
  --color-success:    var(--g600);
  --color-warning:    var(--o500);
  --color-error:      #dc2626;
  --color-info:       #2563eb;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);

  /* Typographie */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs:     .75rem;  --lh-xs:  1rem;
  --text-sm:     .875rem; --lh-sm:  1.25rem;
  --text-base:   1rem;    --lh-base:1.5rem;
  --text-lg:     1.125rem;--lh-lg:  1.75rem;
  --text-xl:     1.25rem; --lh-xl:  1.75rem;
  --text-2xl:    1.5rem;  --lh-2xl: 2rem;
  --text-3xl:    1.875rem;--lh-3xl: 2.25rem;
  --text-4xl:    2.25rem; --lh-4xl: 2.5rem;
  --text-5xl:    3rem;    --lh-5xl: 1;

  /* Espacement */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px;

  /* Transitions */
  --t-fast: 150ms ease; --t-base: 250ms ease; --t-slow: 400ms ease;
}

/* Mode sombre */
[data-theme="dark"] {
  --color-bg:         #0f1a14;
  --color-surface:    #1a2e20;
  --color-surface-2:  #243d2c;
  --color-text:       #e8f8ed;
  --color-text-muted: var(--g400);
  --color-border:     #2d4a38;
  --color-primary:    var(--g500);
  --color-primary-h:  var(--g400);
  --color-secondary:  var(--o400);
  --color-secondary-h:var(--o500);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--t-base), color var(--t-base);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-primary-h); }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }

.hidden { display: none !important; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--g600), var(--o500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--color-text);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.navbar__brand strong { color: var(--color-primary); }
.navbar__logo-text { font-weight: 500; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-link {
  padding: .5rem .875rem;
  border-radius: var(--r-md);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--color-surface); color: var(--color-text); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
}
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: .5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}
.navbar__burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BOUTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-h); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58,153,102,.35); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); }
.btn--ghost { background: transparent; color: var(--color-text-muted); }
.btn--ghost:hover { background: var(--color-surface); color: var(--color-text); }
.btn--white { background: #fff; color: var(--g700); }
.btn--white:hover { background: var(--g100); color: var(--g800); }
.btn--sm { padding: .4rem .875rem; font-size: var(--text-xs); }
.btn--lg { padding: .875rem 1.75rem; font-size: var(--text-base); border-radius: var(--r-lg); }
.btn--full { width: 100%; }

/* Theme toggle */
.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  color: var(--color-text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-theme:hover { background: var(--color-surface); color: var(--color-text); }
.btn-theme .icon-moon { display: none; }
[data-theme="dark"] .btn-theme .icon-sun  { display: none; }
[data-theme="dark"] .btn-theme .icon-moon { display: block; }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--g900) 0%, #1e4d35 40%, #163829 100%);
  color: #fff;
  padding: 5rem 0 6rem;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: var(--g500);
  top: -100px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--o500);
  bottom: -150px; left: 10%;
  opacity: .15;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge { margin-bottom: 1.25rem; }
.hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero__title .text-gradient {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #72cc96, #f7924f);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
}
.hero__wave svg { width: 100%; height: 100%; }

/* Stat cards flottantes */
.hero__card-stack {
  position: relative;
  height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.stat-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .875rem;
  color: #fff;
  min-width: 200px;
}
.stat-card--float { animation: float 6s ease-in-out infinite; }
.stat-card--1 { animation-delay: 0s; }
.stat-card--2 { animation-delay: 2s; }
.stat-card--3 { animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.stat-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon--green { background: rgba(77,184,122,.25); }
.stat-card__icon--orange { background: rgba(244,115,36,.25); }
.stat-card__value { font-size: var(--text-2xl); font-weight: 700; line-height: 1; }
.stat-card__label { font-size: var(--text-xs); color: rgba(255,255,255,.7); margin-top: .2rem; }

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: #0e1c13;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 20% 50%, rgba(58,153,102,.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 80% at 80% 50%, rgba(244,115,36,.07) 0%, transparent 70%);
  pointer-events: none;
}
.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}
.stats-bar__item {
  text-align: center;
  flex: 1;
  padding: .5rem 1rem;
}
.stats-bar__value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.stats-bar__value small {
  font-size: .85em;
  font-weight: 500;
  color: rgba(255,255,255,.55);
}
.stats-bar__label {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-surface); }
.section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: .75rem 0 .875rem;
  color: var(--color-text);
}
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section__cta { text-align: center; margin-top: 2.5rem; }

/* ─── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .875rem;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge--green { background: var(--g100); color: var(--g700); }
.badge--orange { background: var(--o100); color: var(--o700); }
[data-theme="dark"] .badge--green { background: rgba(58,153,102,.2); color: var(--g400); }
[data-theme="dark"] .badge--orange { background: rgba(244,115,36,.2); color: var(--o400); }

/* ─── PRODUCT CARDS ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__image--placeholder {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--g100), var(--o100));
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .product-card__image--placeholder {
  background: linear-gradient(135deg, rgba(58,153,102,.15), rgba(244,115,36,.1));
}
.product-card__emoji { font-size: 4rem; }
.product-card__badge { position: absolute; top: .75rem; right: .75rem; }
.product-card__body { padding: 1rem 1.25rem; }
.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.product-card__coop { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); }
.product-card__region { font-size: var(--text-xs); color: var(--color-text-muted); }
.product-card__title { font-size: var(--text-lg); font-weight: 600; margin-bottom: .625rem; }
.product-card__details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.product-card__price { font-weight: 700; color: var(--color-secondary); }
.product-card__footer { padding: 0 1.25rem 1.25rem; }

/* ─── MODULES GRID ────────────────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: 2rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--t-base);
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.module-card:hover::before { opacity: 1; }
.module-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.module-card h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: .625rem; }
.module-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.module-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.module-card__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.module-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}
.module-card__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.module-card__cta:hover { color: var(--color-primary-h); }

/* ─── STEPS ───────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--g500));
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(58,153,102,.3);
}
.step__content h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: .625rem; }
.step__content p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.step__connector {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--o400));
  margin-top: 3.5rem;
  position: relative;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0; height: 0;
  border-left: 8px solid var(--o400);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ─── FILIERES ────────────────────────────────────────────── */
.filieres-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.filiere-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 140px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.filiere-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filiere-card__emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.filiere-card__name { font-weight: 600; font-size: var(--text-sm); }
.filiere-card__value { font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); }
.filiere-card__sub { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ─── CTA SECTION ─────────────────────────────────────────── */
.cta-section { padding: 0 0 5rem; }
.cta-block {
  background: linear-gradient(135deg, var(--g800), var(--g900));
  border-radius: var(--r-2xl);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-block__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.cta-block__content p { color: rgba(255,255,255,.7); font-size: var(--text-lg); }
.cta-block__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── FORMS ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.required { color: var(--color-error); }
.form-input {
  padding: .625rem .875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58,153,102,.15);
}
.form-input::placeholder { color: var(--color-text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem; }
.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 2.75rem; }
.toggle-password {
  position: absolute;
  right: .75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  padding: .25rem;
}
.toggle-password:hover { color: var(--color-text); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ─── AUTH PAGE ───────────────────────────────────────────── */
.page-auth { background: var(--color-surface); }
.page-auth .footer { display: none; }
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-md);
}
.auth-card--wide { max-width: 640px; }
.auth-card__brand {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-card__brand h1 { font-size: var(--text-2xl); font-weight: 700; margin: .75rem 0 .375rem; }
.auth-card__brand p { color: var(--color-text-muted); font-size: var(--text-sm); }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.auth-card__links { display: flex; justify-content: center; gap: .75rem; margin-top: .375rem; flex-wrap: wrap; }
.auth-card__links span { color: var(--color-border); }

/* Sélecteur rôle */
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .625rem;
  margin-bottom: 1.5rem;
}
.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .875rem .75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
}
.role-option:hover { border-color: var(--color-primary); }
.role-option--active {
  border-color: var(--color-primary);
  background: var(--g100);
  box-shadow: 0 0 0 1px var(--color-primary);
}
[data-theme="dark"] .role-option--active { background: rgba(58,153,102,.15); }
.role-option__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.role-option__desc { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: .25rem; line-height: 1.4; }
.coop-fields { display: flex; flex-direction: column; gap: 1.25rem; }
.coop-fields.hidden { display: none; }

/* ─── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: .875rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1rem;
}
.alert--success { background: var(--g100); color: var(--g800); border: 1px solid var(--g300); }
.alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert--sm { padding: .625rem .875rem; font-size: var(--text-xs); }
[data-theme="dark"] .alert--success { background: rgba(58,153,102,.12); color: var(--g400); border-color: rgba(58,153,102,.3); }
[data-theme="dark"] .alert--info    { background: rgba(37,99,235,.1); color: #93c5fd; border-color: rgba(37,99,235,.3); }

/* ─── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}
.empty-state__icon { font-size: 4rem; margin-bottom: 1rem; }

/* ─── PWA BANNER ──────────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: calc(100% - 2rem);
  animation: slideUp .35s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.pwa-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.pwa-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.pwa-banner__text strong { font-size: var(--text-sm); font-weight: 600; }
.pwa-banner__text span   { font-size: var(--text-xs); color: var(--color-text-muted); }
.pwa-banner__actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: .875rem; }
.footer__brand p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; max-width: 280px; }
.footer__links { display: contents; }
.footer__links > div { display: flex; flex-direction: column; gap: .5rem; }
.footer__links h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: .375rem; }
.footer__links a { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer__links a:hover { color: var(--color-primary); }
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .navbar__nav, .navbar__actions .btn:not(.btn--sm) { display: none; }
  .navbar__burger { display: flex; }
  .navbar__actions { gap: .375rem; }

  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    padding: 2rem 1.5rem;
    gap: .25rem;
    z-index: 99;
    border-top: 1px solid var(--color-border);
  }
  .navbar__nav.open .nav-link {
    padding: .875rem 1rem;
    font-size: var(--text-base);
    border-radius: var(--r-md);
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { padding: 3rem 0 4rem; }
  .hero__title { font-size: 2rem; }

  .steps { flex-direction: column; align-items: stretch; }
  .step__connector { width: 2px; height: 40px; margin: 0 auto; }
  .step__connector::after {
    right: -4px; top: auto; bottom: -6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--o400);
  }

  .form-row { grid-template-columns: 1fr; }
  .role-selector { grid-template-columns: 1fr; }

  .cta-block { flex-direction: column; padding: 2.5rem 1.5rem; text-align: center; }
  .cta-block__actions { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }

  .stats-bar__divider { width: 1px; height: 32px; }
  .stats-bar__item { padding: .4rem .5rem; }
  .stats-bar__value { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .modules-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

/* ─── UTILITAIRES ─────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-height: 900px;
  overflow: hidden;
  background: #0f1a14;
}

/* ─── Track & Slides ──────────────────────────────────── */
.hs__track { position: absolute; inset: 0; }

.hs__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}
.hs__slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hs__slide--exit {
  opacity: 0;
  z-index: 0;
}

/* ─── Ken Burns (zoom lent sur la photo active) ─────── */
.hs__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 0s;
}
.hs__slide--active .hs__bg {
  transform: scale(1);
  transition: transform 7s ease-out;
}

/* ─── Overlay gradient cinématique ─────────────────── */
.hs__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,30,18,.82) 0%, rgba(10,30,18,.45) 55%, rgba(10,30,18,.1) 100%),
    linear-gradient(to top, rgba(10,30,18,.6) 0%, transparent 50%);
}

/* ─── Contenu textuel ───────────────────────────────── */
.hs__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hs__content-inner {
  max-width: 620px;
  padding-top: 4rem;
  transform: translateY(28px);
  opacity: 0;
  transition: transform .9s .15s cubic-bezier(.22,1,.36,1), opacity .9s .15s ease;
}
.hs__slide--active .hs__content-inner {
  transform: translateY(0);
  opacity: 1;
}

.hs__badge {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 100px;
  background: rgba(58,153,102,.25);
  border: 1px solid rgba(58,153,102,.5);
  color: #72cc96;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.hs__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
}
.hs__title em {
  font-style: normal;
  background: linear-gradient(90deg, #4db87a, #f47324);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hs__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hs__ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

.hs__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.75rem;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.hs__btn--primary {
  background: #3a9966;
  color: #fff;
  box-shadow: 0 4px 24px rgba(58,153,102,.45);
}
.hs__btn--primary:hover { background: #2d7a52; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(58,153,102,.55); }
.hs__btn--outline {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.hs__btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ─── Stats flottantes ─────────────────────────────── */
.hs__stats {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  background: rgba(10,30,18,.65);
  border: 1px solid rgba(58,153,102,.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  min-width: 150px;
}
.hs__stat { text-align: center; }
.hs__stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hs__stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hs__stat-divider {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.15);
}

/* ─── Dots de navigation ───────────────────────────── */
.hs__dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: .55rem;
}
.hs__dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: width .4s ease, background .3s;
}
.hs__dot--active {
  width: 28px;
  background: #3a9966;
}

/* ─── Flèches ──────────────────────────────────────── */
.hs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10,30,18,.5);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.hs__arrow:hover { background: rgba(58,153,102,.6); transform: translateY(-50%) scale(1.08); }
.hs__arrow--prev { left: 1.5rem; }
/* Flèche next à gauche du bloc stats (stats=150px+2rem de right) */
.hs__arrow--next { right: 1.5rem; }

/* ─── Barre de progression ─────────────────────────── */
.hs__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
  z-index: 5;
}
.hs__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3a9966, #f47324);
}

/* ─── Vague de transition ──────────────────────────── */
.hs__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}
.hs__wave svg { display: block; width: 100%; height: 80px; }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hs__arrow--next { right: 1.5rem; }
  .hs__stats { right: 1.5rem; min-width: 140px; padding: 1.25rem 1rem; }
  .hs__stat-val { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .hero-slider { height: 65vh; min-height: 460px; max-height: none; }
  /* Stats → rangée horizontale centrée en bas */
  .hs__stats {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 5.5rem;   /* laisse de la place pour les dots */
    flex-direction: row;
    gap: 0;
    padding: .65rem 1.1rem;
    min-width: auto;
    border-radius: 100px;
  }
  .hs__stat { padding: 0 .9rem; }
  .hs__stat-val { font-size: 1.05rem; }
  .hs__stat-label { font-size: .62rem; }
  .hs__stat-divider { width: 1px; height: 26px; }
  /* Flèches aux extrémités, même hauteur que contenu */
  .hs__arrow--prev { left: .75rem; }
  .hs__arrow--next { right: .75rem; }
  /* Dots juste au-dessus de la vague */
  .hs__dots { bottom: 3.5rem; }
  .hs__title { font-size: 1.85rem; }
  .hs__sub { font-size: .88rem; max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-slider { height: 68vh; min-height: 440px; }
  .hs__stats { bottom: 5rem; padding: .55rem .9rem; }
  .hs__stat { padding: 0 .65rem; }
  .hs__stat-val { font-size: .95rem; }
  .hs__dots { bottom: 3.2rem; }
  .hs__ctas { flex-direction: column; align-items: flex-start; }
  .hs__btn { width: 100%; justify-content: center; }
  .hs__content-inner { padding-top: 1.5rem; }
  .hs__title { font-size: 1.55rem; }
  .hs__sub { font-size: .84rem; }
}

/* ═══════════════════════════════════════════════
   SLIDER — corrections fond plat + fx
═══════════════════════════════════════════════ */
/* Supprimer l'ancienne vague, remplacer par trait droit */
.hs__wave { display: none; }
.hs__bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-bg);
  z-index: 6;
}
/* Flèches repositionnées (sans stats) */
.hs__arrow--next { right: 1.5rem; }

/* FX slide : s'assurer que le z-index est bon */
.hs__slide { overflow: hidden; }

/* ═══════════════════════════════════════════════
   TICKER COOPÉRATIVES
═══════════════════════════════════════════════ */
.coop-ticker-section {
  background: #111d16;
  padding: 0;
  overflow: hidden;
  position: relative;
}
/* Dégradés masquants sur les côtés — uniquement sur la zone de défilement */
.coop-ticker::before,
.coop-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.coop-ticker::before { left: 0;  background: linear-gradient(to right, #111d16, transparent); }
.coop-ticker::after  { right: 0; background: linear-gradient(to left,  #111d16, transparent); }

.coop-ticker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.coop-ticker-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.coop-ticker-label svg { color: #3a9966; }

.coop-ticker {
  overflow: hidden;
  padding: .85rem 0;
  cursor: default;
  position: relative;
}
.coop-ticker:hover .coop-ticker__track { animation-play-state: paused; }

.coop-ticker__track {
  display: flex;
  gap: .75rem;
  width: max-content;
  padding: 0 1.5rem;          /* espace de chaque côté pour ne pas coller au bord */
  animation: ticker-scroll 50s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Coop Cards (remplace chips) ── */
.coop-card {
  display: inline-flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  white-space: nowrap;
  min-width: 220px;
  flex-shrink: 0;
  transition: border-color .22s, background .22s, transform .22s;
}
.coop-card:hover {
  border-color: rgba(58,153,102,.5);
  background: rgba(58,153,102,.08);
  transform: translateY(-2px);
}
.coop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coop-card__avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d7a52, #4db87a);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .03em;
}
.coop-card__score {
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 100px;
}
.coop-card__score--good { background: rgba(58,153,102,.25); color: #72cc96; border: 1px solid rgba(58,153,102,.4); }
.coop-card__score--mid  { background: rgba(244,115,36,.2);  color: #f7924f; border: 1px solid rgba(244,115,36,.35); }
.coop-card__score--low  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.12); }
.coop-card__body { display: flex; flex-direction: column; gap: .2rem; }
.coop-card__name {
  font-size: .88rem; font-weight: 700;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.coop-card__meta {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  font-size: .68rem; color: rgba(255,255,255,.4);
}
.coop-card__sep { color: rgba(255,255,255,.2); }
.coop-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .85rem;
  border-radius: 100px;
  background: #f47324;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, transform .18s;
  align-self: flex-start;
  white-space: nowrap;
}
.coop-card__btn:hover { background: #e05a00; color: #fff; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   CAROUSEL COOPÉRATIVES (arrow navigation)
═══════════════════════════════════════════════ */
.coop-carousel-section {
  background: #111d16;
  padding: 0;
}
.coop-carousel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.coop-carousel-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.coop-carousel-label svg { color: #3a9966; }

.coop-carousel {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1rem;
  position: relative;
}
.coop-carousel__arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, transform .18s;
  z-index: 2;
}
.coop-carousel__arrow:hover {
  background: #3a9966;
  border-color: #3a9966;
  color: #fff;
  transform: scale(1.08);
}
.coop-carousel__viewport {
  flex: 1;
  overflow: hidden;
}
.coop-carousel__track {
  display: flex;
  gap: 12px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.coop-carousel__track .coop-card {
  flex-shrink: 0;
  min-width: 220px;
}

@media (max-width: 600px) {
  .coop-carousel__arrow { width: 32px; height: 32px; }
  .coop-carousel__track .coop-card { min-width: 180px; }
}

/* ═══════════════════════════════════════════════
   MARKET CARDS v2
═══════════════════════════════════════════════ */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.mkt-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.mkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.mkt-card__visual {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mkt-card__emoji {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  z-index: 1;
  position: relative;
}
.mkt-card__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}
.mkt-card__visual-label {
  position: absolute;
  bottom: .75rem; left: .9rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  z-index: 1;
  letter-spacing: -.01em;
}
.mkt-card__qualite {
  position: absolute;
  top: .75rem; left: .75rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
  letter-spacing: .05em;
}
.mkt-card__stock-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: rgba(58,153,102,.85);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
}
.mkt-card__body { padding: 1rem 1.1rem .75rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.mkt-card__coop-row { display: flex; align-items: center; gap: .5rem; }
.mkt-card__coop-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--g600),var(--g400));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mkt-card__coop-name { font-size: .78rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
.mkt-card__region { font-size: .68rem; color: var(--color-text-muted); }
.mkt-card__title { font-size: 1.25rem; font-weight: 800; color: var(--color-text); }
.mkt-card__stock-bar {
  height: 4px; border-radius: 100px;
  background: var(--color-border);
  overflow: hidden;
}
.mkt-card__stock-bar-inner { height: 100%; border-radius: 100px; transition: width .5s; }
.mkt-card__details { display: flex; justify-content: space-between; align-items: baseline; }
.mkt-card__qty { font-size: .82rem; color: var(--color-text-muted); font-weight: 600; }
.mkt-card__price { font-size: 1rem; font-weight: 800; color: var(--color-primary); }
.mkt-card__price small { font-size: .72rem; font-weight: 500; color: var(--color-text-muted); }
.mkt-card__footer { padding: 0 1.1rem 1rem; }
.mkt-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .65rem 1rem;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.mkt-card__btn:hover { background: var(--g700); color: #fff; transform: translateY(-1px); }

@media (max-width: 640px) {
  .mkt-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .mkt-card__visual { height: 120px; }
  .mkt-card__emoji { font-size: 3rem; }
}
@media (max-width: 400px) {
  .mkt-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   MARKET CARDS — v2 (homepage redesign)
═══════════════════════════════════════════════ */
.mkt-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mkt2-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.mkt2-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.mkt2-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mkt2-card__emoji { font-size: 3rem; line-height: 1; position: relative; z-index: 1; }
.mkt2-card__badge-dispo {
  position: absolute;
  top: .5rem; right: .5rem;
  background: rgba(244, 115, 36, 0.22);
  border: 1px solid rgba(244, 115, 36, 0.55);
  color: #e05a00;
  font-size: .63rem;
  font-weight: 700;
  padding: .18rem .5rem;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}
.mkt2-card__qualite {
  position: absolute;
  top: .5rem; left: .5rem;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .63rem;
  font-weight: 700;
  padding: .15rem .45rem;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.mkt2-card__body {
  padding: .65rem .85rem .45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.mkt2-card__produit {
  font-size: .95rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.mkt2-card__coop {
  font-size: .68rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt2-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem;
  margin-top: .3rem;
}
.mkt2-card__price {
  font-size: .9rem;
  font-weight: 800;
  color: var(--color-primary);
}
.mkt2-card__price span { font-size: .65rem; font-weight: 400; color: var(--color-text-muted); }
.mkt2-card__qty { font-size: .65rem; color: var(--color-text-muted); font-weight: 500; }
.mkt2-card__footer { padding: .45rem .85rem .7rem; display: flex; gap: .4rem; align-items: center; }
.mkt2-card__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.mkt2-card__link:hover { border-bottom-color: var(--color-primary); }
.mkt2-card__coop-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-left: auto;
  transition: color .15s;
}
.mkt2-card__coop-link:hover { color: var(--color-text); }

@media (max-width: 900px) {
  .mkt-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mkt-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .mkt2-card__img { height: 100px; }
}

/* ═══════════════════════════════════════════════
   CULTIVE — section homepage
═══════════════════════════════════════════════ */
.cultive-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cultive-card-home {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.cultive-card-home:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.cultive-card-home__img {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cultive-card-home__emoji { font-size: 2.5rem; position: relative; z-index: 1; }
.cultive-card-home__jours {
  position: absolute;
  top: .5rem; right: .5rem;
  background: rgba(244,115,36,.18);
  border: 1px solid rgba(244,115,36,.5);
  color: #f47324;
  font-size: .65rem;
  font-weight: 700;
  padding: .18rem .5rem;
  letter-spacing: .03em;
}
.cultive-card-home__body { padding: .75rem .9rem .5rem; flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.cultive-card-home__titre { font-size: .9rem; font-weight: 800; color: var(--color-text); line-height: 1.3; }
.cultive-card-home__coop { font-size: .7rem; color: var(--color-text-muted); margin-bottom: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cultive-card-home__progress-wrap { margin-top: .35rem; }
.cultive-card-home__progress-bar { height: 4px; background: var(--color-border); overflow: hidden; }
.cultive-card-home__progress-fill { height: 100%; background: var(--color-primary); transition: width .5s; }
.cultive-card-home__progress-info { display: flex; justify-content: space-between; font-size: .65rem; color: var(--color-text-muted); margin-top: .25rem; }
.cultive-card-home__objectif { font-size: .7rem; color: var(--color-text-muted); }
.cultive-card-home__footer { padding: .5rem .9rem .75rem; }
.cultive-card-home__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.cultive-card-home__link:hover { border-bottom-color: var(--color-secondary); }

@media (max-width: 900px) {
  .cultive-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cultive-grid-home { grid-template-columns: 1fr 1fr; gap: .5rem; }
}
