/*
Theme Name: Astra Lammim
Theme URI: https://lam-mim-academy.com
Description: Child theme pour Lam Mim Academy — Proposition B "رحلة البراعم"
Author: Lam Mim Academy
Author URI: https://lam-mim-academy.com
Template: astra
Version: 1.0.0
Text Domain: astra-lammim
*/

/* ============================================================
   VARIABLES CSS — Charte Lam Mim Academy (Proposal B)
   ============================================================ */
:root {
  /* Couleurs principales */
  --lm-primary:    #2DB87A;
  --lm-primary-dark: #1E9460;
  --lm-primary-light: #E8FBF2;
  --lm-yellow:     #FFD93D;
  --lm-orange:     #FF8C42;
  --lm-purple:     #9B59B6;
  --lm-blue:       #3AAFDA;
  --lm-pink:       #FF6B9D;
  --lm-dark:       #1A2E23;
  --lm-text:       #2C3E50;
  --lm-muted:      #6B7C8F;
  --lm-white:      #FFFFFF;
  --lm-bg:         #FAFFFE;

  /* Typographie */
  --lm-font-main:  'Baloo Bhaijaan 2', 'Cairo', 'Segoe UI', sans-serif;

  /* Espacements */
  --lm-radius-sm:  12px;
  --lm-radius-md:  20px;
  --lm-radius-lg:  28px;
  --lm-radius-xl:  50px;

  /* Ombres */
  --lm-shadow-sm:  0 4px 16px rgba(45,184,122,.15);
  --lm-shadow-md:  0 8px 32px rgba(45,184,122,.2);
  --lm-shadow-lg:  0 16px 48px rgba(45,184,122,.25);
  --lm-shadow-card: 0 8px 32px rgba(0,0,0,.08);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--lm-font-main) !important;
  color: var(--lm-text);
  background: var(--lm-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lm-font-main);
  font-weight: 800;
  color: var(--lm-text);
  line-height: 1.3;
}

p {
  line-height: 1.8;
  color: var(--lm-muted);
}

a {
  color: var(--lm-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--lm-primary-dark); }

/* ============================================================
   ASTRA OVERRIDES — Masquer header/footer par défaut Astra
   sur les pages avec template lammim
   ============================================================ */
body.lammim-full-page .ast-hfb-header,
body.lammim-full-page #masthead,
body.lammim-full-page .ast-footer-overlay,
body.lammim-full-page footer.ast-footer-2,
body.lammim-full-page #colophon {
  display: none !important;
}

body.lammim-full-page #page,
body.lammim-full-page .ast-container,
body.lammim-full-page .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ============================================================
   BOUTONS GLOBAUX
   ============================================================ */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--lm-font-main);
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.lm-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.lm-btn:focus-visible {
  outline: 3px solid var(--lm-yellow);
  outline-offset: 3px;
}

.lm-btn-primary {
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white !important;
  padding: 14px 30px;
  border-radius: var(--lm-radius-md);
  font-size: 16px;
  box-shadow: var(--lm-shadow-sm);
}
.lm-btn-primary:hover {
  box-shadow: var(--lm-shadow-md);
  color: white !important;
}

.lm-btn-yellow {
  background: var(--lm-yellow);
  color: var(--lm-text) !important;
  padding: 12px 26px;
  border-radius: var(--lm-radius-md);
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(255,217,61,.5);
}
.lm-btn-yellow:hover {
  box-shadow: 0 8px 22px rgba(255,217,61,.6);
  color: var(--lm-text) !important;
}

.lm-btn-outline {
  background: transparent;
  color: var(--lm-primary-dark) !important;
  padding: 12px 24px;
  border-radius: var(--lm-radius-md);
  font-size: 16px;
  border: 2px solid var(--lm-primary);
}
.lm-btn-outline:hover {
  background: var(--lm-primary-light);
  color: var(--lm-primary-dark) !important;
}

/* ============================================================
   NAVBAR LAMMIM
   ============================================================ */
.lm-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(45,184,122,.12);
  direction: rtl;
}

/* Groupe droit : logo + liens principaux */
.lm-nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
  direction: rtl;
}

/* Groupe gauche : panier + auth */
.lm-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  direction: rtl;
}

.lm-nav-action-link {
  color: var(--lm-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--lm-font-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.lm-nav-action-link:hover { color: var(--lm-primary); }

.lm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.lm-logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  box-shadow: var(--lm-shadow-sm);
  flex-shrink: 0;
  font-family: var(--lm-font-main);
}
.lm-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.lm-logo-txt strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--lm-primary-dark);
  font-family: var(--lm-font-main);
}
.lm-logo-txt span {
  font-size: 11px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
}

.lm-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.lm-nav-links a {
  color: var(--lm-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--lm-font-main);
}
.lm-nav-links a:hover { color: var(--lm-primary); }

/* Cart icon */
.lm-cart-link {
  color: var(--lm-text);
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: background .18s;
  text-decoration: none;
}
.lm-cart-link:hover { background: rgba(30,144,100,.08); color: var(--lm-primary); }
.lm-cart-wrap { position: relative; display: inline-flex; }
.lm-cart-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  background: #E67E22;
  color: #fff;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lm-font-main);
  line-height: 1;
}

/* Hamburger mobile */
.lm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.lm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lm-text);
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu overlay */
.lm-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
}
.lm-mobile-menu.open { display: flex; }
.lm-mobile-menu a {
  font-size: 22px;
  font-weight: 800;
  color: var(--lm-text);
  font-family: var(--lm-font-main);
}
.lm-mobile-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--lm-muted);
}

