/* =====================================================
   GUIDE DES PRATIQUES EFFICACES - CSS PRINCIPAL
   Design: Moderne, Professionnel, Éducatif
   Auteurs: Issam Marbouh & Khalil El Haoula
   ===================================================== */

/* ---- Variables CSS ---- */
:root {
  --primary: #1a4fa3;
  --primary-dark: #123a7a;
  --primary-light: #3a6fc0;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f0f5ff;
  --bg-card: #f8faff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(26,79,163,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(26,79,163,0.13), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(26,79,163,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: all 0.28s cubic-bezier(.4,0,.2,1);
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-arabic: 'Cairo', 'Noto Kufi Arabic', Arial, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-medium); line-height: 1.8; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,79,163,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--primary);
  white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white;
  box-shadow: 0 4px 12px rgba(26,79,163,0.25);
}
.nav-logo span.brand { color: var(--primary); }
.nav-logo span.brand em { color: var(--accent); font-style: normal; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-menu a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--bg-light);
}
.nav-menu a.active { font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
}
.lang-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-medium);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--primary);
  color: white;
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(26,79,163,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(26,79,163,0.35); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(145deg, #f0f5ff 0%, #e8f0fe 40%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,79,163,0.07) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
}
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,79,163,0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(26,79,163,0.15);
}
.hero-title {
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat { text-align: center; }
.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
}
.hero-card-main {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}
.hero-card-main .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
}
.card-icon-lg {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: white;
  flex-shrink: 0;
}
.practices-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.practice-mini {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.practice-mini:hover {
  border-color: var(--primary);
  background: rgba(26,79,163,0.05);
  transform: translateY(-2px);
}
.practice-mini .icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.practice-mini .label { font-size: 0.68rem; color: var(--text-medium); font-weight: 500; line-height: 1.3; }

.hero-floating {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
.hero-floating.f1 { top: -20px; right: 30px; animation-delay: 0s; }
.hero-floating.f2 { bottom: 30px; left: -20px; animation-delay: 1s; }
.hero-floating .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(26,79,163,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,79,163,0.4); }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.4); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* =====================================================
   SECTIONS GENERALES
   ===================================================== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-light);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-badge {
  display: inline-block;
  background: rgba(26,79,163,0.1);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}
.section-title { margin-bottom: 0.8rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-medium); }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,79,163,0.2);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.icon-blue { background: rgba(26,79,163,0.1); color: var(--primary); }
.icon-sky { background: rgba(14,165,233,0.1); color: var(--secondary); }
.icon-amber { background: rgba(245,158,11,0.1); color: var(--accent); }
.icon-green { background: rgba(16,185,129,0.1); color: var(--success); }
.icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.icon-rose { background: rgba(244,63,94,0.1); color: #f43f5e; }
.icon-orange { background: rgba(249,115,22,0.1); color: #f97316; }
.icon-teal { background: rgba(20,184,166,0.1); color: #14b8a6; }

/* =====================================================
   PRACTICES GRID
   ===================================================== */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.practice-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p-color, var(--primary)), var(--p-color2, var(--secondary)));
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.practice-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.practice-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--p-color, var(--primary))22, var(--p-color2, var(--secondary))11);
}
.practice-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.practice-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.practice-link:hover { gap: 0.7rem; }

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: white;
}
.benefit-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.benefit-card p { font-size: 0.85rem; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--primary-light));
  padding: 120px 0 80px;
  color: white;
}
.about-hero h1, .about-hero p { color: white; }
.about-hero p { opacity: 0.85; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.author-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.author-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.2rem;
  color: white;
  font-weight: 700;
}
.author-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.author-card .role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.ref-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ref-card .ref-icon {
  font-size: 1.5rem; flex-shrink: 0;
}

/* =====================================================
   PRACTICE DETAIL PAGE
   ===================================================== */
