/* SKEDGEX — espace élève. Reprend l'identité du site public, pas celle du back-office :
   fond sombre unique, comme le site. Un élève qui arrive d'une page noire ne doit pas
   se retrouver sur du blanc. */
@font-face{font-family:"InterVariable";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("/assets/fonts/InterVariable.woff2") format("woff2")}
:root{
  color-scheme:dark;
  --g:#3ade84;--g2:#5ce79a;--g-tint:#0f2318;--g-tint2:#16351f;--g-neon:#00ff66;
  --ink:#f2f2f4;--ink2:#c9c9cf;--muted:#96969e;--muted2:#85858d;
  --line:#26262b;--line2:#34343b;--surface:#0b0b0c;--surface2:#131316;
  --r:14px;--r-s:10px;--pill:980px;--ease:cubic-bezier(.16,1,.3,1);
  --ff:"InterVariable",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--surface);color:var(--ink);font-family:var(--ff);font-size:16px;
  line-height:1.6;-webkit-font-smoothing:antialiased;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-weight:640;letter-spacing:-.032em;line-height:1.1}
h1{font-size:clamp(1.7rem,3.2vw,2.4rem)}h2{font-size:1.25rem}h3{font-size:1rem}
:focus-visible{outline:2px solid var(--g);outline-offset:3px;border-radius:4px}
.zone{width:min(1080px,calc(100% - 40px));margin-inline:auto}

.tete{position:sticky;top:0;z-index:50;background:rgba(11,11,12,.86);
  backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
.tete__in{height:62px;display:flex;align-items:center;gap:18px}
.marque,.seul__marque{display:flex;align-items:center;gap:10px}
.marque img{width:26px;height:26px;border-radius:6px}
/* Le libellé est un <span> qui contient <b>SKEDGEX</b> puis un <span> de sur-titre :
   on cible chaque niveau explicitement, sinon les deux se confondent sur une ligne. */
.marque > span,.seul__marque > span{display:flex;flex-direction:column;line-height:1}
.marque b,.seul__marque b{font-size:.94rem;font-weight:620;letter-spacing:.1em}
.marque > span > span,.seul__marque > span > span{
  font-size:.5rem;letter-spacing:.24em;color:var(--muted2);margin-top:4px}
.tete nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.tete nav a{padding:7px 12px;border-radius:8px;font-size:.88rem;color:var(--ink2);transition:.15s}
.tete nav a:hover{background:var(--surface2)}

main{padding:38px 0 70px}
.fil{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.fil a:hover{color:var(--g)}
.chapeau{margin-bottom:32px}
.chapeau p{color:var(--muted);margin:10px 0 0;max-width:62ch}

.bouton{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
  padding:0 22px;border:1px solid transparent;border-radius:var(--pill);background:var(--g);color:#062512;
  font:inherit;font-size:.94rem;font-weight:560;cursor:pointer;transition:background .16s,transform .12s}
.bouton:hover{background:var(--g2)}.bouton:active{transform:scale(.97)}
.bouton--clair{background:var(--surface);color:var(--ink);border-color:var(--line2)}
.bouton--clair:hover{background:var(--surface2)}
.bouton--sm{min-height:36px;padding:0 15px;font-size:.86rem}
.bouton[disabled]{opacity:.45;pointer-events:none}

.cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.cours{border:1px solid var(--line);border-radius:var(--r);padding:24px;background:var(--surface);
  transition:border-color .2s,transform .2s var(--ease)}
.cours:hover{border-color:var(--line2);transform:translateY(-2px)}
.cours h2{margin-bottom:6px}
.cours p{color:var(--muted);font-size:.92rem;margin:0 0 18px}
.jauge{height:5px;border-radius:3px;background:var(--surface2);overflow:hidden;margin:14px 0 8px}
.jauge i{display:block;height:100%;background:var(--g);border-radius:3px;transition:width .6s var(--ease)}
.jauge-txt{font-size:.8rem;color:var(--muted)}

.module{border:1px solid var(--line);border-radius:var(--r);margin-bottom:14px;overflow:hidden}
.module__t{padding:15px 20px;background:var(--surface2);border-bottom:1px solid var(--line);
  display:flex;align-items:baseline;gap:12px}
.module__t code{font-size:.72rem;font-weight:620;letter-spacing:.06em;color:var(--g);
  background:var(--g-tint);padding:3px 8px;border-radius:5px}
.module__t b{font-size:.98rem;font-weight:600}
.module__t span{margin-left:auto;font-size:.8rem;color:var(--muted)}
.lecon{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--line);
  transition:background .15s}
.lecon:last-child{border-bottom:0}
.lecon:hover{background:var(--surface2)}
.lecon__coche{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line2);flex:none;
  display:grid;place-items:center}
