/* ===== FADE ANIMATION ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.fade-in-child {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== HUB HERO ===== */
.benin-hero-section {
  padding-top: calc(70px + 80px);
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
  background: #0F2B5B;
  margin-bottom: 60px;
}

.benin-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.benin-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transform: scale(1.02);
}

.benin-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    83.35945507199766deg,
    rgb(15, 43, 91) 4.2481%,
    rgba(15, 43, 91, 0.7) 55.843%,
    rgba(15, 43, 91, 0.4) 97.716%
  );
}

.benin-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1269px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 88px;
}

.benin-hero-content {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.benin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 201, 80, 0.15);
  border: 1px solid rgba(0, 201, 80, 0.2);
  border-radius: 9999px;
  height: 28px;
  padding: 0 16px;
  margin-bottom: 22px;
}

.benin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00C950;
}

.benin-status-pill span {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: #008236;
}

.benin-hero-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 57.2px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.benin-hero-highlight {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  color: #F7BB33;
  margin-bottom: 18px;
}

.benin-hero-desc {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 27.2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
  max-width: 670px;
}

.benin-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.benin-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #F7BB33;
  border-radius: 14px;
  padding: 0 32px;
  height: 48px;
  color: #0F2B5B;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 0 0 #C27E0C, 0 2px 4px rgba(37, 43, 47, 0.06);
}

.benin-btn-primary img {
  width: 16px;
  height: 16px;
}

.benin-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  height: 48px;
  padding: 0 28px;
  color: #FFFFFF;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* ===== HUB OVERVIEW ===== */
.benin-overview-section {
  background: #F8FAFE;
  padding: 0 0 40px;
}

.benin-overview-inner {
  max-width: 1269px;
  margin: 0 auto;
  padding: 0;
}

.benin-stats-card {
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  background: transparent;
  padding: 22px 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.benin-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benin-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.benin-stat-value {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 36px;
  color: #205CD4;
}

.benin-stat-label {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 19.5px;
  color: #6E7F93;
}

.benin-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.benin-about-card {
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 28px;
}

.benin-about-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 42px;
  color: #0F2B5B;
  margin-bottom: 16px;
}

.benin-about-desc {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28.8px;
  color: #6E7F93;
  margin-bottom: 16px;
}

.benin-about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.benin-about-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: rgba(247, 187, 51, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benin-about-bullet-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.benin-about-list-text {
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22.5px;
  color: #0F2B5B;
}

.benin-map-wrap {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.benin-map {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benin-map-base {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.benin-pin {
  position: absolute;
  width: 36px;
  height: 36px;
}

.benin-pin--1 { left: 18%; top: 26%; }
.benin-pin--2 { left: 48%; top: 44%; }
.benin-pin--3 { left: 70%; top: 22%; }
.benin-pin--4 { left: 60%; top: 70%; }

/* ===== MATIERES COUVERTES ===== */
.benin-subjects-section {
  background: #0F2B5B;
  padding: 70px 0;
}

.benin-subjects-inner {
  max-width: 1269px;
  margin: 0 auto;
}

.benin-subjects-header {
  margin-bottom: 40px;
}

.benin-subjects-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 42px;
  color: #F7BB33;
  margin-bottom: 8px;
}

.benin-subjects-subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #B5BEC8;
}

.benin-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benin-subject-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  height: 94px;
}

.benin-subject-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benin-subject-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benin-subject-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22.5px;
  color: #FFFFFF;
}

.benin-subject-level {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #B5BEC8;
}

/* ===== RESSOURCES DISPONIBLES ===== */
.benin-resources-section {
  background: #F8FAFE;
  padding: 60px 0;
}

.benin-resources-inner {
  max-width: 1269px;
  margin: 0 auto;
}

.benin-resources-header {
  margin-bottom: 30px;
}

.benin-resources-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 42px;
  color: #0F2B5B;
  margin-bottom: 5px;
}

.benin-resources-subtitle {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #6E7F93;
}

.benin-resources-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.benin-resources-image {
  flex: 0 0 48%;
  border-radius: 20px;
  overflow: hidden;
}

