/* Kademy — LE CSS du prototype (style B), recopié tel quel. Jetons en :root.
   Source : prototype/ecrans/entree.html (phase 3, validé le 15/09/2026). */
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/nunito-800-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Nunito;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/nunito-800-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--bleu:#0A509A;--citron:#E2E354;--encre:#17233A;--gris:#5B6B85;--brume:#F3F6FB;--ligne:#DCE3EE;--valide:#1E7F4F;--blanc:#fff}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;background:var(--brume);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--encre);font-size:16px;line-height:1.4}
.nunito{font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.i.plein{fill:currentColor;stroke:none}
.tab{font-variant-numeric:tabular-nums}

/* ---------- STYLE B — l'écran modèle validé (recopié tel quel) ---------- */
.B{background:var(--brume);min-height:100vh;display:flex;flex-direction:column}
.B .entete{height:64px;background:var(--blanc);border-bottom:1px solid var(--ligne);display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.B .entete img{height:40px}
.B .entete.centre{justify-content:center}
.B .compte{display:flex;align-items:center;gap:16px}
.B .compte form{margin:0;display:flex}
.B .compte .deco{color:var(--bleu);font-weight:800;background:none;border:0;font:inherit;font-weight:800;cursor:pointer;min-height:44px;padding:0}
.B .main{max-width:640px;margin:0 auto;padding:40px 24px 56px;width:100%}
.B h1{font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:40px;margin:0;line-height:1.1}
.B h2{font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:22px;margin:0 0 12px}
.B .formation{font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:22px;margin:4px 0 32px;color:var(--gris)}
.B .btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:64px;background:var(--bleu);color:var(--blanc);font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:22px;border-radius:999px;border:0;cursor:pointer;padding:0;text-decoration:none}
.B .btn .i{width:24px;height:24px}
.B .reprise{text-align:center;color:var(--gris);margin:12px 0 0}
.B .carte{background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;padding:24px}
.B .carte p{margin:0 0 12px}
.B .carte p:last-child{margin-bottom:0}
.B .petit{color:var(--gris);font-size:14px}
.B .sousbienvenue{margin:8px 0 32px;color:var(--gris)}
@media (max-width:700px){
 .B .entete{padding:0 16px;height:56px}.B .entete img{height:32px}.B .compte{gap:12px;font-size:14px}
 .B .main{padding:24px 16px 40px}
 .B h1{font-size:40px}
 .B .btn{font-size:16px;height:56px}
}

/* ---------- Connexion, lien expiré, lien envoyé ---------- */
.B .simple{max-width:480px;margin:0 auto;padding:40px 24px 56px;width:100%}
.B .simple h1{margin-bottom:12px}
.B .simple .explique{margin:0 0 24px;font-size:16px}
.B .simple .carte{margin-bottom:16px}
.B label{display:block;font-weight:800;margin:0 0 8px}
.B .champ{display:block;width:100%;height:56px;border:2px solid var(--ligne);border-radius:16px;padding:0 16px;font-size:16px;font-family:inherit;color:var(--encre);background:var(--blanc)}
.B .champ:focus{outline:none;border-color:var(--bleu)}
.B .aide{margin:8px 0 0}
.B .carte .btn{margin-top:20px}
.B .apres{margin:12px 0 0;text-align:center}
.B .alerte{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-weight:800}
.B .alerte .i{margin-top:2px}
.B .btn.gris{background:var(--ligne);color:var(--gris);cursor:default}
.B .btn.squelette{background:var(--ligne);cursor:default}
.B .btn.squelette i{display:block;width:40%;height:16px;background:var(--blanc);border-radius:999px}
.B .lien{background:none;border:0;padding:0;font:inherit;text-align:left;color:var(--bleu);font-weight:800;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.B .hors{color:var(--gris);text-align:center;margin:0}
.B .envoye{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.B .envoye .rond{width:40px;height:40px;border-radius:999px;background:var(--brume);border:1px solid var(--ligne);display:grid;place-items:center;color:var(--bleu);flex-shrink:0}
.B .envoye b{display:block;word-break:break-all}
.B .envoye small{color:var(--gris);font-size:14px}
.B .renvoi{margin-top:16px;padding-top:16px;border-top:1px solid var(--ligne)}
.B .renvoi p{margin:0 0 12px}
.B .renvoi form{margin:0}
.B .renvoi .btn{margin-top:0}
.B .renvoi .note{margin:8px 0 0;color:var(--valide);font-weight:800;text-align:center}
.B .erreur .champ{border-color:var(--encre)}

/* ---------- Mode test (DEV_MODE seulement, jamais en production) ---------- */
.B .test{background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;padding:16px;margin-bottom:16px}
.B .test b{display:block;margin-bottom:8px}
.B .test a{color:var(--bleu);font-weight:800;word-break:break-all}

/* ---------- Pied de page : la version ---------- */
.B .pied{margin-top:auto;padding:16px 24px 24px;text-align:center;color:var(--gris);font-size:14px}

/* ---------- Pied de page : les liens légaux ---------- */
.B .pied a{color:var(--gris);text-decoration:none;font-weight:800}
.B .pied a:hover,.B .pied a:focus-visible{color:var(--bleu)}
.B .pied .sep{margin:0 8px}
.B .compte .prenom{color:var(--encre)}
.B .compte .role{color:var(--gris)}
.B .compte a.prenom{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}

/* ---------- Le chemin (style B, prototype entree.html, recopié tel quel) ---------- */
.B .chemin{position:relative;margin-top:40px}
.B .chemin::before{content:"";position:absolute;left:26px;top:28px;bottom:28px;width:4px;background:var(--ligne);border-radius:999px}
.B .e{position:relative;display:flex;align-items:center;gap:20px;padding:8px 0}
.B .ic{width:56px;height:56px;border-radius:999px;display:grid;place-items:center;flex-shrink:0;position:relative;font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:22px}
.B .ok .ic{background:var(--valide);color:var(--blanc)}
.B .now .ic{background:var(--citron);color:var(--encre);border:4px solid var(--bleu)}
.B .off .ic{background:var(--blanc);color:var(--gris);border:4px solid var(--ligne)}
.B .ic .i{width:26px;height:26px;stroke-width:2.6}
.B .c{flex:1;background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px}
.B .c .t{flex:1}
.B .c .t small{display:block;color:var(--gris);font-size:14px;font-weight:400}
.B .c .m{color:var(--gris);font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.B .c .m .i{width:16px;height:16px}
.B .ok .m{color:var(--valide);font-weight:800}
.B .off .c .t{color:var(--gris)}
.B .now .c{border:2px solid var(--bleu);padding:20px 24px;flex-wrap:wrap}
.B .now .c .t{font-family:Nunito,"Avenir Next",Avenir,"Trebuchet MS",sans-serif;font-weight:800;font-size:22px;flex-basis:100%}
.B .now .c .m{color:var(--gris);font-size:16px}
.B .now .pill{background:var(--citron);color:var(--encre);font-weight:800;padding:6px 14px;border-radius:999px;font-size:16px}
.B .attest .c b{display:block;color:var(--gris)}
.B .attest .c small{color:var(--gris);font-size:14px}
.B .e.quiz .ic{width:40px;height:40px;font-size:16px;margin-left:8px;margin-right:8px}
.B .e.quiz .c{min-height:48px;padding:10px 16px}
.B .e.quiz .c .t{font-size:14px}
@media (max-width:700px){
 .B .chemin::before{left:22px}
 .B .ic{width:48px;height:48px}
 .B .e{gap:12px}
 .B .c{padding:12px 16px;flex-wrap:wrap;gap:4px 12px}
 .B .c .t{flex-basis:100%}
 .B .now .c{padding:16px}
 .B .e.quiz .ic{margin-left:4px;margin-right:4px}
}

/* ---------- La première page (cadre 5 validé) et l'accueil provisoire ---------- */
.B .premiere .formation{margin-bottom:24px}
.B .tel{margin-top:32px}
.B .tel p{margin:0 0 12px}
.B .tel .btn.second{background:var(--blanc);color:var(--bleu);border:2px solid var(--bleu);height:56px;font-size:16px;margin-top:16px}
.B .provisoire{margin:0 0 8px;padding:16px;border:1px solid var(--ligne);border-radius:16px;background:var(--blanc);color:var(--gris);display:flex;gap:10px;align-items:flex-start}
.B .provisoire .i{color:var(--bleu);margin-top:2px}
.B .lien-simple{color:var(--bleu);font-weight:800;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.B .apres-chemin{margin-top:24px}

/* ---------- Côté Kademy : colonne 960, barre d'onglets, tableaux, champs (prototype kademy.html, recopié) ---------- */
.K .main{max-width:960px}
.K .onglets-k{background:var(--blanc);border-bottom:1px solid var(--ligne)}
.K .onglets-k .in{max-width:960px;margin:0 auto;padding:0 24px;display:flex;gap:32px}
.K .onglets-k a,.K .onglets-k span{display:inline-flex;align-items:center;gap:6px;min-height:52px;color:var(--gris);font-weight:800;text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px}
.K .onglets-k a.actif{color:var(--bleu);border-bottom-color:var(--bleu)}
.K .onglets-k a:hover,.K .onglets-k a:focus-visible{color:var(--bleu);outline:none}
.K .onglets-k span{color:var(--ligne);cursor:default}
.K .onglets-k span small{font-size:12px;font-weight:400;color:var(--gris);background:var(--brume);border:1px solid var(--ligne);border-radius:999px;padding:2px 8px}
.K .titre{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.K .titre h1{font-size:40px}
.K .titre-email{font-size:22px;font-weight:400;color:var(--gris);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;word-break:break-all}
.K .pilule{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;background:var(--bleu);color:var(--blanc);font:inherit;font-weight:800;white-space:nowrap;border:0;cursor:pointer;text-decoration:none}
.K .pilule.second{background:var(--blanc);color:var(--bleu);border:2px solid var(--bleu)}
.K .pilule.gris{background:var(--ligne);color:var(--gris);cursor:default;border:0}
.K .pilule .i{width:18px;height:18px}
.K .texte{background:none;border:0;padding:0;font:inherit;color:var(--bleu);font-weight:800;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.K .texte .i{width:18px;height:18px}
.K .texte.gris{color:var(--gris);cursor:default}
.K .sous-titre{color:var(--gris);margin:0 0 24px}
.K h2{margin:32px 0 12px}
.K h2:first-child{margin-top:0}
.K .carte{margin-bottom:24px}
.K .carte h2{margin-top:0}
.K .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}
.K .actions.colonne{flex-direction:column;align-items:stretch}
.K .actions form{margin:0;display:flex}
.K .actions form .pilule{width:100%}
.K .fait{display:inline-flex;align-items:center;gap:8px;color:var(--valide);font-weight:800;min-height:44px}
.K .fait .i{width:18px;height:18px}
.K .liste{background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;overflow:hidden;margin-bottom:32px}
.K .r{display:grid;align-items:center;gap:16px;min-height:56px;padding:8px 24px;border-top:1px solid var(--ligne);color:inherit;text-decoration:none;font:inherit;text-align:left;background:none;width:100%;cursor:pointer;grid-template-columns:minmax(120px,1fr) minmax(140px,1.2fr) minmax(160px,1.4fr) 120px 130px}
.K .r:first-child{border-top:0}
.K .r.tete{cursor:default;color:var(--gris);font-size:14px;min-height:44px;padding-top:4px;padding-bottom:4px;border-top:0}
.K .r.tete+.r{border-top:1px solid var(--ligne)}
.K a.r:hover,.K a.r:focus-visible{background:var(--brume);outline:none}
.K .r>span,.K .r>a{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.K .r b{font-weight:800}
.K .r .gris{color:var(--gris)}
.K .etat{display:inline-flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}
.K .etat .i{width:16px;height:16px}
.K .etat.ok{color:var(--valide);font-weight:800}
.K .etat.now{background:var(--citron);color:var(--encre);font-weight:800;padding:4px 12px;border-radius:999px}
.K .etat.off{color:var(--gris)}
.K .r .cel::before{content:attr(data-l) " : ";color:var(--gris);display:none}
.K .affiches{color:var(--gris);font-size:14px;margin:0 0 8px}
.K label{display:block;font-weight:800;margin:0 0 6px}
.K .aide{color:var(--gris);font-size:14px;margin:0 0 8px}
.K .aide.apres{margin:6px 0 0;text-align:left}
.K .aide.mt12{margin-top:12px}
.K .champ{display:block;width:100%;height:56px;border:2px solid var(--ligne);border-radius:16px;padding:0 16px;font-size:16px;font-family:inherit;color:var(--encre);background:var(--blanc)}
.K select.champ{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 16px center;background-size:20px;padding-right:44px}
.K .champ:focus{outline:none;border-color:var(--bleu)}
.K .champ.faux{border-color:var(--encre)}
.K .ligne-champ{margin:0 0 20px}
.K .ligne-champ .sous{margin-top:12px}
.K .deux-champs{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.K .case{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;font-weight:400}
.K .case input{width:24px;height:24px;margin:0;accent-color:var(--bleu);flex-shrink:0}
.K .erreur{display:flex;align-items:flex-start;gap:8px;font-weight:800;margin:8px 0 0}
.K .erreur .i{flex-shrink:0;margin-top:2px}
.K .erreur .texte{min-height:0;text-decoration:underline}
.K .form{max-width:640px}
.K .form .pilule{min-width:160px}
.K .vide{text-align:center;padding:32px 24px}
.K .vide .img{width:280px;max-width:100%;height:160px;margin:0 auto 20px;background:var(--brume);border:1px solid var(--ligne);border-radius:16px;display:grid;place-items:center;color:var(--gris);font-size:14px;padding:16px}
.K .vide p{margin:0 0 20px}
.K .deux{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.K .deux>.carte{margin-bottom:0}
.K .infos{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--gris);margin:0 0 24px}
.K .infos span{display:inline-flex;align-items:center;gap:6px}
.K .infos .i{width:18px;height:18px}
.K .mail-apercu{background:var(--blanc);border:1px solid var(--ligne);border-radius:16px;padding:24px;max-width:480px;font-size:14px}
.K .mail-apercu img{height:28px;margin-bottom:12px}
.K .mail-apercu p{margin:0 0 10px}
.K .mail-apercu .btn{height:48px;font-size:16px;margin:12px 0;pointer-events:none}
.K .mail-apercu .signature{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--ligne);color:var(--gris)}
.K .mail-apercu .objet{font-weight:800;margin:0 0 12px}
.K .mail-apercu .petit{margin:0}
.K .coche{width:96px;height:96px;border-radius:999px;background:var(--valide);color:var(--blanc);display:grid;place-items:center;margin:0 0 16px}
.K .coche .i{width:48px;height:48px;stroke-width:2.6}
.K .coche.encre{background:var(--encre)}
.K .fiche dl{margin:0;display:grid;grid-template-columns:160px 1fr;gap:12px 16px}
.K .fiche dt{color:var(--gris)}
.K .fiche dd{margin:0;font-weight:800;word-break:break-all}
@media (max-width:700px){
 .K .compte .role{display:none}
 .K .onglets-k .in{padding:8px 16px;display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
 .K .onglets-k a,.K .onglets-k span{justify-content:center;min-height:44px;border:1px solid var(--ligne);border-radius:999px;margin:0;font-size:14px}
 .K .onglets-k a.actif{background:var(--bleu);color:var(--blanc);border-color:var(--bleu)}
 .K .titre{align-items:stretch}
 .K .titre .pilule{width:100%}
 .K .r{grid-template-columns:1fr 1fr;gap:4px 12px;padding:12px 16px}
 .K .r.tete{display:none}
 .K .r .cel{white-space:normal}
 .K .r .cel::before{display:inline}
 .K .r .nom,.K .r .ent,.K .r .large{grid-column:1 / -1}
 .K .r .etat-cel{order:1;justify-self:end}
 .K .r .ent{order:2}
 .K .r .nom{grid-column:auto}
 .K .r .cel,.K .r .large{order:4}
 .K .deux{grid-template-columns:1fr}
 .K .deux-champs{grid-template-columns:1fr}
 .K .actions .pilule{width:100%}
 .K .fiche dl{grid-template-columns:1fr}
}

/* ---------- Pages légales ---------- */
.B .legal{max-width:720px;margin:0 auto;padding:40px 24px 56px;width:100%}
.B .legal h1{margin-bottom:8px}
.B .legal .maj{color:var(--gris);margin:0 0 24px}
.B .legal h2{margin:32px 0 8px}
.B .legal p,.B .legal li{margin:0 0 12px}
.B .legal ul{padding-left:20px;margin:0 0 12px}
.B .legal a{color:var(--bleu);font-weight:800}
@media (max-width:700px){.B .legal{padding:24px 16px 40px}}
