/* ================================================================
   EduFlow LMS — Design System Complet
   Thème enfant BuddyBoss — Coral Orange & Amber
   ================================================================ */

/* ── 1. TOKENS CSS ──────────────────────────────────────────── */
:root {
  --ef-primary:        hsl(18, 92%, 52%);
  --ef-primary-dark:   hsl(14, 88%, 44%);
  --ef-primary-light:  hsl(22, 95%, 62%);
  --ef-amber:          hsl(38, 95%, 58%);
  --ef-primary-fg:     #fff;

  --ef-accent:         hsl(35, 90%, 92%);
  --ef-accent-fg:      hsl(18, 92%, 38%);

  --ef-bg:             hsl(30, 40%, 99%);
  --ef-bg-subtle:      hsl(35, 80%, 97%);
  --ef-bg-muted:       hsl(30, 30%, 96%);
  --ef-surface:        #fff;

  --ef-fg:             hsl(20, 35%, 12%);
  --ef-fg-muted:       hsl(20, 12%, 46%);
  --ef-fg-subtle:      hsl(20, 10%, 62%);

  --ef-border:         hsl(30, 25%, 90%);
  --ef-border-strong:  hsl(30, 20%, 82%);

  --ef-success:        hsl(145, 65%, 42%);
  --ef-success-bg:     hsl(145, 60%, 94%);
  --ef-warning:        hsl(42, 95%, 52%);
  --ef-warning-bg:     hsl(42, 90%, 94%);
  --ef-danger:         hsl(0, 75%, 55%);
  --ef-danger-bg:      hsl(0, 80%, 95%);

  --ef-grad-hero:    linear-gradient(135deg, hsl(12,90%,50%), hsl(22,95%,55%), hsl(38,95%,58%));
  --ef-grad-primary: linear-gradient(135deg, hsl(18,92%,52%), hsl(38,95%,58%));
  --ef-grad-subtle:  linear-gradient(180deg, hsl(35,80%,97%), #fff);
  --ef-grad-dark:    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);

  --ef-shadow-sm:      0 1px 3px hsl(18 70% 40%/.08);
  --ef-shadow-md:      0 4px 16px -2px hsl(18 70% 40%/.14);
  --ef-shadow-lg:      0 20px 50px -12px hsl(18 70% 40%/.28);
  --ef-shadow-glow:    0 0 40px hsl(38 95% 58%/.45);
  --ef-shadow-card:    0 8px 30px -8px hsl(18 70% 40%/.22);

  --ef-font:    'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --ef-radius:  .75rem;
  --ef-radius-lg: 1rem;
  --ef-radius-xl: 1.5rem;
  --ef-radius-full: 9999px;
  --ef-transition: all .2s cubic-bezier(.4,0,.2,1);
  --ef-transition-slow: all .35s cubic-bezier(.4,0,.2,1);
}

/* ── 2. RESET CIBLÉ (ne touche pas BuddyBoss) ──────────────── */
.ef-wrap, .ef-wrap * { box-sizing: border-box; }
.ef-wrap { font-family: var(--ef-font); color: var(--ef-fg); }
.ef-wrap img { max-width: 100%; height: auto; display: block; }
.ef-wrap a { color: var(--ef-primary); text-decoration: none; transition: var(--ef-transition); }
.ef-wrap a:hover { color: var(--ef-primary-dark); }
.ef-wrap ul, .ef-wrap ol { list-style: none; margin: 0; padding: 0; }

