/* =====================================================
   AFRIQUE CRYPTO ACADEMY - STYLE PRINCIPAL SIMPLIFIÉ
===================================================== */

:root {
  --primary: #1199FA;
  --primary-hover: #0D7FD9;
  --secondary: #0ECB81;
  --danger: #FF4757;
  --bg: #0B0E11;
  --bg2: #12161F;
  --text: #FFFFFF;
  --text2: #A8B0BC;
  --border: rgba(255,255,255,0.08);
  --success: #0ECB81;
}

/* Mode sombre (par défaut sur le site) */
body.dark-theme,
body:not(.light-theme) {
  --bg: #0B0E17;
  --bg2: #111827;
  --text: #FFFFFF;
  --text2: #9CA3AF;
  --border: rgba(255,255,255,0.08);
}

/* Mode clair */
body.light-theme {
  --bg: #FFFFFF;
  --bg2: #F5F7FA;
  --text: #1A202C;
  --text2: #718096;
  --border: #E2E8F0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease-out 2s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* HEADER */
.header {
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 17, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.dark-mode .header {
  background: rgba(11, 14, 17, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 64px;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0D7FD9);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(240,185,11,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(17,153,250,0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(240,185,11,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(17,153,250,0.3);
}

.btn-lg {
  padding: 16px 35px;
  font-size: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text2);
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: var(--primary);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #25D366;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--bg);
  background-image:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="grad" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:rgba(17,153,250,0.03);stop-opacity:1" /><stop offset="100%25" style="stop-color:rgba(14,203,129,0.03);stop-opacity:1" /></linearGradient></defs><rect fill="url(%23grad)" width="1200" height="400"/></svg>');
  background-attachment: fixed;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 0%, rgba(17,153,250,0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(16,185,129,0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(17,153,250,0.1);
  border: 1px solid rgba(17,153,250,0.3);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  width: fit-content;
  font-size: 14px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  padding: 20px;
  background: var(--bg2);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text2);
}

/* HERO RIGHT */
.hero-right {
  position: relative;
  height: 500px;
}

.hero-card {
  background: var(--bg2);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(17,153,250,0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.card-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(17,153,250,0.05), rgba(16,185,129,0.05));
}

.card-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.crypto-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crypto-item {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.crypto-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(17,153,250,0.15);
  transform: translateY(-2px);
}

.crypto-icon {
  font-size: 1.8rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,153,250,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.crypto-info h4 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  color: var(--text);
  font-weight: 600;
}

.crypto-info p {
  font-size: 0.8rem;
  color: var(--text2);
  margin: 0;
}

.crypto-price {
  text-align: right;
}

.crypto-price p {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.price-change {
  font-size: 0.8rem;
  margin-top: 4px;
}

.price-change.up {
  color: var(--secondary);
}

.price-change.down {
  color: var(--danger);
}

.floating-card {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* TRUSTED BY */
.trusted-by {
  padding: 60px 0;
  text-align: center;
}

.trusted-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  padding: 30px;
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.3s;
}

.logo-item:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* STATS SECTION */
.stats-counter-section {
  padding: 80px 0;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.counter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
}

.counter-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.counter-badge {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.counter-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(17,153,250,0.12);
}

.counter-badge i {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 40px;
  text-align: center;
}

.badge-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.badge-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--text2);
}

.crypto-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
}

.widget-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.widget-tab {
  flex: 1;
  padding: 10px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text2);
}

.widget-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.crypto-live-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 200px;
}

.widget-news {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.widget-news h4 {
  margin: 0;
  font-size: 0.95rem;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.9rem;
}

.news-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* FOOTER */
.footer {
  background: var(--bg2);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 40px;
  height: auto;
}

.footer-description {
  color: var(--text2);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-right {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr;
  }

  .trusted-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   TRADERS SECTION
===================================================== */

.traders-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: rgba(17,153,250,0.1);
  border: 1px solid rgba(17,153,250,0.25);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto;
}

.traders-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.traders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.traders-table thead {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
}

.traders-table th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.traders-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.95rem;
}

.traders-table tbody tr {
  transition: all 0.2s ease;
}

.traders-table tbody tr:hover {
  background: rgba(17,153,250,0.05);
  box-shadow: inset 0 0 10px rgba(17,153,250,0.04);
}

.trader-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trader-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: cover;
}

.trader-roi {
  font-weight: 700;
  color: var(--secondary);
}

.trader-roi.negative {
  color: var(--danger);
}