@media (max-width: 768px) {
  .lm-nav { padding: 14px 20px; }
  .lm-nav-main { display: none; }
  .lm-nav-actions { display: none; }
  .lm-hamburger { display: flex; }
}

/* ============================================================
   FOOTER LAMMIM
   ============================================================ */
.lm-footer {
  background: var(--lm-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 60px 32px;
  direction: rtl;
}
.lm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lm-footer-brand .lm-logo-icon {
  margin-bottom: 12px;
}
.lm-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}
.lm-footer-links h4 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--lm-font-main);
}
.lm-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.lm-footer-links a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-family: var(--lm-font-main);
  transition: color 0.2s;
}
.lm-footer-links a:hover { color: var(--lm-primary); }
.lm-footer-pay h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--lm-font-main);
}
.lm-footer-pay-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lm-footer-pay-badges span {
  background: rgba(255,255,255,.1);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.lm-footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .lm-footer { padding: 40px 20px 24px; }
  .lm-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   SECTIONS UTILITAIRES
   ============================================================ */
.lm-section {
  padding: 100px 60px;
}
.lm-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.lm-section-header {
  text-align: center;
  margin-bottom: 64px;
}
.lm-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--lm-font-main);
}
.lm-section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--lm-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.lm-section-header h2 span { color: var(--lm-primary); }
.lm-section-header p {
  font-size: 17px;
  color: var(--lm-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .lm-section { padding: 60px 20px; }
}

/* ============================================================
   CARDS GÉNÉRIQUES
   ============================================================ */
.lm-card {
  background: white;
  border-radius: var(--lm-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--lm-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lm-shadow-md);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.lm-trust-bar {
  background: var(--lm-dark);
  padding: 22px 60px;
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.lm-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--lm-font-main);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.lm-form-group {
  margin-bottom: 20px;
}
.lm-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--lm-text);
  margin-bottom: 8px;
  font-family: var(--lm-font-main);
}
.lm-form-group input,
.lm-form-group select,
.lm-form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E8EEF4;
  border-radius: var(--lm-radius-sm);
  font-size: 15px;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
  background: white;
  transition: border-color 0.2s ease;
  direction: rtl;
  text-align: right;
}
.lm-form-group input:focus,
.lm-form-group select:focus,
.lm-form-group textarea:focus {
  outline: none;
  border-color: var(--lm-primary);
  box-shadow: 0 0 0 3px rgba(45,184,122,.12);
}
.lm-form-group input.error { border-color: #E74C3C; }
.lm-field-error {
  color: #E74C3C;
  font-size: 12px;
  margin-top: 6px;
  font-family: var(--lm-font-main);
  display: none;
}
.lm-field-error.visible { display: block; }

.lm-alert {
  padding: 14px 18px;
  border-radius: var(--lm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--lm-font-main);
}
.lm-alert-error {
  background: #FDEDEC;
  color: #E74C3C;
  border: 1px solid #F5B7B1;
}
.lm-alert-success {
  background: var(--lm-primary-light);
  color: var(--lm-primary-dark);
  border: 1px solid #A9DFBF;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.lm-progress-track {
  background: #F0F0F0;
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
}
.lm-progress-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--lm-primary), var(--lm-primary-dark));
  transition: width 1s ease;
}

/* ============================================================
   BADGES
   ============================================================ */
.lm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--lm-radius-md);
  text-align: center;
  font-family: var(--lm-font-main);
}
.lm-badge-icon {
  font-size: 32px;
  line-height: 1;
}
.lm-badge-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.lm-badge.unlocked {
  background: linear-gradient(160deg, #FFF9E0, #FFECB0);
}
.lm-badge.locked {
  background: #F5F5F5;
  filter: grayscale(1);
  opacity: 0.6;
}

/* ============================================================
   DASHBOARD — LAYOUT
   ============================================================ */
.lm-dashboard-wrap {
  background: #F7FAFB;
  min-height: 100vh;
  direction: rtl;
}
.lm-dashboard-header {
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  padding: 40px 60px;
  color: white;
}
.lm-dashboard-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
  font-family: var(--lm-font-main);
}
.lm-welcome-text h2 {
  font-size: 26px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
  font-family: var(--lm-font-main);
}
.lm-welcome-text p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  font-family: var(--lm-font-main);
}
.lm-streak {
  background: rgba(255,255,255,.15);
  border-radius: var(--lm-radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  font-family: var(--lm-font-main);
}
.lm-dashboard-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
.lm-dashboard-main { display: flex; flex-direction: column; gap: 28px; }
.lm-dashboard-side { display: flex; flex-direction: column; gap: 28px; }
.lm-dashboard-card {
  background: white;
  border-radius: var(--lm-radius-lg);
  padding: 28px;
  box-shadow: var(--lm-shadow-card);
}
.lm-dashboard-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--lm-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #F0F4F8;
  font-family: var(--lm-font-main);
}

