/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibilité : focus visible clavier */
:focus-visible {
  outline: 3px solid #1B4332;
  outline-offset: 3px;
}

/* Réduire animation si utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== VARIABLES COULEURS ===== */
:root {
  --vert: #3a6b4a;
  --terre: #8c5e24;
  --beige: #f5f2eb;
  --blanc: #ffffff;
  --noir: #222;
}

/* ===== BASE ===== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--beige);
  color: var(--noir);
  line-height: 1.6;
}

/* ===== TOPBAR ===== */
.topbar {
  background-color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 90px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.topbar .logo {
  font-weight: 700;
  font-size: 1.3rem;
}

.topbar nav a {
  color: var(--blanc);
  text-decoration: none;
  margin-left: 12px;
  font-size: 0.95rem;
}

.topbar nav a.active,
.topbar nav a:hover {
  text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  background: transparent;   /* transparent pour laisser voir le carrousel */
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.hero .hook {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: var(--blanc);
}

.btn.secondary {
  background-color: transparent;
  color: var(--blanc);
  border: 2px solid var(--blanc);
}

.btn:hover {
  opacity: 0.85;
}

/* ===== BLOCKS ===== */
.blocks {
  display: grid;
  gap: 20px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.block {
  background-color: var(--blanc);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--noir);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}


.block:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--vert);
  color: var(--blanc);
  text-align: center;
  padding: 16px 10px;
  font-size: 0.85rem;
}

/* ===== MOBILE FIRST ===== */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .tagline {
    font-size: 1.4rem;
  }
}

/* ===== ENTREPRENEURS ===== */
.filters {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}
.filters select {
  padding: 8px 12px;
  border: 1px solid var(--vert);
  border-radius: 4px;
  background-color: var(--blanc);
}

/* Line clamp pour les bios */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Badges d'activité */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-production-vegetale {
  background-color: #D8F3DC;
  color: #1B4332;
}

.badge-production-animale {
  background-color: #FFE5B4;
  color: #8B4513;
}

.badge-transformation {
  background-color: #E0F2FE;
  color: #0369A1;
}

.badge-maraichere {
  background-color: #FCE7F3;
  color: #BE185D;
}

.badge-default {
  background-color: #F3F4F6;
  color: #374151;
}

