/* ============================================================
   خطواتي — Simy Education Platform Stylesheet
   RTL Arabic · Cairo font · Old-browser friendly
   ============================================================ */

/* ========== CSS VARIABLES ========== */
:root {
  --font-family: 'Cairo', Tahoma, Arial, sans-serif;
  --purple: #6c3ce1;
  --purple-dark: #5a2fc7;
  --purple-light: #ede9fe;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --pink: #ec4899;
  --pink-light: #fce7f3;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --text: #1f2937;
  --text-dark: #1e1b2e;
  --text-muted: #6b7280;
  --text-subtitle: #374151;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --purple-lighter: #f7f4ff;
  --container-max: 1200px;
  --header-height: 72px;
  --footer-height: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: var(--font-family);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--purple-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.4;
}

.section-title span {
  color: var(--purple);
}

.highlight {
  color: var(--purple);
  display: block;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--purple);
  border-color: var(--purple-light);
}

.btn-outline:hover {
  background: var(--purple-light);
  color: var(--purple-dark);
  border-color: var(--purple);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.95rem;
}

/* ========== MARKETING HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding: 10px 0;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--purple);
  background: var(--purple-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 99;
  background: var(--white);
  padding: 24px 20px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--gray-100);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.mobile-nav__link:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

/* ========== HERO (full-bleed banner.jpg like projet/index.html) ========== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: visible;
  background-color: var(--gray-50);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("/assets/banner.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.55) 40%,
    rgba(255, 255, 255, 0.9) 65%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  position: relative;
  max-width: 580px;
  margin-right: auto;
  padding: 80px 0 120px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.35;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--text-subtitle);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-subtitle);
  font-weight: 600;
}

.hero__trust svg {
  flex-shrink: 0;
}

/* ========== FEATURE CARDS (overlap the banner) ========== */
.features-cards {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding: 0 0 80px;
  background: transparent;
}

.features-cards__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-card {
  flex: 1 1 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card__icon--green {
  background: #ecfdf5;
  color: #10b981;
}

.feature-card__icon--pink {
  background: #fdf2f8;
  color: #ec4899;
}

.feature-card__icon--orange {
  background: #fff7ed;
  color: #f97316;
}

.feature-card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-subtitle);
  line-height: 1.6;
  margin: 0;
}

/* ========== SECTION SPLIT ========== */
.section-split {
  padding: 80px 0;
}

.section-split__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
}

.section-split__image {
  flex: 1 1 360px;
}

.section-split__image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.section-split__content {
  flex: 1 1 360px;
}

.section-split__content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-split__content p {
  font-size: 1.05rem;
  color: var(--text-subtitle);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ========== CHECKLIST ========== */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.checklist__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== EDUCATIONAL CONTENT ========== */
.educational-content {
  padding: 80px 0;
  background: var(--gray-50);
}

.educational-content__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.age-card {
  flex: 1 1 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.age-card:hover {
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.age-card__image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-card__image--green {
  background: #ecfdf5;
  color: #10b981;
}

.age-card__image--orange {
  background: #fff7ed;
  color: #f97316;
}

.age-card__image--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.age-card__placeholder {
  opacity: 0.5;
}

.age-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 24px 24px 8px;
  margin: 0;
}

.age-card__text {
  font-size: 0.95rem;
  color: var(--text-subtitle);
  padding: 0 24px 28px;
  margin: 0;
  line-height: 1.65;
}

/* ========== STATISTICS ========== */
.stats {
  padding: 60px 0 80px;
  background: var(--gray-50);
}

.stats__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-card {
  flex: 1 1 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-card__icon--purple {
  background: var(--purple-light);
  color: var(--purple);
}

.stat-card__icon--green {
  background: #ecfdf5;
  color: #10b981;
}

.stat-card__icon--orange {
  background: #fff7ed;
  color: #f97316;
}

.stat-card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.stat-card__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.95rem;
  color: var(--text-subtitle);
}

/* ========== SECTION DUO ========== */
.section-duo {
  padding: 80px 0;
  background: var(--gray-50);
}

.section-duo__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  direction: ltr;
}

.duo-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1 1 460px;
  min-height: 300px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  direction: ltr;
  background-color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.duo-card--illustration-2 {
  background-image: url("/assets/illustration2.png");
}

.duo-card--illustration-3 {
  background-image: url("/assets/illustration3.png");
}

.duo-card--reverse {
  justify-content: flex-start;
}

.duo-card__content {
  direction: rtl;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 70%;
  width: 70%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.duo-card__content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.duo-card__content p {
  font-size: 0.95rem;
  color: var(--text-subtitle);
  margin-bottom: 10px;
  line-height: 1.5;
}

.duo-card .checklist {
  gap: 6px;
}

.duo-card .checklist__item {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-subtitle);
  gap: 8px;
}

.duo-card .checklist__item svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* ========== PLATFORM BENEFITS ========== */
.platform-benefits {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.platform-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: transparent;
  padding: 4px 0;
}

.platform-benefit__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duo-card .platform-benefit__icon svg {
  width: 16px;
  height: 16px;
}

.platform-benefit__icon--purple {
  background: var(--purple-light);
  color: var(--purple);
}

.platform-benefit__icon--green {
  background: var(--green-light);
  color: var(--green);
}

.platform-benefit__icon--orange {
  background: #fff7ed;
  color: #f97316;
}

.platform-benefit__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.platform-benefit__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1px;
  line-height: 1.35;
}