/* Tab navigation */
.lm-tabs {
  display: flex;
  gap: 4px;
  background: #F0F4F8;
  padding: 4px;
  border-radius: var(--lm-radius-sm);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.lm-tab {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
  white-space: nowrap;
}
.lm-tab.active {
  background: white;
  color: var(--lm-primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.lm-tab-panel { display: none; }
.lm-tab-panel.active { display: block; }

/* Exercise list */
.lm-exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F5F5F5;
  font-family: var(--lm-font-main);
}
.lm-exercise-item:last-child { border-bottom: none; }
.lm-exercise-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.lm-exercise-status.done    { background: #D5F5E3; }
.lm-exercise-status.pending { background: #FEF9E7; }
.lm-exercise-status.locked  { background: #FDFEFE; border: 2px dashed #E0E0E0; }
.lm-exercise-status.overdue { background: #FDEDEC; }

/* Session card */
.lm-session-card {
  background: linear-gradient(135deg, var(--lm-primary-light), #D5EEE0);
  border-radius: var(--lm-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  font-family: var(--lm-font-main);
}
.lm-session-card .session-date {
  font-size: 13px;
  color: var(--lm-muted);
  margin-bottom: 6px;
}
.lm-session-card .session-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--lm-text);
  margin-bottom: 12px;
}

/* Subscription card */
.lm-sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--lm-font-main);
}
.lm-sub-status.active { background: #D5F5E3; color: #1E8449; }
.lm-sub-status.expired { background: #FDEDEC; color: #C0392B; }
.lm-sub-status.pending { background: #FEF9E7; color: #D4AC0D; }

/* Payment table */
.lm-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--lm-font-main);
  font-size: 14px;
}
.lm-table th {
  text-align: right;
  padding: 10px 14px;
  background: #F7FAFB;
  color: var(--lm-muted);
  font-weight: 700;
  border-bottom: 2px solid #EEF2F5;
}
.lm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F0F4F8;
  color: var(--lm-text);
}
.lm-table tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .lm-dashboard-body { grid-template-columns: 1fr; padding: 24px 20px; }
  .lm-dashboard-header { padding: 28px 20px; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.lm-auth-wrap {
  min-height: 100vh;
  background: linear-gradient(160deg, #FAFFFE 0%, #F0FFF8 50%, #FFF8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  direction: rtl;
}
.lm-auth-card {
  background: white;
  border-radius: var(--lm-radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  text-align: center;
}
.lm-auth-logo {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lm-auth-logo .lm-logo-icon {
  width: 70px;
  height: 70px;
  font-size: 26px;
  border-radius: 22px;
}
.lm-auth-logo strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--lm-primary-dark);
  font-family: var(--lm-font-main);
}
.lm-auth-logo span {
  font-size: 12px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
}
.lm-auth-card h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--lm-text);
  margin-bottom: 8px;
  font-family: var(--lm-font-main);
}
.lm-auth-card .lm-auth-subtitle {
  font-size: 14px;
  color: var(--lm-muted);
  margin-bottom: 28px;
  font-family: var(--lm-font-main);
}
.lm-auth-card .lm-form-group { text-align: right; }
.lm-auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border-radius: var(--lm-radius-md);
  margin-top: 8px;
}
.lm-auth-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-family: var(--lm-font-main);
}
.lm-auth-links a { color: var(--lm-primary); font-weight: 600; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.lm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.lm-pricing-card {
  background: white;
  border-radius: var(--lm-radius-lg);
  padding: 36px 28px;
  box-shadow: var(--lm-shadow-card);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  font-family: var(--lm-font-main);
  transition: transform 0.3s, box-shadow 0.3s;
}
.lm-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lm-shadow-md);
}
.lm-pricing-card.popular {
  border-color: var(--lm-primary);
  transform: scale(1.04);
}
.lm-pricing-card.popular:hover { transform: scale(1.04) translateY(-6px); }
.lm-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.lm-pricing-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--lm-text);
  margin-bottom: 8px;
}
.lm-pricing-price {
  font-size: 42px;
  font-weight: 900;
  color: var(--lm-primary);
  margin-bottom: 4px;
  line-height: 1;
}
.lm-pricing-price sup {
  font-size: 20px;
  vertical-align: super;
}
.lm-pricing-period {
  font-size: 13px;
  color: var(--lm-muted);
  margin-bottom: 24px;
}
.lm-pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: right;
}
.lm-pricing-features li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--lm-text);
  border-bottom: 1px solid #F5F5F5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lm-pricing-features li:last-child { border-bottom: none; }
.lm-pricing-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lm-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lm-pricing-grid { grid-template-columns: 1fr; }
  .lm-pricing-card.popular { transform: scale(1); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.lm-hero {
  min-height: 100vh;
  background: linear-gradient(170deg, #FAFFFE 0%, #F0FFF8 40%, #FFF8F0 100%);
  position: relative;
  overflow: hidden;
  padding: 0 60px;
  display: flex;
  align-items: center;
}
.lm-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  z-index: 2;
}
.lm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white;
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 28px;
  box-shadow: var(--lm-shadow-sm);
  font-family: var(--lm-font-main);
}
.lm-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: var(--lm-text);
  line-height: 1.3;
  margin-bottom: 24px;
  font-family: var(--lm-font-main);
}
.lm-hero h1 em {
  font-style: normal;
  color: var(--lm-primary);
}
.lm-hero-desc {
  font-size: 17px;
  color: var(--lm-muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 40px;
  font-family: var(--lm-font-main);
}
.lm-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.lm-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #D5EEE0;
  flex-wrap: wrap;
}
.lm-hero-stat .lm-stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--lm-primary);
  font-family: var(--lm-font-main);
}
.lm-hero-stat .lm-stat-label {
  font-size: 12px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
}

