:root {
  /* Colors - Based on React App MyAfawa */
  --primary-green: #4a6a53;
  --primary-green-dark: #3b5542;
  --primary-green-deep: #2e4234;
  --primary-green-light: #f0f5f1;
  
  --accent-pink: #f3b4c4;
  --accent-pink-light: #fce8ee;
  --accent-pink-mid: #f8d5df;
  --accent-pink-dark: #e8899f;
  
  --text-heading: #111827;
  --text-body: #444444;
  --text-muted: #9ca3af;
  
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  
  /* Fonts */
  --font-heading: 'Nunito', 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  /* Shadows */
  --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 60px rgba(0, 0, 0, 0.12);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--primary-green-dark);
}

.btn-pill {
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 600;
  transition: 0.3s;
}

.section-padding {
  padding: 100px 0;
}

/* Specific Section Styles from React */
.cta-band {
  background-color: var(--primary-green-light);
  padding: 52px 24px;
  border-top: 1px solid rgba(74, 106, 83, 0.1);
}

.footer-dark {
  background-color: var(--primary-green-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 24px;
}

/* ══════════════════════════ NAVIGATION ══════════════════════════ */
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

/* Dropdown styling Premium */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 15px);
  margin: 0;
  padding: 15px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 20px;
  min-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/* Login Page Africa Style */
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}

.login-input-group {
  position: relative;
  margin-bottom: 20px;
}

.login-input-group i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
}

.login-input {
  width: 100%;
  padding: 16px 20px 16px 55px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: 0.3s;
  font-size: 15px;
}

.login-input:focus {
  border-color: var(--primary-green);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 106, 83, 0.1);
}

.btn-login-africa {
  background: #2e4234; /* Vert très foncé Africa */
  color: #fff;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  font-size: 16px;
}

.btn-login-africa:hover {
  background: #1a2a21;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.login-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 5px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--primary-green-deep);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a, .navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--primary-green-deep);
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.1);
}

.navbar-mobile .dropdown-active {
  display: block !important;
}

/* ══════════════════════════ MEGA MENU PREMIUM ══════════════════════════ */
@media (min-width: 992px) {
  .navbar .dropdown ul {
    width: 600px; /* Mega menu width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 24px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.05);
  }

  .navbar .dropdown ul li {
    min-width: auto;
  }

  .navbar .dropdown ul a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 15px !important;
    border-radius: 12px;
    transition: 0.2s;
    background: transparent;
  }

  .navbar .dropdown ul a:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
  }

  .mega-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }

  .mega-title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 15px;
    margin-bottom: 2px;
  }

  .mega-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
  }
}

/* ══════════════════════════ LOGIN PAGE AFRICA ══════════════════════════ */
.login-split {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.login-visual {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 440px;
}

.login-input-group {
  position: relative;
  margin-bottom: 20px;
}

.login-input-group i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
}

.login-input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 55px;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  transition: 0.3s;
}

.login-input:focus {
  background: #fff;
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 106, 83, 0.1);
}

.btn-africa {
  width: 100%;
  height: 58px;
  background: #4A6741;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(74, 103, 65, 0.2);
}

.btn-africa:hover {
  background: #3d5536;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .login-visual { display: none; }
  .login-form-side { padding: 20px; }
}

/* ══════════════════════════ PWA MOBILE UI ══════════════════════════ */
@media (max-width: 991px) {
  /* Masquer le toggle burger classique */
  .mobile-nav-toggle { display: none !important; }

  /* Bottom Navigation Bar */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
  }

  .bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .bottom-nav-item.active {
    color: var(--primary-green);
  }

  /* Bottom Sheet (Tiroir) */
  .bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 2001;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .bottom-sheet.active { bottom: 0; }
  .bottom-sheet-overlay.active { opacity: 1; visibility: visible; }

  .sheet-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 20px;
  }

  .sheet-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 5px;
  }

  .sheet-subtitle {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
  }

  .sheet-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-heading);
    transition: 0.2s;
  }

  .sheet-menu-item:active { background: #f3f4f6; }

  .sheet-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
}

@media (min-width: 992px) {
  .bottom-nav, .bottom-sheet, .bottom-sheet-overlay {
    display: none !important;
  }
}

