/* ============================================================
   MOTIVATION_LETTER.CSS — Générateur lettres de motivation
   Scope : body.motivation-letter + .app-main.motivation-letter
   ============================================================ */

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

body.motivation-letter .ml-hero {
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: center;
}

body.motivation-letter .ml-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  color: #8b5cf6;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

body.motivation-letter .ml-hero__title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}

body.motivation-letter .ml-hero__gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.motivation-letter .ml-hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

/* Hero CTA */
body.motivation-letter .ml-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

body.motivation-letter .ml-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

body.motivation-letter .ml-hero__btn--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

body.motivation-letter .ml-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

body.motivation-letter .ml-hero__btn--outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.motivation-letter .ml-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* ==================== FEATURES SECTION ==================== */

body.motivation-letter .ml-features {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

body.motivation-letter .ml-features__title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}

body.motivation-letter .ml-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

body.motivation-letter .ml-features__card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.35s ease;
}

body.motivation-letter .ml-features__card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-6px);
}

body.motivation-letter .ml-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  color: #8b5cf6;
}

body.motivation-letter .ml-features__number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  color: #a78bfa;
}

body.motivation-letter .ml-features__card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

body.motivation-letter .ml-features__card p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ==================== QUICK ACCESS CARDS ==================== */

body.motivation-letter .ml-quick {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

body.motivation-letter .ml-quick__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

body.motivation-letter .ml-quick__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

body.motivation-letter .ml-quick__card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

body.motivation-letter .ml-quick__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: #8b5cf6;
}

body.motivation-letter .ml-quick__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.375rem;
}

body.motivation-letter .ml-quick__card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

body.motivation-letter .ml-quick__arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

body.motivation-letter .ml-quick__card:hover .ml-quick__arrow {
  color: #8b5cf6;
  transform: translateX(4px);
}

/* ==================== BENEFITS SECTION ==================== */

body.motivation-letter .ml-benefits {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

body.motivation-letter .ml-benefits__title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}

body.motivation-letter .ml-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

body.motivation-letter .ml-benefits__item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

body.motivation-letter .ml-benefits__item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

body.motivation-letter .ml-benefits__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: #8b5cf6;
}

body.motivation-letter .ml-benefits__item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

body.motivation-letter .ml-benefits__item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* ==================== CTA FINAL ==================== */

body.motivation-letter .ml-cta {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  text-align: center;
}

body.motivation-letter .ml-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

body.motivation-letter .ml-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
}

body.motivation-letter .ml-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

body.motivation-letter .ml-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

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