/* Hero — animation globale Lammim Academy */
.lm-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-hero-anim {
  position: relative;
  width: 360px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbe central */
.lm-anim-orb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-anim-orb-core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--lm-font-main);
  font-size: 34px;
  font-weight: 900;
  color: var(--lm-primary-dark);
  letter-spacing: 6px;
  box-shadow: 0 0 0 14px rgba(45,184,122,0.12), 0 0 0 28px rgba(45,184,122,0.06);
  animation: lm-anim-pulse 3s ease-in-out infinite;
}
.lm-anim-orb-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
}
.lm-anim-orb-ring {
  position: absolute;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  border: 2px dashed rgba(45,184,122,0.28);
  animation: lm-anim-spin 18s linear infinite;
}

/* Lettres flottantes */
.lm-anim-letter {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lm-font-main);
  font-size: 22px;
  font-weight: 900;
  color: var(--c, #2DB87A);
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  animation: lm-anim-letterFloat 3.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  z-index: 3;
}

/* Points des 6 niveaux */
.lm-anim-dots {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}
.lm-anim-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  animation: lm-anim-dotBounce 2s ease-in-out infinite;
}
.lm-anim-dots span:nth-child(1) { animation-delay: 0s; }
.lm-anim-dots span:nth-child(2) { animation-delay: 0.18s; }
.lm-anim-dots span:nth-child(3) { animation-delay: 0.36s; }
.lm-anim-dots span:nth-child(4) { animation-delay: 0.54s; }
.lm-anim-dots span:nth-child(5) { animation-delay: 0.72s; }
.lm-anim-dots span:nth-child(6) { animation-delay: 0.9s; }

/* Sparkles */
.lm-anim-spark {
  position: absolute;
  left: var(--sx, 50%);
  top: var(--sy, 50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sc, #FFD93D);
  animation: lm-anim-twinkle 2.2s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}

/* Keyframes */
@keyframes lm-anim-pulse {
  0%, 100% { box-shadow: 0 0 0 14px rgba(45,184,122,0.13), 0 0 0 28px rgba(45,184,122,0.06), 0 6px 24px rgba(45,184,122,0.18); transform: scale(1); }
  50%       { box-shadow: 0 0 0 20px rgba(45,184,122,0.18), 0 0 0 42px rgba(45,184,122,0.08), 0 8px 32px rgba(45,184,122,0.25); transform: scale(1.04); }
}
@keyframes lm-anim-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes lm-anim-letterFloat {
  0%, 100% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)); }
  50%       { transform: translate(var(--x, 0px), calc(var(--y, 0px) - 14px)) rotate(var(--r, 0deg)); }
}
@keyframes lm-anim-dotBounce {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%       { transform: scale(1.5); opacity: 1;   }
}
@keyframes lm-anim-twinkle {
  0%, 100% { transform: scale(1);   opacity: 0.9; }
  50%       { transform: scale(1.9); opacity: 0.35; }
}

.lm-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .lm-hero { padding: 0 30px; }
  .lm-hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 80px 0 60px; }
  .lm-hero-anim { width: 300px; height: 340px; }
}
@media (max-width: 640px) {
  .lm-hero { padding: 0 20px; }
  .lm-hero-right { display: none; }
  .lm-hero-inner { grid-template-columns: 1fr; padding: 60px 0 40px; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.lm-about { background: linear-gradient(180deg, #FAFFFE, white); }
.lm-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lm-about-card {
  border-radius: var(--lm-radius-lg);
  padding: 36px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.lm-about-card:hover { transform: translateY(-6px); box-shadow: var(--lm-shadow-md); }
.lm-about-card-1 { background: linear-gradient(160deg, #E8FBF2, #CCEFDD); }
.lm-about-card-2 { background: linear-gradient(160deg, #FFF9E0, #FFECB0); }
.lm-about-card-3 { background: linear-gradient(160deg, #F5EDFF, #E5D5FF); }
.lm-about-card-icon { font-size: 48px; margin-bottom: 16px; display: block; line-height: 1; }
.lm-about-card h3 { font-size: 19px; font-weight: 900; color: var(--lm-text); margin-bottom: 10px; font-family: var(--lm-font-main); }
.lm-about-card p { font-size: 14px; color: var(--lm-muted); line-height: 1.75; font-family: var(--lm-font-main); }
@media (max-width: 768px) { .lm-cards-3 { grid-template-columns: 1fr; } }

/* ============================================================
   PROGRAMME SECTION
   ============================================================ */
.lm-programme {
  background: var(--lm-dark);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}
.lm-programme::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,184,122,.1), transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}
.lm-programme-inner { max-width: 1200px; margin: 0 auto; }
.lm-programme-inner .lm-section-header h2 { color: white; }
.lm-programme-inner .lm-section-header p { color: rgba(255,255,255,.65); }
.lm-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.lm-level {
  border-radius: 22px;
  padding: 32px 24px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  transition: all 0.3s;
  text-align: right;
}
.lm-level:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.lm-level-emoji {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: lm-bounce 2.5s ease-in-out infinite;
  line-height: 1;
}
@keyframes lm-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.lm-level h3 { font-size: 20px; font-weight: 900; color: white; margin-bottom: 10px; font-family: var(--lm-font-main); }
.lm-level p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; font-family: var(--lm-font-main); }
.lm-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lm-skill-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-family: var(--lm-font-main);
}
@media (max-width: 768px) {
  .lm-programme { padding: 60px 20px; }
  .lm-levels-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.lm-cta-section {
  padding: 100px 60px;
  text-align: center;
  background: linear-gradient(160deg, #FFFDE7 0%, #F0FFF8 100%);
}
.lm-cta-inner { max-width: 640px; margin: 0 auto; }
.lm-cta-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 28px;
  box-shadow: var(--lm-shadow-md);
  animation: lm-pulse 3s ease-in-out infinite;
  line-height: 1;
}
@keyframes lm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: var(--lm-shadow-lg); }
}
.lm-cta-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: var(--lm-text);
  margin-bottom: 14px;
  font-family: var(--lm-font-main);
}
.lm-cta-section h2 span { color: var(--lm-primary); }
.lm-cta-section p {
  font-size: 17px;
  color: var(--lm-muted);
  margin-bottom: 36px;
  line-height: 1.75;
  font-family: var(--lm-font-main);
}
.lm-cta-note {
  font-size: 13px;
  color: var(--lm-muted);
  margin-top: 16px;
  font-family: var(--lm-font-main);
}
@media (max-width: 768px) { .lm-cta-section { padding: 60px 20px; } }

/* ============================================================
   CONFETTI ANIMATION
   ============================================================ */
.lm-confetti-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lm-conf {
  position: absolute;
  border-radius: 3px;
  animation: lm-conf-fall linear infinite;
}
@keyframes lm-conf-fall {
  0% { transform: translateY(-20px) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES SUPPLEMENTAIRES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lm-anim-orb-core, .lm-anim-orb-ring, .lm-anim-letter,
  .lm-anim-dots span, .lm-anim-spark,
  .lm-level-emoji, .lm-cta-circle, .lm-conf {
    animation: none !important;
  }
}

/* ============================================================
   WOOCOMMERCE — Harmonisation charte Lam Mim
   ============================================================ */

/* Boutons WC → charte verte */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce .button.checkout {
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark)) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--lm-radius-md) !important;
  font-family: var(--lm-font-main) !important;
  font-weight: 800 !important;
  padding: 14px 26px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: var(--lm-shadow-sm) !important;
  font-size: 15px !important;
  cursor: pointer !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover,
.woocommerce .button.checkout:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--lm-shadow-md) !important;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark)) !important;
  color: white !important;
}

