/* Institut Libre — shared visual language, V2.1 */
:root{--il-forest:#123c2b;--il-soft:#eaf1e8;--il-radius:20px}
html[data-theme="dark"]{--page:#101713;--paper:#18221c;--surface:#18221c;--surface-soft:#223128;--line:#35463b;--ink:#f1f5ef;--muted:#b7c4ba;--il-soft:#263b2e}
html .topbar{background:var(--paper);border-bottom:1px solid var(--line);color:var(--ink)}
html .topbar .nav-links a,html .topbar .logout-link,html .mobile-toggle{color:var(--muted)}
html .topbar .nav-links a.active,html .topbar .nav-links a:hover{color:var(--blue)}
html[data-theme="light"] .topbar .brand img{filter:brightness(0)}
html[data-theme="light"] :is(.player-top,.focus-top) .brand img{filter:brightness(0)}
html :is(.player-top,.focus-top) .btn-focus{background:var(--surface-soft);color:var(--ink);border:1px solid var(--line)}
html :is(.player-top,.focus-top) .player-title{color:var(--ink)}
html .progress{height:6px;background:var(--line);border-radius:20px;overflow:hidden}
html .progress>span{background:var(--blue);border-radius:inherit}
html .theme-toggle{background:var(--paper);border:1px solid var(--line);color:var(--ink);box-shadow:0 4px 14px #0001;width:44px;height:44px}
html .btn{border-radius:10px;font-size:14px;min-height:44px;font-weight:700}html .btn-primary{box-shadow:none}
html .quiz-heading h1{font-size:clamp(28px,3.5vw,42px);line-height:1.2;letter-spacing:-.035em}
html .quiz-option:has(input:checked){border-color:var(--blue)!important;box-shadow:inset 0 0 0 1px var(--blue)!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.il-dashboard{max-width:1280px;padding-top:42px;padding-bottom:60px}
.il-heading h1{font-size:clamp(26px,3.2vw,40px);line-height:1.18;letter-spacing:-.04em;margin:12px 0}.il-heading p{margin-bottom:28px;line-height:1.6}
.il-overview{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px;margin-bottom:48px}
.il-resume{background:var(--il-forest);color:#fff;border-radius:var(--il-radius);padding:32px;overflow:hidden}
.il-resume h2{font-size:clamp(24px,2.6vw,32px);line-height:1.2;max-width:28ch;margin:18px 0 12px;color:#fff}.il-resume p{color:#cbe3d3;line-height:1.5;margin:0 0 24px}
.il-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#bce6c8}html .il-resume-button{background:#f5f8ef;color:#153c28;border:0;display:inline-flex;gap:28px;box-shadow:none}
.il-progress-panel{padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:var(--il-radius)}.il-progress-value{font-size:48px;font-weight:700;letter-spacing:-.06em;line-height:1.3;margin:8px 0}.il-progress-value>span{font-size:24px;margin-left:4px;color:var(--muted)}
.il-progress-panel dl{margin:20px 0 0}.il-progress-panel dl>div{display:flex;justify-content:space-between;gap:16px;font-size:13px;padding:6px 0}.il-progress-panel dt{color:var(--muted)}.il-progress-panel dd{font-weight:700;margin:0}
.il-library-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.il-library-heading h2{font-size:28px;letter-spacing:-.03em;margin:6px 0 0}
.il-search{width:min(100%,340px)}.il-search input{width:100%;padding:13px 16px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;font-size:14px}
.il-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0;font-size:13px;flex-wrap:wrap}.il-filters{display:flex;gap:6px;flex-wrap:wrap}.il-filters button{border:1px solid transparent;background:transparent;color:var(--muted);padding:10px 15px;min-height:42px;border-radius:8px;font:inherit;cursor:pointer}.il-filters button[aria-pressed="true"]{color:var(--ink);background:var(--il-soft);border-color:var(--line);font-weight:700}
.il-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.il-course-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:var(--il-radius);background:var(--paper);transition:box-shadow .2s,border-color .2s}.il-course-card:hover{border-color:var(--blue);box-shadow:0 8px 24px #10271912}.il-course-card[hidden]{display:none!important}
.il-card-media{aspect-ratio:16/9;overflow:hidden;background:#123c2b;flex-shrink:0}.il-card-media>img{display:block;width:100%;height:100%;object-fit:cover}
.il-cover-placeholder{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:24px;background:linear-gradient(125deg,#123c2b,#255a40);color:#fff}.il-cover-placeholder>span{font-size:26px;font-weight:800;line-height:.95;letter-spacing:-.04em}.il-dot{color:#8cdfa3}.il-cover-placeholder small{font-size:11px;color:#d3e7d8}
.il-card-body{padding:22px;display:flex;flex:1;flex-direction:column;min-width:0}.il-card-labels{display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:14px}.il-level{border-radius:6px;background:var(--il-soft);padding:5px 8px;font-weight:700}.il-state{color:var(--muted)}
.il-card-body h3{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:0 0 12px;overflow-wrap:anywhere;font-weight:800}.il-card-description{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.il-card-meta{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px 14px;margin-bottom:22px;line-height:1.5}.il-card-meta>span+span{white-space:nowrap}.il-card-footer{margin-top:auto}.il-card-progress-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px;color:var(--muted)}.il-card-progress-label strong{color:var(--ink)}
.il-card-footer>.btn{width:100%;margin-top:18px;display:flex;align-items:center;justify-content:space-between;padding:12px 15px}.il-program-link{display:block;text-align:center;font-size:12px;color:var(--muted);margin-top:13px;text-underline-offset:4px}.il-upcoming{margin:18px 0 0;padding:12px;background:var(--surface-soft);border-radius:10px;text-align:center;font-size:13px;color:var(--muted)}
.il-library-empty{padding:40px;text-align:center;border:1px dashed var(--line);border-radius:var(--il-radius);background:var(--paper)}.il-library-empty[hidden]{display:none}
html .course-hero{background:var(--il-forest);color:white}html .course-hero h1{font-size:clamp(28px,4vw,46px);max-width:26ch}html .course-hero p{max-width:70ch;line-height:1.7}html .hero-mark{max-width:160px;justify-self:center}
html .player-top{border-bottom:1px solid var(--line)}html .lesson-main{padding-bottom:36px}html .lesson-content{max-width:960px;margin-inline:auto;padding:36px}
html .sidebar-module{background:var(--surface-soft);color:var(--ink);border-block:1px solid var(--line)}html .side-lesson.active{background:var(--il-soft);color:var(--ink);border-left:3px solid var(--blue)}html .side-lesson.done .lesson-check{background:var(--blue);color:var(--paper)}
html .lesson-navigation{gap:16px;flex-wrap:wrap;padding-top:24px;border-top:1px solid var(--line);margin-top:32px}html .quiz-question{border:1px solid var(--line);border-radius:16px;background:var(--paper)}html .quiz-option{border-radius:10px;min-height:52px}html .quiz-question h2,html .quiz-question h3{line-height:1.45}
html .admin-side{background:#111c16}html .admin-side .brand{margin-bottom:24px}html .admin-header h1{font-size:clamp(26px,3vw,38px)}html .admin-form{gap:22px}html .panel-head{padding-block:22px}html .field small{line-height:1.6}html .card{border-radius:var(--il-radius)}
@media(max-width:1100px){.il-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.il-dashboard{padding-top:26px}.il-overview{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:32px}.il-resume,.il-progress-panel{padding:24px}.il-library-heading{gap:18px}.il-search{width:100%}.il-course-grid{grid-template-columns:minmax(0,1fr);gap:20px}.il-card-body{padding:20px}.il-card-body h3{font-size:21px}.il-toolbar{gap:12px}.il-filters button{padding:10px 12px}html .lesson-content{padding:24px 18px}html .lesson-navigation>*{width:100%}html .lesson-navigation .btn{white-space:normal}.il-library-empty{padding:24px}}