.platform-benefit__title--purple { color: var(--purple); }
.platform-benefit__title--green { color: var(--green); }
.platform-benefit__title--orange { color: #f97316; }
.platform-benefit__title--blue { color: #3b82f6; }

.platform-benefit__desc {
  font-size: 0.95rem;
  color: var(--text-subtitle);
  margin: 0;
  line-height: 1.4;
}

/* ========== WHY US ========== */
.why-us {
  padding: 80px 0;
  background: var(--purple-lighter);
}

.why-us__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.why-card {
  flex: 1 1 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.why-card__icon img {
  width: 64px;
  height: 64px;
}

.why-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.why-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 60px 0;
  background: var(--gray-50);
}

.testimonials__carousel {
  overflow: hidden;
  margin-bottom: 24px;
}

.testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  direction: ltr;
  cursor: grab;
}

.testimonials__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  direction: rtl;
}

.testimonial-card__quote {
  color: var(--purple-light);
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

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

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  padding: 0;
}

.testimonials__dot.active {
  background: var(--purple);
  width: 28px;
  border-radius: 5px;
}

/* ========== CTA BAR ========== */
.cta-bar {
  padding: 0 24px 80px;
  background: var(--white);
}

.cta-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--purple-light);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-bar__bird {
  flex-shrink: 0;
  width: 120px;
}

.cta-bar__bird img {
  width: 120px;
  height: auto;
}

.cta-bar__content {
  flex: 1 1 280px;
  text-align: center;
}

.cta-bar__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.cta-bar__text {
  font-size: 1rem;
  color: var(--text-subtitle);
  margin: 0;
  line-height: 1.7;
}

.cta-bar__action {
  flex-shrink: 0;
}

/* ========== MARKETING FOOTER ========== */
.footer {
  background: #1e1b4b;
  color: rgba(255, 255, 255, 0.85);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 48px 0 32px;
}

.footer__col {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer__logo img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer__about {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.2s;
}

.footer__social a:hover {
  background: var(--purple);
  color: var(--white);
}

.footer__heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== AUTH PAGES ========== */
.auth-page {
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-section {
  flex: 1;
  position: relative;
  padding: 40px 0 60px;
}

.auth-section__bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--gray-50) 50%);
  z-index: 0;
}

