 .modern-nav {
            background:  #004155;
            box-shadow: 0 5px 30px rgba(0,65,85,0.08);
            position: sticky;
            top: 0;
            z-index: 10000; 
            color: #ffffff;
            border-image: linear-gradient(90deg, #f6d04b 0%, #009594 50%, #004155 100%) 1;
            margin-bottom: 30px;
        }
        
        .nav-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
            margin-bottom : 20px;
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-item > a {
            display: flex;
            align-items: center;
            padding: 25px 30px;
            color: #ffffff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        /* Effet de soulignement animé */
        .nav-item > a::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #f6d04b 0%, #009594 100%);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(-50%);
        }
        
        .nav-item > a:hover::before,
        .nav-item.active > a::before {
            width: 80%;
        }
        
        .nav-item > a:hover {
            color: #009594;
            background: linear-gradient(180deg, transparent 0%, rgba(0,149,148,0.03) 100%);
        }
        
        /* Icône dropdown stylée */
        .has-dropdown > a::after {
            content: "›";
            margin-left: 8px;
            font-size: 14px;
            color: #009594;
        }
        
        .has-dropdown:hover > a::after {
            transform: rotate(270deg);
        }
        
        /* Dropdown Ultra Moderne */
        .dropdown-modern {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #ffffff;
            min-width: 240px;
            box-shadow: 0 15px 50px rgba(0,65,85,0.15);
            border-radius: 12px;
            list-style: none;
            margin: 0;
            padding: 15px 0;
            opacity: 0;
            visibility: hidden;
            z-index: 10001; /* au-dessus du reste */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-top: 3px solid #009594;
        }
        
        .nav-item:hover .dropdown-modern {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .nav-item.active,
        .nav-item:hover {
            z-index: 10002;
            position: relative;
        }
        
        .dropdown-modern::before {
            content: "";
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid #009594;
        }
        
        .dropdown-modern li {
            margin: 0;
        }
        
        .dropdown-modern li a {
            display: flex;
            align-items: center;
            padding: 14px 25px;
            color: #004155;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .dropdown-modern li a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 0;
            background: linear-gradient(180deg, #f6d04b 0%, #009594 100%);
            transition: height 0.3s ease;
            border-radius: 0 4px 4px 0;
        }
        
        .dropdown-modern li a:hover {
            background: linear-gradient(90deg, rgba(0,149,148,0.05) 0%, transparent 100%);
            color: #009594;
            padding-left: 30px;
        }
        
        .dropdown-modern li a:hover::before {
            height: 70%;
        }
        
        /* Hero Section Ultra Moderne */
        .hero-modern {
            background: linear-gradient(135deg, #004155 0%, #006b7d 50%, #009594 100%);
            padding: 120px 0;
            position: relative;
            overflow: hidden;
        }
        
        .hero-modern::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(246,208,75,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0,149,148,0.15) 0%, transparent 50%);
        }
        
        .hero-modern::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
        }
        
        .hero-badge {
            display: inline-block;
            padding: 8px 20px;
            background: rgba(246,208,75,0.2);
            border: 2px solid #f6d04b;
            border-radius: 50px;
            color: #f6d04b;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 25px;
        }
        
        .hero-modern h2 {
            font-size: 58px;
            color: #ffffff;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
            text-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }
        
        .hero-accent-text {
            color: #f6d04b;
        }
        
        .hero-modern p {
            font-size: 20px;
            color: rgba(255,255,255,0.9);
            font-weight: 300;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* Mobile Toggle Button */
        .mobile-menu-btn {
            display: none;
            background: linear-gradient(135deg, #004155 0%, #009594 100%);
            color: #ffffff;
            border: none;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            width: 100%;
            text-align: left;
            font-weight: 600;
            letter-spacing: 1px;
        }
        
        .mobile-menu-btn:hover {
            background: linear-gradient(135deg, #009594 0%, #004155 100%);
        }
        
        #mobile-toggle {
            display: none;
        }
        
        /* Responsive */
        @media (max-width: 991px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-wrapper {
                display: none;
                flex-direction: column;
                background: #f8f9fa;
            }
            
            #mobile-toggle:checked + .mobile-menu-btn + .nav-wrapper {
                display: flex;
            }
            
            .nav-item {
                width: 100%;
                border-bottom: 1px solid rgba(0,65,85,0.1);
            }
            
            .nav-item > a {
                padding: 18px 20px;
            }
            
            .nav-item > a::before {
                display: none;
            }
            
            .dropdown-modern {
                position: static;
                transform: none;
                box-shadow: none;
                border-radius: 0;
                background: rgba(0,65,85,0.03);
                border: none;
                display: none;
                z-index: 10001; /* garde priorité même en mobile */
            }
            
            .dropdown-modern::before {
                display: none;
            }
            
            .nav-item:hover .dropdown-modern,
            .nav-item:focus-within .dropdown-modern {
                display: block;
                opacity: 1;
                visibility: visible;
            }
            
            .dropdown-modern li a {
                padding-left: 40px;
            }
            .objectives {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 767px) {
            
            .hero-modern h2 {
                font-size: 36px;
            }
            
            .hero-modern p {
                font-size: 16px;
            }
        }

.energy-section {
            min-height: 100vh;
            background: #01305c;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .energy-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .energy-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
            opacity: 0.3;
        }

        .content {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .hero-content {
            text-align: center;
            color: white;
        }

        .title {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 3s ease-in-out infinite;
            line-height: 1.2;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .subtitle {
            font-size: clamp(1.1rem, 2.5vw, 1.4rem);
            margin-bottom: 3rem;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.6;
            margin-left: auto;
            margin-right: auto;
        }

        .stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .stat-item {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 1.5rem 2rem;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            min-width: 150px;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: #ffd700;
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .objectives {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 3rem;
        }

        .objective-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            padding: 2rem;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .objective-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .objective-card:hover::before {
            left: 100%;
        }

        .objective-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 215, 0, 0.5);
        }

        .objective-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }
        .objective-icon i.fa {
            color: #ffd700;
            font-size: 1em; /* inherits from .objective-icon */
            display: inline-block;
            vertical-align: middle;
        }

        .objective-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #ffd700;
        }

        .objective-text {
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.6;
        }

        .cta-section {
            margin-top: 4rem;
            text-align: center;
        }

        .cta-text {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: rgba(255, 255, 255, 0.9);
            font-style: italic;
            margin-left: auto;
            margin-right: auto;
        }

        .solar-animation {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
        }

        .sun-ray {
            position: absolute;
            width: 2px;
            height: 100px;
            background: linear-gradient(180deg, rgba(255, 215, 0, 0.8), transparent);
            animation: sunRay 3s ease-in-out infinite;
        }

        @keyframes sunRay {
            0%, 100% { opacity: 0; transform: translateY(-50px); }
            50% { opacity: 1; transform: translateY(0); }
        }

        .sun-ray:nth-child(1) { left: 20%; animation-delay: 0s; }
        .sun-ray:nth-child(2) { left: 40%; animation-delay: 0.5s; }
        .sun-ray:nth-child(3) { left: 60%; animation-delay: 1s; }
        .sun-ray:nth-child(4) { left: 80%; animation-delay: 1.5s; }

        @media (max-width: 768px) {
            .stats {
                gap: 1rem;
            }
            
            .stat-item {
                padding: 1rem 1.5rem;
                min-width: 120px;
            }

            .objectives {
                grid-template-columns: 1fr;
            }
        }

/* CTA buttons after navigation */
.nav-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
    margin-top : 60px;
    margin-bottom: 40px;
}

.btn-explore, .btn-impact {
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

/* Primary filled CTA */
.btn-explore {
    background: linear-gradient(90deg, #f6d04b 0%, #009594 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0,149,148,0.12);
    border: none;
}
.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,149,148,0.18);
}

/* Secondary outline CTA */
.btn-impact {
    background: transparent;
    color: #009594;
    border: 2px solid rgba(0,149,148,0.15);
}
.btn-impact:hover {
    background: rgba(0,149,148,0.06);
    color: #004155;
    transform: translateY(-3px);
}

/* Responsive: full-width buttons under 991px */
@media (max-width: 991px) {
    .nav-ctas { justify-content: center; flex-wrap: wrap; }
    .btn-explore, .btn-impact { width: 100%; max-width: 420px; justify-content: center; }
}

.stats-section {
  padding: 2rem 2rem;
  position: relative;
  background: transparent;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Let Bootstrap manage the row/cols layout */
.stats-grid {
  display: block; /* override previous grid rules */
}

/* Stat card base */
.stat-card {
  position: relative;
  height: 420px;                 /* fixed visual height - change to min-height if you prefer */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), box-shadow 0.45s ease;
  -webkit-tap-highlight-color: transparent;
  background-color: #0b2b34; /* fallback color while image loads */
}

/* image layer */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  will-change: transform;
  transition: transform 0.6s ease;
  z-index: 1;
}

