/* ============================================================
   ELI ACADEMY - Main Stylesheet
   ============================================================ */

:root {
  /* ELI brand — extracted from logo.png */
  --primary:       #1E5FAD;   /* ELI blue (letters & frame) */
  --primary-dark:  #154D8F;   /* darker navy */
  --primary-light: #E6EFF9;   /* light blue tint */
  --red:           #C41230;   /* ELI red (swoosh arc) */
  --red-dark:      #A30E28;
  --red-light:     #FCEDEF;
  --navy:          #0D2B5E;   /* deep navy (darkest bg) */
  --secondary:     #C41230;   /* ELI red — replaces amber */
  --secondary-dark:#A30E28;
  --success:       #0e9f6e;
  --danger:        #C41230;
  --warning:       #C41230;
  /* Override Bootstrap warning tokens */
  --bs-warning:        #C41230;
  --bs-warning-rgb:    196,18,48;
  --bs-warning-text:   #C41230;
  --bs-warning-bg-subtle: #FCEDEF;
  --bs-warning-border-subtle: #f1a3b0;
  --info:          #1E5FAD;
  --dark:          #0D2B5E;
  --dark-sidebar:  #0D2B5E;
  --gray-100: #f9fafb;
  --gray-200: #f3f4f6;
  --gray-300: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --font: 'Roboto', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #f9fafb;
  font-size: 0.9375rem;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }

/* ---- LEGACY LOGO (sidebars) ---- */
.eli-logo { display: flex; align-items: baseline; gap: 2px; }
.logo-eli {
  font-size: 1.7rem; font-weight: 900;
  color: var(--primary); letter-spacing: -2px;
}
.logo-academy {
  font-size: .85rem; font-weight: 700;
  color: var(--gray-600); letter-spacing: .5px;
  text-transform: uppercase;
}

/* ============================================================
   ELI NAVBAR — matches eli-senegal.com style
   Transparent on hero, white + shadow on scroll
   ============================================================ */
.eli-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1.1rem 0;
  background: transparent;
}
.eli-navbar.scrolled,
.eli-navbar.mobile-open {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
  padding: .65rem 0;
}

/* Non-hero pages: navbar is always white — no transparency */
body:not(.has-hero) .eli-navbar {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Push non-hero pages below fixed navbar */
body > main { padding-top: 74px; }
/* Hero pages: let hero bleed under transparent navbar */
body.has-hero > main { padding-top: 0; }

.eli-navbar-inner {
  display: flex; align-items: center; gap: 1rem;
}

/* ---- Logo ---- */
.eli-navbar-brand { flex-shrink: 0; display: flex; align-items: center; }
.eli-logo-img { height: 44px; width: auto; display: block; }

/* Logo wrapper: white pill on transparent hero so the logo is readable */
.eli-logo-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  display: inline-flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .35s, padding .35s, box-shadow .35s, border-radius .35s;
}

/* When scrolled over hero: pill dissolves into the white navbar */
.eli-navbar.scrolled .eli-logo-wrap,
.eli-navbar.mobile-open .eli-logo-wrap {
  background: transparent;
  padding: 2px 0;
  box-shadow: none;
  border-radius: 0;
}

/* Non-hero pages: always seamless (no pill needed, navbar is already white) */
body:not(.has-hero) .eli-navbar .eli-logo-wrap {
  background: transparent;
  padding: 2px 0;
  box-shadow: none;
  border-radius: 0;
}

/* ---- Collapse wrapper ---- */
.eli-nav-collapse {
  display: flex; align-items: center; gap: 1.5rem;
  flex: 1; justify-content: flex-end;
}

