/*
Theme Name: Harmonitys LMS
Theme URI: https://lms.harmonitys.com
Author: Harmonitys
Author URI: https://harmonitys.com
Description: Thème WordPress Harmonitys pour plateforme LMS / e-learning — Design system prune, mauve et rosé.
Version: 1.2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduflow
Tags: education, e-learning, courses, lms, responsive
*/

/* ============================================================
   DESIGN SYSTEM — Harmonitys LMS "Prune"
   Deep plum, mauve & rosé highlights.
   ============================================================ */

:root {
  --background: hsl(320, 25%, 99%);
  --foreground: hsl(320, 30%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(320, 30%, 12%);
  --primary: hsl(325, 45%, 32%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-glow: hsl(340, 60%, 60%);
  --secondary: hsl(320, 25%, 96%);
  --secondary-foreground: hsl(320, 30%, 12%);
  --muted: hsl(320, 20%, 96%);
  --muted-foreground: hsl(320, 10%, 46%);
  --accent: hsl(330, 50%, 93%);
  --accent-foreground: hsl(325, 55%, 32%);
  --success: hsl(145, 55%, 40%);
  --success-foreground: hsl(0, 0%, 100%);
  --warning: hsl(35, 90%, 55%);
  --destructive: hsl(0, 75%, 55%);
  --border: hsl(320, 20%, 90%);
  --input: hsl(320, 20%, 90%);
  --ring: hsl(325, 45%, 32%);
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(310, 45%, 22%), hsl(325, 50%, 35%), hsl(345, 65%, 55%));
  --gradient-primary: linear-gradient(135deg, hsl(325, 45%, 32%), hsl(340, 60%, 60%));
  --gradient-card: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(320, 25%, 98%));
  --gradient-subtle: linear-gradient(180deg, hsl(330, 40%, 97%), hsl(0, 0%, 100%));

  --shadow-sm: 0 2px 8px -2px hsl(325 50% 30% / 0.10);
  --shadow-md: 0 8px 24px -8px hsl(325 50% 30% / 0.20);
  --shadow-lg: 0 20px 50px -12px hsl(325 50% 25% / 0.30);
  --shadow-glow: 0 0 40px hsl(340 60% 60% / 0.45);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

svg {
  display: block;
}

.ef-page-wrapper svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.ef-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ef-page-wrapper {
  min-height: 100vh;
  background-color: var(--background);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.ef-text-muted { color: var(--muted-foreground); }
.ef-text-primary { color: var(--primary); }
.ef-text-sm { font-size: 0.875rem; }
.ef-text-xs { font-size: 0.75rem; }
.ef-font-semibold { font-weight: 600; }
.ef-font-bold { font-weight: 700; }

.ef-bg-gradient-hero { background: var(--gradient-hero); }
.ef-bg-gradient-primary { background: var(--gradient-primary); }
.ef-bg-gradient-card { background: var(--gradient-card); }
.ef-bg-gradient-subtle { background: var(--gradient-subtle); }

.ef-shadow-glow { box-shadow: var(--shadow-glow); }
.ef-shadow-elegant { box-shadow: var(--shadow-lg); }

.ef-flex { display: flex; }
.ef-flex-center { display: flex; align-items: center; justify-content: center; }
.ef-items-center { align-items: center; }
.ef-justify-between { justify-content: space-between; }
.ef-gap-2 { gap: 0.5rem; }
.ef-gap-3 { gap: 0.75rem; }
.ef-gap-4 { gap: 1rem; }
.ef-gap-6 { gap: 1.5rem; }
.ef-gap-8 { gap: 2rem; }

.ef-grid { display: grid; }
.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-hidden { display: none; }
.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-width: 0;
}

/* ============================================================
   COMPONENTS — BADGE
   ============================================================ */

.ef-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.ef-badge-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.ef-badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.ef-badge-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.ef-badge-white {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.ef-badge-success {
  background-color: var(--success);
  color: var(--success-foreground);
}

.ef-badge-warning {
  background-color: var(--warning);
  color: hsl(320, 30%, 12%);
}

/* ============================================================
   COMPONENTS — BUTTON
   ============================================================ */

.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.ef-btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-color: transparent;
}
.ef-btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-md);
  color: var(--primary-foreground);
}