.practice-hero {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.practice-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.content-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.content-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--bg-light);
}
.strategy-list { display: flex; flex-direction: column; gap: 0.75rem; }
.strategy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.strategy-item .s-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.strategy-item p { font-size: 0.9rem; margin: 0; }
.mistake-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(239,68,68,0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--danger);
  margin-bottom: 0.75rem;
}
.mistake-item .m-icon { color: var(--danger); flex-shrink: 0; }
.tip-box {
  background: linear-gradient(135deg, rgba(26,79,163,0.05), rgba(14,165,233,0.05));
  border: 1px solid rgba(26,79,163,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.tip-box .tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.example-quote {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  position: relative;
}
.example-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  top: -5px; left: 15px;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}
.sidebar-widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--bg-light);
  display: flex; align-items: center; gap: 0.5rem;
}
.quick-tip {
  padding: 0.6rem 0.8rem;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quick-tip::before { content: '✅'; font-size: 0.9rem; }
.nav-practices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-practice-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-medium);
  transition: var(--transition);
  cursor: pointer;
}
.nav-practice-item:hover, .nav-practice-item.active {
  background: var(--bg-light);
  color: var(--primary);
}
.nav-practice-item.active { font-weight: 600; }

/* =====================================================
   TOOLS PAGE
   ===================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.tool-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tool-card-body {
  padding: 0 1.5rem 1.5rem;
}
.tool-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.tag-download { background: rgba(16,185,129,0.1); color: var(--success); }
.tag-interactive { background: rgba(26,79,163,0.1); color: var(--primary); }
.tag-template { background: rgba(245,158,11,0.1); color: var(--accent); }
.tag-checklist { background: rgba(139,92,246,0.1); color: #8b5cf6; }

/* =====================================================
   LESSON PLANNER
   ===================================================== */
.planner-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.planner-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem;
  color: white;
}
.planner-header h2 { color: white; font-size: 1.5rem; }
.planner-header p { opacity: 0.85; font-size: 0.95rem; }
.planner-steps {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.planner-step {
  flex: 1;
  min-width: 120px;
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.planner-step .step-icon { font-size: 1.3rem; }
.planner-step.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(26,79,163,0.03);
}
.planner-body {
  padding: 2rem;
}
.planner-panel { display: none; }
.planner-panel.active { display: block; }
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-group label span { color: var(--text-light); font-weight: 400; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  resize: vertical;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,163,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.planner-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.step-indicator {
  display: flex;
  gap: 0.4rem;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.step-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* Lesson plan preview */
.lesson-preview {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px dashed var(--border);
}
.lesson-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.lesson-section h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.lesson-section p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* =====================================================
   SELF-EVALUATION
   ===================================================== */
.eval-wrapper {
  max-width: 750px;
  margin: 0 auto;
}
.eval-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.eval-section h4 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--bg-light);
}
.eval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-light);
}
.eval-item:last-child { border-bottom: none; }
.eval-item label { font-size: 0.9rem; color: var(--text-medium); flex: 1; margin-right: 1rem; }
.eval-stars {
  display: flex;
  gap: 0.25rem;
}
.star {
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--border);
  transition: var(--transition);
}
.star.active, .star:hover { color: var(--accent); }
.eval-result {
  display: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  text-align: center;
}
.eval-result.show { display: block; }
.eval-score {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.eval-score-label { opacity: 0.85; font-size: 0.95rem; }
.progress-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: white;
  border-radius: 4px;
  transition: width 1s ease;
}