/* ---- Nav links ---- */
.eli-nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .15rem;
}
.eli-nav-link {
  display: block;
  padding: .45rem .75rem;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.eli-nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: .75rem; right: .75rem;
  height: 2px; background: #fff; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.eli-nav-link:hover,
.eli-nav-link.active { color: #fff; }
.eli-nav-link:hover::after,
.eli-nav-link.active::after { transform: scaleX(1); }

/* When scrolled OR on non-hero pages: dark links on white bg */
.eli-navbar.scrolled .eli-nav-link,
.eli-navbar.mobile-open .eli-nav-link,
body:not(.has-hero) .eli-navbar .eli-nav-link {
  color: var(--gray-800);
}
.eli-navbar.scrolled .eli-nav-link::after,
.eli-navbar.mobile-open .eli-nav-link::after,
body:not(.has-hero) .eli-navbar .eli-nav-link::after { background: var(--red); }
.eli-navbar.scrolled .eli-nav-link:hover,
.eli-navbar.scrolled .eli-nav-link.active,
.eli-navbar.mobile-open .eli-nav-link:hover,
.eli-navbar.mobile-open .eli-nav-link.active,
body:not(.has-hero) .eli-navbar .eli-nav-link:hover,
body:not(.has-hero) .eli-navbar .eli-nav-link.active { color: var(--red); }

/* ---- Nav actions ---- */
.eli-nav-actions {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}
.eli-nav-login {
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.88); text-decoration: none;
  padding: .4rem .6rem;
  transition: color .2s;
  white-space: nowrap;
}
.eli-nav-login:hover { color: #fff; }
.eli-navbar.scrolled .eli-nav-login,
.eli-navbar.mobile-open .eli-nav-login,
body:not(.has-hero) .eli-navbar .eli-nav-login {
  color: var(--gray-800);
}
.eli-navbar.scrolled .eli-nav-login:hover,
.eli-navbar.mobile-open .eli-nav-login:hover,
body:not(.has-hero) .eli-navbar .eli-nav-login:hover { color: var(--red); }

/* CTA button — red pill, echoes the logo's swoosh accent */
.eli-btn-cta {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: var(--red);
  color: #fff !important; text-decoration: none;
  font-size: .875rem; font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--red);
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.eli-btn-cta:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.eli-navbar:not(.scrolled):not(.mobile-open) .eli-btn-cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff !important;
}
.eli-navbar:not(.scrolled):not(.mobile-open) .eli-btn-cta:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

/* User dropdown trigger */
.eli-nav-user {
  display: flex; align-items: center; gap: .5rem;
  background: transparent; border: none;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.9);
  cursor: pointer; padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  transition: color .2s;
}
.eli-nav-user:hover { color: #fff; }
.eli-navbar.scrolled .eli-nav-user,
.eli-navbar.mobile-open .eli-nav-user,
body:not(.has-hero) .eli-navbar .eli-nav-user { color: var(--gray-800); }
.eli-navbar.scrolled .eli-nav-user:hover,
.eli-navbar.mobile-open .eli-nav-user:hover,
body:not(.has-hero) .eli-navbar .eli-nav-user:hover { color: var(--red); }
.eli-nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
/* On transparent hero: avatar uses translucent white */
body.has-hero .eli-navbar:not(.scrolled):not(.mobile-open) .eli-nav-avatar {
  background: rgba(255,255,255,.25);
}

/* ---- Mobile hamburger ---- */
.eli-nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  margin-left: auto;
}
.eli-nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: left center;
}
.eli-navbar.scrolled .eli-nav-toggle span,
.eli-navbar.mobile-open .eli-nav-toggle span,
body:not(.has-hero) .eli-navbar .eli-nav-toggle span { background: var(--gray-800); }
.eli-nav-toggle.open span:nth-child(1) { transform: rotate(42deg) translate(1px,-1px); }
.eli-nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.eli-nav-toggle.open span:nth-child(3) { transform: rotate(-42deg) translate(1px,1px); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .eli-nav-toggle { display: flex; }
  .eli-nav-collapse {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-top: 1px solid var(--gray-200);
  }
  .eli-nav-collapse.open { display: flex; }
  .eli-nav-links { flex-direction: column; gap: 0; }
  .eli-nav-link {
    color: var(--gray-800) !important;
    padding: .7rem .5rem;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
  }
  .eli-nav-link::after { display: none; }
  .eli-nav-link:hover, .eli-nav-link.active { color: var(--primary) !important; }
  .eli-nav-actions {
    padding-top: 1rem; flex-direction: column; align-items: stretch;
  }
  .eli-nav-login {
    color: var(--gray-800) !important;
    text-align: center; padding: .7rem;
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  }
  .eli-btn-cta {
    text-align: center; display: block;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
  }
  .eli-nav-user { color: var(--gray-800) !important; justify-content: center; }
}

