:root {
  --lovable-body: "Tajawal", sans-serif;
  --lovable-heading: "Cairo", sans-serif;
  --lovable-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lovable-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

body { font-family: var(--lovable-body); }

/* Header Lovable = h-16 */
.site-header { min-height: 64px; }

.header-inner {
  height: 64px;
  min-height: 64px;
  gap: 16px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-copy strong {
  font-family: var(--lovable-sans);
  font-size: 18px;
  line-height: 28px;
}

.brand-copy small,
.main-nav a,
.language-switcher a {
  font-family: var(--lovable-sans);
  font-size: 14px;
  line-height: 20px;
}

/* Hero Lovable = 50vh mobile / 70vh desktop */
.hero-slider {
  height: 70vh;
  min-height: 0;
  max-height: none;
}

.hero-copy {
  max-width: 576px;
}

.hero-copy h1 {
  font-family: var(--lovable-sans);
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-copy p {
  font-family: var(--lovable-heading);
  font-size: 30px;
  line-height: 36px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots { bottom: 16px; }

/* Statistiques */
.stats-section { padding-block: 56px; }
.stats-grid { gap: 24px; }

.stat-card strong {
  font-family: var(--lovable-heading);
  font-size: 30px;
  line-height: 36px;
}

.stat-card span {
  font-family: var(--lovable-serif);
  font-size: 18px;
  line-height: 28px;
}

/* Niveaux : correspond aux classes
   font-serif text-2xl md:text-3xl / max-w-lg / max-w-5xl */
.levels-section {
  padding-block: 80px;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-family: var(--lovable-serif);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}

.section-heading p {
  max-width: 512px;
  margin-inline: auto;
  font-family: var(--lovable-sans);
  font-size: 20px;
  line-height: 28px;
}

.level-columns {
  max-width: 1024px;
}

.level-cap h3 {
  font-family: var(--lovable-sans);
  font-size: 16px;
  line-height: 24px;
}

.level-cap small,
.level-shaft p,
.age-pill,
.level-shaft small {
  font-family: var(--lovable-sans);
}

/* Portail éducatif */
.portal-section {
  padding-block: 80px;
}

.portal-heading h2 {
  font-family: var(--lovable-sans);
  font-size: 36px;
  line-height: 40px;
}

.portal-heading p {
  max-width: 672px;
  font-family: var(--lovable-sans);
  font-size: 16px;
  line-height: 26px;
}

.feature-grid { gap: 24px; }

.feature-card {
  min-height: 0;
  padding: 24px;
  border-radius: 16px;
}

.feature-card h3,
.feature-card p {
  font-family: var(--lovable-sans);
}

/* À propos */
.about-section {
  padding-block: 80px;
}

.about-inner {
  max-width: 768px;
}

.about-inner h2 {
  font-family: var(--lovable-sans);
  font-size: 30px;
  line-height: 36px;
}

.about-inner p {
  font-family: var(--lovable-sans);
  font-size: 16px;
  line-height: 32px;
}

/* Contact + footer */
.contact-section {
  padding-block: 64px;
}

.contact-grid strong,
.contact-grid span,
.site-footer {
  font-family: var(--lovable-sans);
}

.site-footer {
  padding-block: 24px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .hero-slider {
    height: 50vh;
  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-copy p {
    font-size: 18px;
    line-height: 28px;
  }

  .section-heading h2,
  .portal-heading h2,
  .about-inner h2 {
    font-size: 24px;
    line-height: 32px;
  }
}