/* ── 3. OVERRIDE BUDDYBOSS — Pleine largeur LMS ─────────────── */
/* Supprime toutes les contraintes de largeur BuddyBoss sur les pages LMS */
body.ef-fullwidth,
body.ef-fullwidth #page,
body.ef-fullwidth #content,
body.ef-fullwidth #primary,
body.ef-fullwidth .site-main,
body.ef-fullwidth main,
body.ef-fullwidth .bb-grid,
body.ef-fullwidth .buddyboss-wrap,
body.ef-fullwidth #buddypress-wrap,
body.ef-fullwidth .bb-content-area,
body.ef-fullwidth .site-content,
body.ef-fullwidth .content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* Supprimer le padding/margin de l'article/entry WordPress */
body.ef-fullwidth .entry-content,
body.ef-fullwidth .page-content,
body.ef-fullwidth article.page,
body.ef-fullwidth .hentry {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Masquer la sidebar BuddyBoss */
body.ef-fullwidth #secondary,
body.ef-fullwidth .sidebar,
body.ef-fullwidth .widget-area,
body.ef-fullwidth aside { display: none !important; }

/* Masquer le titre de page WordPress */
body.ef-fullwidth .entry-header,
body.ef-fullwidth .page-header,
body.ef-fullwidth .bb-page-header { display: none !important; }

/* Supprimer les paddings du layout BuddyBoss */
body.ef-fullwidth .bb-grid > .bb-grid-cell,
body.ef-fullwidth .bb-grid > .bb-grid-cell:first-child {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Override du container BuddyBoss global */
body.ef-fullwidth .bb-page-content-wrap {
  padding: 0 !important;
  max-width: 100% !important;
}

/* BuddyBoss : classe full-width native */
body.full-width-layout #primary,
body.full-width-layout .site-main,
body.full-width-layout .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* BuddyBoss : forcer le layout sans sidebar */
body.bb-no-sidebar #primary { width: 100% !important; max-width: 100% !important; }
body.bb-no-sidebar #secondary { display: none !important; }

/* BuddyBoss Platform : override du wrapper principal */
body.ef-fullwidth .bb-wrap,
body.ef-fullwidth .bb-page-content,
body.ef-fullwidth .bb-page-content-inner {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Supprimer le padding-top généré par BuddyBoss pour le header sticky */
body.ef-fullwidth .bb-content-area > .bb-grid {
  padding-top: 0 !important;
}

/* BuddyBoss : masquer le breadcrumb sur les pages LMS */
body.ef-fullwidth .bb-breadcrumbs,
body.ef-fullwidth .bb-breadcrumbs-wrap { display: none !important; }

/* ── 4. CONTAINER ───────────────────────────────────────────── */
.ef-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 768px) { .ef-container { padding: 0 1rem; } }

.ef-section   { padding: 5rem 0; }
.ef-section--sm { padding: 3rem 0; }

/* ── 5. BOUTONS ─────────────────────────────────────────────── */
.ef-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.5rem;
  font-family: var(--ef-font); font-size: .875rem; font-weight: 600; line-height: 1;
  border-radius: var(--ef-radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: var(--ef-transition);
  white-space: nowrap; user-select: none;
}
.ef-btn:focus-visible { outline: 2px solid var(--ef-primary); outline-offset: 2px; }

.ef-btn--primary { background: var(--ef-grad-primary); color: #fff; box-shadow: var(--ef-shadow-md); }
.ef-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--ef-shadow-lg); color: #fff; }

.ef-btn--white { background: #fff; color: var(--ef-primary); box-shadow: var(--ef-shadow-md); }
.ef-btn--white:hover { transform: translateY(-2px); box-shadow: var(--ef-shadow-lg); color: var(--ef-primary-dark); }

.ef-btn--glass { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.ef-btn--glass:hover { background: rgba(255,255,255,.25); color: #fff; }

.ef-btn--outline { background: transparent; color: var(--ef-primary); border-color: var(--ef-primary); }
.ef-btn--outline:hover { background: var(--ef-accent); }

.ef-btn--ghost { background: transparent; color: var(--ef-fg-muted); border-color: var(--ef-border); }
.ef-btn--ghost:hover { background: var(--ef-bg-muted); color: var(--ef-fg); }

.ef-btn--sm  { padding: .5rem 1rem; font-size: .75rem; }
.ef-btn--lg  { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--ef-radius-lg); }
.ef-btn--xl  { padding: 1.125rem 2.25rem; font-size: 1.125rem; border-radius: var(--ef-radius-lg); }
.ef-btn--full { width: 100%; }
.ef-btn--icon { padding: .625rem; border-radius: var(--ef-radius); }

/* ── 6. BADGES ──────────────────────────────────────────────── */
.ef-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .6rem; font-size: .7rem; font-weight: 700;
  border-radius: var(--ef-radius-full); line-height: 1;
}
.ef-badge--primary { background: var(--ef-accent);      color: var(--ef-accent-fg); }
.ef-badge--success { background: var(--ef-success-bg);  color: var(--ef-success); }
.ef-badge--warning { background: var(--ef-warning-bg);  color: hsl(30,80%,35%); }
.ef-badge--danger  { background: var(--ef-danger-bg);   color: var(--ef-danger); }
.ef-badge--dark    { background: var(--ef-fg);          color: #fff; }
.ef-badge--muted   { background: var(--ef-bg-muted);    color: var(--ef-fg-muted); }
.ef-badge--gradient { background: var(--ef-grad-primary); color: #fff; }

/* ── 7. HEADER LMS ──────────────────────────────────────────── */
.ef-header {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ef-border);
  transition: var(--ef-transition);
}
.ef-header.scrolled { box-shadow: var(--ef-shadow-md); }
.ef-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}

.ef-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.ef-logo__icon {
  width: 40px; height: 40px; border-radius: var(--ef-radius);
  background: var(--ef-grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--ef-shadow-md);
}
.ef-logo__icon svg { width: 22px; height: 22px; }
.ef-logo__name { font-size: 1.25rem; font-weight: 800; color: var(--ef-fg); letter-spacing: -.03em; }
.ef-logo__name span { color: var(--ef-primary); }

.ef-nav { display: flex; align-items: center; gap: .25rem; }
.ef-nav__link {
  padding: .5rem 1rem; font-size: .875rem; font-weight: 500;
  color: var(--ef-fg-muted); border-radius: var(--ef-radius);
  transition: var(--ef-transition); text-decoration: none;
}
.ef-nav__link:hover, .ef-nav__link.active { color: var(--ef-primary); background: var(--ef-accent); }

.ef-header__search { flex: 1; max-width: 320px; position: relative; }
.ef-header__search input {
  width: 100%; padding: .5rem 1rem .5rem 2.5rem;
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius-full);
  background: var(--ef-bg-muted); font-size: .875rem; color: var(--ef-fg);
  font-family: var(--ef-font); transition: var(--ef-transition);
}
.ef-header__search input:focus {
  outline: none; border-color: var(--ef-primary); background: #fff;
  box-shadow: 0 0 0 3px hsl(18 92% 52%/.12);
}
.ef-header__search-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--ef-fg-subtle); pointer-events: none;
}
.ef-header__search-icon svg { width: 16px; height: 16px; }

