/* Noweiz Academy, les pages des comptes. Tout le reste du style vient de maquette.css (la maquette validée). */

body { padding-bottom: 0; }   /* pas de barre « Maquette » ici */
.saut { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #0B0B0C; font-weight: 520; text-decoration: none; }
.saut:focus { top: 12px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pale { color: var(--faint); }
.fort { color: var(--ink); font-weight: 520; }
.coupe { overflow-wrap: anywhere; }

/* l'en-tête */
.brand-box { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand-box .brand { margin-right: 0; }
.top form { margin: 0; }
@media (max-width: 420px) { .brand-box .tag { display: none; } }

/* connexion, inscription, mot de passe : une carte éclairée par les deux lumières */
.auth { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - var(--head) - 90px); padding: clamp(36px, 8vh, 96px) max(var(--gutter), env(safe-area-inset-right, 0px)) 72px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.auth-card { width: 100%; max-width: 448px; }
.auth-card h1 { font-size: 28px; font-weight: 480; font-stretch: 106%; letter-spacing: -.028em; line-height: 1.12; }
.auth-text { margin-top: 12px; color: var(--muted); font-size: 16px; }
.auth-text b { color: var(--ink); font-weight: 520; overflow-wrap: anywhere; }
.auth-card .msg { margin-top: 16px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 15px; }
.auth-alt a, .auth-under a, .auth-note a { color: var(--ink); }
.auth-note { margin-top: 20px; color: var(--faint); font-size: 14px; line-height: 1.5; }
.auth-under { margin-top: 22px; max-width: 448px; color: var(--muted); font-size: 15.5px; text-align: center; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* les champs */
.field .hint { margin-top: 0; }
.opt-note { color: var(--faint); }
.pw { position: relative; }
.pw .input { padding-right: 104px; }
.pw-voir { position: absolute; right: 6px; top: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--glass-2); color: var(--muted); font-size: 14px; font-weight: 520; cursor: pointer; }
.pw-voir:hover { color: var(--ink); }
select { font: inherit; color: inherit; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A9A9AC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-color: rgba(0, 0, 0, .32); }
select.input option { background: #161617; color: var(--ink); }
.input[readonly] { color: var(--muted); }
.input-xs { min-height: 40px; width: auto; min-width: 150px; padding-left: 12px; border-radius: 10px; font-size: 15px; }
.btn-xs { min-height: 40px; padding: 6px 16px; font-size: 14.5px; }
.btn-warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: none; color: var(--warn); }
.btn-warn:hover { background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* les messages */
.msg { padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--glass); color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.msg-ok { border-color: color-mix(in srgb, var(--a1) 45%, transparent); background: color-mix(in srgb, var(--a1) 9%, transparent); }
.msg-err { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.main > .msg { max-width: 760px; margin-top: 22px; }
.msg-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.msg-act p { flex: 1 1 320px; color: var(--ink); }
.msg-act form { margin: 0; }

/* l'espace connecté */
.box-text { max-width: 56ch; }
.box form { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.box form .btn { margin-top: 18px; }
.box form .field:first-of-type, .box .two .field { margin-top: 12px; }
.box > form + form { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.formes { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin-top: 32px; }
.formes .box { flex: none; }
.un { max-width: 420px; }
.box-danger { border-color: color-mix(in srgb, var(--warn) 26%, var(--line)); }
.fiche div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.fiche dt { color: var(--muted); }
.fiche dd { text-align: right; overflow-wrap: anywhere; }
.side-foot { overflow-wrap: anywhere; }

/* l'administration */
.lien-neuf { margin-top: 28px; max-width: 980px; flex: none; scroll-margin-top: calc(var(--head) + 24px); }
.copie { display: flex; flex-wrap: wrap; gap: 10px; }
.copie .input { flex: 1 1 320px; width: auto; font-size: 15px; }
.copie .btn { margin: 0; }
.box .copie .btn { align-self: auto; }
.table-box { margin-top: 6px; }
.table-s { min-width: 560px; }
.td-act { text-align: right; }
.td-act form { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
.td-act form .btn { margin: 0; }
th .tag, td .tag { margin-left: 6px; }

/* la page Confidentialité */
.texte { max-width: 760px; }
.texte h2 { margin-top: 40px; font-size: 22px; font-weight: 480; font-stretch: 106%; letter-spacing: -.022em; }
.texte p, .texte ul { margin-top: 12px; color: var(--muted); }
.texte ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.texte b { color: var(--ink); font-weight: 520; }
.texte .msg { margin-top: 36px; color: var(--ink); }
.texte .btn { margin-top: 12px; }
.foot a { color: inherit; }

/* la liste d'attente, côté administrateur (22/11) */
.hint-liste { margin-top: 14px; max-width: 760px; }
.box-liste { margin-top: 28px; max-width: 980px; flex: none; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); }

/* l'espace élève (22/11) */
.app-ict { --c: var(--a2); }
.cohortes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cohortes a { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14.5px; text-decoration: none; }
.cohortes a[aria-current] { border-color: var(--c); color: var(--ink); }
.mod .end-side .btn { margin: 0; }
.mod-lien { color: inherit; text-decoration: none; }
.mod-lien:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.player-vrai { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 22px; background: #101011; }
.player-vide { flex-direction: column; gap: 6px; padding: 24px; text-align: center; color: var(--muted); }
.player-vide p { position: static; }
.lecon-texte { margin-top: 10px; max-width: 64ch; color: var(--muted); white-space: pre-line; }
.lecon-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lecon-act form { display: contents; }
.lesson-side .list a { color: inherit; text-decoration: none; }
.lesson-side .list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lesson-side .list li.cur a { color: var(--ink); }
.essai-note { margin-top: 14px; color: var(--faint); font-size: 14.5px; }

/* le quiz : de vrais boutons radio, habillés comme dans la maquette */
.quiz-form { display: flex; flex-direction: column; gap: 30px; margin-top: 26px; }
.quiz-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-q legend { padding: 0; color: var(--ink); font-size: 20px; font-weight: 480; font-stretch: 104%; letter-spacing: -.018em; line-height: 1.3; max-width: 52ch; }
.quiz-q legend small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14.5px; font-weight: 420; letter-spacing: 0; }
.quiz-q .opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
label.ans { position: relative; }
label.ans input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.ans:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
label.ans:has(input:checked) i { border-color: var(--c); color: var(--ink); }
label.ans:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.ans.juste { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); cursor: default; }
.ans.faux { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); cursor: default; }
.ans.neutre { cursor: default; }
.ans .marque { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.quiz-expl { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.score b { font-size: 44px; font-weight: 460; font-stretch: 108%; letter-spacing: -.03em; line-height: 1; }

/* les lives */
.lives { display: flex; flex-direction: column; gap: 10px; max-width: 980px; margin-top: 32px; }
.live-date { min-width: 150px; color: var(--muted); font-size: 15px; }

/* le certificat : une page à imprimer */
.cert { max-width: 860px; margin-top: 32px; padding: clamp(28px, 5vw, 64px); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line-2)); border-radius: 26px; text-align: center; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 75%); }
.cert-nom { margin-top: 18px; font-size: clamp(34px, 4vw, 56px); font-weight: 460; font-stretch: 110%; letter-spacing: -.035em; line-height: 1.05; }
.cert p { margin-top: 14px; color: var(--muted); }
.cert-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 30px; color: var(--faint); font-size: 14.5px; }
@media print {
  .top, .side, .foot, .no-print, .saut { display: none !important; }
  html, body, .app, .main { background: #fff !important; color: #000 !important; }
  .main { padding: 0 !important; }
  .cert { border-color: #000; background: none; color: #000; }
  .cert p, .cert-pied { color: #333; }
}
.app .doux { color: var(--muted); }
.app .t-15 { font-size: 15px; }
.app .note-faint { color: var(--faint); font-size: 14.5px; }
.app .serre { gap: 4px; }
.app .intro-app { margin-top: 12px; max-width: 62ch; color: var(--muted); }
.app .opts-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.app .mt-4 { margin-top: 4px; } .app .mt-8 { margin-top: 8px; } .app .mt-24 { margin-top: 24px; } .app .mt-28 { margin-top: 28px; } .app .mt-32 { margin-top: 32px; }
.app .m-0 { margin: 0; }
.app .mw-52ch { max-width: 52ch; } .app .mw-640 { max-width: 640px; } .app .mw-860 { max-width: 860px; } .app .mw-980 { max-width: 980px; }

/* l'espace formateur (22/11) */
textarea.input { min-height: 0; height: auto; padding-top: 12px; padding-bottom: 12px; line-height: 1.5; resize: vertical; }
.titre-section { margin-top: 48px; font-size: 24px; font-weight: 480; font-stretch: 106%; letter-spacing: -.022em; scroll-margin-top: calc(var(--head) + 24px); }
.app .mt-16 { margin-top: 16px; }
.champs-2, .champs-3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .champs-2 { grid-template-columns: 1fr 1fr; } .champs-3 { grid-template-columns: 2fr 1.4fr 1fr; } }
.form-lecon, .form-live { display: flex; flex-direction: column; gap: 4px; }
.form-bouton { display: inline-flex; margin: 0; }
.form-bouton .btn, .box .form-bouton .btn { margin: 0; align-self: auto; }
.btn-carre { min-width: 44px; padding-left: 0; padding-right: 0; justify-content: center; }
.liste-gestion li { gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.liste-gestion li:first-child { border-top: 0; }
.liste-gestion .pos { width: 22px; color: var(--faint); font-variant-numeric: tabular-nums; }
.liste-gestion a { color: var(--ink); text-decoration: none; }
.liste-gestion a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sous { display: block; margin-top: 2px; color: var(--faint); font-size: 14px; }
.sous-inline { color: var(--faint); font-size: 14px; }
.box-danger { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.lien-danger { color: var(--warn); font-size: 15px; }
.grid-haut { align-items: flex-start; }
.box-large { flex: 999 1 560px; }
.colonne { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.etat { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; white-space: nowrap; }
.etat-a_jour, .etat-termine { border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--ink); }
.etat-en_retard { border-color: color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); }
.etat-pas_commence, .etat-attente { color: var(--muted); }
.mod-live { align-items: center; }
.mod-depot { flex: 1 1 100%; }

/* la zone où l'on glisse une vidéo */
.depot { margin: 10px 0 6px; }
.depot-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: 18px; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.depot-zone:hover, .depot-survol { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.depot-zone:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.depot-fichier { position: absolute; opacity: 0; width: 1px; height: 1px; }
.depot-titre { font-weight: 520; font-size: 17px; }
.depot-aide { max-width: 52ch; color: var(--muted); font-size: 14.5px; }
.depot-pret .depot-zone { border-style: solid; border-color: var(--c); }
.depot-etat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; }
.depot-etat .btn { align-self: flex-start; margin: 0; }
.depot-barre { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.depot-barre::-webkit-progress-bar { background: rgba(255, 255, 255, .12); border-radius: 4px; }
.depot-barre::-webkit-progress-value { background: var(--c); border-radius: 4px; }
.depot-barre::-moz-progress-bar { background: var(--c); border-radius: 4px; }
.depot-texte { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.depot-erreur { color: var(--warn); }

/* les réponses d'une question, côté formateur */
.champs-reponses { margin: 8px 0 14px; padding: 0; border: 0; min-width: 0; }
.champs-reponses legend { padding: 0; margin-bottom: 10px; font-size: 15.5px; color: var(--muted); }
.reponse { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reponse input[type="radio"] { flex: none; width: 22px; height: 22px; accent-color: var(--a1); cursor: pointer; }
.reponse-lettre { flex: none; width: 18px; color: var(--muted); font-weight: 520; }
.reponse .input { flex: 1; min-width: 0; }
.box form.copie { flex-direction: row; align-items: stretch; }
.box form.copie .input { flex: 1 1 260px; width: auto; }
.colonne .box { flex: none; }
.box > .form-bouton, .lesson-main .box > .form-bouton { align-self: flex-start; }
.box form.copie .btn { margin: 0; }
@media (max-width: 560px) { .kpis { gap: 10px; } .kpi { flex: 1 1 140px; padding: 16px 18px; } }
