/* =====================================================================
   Cognivaya Évaluation — écran « Copies papier » (préparer, corriger)
   Apparence seulement : aucun identifiant ni comportement modifié.
   ===================================================================== */
#screen-scan-correction{--cg:#c99a4b;--cg2:#e6bf6e;--cgd:#9a7330;--nv:#12284c;--nvd:#0b1a36;--ln:#e7dcc8;--cr:#fffdf8;--ink:#16213a;--soft:#5d6a83;max-width:1240px;margin:0 auto;counter-reset:etape;}
#screen-scan-correction .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-scan-correction .backLink:hover{background:#efe5d2;}

/* ---------- Bandeau ---------- */
.ppHero{position:relative;overflow:hidden;color:#fff;border-radius:28px;padding:38px 42px 32px;margin:10px 0 28px;
  background:radial-gradient(800px 420px at 85% 0%,rgba(70,110,180,.35),transparent 65%),radial-gradient(600px 360px at 0% 100%,rgba(201,154,75,.16),transparent 60%),linear-gradient(160deg,#0b1a36,#12284c 55%,#183463);
  box-shadow:0 26px 60px -24px rgba(11,26,54,.55);}
.ppHero::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;border:1.5px solid rgba(230,191,110,.25);box-shadow:0 0 0 40px rgba(230,191,110,.05),0 0 0 80px rgba(230,191,110,.03);pointer-events:none;}
.ppHero small{display:block;font-size:.7rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#e6bf6e;margin-bottom:10px;}
.ppHero h1{font-family:'Source Serif 4',Georgia,serif;font-size:2rem;font-weight:600;color:#fff !important;margin:0 0 10px;letter-spacing:-.01em;}
.ppHero p{color:rgba(255,255,255,.78);font-size:.95rem;line-height:1.6;max-width:66ch;margin:0;}
.ppSteps{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px;}
.ppStep{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);}
.ppStep i{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-style:normal;font-weight:800;font-size:.85rem;color:#0b1a36;background:linear-gradient(180deg,#f0cf86,#d4a552);}
.ppStep b{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:1rem;color:#fff;}
.ppStep span{font-size:.78rem;color:rgba(255,255,255,.66);line-height:1.4;}
@media (max-width:800px){.ppSteps{grid-template-columns:1fr;} .ppHero{padding:28px 22px;}}

/* ---------- Cartes d'étape ---------- */
#screen-scan-correction > .card{border-radius:24px !important;padding:32px 36px !important;border:1px solid var(--ln) !important;background:var(--cr) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 18px 40px -28px rgba(11,26,54,.35) !important;margin-bottom:26px;}
#screen-scan-correction > .card > h1:first-child,#screen-scan-correction > .card > div:first-child > h1:first-child,#paperExamsCard h1,#paperExamsCard h2{
  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 12px !important;}
#paperExamsCard > h1:first-child::before,#paperExamsCard > h2:first-child::before,#paperExamsCard > div:first-child > h1:first-child::before,#paperExamsCard > div:first-child > h2:first-child::before,#screen-scan-correction > #paperExamsCard + .card > h1:first-child::before{
  counter-increment:etape;content:counter(etape);flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;font-family:Inter,system-ui,sans-serif;font-size:.9rem;font-weight:800;color:var(--nvd);
  background:linear-gradient(180deg,#f0cf86,#d4a552);box-shadow:0 6px 14px -6px rgba(201,154,75,.7);}
#screen-scan-correction > .card p{color:var(--soft) !important;font-size:.93rem !important;line-height:1.65;max-width:78ch;}
#screen-scan-correction > .card p b,#screen-scan-correction > .card p strong{color:var(--nv);}

/* Libellés, champs, listes */
#screen-scan-correction label,#paperExamsCard h3,#paperExamsCard .lbl{font-size:.74rem !important;font-weight:800 !important;letter-spacing:.08em;text-transform:uppercase;color:var(--soft) !important;}
#screen-scan-correction .field{margin-bottom:14px;}
#screen-scan-correction .field label{display:block;margin-bottom:8px;}
#screen-scan-correction input[type=text],#screen-scan-correction input[type=number],#screen-scan-correction select,#screen-scan-correction 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;transition:border-color .15s,box-shadow .15s;}
#screen-scan-correction 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-scan-correction input:focus,#screen-scan-correction select:focus,#screen-scan-correction textarea:focus{outline:none;border-color:var(--cg) !important;box-shadow:0 0 0 4px rgba(201,154,75,.16) !important;}

/* Boutons */
#screen-scan-correction .btn{border-radius:13px !important;font-weight:800 !important;padding:12px 22px !important;transition:transform .15s,box-shadow .15s,background .15s;}
#screen-scan-correction .btn:not(:disabled):hover{transform:translateY(-1px);}
#paperExamsCard .btn:not(.btnPrimary):not(.btnGold){background:transparent !important;color:#a8403c !important;border:1.5px solid #f0d2cf !important;box-shadow:none !important;}
#paperExamsCard .btn:not(.btnPrimary):not(.btnGold):hover{background:#fdf1f0 !important;}

/* Zone de dépôt des photos */
#screen-scan-correction .scanUploadRow{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;}
#screen-scan-correction .scanUploadRow .field{margin:0;padding:22px 22px 20px 86px;position:relative;border:1.5px dashed #d8c39b;border-radius:18px;background:linear-gradient(180deg,#fdf9f1,#f8f0e1);transition:border-color .15s,background .15s;}
#screen-scan-correction .scanUploadRow .field:hover{border-color:var(--cg);background:#fbf2e0;}
#screen-scan-correction .scanUploadRow .field::before{content:"";position:absolute;left:22px;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:14px;
  background:#12284c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23e6bf6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") no-repeat center;}
#screen-scan-correction .scanUploadRow .field label{font-family:'Source Serif 4',Georgia,serif;text-transform:none !important;letter-spacing:0;font-size:1.02rem !important;font-weight:600 !important;color:var(--nv) !important;}
#screen-scan-correction input[type=file]{width:100%;font-family:inherit;font-size:.88rem;color:var(--soft);}
#screen-scan-correction input[type=file]::file-selector-button{margin-right:14px;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;transition:background .15s,color .15s;}
#screen-scan-correction input[type=file]::file-selector-button:hover{background:var(--nv);color:#fff;}
#screen-scan-correction #btnAnalyserScan{padding:16px 26px !important;font-size:1rem;}
#screen-scan-correction #btnAnalyserScan::before{content:"✦ ";}
@media (max-width:720px){#screen-scan-correction .scanUploadRow{grid-template-columns:1fr;}}

/* Relecture de la copie */
#scanReviewCard{border:1.5px solid #e6d2a9 !important;background:linear-gradient(170deg,#fffdf8,#fbf3e4) !important;}
#scanReviewCard .pill.progress{font-family:'Source Serif 4',Georgia,serif;font-size:1.3rem;font-weight:600;padding:10px 20px;border-radius:16px;background:var(--nv) !important;color:#fff !important;}
#screen-scan-correction .errorBox:not(:empty){margin-top:14px;border-radius:12px;}
#screen-scan-correction .scanUploadRow{grid-template-columns:minmax(0,600px) auto !important;justify-content:start;}
#screen-scan-correction .scanUploadRow .field{max-width:none !important;width:auto !important;}
#screen-scan-correction input[type=file]{border:0 !important;padding:0 !important;background:transparent !important;box-shadow:none !important;}
#screen-scan-correction .scanUploadRow{align-items:center !important;}
