@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: hsl(142, 71%, 45%); /* Vert Émeraude */
  --primary-dark: hsl(142, 71%, 35%);
  --secondary: hsl(207, 56%, 50%); /* Bleu Océan */
  --secondary-dark: hsl(207, 56%, 40%);
  --accent: hsl(35, 90%, 55%); /* Orange/Or Africain */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: rgba(0, 0, 0, 0.1);
}

/* Variables du Mode Sombre */
body.dark-mode {
  --primary: hsl(142, 60%, 45%); 
  --primary-dark: hsl(142, 60%, 35%);
  --secondary: hsl(207, 40%, 60%);
  --secondary-dark: hsl(207, 40%, 50%);
  --accent: hsl(35, 80%, 60%);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-light: #1e293b;
  --bg-white: #0f172a;
  --bg-dark: #020617;
  --border-color: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg-light { background-color: var(--bg-light); color: var(--text-main); }
.section-bg-white { background-color: var(--bg-white); color: var(--text-main); }
.section-bg-dark { background-color: var(--bg-dark); color: white; }
.section-bg-light p, .section-bg-light h2, .section-bg-light h3 { color: var(--text-main); }
.section-bg-white p, .section-bg-white h2, .section-bg-white h3 { color: var(--text-main); }

.text-center { text-align: center; }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  opacity: 0.95;
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 15px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-cta {
  display: none;
}

/* Dropdown Menu Styles */
.nav-links li.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  list-style: none;
  z-index: 1001;
  border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 12px 25px;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  text-align: left;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 30px;
}

/* Retrait de l'after sur les liens du dropdown */
.dropdown-menu li a::after {
  display: none;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  padding-top: 80px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  max-width: 650px;
  animation: fadeInUp 1s ease-out;
}

.hero-tagline {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.hero-content h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.about-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}

.about-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.about-card:hover .about-icon {
  background: var(--primary);
  color: white;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-card p {
  color: var(--text-muted);
}

.about-expansion {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary);
}

/* Services / Activities */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 260px;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

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

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

.service-content {
  padding: 30px;
}

.service-icon {
  background: var(--primary);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: var(--shadow-md);
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link i {
  transition: var(--transition);
}

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

/* Books / Publishing */
.books-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.book-item {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.book-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #eee;
  margin: 0 auto 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
}

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

.book-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* PLF Section */
.plf-section {
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../img/africa_pattern_bg.png');
  background-size: cover;
  background-position: center;
}

.plf-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.plf-text h2 {
  color: white;
}

.plf-text p {
  color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.stat-label {
  color: white;
  font-size: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.team-card[data-bio] {
  cursor: pointer;
}

.team-card[data-bio]::after {
  content: 'Voir Bio';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

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


.team-card[data-bio]:hover::after {
  opacity: 1;
}

.team-card[data-bio]:hover .team-img {
  filter: brightness(0.7);
}

/* Badge Formateur Certifié */
.certified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  margin-left: 6px;
  cursor: help;
  position: relative;
  vertical-align: middle;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 15px;
}

.testimonial-card {
  margin-bottom: 0 !important;
  height: 100%;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-btn {
  background: white;
  border: 1px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--secondary);
}

.carousel-btn:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}


.certified-badge::after {
  content: '';
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 10;
}

.certified-badge:hover::before,
.certified-badge:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Redondance supprimée */

.team-info {
  padding: 10px;
}

.team-info h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.team-info p {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 4rem;
  color: var(--bg-light);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
}

.author-info h4 {
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Section & Footer */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 197, 94, 0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* African Design Elements */
.african-bg {
  background-color: var(--bg-dark);
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../img/africa_pattern_bg.png');
  background-size: 300px;
  color: white;
}

.african-bg:not(.section-bg-white):not(.section-bg-light) h2, 
.african-bg:not(.section-bg-white):not(.section-bg-light) h3, 
.african-bg:not(.section-bg-white):not(.section-bg-light) p {
  color: white;
}

.african-border-bottom {
  border-bottom: 8px solid transparent;
  border-image: url('../img/africa_pattern_bg.png') 30 stretch;
}

.african-border-top {
  border-top: 8px solid transparent;
  border-image: url('../img/africa_pattern_bg.png') 30 stretch;
}

.section-accent {
  position: relative;
  overflow: hidden;
}

.section-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 10px, var(--secondary) 10px, var(--secondary) 20px);
}

.btn-african {
  border: 2px solid white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-african::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/africa_pattern_bg.png');
  background-size: 50px;
  opacity: 0.1;
  z-index: -1;
}

/* Foundation Specific Layouts */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.key-points {
  list-style: none;
  padding-left: 0;
}

.key-points li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.key-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Animations Tools */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 50px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
}

