/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Poppins",sans-serif;
}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  color:#fff;
  overflow-x:hidden;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url("images/Hero-imggg.jpg");

  background-size:cover;
  background-position:center;

  position:relative;
}

/* ================= OVERLAY PREMIUM ================= */

body::before{
  content:'';
  position:absolute;
  inset:0;

  background:linear-gradient(
    135deg,
    rgba(0, 45, 70, 0.80),
    rgba(0, 25, 40, 0.88),
    rgba(5, 10, 15, 0.92)
  );

  z-index:0;
}

body::after{
  content:'';
  position:absolute;

  width:420px;
  height:420px;

  background:rgba(255,204,0,0.10);
  border-radius:50%;
  filter:blur(120px);

  top:-120px;
  right:-120px;

  z-index:0;
}

/* ================= GLOBAL LAYOUT ================= */

.sidebar,
.main-content{
  position:relative;
  z-index:2;
}

/* ================= SIDEBAR (INCHANGÉ VISUELLEMENT) ================= */

.sidebar{
  position:fixed;
  top:0;
  left:0;

  width:280px;
  height:100vh;

  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(24px);

  border-right:1px solid rgba(255,255,255,0.12);

  padding:30px 20px;
}

.logo-area{
  text-align:center;
  margin-bottom:40px;
}

.logo-area img{
  width:90px;
}

.sidebar-menu{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.sidebar-menu a,
.logout-btn{
  display:flex;
  align-items:center;
  gap:14px;

  padding:14px 16px;

  border-radius:14px;

  text-decoration:none;

  color:#cbd5e1;

  background:rgba(255,255,255,0.03);

  border:1px solid rgba(255,255,255,0.08);

  transition:0.25s ease;

  font-size:0.95rem;
  font-weight:500;
}

.sidebar-menu a:hover,
.logout-btn:hover{
  background:rgba(255,204,0,0.10);
  color:#ffcc00;
  border-color:rgba(255,204,0,0.25);
}

.sidebar-menu a.active{
  background:#ffcc00;
  color:#08131b;
  font-weight:700;
}

/* ================= MAIN ================= */

.main-content{
  margin-left:280px;
  padding:40px;
}

/* ================= HERO ================= */

.hero-section{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:25px;

  margin-bottom:30px;
}

.hero-left,
.hero-card{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:24px;

  padding:32px;

  backdrop-filter:blur(18px);

  box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.premium-badge{
  display:inline-block;

  background:rgba(255,204,0,0.12);
  color:#ffcc00;

  padding:8px 14px;

  border-radius:999px;

  font-size:0.8rem;
  font-weight:600;
}

.hero-left h1{
  font-size:2.2rem;
  margin-top:12px;
  letter-spacing:-0.5px;
}

.hero-left p{
  color:rgba(255,255,255,0.75);
  margin-top:10px;
  line-height:1.6;
}

/* ================= BUTTONS ================= */

.hero-btn,
.continue-btn,
.settings-actions button{
  display:inline-block;

  padding:12px 18px;

  border-radius:12px;

  font-weight:600;

  cursor:pointer;

  transition:0.25s ease;

  background:#ffcc00;
  color:#08131b;

  border:none;

  text-decoration:none;

  box-shadow:none;
}

.hero-btn:hover,
.continue-btn:hover,
.settings-actions button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,0.25);
}

.hero-btn.secondary{
  background:transparent;
  border:1px solid rgba(255,255,255,0.15);
  color:#fff;
}

/* ================= CONTINUE CARD ================= */

.continue-card{
  display:flex;
  align-items:center;
  gap:20px;

  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:24px;

  padding:22px;

  margin-bottom:30px;

  backdrop-filter:blur(18px);
}

.continue-card img{
  width:200px;
  height:130px;

  object-fit:cover;

  border-radius:16px;
}

/* ================= STATS ================= */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;

  margin-bottom:35px;
}

.stat-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:18px;

  padding:22px;

  display:flex;
  align-items:center;
  gap:14px;

  transition:0.25s ease;

  backdrop-filter:blur(14px);
}

.stat-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,204,0,0.25);
}

/* ICONS */

.yellow{color:#ffcc00;background:rgba(255,204,0,0.12);}
.blue{color:#4da3ff;background:rgba(0,140,255,0.12);}
.green{color:#00ffa2;background:rgba(0,255,150,0.12);}
.dark{color:#fff;background:rgba(255,255,255,0.08);}

/* ================= COURSES ================= */

.courses-grid,
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.course-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:18px;

  overflow:hidden;

  transition:0.25s ease;

  position:relative;
}

.course-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,204,0,0.25);
}

.course-image{
  width:100%;
  height:180px;
  object-fit:cover;
}

.course-content{
  padding:18px;
}

.course-content p{
  color:rgba(255,255,255,0.7);
}

/* BADGE */
.course-badge{
  position:absolute;
  top:12px;
  right:12px;

  background:#00c896;
  color:#fff;

  padding:6px 10px;
  font-size:12px;

  border-radius:20px;

  font-weight:600;
}

/* ================= ACTIVITY ================= */

.activity-item{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);

  padding:18px;

  border-radius:14px;

  display:flex;
  align-items:center;
  gap:12px;

  backdrop-filter:blur(14px);
}

/* ================= SETTINGS ================= */

.settings-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);

  border-radius:18px;

  padding:25px;

  backdrop-filter:blur(14px);
}

.settings-profile{
  display:flex;
  align-items:center;
  gap:16px;

  margin-bottom:20px;
}

.settings-profile img{
  width:80px;
  height:80px;

  border-radius:50%;
}

/* ================= SECTION TITLE ================= */

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:25px;
}

.section-title h2{
  font-weight:700;
  letter-spacing:-0.3px;
}

.section-title a{
  color:rgba(255,255,255,0.7);
  text-decoration:none;

  font-size:0.9rem;

  transition:0.25s ease;
}

.section-title a:hover{
  color:#ffcc00;
}

/* ================= FOOTER ================= */

.dashboard-footer{
  text-align:center;
  color:rgba(255,255,255,0.6);

  padding:25px 0;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1100px){
  .hero-section{
    grid-template-columns:1fr;
  }

  .continue-card{
    flex-direction:column;
  }
}

@media(max-width:900px){
  .sidebar{
    transform:translateX(-100%);
    transition:0.3s ease;
  }

  .sidebar.active{
    transform:translateX(0);
  }

  .main-content{
    margin-left:0;
    padding:90px 20px 30px;
  }
}

@media(max-width:700px){
  .hero-left h1{
    font-size:1.7rem;
  }

  .continue-card img{
    width:100%;
    height:180px;
  }
}

/* ================= MOBILE MENU ================= */

.menu-toggle{
  display:none;

  position:fixed;
  top:18px;
  left:18px;

  width:45px;
  height:45px;

  background:#ffcc00;
  color:#08131b;

  border-radius:12px;

  z-index:2000;

  justify-content:center;
  align-items:center;

  cursor:pointer;
}

.overlay{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,0.55);

  opacity:0;
  visibility:hidden;

  transition:0.25s ease;

  z-index:1500;
}

.overlay.active{
  opacity:1;
  visibility:visible;
}

@media (max-width:900px){
  .menu-toggle{display:flex;}

  .sidebar{
    position:fixed;
    width:280px;
    height:100vh;

    z-index:1500;
  }
}