/* Titre des pages WC */
.woocommerce .woocommerce-products-header__title,
.woocommerce h1.entry-title,
.woocommerce .page-title {
  font-family: var(--lm-font-main) !important;
  font-weight: 900 !important;
  color: var(--lm-text) !important;
  direction: rtl;
}

/* Cards produits */
.woocommerce ul.products li.product {
  border-radius: var(--lm-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--lm-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: none !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--lm-shadow-md) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--lm-font-main) !important;
  font-weight: 800 !important;
  color: var(--lm-text) !important;
}
.woocommerce ul.products li.product .price {
  color: var(--lm-primary) !important;
  font-weight: 900 !important;
  font-family: var(--lm-font-main) !important;
}

/* Prix WooCommerce — intégration dans les cards custom */
.lm-pricing-product-block .woocommerce-Price-amount,
.lm-pricing-product-block .woocommerce-Price-currencySymbol {
  font-family: var(--lm-font-main) !important;
  font-weight: 900 !important;
}
/* Prix barré (ancien prix) */
.lm-pricing-product-block del .woocommerce-Price-amount {
  color: rgba(255,255,255,.5) !important;
  font-size: .7em !important;
  font-weight: 600 !important;
}
/* Prix promoé */
.lm-pricing-product-block ins {
  text-decoration: none !important;
}
.lm-pricing-product-block ins .woocommerce-Price-amount {
  color: inherit !important;
}
/* Dans les boutons de créneau */
.lm-slot-btn .woocommerce-Price-amount,
.lm-slot-btn .woocommerce-Price-currencySymbol {
  font-family: var(--lm-font-main) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  color: var(--lm-primary) !important;
}
.lm-slot-btn del { display: none !important; } /* masque l'ancien prix dans les boutons */
.lm-slot-btn ins { text-decoration: none !important; }

/* Formulaire de checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 2px solid #E8EEF4 !important;
  border-radius: var(--lm-radius-sm) !important;
  padding: 12px 16px !important;
  font-family: var(--lm-font-main) !important;
  font-size: 15px !important;
  transition: border-color 0.2s ease !important;
  direction: rtl;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--lm-primary) !important;
  box-shadow: 0 0 0 3px rgba(45,184,122,.12) !important;
  outline: none !important;
}
.woocommerce form .form-row label {
  font-family: var(--lm-font-main) !important;
  font-weight: 700 !important;
  color: var(--lm-text) !important;
  font-size: 14px !important;
}

/* Notifications WC */
.woocommerce-message,
.woocommerce-info {
  background: var(--lm-primary-light) !important;
  border-top-color: var(--lm-primary) !important;
  color: var(--lm-primary-dark) !important;
  font-family: var(--lm-font-main) !important;
  border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0 !important;
}
.woocommerce-error {
  background: #FDEDEC !important;
  border-top-color: #E74C3C !important;
  color: #C0392B !important;
  font-family: var(--lm-font-main) !important;
  border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0 !important;
}

/* Logo réduit sur pages WooCommerce (checkout, panier, compte) */
body.woocommerce-checkout .site-branding .custom-logo-link img,
body.woocommerce-checkout .ast-site-identity .custom-logo-link img,
body.woocommerce-checkout .site-branding img.custom-logo,
body.woocommerce-checkout header img,
body.woocommerce-cart .site-branding .custom-logo-link img,
body.woocommerce-cart .ast-site-identity .custom-logo-link img,
body.woocommerce-cart .site-branding img.custom-logo,
body.woocommerce-account .site-branding .custom-logo-link img,
body.woocommerce-account .ast-site-identity .custom-logo-link img {
  max-height: 42px !important;
  width: auto !important;
  max-width: 160px !important;
}