@media (max-width: 768px) {
  body.motivation-letter .ml-hero__title {
    font-size: 2.5rem;
  }

  body.motivation-letter .ml-hero__subtitle {
    font-size: 1.125rem;
  }

  body.motivation-letter .ml-hero__cta {
    flex-direction: column;
  }

  body.motivation-letter .ml-hero__btn {
    width: 100%;
    justify-content: center;
  }

  body.motivation-letter .ml-features__grid,
  body.motivation-letter .ml-quick__grid,
  body.motivation-letter .ml-benefits__grid {
    grid-template-columns: 1fr;
  }

  body.motivation-letter .ml-cta {
    padding: 2rem 1.5rem;
  }

  body.motivation-letter .ml-cta h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  body.motivation-letter .ml-hero__title {
    font-size: 2rem;
  }

  body.motivation-letter .ml-features__title,
  body.motivation-letter .ml-benefits__title {
    font-size: 1.875rem;
  }

  body.motivation-letter .ml-quick__card {
    flex-direction: column;
    text-align: center;
  }

  body.motivation-letter .ml-quick__arrow {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ============================================================
   MOTIVATIONLETTERAPP.CSS
   Scope : body.motivation-letter + .app-main.motivation-letter
   ============================================================ */

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

body.motivation-letter .ml-hero {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
  }
  
  body.motivation-letter .ml-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 2rem;
    color: #8b5cf6;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
  }
  
  body.motivation-letter .ml-hero__title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
  }
  
  body.motivation-letter .ml-hero__gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  body.motivation-letter .ml-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* ==================== MAIN GRID ==================== */
  
  body.motivation-letter .ml-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1rem;
  }
  
  /* ==================== CARD ==================== */
  
  body.motivation-letter .ml-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  
  body.motivation-letter .ml-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  body.motivation-letter .ml-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  body.motivation-letter .ml-card:hover::before {
    opacity: 1;
  }
  
  /* Featured Card */
  body.motivation-letter .ml-card--featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
  }
  
  body.motivation-letter .ml-card--featured:hover {
    box-shadow: 0 24px 50px rgba(139, 92, 246, 0.25);
  }
  
  /* Card Icon */
  body.motivation-letter .ml-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    color: #8b5cf6;
  }
  
  body.motivation-letter .ml-card__icon--secondary {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
  }
  
  body.motivation-letter .ml-card__icon--tertiary {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
  }
  
  /* Card Title */
  body.motivation-letter .ml-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
  }
  
  /* Card Description */
  body.motivation-letter .ml-card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    min-height: 3.4em;
  }
  
  /* Card CTA */
  body.motivation-letter .ml-card__cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
  }
  
  body.motivation-letter .ml-card:hover .ml-card__cta {
    gap: 0.75rem;
  }
  
  body.motivation-letter .ml-card__icon--secondary ~ * .ml-card__cta {
    color: #38bdf8;
  }
  
  body.motivation-letter .ml-card__icon--tertiary ~ * .ml-card__cta {
    color: #22c55e;
  }
  
  /* ==================== FEATURES SECTION ==================== */
  
  body.motivation-letter .ml-features {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1rem;
  }
  
  body.motivation-letter .ml-features__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
  }
  
  body.motivation-letter .ml-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  body.motivation-letter .ml-features__item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  body.motivation-letter .ml-features__item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
  }
  
  body.motivation-letter .ml-features__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 14px;
    color: #8b5cf6;
  }
  
  body.motivation-letter .ml-features__item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
  }
  
  body.motivation-letter .ml-features__item p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
  }
  
  /* ==================== CTA SECTION ==================== */
  
  body.motivation-letter .ml-cta {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    text-align: center;
  }
  
  body.motivation-letter .ml-cta__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
  }
  
  body.motivation-letter .ml-cta__desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 2rem;
  }
  
  body.motivation-letter .ml-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  }
  
  body.motivation-letter .ml-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
  }
  
  /* ==================== RESPONSIVE ==================== */
  
  @media (max-width: 768px) {
    body.motivation-letter .ml-hero__title {
      font-size: 2.5rem;
    }
  
    body.motivation-letter .ml-hero__subtitle {
      font-size: 1.125rem;
    }
  
    body.motivation-letter .ml-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    body.motivation-letter .ml-card {
      padding: 2rem 1.5rem;
    }
  
    body.motivation-letter .ml-features__grid {
      grid-template-columns: 1fr;
    }
  
    body.motivation-letter .ml-cta {
      padding: 2rem 1.5rem;
    }
  
    body.motivation-letter .ml-cta__title {
      font-size: 1.75rem;
    }
  }
  
  @media (max-width: 480px) {
    body.motivation-letter .ml-hero__title {
      font-size: 2rem;
    }
  
    body.motivation-letter .ml-card__desc {
      min-height: auto;
    }
  }

  /* ============================================================
   LETTER DETAIL PAGE
   ============================================================ */

/* ==================== DETAIL HERO ==================== */