.ef-btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.ef-btn-secondary:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

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

.ef-btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
}
.ef-btn-ghost:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.ef-btn-white {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
}
.ef-btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
}

.ef-btn-outline-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.ef-btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.ef-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.ef-btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.ef-btn-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
}

/* ============================================================
   COMPONENTS — CARD
   ============================================================ */

.ef-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.ef-card:hover {
  box-shadow: var(--shadow-md);
}

.ef-card-gradient {
  background: var(--gradient-card);
}

.ef-card-content {
  padding: 1.5rem;
}

.ef-card-content-sm {
  padding: 1.25rem;
}

/* ============================================================
   COMPONENTS — INPUT
   ============================================================ */

.ef-input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.ef-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(325 45% 32% / 0.15);
}

.ef-input::placeholder {
  color: var(--muted-foreground);
}

.ef-input-wrapper {
  position: relative;
}

.ef-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.ef-input-with-icon {
  padding-left: 2.5rem;
}

/* ============================================================
   COMPONENTS — AVATAR
   ============================================================ */

.ef-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ef-avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.ef-avatar-md { width: 2.25rem; height: 2.25rem; }
.ef-avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }
.ef-avatar-xl { width: 4rem; height: 4rem; font-size: 1.25rem; }

.ef-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   COMPONENTS — PROGRESS BAR
   ============================================================ */

.ef-progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.ef-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* ============================================================
   COMPONENTS — TABS
   ============================================================ */

.ef-tabs-list {
  display: flex;
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 0.25rem;
  gap: 0.25rem;
}

.ef-tab-trigger {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted-foreground);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ef-tab-trigger.active,
.ef-tab-trigger:hover {
  background: #fff;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.ef-tab-content {
  display: none;
}

.ef-tab-content.active {
  display: block;
}

/* ============================================================
   COMPONENTS — ACCORDION
   ============================================================ */

.ef-accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.ef-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: var(--transition-smooth);
}

.ef-accordion-trigger:hover {
  background-color: var(--muted);
}

.ef-accordion-trigger svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ef-accordion-item.open .ef-accordion-trigger svg {
  transform: rotate(180deg);
}

.ef-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ef-accordion-item.open .ef-accordion-content {
  max-height: 2000px;
}

.ef-accordion-inner {
  padding: 0 1.25rem 1rem;
  background: var(--card);
}

/* ============================================================
   COMPONENTS — STAR RATING
   ============================================================ */

.ef-stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--warning);
}

.ef-stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.ef-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ef-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.ef-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.ef-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.ef-logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ef-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.ef-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ef-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.ef-nav-link:hover,
.ef-nav-link.active {
  color: var(--primary);
}

.ef-nav-link.active {
  color: var(--foreground);
}

.ef-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ef-search-wrapper {
  position: relative;
}

.ef-search-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.ef-search-input {
  width: 16rem;
  padding: 0.4375rem 0.875rem 0.4375rem 2.25rem;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.ef-search-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(325 45% 32% / 0.15);
}

.ef-search-input::placeholder {
  color: var(--muted-foreground);
}

.ef-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
}

.ef-mobile-menu-btn:hover {
  background-color: var(--secondary);
}

.ef-mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.ef-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.ef-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}

.ef-hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
  align-items: center;
}

.ef-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.ef-hero-badge {
  margin-bottom: 1.25rem;
  width: fit-content;
}

.ef-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.ef-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.ef-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.ef-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ef-hero-stat {
  display: flex;
  flex-direction: column;
}