/* ══════════════════════════ PROGRAMS PAGE ══════════════════════════ */
.hero-dark {
  background-color: #324C2C; /* Vert Africa */
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.hero-dark .badge-teal {
  background-color: #64B5A1;
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
  display: inline-block;
  text-transform: uppercase;
}

.hero-dark h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-dark p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.program-card {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  margin-bottom: 40px;
  transition: 0.3s;
  border-top: 4px solid var(--primary-green);
  display: flex;
  flex-direction: column; /* Vertical par défaut */
  height: 100%; /* Pour avoir des cartes de même hauteur */
}

.program-img-wrapper {
  width: 100%;
  height: 220px; /* Hauteur fixe pour l'harmonie */
  overflow: hidden;
}

.program-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.program-card:hover .program-img-wrapper img {
  transform: scale(1.1);
}

.program-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-number-badge {
  width: 35px;
  height: 35px;
  background: #324C2C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 15px;
}

.program-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #1e293b;
  line-height: 1.3;
}

.program-list {
  margin-top: auto; /* Pousse la liste vers le bas */
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 15px;
}

.program-list li i {
  color: #22c55e;
  font-size: 18px;
}

/* ══════════════════════════ MODAL PREMIUM ══════════════════════════ */
.modal-africa {
  border-radius: 30px;
  border: none;
  overflow: hidden;
}

.modal-africa .modal-body {
  padding: 0;
}

.modal-header-img {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  color: #000;
  font-size: 20px;
  transition: 0.3s;
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  background: #f8f9fa;
}

.modal-info-content {
  padding: 40px;
}

.modal-africa .badge-partner {
  background: #fdf2f8;
  color: #be185d;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

.modal-africa h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  color: #324C2C;
  margin-bottom: 20px;
}

.modal-africa p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 16px;
}

.btn-outline-africa {
  border: 2px solid #324C2C;
  color: #324C2C;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-outline-africa:hover {
  background: #324C2C;
  color: #fff;
}

.btn-solid-africa {
  background: #324C2C;
  color: #fff;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
  border: none;
}

.btn-solid-africa:hover {
  background: #1a2a1b;
  color: #fff;
}

/* ══════════════════════════ ABOUT PAGE ══════════════════════════ */
.about-hero {
  background-color: #324C2C;
  padding: 120px 0;
  text-align: center;
  color: #fff;
}

.about-hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 20px;
}

.about-section {
  padding: 100px 0;
}

.about-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 25px;
}

.about-section p {
  color: #64748b;
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 20px;
}

.pillar-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  height: 100%;
  transition: 0.3s;
  border: 1px solid #f1f5f9;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 25px;
}

.value-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border-left: 5px solid var(--primary-green);
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
}

.img-overlap-container {
  position: relative;
}

.img-overlap-main {
  border-radius: 30px;
  width: 90%;
}

.img-overlap-sub {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 60%;
  border-radius: 20px;
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bg-soft-green { background-color: #f0fdf4; }
.bg-soft-blue { background-color: #eff6ff; }
.bg-soft-orange { background-color: #fff7ed; }

/* ══════════════════════════ CONTACT PAGE ══════════════════════════ */
.contact-info-card {
  background: #F5F7F6;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
}

.contact-info-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  background: #324C2C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.contact-info-text p, .contact-info-text a {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
}

.contact-form-premium {
  background: #fff;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.form-control-premium {
  background: #F5F7F6;
  border: none;
  border-radius: 16px;
  padding: 18px 25px;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 20px;
}

.form-control-premium:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(50, 76, 44, 0.1);
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 10px;
  color: #fff;
  transition: 0.3s;
}

.social-btn:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.sb-fb { background: #1877F2; }
.sb-ig { background: #E4405F; }
.sb-li { background: #0A66C2; }
.sb-x { background: #000000; }

/* ══════════════════════════ BLOG PAGE ══════════════════════════ */
.blog-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

.blog-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(50, 76, 44, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.blog-card-content {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 14px; /* Réduction supplémentaire */
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #0f172a;
}

.blog-link {
  margin-top: auto;
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: 0.3s;
}

.blog-link i {
  transition: transform 0.3s;
}

.blog-card:hover .blog-link i {
  transform: translateX(5px);
}

/* ARTICLE DETAIL */
.article-detail-header {
  max-width: 900px;
  margin: 0 auto 50px;
}

.article-main-img {
  width: 100%;
  border-radius: 30px;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.article-body {
  font-size: 18px;
  line-height: 1.9;
  color: #334155;
}

.article-body h2 {
  font-weight: 900;
  color: #1e293b;
  margin-top: 50px;
  margin-bottom: 25px;
}

.sidebar-premium {
  background: #F5F7F6;
  padding: 30px;
  border-radius: 24px;
  position: sticky;
  top: 120px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
}

.recent-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.recent-post-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}