/* Récapitulatif commande checkout — produit visible */
.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  font-family: var(--lm-font-main) !important;
  color: var(--lm-text) !important;
  font-size: 14px !important;
  direction: rtl;
}
.woocommerce-checkout-review-order-table td.product-name strong {
  font-weight: 800 !important;
  color: var(--lm-text) !important;
  display: block;
  font-size: 15px !important;
}
.woocommerce-checkout-review-order-table td.product-name .variation {
  font-size: 12px !important;
  color: var(--lm-muted) !important;
  margin-top: 4px !important;
}
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 700 !important;
  color: var(--lm-text) !important;
}
.woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: var(--lm-primary-dark) !important;
}

/* Panier */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  font-family: var(--lm-font-main) !important;
  direction: rtl;
}
.woocommerce .cart_totals h2,
.woocommerce .checkout h3 {
  font-family: var(--lm-font-main) !important;
  font-weight: 900 !important;
  color: var(--lm-text) !important;
}

/* Order received */
.woocommerce .woocommerce-order-received .woocommerce-order h2,
.woocommerce .woocommerce-thankyou-order-details li {
  font-family: var(--lm-font-main) !important;
}

/* Mon compte WC */
.woocommerce .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
}
.woocommerce .woocommerce-MyAccount-navigation ul li a {
  font-family: var(--lm-font-main) !important;
  font-weight: 600 !important;
  color: var(--lm-text) !important;
  display: block !important;
  padding: 10px 16px !important;
  border-radius: var(--lm-radius-sm) !important;
  transition: background 0.2s ease !important;
}
.woocommerce .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--lm-primary-light) !important;
  color: var(--lm-primary-dark) !important;
}

/* ============================================================
   ADMIN BAR — Compensation espace
   ============================================================ */
.admin-bar .lm-nav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .lm-nav {
    top: 46px;
  }
}

/* ============================================================
   ENTRY CONTENT — Styles pour le contenu des pages de cours
   ============================================================ */
.entry-content {
  direction: rtl;
  text-align: right;
  font-family: var(--lm-font-main) !important;
  line-height: 1.85;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--lm-font-main) !important;
  font-weight: 800;
  color: var(--lm-text);
  margin: 24px 0 12px;
}
.entry-content ul,
.entry-content ol {
  padding-right: 24px;
  margin-bottom: 16px;
}
.entry-content li {
  margin-bottom: 8px;
  color: var(--lm-text);
  font-family: var(--lm-font-main) !important;
}
.entry-content a {
  color: var(--lm-primary);
  font-weight: 600;
}
.entry-content img {
  border-radius: var(--lm-radius-md);
  max-width: 100%;
  height: auto;
}
.entry-content blockquote {
  border-right: 4px solid var(--lm-primary);
  padding: 14px 20px;
  background: var(--lm-primary-light);
  border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0;
  margin: 20px 0;
  font-family: var(--lm-font-main) !important;
}

/* ============================================================
   FLUENT FORMS — Harmonisation charte
   ============================================================ */
.ff-el-input--label label,
.fluent-form-wrap .ff-el-input--label label {
  font-family: var(--lm-font-main) !important;
  font-weight: 700 !important;
  color: var(--lm-text) !important;
}
.ff-el-form-control,
.fluent-form-wrap input[type="text"],
.fluent-form-wrap input[type="email"],
.fluent-form-wrap textarea,
.fluent-form-wrap select {
  border: 2px solid #E8EEF4 !important;
  border-radius: var(--lm-radius-sm) !important;
  font-family: var(--lm-font-main) !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
  direction: rtl;
}
.ff-el-form-control:focus,
.fluent-form-wrap input[type="text"]:focus,
.fluent-form-wrap input[type="email"]:focus {
  border-color: var(--lm-primary) !important;
  box-shadow: 0 0 0 3px rgba(45,184,122,.12) !important;
  outline: none !important;
}
.ff_submit_btn_container .ff-btn-submit,
.ff-btn-submit {
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark)) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--lm-radius-md) !important;
  font-family: var(--lm-font-main) !important;
  font-weight: 800 !important;
  padding: 14px 26px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
}
.ff-btn-submit:hover {
  transform: translateY(-2px) !important;
}

/* ============================================================
   PAGE HERO — SHARED (levels & terms)
   ============================================================ */

.lm-page-hero {
  padding: 100px 60px 80px;
  text-align: center;
}
.lm-page-hero-levels {
  background: linear-gradient(160deg, #f0fdf6 0%, #e8fbf2 60%, #d1f5e3 100%);
  border-bottom: 1px solid #c3efd8;
}
.lm-page-hero-terms {
  background: var(--lm-dark);
}
.lm-page-hero-terms h1 { color: white; }
.lm-page-hero-inner { max-width: 860px; margin: 0 auto; }
.lm-page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  font-family: var(--lm-font-main);
  margin: 0 0 16px;
  line-height: 1.25;
}
.lm-page-hero-levels h1 { color: var(--lm-text); }
.lm-page-hero-levels h1 em { color: var(--lm-primary); font-style: normal; }
.lm-page-hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--lm-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Méta badges (levels hero) */
.lm-levels-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.lm-levels-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid #d1f5e3;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--lm-font-main);
  font-weight: 700;
  color: var(--lm-text);
  box-shadow: 0 2px 8px rgba(45,184,122,.08);
}
.lm-levels-meta-item svg { color: var(--lm-primary); flex-shrink: 0; }