.ef-header__actions { display: flex; align-items: center; gap: .5rem; }
.ef-header__icon-btn {
  width: 40px; height: 40px; border-radius: var(--ef-radius);
  border: 1px solid var(--ef-border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ef-fg-muted); cursor: pointer; transition: var(--ef-transition);
  position: relative;
}
.ef-header__icon-btn:hover { background: var(--ef-accent); color: var(--ef-primary); border-color: var(--ef-primary); }
.ef-header__icon-btn svg { width: 18px; height: 18px; }
.ef-header__notif-dot {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; border-radius: var(--ef-radius-full);
  background: var(--ef-primary); color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.ef-avatar {
  width: 40px; height: 40px; border-radius: var(--ef-radius-full);
  background: var(--ef-grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .875rem;
  overflow: hidden; cursor: pointer;
  border: 2px solid var(--ef-border); transition: var(--ef-transition);
}
.ef-avatar:hover { border-color: var(--ef-primary); }
.ef-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ef-mobile-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius);
  background: transparent; align-items: center; justify-content: center;
  color: var(--ef-fg); cursor: pointer;
}
.ef-mobile-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1024px) {
  .ef-nav, .ef-header__search { display: none; }
  .ef-mobile-toggle { display: flex; }
}
.ef-mobile-menu {
  display: none; position: fixed; inset: 72px 0 0;
  background: var(--ef-surface); z-index: 9998;
  padding: 1.5rem; flex-direction: column; gap: .5rem;
  border-top: 1px solid var(--ef-border); overflow-y: auto;
}
.ef-mobile-menu.open { display: flex; }
.ef-mobile-menu .ef-nav__link { padding: .875rem 1rem; border: 1px solid var(--ef-border); font-size: 1rem; }