.benin-resources-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.benin-resources-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benin-resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  height: 90px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.benin-resource-card:hover {
  border-color: rgba(32, 92, 212, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.benin-resource-icon {
  width: 48px;
  height: 48px;
  background: #F8F9FC;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benin-resource-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.benin-resource-info {
  flex: 1;
  min-width: 0;
}

.benin-resource-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.benin-resource-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22.5px;
  color: #0F2B5B;
}

.benin-resource-badge {
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  padding: 1.5px 7px;
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
}

.benin-resource-badge--purple {
  color: #7F22FE;
  border-color: #7F22FE;
}

.benin-resource-badge--red {
  color: #E7000B;
  border-color: #E7000B;
}

.benin-resource-badge--blue {
  color: #155DFC;
  border-color: #155DFC;
}

.benin-resource-desc {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 19.5px;
  color: #6B7280;
}

.benin-resource-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.benin-resource-arrow img {
  width: 100%;
  height: 100%;
}

/* ===== DECOUVRIR LES AUTRES HUBS ===== */
.benin-otherhubs-section {
  background: #F8FAFE;
  padding: 0 0 30px;
}

.benin-otherhubs-inner {
  max-width: 1269px;
  margin: 0 auto;
}

.benin-otherhubs-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 33px;
  color: #0F2B5B;
  margin-bottom: 20px;
}

.benin-otherhubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benin-otherhub-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 15px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.benin-otherhub-card:hover {
  border-color: rgba(32, 92, 212, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.benin-otherhub-thumb {
  width: 184px;
  height: 153px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.benin-otherhub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benin-otherhub-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 43, 91, 0.2);
  border-radius: 15px;
}

.benin-otherhub-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.benin-otherhub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8F9FC;
  border-radius: 9999px;
  padding: 4px 10px;
  width: fit-content;
  font-family: "DM Sans", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 16.5px;
  color: #2DC543;
  margin-bottom: 12px;
}

.benin-otherhub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DC543;
}

.benin-otherhub-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #0F2B5B;
  margin: 0;
}

.benin-otherhub-desc {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 19.5px;
  color: #6E7F93;
  margin: 0;
}

.benin-otherhub-link {
  font-family: "DM Sans", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 16.5px;
  color: #F7BB33;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .benin-hero-inner {
    gap: 40px;
  }

  .benin-stats-card {
    padding: 20px 20px;
    gap: 12px;
  }

  .benin-about-grid {
    grid-template-columns: 1fr;
  }

  .benin-map {
    height: 240px;
  }

  .benin-subjects-section {
    padding: 50px 24px;
  }

  .benin-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benin-resources-section {
    padding: 50px 24px;
  }

  .benin-resources-layout {
    flex-direction: column;
  }

  .benin-resources-image {
    flex: none;
    height: 300px;
  }

  .benin-otherhubs-section {
    padding: 0 24px 60px;
  }

  .benin-otherhubs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .benin-hero-section {
    padding-top: calc(70px + 24px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .benin-hero-inner {
    padding-right: 0;
    gap: 24px;
  }

  .benin-hero-title {
    font-size: 32px;
    line-height: 42px;
  }

  .benin-hero-desc {
    font-size: 15px;
    line-height: 24px;
  }

  .benin-hero-actions {
    width: 100%;
  }

  .benin-btn-primary,
  .benin-btn-secondary {
    width: 100%;
  }

  .benin-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benin-map {
    height: 220px;
  }

  .benin-subjects-section {
    padding: 40px 16px;
  }

  .benin-subjects-title {
    font-size: 22px;
    line-height: 32px;
  }

  .benin-subjects-grid {
    grid-template-columns: 1fr;
  }

  .benin-subject-card {
    height: auto;
    padding: 20px;
  }

  .benin-resources-section {
    padding: 40px 16px;
  }

  .benin-resources-title {
    font-size: 22px;
    line-height: 32px;
  }

  .benin-resources-image {
    height: 240px;
  }

  .benin-resource-card {
    height: auto;
    padding: 16px;
  }

  .benin-otherhubs-section {
    padding: 0 16px 50px;
  }

  .benin-otherhubs-title {
    font-size: 20px;
  }

  .benin-otherhub-card {
    flex-direction: column;
    gap: 16px;
  }

  .benin-otherhub-thumb {
    width: 100%;
    height: 180px;
  }
}

