/* ==========================================================
   🎨 FMSD LMS – Styles globaux
   Palette : #FF4200 (primaire) / #1E1E1E (secondaire)
========================================================== */

/* --- Global --- */
body {
  font-family: 'Poppins', sans-serif;
  background: #f6f6f6;
  color: #1E1E1E;
}
a { text-decoration: none; }
h1,h2,h3,h4 { color: #1E1E1E; }

/* --- Login Page --- */
.fmsd-login-container {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;
}
.fmsd-login-form h2 {
  margin-bottom: 25px;
  font-size: 22px;
  color: #FF4200;
}
.fmsd-login-form label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}
.fmsd-login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 5px;
  transition: border-color .3s;
}
.fmsd-login-form input:focus {
  border-color: #FF4200;
  outline: none;
}
.fmsd-login-form button {
  margin-top: 20px;
  width: 100%;
  background: #FF4200;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .3s;
}
.fmsd-login-form button:hover {
  background: #ff5a1a;
}
.fmsd-error {
  background: #ffe9e9;
  color: #c80000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 14px;
}

/* --- Dashboard --- */
.fmsd-account {
  max-width: 950px;
  margin: 50px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 40px 50px;
}
.fmsd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.fmsd-avatar {
  background: #FF4200;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  border-radius: 50%;
}
.logout-btn {
  background: #1E1E1E;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background .3s;
}
.logout-btn:hover {
  background: #FF4200;
}

/* --- Tabs --- */
.fmsd-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.tab-btn {
  flex: 1;
  background: #F5F5F5;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: .3s;
  font-size: 15px;
  color: #1E1E1E;
}
.tab-btn.active {
  background: #FF4200;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,66,0,.3);
}

/* --- Profil --- */
.fmsd-profile-card {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 25px 30px;
}
.fmsd-profile-card h3 {
  color: #FF4200;
  font-size: 20px;
}
.fmsd-profile-card ul {
  list-style: none;
  padding: 0;
}
.fmsd-profile-card li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
}
.fmsd-progress {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 6px;
  margin-top: 10px;
  overflow: hidden;
}
.fmsd-progress div {
  height: 10px;
  background: #FF4200;
  border-radius: 6px;
  transition: width .5s;
}

/* --- Modules & Cours --- */
.fmsd-tracks {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.fmsd-module-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px 25px;
  background: #fff;
  transition: .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.fmsd-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.fmsd-module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fmsd-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fmsd-dot {
  width: 10px;
  height: 10px;
  background: #FF4200;
  border-radius: 50%;
}
.fmsd-badge {
  background: #FF4200;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.fmsd-badge.dark {
  background: #1E1E1E;
}
.fmsd-progressbar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 5px;
  margin: 10px 0;
  overflow: hidden;
}
.fmsd-progressbar-fill {
  height: 8px;
  background: #FF4200;
  transition: width .5s;
}
.fmsd-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fmsd-lesson-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.fmsd-lesson-list li a {
  color: #1E1E1E;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fmsd-lesson.is-done a {
  color: #31B237;
}
.fmsd-cta {
  display: inline-block;
  margin-top: 10px;
  background: #FF4200;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}
.fmsd-cta:hover {
  background: #ff5a1a;
}

/* --- Page cours --- */
.mlms-card {
  max-width: 850px;
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mlms-card-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.lesson-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.lesson-navigation a,
.lesson-navigation span {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.lesson-navigation a.prev {
  border: 2px solid #FF4200;
  color: #FF4200;
}
.lesson-navigation a.prev:hover {
  background: #FF4200;
  color: #fff;
}
.lesson-navigation a.next {
  background: #FF4200;
  color: #fff;
}
.lesson-navigation a.next:hover {
  background: #ff5a1a;
}
.lesson-navigation .disabled-btn {
  opacity: .4;
  border: 2px solid #ddd;
  color: #999;
}
.back-btn {
  background: #1E1E1E;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 25px;
}
.back-btn:hover {
  background: #FF4200;
  color: #fff;
}

@media (max-width: 768px) {
  .fmsd-account { padding: 25px; }
  .fmsd-header { flex-direction: column; text-align: center; }
  .logout-btn { margin-top: 10px; }
}
