/* ============================================
   WG Academy Pages CSS — V13 Unique
   FAQ Accordion + CTA Buttons + Pricing + Visual
   ============================================ */

/* === HERO === */
.wg-academy-hero {
  background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.wg-academy-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.wg-academy-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 16px 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.wg-academy-hero .hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}
.wg-academy-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.wg-academy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.wg-academy-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.wg-academy-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.wg-academy-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}
.wg-academy-stat .lbl {
  font-size: .7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* === HERO VISUAL CARD === */
.wg-academy-visual {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.wg-academy-visual-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.wg-academy-visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.wg-academy-visual-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.wg-academy-visual-header span {
  color: rgba(255,255,255,0.5);
  font-size: .8rem;
}
.wg-academy-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wg-academy-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  font-size: .88rem;
  transition: all .2s ease;
}
.wg-academy-check-item:hover {
  background: rgba(var(--accent-rgb,255,255,255), 0.06);
  border-color: rgba(var(--accent-rgb,255,255,255), 0.15);
}
.wg-academy-check-item .pill {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
}

/* === CTA BUTTONS (HERO + FINAL) === */
.wg-hero-cta, .wg-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.wg-cta-primary {
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.wg-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}
.wg-cta-outline {
  background: transparent;
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .3s ease;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
}
.wg-cta-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* === SECTIONS === */
.wg-section { position: relative; }
.wg-section-dark { background: #0a0a0f; }
.wg-section-light { background: #f8f9fa; }
.wg-main .wg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wg-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(255,59,59,0.1);
  color: #ff3b3b;
  border: 1px solid rgba(255,59,59,0.2);
}
.wg-title-lg {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.wg-section-light .wg-title-lg { color: #0a0a0f; }
.wg-section-light .wg-tag {
  background: rgba(255,59,59,0.1);
  color: #ff3b3b;
  border: 1px solid rgba(255,59,59,0.2);
}

/* === FEATURE CARDS === */
.wg-feature-card {
  transition: all .3s ease;
}
.wg-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* === PRICING === */
.wg-pricing-card {
  padding: 30px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  text-align: center;
  transition: all .3s ease;
}
.wg-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.wg-pricing-card h3 {
  color: #0a0a0f;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.wg-price {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin: 16px 0 4px;
}
.wg-price-sub {
  color: #6c757d;
  font-size: .85rem;
  margin-bottom: 20px;
}
.wg-pricing-card ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.wg-pricing-card ul li {
  padding: 10px 0;
  color: #4a4a4a;
  font-size: .9rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wg-pricing-card ul li:last-child { border-bottom: none; }
.wg-pricing-featured {
  position: relative;
  overflow: hidden;
  border: none;
}
.wg-pricing-featured:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.wg-pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* === FAQ ACCORDION === */
.wg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wg-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s ease;
}
.wg-faq-item:hover {
  border-color: rgba(255,255,255,0.15);
}
.wg-faq-toggle {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.wg-faq-toggle h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.wg-faq-toggle i {
  font-size: .8rem;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.wg-faq-item.active .wg-faq-toggle i {
  transform: rotate(180deg);
}
.wg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.wg-faq-item.active .wg-faq-answer {
  max-height: 400px;
}
.wg-faq-answer-inner {
  padding: 0 24px 22px;
  color: rgba(255,255,255,0.7);
  font-size: .95rem;
  line-height: 1.7;
}

/* === CTA BANNER === */
.wg-cta-banner {
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.15) 0%, rgba(var(--accent-rgb),0.05) 100%);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
}
.wg-cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.wg-cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.wg-cta-banner .wg-cta-buttons {
  justify-content: center;
}

/* === LIGHT SECTION OVERRIDES === */
.wg-section-light .wg-faq-item {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
}
.wg-section-light .wg-faq-toggle h3 { color: #0a0a0f; }
.wg-section-light .wg-faq-toggle i { color: #6c757d; }
.wg-section-light .wg-faq-answer-inner { color: #4a4a4a; }
.wg-section-light .wg-cta-outline {
  color: #0a0a0f !important;
  border-color: rgba(0,0,0,0.2);
}
.wg-section-light .wg-cta-outline:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
}

/* === TIMELINE (unique section) === */
.wg-timeline-item {
  position: relative;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .wg-academy-hero-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .wg-service-hero-grid { grid-template-columns: 1fr !important; text-align: center; }
}
@media (max-width: 768px) {
  /* --- Hero --- */
  .wg-academy-hero { padding: 120px 0 60px; }
  .wg-academy-hero h1 { font-size: 1.8rem; }
  .wg-academy-hero-grid { grid-template-columns: 1fr !important; gap: 30px; }
  .wg-academy-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin-top: 24px; }
  .wg-academy-stat { align-items: center; text-align: center; padding: 12px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
  .wg-academy-stat .num { font-size: 1.3rem; }
  .wg-academy-stat .lbl { font-size: .65rem; }

  /* --- Grilles inline : forcer 1 colonne sur mobile (dark + light) --- */
  .wg-section-dark [style*="grid-template-columns:repeat(2"],
  .wg-section-light [style*="grid-template-columns:repeat(2"],
  .wg-section-dark [style*="grid-template-columns:repeat(3"],
  .wg-section-light [style*="grid-template-columns:repeat(3"],
  .wg-pricing-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- CTA Banner --- */
  .wg-cta-banner { padding: 30px 20px; }
  .wg-cta-banner h2 { font-size: 1.4rem; }
  .wg-cta-banner p { font-size: .95rem; }

  /* --- CTA Buttons : full-width empilés --- */
  .wg-cta-primary, .wg-cta-outline { padding: 14px 24px; font-size: .85rem; width: 100%; justify-content: center; box-sizing: border-box; }
  .wg-hero-cta, .wg-cta-buttons { flex-direction: column; align-items: stretch; }
  .wg-service-hero-cta { flex-direction: column; align-items: stretch !important; justify-content: center !important; }
  .wg-service-hero-cta .wg-cta-primary,
  .wg-service-hero-cta .wg-cta-outline { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }

  /* --- CTA final inline flex → colonne --- */
  .wg-cta-banner > div[style*="display:flex"],
  .wg-cta-banner [style*="display:flex"][style*="gap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* --- Titres --- */
  .wg-title-lg { font-size: 1.5rem; }

  /* --- Pricing cards : meilleur espacement --- */
  .wg-pricing-card,
  .wg-section-dark [style*="grid-template-columns:repeat(3"] > div {
    margin-bottom: 0;
  }

  /* --- Formation items : texte lisible --- */
  .wg-section-dark [style*="grid-template-columns:repeat(2"] > a {
    padding: 16px !important;
  }

  /* --- Visual card --- */
  .wg-academy-visual { padding: 20px; }
  .wg-academy-check-item { font-size: .82rem; padding: 8px 12px; }
  .wg-academy-check-item .pill { font-size: .6rem; padding: 2px 8px; }
}

@media (max-width: 480px) {
  .wg-academy-hero h1 { font-size: 1.4rem; }
  .wg-academy-hero .hero-sub { font-size: .92rem; }
  .wg-academy-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
  .wg-academy-stat .num { font-size: 1.1rem; }
  .wg-academy-stat { padding: 10px 6px; }
  .wg-academy-stat .lbl { font-size: .6rem; }
  .wg-cta-primary, .wg-cta-outline { padding: 12px 20px; font-size: .82rem; }
  .wg-title-lg { font-size: 1.3rem; }
  .wg-cta-banner { padding: 24px 16px; }
  .wg-cta-banner h2 { font-size: 1.2rem; }
  .wg-faq-toggle { padding: 18px 16px; }
  .wg-faq-toggle h3 { font-size: .9rem; }
  .wg-faq-answer-inner { padding: 0 16px 18px; font-size: .88rem; }

  /* --- Labs cards padding --- */
  .wg-section-dark [style*="grid-template-columns:repeat(2"] > div {
    padding: 20px !important;
  }
  .wg-section-dark [style*="grid-template-columns:repeat(2"] > div p {
    font-size: .85rem !important;
  }
}

/* === RTL SUPPORT === */
[dir="rtl"] .wg-faq-toggle { text-align: right; }
[dir="rtl"] .wg-academy-check-item .pill { margin-left: 0; margin-right: auto; }
[dir="rtl"] .wg-pricing-badge { right: auto; left: 12px; }
[dir="rtl"] .wg-pricing-card ul { text-align: right; }