/* Carte entrepreneur améliorée */
.card {
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E8F4E8;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card h3 {
  margin: 16px 16px 8px;
  font-size: 1.2rem;
  color: var(--vert);
  font-weight: 700;
}

.card .badge {
  margin: 0 16px 8px;
}

.card .bio {
  margin: 8px 16px 12px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
}

.card .commune {
  margin: 0 16px 12px;
  font-size: 0.85rem;
  color: #4A6741;
  font-weight: 500;
}

.card .wa {
  margin: 0 16px 16px;
  background-color: #25d366;
  color: var(--blanc);
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card .wa:hover {
  background-color: #128C7E;
}

/* Fallback si pas de photo */
.card .initials {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.initials-production-vegetale { background: linear-gradient(135deg, #1B4332, #2D6A4F); }
.initials-production-animale { background: linear-gradient(135deg, #D97706, #B45309); }
.initials-transformation { background: linear-gradient(135deg, #0369A1, #0284C7); }
.initials-maraichere { background: linear-gradient(135deg, #BE185D, #DB2777); }
.initials-default { background: linear-gradient(135deg, #4B5563, #6B7280); }
/* ===== PRODUITS ===== */
.prix {
  font-weight: 700;
  color: var(--terre);
  margin: 4px 16px 0;
}
.cat {
  font-size: 0.8rem;
  color: #555;
  margin: 0 16px 4px;
  text-transform: capitalize;
}
.prod {
  font-size: 0.85rem;
  margin: 0 16px 12px;
}

/* ===== STORIES ===== */
.story .resume {
  font-weight: 600;
  margin: 8px 16px 4px;
  color: var(--vert);
}
.story .histoire {
  font-size: 0.9rem;
  margin: 0 16px 16px;
  line-height: 1.5;
}

/* ===== ARTICLES ===== */
.article .date {
  font-size: 0.8rem;
  color: #666;
  margin: 4px 16px 0;
}
.article .tag {
  display: inline-block;
  margin: 12px 16px 16px;
  background: var(--vert);
  color: var(--blanc);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ===== CONTACT ===== */
.contact-box {
  background: var(--blanc);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.contact-box h2 {
  margin-bottom: 8px;
  color: var(--vert);
}
.coord {
  list-style: none;
  margin-top: 12px;
}
.coord li {
  margin: 8px 0;
}
.social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.social a {
  text-decoration: none;
  color: var(--terre);
  font-weight: 600;
}

/* ===== CONTACT INTRO ===== */
.contact-box p {
  margin-bottom: 14px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== PRÉSENTATION ACCUEIL ===== */
.presentation {
  max-width: 700px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.presentation p {
  color: #333;
  line-height: 1.6;
}

/* ===== LONGS TEXTES ===== */
.card.story,
.card.article {
  display: flex;
  flex-direction: column;
}
.card.story .histoire,
.card.article .resume {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CARTES LONGUES ===== */
.card {
  height: auto;
}

/* ===== LOGO ===== */
.logo img {
  height: 40px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

/* ===== PHRASES INTRO ===== */
.intro {
  font-size: 1.05rem;
  color: #555;
  margin: 12px 0 24px;
  max-width: 700px;
  line-height: 1.55;
}
/* ===== SKELETON LOADERS ===== */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E8F4E8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #e8f4e8 25%, #d4ebd4 50%, #e8f4e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin: 12px 16px;
  background: linear-gradient(90deg, #e8f4e8 25%, #d4ebd4 50%, #e8f4e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-line.short  { width: 50%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long   { width: 90%; }
.skeleton-line.btn    { height: 38px; border-radius: 8px; margin: 8px 16px 16px; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ===== HEADINGS (TITRES) ===== */
h1 {
  color: var(--vert);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 24px;
}

h2 {
  color: var(--vert);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 20px;
}

h3 {
  color: var(--vert);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 16px;
}

/* ===== LINKS (LIENS) ===== */
a {
  color: var(--vert);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terre);
  text-decoration-thickness: 2px;
}

/* Exceptions : pas de underline sur buttons */
.btn,
.card .wa,
.topbar a,
.block,
nav a {
  text-decoration: none;
}

/* ===== LISTES ===== */
ul, ol {
  margin: 16px 0 16px 24px;
  line-height: 1.7;
}

li {
  margin-bottom: 8px;
  color: #333;
}

li strong {
  color: var(--vert);
  font-weight: 700;
}
/* ===== HEADINGS (TITRES) - AVEC FORCE !important ===== */
h1 {
  color: #000000 !important;
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  margin-top: 24px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

h2 {
  color: var(--vert) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  margin-top: 24px !important;
  line-height: 1.3 !important;
}

h3 {
  color: var(--vert) !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  margin-top: 16px !important;
}

/* ===== LINKS (LIENS) ===== */
a {
  color: var(--vert) !important;
  text-decoration: underline !important;
  transition: color 0.2s ease !important;
}

a:hover {
  color: var(--terre) !important;
  text-decoration-thickness: 2px !important;
}

.btn,
.card .wa,
.topbar a,
.block,
nav a {
  text-decoration: none !important;
}

/* ===== LISTES ===== */
ul, ol {
  margin: 20px 0 20px 32px !important;
  line-height: 1.8 !important;
}

li {
  margin-bottom: 12px !important;
  color: #333 !important;
  font-size: 1rem !important;
}

li strong {
  color: var(--vert) !important;
  font-weight: 700 !important;
}

/* ===== INTRO SECTIONS - RESPONSIVE & CENTRÉ ===== */
.intro {
  font-size: 1.05rem !important;
  color: #555 !important;
  margin: 20px auto 32px !important;
  padding: 0 16px !important;
  max-width: 850px !important;
  line-height: 1.7 !important;
  text-align: justify !important;
}

.mvv {
  padding: 20px 16px !important;
  max-width: 900px !important;
  margin: 0 auto 32px !important;
}

.mvv h2 {
  margin-top: 28px !important;
  margin-bottom: 14px !important;
}

.mvv p {
  color: #555 !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
  text-align: justify !important;
}

.mvv ul {
  margin: 16px 0 16px 32px !important;
}

.mvv li {
  margin-bottom: 12px !important;
  text-align: left !important;
}

.publics {
  padding: 20px 16px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

.publics h2 {
  margin-top: 28px !important;
  margin-bottom: 14px !important;
}

.publics ul {
  margin: 16px 0 16px 32px !important;
}

.publics li {
  margin-bottom: 12px !important;
}

main.container {
  padding: 24px 16px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

main.container h1 {
  padding: 0 16px !important;
}

.contact-box {
  padding: 24px !important;
  margin: 0 16px 24px !important;
}

.contact-box h2 {
  margin-top: 0 !important;
}

.contact-box p {
  color: #555 !important;
  margin-bottom: 14px !important;
  line-height: 1.7 !important;
  text-align: justify !important;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
    margin-bottom: 16px !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  .intro {
    font-size: 0.95rem !important;
    text-align: left !important;
    padding: 0 12px !important;
  }

  ul, ol {
    margin: 16px 0 16px 24px !important;
  }

  li {
    text-align: left !important;
  }

  .mvv p {
    text-align: left !important;
  }

  .contact-box p {
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem !important;
  }

  h2 {
    font-size: 1.2rem !important;
  }

  .intro {
    font-size: 0.9rem !important;
  }
}

/* ===== ANIMATIONS SCROLL ===== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MODAL CAPTURE LEADS ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal h3 {
  margin: 0 0 4px 0 !important;
  color: var(--vert) !important;
  font-size: 1.3rem !important;
}

.modal-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(58, 107, 74, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-group.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-group.checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.modal-note {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px 16px;
    border-radius: 12px;
  }
  
  .modal h3 {
    font-size: 1.1rem !important;
  }
}

/* Respect des préférences utilisateur déjà défini dans le reset */
/* ===== CARROUSEL HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  background: transparent;   /* transparent pour laisser voir le carrousel */
}

.carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;   /* derrière le texte */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  padding: 40px 25px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ffffff;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--vert);
}
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background: var(--blanc);
  text-align: center;
  flex-wrap: wrap;
}

.stat h2 {
  color: var(--vert);
  font-size: 2rem;
}

.stat p {
  color: #555;
}
.container {
  max-width: 1100px;
  margin: auto;
}
/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  .topbar {
  background-color: var(--vert);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Desktop : nav visible */
.topbar nav {
  display: none; /* caché par défaut, Tailwind lg:flex prend le relais */
}

/* Mobile : logo centré */
@media (max-width: 1023px) {
  .topbar {
    justify-content: center;
    position: relative;
    padding: 10px 16px;
    min-height: 64px;
  }
  .topbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .topbar .logo img {
    width: 220px;
    height: auto;
    filter: brightness(1.1);
  }
  #hamburger-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}

  .topbar nav a {
    font-size: 0.85rem;
    padding: 6px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 50px 15px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero-text {
    padding: 20px 15px;
  }
}
@media (max-width: 768px) {
  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .blocks {
    padding: 30px 15px;
  }

  .block {
    padding: 25px 15px;
  }
}
@media (max-width: 768px) {
  .card img {
    height: 180px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card .bio {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
