/* =====================================================================
   Cognivaya Évaluation — écran « Comptes élèves »
   Apparence seulement : aucun identifiant ni comportement modifié.
   ===================================================================== */
#screen-students{--cg:#c99a4b;--cg2:#e6bf6e;--cgd:#9a7330;--nv:#12284c;--nvd:#0b1a36;--ln:#e7dcc8;--cr:#fffdf8;--ink:#16213a;--soft:#5d6a83;max-width:1320px;margin:0 auto;}
#screen-students .backLink{display:inline-flex;align-items:center;gap:6px;color:var(--nv);font-weight:700;padding:6px 12px;border-radius:999px;transition:background .15s;}
#screen-students .backLink:hover{background:#efe5d2;}
#screen-students > .card{border-radius:26px !important;padding:32px 36px !important;border:1px solid var(--ln) !important;background:var(--cr) !important;overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 18px 40px -28px rgba(11,26,54,.35) !important;margin-bottom:26px;}

/* ---------- Bande bleu nuit (titre, texte, état des e-mails) ---------- */
#screen-students > .card:first-of-type > h1:first-child,#screen-students > .card:first-of-type > h1:first-child + p,#screen-students #mailStatus{background:#12284c;margin-left:-36px !important;margin-right:-36px !important;padding-left:40px;padding-right:40px;}
#screen-students > .card:first-of-type > h1:first-child{position:relative;margin-top:-32px !important;margin-bottom:0 !important;padding-top:40px;padding-bottom:10px;
  font-family:'Source Serif 4',Georgia,serif;font-size:2.1rem !important;font-weight:600;color:#fff !important;letter-spacing:-.01em;
  background:#12284c;}
#screen-students > .card:first-of-type > h1:first-child::before{content:"Gestion de la classe";display:block;font-family:Inter,system-ui,sans-serif;font-size:.7rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--cg2);margin-bottom:10px;}
#screen-students > .card:first-of-type > h1:first-child + p{margin-top:0 !important;margin-bottom:0 !important;padding-bottom:14px;color:rgba(255,255,255,.78) !important;font-size:.95rem !important;line-height:1.6;}
#screen-students #mailStatus{margin-top:0 !important;margin-bottom:26px !important;padding-bottom:30px;padding-top:2px;font-size:.84rem !important;}
#screen-students #mailStatus:not(:empty)::first-line{color:#9fe0b9;}
#screen-students #mailStatus:empty{padding-bottom:18px;}

/* ---------- Étapes ---------- */
#screen-students .invBox{border:1px solid var(--ln) !important;border-radius:20px !important;padding:24px 26px !important;margin:0 0 20px !important;background:#fff !important;}
#screen-students .invHead{gap:14px !important;margin-bottom:16px !important;}
#screen-students .invHead b{font-family:'Source Serif 4',Georgia,serif;font-size:1.15rem;font-weight:600;color:var(--nv) !important;}
#screen-students .invHead span:not(.invNum){font-size:.84rem !important;color:var(--soft) !important;margin-top:2px;}
#screen-students .invHead code,#screen-students .invHelp code{font-size:.8rem;background:#f3ead8;color:var(--cgd);border-radius:6px;padding:2px 7px;}
#screen-students .invNum{width:34px !important;height:34px !important;color:var(--nvd) !important;background:linear-gradient(180deg,#f0cf86,#d4a552) !important;box-shadow:0 6px 14px -6px rgba(201,154,75,.7);font-size:.9rem !important;}
#screen-students .invHead + .invGrid + .invHead{margin-top:26px !important;padding-top:24px;border-top:1px solid #efe6d5;}
#screen-students .invGrid{gap:16px 20px !important;}
#screen-students .invF{font-size:.74rem !important;font-weight:800 !important;letter-spacing:.08em;text-transform:uppercase;color:var(--soft) !important;gap:8px !important;}
#screen-students .invF small{text-transform:none;letter-spacing:0;font-size:.78rem !important;color:#8a93a6 !important;}

/* Champs */
#screen-students input:not([type=checkbox]):not([type=file]),#screen-students select,#screen-students textarea{
  box-sizing:border-box;padding:12px 14px !important;border:1.5px solid var(--ln) !important;border-radius:12px !important;font-size:.96rem !important;font-weight:500;color:var(--ink) !important;background-color:#fff !important;text-transform:none;letter-spacing:0;transition:border-color .15s,box-shadow .15s;}
#screen-students select{appearance:none;-webkit-appearance:none;padding-right:40px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a7330' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center !important;}
#screen-students input:focus,#screen-students select:focus,#screen-students textarea:focus{outline:none;border-color:var(--cg) !important;box-shadow:0 0 0 4px rgba(201,154,75,.16) !important;}
#screen-students ::placeholder{color:#a3abbb;}
#screen-students input[type=checkbox]{accent-color:var(--cg);width:17px;height:17px;}

/* Boutons */
#screen-students .btn{border-radius:13px !important;font-weight:800 !important;padding:12px 22px !important;transition:transform .15s,box-shadow .15s,background .15s;}
#screen-students .btn:not(:disabled):hover{transform:translateY(-1px);}