/* small parallax / zoom on hover */
.stat-card:hover::before,
.stat-card:focus::before {
  transform: scale(1.08);
}

/* lift effect */
.stat-card:hover,
.stat-card:focus {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  z-index: 30;
}

/* per-card background images (use your URLs or replace) */
.card-people::before {
  background-image: url('https://www.afdb.org/sites/default/files/2025/12/17/49749805436_f5503857c2_c.jpg');
}
.card-transmission::before {
  background-image: url('https://www.afdb.org/sites/default/files/2025/12/17/53922189306_c638b3d622_c.jpg');
}
.card-generation::before {
  background-image: url('https://www.afdb.org/sites/default/files/2025/12/17/49750124507_a4d98e48c9_c.jpg');
}

/* overlay gradient and bottom content container */
.stat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) 25%,
    rgba(0,0,0,0.85) 100%);
}

/* Divider bar */
.stat-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd700 0%, rgba(255,215,0,0.0) 100%);
  margin: 0.2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* Number and label */
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffd700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.75);
  letter-spacing: -0.4px;
  line-height: 1.05;
}

.stat-label {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.85);
}

/* central glow element (subtle) */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,215,0,0.18) 0%, rgba(246,208,75,0.06) 20%, transparent 60%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.stat-card:hover .glow-effect,
.stat-card:focus .glow-effect {
  opacity: 1;
}