.ef-hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ef-hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.ef-hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ef-hero-image {
  width: 100%;
  max-width: 28rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.ef-hero-floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ef-hero-floating-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-hero-floating-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.ef-hero-floating-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.ef-hero-floating-card-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.ef-hero-floating-card-bottom {
  bottom: -1.5rem;
  left: 1.5rem;
}

.ef-hero-floating-card-top {
  top: -1.5rem;
  right: 1.5rem;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */

.ef-section {
  padding: 4rem 0;
}

.ef-section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.ef-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.ef-section-subtitle {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */

.ef-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ef-category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.ef-category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.ef-category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-category-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ef-category-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.ef-category-count {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ============================================================
   COURSE CARDS
   ============================================================ */

.ef-courses-grid {
  display: grid;
  gap: 1.5rem;
}

.ef-course-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.ef-course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ef-course-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ef-course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ef-course-card:hover .ef-course-card-image img {
  transform: scale(1.05);
}

.ef-course-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.ef-course-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ef-course-card-category {
  margin-bottom: 0.5rem;
}

.ef-course-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.ef-course-card-instructor {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.ef-course-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ef-course-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ef-course-card-meta-item svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.ef-course-card-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ef-course-card-rating-value {
  color: var(--warning);
}

.ef-course-card-rating-count {
  color: var(--muted-foreground);
  font-weight: 400;
}

.ef-course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.ef-course-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ef-course-price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.ef-course-price-old {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

/* ============================================================
   MY COURSES — PROGRESS CARD
   ============================================================ */

.ef-progress-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.ef-progress-card:hover {
  box-shadow: var(--shadow-md);
}

.ef-progress-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ef-progress-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ef-progress-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.ef-progress-card:hover .ef-progress-card-overlay {
  opacity: 1;
}

.ef-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.ef-play-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.ef-play-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  fill: currentColor;
}

.ef-progress-card-body {
  padding: 1.25rem;
}

.ef-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ef-progress-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.ef-progress-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.ef-next-lesson {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ef-next-lesson svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--primary);
}

/* ============================================================
   WHY US SECTION
   ============================================================ */

.ef-why-section {
  background: var(--gradient-subtle);
  padding: 4rem 0;
}

.ef-feature-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

.ef-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ef-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-foreground);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ef-feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ef-feature-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.ef-cta-card {
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ef-cta-inner {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  color: #fff;
}

.ef-cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ef-cta-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

.ef-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* ============================================================
   FOOTER
   ============================================================ */

.ef-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.ef-footer-inner {
  padding: 3rem 0;
}

.ef-footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.ef-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 20rem;
}

.ef-footer-col-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.ef-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ef-footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.ef-footer-link:hover {
  color: var(--primary);
}

.ef-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ef-footer-legal {
  display: flex;
  gap: 1rem;
}

.ef-footer-legal a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.ef-footer-legal a:hover {
  color: var(--primary);
}

/* ============================================================
   PAGE: MES COURS
   ============================================================ */

.ef-page-hero {
  background: var(--gradient-hero);
  padding: 3rem 0;
  color: #fff;
}

.ef-page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.ef-page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.ef-page-content {
  padding: 3rem 0;
}

.ef-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.ef-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ef-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-foreground);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ef-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--foreground);
}

.ef-stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* ============================================================
   PAGE: APERÇU COURS (CoursePreview)
   ============================================================ */

.ef-course-preview-hero {
  background: var(--gradient-hero);
  padding: 3rem 0;
  color: #fff;
}

.ef-course-preview-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.ef-course-preview-main h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.ef-course-preview-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.ef-course-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.ef-course-preview-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ef-course-preview-meta-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ef-course-sticky-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 5rem;
}

.ef-course-sticky-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.ef-course-sticky-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ef-course-sticky-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.ef-course-sticky-body {
  padding: 1.5rem;
}

.ef-course-sticky-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ef-course-sticky-price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.ef-course-sticky-price-old {
  font-size: 1rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.ef-course-sticky-discount {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

.ef-course-sticky-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ef-course-sticky-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ef-course-sticky-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--success);
  flex-shrink: 0;
}