/* ── 8. HERO ────────────────────────────────────────────────── */
.ef-hero {
  background: var(--ef-grad-hero);
  padding: 5rem 0; position: relative; overflow: hidden; min-height: 560px;
}
.ef-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='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ef-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .ef-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .ef-hero__image { order: -1; }
}

.ef-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem; background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--ef-radius-full);
  color: #fff; font-size: .875rem; font-weight: 500; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px); width: fit-content;
}
@media (max-width: 768px) { .ef-hero__badge { margin: 0 auto 1.5rem; } }

.ef-hero__title {
  font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -.03em;
}
.ef-hero__title .ef-gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.6) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ef-hero__subtitle {
  font-size: 1.125rem; color: rgba(255,255,255,.85);
  line-height: 1.7; margin-bottom: 2rem; max-width: 520px;
}
@media (max-width: 768px) { .ef-hero__subtitle { margin: 0 auto 2rem; } }

.ef-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
@media (max-width: 768px) { .ef-hero__cta { justify-content: center; } }

.ef-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.ef-hero__stat-val { font-size: 1.875rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .25rem; }
.ef-hero__stat-lbl { font-size: .875rem; color: rgba(255,255,255,.75); }

.ef-hero__image { position: relative; display: flex; justify-content: center; }
.ef-hero__image-halo {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.ef-hero__image img {
  border-radius: var(--ef-radius-xl); box-shadow: var(--ef-shadow-lg);
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  aspect-ratio: 16/9; object-fit: cover;
}

/* ── 9. SECTION HEADER ──────────────────────────────────────── */
.ef-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.ef-section-title { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 800; color: var(--ef-fg); margin-bottom: .5rem; }
.ef-section-subtitle { font-size: 1.125rem; color: var(--ef-fg-muted); max-width: 560px; }

/* ── 10. GRILLE ─────────────────────────────────────────────── */
.ef-grid { display: grid; gap: 1.5rem; }
.ef-grid--2 { grid-template-columns: repeat(2,1fr); }
.ef-grid--3 { grid-template-columns: repeat(3,1fr); }
.ef-grid--4 { grid-template-columns: repeat(4,1fr); }
.ef-grid--6 { grid-template-columns: repeat(6,1fr); }
@media (max-width: 1024px) {
  .ef-grid--4 { grid-template-columns: repeat(3,1fr); }
  .ef-grid--6 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .ef-grid--3, .ef-grid--4 { grid-template-columns: repeat(2,1fr); }
  .ef-grid--6 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .ef-grid--2, .ef-grid--3, .ef-grid--4, .ef-grid--6 { grid-template-columns: 1fr; }
}

/* ── 11. CATÉGORIES ─────────────────────────────────────────── */
.ef-cat-card {
  background: var(--ef-surface); border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius-lg); padding: 1.5rem;
  text-align: center; cursor: pointer; transition: var(--ef-transition);
  text-decoration: none; display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
}
.ef-cat-card:hover { transform: translateY(-4px); box-shadow: var(--ef-shadow-card); border-color: var(--ef-primary); }
.ef-cat-card__icon {
  width: 56px; height: 56px; border-radius: var(--ef-radius-lg);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ef-cat-card__icon svg { width: 24px; height: 24px; }
.ef-cat-card__name { font-size: .875rem; font-weight: 700; color: var(--ef-fg); }
.ef-cat-card__count { font-size: .75rem; color: var(--ef-fg-muted); }
.ef-cat--dev    { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.ef-cat--design { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.ef-cat--mkt    { background: var(--ef-grad-primary); }
.ef-cat--photo  { background: linear-gradient(135deg,#0ea5e9,#06b6d4); }
.ef-cat--biz    { background: linear-gradient(135deg,#10b981,#059669); }
.ef-cat--data   { background: linear-gradient(135deg,#14b8a6,#0891b2); }

/* ── 12. CARD COURS ─────────────────────────────────────────── */
.ef-course-card {
  background: var(--ef-surface); border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius-lg); overflow: hidden;
  transition: var(--ef-transition); display: flex; flex-direction: column;
}
.ef-course-card:hover { transform: translateY(-4px); box-shadow: var(--ef-shadow-card); border-color: var(--ef-border-strong); }

.ef-course-card__thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--ef-bg-muted);
}
.ef-course-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ef-course-card:hover .ef-course-card__thumb img { transform: scale(1.05); }

.ef-course-card__overlay {
  position: absolute; inset: 0; background: var(--ef-grad-dark);
  opacity: 0; transition: var(--ef-transition);
  display: flex; align-items: center; justify-content: center;
}
.ef-course-card:hover .ef-course-card__overlay { opacity: 1; }
.ef-course-card__play {
  width: 52px; height: 52px; border-radius: var(--ef-radius-full);
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--ef-primary); box-shadow: var(--ef-shadow-lg);
  transform: scale(.8); transition: var(--ef-transition);
}
.ef-course-card:hover .ef-course-card__play { transform: scale(1); }
.ef-course-card__play svg { width: 22px; height: 22px; }

.ef-course-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.ef-course-card__wishlist {
  position: absolute; top: .75rem; right: .75rem;
  width: 32px; height: 32px; border-radius: var(--ef-radius-full);
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ef-fg-muted); cursor: pointer; transition: var(--ef-transition);
}
.ef-course-card__wishlist:hover, .ef-course-card__wishlist.active { color: var(--ef-danger); }
.ef-course-card__wishlist svg { width: 16px; height: 16px; }

.ef-course-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.ef-course-card__cat { font-size: .75rem; font-weight: 700; color: var(--ef-primary); text-transform: uppercase; letter-spacing: .05em; }
.ef-course-card__title {
  font-size: 1rem; font-weight: 700; color: var(--ef-fg); line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ef-course-card__instructor {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--ef-fg-muted);
}
.ef-course-card__instructor img { width: 24px; height: 24px; border-radius: var(--ef-radius-full); object-fit: cover; }

.ef-course-card__meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--ef-fg-muted); }
.ef-course-card__meta-item { display: flex; align-items: center; gap: .25rem; }
.ef-course-card__meta-item svg { width: 13px; height: 13px; }

.ef-course-card__footer {
  padding: 1rem 1.25rem; border-top: 1px solid var(--ef-border);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.ef-price { display: flex; align-items: baseline; gap: .5rem; }
.ef-price__current { font-size: 1.25rem; font-weight: 800; color: var(--ef-primary); }
.ef-price__old { font-size: .875rem; color: var(--ef-fg-subtle); text-decoration: line-through; }
.ef-price--free { font-size: 1.25rem; font-weight: 800; color: var(--ef-success); }

/* Variante enrolled */
.ef-course-card--enrolled .ef-course-card__progress { padding: 1rem 1.25rem; border-top: 1px solid var(--ef-border); background: var(--ef-bg-subtle); }
.ef-progress-bar { height: 6px; background: var(--ef-border); border-radius: var(--ef-radius-full); overflow: hidden; margin-bottom: .5rem; }
.ef-progress-bar__fill { height: 100%; background: var(--ef-grad-primary); border-radius: var(--ef-radius-full); transition: width .6s ease; }
.ef-progress-info { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ef-fg-muted); }
.ef-progress-info strong { color: var(--ef-primary); }
.ef-next-lesson { padding: .75rem 1.25rem; background: var(--ef-bg-muted); font-size: .75rem; color: var(--ef-fg-muted); display: flex; align-items: center; gap: .5rem; }
.ef-next-lesson svg { color: var(--ef-primary); flex-shrink: 0; width: 14px; height: 14px; }

/* ── 13. TABS ───────────────────────────────────────────────── */
.ef-tabs { display: flex; gap: .25rem; background: var(--ef-bg-muted); border-radius: var(--ef-radius); padding: .25rem; width: fit-content; margin-bottom: 2rem; }
.ef-tab { padding: .5rem 1.25rem; font-size: .875rem; font-weight: 600; color: var(--ef-fg-muted); border-radius: calc(var(--ef-radius) - 2px); cursor: pointer; transition: var(--ef-transition); border: none; background: transparent; font-family: var(--ef-font); }
.ef-tab.active { background: var(--ef-surface); color: var(--ef-primary); box-shadow: var(--ef-shadow-sm); }
.ef-tab:hover:not(.active) { color: var(--ef-fg); }
.ef-tab-content { display: none; }
.ef-tab-content.active { display: block; }

/* ── 14. SECTION MES COURS ──────────────────────────────────── */
.ef-my-courses { background: var(--ef-grad-subtle); }

/* ── 15. FEATURE CARDS ──────────────────────────────────────── */
.ef-feature-card {
  background: var(--ef-surface); border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius-lg); padding: 2rem; transition: var(--ef-transition);
}
.ef-feature-card:hover { transform: translateY(-4px); box-shadow: var(--ef-shadow-card); }
.ef-feature-card__icon {
  width: 56px; height: 56px; border-radius: var(--ef-radius-lg);
  background: var(--ef-accent); display: flex; align-items: center;
  justify-content: center; color: var(--ef-primary); margin-bottom: 1.25rem;
}
.ef-feature-card__icon svg { width: 28px; height: 28px; }
.ef-feature-card__title { font-size: 1.25rem; font-weight: 700; color: var(--ef-fg); margin-bottom: .75rem; }
.ef-feature-card__desc { color: var(--ef-fg-muted); line-height: 1.7; }

/* ── 16. CTA BANNER ─────────────────────────────────────────── */
.ef-cta-banner {
  background: var(--ef-grad-hero); border-radius: var(--ef-radius-xl);
  padding: 3rem; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 2rem; position: relative; overflow: hidden;
}
.ef-cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: var(--ef-radius-full);
  background: rgba(255,255,255,.06); pointer-events: none;
}
@media (max-width: 768px) { .ef-cta-banner { grid-template-columns: 1fr; text-align: center; padding: 2rem; } .ef-cta-banner__actions { justify-content: center; } }
.ef-cta-banner__title { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.ef-cta-banner__sub { color: rgba(255,255,255,.8); }
.ef-cta-banner__actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }

/* ── 17. FOOTER ─────────────────────────────────────────────── */
.ef-footer { background: var(--ef-fg); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.ef-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 1024px) { .ef-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px)  { .ef-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.ef-footer__brand .ef-logo__name { color: #fff; }
.ef-footer__desc { margin-top: 1rem; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 300px; }
.ef-footer__col-title { font-size: .75rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .08em; }
.ef-footer__links { display: flex; flex-direction: column; gap: .75rem; }
.ef-footer__link { font-size: .875rem; color: rgba(255,255,255,.6); text-decoration: none; transition: var(--ef-transition); }
.ef-footer__link:hover { color: var(--ef-amber); }

.ef-footer__bottom {
  padding: 1.5rem 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.ef-footer__copy { font-size: .875rem; color: rgba(255,255,255,.45); }
.ef-footer__legal { display: flex; gap: 1.5rem; }
.ef-footer__legal a { font-size: .875rem; color: rgba(255,255,255,.45); text-decoration: none; transition: var(--ef-transition); }
.ef-footer__legal a:hover { color: #fff; }

/* ── 18. ÉTOILES ────────────────────────────────────────────── */
.ef-stars { display: inline-flex; align-items: center; gap: 1px; }
.ef-star--full, .ef-star--half { color: var(--ef-warning); }
.ef-star--empty { color: var(--ef-border-strong); }
.ef-stars__num { font-size: .75rem; color: var(--ef-fg-muted); margin-left: .25rem; }

/* ── 19. PAGINATION ─────────────────────────────────────────── */
.ef-pagination { margin-top: 3rem; }
.ef-pagination__list { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.ef-pagination__item a, .ef-pagination__item span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--ef-radius);
  border: 1px solid var(--ef-border); font-size: .875rem; font-weight: 500;
  color: var(--ef-fg-muted); text-decoration: none; transition: var(--ef-transition);
}
.ef-pagination__item a:hover { border-color: var(--ef-primary); color: var(--ef-primary); background: var(--ef-accent); }
.ef-pagination__item .current { background: var(--ef-grad-primary); color: #fff; border-color: transparent; }

/* ── 20. TOAST ──────────────────────────────────────────────── */
#ef-toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99999;
  display: flex; flex-direction: column; gap: .75rem; pointer-events: none;
}
.ef-toast {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; background: var(--ef-surface);
  border: 1px solid var(--ef-border); border-radius: var(--ef-radius-lg);
  box-shadow: var(--ef-shadow-lg); font-size: .875rem; font-weight: 500;
  color: var(--ef-fg); pointer-events: all; max-width: 360px;
  animation: efToastIn .3s ease;
}
.ef-toast--success { border-left: 4px solid var(--ef-success); }
.ef-toast--error   { border-left: 4px solid var(--ef-danger); }
.ef-toast--info    { border-left: 4px solid var(--ef-primary); }
.ef-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes efToastIn { from { opacity:0; transform: translateX(100%); } to { opacity:1; transform: translateX(0); } }

/* ── 21. SKELETON ───────────────────────────────────────────── */
.ef-skeleton {
  background: linear-gradient(90deg, var(--ef-bg-muted) 25%, var(--ef-border) 50%, var(--ef-bg-muted) 75%);
  background-size: 200% 100%; animation: efSkeleton 1.5s infinite; border-radius: var(--ef-radius);
}
@keyframes efSkeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 22. ANIMATIONS ─────────────────────────────────────────── */
@keyframes efFadeUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.ef-animate { animation: efFadeUp .5s ease both; }
.ef-grid > *:nth-child(1) { animation-delay: 0ms; }
.ef-grid > *:nth-child(2) { animation-delay: 60ms; }
.ef-grid > *:nth-child(3) { animation-delay: 120ms; }
.ef-grid > *:nth-child(4) { animation-delay: 180ms; }
.ef-grid > *:nth-child(5) { animation-delay: 240ms; }
.ef-grid > *:nth-child(6) { animation-delay: 300ms; }

/* ── 23. UTILITAIRES ────────────────────────────────────────── */
.ef-text-center { text-align: center; }
.ef-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ef-no-results { text-align: center; padding: 4rem; color: var(--ef-fg-muted); grid-column: 1/-1; }
@media (max-width: 768px) { .ef-hide-mobile { display: none !important; } }
@media (min-width: 769px) { .ef-hide-desktop { display: none !important; } }