/* ---- AVATAR ---- */
.avatar-sm {
  width: 32px; height: 32px; font-size: .8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-md {
  width: 40px; height: 40px; font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-lg {
  width: 56px; height: 56px; font-size: 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-xl {
  width: 80px; height: 80px; font-size: 1.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-warning { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn-warning:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff !important; }
.btn-outline-warning { border-color: var(--red); color: var(--red); }
.btn-outline-warning:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ---- CARDS ---- */
.card { border-radius: var(--radius); border: 1px solid var(--gray-300); }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }

/* ---- HERO SECTION ---- */
.hero-section {
  /* ELI brand: navy → blue with a red diagonal accent */
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 65%, #1a6ec7 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-section::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");
}
/* Red diagonal stripe — echoes the logo's swoosh */
.hero-section::after {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 45%; height: 130%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,18,48,.18) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,43,94,.45), transparent);
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.min-vh-hero { min-height: 80vh; }

.hero-visual { position: relative; padding: 2rem; }
.hero-card-float {
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem !important;
  width: 300px;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: 50px;
  padding: .5rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.badge-students { top: 1rem; right: -1rem; }
.badge-rating { bottom: 2rem; left: -1rem; }

/* ---- STATS BAR ---- */
.stats-bar { background: white; box-shadow: var(--shadow-md); border-top: 3px solid var(--red); }
.stats-container { border-radius: var(--radius); overflow: hidden; }
.stat-item { border-right: 1px solid var(--gray-200); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .8125rem; color: var(--gray-600); font-weight: 500; }

/* ---- SECTION STYLES ---- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.section-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  padding: .375rem 1rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.section-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: .5rem; }

/* ---- COURSE CARDS ---- */
.course-card { border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl) !important; }
.course-card-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  display: flex; align-items: center; justify-content: center;
}
.course-img-placeholder { width: 100%; height: 100%; }
.course-badge-format { position: absolute; top: .75rem; left: .75rem; }
.course-badge-price { position: absolute; top: .75rem; right: .75rem; font-size: .75rem; padding: .3rem .6rem; }
.course-meta { display: flex; align-items: center; }

/* ---- STEP CARDS ---- */
.step-card { border-radius: var(--radius); transition: transform .3s; position: relative; }
.step-card:hover { transform: translateY(-4px); }
.step-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray-200);
  position: absolute;
  top: 0; right: 1rem;
  line-height: 1;
  z-index: 0;
}
.step-icon { position: relative; z-index: 1; }

/* ---- TESTIMONIAL CARDS ---- */
.testimonial-card { border-radius: var(--radius); transition: transform .3s; }
.testimonial-card:hover { transform: translateY(-4px); }

/* ---- CTA SECTION ---- */
.cta-section { background: transparent; }
.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 60%, var(--red) 100%);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---- LOGO PILL (footer + sidebars — logo has white bg, needs white container on dark) ---- */
.footer-logo-wrap,
.sidebar-logo-wrap {
  display: inline-flex; align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  margin-bottom: 4px;
}
.sidebar-logo-wrap { padding: 5px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---- FOOTER ---- */
.footer-main {
  background: linear-gradient(180deg, var(--navy) 0%, #07192e 100%);
  color: #e5e7eb;
  border-top: 3px solid var(--red);
}
.footer-link { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-link:hover { color: #fff; }
.social-links a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

/* ---- ADMIN LAYOUT ---- */
.admin-body { background: var(--gray-100); }
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--dark-sidebar);
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform .3s;
}
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin .3s;
}
.sidebar-nav { padding: .5rem; }
.sidebar-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: .625rem .875rem !important;
  border-radius: var(--radius-sm) !important;
  color: rgba(255,255,255,.7) !important;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: 2px;
}
.sidebar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
}
.sidebar-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
  border-left: 3px solid var(--red);
  padding-left: calc(.875rem - 3px) !important;
}
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-divider {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  padding: 1rem .875rem .375rem;
}
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--gray-300);
  padding: .875rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header {
  margin-bottom: 1.75rem;
}
.page-header h1 { font-size: 1.5rem; margin: 0; }

/* ---- APPRENANT LAYOUT ---- */
.apprenant-body { background: var(--gray-100); }
/* Content areas (alias for admin-main / app-main) */
.admin-content, .app-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}
.app-sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, #071524 100%);
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform .3s;
}
.app-main { margin-left: 240px; min-height: 100vh; }