/* ============================================================
   PAGE PROGRAMME LIGHT (front-page teaser)
   ============================================================ */

.lm-programme-light {
  background: linear-gradient(180deg, #f0fdf6 0%, #e8fbf2 100%) !important;
  position: relative;
}
.lm-programme-light::before { display: none !important; }
.lm-programme-light .lm-section-header h2 { color: var(--lm-text) !important; }
.lm-programme-light .lm-section-header p { color: var(--lm-muted) !important; }
.lm-programme-light .lm-section-header h2 span { color: var(--lm-primary); }

.lm-levels-grid-light { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lm-level-light {
  background: white !important;
  border: 1px solid #d1f5e3;
  box-shadow: 0 4px 16px rgba(45,184,122,.08) !important;
  color: var(--lm-text) !important;
  position: relative;
  overflow: hidden;
}
.lm-level-light:hover {
  background: white !important;
  border-color: var(--lm-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(45,184,122,.15) !important;
}
.lm-level-light h3 { color: var(--lm-text) !important; }
.lm-level-light p { color: var(--lm-muted) !important; }

.lm-level-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.lm-level-num-2 { background: linear-gradient(135deg,#3AAFDA,#2490B8); }
.lm-level-num-3 { background: linear-gradient(135deg,#9B59B6,#7D3C98); }
.lm-level-num-4 { background: linear-gradient(135deg,#FF8C42,#E0621A); }
.lm-level-num-5 { background: linear-gradient(135deg,#FF6B9D,#D63080); }
.lm-level-num-6 { background: linear-gradient(135deg,#FFD93D,#F0A500); }

.lm-skill-tag-green {
  background: var(--lm-primary-light) !important;
  color: var(--lm-primary-dark) !important;
}

/* Outline dark variant */
.lm-btn-outline-dark {
  background: transparent;
  color: var(--lm-text) !important;
  border: 2px solid #c3efd8;
}
.lm-btn-outline-dark:hover {
  background: var(--lm-primary-light);
  border-color: var(--lm-primary);
  color: var(--lm-primary-dark) !important;
}

@media (max-width: 768px) {
  .lm-levels-grid-light { grid-template-columns: 1fr 1fr; }
  .lm-page-hero { padding: 70px 24px 50px; }
}
@media (max-width: 480px) {
  .lm-levels-grid-light { grid-template-columns: 1fr; }
  .lm-levels-meta { gap: 8px; }
}

/* ============================================================
   PAGE LEVELS — FULL GRID
   ============================================================ */

.lm-levels-progress-bar {
  background: white;
  border-bottom: 1px solid #eef;
  padding: 24px 60px;
  overflow-x: auto;
}
.lm-levels-progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.lm-levels-progress-inner::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 5%;
  left: 5%;
  height: 3px;
  background: #e8ecef;
  z-index: 0;
}
.lm-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.lm-prog-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.lm-prog-step span {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--lm-font-main);
  color: var(--lm-muted);
  white-space: nowrap;
}

.lm-levels-full { background: #fafffe; }
.lm-levels-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 0;
}
.lm-sr-heading {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lm-level-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #eef4f0;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: right;
  direction: rtl;
}
.lm-level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  border-color: #d1f5e3;
}

.lm-level-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.lm-level-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lm-level-card-num {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--lm-font-main);
  color: var(--lm-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 2px;
}
.lm-level-card h3 {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
  margin: 0;
}
.lm-level-card-goal {
  font-size: 14px;
  color: var(--lm-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fafffe;
  border-radius: 10px;
  border-right: 3px solid #c3efd8;
}
.lm-level-card-goal strong { color: var(--lm-text); }
.lm-level-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-level-card-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--lm-text);
  line-height: 1.6;
}
.lm-level-card-sub {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--lm-font-main);
  background: var(--lm-primary-light);
  color: var(--lm-primary-dark);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lm-level-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eef4f0;
}

/* CTA light variant */
.lm-cta-section-light {
  background: linear-gradient(160deg, #f0fdf6 0%, #e8fbf2 100%) !important;
}
.lm-cta-section-light h2 { color: var(--lm-text) !important; }
.lm-cta-section-light h2 span { color: var(--lm-primary); }
.lm-cta-section-light p { color: var(--lm-muted) !important; }
.lm-cta-section-light .lm-cta-note { color: var(--lm-primary-dark) !important; }

@media (max-width: 900px) {
  .lm-levels-full-grid { grid-template-columns: 1fr; }
  .lm-levels-progress-bar { padding: 20px 24px; }
}
@media (max-width: 600px) {
  .lm-level-card { padding: 20px; }
}

/* ============================================================
   PAGE TERMS — STYLES
   ============================================================ */

.lm-terms-toc-wrap {
  background: white;
  border-bottom: 1px solid #eef4f0;
  padding: 16px 60px;
}
.lm-terms-toc {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lm-terms-toc-title {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--lm-font-main);
  color: var(--lm-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.lm-terms-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.lm-terms-toc ul li a {
  font-size: 12px;
  font-family: var(--lm-font-main);
  color: var(--lm-muted);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e5eaee;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.lm-terms-toc ul li a:hover {
  background: var(--lm-primary-light);
  color: var(--lm-primary-dark);
  border-color: #c3efd8;
}

.lm-terms-wrap {
  background: #fafffe;
  padding: 60px;
}
.lm-terms-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lm-terms-section {
  background: white;
  border-radius: 18px;
  padding: 28px 32px;
  border: 1px solid #eef4f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  scroll-margin-top: 100px;
  text-align: right;
  direction: rtl;
}
.lm-terms-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.lm-terms-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lm-terms-section h2 {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
  margin: 0;
}
.lm-terms-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--lm-text);
}
.lm-terms-body p { margin: 0 0 12px; }
.lm-terms-body p:last-child { margin-bottom: 0; }

.lm-terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-terms-list li {
  padding-right: 14px;
  position: relative;
}
.lm-terms-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lm-primary);
}

.lm-terms-section-contact .lm-terms-contact-body { text-align: center; direction: rtl; }
.lm-terms-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 24px;
  background: var(--lm-primary-light);
  color: var(--lm-primary-dark) !important;
  font-weight: 800;
  font-family: var(--lm-font-main);
  border-radius: 12px;
  font-size: 15px;
  transition: background .2s, transform .2s;
}
.lm-terms-email:hover {
  background: #c3efd8;
  transform: translateY(-2px);
  color: var(--lm-primary-dark) !important;
}

.lm-terms-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
  padding: 20px 0 4px;
  border-top: 1px solid #eef4f0;
}
.lm-terms-footer-note svg { color: var(--lm-muted); flex-shrink: 0; }

@media (max-width: 768px) {
  .lm-terms-toc-wrap { padding: 14px 20px; }
  .lm-terms-wrap { padding: 40px 20px; }
  .lm-terms-section { padding: 20px; }
}

/* ============================================================
   PROGRESS BAR RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .lm-levels-progress-bar { padding: 16px 12px; }
  .lm-prog-dot { width: 32px; height: 32px; font-size: 13px; }
  .lm-prog-step span { font-size: 10px; }
}

/* ============================================================
   PAGE FREE SESSION — استمارة التسجيل للحصة التقييمية
   ============================================================ */

/* Hero 2 colonnes */
.lm-fs-hero {
  background: linear-gradient(160deg, #f0fdf6 0%, #e8fbf2 60%, #d1f5e3 100%);
  padding: 80px 60px 100px;
  border-bottom: 1px solid #c3efd8;
}
.lm-fs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Colonne texte */
.lm-fs-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
  line-height: 1.25;
  margin: 0 0 16px;
}
.lm-fs-hero h1 em {
  color: var(--lm-primary);
  font-style: normal;
}
.lm-fs-hero-desc {
  font-size: 16px;
  color: var(--lm-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Liste des bénéfices */
.lm-fs-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lm-fs-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
}
.lm-fs-benefit-icon {
  width: 32px;
  height: 32px;
  background: var(--lm-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Preuves sociales */
.lm-fs-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid #d1f5e3;
  box-shadow: 0 4px 16px rgba(45,184,122,.08);
}
.lm-fs-trust-item { text-align: center; }
.lm-fs-trust-num {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  color: var(--lm-primary-dark);
  line-height: 1;
}
.lm-fs-trust-label {
  font-size: 12px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
  margin-top: 4px;
}
.lm-fs-trust-sep {
  width: 1px;
  height: 36px;
  background: #c3efd8;
  flex-shrink: 0;
}

/* Formulaire card */
.lm-fs-form-wrap { position: relative; }
.lm-fs-form-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 4px 20px rgba(45,184,122,.1);
  border: 1px solid #e8f5ee;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.lm-fs-form-card-header {
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white;
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--lm-font-main);
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}
.lm-fs-form-body {
  padding: 28px;
  direction: rtl;
}
.lm-fs-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: #f8fffe;
  border-top: 1px solid #eef4f0;
  font-size: 12px;
  color: var(--lm-muted);
  font-family: var(--lm-font-main);
}

/* Steps section */
.lm-fs-steps {
  background: white;
  padding: 80px 60px;
}
.lm-fs-steps-inner { max-width: 1000px; margin: 0 auto; }
.lm-fs-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.lm-fs-steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  right: 16%;
  left: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--lm-primary-light), var(--lm-primary), var(--lm-primary-light));
  z-index: 0;
}
.lm-fs-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.lm-fs-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-dark));
  color: white;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(45,184,122,.3);
}
.lm-fs-step-num-2 { background: linear-gradient(135deg,#3AAFDA,#2490B8); box-shadow: 0 4px 14px rgba(58,175,218,.3); }
.lm-fs-step-num-3 { background: linear-gradient(135deg,#9B59B6,#7D3C98); box-shadow: 0 4px 14px rgba(155,89,182,.3); }
.lm-fs-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--lm-primary-light);
  color: var(--lm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.lm-fs-step-icon-2 { background: #E3F6FD; color: #2490B8; }
.lm-fs-step-icon-3 { background: #F5EEF8; color: #7D3C98; }
.lm-fs-step h3 {
  font-size: 17px;
  font-weight: 900;
  font-family: var(--lm-font-main);
  color: var(--lm-text);
  margin: 0 0 8px;
}
.lm-fs-step p {
  font-size: 14px;
  color: var(--lm-muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .lm-fs-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lm-fs-form-card { position: static; }
  .lm-fs-hero { padding: 60px 32px 80px; }
}
@media (max-width: 768px) {
  .lm-fs-steps { padding: 60px 24px; }
  .lm-fs-steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .lm-fs-steps-grid::before { display: none; }
  .lm-fs-hero { padding: 50px 20px 60px; }
  .lm-fs-form-body { padding: 20px; }
}