.trader-tab {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.trader-tab.active {
  background: linear-gradient(135deg, var(--primary), #0D7FD9);
  color: white;
}

/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonials-section {
  padding: 80px 0;
}

.testimonial-card {
  background: var(--bg);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-card:hover {
  box-shadow: 0 12px 35px rgba(17,153,250,0.12);
  transform: translateY(-8px);
  border-color: var(--primary);
}

.testimonial-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.testimonial-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.testimonial-stars i {
  color: #f59e0b;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text2);
}

.testimonial-gain {
  background: rgba(16,185,129,0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 3px solid var(--secondary);
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
}

.testimonial-title {
  font-size: 0.85rem;
  color: var(--text2);
}

/* =====================================================
   COUNTRIES SECTION
===================================================== */

.countries-section {
  padding: 80px 0;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.country-card {
  background: var(--bg);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.country-card:hover {
  box-shadow: 0 10px 30px rgba(17,153,250,0.15);
  transform: translateY(-6px);
  border-left-color: var(--secondary);
  border-color: var(--primary);
}

.country-flag {
  font-size: 2.5rem;
}

.country-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.country-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-method {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =====================================================
   PARTNERS SECTION
===================================================== */

.partners-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(17, 153, 250, 0.02) 0%, rgba(14, 203, 129, 0.02) 100%);
  border-top: 1px solid rgba(17, 153, 250, 0.08);
  border-bottom: 1px solid rgba(17, 153, 250, 0.08);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  padding: 40px 0;
}

@media (max-width: 1400px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .partner-item {
    height: 150px;
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .partner-item {
    height: 140px;
    padding: 16px;
    font-size: 0.8rem;
  }

  .partner-logo-img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .partners-section {
    padding: 50px 0;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .partner-item {
    height: 120px;
    padding: 14px;
    font-size: 0.75rem;
    gap: 10px;
  }

  .partner-logo-img {
    width: 60px;
    height: 60px;
  }
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 160px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  text-decoration: none;
  color: var(--text2);
  font-weight: 600;
  text-align: center;
  gap: 12px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(17, 153, 250, 0.06);
  position: relative;
  overflow: hidden;
}

.partner-item:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(17, 153, 250, 0.2), 0 0 30px rgba(17, 153, 250, 0.1);
  transform: translateY(-8px) scale(1.02);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(17, 153, 250, 0.06) 0%, rgba(0, 212, 170, 0.03) 100%);
}

.partner-item:hover .partner-logo {
  transform: scale(1.1);
}

.partner-item:hover .partner-logo-img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.partner-logo {
  font-size: 2.2rem;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Partner Logo Images */
.partner-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.9);
}

/* =====================================================
   FORMATIONS SECTION
===================================================== */

.formations-section {
  padding: 80px 0;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.formation-card {
  background: var(--bg);
  padding: 35px;
  border-radius: 18px;
  border: 2px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.formation-card:hover {
  box-shadow: 0 20px 45px rgba(17,153,250,0.15);
  transform: translateY(-10px);
  border-color: var(--primary);
}

.formation-card.featured {
  background: linear-gradient(135deg, rgba(17,153,250,0.06), rgba(16,185,129,0.06));
  border-color: var(--primary);
}

.formation-card.featured:hover {
  box-shadow: 0 25px 50px rgba(17,153,250,0.2);
}

.card-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  width: fit-content;
}

.card-features {
  flex: 1;
  margin-bottom: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text2);
  font-size: 0.9rem;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
}

.currency-btn {
  transition: all 0.3s;
}

.currency-btn.active {
  background: var(--primary) !important;
  color: #000 !important;
  border: none !important;
}

/* =====================================================
   BLOG SECTION
===================================================== */



.blog-section {
  padding: 80px 0;
  background: var(--bg2);
}

/* Blog grid géré par JS blog.js */
.blog-grid {
  display: block;
}

.blog-card {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-card:hover {
  box-shadow: 0 15px 40px rgba(17,153,250,0.12);
  transform: translateY(-8px);
  border-color: var(--primary);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(17,153,250,0.15), rgba(16,185,129,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 22px;
}

.blog-tag {
  display: inline-block;
  background: rgba(17,153,250,0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 15px;
  line-height: 1.5;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text2);
}

.trending-badge {
  background: #FF6B6B;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   CTA SECTION
===================================================== */

.cta-section {
  padding: 80px 0;
}

.cta-content {
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   ENHANCED GLOBAL STYLES - Couleurs & Animations
   ===================================================== */

/* Boutons améliorés avec effets */
.btn-primary {
    background: linear-gradient(135deg, #1199FA 0%, #0D7FD9 100%);
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(17, 153, 250, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 153, 250, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--primary);
    color: #1E1E1E;
}

/* Cartes avec effets de survol améliorés */
.formation-card,
.course-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.formation-card:hover,
.course-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Titres de section colorés */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Tags de section colorés */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(17, 153, 250, 0.12), rgba(14, 203, 129, 0.08));
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(17, 153, 250, 0.2);
}

/* Animation de fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #1199FA, #0ECB81);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(17, 153, 250, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(17, 153, 250, 0);
    }
}

/* Amélioration du footer */
.footer {
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    color: white;
    padding-top: 60px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* =====================================================
   SECTION PAYS PARTENAIRES
===================================================== */
.countries-section .country-card:hover {
    background: rgba(17, 153, 250, 0.08) !important;
    border-color: rgba(17, 153, 250, 0.3) !important;
    transform: translateY(-5px);
}

.countries-section .country-card img {
    transition: transform 0.3s ease;
}

.countries-section .country-card:hover img {
    transform: scale(1.1);
}

/* =====================================================