.ef-course-objectives {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ef-course-objective {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.ef-course-objective svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ============================================================
   PAGE: DÉTAIL COURS (CourseDetail — Lecteur)
   ============================================================ */

.ef-player-layout {
  display: grid;
  min-height: calc(100vh - 4rem);
}


.ef-player-course-hero {
  background: #f6f2f5;
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.ef-player-course-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: end;
}

.ef-player-course-hero-inner,
.ef-player-topbar,
.ef-video-area,
.ef-lesson-content-card,
.ef-player-controls {
  width: min(100% - 3rem, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.ef-video-area,
.ef-lesson-content-card,
.ef-player-controls {
  border-radius: 1rem;
}

.ef-video-area {
  margin-top: 1.5rem;
  overflow: hidden;
}

.ef-lesson-content-card,
.ef-player-controls {
  margin-top: 1rem;
}

.ef-player-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
}

.ef-player-course-badge {
  margin-bottom: 1rem;
}

.ef-player-course-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.ef-player-course-excerpt {
  margin: 0 0 1rem;
  max-width: 52rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.ef-player-course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  color: var(--muted-foreground);
}

.ef-player-course-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 500;
}

.ef-player-course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ef-player-course-meta-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ef-player-course-meta-item:first-of-type svg {
  fill: currentColor;
  color: #f4a100;
}

.ef-player-course-hero-side {
  align-self: center;
}

.ef-player-hero-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.ef-player-hero-progress-labels strong {
  color: var(--primary);
}

.ef-player-hero-progress {
  width: 100%;
}

.ef-player-hero-progress-note {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.ef-player-main {
  display: flex;
  flex-direction: column;
}

.ef-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  gap: 1rem;
}

.ef-player-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.ef-player-topbar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ef-player-topbar-chapter {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.ef-player-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ef-player-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ef-player-progress-wrapper .ef-progress {
  width: 8rem;
}

.ef-player-progress-text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.ef-video-area {
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ef-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.6);
}

.ef-video-play-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ef-video-play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.ef-video-play-btn svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
  fill: currentColor;
}

.ef-video-lesson-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.ef-video-lesson-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.ef-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ef-player-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ef-player-sidebar {
  border-left: 1px solid var(--border);
  background: var(--card);
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}

.ef-player-sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9375rem;
}

.ef-lesson-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--border);
}

.ef-lesson-item:hover {
  background-color: var(--muted);
}

.ef-lesson-item.active {
  background-color: var(--accent);
}

.ef-lesson-item.completed .ef-lesson-check {
  color: var(--success);
}

