/* ==========================================================================
   CONSEIL DU COTON ET DE L'ANACARDE (CCA) - STYLES OFFICIELS REPRODUITS
   Couleurs officielles : 
   - CCA Orange : #F77F00 / #f3742d
   - CCA Vert   : #019E60
   - CCA Marron : #864500
   ========================================================================== */

:root {
  --cca-orange: #F77F00;
  --cca-orange-hover: #df6e00;
  --cca-orange-light: #fff4ea;
  --cca-orange-opacity: rgba(247, 127, 0, 0.15);
  
  --cca-green: #019E60;
  --cca-green-hover: #01804e;
  --cca-green-light: #e8f8f1;
  --cca-green-opacity: rgba(1, 158, 96, 0.15);

  --cca-brown: #864500;
  --cca-dark: #1a1a1a;
  --cca-text: #333333;
  --cca-text-muted: #64748b;
  --cca-bg-light: #f8fafc;
  --cca-border: #e2e8f0;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  color: var(--cca-text);
  background-color: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 140px; /* Space for fixed header */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

/* Topbar : Langue & Institution */
.topbar-lang {
  background: #f1f5f9;
  border-bottom: 1px solid var(--cca-border);
  font-size: 0.8125rem;
  padding: 0.35rem 0;
}

.topbar-lang .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #475569;
}

.topbar-badge img {
  width: 18px;
  height: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--cca-orange);
  color: #ffffff;
}

/* Navbar */
.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--cca-orange);
}

.nav-link svg.arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-item:hover > .nav-link svg.arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #f1f5f9;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.dropdown-link:hover {
  background: var(--cca-orange-light);
  color: var(--cca-orange);
}

