/*=====================================================
	Espace étudiant — remodelé dans un esprit "Udemy" :
	cartes de cours, barres de progression, curriculum
	numéroté, lecteur de leçon avec panneau latéral.
=====================================================*/

.student-section{
	padding: 60px 0 90px;
	background: #f7f8fa;
	min-height: 50vh;
}

.student-topbar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
}
.student-topbar h1{
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-topbar .student-greeting-sub{
	font-size: 14px;
	color: #6b7280;
	margin-top: 4px;
}
.student-logout-btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	background: var(--pbmit-white-color);
	color: var(--pbmit-heading-color, #1a1a1a);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
}
.student-logout-btn:hover{
	border-color: var(--pbmit-global-color);
	color: var(--pbmit-global-color);
}

/* ---------- Empty state ---------- */
.student-empty-state{
	background: var(--pbmit-white-color);
	border-radius: 16px;
	padding: 60px 30px;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.student-empty-state .student-empty-icon{
	font-size: 46px;
	margin-bottom: 14px;
}
.student-empty-state p{
	color: #6b7280;
	margin-bottom: 22px;
}

/* ---------- Course cards grid (My Learning) ---------- */
.student-courses-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.student-course-card{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.student-course-card:hover{
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.student-course-thumb{
	position: relative;
	height: 150px;
	background: linear-gradient(135deg, var(--pbmit-global-color), #14311d);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.student-course-thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.student-course-thumb .student-course-thumb-icon{
	font-size: 40px;
	opacity: 0.85;
}
.student-status-chip{
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--pbmit-white-color);
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(4px);
}
.student-status-chip.is-confirmed{ background: #1f9d55; }
.student-status-chip.is-pending{ background: #b7791f; }
.student-status-chip.is-cancelled{ background: #c53030; }

.student-course-body{
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.student-course-title{
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pbmit-heading-color, #1a1a1a);
	margin-bottom: 10px;
}
.student-course-title a{ color: inherit; }
.student-course-meta{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.student-course-meta span{
	font-size: 12.5px;
	color: #6b7280;
	background: #f1f3f5;
	padding: 3px 10px;
	border-radius: 100px;
}
.student-course-date{
	font-size: 12px;
	color: #9aa1ab;
	margin-bottom: 14px;
}

.student-progress-row{
	margin-top: auto;
}
.student-progress-labels{
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: #6b7280;
	margin-bottom: 6px;
}
.student-progress-track{
	height: 7px;
	border-radius: 100px;
	background: #e9ecef;
	overflow: hidden;
	margin-bottom: 14px;
}
.student-progress-fill{
	height: 100%;
	border-radius: 100px;
	background: var(--pbmit-global-color);
}

.student-course-cta{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px;
	border-radius: 8px;
	background: var(--pbmit-global-color);
	color: var(--pbmit-white-color) !important;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}
.student-course-cta:hover{
	filter: brightness(1.08);
	color: var(--pbmit-white-color) !important;
}
.student-course-pending-note{
	font-size: 13px;
	color: #b7791f;
	background: #fdf6ec;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
}
.student-course-cancelled-note{
	font-size: 13px;
	color: #c53030;
	background: #fdecec;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
}

/* ---------- Login card ---------- */
.student-login-card{
	max-width: 440px;
	margin: 0 auto;
	background: var(--pbmit-white-color);
	border-radius: 16px;
	padding: 40px 34px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.student-login-icon{
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(var(--pbmit-global-color-rgb), 0.12);
	color: var(--pbmit-global-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 18px;
}
.student-login-card h1{
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 6px;
}
.student-login-card p.student-login-sub{
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 24px;
}
.student-login-card label{
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
	display: block;
}
.student-login-card .form-control{
	border-radius: 8px;
	padding: 11px 14px;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 16px;
}
.student-login-card .form-control:focus{
	border-color: var(--pbmit-global-color);
	box-shadow: none;
}
.student-login-footer-note{
	font-size: 13px;
	color: #6b7280;
	margin-top: 18px;
	text-align: center;
}

/* ---------- Course curriculum page ---------- */
.student-curriculum-sidebar{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 110px;
}
.student-curriculum-sidebar img{
	width: 100%;
	height: 170px;
	object-fit: cover;
}
.student-curriculum-sidebar-body{
	padding: 20px 22px 24px;
}
.student-curriculum-sidebar-body h3{
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 14px;
}
.student-back-link{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pbmit-global-color);
	margin-top: 12px;
}

.student-curriculum-heading{
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 16px;
}
.student-curriculum-list{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.student-curriculum-row{
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f1f3;
	color: var(--pbmit-heading-color, #1a1a1a);
	transition: background 0.15s ease;
}
.student-curriculum-row:last-child{ border-bottom: none; }
.student-curriculum-row:hover{ background: #f7f8fa; }
.student-curriculum-row.is-current{
	background: rgba(var(--pbmit-global-color-rgb), 0.06);
}
.student-curriculum-index{
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	background: #f1f3f5;
	color: #6b7280;
}
.student-curriculum-row.is-done .student-curriculum-index{
	background: var(--pbmit-global-color);
	color: var(--pbmit-white-color);
}
.student-curriculum-text{
	flex: 1;
	min-width: 0;
}
.student-curriculum-title{
	font-size: 14.5px;
	font-weight: 600;
	margin-bottom: 3px;
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-curriculum-sub{
	font-size: 12.5px;
	color: #9aa1ab;
}
.student-curriculum-row:visited,
.student-curriculum-row:visited .student-curriculum-title{
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-curriculum-check{
	font-size: 18px;
	color: var(--pbmit-global-color);
}

/* ---------- Lesson player page ---------- */
.student-lesson-video{
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	margin-bottom: 24px;
}
.student-lesson-header{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}
.student-lesson-header h1{
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 6px;
}
.student-lesson-complete-btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	background: var(--pbmit-global-color);
	color: var(--pbmit-white-color);
	white-space: nowrap;
}
.student-lesson-complete-btn.is-done{
	background: #f1f3f5;
	color: #1a1a1a;
}
.student-lesson-content{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	padding: 26px 28px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}
.student-lesson-nav{
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 24px;
}
.student-lesson-nav a{
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pbmit-heading-color, #1a1a1a);
	background: var(--pbmit-white-color);
	border-radius: 8px;
	padding: 10px 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	max-width: 48%;
}
.student-lesson-nav a:hover{ color: var(--pbmit-global-color); }
.student-lesson-nav a.nav-next{ margin-left: auto; text-align: right; }

.student-teacher-card{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}
.student-teacher-card .student-teacher-row{
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}
.student-teacher-card img{
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.student-teacher-name{ font-weight: 700; font-size: 15px; }
.student-teacher-title{ font-size: 13px; color: #6b7280; }
.student-teacher-rating{ font-size: 13px; margin-top: 3px; }

.student-star-rating{
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
	margin-bottom: 10px;
}
.student-star-rating input{ display: none; }
.student-star-rating label{
	font-size: 22px;
	color: #d9dbe0;
	cursor: pointer;
}
.student-star-rating input:checked ~ label,
.student-star-rating label:hover,
.student-star-rating label:hover ~ label{
	color: #f5b301;
}

.student-mini-curriculum{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	position: sticky;
	top: 110px;
}
.student-mini-curriculum-head{
	padding: 16px 20px;
	font-weight: 700;
	font-size: 14.5px;
	border-bottom: 1px solid #f0f1f3;
}
.student-mini-curriculum .student-curriculum-row{
	padding: 12px 20px;
}
.student-mini-curriculum .student-curriculum-index{
	width: 26px;
	height: 26px;
	min-width: 26px;
	font-size: 12px;
}
.student-mini-curriculum .student-curriculum-title{ font-size: 13.5px; }

@media (max-width: 991px){
	.student-curriculum-sidebar,
	.student-mini-curriculum{
		position: static;
		margin-bottom: 24px;
	}
}

/* ---------- Account avatar + dropdown menu ---------- */
.student-topbar-compact{
	margin-bottom: 24px;
}
.student-account-menu{
	position: relative;
}
.student-account-trigger{
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--pbmit-white-color);
	border: 1.5px solid rgba(0, 0, 0, 0.1);
	border-radius: 100px;
	padding: 6px 16px 6px 6px;
	cursor: pointer;
}
.student-account-avatar{
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
}
.student-account-avatar-fallback{
	background: var(--pbmit-global-color);
	color: var(--pbmit-white-color);
	font-weight: 700;
	font-size: 14px;
}
.student-account-name{
	font-size: 14px;
	font-weight: 600;
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-account-caret{
	font-size: 12px;
	color: #9aa1ab;
	font-style: normal;
}
.student-account-dropdown{
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 260px;
	background: var(--pbmit-white-color);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	z-index: 50;
}
.student-account-dropdown.is-open{ display: block; }
.student-account-dropdown-head{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #f0f1f3;
}
.student-account-dropdown-head img{
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}
.student-account-dropdown-name{
	font-size: 14.5px;
	font-weight: 700;
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-account-dropdown-email{
	font-size: 12.5px;
	color: #9aa1ab;
	word-break: break-all;
}
.student-account-dropdown-item{
	display: block;
	padding: 12px 18px;
	font-size: 14px;
	color: var(--pbmit-heading-color, #1a1a1a);
}
.student-account-dropdown-item:hover{
	background: #f7f8fa;
	color: var(--pbmit-global-color);
}
.student-account-dropdown-sep{
	height: 1px;
	background: #f0f1f3;
	margin: 4px 0;
}
.student-account-dropdown-logout{
	color: #c53030;
}
.student-account-dropdown-logout:hover{
	color: #c53030;
	background: #fdecec;
}

/* ---------- Profile page ---------- */
.student-profile-nav{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 110px;
}
.student-profile-nav-head{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 18px 20px;
	border-bottom: 1px solid #f0f1f3;
}
.student-profile-nav-head img,
.student-profile-nav-avatar{
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	font-size: 24px;
	margin-bottom: 12px;
}
.student-profile-nav-name{
	font-weight: 700;
	font-size: 15px;
}
.student-profile-nav-item{
	display: block;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	border-bottom: 1px solid #f7f8fa;
}
.student-profile-nav-item:last-child{ border-bottom: none; }
.student-profile-nav-item:hover,
.student-profile-nav-item.is-active{
	color: var(--pbmit-global-color);
	background: rgba(var(--pbmit-global-color-rgb), 0.06);
}

.student-profile-card{
	background: var(--pbmit-white-color);
	border-radius: 14px;
	padding: 28px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
}
.student-profile-card h2{
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 4px;
}
.student-profile-card-sub{
	font-size: 13.5px;
	color: #6b7280;
	margin-bottom: 22px;
}
.student-profile-card label{
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
	margin-top: 16px;
	display: block;
}
.student-profile-card label:first-of-type{ margin-top: 0; }
.student-profile-card .form-control{
	border-radius: 8px;
	padding: 11px 14px;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.student-profile-card .form-control:focus{
	border-color: var(--pbmit-global-color);
	box-shadow: none;
}
.student-profile-field-note{
	font-size: 12px;
	color: #9aa1ab;
	margin-top: 4px;
}
.student-profile-photo-row{
	margin-top: 20px;
}
.student-profile-photo-picker{
	display: flex;
	align-items: center;
	gap: 16px;
}
.student-profile-photo-picker img,
.student-profile-photo-picker .student-profile-nav-avatar{
	width: 56px;
	height: 56px;
	margin-bottom: 0;
}
.student-profile-card button[type="submit"]{
	margin-top: 22px;
	display: inline-flex;
}