.ef-lesson-check {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.ef-lesson-check svg {
  width: 100%;
  height: 100%;
}

.ef-lesson-info {
  flex: 1;
  min-width: 0;
}

.ef-lesson-title {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.125rem;
}

.ef-lesson-duration {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ef-lesson-duration svg {
  width: 0.75rem;
  height: 0.75rem;
}

.ef-chapter-header {
  padding: 0.625rem 1.25rem;
  background-color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   INSTRUCTOR CARD
   ============================================================ */

.ef-instructor-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ef-instructor-info h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ef-instructor-role {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.ef-instructor-bio {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================================
   SEPARATOR
   ============================================================ */

.ef-separator {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

/* ============================================================
   BACK LINK
   ============================================================ */

.ef-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-bottom: 1.5rem;
}

.ef-back-link:hover {
  color: #fff;
}

.ef-back-link svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 640px) {
  .ef-footer-bottom {
    flex-direction: row;
  }
  .ef-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .ef-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .ef-hero-inner {
    grid-template-columns: 1fr 1fr;
    padding: 6rem 0;
  }
  .ef-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ef-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ef-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ef-cta-inner {
    grid-template-columns: 1fr 1fr;
    padding: 3.5rem;
  }
  .ef-cta-actions {
    justify-content: flex-end;
  }
  .ef-course-preview-layout {
    grid-template-columns: 1fr 22rem;
  }
  .ef-player-layout {
    grid-template-columns: 1fr 22rem;
  }
  .ef-mobile-menu-btn {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .ef-courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ef-categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .ef-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .ef-hero-inner {
    padding: 7rem 0;
  }
  .ef-search-wrapper {
    display: block;
  }
}

@media (max-width: 767px) {
  .ef-player-course-hero-inner,
  .ef-player-topbar,
  .ef-video-area,
  .ef-lesson-content-card,
  .ef-player-controls {
    width: min(100% - 1.5rem, 1200px);
  }
  .ef-nav {
    display: none;
  }
  .ef-mobile-menu-btn {
    display: flex;
  }
  .ef-search-wrapper {
    display: none;
  }
  .ef-hero-image-wrapper {
    display: none;
  }
  .ef-player-sidebar {
    display: none;
  }
  .ef-player-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.ef-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
}

.ef-mobile-menu.open {
  display: block;
}

.ef-mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 16rem;
  background: var(--background);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.ef-mobile-menu-panel .ef-nav-link {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9375rem;
}

.ef-mobile-menu-panel .ef-nav-link:hover {
  background-color: var(--secondary);
}

.ef-mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ef-mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ============================================================
   NOTIFICATIONS / TOAST (simple)
   ============================================================ */

.ef-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ef-toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: ef-toast-in 0.3s ease;
  max-width: 22rem;
}

.ef-toast-success {
  border-left: 3px solid var(--success);
}

@keyframes ef-toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */

.wp-block-image img {
  border-radius: var(--radius);
}

.aligncenter {
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 900px) {
  .ef-player-course-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* v8 layout fixes */
.ef-courses-grid-three {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ef-courses-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ef-courses-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ef-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================
   LESSON RICH CONTENT
   ============================================================ */
.single-ef_course .ef-lesson-rich-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.single-ef_course .ef-lesson-rich-content > *:first-child { margin-top: 0; }
.single-ef_course .ef-lesson-rich-content > *:last-child { margin-bottom: 0; }
.single-ef_course .ef-lesson-video-block {
  margin: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}
.single-ef_course .ef-lesson-section-title {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: rgb(40 21 34);
}
.single-ef_course .ef-lesson-paragraph {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #402638;
}
.single-ef_course .ef-lesson-inline-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.single-ef_course .ef-lesson-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
}
.single-ef_course .ef-lesson-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}
.single-ef_course .ef-lesson-rich-content > .ef-lesson-button,
.single-ef_course .ef-lesson-rich-content p + .ef-lesson-button,
.single-ef_course .ef-lesson-rich-content h2 + .ef-lesson-button,
.single-ef_course .ef-lesson-rich-content h3 + .ef-lesson-button {
  margin-top: 1rem;
}
.single-ef_course .ef-lesson-button:hover {
  text-decoration: none;
}
.single-ef_course .ef-lesson-button-download::before {
  content: '↓';
  font-size: 1rem;
  line-height: 1;
}

/* ============================================================
   PAGES LÉGALES — HARMONITYS
   ============================================================ */

.ef-legal-page {
  background:
    radial-gradient(circle at top left, hsl(340 70% 94% / 0.9), transparent 34rem),
    radial-gradient(circle at top right, hsl(325 55% 92% / 0.8), transparent 30rem),
    var(--background);
}

.ef-legal-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
}

.ef-legal-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
}

.ef-legal-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -6rem -9rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.16);
}

.ef-legal-kicker {
  margin: 0 0 .8rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}