.lecon--faite .lecon__coche{background:var(--g);border-color:var(--g)}
.lecon--faite .lecon__coche::after{content:"";width:9px;height:5px;border-left:1.8px solid #062512;
  border-bottom:1.8px solid #062512;transform:rotate(-45deg) translate(1px,-1px)}
.lecon__t{flex:1;min-width:0}
.lecon__t b{display:block;font-size:.94rem;font-weight:540}
.lecon__t span{font-size:.82rem;color:var(--muted)}
.lecon__d{font-size:.82rem;color:var(--muted2);white-space:nowrap}

.lecteur{position:relative;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:#000;
  border:1px solid var(--line)}
.lecteur iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.lecteur__vide{position:absolute;inset:0;display:grid;place-items:center;text-align:center;
  background:var(--surface2);color:var(--muted2);font-size:.9rem;padding:24px}
.nav-lecon{display:flex;justify-content:space-between;gap:12px;margin-top:22px;flex-wrap:wrap}

.note{border:1px solid var(--line);border-left:2.5px solid var(--g);border-radius:0 var(--r-s) var(--r-s) 0;
  background:var(--surface2);padding:16px 20px;color:var(--muted);font-size:.9rem;line-height:1.65}
.note b{color:var(--ink);font-weight:600}
.note--erreur{border-left-color:#f2626e;background:#2a1518;color:#f5a3ab}
.vide{text-align:center;padding:60px 20px;color:var(--muted2)}
.vide b{display:block;color:var(--ink2);font-size:1.05rem;margin-bottom:8px;font-weight:600}

.seul{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--surface2)}
.seul__boite{width:min(410px,100%);background:var(--surface);border:1px solid var(--line);
  border-radius:16px;padding:32px;box-shadow:0 2px 6px rgba(0,0,0,.4),0 24px 64px rgba(0,0,0,.55)}
.seul__marque{margin-bottom:24px}
.seul__marque img{width:30px;height:30px;border-radius:7px}
label{display:block;font-size:.86rem;font-weight:560;color:var(--ink2);margin-bottom:6px}
input[type=email],input[type=password],input[type=text]{width:100%;padding:11px 13px;
  border:1px solid var(--line2);border-radius:var(--r-s);font:inherit;font-size:.94rem;outline:none;
  background:var(--surface2);color:var(--ink);
  transition:border-color .15s,box-shadow .15s}
input::placeholder{color:var(--muted2)}
input:focus{border-color:var(--g);box-shadow:0 0 0 3px var(--g-tint)}
.champ{margin-bottom:18px}
.aide{font-size:.8rem;color:var(--muted2);margin-top:5px;line-height:1.45}

@media (max-width:640px){
  .zone{width:calc(100% - 32px)}
  /* La barre passe sur deux lignes : trois liens côte à côte ne tiennent pas
     sur 375 px sans tronquer « Se déconnecter ». */
  .tete__in{height:auto;flex-wrap:wrap;gap:0;padding-top:11px}
  .marque{width:100%;padding-bottom:11px}
  .tete nav{margin-left:0;width:100%;gap:0;border-top:1px solid var(--line)}
  .tete nav a{flex:1;text-align:center;padding:12px 4px;border-radius:0;font-size:.84rem}
  main{padding:28px 0 56px}
  .lecon{padding:13px 16px}
  .nav-lecon .bouton{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
