/* ex-inline subjects/mahrasoft-free.html — externalisé pour la mise en cache */
/* ============================================================================
   VARIABLES
   ============================================================================ */
:root {
  --primary-color: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #5ba3e0;
  --text-dark: #1c1d1f;
  --text-medium: #6a6f73;
  --text-light: #9fa5ad;
  --border-color: #d1d7dc;
  --bg-gray: #f7f9fa;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.subjects-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-stats .stat-item i {
  font-size: 2rem;
}

.hero-stats .stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.hero-stats .stat-item span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============================================================================
   FEATURES BANNER
   ============================================================================ */
.features-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
}

.feature-item i {
  font-size: 1.2rem;
}

/* ============================================================================
   CATEGORY CARDS
   ============================================================================ */
.category-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.category-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.category-desc {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.course-count {
  display: inline-flex;
  align-items: center;
  background: var(--bg-gray);
  color: var(--primary-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================================
   COMING SOON SECTION
   ============================================================================ */
.coming-soon-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.coming-soon-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 4rem;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.coming-soon-text {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Expectation Items */
.expectation-item {
  text-align: center;
  padding: 1.5rem;
}

.expectation-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.75rem;
}

.expectation-item h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.expectation-item p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin: 0;
}

/* Timeline */
.preparation-timeline {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.timeline-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}

.timeline-step.completed .step-icon {
  background: #10b981;
  color: white;
}

.timeline-step.in-progress .step-icon {
  background: #f59e0b;
  color: white;
  animation: pulse 2s infinite;
}

.timeline-step.upcoming .step-icon {
  background: var(--bg-gray);
  color: var(--text-light);
}

.step-content h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin: 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

/* Notification Box */
.notification-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.notification-icon {
  font-size: 3rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-content h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.notification-content p {
  color: var(--text-medium);
  margin-bottom: 0;
}

.notify-form .input-group {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 50px;
  overflow: hidden;
}

.notify-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
}

.notify-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 1rem 2rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================================
   STATS CARDS
   ============================================================================ */
.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* ============================================================================
   WHY FREE SECTION
   ============================================================================ */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reason-item {
  display: flex;
  gap: 1rem;
}

.reason-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.reason-content h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.reason-content p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

/* Impact Card */
.impact-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.impact-card h4 {
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.impact-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.impact-item p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 991px) {
  .hero-stats {
    gap: 1.5rem;
  }
  
  .notification-box {
    flex-direction: column;
    text-align: center;
  }
  
  .notification-content {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 40px 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .coming-soon-card {
    padding: 2rem 1.5rem;
  }
  
  .coming-soon-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  
  .coming-soon-title {
    font-size: 1.75rem;
  }
  
  .preparation-timeline {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .notify-form .input-group {
    flex-direction: column;
    border-radius: 12px;
  }
  
  .notify-form .form-control,
  .notify-form .btn {
    border-radius: 12px;
  }
  
  .notify-form .btn {
    margin-top: 0.75rem;
  }
  
  .impact-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}