body.motivation-letter .ml-detail-hero {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
  }
  
  body.motivation-letter .ml-detail-hero__back {
    margin-bottom: 1.5rem;
  }
  
  body.motivation-letter .ml-detail-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  body.motivation-letter .ml-detail-hero__back-link:hover {
    color: #8b5cf6;
    gap: 0.75rem;
  }
  
  body.motivation-letter .ml-detail-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
  }
  
  body.motivation-letter .ml-detail-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
  }
  
  /* ==================== DETAIL GRID ==================== */
  
  body.motivation-letter .ml-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
  }
  
  /* ==================== DETAIL CARD ==================== */
  
  body.motivation-letter .ml-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  body.motivation-letter .ml-detail-card:last-child {
    margin-bottom: 0;
  }
  
  /* Card Header */
  body.motivation-letter .ml-detail-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  body.motivation-letter .ml-detail-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    color: #8b5cf6;
  }
  
  body.motivation-letter .ml-detail-card__icon--secondary {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
  }
  
  body.motivation-letter .ml-detail-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
  }
  
  /* ==================== LETTER PREVIEW ==================== */
  
  body.motivation-letter .ml-detail-preview {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 2rem;
    max-height: 600px;
    overflow-y: auto;
  }
  
  body.motivation-letter .ml-detail-preview::-webkit-scrollbar {
    width: 8px;
  }
  
  body.motivation-letter .ml-detail-preview::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  
  body.motivation-letter .ml-detail-preview::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
  }
  
  body.motivation-letter .ml-detail-preview::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
  }
  
  /* ==================== ACTIONS ==================== */
  
  body.motivation-letter .ml-detail-actions {
    display: flex;
    gap: 1rem;
  }
  
  body.motivation-letter .ml-detail-actions__form {
    flex: 1;
  }
  
  body.motivation-letter .ml-detail-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
  }
  
  body.motivation-letter .ml-detail-actions__btn--primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  }
  
  body.motivation-letter .ml-detail-actions__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  }
  
  body.motivation-letter .ml-detail-actions__btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  
  body.motivation-letter .ml-detail-actions__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
  }
  
  /* ==================== METADATA LIST ==================== */
  
  body.motivation-letter .ml-detail-meta {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  body.motivation-letter .ml-detail-meta__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  body.motivation-letter .ml-detail-meta__item:last-child {
    border-bottom: none;
  }
  
  body.motivation-letter .ml-detail-meta__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
  }
  
  body.motivation-letter .ml-detail-meta__label svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
  }
  
  body.motivation-letter .ml-detail-meta__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-align: right;
  }
  
  body.motivation-letter .ml-detail-meta__value--score {
    color: #22c55e;
    font-size: 1.125rem;
    font-weight: 700;
  }
  
  /* ==================== CTA SIDEBAR ==================== */
  
  body.motivation-letter .ml-detail-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  }
  
  body.motivation-letter .ml-detail-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  }
  
  /* ==================== RESPONSIVE ==================== */
  
  @media (max-width: 968px) {
    body.motivation-letter .ml-detail-grid {
      grid-template-columns: 1fr;
    }
  
    body.motivation-letter .ml-detail-sidebar {
      order: -1;
    }
  }
  
  @media (max-width: 768px) {
    body.motivation-letter .ml-detail-hero__title {
      font-size: 2rem;
    }
  
    body.motivation-letter .ml-detail-card {
      padding: 2rem 1.5rem;
    }
  
    body.motivation-letter .ml-detail-preview {
      padding: 1.5rem;
      max-height: 400px;
    }
  
    body.motivation-letter .ml-detail-actions {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    body.motivation-letter .ml-detail-hero__title {
      font-size: 1.75rem;
    }
  
    body.motivation-letter .ml-detail-meta__item {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    body.motivation-letter .ml-detail-meta__value {
      text-align: left;
    }
  }
  /* ============================================================
   LETTER LIST PAGE
   ============================================================ */

/* ==================== LIST HERO ==================== */

body.motivation-letter .ml-list-hero {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
  }
  
  body.motivation-letter .ml-list-hero__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
  
  body.motivation-letter .ml-list-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
  }
  
  body.motivation-letter .ml-list-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
  }
  
  body.motivation-letter .ml-list-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  }
  
  body.motivation-letter .ml-list-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  }
  
  /* ==================== LIST CONTAINER ==================== */
  
  body.motivation-letter .ml-list-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
  }
  
  /* ==================== LIST CARD ==================== */
  
  body.motivation-letter .ml-list-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  body.motivation-letter .ml-list-table {
    overflow-x: auto;
  }
  
  /* ==================== TABLE ==================== */
  
  body.motivation-letter .ml-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  body.motivation-letter .ml-table thead {
    background: rgba(255, 255, 255, 0.05);
  }
  
  body.motivation-letter .ml-table th {
    padding: 1.125rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
  }
  
  body.motivation-letter .ml-table__th--date { width: 140px; }
  body.motivation-letter .ml-table__th--name { width: auto; }
  body.motivation-letter .ml-table__th--role { width: 180px; }
  body.motivation-letter .ml-table__th--company { width: 180px; }
  body.motivation-letter .ml-table__th--lang { width: 100px; }
  body.motivation-letter .ml-table__th--tone { width: 110px; }
  body.motivation-letter .ml-table__th--ats { width: 100px; text-align: center; }
  body.motivation-letter .ml-table__th--actions { width: 120px; text-align: right; }
  
  body.motivation-letter .ml-table__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
  }
  
  body.motivation-letter .ml-table__row:hover {
    background: rgba(255, 255, 255, 0.03);
  }
  
  body.motivation-letter .ml-table__row:last-child {
    border-bottom: none;
  }
  
  body.motivation-letter .ml-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    vertical-align: middle;
  }
  
  /* Table Date */
  body.motivation-letter .ml-table__date-day {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
  }
  
  body.motivation-letter .ml-table__date-time {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
  }
  
  /* Table Name */
  body.motivation-letter .ml-table__name {
    font-weight: 700;
    color: #fff;
  }
  
  /* Table Role & Company */
  body.motivation-letter .ml-table__role,
  body.motivation-letter .ml-table__company {
    color: rgba(255, 255, 255, 0.7);
  }
  
  /* Table Badge */
  body.motivation-letter .ml-table__badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8b5cf6;
    white-space: nowrap;
  }
  
  body.motivation-letter .ml-table__badge--secondary {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
  }
  
  /* Table ATS Score */
  body.motivation-letter .ml-table__ats {
    text-align: center;
  }
  
  body.motivation-letter .ml-table__score {
    font-size: 1.125rem;
    font-weight: 800;
    color: #22c55e;
  }
  
  /* Table Actions */
  body.motivation-letter .ml-table__actions {
    text-align: right;
  }
  
  body.motivation-letter .ml-table__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #8b5cf6;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }
  
  body.motivation-letter .ml-table__btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(2px);
  }
  
  /* ==================== STATS SUMMARY ==================== */
  
  body.motivation-letter .ml-list-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  body.motivation-letter .ml-list-stats__item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
  }
  
  body.motivation-letter .ml-list-stats__item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
  }
  
  body.motivation-letter .ml-list-stats__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    color: #8b5cf6;
  }
  
  body.motivation-letter .ml-list-stats__icon--secondary {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
  }
  
  body.motivation-letter .ml-list-stats__value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
  }
  
  body.motivation-letter .ml-list-stats__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
  }
  
  /* ==================== EMPTY STATE ==================== */
  
  body.motivation-letter .ml-list-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
  }
  
  body.motivation-letter .ml-list-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    color: rgba(139, 92, 246, 0.5);
  }
  
  body.motivation-letter .ml-list-empty__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
  }
  
  body.motivation-letter .ml-list-empty__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2.5rem;
  }
  
  body.motivation-letter .ml-list-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  }
  
  body.motivation-letter .ml-list-empty__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
  }
  
  /* ==================== RESPONSIVE ==================== */
  
  @media (max-width: 968px) {
    body.motivation-letter .ml-list-hero__header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    body.motivation-letter .ml-list-hero__cta {
      width: 100%;
      justify-content: center;
    }
  
    body.motivation-letter .ml-list-table {
      overflow-x: auto;
    }
  
    body.motivation-letter .ml-table {
      min-width: 900px;
    }
  }
  
  @media (max-width: 768px) {
    body.motivation-letter .ml-list-hero__title {
      font-size: 2rem;
    }
  
    body.motivation-letter .ml-list-stats {
      grid-template-columns: 1fr;
    }
  
    body.motivation-letter .ml-list-empty {
      padding: 3rem 1.5rem;
    }
  
    body.motivation-letter .ml-list-empty__title {
      font-size: 1.75rem;
    }
  }
  
  @media (max-width: 480px) {
    body.motivation-letter .ml-list-hero__title {
      font-size: 1.75rem;
    }
  
    body.motivation-letter .ml-table th,
    body.motivation-letter .ml-table td {
      padding: 1rem;
    }
  
    body.motivation-letter .ml-list-empty__icon {
      width: 80px;
      height: 80px;
    }
  }


  /* ================================
   FIX CLICKABLE CARDS & BUTTONS
================================ */

