/* Hero */
.hero-about {
  background: var(--official-green);
  color: var(--secondary-font-color);
  text-align: center;
  padding-top: 8em;
  padding-bottom: 3em;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.hero-sub {
  font-size: 1.25rem;
  opacity: 0.95;
}

.leading-relaxed {
  line-height: 1.625;
  /* 1.625 = 26px si la font-size est 16px */
}

p {
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700; /* font-bold */
  margin-bottom: 2rem; /* mb-8 (8 * 0.25rem = 2rem) */
  text-align: center;
  margin-top: 2rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-inner > h3 {
  color: var(--official-green);
}

.strength-card {
  text-align: center;
  padding: 1.25rem;
}

.strength-card .hover-bar {
  height: 3px;
  width: 0;
  background: #6f8e20;
  box-shadow: 0 4px 10px rgba(111, 142, 32, 0.55);
  transition: width 250ms ease;
}

.group:hover .hover-bar {
  width: 100%;
}

#partners {
  padding-top: 3em;
}

.strength-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(103, 157, 67, 0.08);
}

/* Store card */
.store-card {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
/* Partners horizontal scroller */
.partners-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  background: transparent;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  will-change: transform;
  /* smooth hardware-accelerated transform */
  transform: translateZ(0);
}

/* Each item size: show 5 per view (20% each) on large screens */
.partner-item {
  flex: 0 0 14.2857%; /* 100 / 7 */
  max-width: 14.2857%;
  box-sizing: border-box;
}

.partner-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  height: 10.25rem; /* consistent height */
}

.partner-card img {
  max-height: 6.25rem;
  width: auto;
  object-fit: contain;
}

/* Responsive: fewer items on smaller screens */
@media (max-width: 1023px) {
  /* md and below: show 3 items */
  .partner-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
@media (max-width: 639px) {
  /* sm and below: show 2 items */
  .partner-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Optional: pause visual cue */
.partners-carousel.paused .partner-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Map responsiveness */
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Madagascar regions map */
#madagascar-regions-map-public {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.map-svg-container {
  height: 75vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
}

#madagascar-regions-svg {
  height: 100%;
  width: auto;
  display: block;
  max-width: 100%;
}

@media (max-height: 600px) {
  .map-svg-container {
    height: 65vh;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }
}

/* Small helpers */
.text-muted-foreground {
  color: #6b7280;
}

.bg-muted\/30 {
  background-color: rgba(15, 23, 42, 0.03);
}

/* Ensure partner images shrink on narrow screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero-sub {
    text-justify: center;
    font: 1rem sans-serif;
  }

  .atout-title,
  .antenne-title,
  .partner-title {
    font-size: 2rem;
  }

  .atout-description,
  .antenne-description,
  .partner-description {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}
.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
  opacity: 0; /* Initial state for elements using this */
}