.modal-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  overflow: hidden;
}

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

.modal-bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  white-space: pre-line;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .about-grid, .plf-content, .contact-grid { grid-template-columns: 1fr; }
  .plf-content { text-align: center; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0 20px;
  }

  .logo img {
    height: 35px !important;
  }

  .nav-links {
    position: absolute;
    top: 100%; /* S'aligne sous la navbar */
    left: -100%;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transition: 0.4s;
    height: calc(100vh - 60px);
    overflow-y: auto;
    gap: 0;
  }
  
  .nav-links li {
      width: 100%;
      text-align: center;
      border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child {
      border-bottom: none;
  }

  .nav-links li a {
      display: block;
      padding: 15px;
      width: 100%;
      font-size: 1.1rem;
  }

  .nav-links.active { left: 0; }
  
  .nav-links li.dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-links li.dropdown .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: none;
    padding: 10px 0 10px 20px;
    width: 100%;
    background: transparent;
  }

  .nav-links li.dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-cta {
    display: block !important;
    width: 100%;
    padding: 20px;
    border-top: 1px solid var(--border-color);
  }

  .nav-actions #navCta {
    display: none !important;
  }
  
  .mobile-toggle { display: block; }
  
  .hero-content h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 25px; }
}

/* Partners Continuous Slider */
.partners-slider {
    padding: 20px 0;
    overflow: hidden;
    background: var(--bg-white);
    position: relative;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.partners-slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.partners-track.inverse {
    display: flex;
    width: max-content;
    animation: scroll-inverse 40s linear infinite;
}

    

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 40px;
    margin: 0 20px;
    background: var(--bg-light);
    border: 1px dashed #e2e8f0;
    border-radius: var(--radius-sm);
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2320px); } /* 8 partenaires * 290px */
}

@keyframes scroll-inverse {
    0% { transform: translateX(-2320px); }
    100% { transform: translateX(0); }
}

@media (max-width: 768px) {
    .partners-track, .partners-track.inverse {
        width: max-content;
    }
    .partner-logo {
        width: 150px;
        margin: 0 10px;
        padding: 0 20px;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1360px); } /* 8 * (150 + 10 + 10) = 1360px */
    }
    @keyframes scroll-inverse {
        0% { transform: translateX(-1360px); }
        100% { transform: translateX(0); }
    }
}

.contact-flag {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* African Pattern Background Utility */
.african-bg {
    position: relative;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../img/africa_pattern_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white !important;
}

.african-bg .section-title,
.african-bg h1, 
.african-bg h2, 
.african-bg h3 {
    color: white !important;
}

.african-bg .section-subtitle, 
.african-bg p, 
.african-bg li {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Fix for cards inside dark/patterned sections to maintain contrast */
.about-card h3, 
.service-card h3, 
.team-card h4, 
.testimonial-card p {
    color: var(--text-main) !important;
}

/* Utility: Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Utility: Image Anonymization Blur */
.blur-anon {
    filter: blur(5px);
    transition: filter 0.3s ease;
    user-select: none;
    pointer-events: none; /* Empêcher le clic pour plus de sécurité si besoin */
}

/* Optionnel : révèle légèrement au survol si l'utilisateur le souhaite, sinon désactiver */
.blur-anon:hover {
    filter: blur(10px);
}

.about-card p, 
.service-card p, 
.about-expansion p,
.team-info p {
    color: var(--text-muted) !important;
}

/* Videos / Iframes Wrapper Classes */
.video-gallery {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-item {
    width: 100%;
}

.video-title {
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 par défaut */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: #000; /* Fond noir pour les bandes vidéo */
}

/* Rend l'iframe ou la balise <video> responsive dans le wrapper */
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Stats Card System - Dark Mode Compatible */
.stat-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.border-primary-top {
    border-top: 5px solid var(--primary);
}

.border-secondary-top {
    border-top: 5px solid var(--secondary);
}

.stat-card .stat-number {
    color: var(--text-main);
    font-size: 3.5rem;
    line-height: 1;
    font-family: var(--font-heading) !important;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 10px;
}