.ml-card,
.ml-card * {
  pointer-events: auto;
}

.ml-card {
  position: relative;
  z-index: 5;
}

.ml-card::before,
.ml-card::after {
  pointer-events: none;
}


.ml-card--featured {
  cursor: pointer;
}


.ml-hero::before,
.ml-hero::after {
  pointer-events: none;
}

.ml-card {
  position: relative;
  z-index: 2;
}

.ml-card > * {
  position: relative;
  z-index: 3;
}

.glow,
.overlay,
.background-effect {
  pointer-events: none;
}


/* ================================
   FIX: Boutons / liens non cliquables (overlay global)
================================ */

/* 1) On garantit que l'app est au-dessus des décors */
body.motivation-letter .app-main.motivation-letter,
body.motivation-letter .ml-hero,
body.motivation-letter .ml-features,
body.motivation-letter .ml-quick,
body.motivation-letter .ml-benefits,
body.motivation-letter .ml-cta {
  position: relative;
  z-index: 5;
}

/* 2) CTA au premier plan */
body.motivation-letter .ml-hero__cta,
body.motivation-letter .ml-hero__btn,
body.motivation-letter .ml-cta__btn,
body.motivation-letter .ml-quick__card {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}
/* ================================
   FIX: overlay menu (hamburger) qui bloque les clics
   -> fermé = pointer-events:none
================================ */

.nav-overlay,
.menu-overlay,
.drawer-overlay,
.drawer-backdrop,
.mobile-menu-overlay,
.backdrop {
  pointer-events: none;
  opacity: 0;
}

/* si tu as une classe "open / active / show" */
.nav-overlay.is-open,
.menu-overlay.is-open,
.drawer-overlay.is-open,
.drawer-backdrop.is-open,
.mobile-menu-overlay.is-open,
.backdrop.is-open,
.nav-overlay.active,
.menu-overlay.active,
.drawer-overlay.active,
.backdrop.active {
  pointer-events: auto;
  opacity: 1;
}

/* ============================================================
   FIX FORCÉ — CTA toujours au-dessus (anti overlay)
============================================================ */
body.motivation-letter .ml-hero__cta,
body.motivation-letter .ml-hero__btn,
body.motivation-letter .ml-cta__btn,
body.motivation-letter .ml-quick__card {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}
