/* ==========================================================================
   Design System & Modern Stylesheet - Najah AI Maroc (49 DH / 249 DH)
   ========================================================================== */

:root {
  /* Palette de couleurs marocaines & académiques modernes */
  --primary: #10B981;          /* Vert WhatsApp / Émeraude vif */
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --secondary: #6366F1;        /* Indigo moderne */
  --secondary-glow: rgba(99, 102, 241, 0.2);

  --accent-gold: #F59E0B;       /* Or excellence */
  
  --bg-dark: #0B0F19;          /* Bleu nuit profond */
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-primary: rgba(16, 185, 129, 0.35);

  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-fr: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.lang-fr {
  font-family: var(--font-fr);
  direction: ltr;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Glow Effects */
.bg-shape {
  position: absolute;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.bg-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  top: -100px;
  right: -100px;
}
.bg-shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
  top: 400px;
  left: -200px;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.35rem;
}

.badge-mini {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-primary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #10B981, #6EE7B7, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  padding: 1.1rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
  max-width: 480px;
}

.btn-cta-large:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.55);
}

.wa-icon-large {
  font-size: 2.2rem;
}

.cta-main-text {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

.cta-sub-text {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-guarantee {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive WhatsApp Mockup
   ========================================================================== */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  background: #111827;
  border: 8px solid #1F2937;
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-topbar {
  background: #1F2937;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.camera-lens {
  width: 8px;
  height: 8px;
  background: #0B0F19;
  border-radius: 50%;
}

.speaker-slot {
  width: 40px;
  height: 4px;
  background: #374151;
  border-radius: 2px;
}

.chat-header {
  background: #1E293B;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.verified-check {
  color: var(--primary);
  font-weight: 900;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--primary);
}

.chat-body {
  background: #0D1520;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 390px;
  font-size: 0.85rem;
}

.msg {
  display: flex;
  max-width: 88%;
}

.msg-incoming {
  align-self: flex-start;
}

.msg-outgoing {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  line-height: 1.45;
  position: relative;
}

.msg-incoming .msg-bubble {
  background: #1E293B;
  color: #F1F5F9;
  border-bottom-right-radius: 2px;
}

.msg-outgoing .msg-bubble {
  background: #065F46;
  color: #ECFDF5;
  border-bottom-left-radius: 2px;
}

.msg-time {
  display: block;
  font-size: 0.65rem;
  color: #94A3B8;
  text-align: left;
  margin-top: 0.3rem;
}

.img-preview-mock {
  margin-top: 0.4rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.ai-generated-diagram {
  margin-top: 0.5rem;
  background: #0B0F19;
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid var(--border-primary);
}

.diagram-tag {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.diagram-art {
  font-family: monospace;
  direction: ltr;
  text-align: center;
  color: #34D399;
  font-size: 0.8rem;
}

/* Video Bubble Mockup (Pass *6) */
.video-bubble {
  width: 100%;
  background: #1E293B !important;
  padding: 0.5rem !important;
}

.video-preview-mock {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-thumbnail {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-play-btn {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.video-badge-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #34D399;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.video-size {
  font-size: 0.7rem;
  color: #94A3B8;
}



.chat-footer-mock {
  background: #1E293B;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-mock {
  flex: 1;
  background: #0B0F19;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: #6B7280;
}

.chat-send-btn {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   Sections Générales (Titres, Grilles)
   ========================================================================== */
section {
  padding: 5rem 0;
}

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--secondary);
  border: 1px solid var(--secondary-glow);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

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

/* ==========================================================================
   Levels Section
   ========================================================================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.level-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.level-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
  position: relative;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #D1D5DB;
}

.card-badge.pioneer {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.card-badge.highlight {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

.card-badge.concours {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  font-size: 0.85rem;
  color: #D1D5DB;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   Pricing Section (49 DH & 249 DH)
   ========================================================================== */
.pricing-section {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.5) 100%);
}

.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  margin-top: 1.8rem;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-toggle {
  width: 50px;
  height: 26px;
  background: var(--primary);
  border-radius: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.pricing-toggle.monthly {
  background: #4B5563;
}

.pricing-toggle.monthly .toggle-slider {
  transform: translateX(24px);
}

.discount-pill {
  background: #EF4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.pricing-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-primary);
}

.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(17, 24, 39, 0.9) 100%);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 1.2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.plan-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.amount {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.equiv-monthly {
  font-size: 0.85rem;
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #E5E7EB;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.btn-price-card {
  display: block;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  transition: var(--transition);
}

.btn-price-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-price-card.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-price-card.primary:hover {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.payment-methods-box {
  margin-top: 3.5rem;
  text-align: center;
}

.payment-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #D1D5DB;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

body.lang-fr .faq-question {
  text-align: left;
}

.faq-chevron {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-light);
  background: #070A10;
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  color: #6B7280;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  width: 100%;
}

/* ==========================================================================
   Responsive Mobile
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-subtitle {
    margin: 0 auto 2rem;
  }
  .hero-cta-group {
    align-items: center;
  }
  .hero-guarantee {
    justify-content: center;
  }
  .nav-links {
    display: none; /* Mobile menu simplifié */
  }
  .hero-title {
    font-size: 2.2rem;
  }
}