/* Sub-dropdown */
.dropdown-sub {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #f1f5f9;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover > .dropdown-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Navbar CTAs */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-contact {
  background: var(--cca-orange);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(247, 127, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-contact:hover {
  background: var(--cca-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(247, 127, 0, 0.35);
}

.btn-portal {
  background: transparent;
  color: var(--cca-orange);
  border: 1.5px solid var(--cca-orange);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-portal:hover {
  background: var(--cca-orange);
  color: #ffffff;
}

/* Hamburger Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  z-index: 1100;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mobile-menu-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.mobile-menu-link {
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* ==========================================================================
   BANDEAU FLASH INFOS (TICKER)
   ========================================================================== */
.flash-info-bar {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.35rem 0;
}

.flash-info-container {
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
  background: url('../assets/images/flash-info-bg.png') repeat-x center;
  background-size: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.flash-title-badge {
  background: url('../assets/images/flash-title.png') no-repeat center right;
  background-size: cover;
  background-color: var(--cca-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0 1.5rem 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.flash-content-ticker {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(247,127,0,0.92) 0%, rgba(247,127,0,0.85) 100%);
}

.flash-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 35s linear infinite;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.flash-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.flash-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  background: rgba(247,127,0,0.92);
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
}

.flash-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.flash-social-link:hover {
  background: #ffffff;
  color: var(--cca-orange);
  transform: scale(1.1);
}

/* ==========================================================================
   HERO BANNER SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  background: #111827;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.88) 100%);
  padding: 3.5rem 0;
  color: #ffffff;
}

.slide-content {
  max-width: 880px;
}

.slide-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: var(--cca-orange);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.slide-tag.green {
  background: var(--cca-green);
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.slide-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  max-width: 720px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cca-orange);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(247, 127, 0, 0.4);
}

.slide-btn:hover {
  background: var(--cca-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 127, 0, 0.5);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--cca-orange);
  border-color: var(--cca-orange);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

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

.slider-dot.active {
  background: var(--cca-orange);
  width: 28px;
  border-radius: 6px;
}

/* ==========================================================================
   SECTION À PROPOS (MOTIF GRAPHIQUE)
   ========================================================================== */
.section-about {
  padding: 5rem 0;
  background: #ffffff url('../assets/images/pattern_about.png') no-repeat center;
  background-size: cover;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cca-brown);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--cca-text-muted);
  margin-top: 0.25rem;
}

.btn-more {
  background: var(--cca-orange);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-more:hover {
  background: var(--cca-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 4 Cards Grid */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(247, 127, 0, 0.3);
}

.card-badge-top {
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 64px;
  height: 44px;
  background: var(--cca-orange);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(247, 127, 0, 0.3);
}

.card-badge-top img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.card-body {
  margin-top: 1.5rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.card-btn {
  background: var(--cca-orange);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: var(--cca-orange-hover);
}

/* ==========================================================================
   SECTION ACTUALITÉS (FOND ORANGE OFFICIEL)
   ========================================================================== */
.section-news {
  padding: 5rem 0;
  background-color: var(--cca-orange);
  background-image: url('../assets/images/actualite_pattern.png');
  background-blend-mode: multiply;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  position: relative;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.news-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  color: var(--cca-text);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.news-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--cca-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.news-tag.green {
  background: var(--cca-green);
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8125rem;
  color: var(--cca-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--cca-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-link:hover {
  color: var(--cca-orange-hover);
}

/* ==========================================================================
   SECTION FILIÈRES (DOUBLE COLONNE OFFICIELLE)
   ========================================================================== */
.section-filieres {
  padding: 5rem 0;
  background: #ffffff;
}

.filieres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.filiere-col {
  display: flex;
  flex-direction: column;
}

.filiere-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filiere-title {
  font-size: 2rem;
  font-weight: 800;
}

.filiere-title.anacarde {
  color: var(--cca-orange);
}

.filiere-title.coton {
  color: var(--cca-green);
}

.filiere-divider {
  flex-grow: 1;
  height: 4px;
  background: #e2e8f0;
  position: relative;
}

.filiere-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  height: 8px;
  width: 60px;
}

.filiere-col.anacarde .filiere-divider::before {
  background: var(--cca-orange);
}

.filiere-col.coton .filiere-divider::before {
  background: var(--cca-green);
}

.filiere-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.filiere-img-wrap {
  width: 100%;
  height: 250px;
  position: relative;
}

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

.filiere-badge-bar {
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.filiere-badge-bar.orange {
  background: var(--cca-orange);
}

.filiere-badge-bar.green {
  background: var(--cca-green);
}

.filiere-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.filiere-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.filiere-btn {
  align-self: flex-end;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filiere-btn.orange {
  background: var(--cca-orange);
}
.filiere-btn.orange:hover {
  background: var(--cca-orange-hover);
}

.filiere-btn.green {
  background: var(--cca-green);
}
.filiere-btn.green:hover {
  background: var(--cca-green-hover);
}

/* ==========================================================================
   SECTION CHIFFRES CLÉS & STATISTIQUES
   ========================================================================== */
.section-stats {
  padding: 4rem 0;
  background: var(--cca-bg-light);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cca-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
}

/* ==========================================================================
   CARTE INTERACTIVE DES 12 DÉLÉGATIONS (LEAFLET)
   ========================================================================== */
.section-map {
  padding: 5rem 0;
  background: #ffffff;
}

.map-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

#cca-map {
  width: 100%;
  height: 520px;
  z-index: 1;
}

.delegations-panel {
  padding: 1.5rem;
  background: #fafafa;
  overflow-y: auto;
  max-height: 520px;
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cca-brown);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delegations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.delegation-item {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delegation-item:hover, .delegation-item.active {
  border-color: var(--cca-orange);
  background: var(--cca-orange-light);
}

.delegation-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
}

.delegation-coords {
  font-size: 0.75rem;
  color: #64748b;
}

/* Leaflet Custom Popups */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cca-popup-header {
  background: var(--cca-orange);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

.cca-popup-body {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.5;
}

/* ==========================================================================
   PARTENAIRES & NEWSLETTER & WHATSAPP
   ========================================================================== */
.section-partners {
  padding: 3.5rem 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.partners-title {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 2rem;
}

.partners-marquee {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: #64748b;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.partner-logo-box:hover {
  border-color: var(--cca-orange);
  color: var(--cca-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Newsletter Bar */
.section-newsletter {
  background: #1e293b;
  padding: 3rem 0;
  color: #ffffff;
}

.newsletter-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.newsletter-text p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-grow: 1;
  max-width: 500px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #334155;
  color: #ffffff;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--cca-orange);
}

.newsletter-btn {
  background: var(--cca-orange);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--cca-orange-hover);
}

.whatsapp-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.whatsapp-link-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER OFFICIEL
   ========================================================================== */
.footer-main {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--cca-orange);
  border-radius: 2px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--cca-orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ==========================================================================
   PAGE BANNER GÉNÉRIQUE (POUR LES SOUS-PAGES)
   ========================================================================== */
.page-hero-banner {
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)), url('../assets/images/filiere-bg.png') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.page-breadcrumb a:hover {
  color: var(--cca-orange);
}

/* ==========================================================================
   FORMULAIRES & CONTACT & CONNEXION
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.9375rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--cca-orange);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.15);
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--cca-orange);
}

.toast.show {
  transform: translateX(0);
}

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