/* accessibility: focus styles for keyboard users */
.stat-card:focus {
  outline: none;
  box-shadow: 0 0 0 5px rgba(0,149,148,0.12), 0 28px 60px rgba(0,0,0,0.45);
}

/* smaller screens - adjust height and padding */
@media (max-width: 991px) {
  .stat-card { height: 400px; }
  .stat-content { padding: 2rem; }
  .stat-number { font-size: clamp(1.6rem, 5vw, 2.6rem); }
}
@media (max-width: 768px) {
  .stats-section { padding: 4rem 1rem; }
  .stats-grid { gap: 1.5rem; }
  .stat-card { height: 360px; margin-bottom: 18px; border-radius: 12px; }
  .stat-content { padding: 1.8rem; }
  .stat-number { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .stat-label { font-size: 0.95rem; }
}

/* Optional: use min-height instead of height if you prefer flexible height */
/* .stat-card { min-height: 360px; height: auto; } */

/* Ensure Bootstrap col spacing plays nicely (if you want extra vertical spacing) */
.row.stats-grid > [class*="col-"] {
  margin-bottom: 18px;
}

.sect-title {
    margin-top: 40px;
    margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.accent {
  display: inline-block;
  background: linear-gradient(90deg, #f6d04b 0%, #009594 100%);
  color: #ffffff;
  padding: 10px 10px;
  margin-right: 8px;
  font-weight: 900;
  min-width: 250px;
}

/* Initiatives 4x2 grid (Bootstrap 3 columns) */
.initiatives { padding: 0 20px; margin-top: 30px; margin-bottom: 60px;}
.initiatives-grid { margin: 0 -12px; } /* small gutter correction if needed */

.initiative-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
  border-radius: 10px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  color: #004155;
  min-height: 86px;
  margin: 8px;
  border: 1px solid rgba(0,65,85,0.06);
}

/* Logo circle; to use a real logo replace with <img class="init-logo-img"> inside the card */
.init-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: .6px;
  background: linear-gradient(135deg, #f6d04b 0%, #009594 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

/* If you provide image logos, style them like this:
.init-logo-img { width:64px; height:64px; object-fit:contain; border-radius:50%; display:block; }
Then replace <div class="init-logo">... with <img class="init-logo-img" src="URL" alt="..."> 
*/

/* Title */
.init-title {
  font-weight: 700;
  color: #004155;
  font-size: 0.95rem;
  line-height: 1.15;
  text-transform: uppercase;
}

/* Hover / focus */
.initiative-card:hover,
.initiative-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  background: linear-gradient(180deg, rgba(246,208,75,0.03), rgba(0,149,148,0.02));
}

/* Ensure keyboard visibility */
.initiative-card:focus { outline: none; box-shadow: 0 0 0 4px rgba(0,149,148,0.12), 0 18px 40px rgba(0,0,0,0.12); }

/* Responsive spacing */
@media (max-width: 991px) {
  .initiative-card { padding: 14px; gap: 10px; }
  .init-logo { width:56px; height:56px; min-width:56px; font-size:0.85rem; }
  .init-title { font-size: 0.92rem; }
}
@media (max-width: 480px) {
  .initiative-card { padding: 12px; gap: 10px; }
  .init-logo { width:50px; height:50px; min-width:50px; font-size:0.82rem; }
}

/* === Resources block styles === */
.resources-section {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(246,208,75,0.02), rgba(0,149,148,0.01));
}
.resources-container .resource-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(3,25,30,0.06);
  border-left: 6px solid transparent;
  border-image: linear-gradient(180deg, #f6d04b 0%, #009594 100%) 1;
  margin-bottom: 18px;
}
.resource-head { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.resource-icon {
  width:56px;
  height:56px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#f6d04b 0%, #009594 100%);
  color:#00313a;
  font-size:20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.resource-list { list-style:none; margin:0; padding:0; }
.resource-list li { margin-bottom:12px; }
.resource-list a {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#004155;
  text-decoration:none;
  font-weight:600;
}
.resource-list a .fa { color:#009594; width:18px; text-align:center; }
.resource-list a:hover { color:#006b7d; text-decoration:underline; }
.muted { color: rgba(0,0,0,0.6); font-size:0.95rem; margin:0; }
.doc-year { font-weight:700; color:#006b7d; margin-left:6px; font-size:0.95rem; }

/* responsive tweaks */
@media (max-width: 767px) {
  .resource-icon { width:46px; height:46px; font-size:16px; }
  .resources-container { padding-left:6px; padding-right:6px; }
}