.auth-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.auth-card--wide {
  max-width: 560px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-card__footer p {
  margin: 0 0 6px;
}

.auth-footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.auth-link {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

.auth-link--bold {
  font-weight: 800;
}

/* ========== FORMS ========== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-form .form-label {
  text-align: center;
}

.form-input-wrap {
  position: relative;
}

.form-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -9px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 44px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  transition: border-color 0.2s;
}

.auth-form .form-input {
  text-align: center;
  padding-left: 44px;
}

.auth-form .form-input::-webkit-input-placeholder {
  text-align: center;
}

.auth-form .form-input::-moz-placeholder {
  text-align: center;
}

.auth-form .form-input:-ms-input-placeholder {
  text-align: center;
}

.auth-form .form-input::placeholder {
  text-align: center;
}

.form-textarea {
  padding-right: 16px;
  resize: vertical;
  min-height: 90px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--purple);
}

.form-input:disabled {
  background: var(--gray-50);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
}

.form-checkbox input:checked + .form-checkbox__box {
  background: var(--purple);
  border-color: var(--purple);
}

.form-checkbox input:checked + .form-checkbox__box::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox__label {
  font-weight: 600;
}

.auth-form__submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.auth-form__error {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-form__success {
  background: #dcfce7;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ========== RESPONSIVE — 1024px ========== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section-split__grid {
    flex-direction: column;
  }

  .section-split__image {
    order: -1;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  .duo-card {
    flex: 1 1 100%;
    min-height: 280px;
  }

  .cta-bar__inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .cta-bar__action {
    width: 100%;
  }

  .cta-bar__action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== RESPONSIVE — 768px ========== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .features-cards {
    margin-top: -60px;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.88);
  }

  .hero__content {
    padding: 48px 0 100px;
    max-width: 100%;
    margin-right: 0;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-split,
  .educational-content,
  .stats,
  .section-duo,
  .why-us,
  .testimonials {
    padding: 40px 0;
  }

  .feature-card {
    flex: 1 1 100%;
  }

  .age-card {
    flex: 1 1 100%;
  }

  .stat-card {
    flex: 1 1 calc(50% - 12px);
  }

  .why-card {
    flex: 1 1 100%;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .footer__grid {
    flex-direction: column;
    gap: 24px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .header__actions .btn-outline {
    display: none;
  }

  .duo-card {
    align-items: flex-end;
    min-height: 260px;
  }

  .duo-card__content {
    flex: 1 1 auto;
    width: 100%;
    padding: 16px;
  }

  .cta-bar {
    padding: 0 16px 40px;
  }

  .cta-bar__inner {
    padding: 28px 20px;
  }

  .cta-bar__bird {
    width: 80px;
  }

  .cta-bar__bird img {
    width: 80px;
  }
}

/* ============================================================
   APP PLATFORM STYLES
   ============================================================ */

.app-page {
  background: var(--gray-50);
  min-height: 100vh;
}

.app-shell {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-shell .site-header {
  flex-shrink: 0;
  height: var(--header-height);
}

.app-shell .site-header__inner {
  height: 100%;
}

.app-shell .site-footer {
  position: absolute;
  left: 12px;
  bottom: 8px;
  z-index: 40;
  width: auto;
  height: auto;
  padding: 4px 10px;
  border-top: 0;
  border-radius: 8px;
  text-align: left;
}

/* ========== APP PLATFORM HEADER & NAV ========== */
.site-header { direction: ltr; background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 100; }
.site-header__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; padding: 0; }
.site-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; padding: 6px 0; }
.site-header__logo { height: 44px; width: auto; }
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-header__brand-title { font-size: 1.2rem; font-weight: 800; color: var(--purple); }
.site-header__brand-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.app-page .site-header__brand-subtitle { display: none; }
.site-header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 6px 0; }
.site-header__right--public { gap: 8px; margin-left: auto; }
.site-header__account { display: flex; align-items: center; gap: 8px; }
.site-header__account-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.site-header__account-logo--placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--gray-100); font-size: 1.2rem; }
.site-header__account-name { font-size: 1rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header__profile-btn { border: 2px solid var(--purple-light); background: var(--white); border-radius: 50%; padding: 0; cursor: pointer; width: 40px; height: 40px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.site-header__profile-photo { width: 100%; height: 100%; object-fit: cover; }
.site-header__hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 100%; height: 100%; }
.site-header__hamburger span { display: block; width: 100%; height: 3px; background: var(--purple); border-radius: 2px; }
.profile-menu { position: relative; }
.profile-menu__dropdown { position: absolute; right: 0; left: auto; top: calc(100% + 8px); min-width: 180px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 8px; z-index: 200; }
.profile-menu__identity { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; direction: rtl; }
.profile-menu__photo { display: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple-light); flex-shrink: 0; }
.profile-menu__name { font-weight: 700; padding: 8px 12px; margin: 0; font-size: 0.95rem; }
.profile-menu__nav { display: none; }
.profile-menu__level { font-weight: 800; }
.profile-menu__link { display: block; padding: 10px 12px; text-decoration: none; color: var(--text); border-radius: 8px; font-size: 1rem; width: 100%; text-align: right; background: none; border: none; cursor: pointer; font-family: inherit; }
.profile-menu__link:hover { background: var(--gray-50); }
.profile-menu__link--btn { color: #991b1b; }

.app-nav { display: flex; align-items: stretch; justify-content: center; flex: 1; gap: 4px; min-width: 0; }
.app-nav__item { display: flex; align-items: stretch; position: static; }
.app-nav__level { display: flex; align-items: center; color: var(--purple); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.app-nav__level.is-active, .app-nav__level:hover { background: var(--purple-light); color: var(--purple); }
.app-nav__mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background-color: var(--white); background-image: url("/assets/menu.jpg"); background-position: bottom center; background-size: auto; background-repeat: no-repeat ;box-shadow: 0 12px 28px rgba(0,0,0,0.08); z-index: 150; margin-top: -1px; padding: 16px 0; }
.app-nav__item:hover .app-nav__mega,
.app-nav__item.is-open .app-nav__mega { display: block; }
.app-nav__mega-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; direction: rtl; text-align: right; padding: 12px 0 4px; }
.app-nav__mega-col { flex: 1 1 160px; min-width: 140px; max-width: 260px; }
.app-nav__mega-cat { display: block; font-size: 1.05rem; font-weight: 800; color: var(--purple); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.app-nav__mega-cat:hover, .app-nav__mega-cat.is-active { background: var(--purple-light); color: var(--purple-dark); }
.app-nav__mega-subs { list-style: none; margin: 0; padding: 0; }
.app-nav__mega-sub { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: 1rem; font-weight: 600; }
.app-nav__mega-sub:hover, .app-nav__mega-sub.is-active { background: var(--gray-50); color: var(--purple); }

.app-main { padding: 12px 0 20px; min-height: 50vh; }
.app-shell .app-main { flex: 1 1 auto; min-height: 0; overflow: auto; }
.app-main--has-bg,
.app-main--has-overlay { background-size: cover; background-position: center; background-repeat: no-repeat; }
.site-footer { text-align: center; padding: 12px 0; color: var(--text-muted); border-top: 1px solid var(--gray-100); background: var(--white); font-size: 0.9rem; }
.site-footer__inner { padding: 0; }
.app-shell .site-footer__inner,
.app-shell .site-footer .container {
  width: auto;
  max-width: none;
  padding: 0;
}
.site-footer p { margin: 0; }
.page-title { font-size: 1.75rem; font-weight: 800; color: var(--purple); margin-bottom: 16px; text-align: center; }
.place-heading { text-align: center; margin: 4px 0 20px; }
.place-heading__parent { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: var(--text-muted); line-height: 1.4; }
.place-heading__link { color: inherit; text-decoration: none; }
.place-heading__link:hover { color: var(--purple); }
.place-heading__sep { margin: 0 8px; font-weight: 800; }
.place-heading__title { font-size: 1.9rem; font-weight: 800; color: var(--purple); margin: 0; line-height: 1.35; }
.page-subtitle { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; }
.level-picker__grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.level-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 220px; min-height: 160px; background: linear-gradient(135deg, var(--purple-light), var(--green-light)); border-radius: 20px; text-decoration: none; color: var(--purple); box-shadow: 0 4px 16px rgba(108,60,225,0.15); transition: transform 0.2s, box-shadow 0.2s; }
.level-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,60,225,0.2); color: var(--purple-dark); }
.level-card__code { font-size: 2rem; font-weight: 800; }
.level-card__age { font-size: 1.1rem; font-weight: 600; }
.unit-picker__grid, .subcategory-picker__grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.unit-picker__card, .subcategory-picker__tile { min-width: 120px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--purple-light); border-radius: 16px; text-decoration: none; color: var(--purple); font-weight: 700; font-size: 1.2rem; padding: 16px; transition: border-color 0.2s, background 0.2s; text-align: center; }
.unit-picker__card:hover, .subcategory-picker__tile:hover { border-color: var(--purple); background: var(--purple-light); color: var(--purple-dark); }
.unit-picker__number { font-size: 2rem; font-weight: 800; }
.unit-picker__label { font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.unit-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; }
.unit-row__badge { flex: 0 0 72px; width: 72px; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--purple-light); border-radius: 16px; color: var(--purple); padding: 8px; box-sizing: border-box; }
.unit-row__number { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.unit-row__label { font-size: 0.8rem; font-weight: 600; margin-top: 2px; }
.unit-row .activity-grid { flex: 1; min-width: 0; }
.unit-block { margin-top: 24px; text-align: center; }
.unit-block:first-child { margin-top: 16px; }
.unit-section { background: rgba(255, 255, 255, 0.6); border-radius: 14px; padding: 12px; margin-bottom: 12px; border-right: 4px solid var(--purple); box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: start; }
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .unit-section {
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.unit-section__header { display: inline-block; box-sizing: border-box; background: var(--white); border: 2px solid var(--purple-light); border-radius: 16px; color: var(--purple); font-size: 1.35rem; font-weight: 700; line-height: 1.3; text-align: center; padding: 14px 28px; margin: 0 auto 12px; }
.activity-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.activity-btn { position: relative; flex: 0 0 calc((100% - 42px) / 4); width: calc((100% - 42px) / 4); padding-bottom: calc((100% - 42px) / 4 * 128 / 176); display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 2px solid transparent; overflow: hidden; text-decoration: none; flex-shrink: 0; box-sizing: border-box; }
.activity-btn:hover { color: inherit; }
.activity-btn__main { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; color: inherit; text-decoration: none; }
.activity-btn__main:hover { color: inherit; }
.activity-btn__corner { position: absolute; top: 6px; right: 6px; z-index: 4; display: flex; align-items: center; gap: 4px; pointer-events: none; }
.activity-btn__num { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: #fff; color: var(--purple-dark); font-size: 0.85rem; font-weight: 800; line-height: 26px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.16); }
.activity-btn__set-badge { position: absolute; top: 6px; left: 6px; z-index: 4; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: #6c3ce1; color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 32px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.2); pointer-events: none; }
.activity-btn__edit { pointer-events: auto; width: 28px; height: 28px; border-radius: 14px; background: #fff; color: var(--purple-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.16); text-decoration: none; flex-shrink: 0; }
.activity-btn__edit:hover { color: var(--purple); background: var(--purple-light); }
.activity-btn__thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-btn__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.activity-btn__label { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 10px 8px; text-align: center; box-sizing: border-box; }
.activity-btn__title { font-size: 1.05rem; font-weight: 800; line-height: 1.25; max-height: 2.5em; overflow: hidden; width: 100%; word-wrap: break-word; }
.activity-btn__title--light { color: #fff; }
.activity-btn__pictos { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: flex; direction: rtl; align-items: flex-end; max-width: 78%; pointer-events: none; }
.activity-btn__picto { display: block; height: 46px; width: auto; max-width: 54px; margin-left: 4px; }
.activity-btn--pictos .activity-btn__label { padding-bottom: 56px; }
.activity-btn--band-1 { background: #fce7f3; border-color: #db2777; color: #9d174d; }
.activity-btn--band-2 { background: #f3e8ff; border-color: #9333ea; color: #6b21a8; }
.activity-btn--band-3 { background: #e0e7ff; border-color: #4338ca; color: #312e81; }
.activity-btn--band-4 { background: #cffafe; border-color: #0891b2; color: #155e75; }
.activity-btn--has-thumb .activity-btn__label { background: rgba(0, 0, 0, 0.5); color: #2d2d2d; }
.activity-player__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.activity-player__title { flex: 1; text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--purple); margin: 0; }
.activity-player__arrow { font-size: 2rem; text-decoration: none; color: var(--purple); font-weight: 800; padding: 8px 16px; }
.activity-player__arrow.is-disabled { opacity: 0.3; pointer-events: none; }
.activity-player__body { background: var(--white); border-radius: 20px; padding: 48px 24px; text-align: center; min-height: 300px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.activity-player__placeholder { font-size: 1.4rem; font-weight: 700; color: var(--text-muted); }
.activity-player__meta { font-size: 0.95rem; color: var(--text-muted); margin-top: 12px; }
.activities-page, .category-picker, .subcategory-picker { padding-bottom: 8px; }
.category-picker .activity-btn__title,
.subcategory-picker .activity-btn__title { font-size: 1.8rem; line-height: 1.2; max-height: 2.4em; }
.app-flash--success { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; }
.breadcrumb { margin-bottom: 12px; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb__item + .breadcrumb__item::before { content: " › "; margin: 0 6px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 1.1rem; }
.profile-page { max-width: 560px; margin: 0 auto; padding: 24px 0; }
.profile-form { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }

/* App platform responsive */
@media (max-width: 1024px) {
  .site-header__account-name { max-width: 100px; }
  .app-nav { justify-content: flex-start; overflow-x: auto; }
  .app-nav__level { padding: 10px 12px; font-size: 0.88rem; }
}

@media (max-width: 768px) {
  .site-header__brand-subtitle { display: none; }
  .site-header__account-name { display: none; }
  .app-nav { display: none; }
  .site-header__profile-btn { width: 44px; height: 44px; border-radius: 8px; border-color: var(--gray-200); overflow: visible; padding: 10px; }
  .site-header__profile-photo { display: none; }
  .site-header__hamburger { display: flex; }
  .site-header__profile-btn.is-open .site-header__hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header__profile-btn.is-open .site-header__hamburger span:nth-child(2) { opacity: 0; }
  .site-header__profile-btn.is-open .site-header__hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header__hamburger span { transition: transform 0.25s, opacity 0.25s; }
  .profile-menu__dropdown { min-width: 240px; max-width: calc(100vw - 24px); max-height: calc(100vh - var(--header-height) - 16px); overflow-y: auto; }
  .profile-menu__photo { display: block; }
  .profile-menu__name { padding: 0; }
  .profile-menu__nav { display: block; padding: 4px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 4px; }
  .site-header__right--public .btn-sm { padding: 6px 12px; font-size: 0.85rem; }
  .level-card { width: 100%; max-width: 280px; }
  .unit-row__badge { flex-basis: 56px; width: 56px; min-height: 56px; padding: 6px; }
  .unit-row__number { font-size: 1.4rem; }
  .unit-row__label { font-size: 0.7rem; }
  .unit-block { margin-top: 18px; }
  .unit-block:first-child { margin-top: 12px; }
  .unit-section__header { font-size: 1.15rem; padding: 12px 20px; margin-bottom: 10px; }
  .activity-btn { flex: 0 0 calc((100% - 14px) / 2); width: calc((100% - 14px) / 2); padding-bottom: calc((100% - 14px) / 2 * 128 / 176); }
  .activity-btn__title { font-size: 0.95rem; }
  .category-picker .activity-btn__title,
  .subcategory-picker .activity-btn__title { font-size: 1.9rem; }
  .activity-btn__picto { height: 40px; max-width: 48px; }
  .activity-player__title { font-size: 1.15rem; }
  .activity-player__nav { gap: 8px; }
  .activity-player__arrow { padding: 4px 8px; font-size: 1.6rem; }
  .app-nav__mega-col { flex: 1 1 100%; max-width: none; }
}
