/* ============================================================
   ECOFA — L'École de la Famille
   Feuille de style principale — Version 1.0
   ============================================================ */

/* ───── RESET & BASE ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ───── VARIABLES ───── */
:root {
  --blue:       #0d3b7a;
  --blue-mid:   #1a5bab;
  --blue-light: #e8f0ff;
  --orange:     #e5630c;
  --orange-h:   #c4520a;
  --gold:       #f0a500;
  --dark:       #0d1b2a;
  --text:       #333848;
  --text-light: #6b7280;
  --white:      #ffffff;
  --bg-off:     #f8f9fc;
  --bg-dark:    #0d1b2a;
  --border:     #e2e8f0;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(13,59,122,0.10);
  --shadow-lg:  0 12px 40px rgba(13,59,122,0.15);
  --transition: all 0.3s ease;
  --section-p:  96px 0;
}

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

.lead { font-size: 1.2rem; color: var(--text-light); max-width: 680px; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-orange { color: var(--orange); }
.text-blue  { color: var(--blue); }

/* ───── LAYOUT ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-p); }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ───── SECTION LABELS ───── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label.orange {
  background: #fff3eb;
  color: var(--orange);
}
.section-label.gold {
  background: #fff8e6;
  color: #9a6800;
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229,99,12,0.35);
}
.btn-primary:hover {
  background: var(--orange-h);
  box-shadow: 0 6px 24px rgba(229,99,12,0.45);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,59,122,0.3);
}
.btn-blue:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ───── NAVBAR ───── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  height: 70px;
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.navbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo img {
  height: 46px;
  width: auto;
}
.navbar-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--blue-light);
  color: var(--blue);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-login {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.nav-cta-login:hover { background: var(--blue-light); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ───── HERO ───── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, #0a2b5c 0%, #1a5bab 60%, #0d3b7a 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { padding: 64px 0 64px 64px; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.18;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 7px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
}
.trust-item i { color: var(--gold); }
.hero-image {
  position: relative;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.8;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1a5bab 0%, transparent 50%);
  z-index: 1;
}
.hero-stat-card {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  min-width: 160px;
}
.hero-stat-card .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--blue); }
.hero-stat-card .stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.hero-stat-card2 {
  position: absolute;
  top: 140px;
  left: -30px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(229,99,12,0.3);
  z-index: 3;
}
.hero-stat-card2 .stat-number { font-size: 1.5rem; font-weight: 800; }
.hero-stat-card2 .stat-label { font-size: 0.75rem; opacity: 0.9; }

/* ───── SECTIONS COMMUNES ───── */
.section-bg-off  { background: var(--bg-off); }
.section-bg-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 { color: #fff; }
.section-bg-dark p { color: rgba(255,255,255,0.8); }
.section-bg-gradient {
  background: linear-gradient(135deg, #0d3b7a 0%, #1a5bab 100%);
  color: #fff;
}
.section-bg-gradient h2,
.section-bg-gradient h3 { color: #fff; }
.section-bg-gradient p { color: rgba(255,255,255,0.85); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .lead { margin: 12px auto 0; }

/* ───── STATS BAR ───── */
.stats-bar {
  background: var(--blue);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-item .number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-item .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ───── CARDS ───── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.card-body { padding: 28px; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ICON CARDS */
.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.icon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.icon-card:hover::before { transform: scaleX(1); }
.icon-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.icon-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.icon-wrap-blue  { background: var(--blue-light); color: var(--blue); }
.icon-wrap-orange { background: #fff3eb; color: var(--orange); }
.icon-wrap-gold  { background: #fff8e6; color: var(--gold); }
.icon-wrap-green { background: #e8f5e9; color: #2e7d32; }

/* LEVEL CARDS */
.level-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.level-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.level-card-header {
  padding: 28px 28px 20px;
  position: relative;
}
.level-card-header.blue { background: linear-gradient(135deg, #0d3b7a, #1a5bab); }
.level-card-header.orange { background: linear-gradient(135deg, #e5630c, #f0842c); }
.level-card-header.gold { background: linear-gradient(135deg, #b07800, #e0a000); }
.level-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.level-card-header h3 { color: #fff; font-size: 1.3rem; }
.level-card-header p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.level-card-body { padding: 24px 28px; background: #fff; }
.level-card-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.level-card-body ul li:last-child { border: none; }
.level-card-body ul li i { color: var(--orange); margin-top: 3px; flex-shrink: 0; }
.level-card-footer { padding: 20px 28px; background: var(--bg-off); border-top: 1px solid var(--border); }

/* TESTIMONIAL CARDS */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  line-height: 1;
  color: var(--blue-light);
  font-family: Georgia, serif;
}
.testimonial-text { font-size: 1rem; color: var(--text); font-style: italic; margin-bottom: 24px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.avatar-blue { background: var(--blue); }
.avatar-orange { background: var(--orange); }
.avatar-gold { background: var(--gold); }
.avatar-green { background: #2e7d32; }
.author-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.author-role { font-size: 0.8rem; color: var(--text-light); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 12px; }

/* ───── FAQ ───── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--blue); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { background: var(--blue-light); }
.faq-question i { transition: var(--transition); color: var(--blue); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ───── FORMS ───── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(26,91,171,0.1);
}
.form-control::placeholder { color: #b0b8c9; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ───── PAGE HEADER ───── */
.page-header {
  background: linear-gradient(135deg, #0d3b7a 0%, #1a5bab 100%);
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: #fff; margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.45); }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ───── FEATURES LIST ───── */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.feature-text h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ───── CTA SECTION ───── */
.cta-section {
  background: linear-gradient(135deg, #e5630c 0%, #f0842c 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 600px; margin: 16px auto 36px; font-size: 1.1rem; }

/* ───── FOOTER ───── */
.footer {
  background: #070f1a;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer-contact li i { color: var(--orange); width: 16px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--orange); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
}
.footer-badge img { height: 18px; }

/* ───── PARTNER BANNER ───── */
.partner-banner {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
}
.partner-banner img { height: 60px; }
.partner-banner-text h4 { margin-bottom: 6px; }
.partner-banner-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ───── DASHBOARD ───── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark);
  min-height: calc(100vh - 70px);
  position: fixed;
  top: 70px;
  left: 0;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 100;
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo img { height: 36px; }
.sidebar-user {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.user-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}
.user-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.user-level { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.sidebar-nav { padding: 16px 12px; }
.sidebar-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 8px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 0.95rem; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: var(--orange); color: #fff; }
.sidebar-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}
.sidebar-link.active .sidebar-badge { background: rgba(255,255,255,0.25); }
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  background: var(--bg-off);
  min-height: calc(100vh - 70px);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.dashboard-header h1 { font-size: 1.6rem; margin-bottom: 4px; }
.dashboard-header p { color: var(--text-light); font-size: 0.9rem; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.stat-card .stat-info .value { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card .stat-info .label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.progress-bar-wrap { margin-top: 8px; }
.progress-bar-bg {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--orange);
  transition: width 1s ease;
}
.progress-bar-fill.blue { background: var(--blue); }
.course-card-dash {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.course-card-dash:hover { box-shadow: var(--shadow); }
.course-thumb { height: 140px; position: relative; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-level-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.course-body { padding: 18px; }
.course-body h4 { font-size: 0.95rem; margin-bottom: 8px; }
.module-list { display: flex; flex-direction: column; gap: 10px; }
.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-off);
  transition: var(--transition);
  cursor: pointer;
}
.module-item:hover { background: var(--blue-light); }
.module-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.module-title { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.module-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.module-status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.status-done { color: #2e7d32; }
.status-progress { color: var(--orange); }
.status-locked { color: #b0b8c9; }

/* ───── NOTIFICATION ───── */
.notification-dot {
  position: relative;
}
.notification-dot::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ───── ANIMATIONS ───── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.animate-in { opacity: 0; transform: translateY(24px); }
.animate-in.visible { animation: fadeInUp 0.6s ease forwards; }

/* ───── TAGS ───── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.tag.orange { background: #fff3eb; color: var(--orange); }
.tag.gold   { background: #fff8e6; color: #9a6800; }

/* ───── TABLE ───── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); }
td { font-size: 0.9rem; }
tr:hover td { background: var(--bg-off); }

/* ───── SCROLLBAR ───── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* ───── RESPONSIVE ───── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 48px 24px 40px; }
  .hero-image { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .navbar-menu { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px; }
}
@media (max-width: 600px) {
  :root { --section-p: 64px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-trust { gap: 10px; }
}
