/* =========================================
   STYLE GLOBAL – COOP HOUEMITONHOUN-ENANLIDO
   ========================================= */
:root {
  --soja-green: #059669;       /* vert principal */
  --soja-green-dark: #047857;
  --soja-cream: #fdf6ec;
  --soja-brown: #92400e;
  --soja-border: #e5e7eb;
  --soja-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --soja-shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* =======================
   OMBRES & UTILITAIRES
   ======================= */

.shadow-soft {
  box-shadow: var(--soja-shadow-soft);
}

.shadow-strong {
  box-shadow: var(--soja-shadow-strong);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* =======================
   NAVIGATION HEADER
   ======================= */

.nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--soja-green), var(--soja-brown));
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--soja-green-dark);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-active {
  color: var(--soja-green-dark);
  font-weight: 600;
}

.nav-link-active::after {
  width: 100%;
}

/* Menu mobile */
.nav-link-mobile {
  padding: 0.35rem 0.2rem;
  border-radius: 0.5rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link-mobile:hover {
  background: #f3f4f6;
  color: #111827;
}

.nav-link-mobile-active {
  background: #ecfdf3;
  color: var(--soja-green-dark);
  font-weight: 600;
}

/* =======================
   BOUTONS GLOBAUX
   ======================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--soja-green), #16a34a);
  color: #f9fafb;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--soja-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--soja-shadow-strong);
  filter: brightness(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--soja-green);
  color: var(--soja-green-dark);
  box-shadow: var(--soja-shadow-soft);
  transform: translateY(-1px);
}

/* Bouton WhatsApp animé (pour commandes) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  animation: btnPulse 2.5s infinite ease-in-out;
}

.btn-whatsapp:hover {
  transform: translateY(-1px) scale(1.02);
}

@keyframes btnPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35); }
  50%      { transform: translateY(-1px) scale(1.03); box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45); }
}

/* =======================
   HERO AVEC SLIDER FOND
   ======================= */

.hero-section {
  position: relative;
  min-height: 70vh;
  color: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.25), transparent 45%),
              linear-gradient(to bottom, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.88));
}

.hero-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 20;
}

.hero-dots .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.8);
  background: rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dots .dot.is-active {
  width: 1.15rem;
  background: #ecfdf3;
  border-color: var(--soja-green);
}

/* =======================
   SECTIONS TITRES / TEXTE
   ======================= */

.section-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
}

/* =======================
   CARTES PRODUITS
   ======================= */

.product-card {
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.03);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.product-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

/* =======================
   BLOC IMAGE "ZAKPOTA" RECYCLÉ
   (tu peux l'utiliser comme box image dans tes pages)
   ======================= */

.zakpota-image-wrapper {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--soja-shadow-soft);
}

.zakpota-image-inner {
  position: relative;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.zakpota-image-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zakpota-image-wrapper:hover .zakpota-image-inner {
  transform: scale(1.06);
}

.zakpota-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  font-size: 0.7rem;
  font-weight: 500;
}

/* =======================
   ANIMATIONS SCROLL (reveal)
   ======================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-bounce {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hover-bounce:hover {
  transform: translateY(-6px);
  box-shadow: var(--soja-shadow-soft);
}

.animated-icon {
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--soja-green-dark);
  animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* =======================
   PARTENAIRES – BANDE défilante
   ======================= */

.partners-strip {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: partnersMarquee 20s linear infinite;
}

.partner-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes partnersMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =======================
   FOOTER
   ======================= */

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #9ca3af;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link::before {
  content: "•";
  font-size: 0.6rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #e5e7eb;
  transform: translateX(2px);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* =======================
   FORMULAIRES
   ======================= */

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.2rem;
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #111827;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
  border-color: var(--soja-green);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
  background-color: #ffffff;
}

/* =======================
   PAGINATION
   ======================= */

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  border-color: var(--soja-green);
  color: var(--soja-green-dark);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.pagination-btn-disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

/* =======================
   GALERIE IMAGES (box)
   ======================= */

.gallery-grid-item {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  position: relative;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}
/* ========================
   HERO CLAIR CAROUSEL
   ======================== */

/* Les slides prennent toute la hauteur définie par le parent (h-[420px] etc.) */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Dots du hero */
.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #e5e7eb;
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  width: 1.8rem;
  background: #8EB237;
  border-color: #8EB237;
}

/* Effet 3D des cartes */
.card-3d {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.shadow-soft-3d {
  box-shadow:
    0 22px 45px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(148, 163, 184, 0.12);
}

/* Stack d'images hero */
.hero-3d-stack {
  position: relative;
  width: 260px;
  max-width: 100%;
  height: 260px;
}

.hero-card {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

.hero-card-main {
  transform: translate(0, 0);
  z-index: 20;
}

.hero-card-secondary {
  width: 68%;
  height: 68%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.hero-card-top {
  top: -18px;
  right: -10px;
  z-index: 15;
}

.hero-card-bottom {
  bottom: -18px;
  left: -18px;
  z-index: 10;
}

/* Pills d'info (slide 2) */
.hero-3d-stack-alt {
  position: relative;
  width: 260px;
  height: 220px;
}

.hero-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: #374151;
}

.hero-pill-1 {
  top: 10px;
  left: 0;
}

.hero-pill-2 {
  top: 70px;
  right: 0;
}

.hero-pill-3 {
  bottom: 10px;
  left: 20px;
}

/* Stats (slide 3) */
.hero-stats-3d {
  display: grid;
  gap: 0.75rem;
}

.hero-stat-card {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-stat-number {
  font-size: 1rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.7rem;
  opacity: 0.9;
}
/* Hero background slider */
.hero-soja {
  position: relative;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
  z-index: 0;
}

.hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.85));
  z-index: 1;
}

/* Dots */
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  width: 20px;
  background: #8EB237;
  border-color: #8EB237;
}

/* Carte 3D & stack visuels (si pas déjà) */
.card-3d {
  backdrop-filter: blur(8px);
}

.hero-3d-stack {
  position: relative;
  width: 230px;
  height: 230px;
}

.hero-card {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.hero-card-main {
  transform: translate(0, 0);
  z-index: 3;
}

.hero-card-secondary {
  width: 68%;
  height: 68%;
}

.hero-card-top {
  top: -14%;
  right: -8%;
  z-index: 2;
}

.hero-card-bottom {
  bottom: -10%;
  left: -6%;
  z-index: 1;
}

/* petit effet au survol */
.hero-3d-stack:hover .hero-card-main {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}
.gallery-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* même dimension pour toutes les images */
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.07);
}

.gallery-caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.75rem;
  color: #4b5563;
}