.ef-legal-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 980px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.ef-legal-subtitle {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 1.15rem 0 0;
  color: hsl(0 0% 100% / 0.86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.ef-legal-content-section {
  padding: 0 0 clamp(3rem, 7vw, 6rem);
}

.ef-legal-container {
  max-width: 1050px;
}

.ef-legal-card {
  border: 1px solid hsl(320 20% 90% / .85);
  border-radius: 1.8rem;
  padding: clamp(1.35rem, 4vw, 3.25rem);
  background: hsl(0 0% 100% / .92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.ef-legal-card > *:first-child {
  margin-top: 0;
}

.ef-legal-intro {
  margin-bottom: 1.5rem;
  border: 1px solid hsl(325 45% 32% / .14);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, hsl(330 70% 97%), hsl(0 0% 100%));
  color: var(--foreground);
}

.ef-legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 2.25rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--secondary);
}

.ef-legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  border: 1px solid hsl(325 45% 32% / .14);
  border-radius: 999px;
  padding: .45rem .85rem;
  background: #fff;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 700;
}

.ef-legal-toc a:hover {
  transform: translateY(-1px);
  border-color: hsl(325 45% 32% / .35);
  box-shadow: var(--shadow-sm);
}

.ef-legal-card h2 {
  margin: 2.3rem 0 .85rem;
  color: var(--foreground);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ef-legal-card h3 {
  margin: 1.5rem 0 .65rem;
  color: var(--primary);
  font-size: 1.12rem;
}

.ef-legal-card p,
.ef-legal-card li {
  color: hsl(320 18% 24%);
}

.ef-legal-card p {
  margin: .75rem 0;
}

.ef-legal-card ul,
.ef-legal-card ol {
  margin: .75rem 0 1rem 1.25rem;
}

.ef-legal-card li + li {
  margin-top: .35rem;
}

.ef-legal-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ef-legal-info-card,
.ef-legal-note {
  margin: 1rem 0;
  border-radius: 1.15rem;
  padding: 1rem 1.15rem;
}

.ef-legal-info-card {
  border: 1px solid hsl(325 45% 32% / .12);
  background: hsl(330 50% 97%);
}

.ef-legal-info-card p {
  margin: .25rem 0;
}

.ef-legal-note {
  border: 1px solid hsl(35 90% 55% / .24);
  background: hsl(35 100% 96%);
  color: hsl(28 80% 24%) !important;
}

.ef-legal-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ef-legal-table th,
.ef-legal-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.ef-legal-table th {
  background: var(--secondary);
  color: var(--foreground);
  font-size: .9rem;
  font-weight: 800;
}

.ef-legal-table tr:last-child td {
  border-bottom: 0;
}

.ef-legal-update {
  margin-top: 2rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground) !important;
  font-size: .95rem;
  font-weight: 700;
}

.ef-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
}

@media (max-width: 720px) {
  .ef-legal-hero {
    padding-top: 2rem;
  }

  .ef-legal-hero-card,
  .ef-legal-card {
    border-radius: 1.25rem;
  }

  .ef-legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ef-legal-toc a {
    width: 100%;
    justify-content: center;
  }
}


/* Harmonitys — pagination catalogue horizontale */
.ef-pagination-wrap,
.navigation.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ef-pagination-wrap ul.page-numbers,
.navigation.pagination .nav-links,
ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-pagination-wrap ul.page-numbers li,
ul.page-numbers li {
  display: inline-flex !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-pagination-wrap .page-numbers,
.navigation.pagination .page-numbers,
ul.page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  height: 2.55rem;
  padding: 0 .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.ef-pagination-wrap a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover,
ul.page-numbers a.page-numbers:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.ef-pagination-wrap .page-numbers.current,
.navigation.pagination .page-numbers.current,
ul.page-numbers .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.ef-pagination-wrap .page-numbers.prev,
.ef-pagination-wrap .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next,
ul.page-numbers .page-numbers.prev,
ul.page-numbers .page-numbers.next {
  min-width: auto;
  padding-inline: 1.05rem;
}

@media (max-width: 560px) {
  .ef-pagination-wrap ul.page-numbers,
  .navigation.pagination .nav-links,
  ul.page-numbers {
    gap: .4rem;
  }

  .ef-pagination-wrap .page-numbers,
  .navigation.pagination .page-numbers,
  ul.page-numbers .page-numbers {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .7rem;
    font-size: .85rem;
  }
}