/* ---------- Étape 3 : import ---------- */
#screen-students .invBox + .field{border:1px solid var(--ln);border-radius:20px 20px 0 0;border-bottom:0;padding:24px 26px 6px;margin:0 !important;background:#fff;}
#screen-students .invBox + .field + div{border:1px solid var(--ln);border-top:0;border-radius:0 0 20px 20px;padding:4px 26px 24px;background:#fff;gap:12px !important;}
#screen-students .invHelp{margin:-4px 0 14px 48px;font-size:.84rem;color:var(--soft);}
#screen-students .invHelp summary{cursor:pointer;font-weight:700;color:var(--cgd);list-style:none;}
#screen-students .invHelp summary::before{content:"▸ ";}
#screen-students .invHelp[open] summary::before{content:"▾ ";}
#screen-students .invHelp p{margin:8px 0 0;line-height:1.6;background:#fbf6ec;border-radius:12px;padding:12px 14px;}
#screen-students #importCsv{font-family:ui-monospace,Menlo,Consolas,monospace !important;font-size:.86rem !important;line-height:1.6;background:#fdfbf6 !important;min-height:120px;}
#screen-students #importFile{flex:1;min-width:240px;font-family:inherit;font-size:.86rem;color:var(--soft);}
#screen-students #importFile::file-selector-button{margin-right:12px;padding:9px 18px;border-radius:999px;border:1.5px solid var(--nv);background:transparent;color:var(--nv);font-family:inherit;font-weight:800;font-size:.84rem;cursor:pointer;}
#screen-students #importFile::file-selector-button:hover{background:var(--nv);color:#fff;}
#screen-students #linksPanel{border-radius:16px !important;}

/* ---------- Élèves par niveau ---------- */
#screen-students .lvHead{margin-top:34px !important;padding-top:28px;border-top:1px solid #efe6d5;}
#screen-students .lvHead h2{font-family:'Source Serif 4',Georgia,serif;font-size:1.4rem !important;font-weight:600;color:var(--nv) !important;}
#screen-students .lvHead input{min-width:320px !important;border-radius:999px !important;padding-left:40px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a7330' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4-4'/%3E%3C/svg%3E") no-repeat 15px center !important;}
#screen-students .lvTile{border:1px solid var(--ln) !important;border-radius:16px !important;background:#fff !important;}
#screen-students .lvTile:hover{border-color:var(--cg) !important;}
#screen-students .lvPanelHead strong{font-family:'Source Serif 4',Georgia,serif;font-size:1.15rem;color:var(--nv);}

/* Tableaux */
#screen-students table{width:100%;border-collapse:separate !important;border-spacing:0 !important;}
#screen-students thead th{font-size:.7rem !important;font-weight:800 !important;letter-spacing:.12em !important;text-transform:uppercase;color:var(--soft) !important;text-align:left;padding:14px 14px 12px !important;border-bottom:1.5px solid var(--ln) !important;background:none !important;}
#screen-students tbody td{padding:14px !important;border-bottom:1px solid #efe6d5 !important;vertical-align:middle;}
#screen-students tbody tr:hover{background:#fbf5e9;}
#screen-students tbody td:first-child{font-weight:700;color:var(--nv);}

/* Cartes secondaires */
#screen-students > .card:not(:first-of-type) > h1{display:flex;align-items:center;gap:12px;font-family:'Source Serif 4',Georgia,serif !important;font-size:1.4rem !important;font-weight:600;color:var(--nv) !important;margin:0 0 10px !important;}
#screen-students > .card:not(:first-of-type) > h1::before{content:"";flex:none;width:38px;height:38px;border-radius:12px;background:#12284c no-repeat center;}
#screen-students > .card:nth-of-type(2) > h1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e6bf6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");}
#screen-students > .card:nth-of-type(3) > h1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e6bf6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");}
#screen-students > .card:not(:first-of-type) > p{color:var(--soft) !important;font-size:.92rem !important;line-height:1.6;max-width:84ch;}
#screen-students #evalAccountsBox{background:#fbf6ec !important;border:1px solid var(--ln) !important;border-radius:18px !important;padding:20px 22px !important;}
#screen-students #evalAccountsBox > strong{font-family:'Source Serif 4',Georgia,serif;font-size:1.05rem;}
#screen-students #noAccounts,#screen-students #noHistory{text-align:center;padding:26px;border:1.5px dashed var(--ln);border-radius:16px;background:#fdfaf3;}
@media (max-width:760px){#screen-students > .card{padding:24px 20px !important;}
  #screen-students > .card:first-of-type > h1:first-child,#screen-students > .card:first-of-type > h1:first-child + p,#screen-students #mailStatus{margin-left:-20px !important;margin-right:-20px !important;padding-left:22px;padding-right:22px;}
  #screen-students > .card:first-of-type > h1:first-child{margin-top:-24px !important;} #screen-students .invHelp{margin-left:0;} #screen-students .lvHead input{min-width:0 !important;width:100%;}}
#screen-students .lvHead input#studentSearch{padding-left:42px !important;}