/* ---- STATS CARDS (DASHBOARD) ---- */
.stat-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: none;
}
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: .5rem 0 .25rem;
}
.stat-card .stat-label { font-size: .8125rem; color: var(--gray-600); font-weight: 500; }
.stat-card .stat-change {
  font-size: .75rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* ---- DATA TABLE ---- */
.data-table { border-radius: var(--radius); overflow: hidden; }
.data-table th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-600);
  background: var(--gray-100);
  border-top: none;
  border-bottom: 2px solid var(--gray-200);
  padding: .875rem 1rem;
}
.data-table td { padding: .875rem 1rem; vertical-align: middle; border-color: var(--gray-200); }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--gray-100); }

/* ---- BADGES ---- */
.badge { font-weight: 600; font-size: .75rem; padding: .35em .65em; border-radius: 6px; }
.badge-status-nouveau { background: #eff6ff; color: #1d4ed8; }
.badge-status-en_cours { background: #fefce8; color: #a16207; }
.badge-status-converti { background: #f0fdf4; color: #15803d; }
.badge-status-sans_suite { background: #fef2f2; color: #b91c1c; }
.badge-status-a_contacter { background: #fff7ed; color: #c2410c; }

/* ---- PROGRESS BARS ---- */
.progress { height: 8px; border-radius: 50px; background: var(--gray-200); }
.progress-bar { border-radius: 50px; transition: width .6s ease; }

/* ---- CATALOGUE PAGE ---- */
.filter-sidebar { position: sticky; top: 80px; }
.filter-section { border-radius: var(--radius); }

/* ---- CATALOGUE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  padding: 5rem 0 3.5rem;
  color: white;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--red), var(--primary));
}

/* ---- PARCOURS DETAIL ---- */
.parcours-hero { background: linear-gradient(135deg, var(--navy), var(--primary)); color: white; padding: 5rem 0 3.5rem; position: relative; overflow: hidden; }
.parcours-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--red), var(--primary)); }
.sticky-card { position: sticky; top: 80px; }
.module-accordion .accordion-button { font-weight: 600; }
.module-accordion .accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--primary); }
.lecon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .625rem 1rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.lecon-item:hover { background: var(--gray-100); }
.lecon-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2460 0%, var(--primary) 60%, #1a56db 100%);
  display: flex;
  align-items: center;
  padding: 2rem 0;
}
.auth-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.auth-logo { margin-bottom: 1.5rem; text-align: center; }
.auth-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.auth-subtitle { color: var(--gray-600); margin-bottom: 2rem; }
.form-label { font-weight: 600; font-size: .875rem; color: var(--gray-700); }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--gray-300);
  padding: .625rem .875rem;
  font-size: .9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.input-group-text { border-radius: var(--radius-sm); background: var(--gray-100); border-color: var(--gray-300); }

/* ---- QUALIFICATION FORM ---- */
.qualification-page {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
  min-height: 100vh;
  padding: 2rem 0;
}
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  transition: all .3s;
}
.step-dot.active { background: var(--primary); color: white; }
.step-dot.done { background: var(--success); color: white; }
.step-dot.pending { background: var(--gray-200); color: var(--gray-400); }
.step-line { flex: 1; height: 3px; background: var(--gray-200); transition: background .3s; }
.step-line.done { background: var(--success); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp .4s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- SESSIONS PAGE ---- */
.session-card { border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.session-card:hover { box-shadow: var(--shadow-xl) !important; transform: translateY(-4px); }
.session-type-badge {
  position: absolute; top: 1rem; right: 1rem;
}
.session-date {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  text-align: center;
  min-width: 70px;
}
.session-date .day { font-size: 2rem; font-weight: 800; line-height: 1; }
.session-date .month { font-size: .7rem; text-transform: uppercase; font-weight: 600; }

/* ---- CONTACT PAGE ---- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---- APPRENANT DASHBOARD ---- */
.course-progress-card { border-radius: var(--radius); padding: 1.25rem; transition: all .2s; }
.course-progress-card:hover { box-shadow: var(--shadow-md) !important; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
  border-bottom: 1px solid var(--gray-200);
}
.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: var(--primary-light); }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }

/* ---- QUIZ STYLES ---- */
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-question-card { border-radius: var(--radius); background: white; border: 1px solid var(--gray-200); }
.quiz-progress { height: 6px; border-radius: 50px; background: var(--gray-200); }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .875rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: .75rem;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option input[type=radio] { display: none; }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.correct { border-color: var(--success); background: #f0fdf4; }
.quiz-option.incorrect { border-color: var(--danger); background: #fef2f2; }

/* ---- CERTIFICAT CARD ---- */
.certificat-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f2460, var(--primary));
  color: white;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.certificat-card::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='%23fff' fill-opacity='0.03'%3E%3Cpath d='M30 30m-28 0a28,28 0 1,1 56,0a28,28 0 1,1 -56,0'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- SUPERVISEUR LAYOUT ---- */
.superviseur-body { background: var(--gray-100); }
.sup-sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, #071524 100%);
  position: fixed; left: 0; top: 0; z-index: 1000;
  overflow-y: auto; transition: transform .3s;
  display: flex; flex-direction: column;
}
.sup-content, .admin-content, .app-content {
  flex: 1; min-width: 0; overflow-x: hidden;
}
#supWrapper { min-height: 100vh; }
#supWrapper .sup-content { margin-left: 240px; }
@media (max-width: 991.98px) {
  .sup-sidebar { transform: translateX(-100%); }
  .sup-sidebar.open { transform: translateX(0); }
  #supWrapper .sup-content { margin-left: 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  .admin-sidebar, .app-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open, .app-sidebar.open { transform: translateX(0); }
  .admin-main, .app-main { margin-left: 0; }
  .hero-section { min-height: 70vh; }
  .stat-number { font-size: 1.75rem; }
  .section-title { font-size: 1.625rem; }
}
@media (max-width: 767.98px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .auth-card { padding: 2rem 1.5rem; border-radius: 1rem; }
  .hero-section { min-height: 0; padding: 5rem 0; }
  .stat-number { font-size: 1.5rem; }
}

/* ---- UTILITIES ---- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.fw-black { font-weight: 900; }
.rounded-xl { border-radius: var(--radius) !important; }
.rounded-2xl { border-radius: 1.5rem !important; }
.shadow-card { box-shadow: var(--shadow-md) !important; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opacity-90 { opacity: .9; }
.gap-2 { gap: .5rem !important; }
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.sidebar-overlay.show { display: block; }

/* ---- LOADING SPINNER ---- */
.spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  display: none;
}

/* ---- ALERT STYLES ---- */
.alert { border-radius: var(--radius-sm); border: none; font-weight: 500; }
.alert-success { background: #f0fdf4; color: #15803d; }
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info { background: #eff6ff; color: #1e40af; }

/* ---- MODAL ---- */
.modal-content { border-radius: var(--radius); border: none; box-shadow: var(--shadow-xl); }
.modal-header { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--gray-200); }

/* ---- SEARCH BAR ---- */
.search-bar { position: relative; }
.search-bar .form-control { padding-left: 2.75rem; }
.search-bar .search-icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

/* ---- PAGINATION ---- */
.pagination .page-link {
  border-radius: var(--radius-sm) !important;
  border-color: var(--gray-300);
  color: var(--primary);
  font-weight: 600;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 4rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h5 { color: var(--gray-600); font-weight: 600; }
.empty-state p { color: var(--gray-400); }

/* ---- TOOLTIP CUSTOM ---- */
.tooltip-inner { border-radius: var(--radius-sm); font-size: .8125rem; }

/* ---- TOGGLE SIDEBAR BUTTON ---- */
.btn-toggle-sidebar {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 1.25rem;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  display: none;
}
@media (max-width: 991.98px) {
  .btn-toggle-sidebar { display: flex; align-items: center; }
}

/* ---- COURSE VIEWER ---- */
.lesson-sidebar { border-right: 1px solid var(--gray-200); height: calc(100vh - 60px); overflow-y: auto; position: sticky; top: 60px; }
.lesson-sidebar .module-header { background: var(--gray-100); padding: .75rem 1rem; font-weight: 700; font-size: .875rem; cursor: pointer; }
.lesson-item-nav { padding: .625rem 1rem .625rem 2.25rem; cursor: pointer; font-size: .875rem; border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.lesson-item-nav:hover, .lesson-item-nav.active { background: var(--primary-light); color: var(--primary); }
.lesson-item-nav.done { color: var(--success); }

/* ---- ADMIN PROSPETS TABLE ---- */
.prospect-row td { font-size: .875rem; }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: .375rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-dot { position: absolute; left: -1.5rem; top: .25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); }
