/* Authentification */
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% 12%,#e8f2ff 0,transparent 30%),radial-gradient(circle at 90% 85%,#e3f8f2 0,transparent 28%),#f7f9fc;color:#14213b;font-family:"DM Sans",sans-serif}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#14213b;font:800 19px Manrope,sans-serif;letter-spacing:-.7px}
.brand strong{color:#3478ed}.brand small{display:block;font:700 8px "DM Sans",sans-serif;letter-spacing:2px;color:#8290a5;margin-top:3px}
.brand-mark{width:43px;height:43px;border-radius:14px;background:#14213b;color:#fff;display:grid;place-items:center;font:800 23px Manrope}.brand-mark span{color:#70d6c2}
.auth-shell{width:min(100% - 36px,500px);margin:0 auto;padding:34px 0 22px;min-height:100vh;display:flex;flex-direction:column;align-items:center}
.auth-card{width:100%;margin:auto 0;background:#fff;border:1px solid #e8edf4;border-radius:24px;padding:clamp(25px,7vw,42px);box-shadow:0 24px 70px #24395b12}
.back{display:inline-block;text-decoration:none;color:#64748b;font-size:13px;margin-bottom:32px}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#3478ed}
.auth-card h1{font:800 clamp(27px,6vw,35px) Manrope,sans-serif;letter-spacing:-1.4px;margin:12px 0 8px}
.intro{color:#718096;font-size:14px;line-height:1.6;margin:0 0 28px}
form{display:grid;gap:10px}label{font-size:12px;font-weight:700;margin-top:5px}
input{width:100%;height:49px;border:1px solid #dce4ef;border-radius:11px;padding:0 14px;font:14px "DM Sans",sans-serif;color:#14213b;outline:none;background:#fbfcfe}
input:focus{border-color:#3478ed;box-shadow:0 0 0 3px #3478ed18}
.primary{height:51px;border:0;border-radius:11px;background:#2869dc;color:#fff;font:700 14px "DM Sans",sans-serif;cursor:pointer;margin-top:13px;box-shadow:0 8px 18px #2869dc28}
.primary:hover{background:#1d56bd}.primary:disabled{opacity:.65;cursor:wait}.primary span{margin-left:8px}
.message{min-height:18px;margin:0;font-size:12px;line-height:1.5;color:#b42318}.message.success{color:#16845b}
.switch{text-align:center;color:#748197;font-size:12px;margin:24px 0 0}.switch a{color:#2869dc;font-weight:700;text-decoration:none}
.auth-shell>footer{font-size:11px;color:#8b97a9;padding-top:20px}

/* Tableau de bord étudiant */
.student-dashboard-page{background:#f7f9fc;color:#192541;min-height:100vh}
.student-layout{min-height:100vh}
.student-sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#fff;border-right:1px solid #edf0f5;padding:29px 20px 22px;display:flex;flex-direction:column;z-index:5}
.dashboard-brand{font-size:17px;gap:10px}.dashboard-brand .brand-mark{width:39px;height:39px;border-radius:12px;font-size:21px}
.sidebar-label{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#a2acbd;margin:48px 0 13px 12px}
.side-nav{display:grid;gap:7px}
.side-link{height:45px;display:flex;align-items:center;gap:13px;padding:0 13px;border-radius:10px;text-decoration:none;color:#78849a;font-size:12px;font-weight:600;transition:.2s}
.side-link:hover,.side-link.active{background:#edf2ff;color:#3568dc}
.side-icon{font-size:17px;width:19px;text-align:center}
.sidebar-bottom{margin-top:auto}
.sidebar-help{background:linear-gradient(145deg,#f0f4ff,#eefaf6);border:1px solid #e8eef8;border-radius:13px;padding:15px;display:grid;gap:7px}
.sidebar-help>span{color:#4776e8;font-size:18px}.sidebar-help b{font:800 11px Manrope;color:#263654}.sidebar-help small{font-size:10px;line-height:1.6;color:#8792a6}
.sidebar-logout{width:100%;margin-top:17px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e5eaf2;background:#fff;color:#65718a;border-radius:10px;padding:12px;font:700 11px "DM Sans",sans-serif;cursor:pointer}
.sidebar-logout:hover{border-color:#cbd7ee;color:#315fc1}.sidebar-logout:disabled{opacity:.6}
.student-main{margin-left:245px;padding:37px clamp(24px,4vw,58px) 24px;max-width:1600px}
.student-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.date-label{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#8794aa;text-transform:uppercase}
.student-header h1{font:800 clamp(25px,3vw,34px)/1.2 Manrope,sans-serif;letter-spacing:-1.2px;margin:9px 0 6px;color:#182642}
.student-header h1 span:first-child{color:#3568dc}.hello-star{font-size:18px;color:#e5b95d}
.student-header p{margin:0;color:#8994a8;font-size:12px}
.header-profile{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #edf0f5;padding:8px 13px 8px 8px;border-radius:12px;min-width:145px}
.profile-avatar{width:35px;height:35px;border-radius:11px;background:#eaf0ff;color:#416bd2;display:grid;place-items:center;font:800 14px Manrope}
.header-profile b,.header-profile small{display:block}.header-profile b{font-size:11px;color:#34415d;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-profile small{font-size:9px;color:#9aa4b5;margin-top:3px}
.dashboard-message:empty{display:none}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:31px}
.stat-card{background:#fff;border:1px solid #edf0f5;border-radius:14px;padding:17px 19px;box-shadow:0 7px 22px #25395b06}
.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1.2px;font-weight:800;color:#9aa5b7}
.stat-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:15px}.stat-icon.blue{background:#edf2ff;color:#5276df}.stat-icon.violet{background:#f2edff;color:#9274d2}.stat-icon.green{background:#e8f8f1;color:#42aa8d}
.stat-card>strong{display:block;font:800 27px Manrope;color:#1b2946;margin:12px 0 2px}.stat-card>small{font-size:10px;color:#9aa4b5}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.85fr);gap:23px;align-items:start}
.dashboard-primary-column,.dashboard-secondary-column{min-width:0}
.dash-section{margin-bottom:29px}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:13px}
.section-kicker{font-size:8px;letter-spacing:1.4px;font-weight:800;color:#9ba6b8}
.section-title-row h2{font:800 18px Manrope;letter-spacing:-.5px;color:#1c2945;margin:5px 0 0}
.section-count{font-size:9px;color:#9aa5b7;padding-bottom:3px}
.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.course-card{background:#fff;border:1px solid #edf0f5;border-radius:13px;padding:16px;min-height:174px;display:flex;flex-direction:column;box-shadow:0 7px 22px #25395b05;transition:transform .2s,box-shadow .2s}
.course-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px #25395b0c}
.course-card-icon{width:34px;height:34px;border-radius:10px;background:#eaf7f2;color:#3fa88b;display:grid;place-items:center;font-size:16px;margin-bottom:12px}
.course-card:nth-child(3n+2) .course-card-icon{background:#f1edff;color:#9273d1}.course-card:nth-child(3n+3) .course-card-icon{background:#fff1e8;color:#d99568}
.course-meta{font-size:8px;letter-spacing:.4px;color:#6381cf;font-weight:700}
.course-card h3{font:800 12px Manrope;color:#293753;margin:6px 0}
.course-card-body>p{font-size:10px;line-height:1.6;color:#8994a8;margin:0}
.course-card-footer{margin-top:auto;padding-top:14px;display:flex;justify-content:space-between;align-items:center;color:#a0aabc;font-size:9px}
.course-arrow{color:#4773dd;font-size:14px}
.announcement-list,.resource-list{background:#fff;border:1px solid #edf0f5;border-radius:13px;padding:2px 15px}
.announcement-card{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #f0f2f6}.announcement-card:last-child{border-bottom:0}
.announcement-mark{flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#f2edff;color:#9273d1;display:grid;place-items:center}
.announcement-card h3{font:800 11px Manrope;color:#2a3854;margin:1px 0 5px}.announcement-card p{font-size:10px;line-height:1.6;color:#8994a8;margin:0;white-space:pre-wrap}
.progress-widget{position:relative;overflow:hidden;background:linear-gradient(145deg,#142344,#203b70);border-radius:15px;padding:18px;color:#fff;min-height:250px;margin-bottom:25px}
.progress-widget-top{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;font-weight:800;color:#b9c7e3}.progress-widget-top span:last-child{color:#79d7c0;font-size:15px}
.progress-widget h3{font:800 17px Manrope;margin:15px 0 7px;position:relative;z-index:1}.progress-widget p{font-size:10px;line-height:1.6;color:#bdc9df;max-width:210px;margin:0;position:relative;z-index:1}
.progress-illustration{height:83px;position:relative;display:flex;align-items:center;justify-content:center;margin:3px 0}
.book-shape{width:53px;height:53px;border:1px solid #7087b3;background:linear-gradient(145deg,#47649b,#2c477b);border-radius:13px;display:grid;place-items:center;font-size:25px;transform:rotate(-9deg);box-shadow:0 12px 24px #09162e66;position:relative;z-index:1}
.sparkle{position:absolute;color:#80dbc5}.s1{left:27%;top:7px;font-size:15px}.s2{right:27%;bottom:9px;font-size:19px}.orbit-line{position:absolute;width:170px;height:50px;border:1px solid #536b98;border-radius:50%;transform:rotate(-12deg)}
.widget-link{display:flex;align-items:center;justify-content:space-between;text-decoration:none;border-top:1px solid #ffffff25;padding-top:12px;color:#fff;font-size:10px;font-weight:700}
.resource-list{padding:0 12px}
.resource-item{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f2f6;min-width:0}.resource-item:last-child{border-bottom:0}
.pdf-badge{width:33px;height:37px;flex:0 0 33px;border-radius:7px;background:#fff0ef;color:#d97972;display:grid;place-items:center;font:800 8px Manrope}
.resource-copy{min-width:0;flex:1}.resource-copy b,.resource-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-copy b{font-size:10px;color:#35415b}.resource-copy small{font-size:9px;color:#9aa4b5;margin-top:4px}
.resource-open{width:27px;height:27px;flex:0 0 27px;border:1px solid #edf0f5;border-radius:8px;display:grid;place-items:center;color:#4773dd;text-decoration:none}
.loading-card,.empty-state{padding:18px;color:#9aa4b5;font-size:10px;line-height:1.6}
.student-footer{border-top:1px solid #e9edf3;padding-top:18px;color:#9aa4b5;font-size:9px}.student-footer span{padding:0 5px}
@media(max-width:1050px){.student-sidebar{width:210px;padding-inline:15px}.student-main{margin-left:210px;padding-inline:26px}.dashboard-columns{grid-template-columns:minmax(0,1.35fr) minmax(225px,.8fr)}}
@media(max-width:820px){.student-sidebar{position:static;width:auto;height:auto;padding:14px 20px;border-right:0;border-bottom:1px solid #edf0f5;display:block}.dashboard-brand{margin-bottom:13px}.sidebar-label,.sidebar-bottom{display:none}.side-nav{display:flex;overflow-x:auto;gap:6px}.side-link{white-space:nowrap;height:38px;padding:0 11px;font-size:10px}.student-main{margin-left:0;padding:27px 22px 22px}.dashboard-columns{grid-template-columns:1fr  minmax(230px,.75fr)}}
@media(max-width:620px){.student-main{padding:23px 15px}.student-header{align-items:flex-start}.header-profile{min-width:0;padding:6px}.header-profile>div:last-child{display:none}.student-header h1{font-size:25px}.student-header p{font-size:10px;max-width:230px}.stat-grid{gap:8px}.stat-card{padding:13px 11px}.stat-card>strong{font-size:23px}.stat-top{font-size:7px}.stat-icon{width:27px;height:27px}.dashboard-columns{grid-template-columns:1fr}.dashboard-secondary-column{display:grid;grid-template-columns:1fr;gap:0}.progress-widget{min-height:225px}.course-grid{grid-template-columns:1fr 1fr}.course-card{padding:13px;min-height:168px}}
@media(max-width:390px){.course-grid{grid-template-columns:1fr}.stat-card>small{font-size:9px}.student-sidebar{padding-inline:12px}.side-link{font-size:9px}}