/* =====================================================
   TRAINING PAGE
   ===================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.module-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--bg-light);
}
.module-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  flex-shrink: 0;
}
.module-body { padding: 1.25rem 1.5rem; }
.module-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.module-meta span {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.progress-mini {
  height: 4px;
  background: var(--bg-light);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* =====================================================
   RESOURCES PAGE
   ===================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.resource-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.resource-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.resource-card p { font-size: 0.85rem; flex: 1; margin-bottom: 1rem; }
.resource-author {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bg-light);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
}
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--danger); color: white; }

/* =====================================================
   TABS
   ===================================================== */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-light);
  padding: 0.3rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================
   NOTIFICATIONS & TOASTS
   ===================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9998;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  border-left: 4px solid var(--success);
}
.toast.show { transform: translateY(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast-icon { font-size: 1.2rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; opacity: 0.7; }
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* =====================================================
   ARABIC RTL
   ===================================================== */
body.rtl {
  direction: rtl;
  font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0;
}

/* RTL — Navigation */
body.rtl .nav-logo { flex-direction: row-reverse; }
body.rtl .nav-container { flex-direction: row-reverse; }
body.rtl .nav-actions { flex-direction: row-reverse; }
body.rtl .breadcrumb { direction: rtl; }

/* RTL — Borders */
body.rtl .strategy-item { border-left: none; border-right: 3px solid var(--primary); }
body.rtl .mistake-item { border-left: none; border-right: 3px solid var(--danger); }
body.rtl .ref-card { border-left: none; border-right: 4px solid var(--primary); }
body.rtl .example-quote { border-left: none; border-right: 4px solid var(--accent); }
body.rtl .lesson-section { border-left: none; border-right: 4px solid var(--primary); }
body.rtl .timeline { padding-left: 0; padding-right: 2rem; }
body.rtl .timeline::before { left: auto; right: 0; }
body.rtl .timeline-item { padding-left: 0; padding-right: 1.5rem; }
body.rtl .timeline-dot { left: auto; right: -2.35rem; }

/* RTL — Flex reversals */
body.rtl .hero-container { flex-direction: row-reverse; }
body.rtl .pillar-item { flex-direction: row-reverse; }
body.rtl .author-card .badge { direction: rtl; }
body.rtl .info-block ul li { flex-direction: row-reverse; }
body.rtl .info-block ul li::before { content: '‹'; }
body.rtl .practice-full-footer { flex-direction: row-reverse; }

/* RTL — Text alignment */
body.rtl .section-header { text-align: right; }
body.rtl .hero-content { text-align: right; }
body.rtl .hero-actions { justify-content: flex-start; flex-direction: row-reverse; }
body.rtl .hero-stats { justify-content: flex-start; flex-direction: row-reverse; }
body.rtl .card { text-align: right; }
body.rtl .benefit-card { text-align: right; }
body.rtl .module-card { text-align: right; }
body.rtl .author-card { text-align: right; }
body.rtl .value-card h4, body.rtl .value-card p { text-align: center; }
body.rtl .footer-brand { text-align: right; }
body.rtl .footer-col { text-align: right; }
body.rtl .footer-bottom { flex-direction: row-reverse; }

/* RTL — Practice arrows */
body.rtl .practice-link .fa-arrow-right { transform: rotate(180deg); }
body.rtl .fa-arrow-right { display: inline-block; transform: scaleX(-1); }

/* RTL — Form elements */
body.rtl input, body.rtl textarea, body.rtl select {
  text-align: right;
  direction: rtl;
}

/* RTL — Process steps */
body.rtl .process-step::after { content: '←'; left: -12px; right: auto; }

/* RTL — Mission box */
body.rtl .mission-box { text-align: right; }

/* RTL — Page header */
body.rtl .page-header { text-align: right; }
body.rtl .page-header .section-badge { text-align: right; }

/* RTL — lang switcher position */
body.rtl .lang-switcher { order: -1; }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
  border: none;
  font-size: 1rem;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-wrap {
  position: relative;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,163,0.1);
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%; transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

/* =====================================================
   ACCORDION
   ===================================================== */
.accordion-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  gap: 1rem;
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-arrow {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.75;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(145deg, #f0f5ff 0%, #e8f0fe 60%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,79,163,0.06) 0%, transparent 70%);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .practice-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 55px 0; }
  .planner-steps { gap: 0; }
  .hero { padding: 100px 0 60px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }
  .card { padding: 1.25rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}

/* =====================================================
   FORMATION PAGE — Progress bar
   ===================================================== */
.progress-bar {
  height: 10px;
  background: var(--bg-light);
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* Filter Buttons (shared) */
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Stars rating */
.stars-display {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: 0.9rem;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-light { color: var(--text-light) !important; }
.text-small { font-size: 0.85rem !important; }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-blue { background: rgba(26,79,163,0.1); color: var(--primary); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-amber { background: rgba(245,158,11,0.1); color: var(--accent); }
