/* France Collège — espace élève (tableau de bord, Réviser, S'entraîner, Contrôles). Complète inner-manga.css. */
.ev-page{max-width:1280px}
.ev-page [hidden]{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ev-page :focus-visible,.ev-subnav :focus-visible{outline:3px solid #1769d7;outline-offset:2px;border-radius:12px}

/* navigation mobile (la barre du haut est masquée sous 980 px par inner-manga.css) */
.ev-subnav{display:none;gap:8px;overflow-x:auto;padding:10px 12px;background:#fff;border-bottom:1px solid #e2e8f3;scrollbar-width:none}
.ev-subnav::-webkit-scrollbar{display:none}
.ev-subnav a{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#f3f6fc;color:#41506f;font-weight:900;font-size:14px}
.ev-subnav a.active{background:#10234f;color:#fff}
@media(max-width:980px){.ev-subnav{display:flex}}

/* en-tête de page */
.ev-head{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.ev-head .section-title{font-size:40px;overflow-wrap:anywhere}
.ev-wallet{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}
.ev-chip{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:18px;font-weight:1000;font-size:18px;border:1px solid}
.ev-chip small{font-size:13px;font-weight:900;opacity:.85}
.ev-chip.coins{background:#fff7dd;border-color:#edd89a;color:#8a5f00}
.ev-chip.stars{background:#f0eaff;border-color:#dccffb;color:#5b35b3}
.ev-chip.due{background:#e8f7ee;border-color:#bfe8d0;color:#11703f}

/* boutons */
.ev-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:14px;border:1px solid transparent;font:inherit;font-weight:1000;font-size:15px;cursor:pointer;text-align:center;line-height:1.2;background:#10234f;color:#fff;transition:transform .12s, box-shadow .12s}
.ev-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(16,35,79,.14)}
.ev-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.ev-btn.blue{background:#1769d7;color:#fff}
.ev-btn.green{background:#14874f;color:#fff}
.ev-btn.orange{background:#b35200;color:#fff}
.ev-btn.purple{background:#6e41c5;color:#fff}
.ev-btn.red{background:#c0294f;color:#fff}
.ev-btn.soft{background:#eaf3ff;color:#1452b0;border-color:#d4e5fd}
.ev-btn.ghost{background:#fff;color:#10234f;border-color:#d4ddeb}
.ev-btn.sm{min-height:36px;padding:7px 12px;font-size:14px;border-radius:12px}
.ev-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* blocs */
.ev-section{margin-top:22px}
.ev-section > h2,.ev-h2{margin:0 0 12px;font-size:28px;letter-spacing:-.8px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ev-h2 .ev-count{font-size:14px;padding:5px 10px;border-radius:999px;background:#eef4ff;color:#1452b0;letter-spacing:0}
.ev-box{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 26px rgba(28,45,78,.07);padding:20px}
.ev-muted{color:#5f6d85;line-height:1.5}
.ev-note{padding:14px 16px;border-radius:18px;background:#fff8e8;border:1px solid #f0dc9d;color:#6f5518;font-weight:800;line-height:1.5}
.ev-note.info{background:#eaf3ff;border-color:#cfe1fb;color:#1a4e9e}
.ev-note.ok{background:#e8f7ee;border-color:#bfe8d0;color:#11703f}
.ev-note a{text-decoration:underline;color:inherit}
.ev-cols{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;align-items:start}
.ev-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.ev-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ev-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

/* cartes d'action */
.ev-action{display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:22px;border:1px solid var(--line);background:#fff;box-shadow:0 10px 26px rgba(28,45,78,.07);min-width:0}
.ev-action h3{margin:0;font-size:21px;letter-spacing:-.4px}
.ev-action p{margin:0;color:#5f6d85;line-height:1.45}
.ev-action .ev-btn{margin-top:auto;align-self:flex-start}
.ev-action.blue{background:linear-gradient(160deg,#fff,#eef5ff)}
.ev-action.green{background:linear-gradient(160deg,#fff,#eaf8f0)}
.ev-action.orange{background:linear-gradient(160deg,#fff,#fff3e8)}
.ev-action.purple{background:linear-gradient(160deg,#fff,#f3eeff)}
.ev-action.pink{background:linear-gradient(160deg,#fff,#fff0f7)}

/* continuer */
.ev-continue{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:18px 20px;border-radius:24px;border:2px solid #1769d7;background:linear-gradient(135deg,#fff,#eef5ff)}
.ev-continue .big{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;font-size:30px;background:#1769d7;color:#fff}
.ev-continue h3{margin:2px 0 4px;font-size:23px;overflow-wrap:anywhere}
.ev-continue .kicker{font-size:13px;font-weight:1000;color:#1452b0;text-transform:uppercase;letter-spacing:.5px}
.ev-continue p{margin:0;color:#5f6d85}

/* progression */
.ev-bar{height:12px;border-radius:999px;background:#edf1f7;overflow:hidden}
.ev-bar > span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#18a05e,#48c98a);min-width:0;transition:width .4s}
.ev-prog-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 22px}
.ev-prog{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;padding:8px 6px;border-radius:14px}
.ev-prog:hover{background:#f7faff}
.ev-prog .ico{font-size:24px;text-align:center}
.ev-prog .top{display:flex;justify-content:space-between;gap:8px;font-weight:900;margin-bottom:6px}
.ev-prog .top span{color:#5f6d85;font-size:14px;white-space:nowrap}

/* listes */
.ev-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ev-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:#f7faff;border:1px solid #e8eef8;flex-wrap:wrap}
.ev-list li strong{display:block;overflow-wrap:anywhere}
.ev-list li .sub{color:#5f6d85;font-size:14px}
.ev-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-weight:1000;font-size:13px;white-space:nowrap}
.ev-pill.red{background:#ffe9ef;color:#a3203f}
.ev-pill.orange{background:#fff1e0;color:#9a4b00}
.ev-pill.green{background:#e3f6ea;color:#11703f}
.ev-pill.blue{background:#e8f1ff;color:#1452b0}
.ev-pill.grey{background:#eef1f6;color:#4c5d7b}

/* choix de matière */
.ev-subjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.ev-subject{display:flex;flex-direction:column;text-align:left;padding:0;border:2px solid #e2e8f3;border-radius:20px;background:#fff;overflow:hidden;cursor:pointer;font:inherit;color:inherit;transition:transform .15s,border-color .15s;min-width:0}
.ev-subject:hover{transform:translateY(-3px);border-color:#9cc2f6}
.ev-subject[aria-pressed="true"]{border-color:#1769d7;box-shadow:0 0 0 3px rgba(23,105,215,.18)}
.ev-subject img{width:100%;height:92px;object-fit:cover;background:#eef3fb}
.ev-subject .b{padding:10px 12px 12px}
.ev-subject strong{display:block;font-size:16px;line-height:1.2}
.ev-subject small{display:block;color:#5f6d85;margin-top:4px;font-weight:800}

/* chapitres */
.ev-chapters{display:grid;gap:12px}
.ev-chapter{border:1px solid #e2e8f3;border-radius:20px;background:#fff;overflow:hidden}
.ev-chapter > .hd{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;flex-wrap:wrap;background:#f9fbff}
.ev-chapter > .hd h3{margin:0;font-size:19px;overflow-wrap:anywhere}
.ev-chapter > .hd .meta{color:#5f6d85;font-size:14px;font-weight:800}
.ev-chapter details{border-top:1px solid #eef2f8}
.ev-chapter summary{cursor:pointer;padding:11px 16px;font-weight:900;color:#1452b0}
.ev-lessons{list-style:none;margin:0;padding:4px 12px 12px;display:grid;gap:6px}
.ev-lessons li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:12px;background:#f7faff;flex-wrap:wrap}
.ev-lessons li span.t{font-weight:800;overflow-wrap:anywhere;min-width:0;flex:1 1 180px}
.ev-check{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:800;flex:1 1 200px;min-width:0}
.ev-check input{width:20px;height:20px;accent-color:#1769d7;flex:0 0 auto}
.ev-check span{overflow-wrap:anywhere;min-width:0}

/* niveaux / options */
.ev-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ev-level{position:relative;display:block;padding:14px 16px;border:2px solid #e2e8f3;border-radius:18px;background:#fff;cursor:pointer}
.ev-level input{position:absolute;opacity:0;pointer-events:none}
.ev-level strong{display:block;font-size:18px}
.ev-level span{display:block;color:#5f6d85;font-size:14px;margin-top:4px;line-height:1.4}
.ev-level:has(input:checked){border-color:#1769d7;background:#f2f7ff;box-shadow:0 0 0 3px rgba(23,105,215,.15)}
.ev-level:has(input:focus-visible){outline:3px solid #1769d7;outline-offset:2px}

/* barre de sélection collante */
.ev-sticky{position:sticky;bottom:12px;z-index:20;margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-radius:20px;background:#10234f;color:#fff;box-shadow:0 14px 34px rgba(16,35,79,.3)}
.ev-sticky strong{font-size:16px}
.ev-sticky .ev-btn{background:#ffcf4a;color:#10234f}

/* cartes mémoire */
.ev-stage{max-width:720px;margin:0 auto}
.ev-stage-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-weight:900;color:#4c5d7b}
.ev-flip{perspective:1400px;margin:0 auto}
.ev-flip-btn{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:inherit;text-align:center}
.ev-flip-inner{position:relative;min-height:300px;transition:transform .55s;transform-style:preserve-3d}
.ev-flip.flipped .ev-flip-inner{transform:rotateY(180deg)}
.ev-face{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:30px 26px;border-radius:28px;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:3px solid #10234f;box-shadow:8px 8px 0 #10234f;overflow:auto}
.ev-face.front{background:radial-gradient(circle at 85% 15%,rgba(255,207,74,.35) 0 60px,transparent 62px),linear-gradient(145deg,#fff,#eef5ff)}
.ev-face.back{transform:rotateY(180deg);background:linear-gradient(145deg,#fffdf4,#fff4df)}
.ev-face .lbl{font-size:13px;font-weight:1000;color:#1452b0;text-transform:uppercase;letter-spacing:.6px}
.ev-face h3{margin:0;font-size:30px;letter-spacing:-.6px;overflow-wrap:anywhere}
.ev-face p{margin:0;font-size:21px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
.ev-face .hint{font-size:14px;color:#5f6d85;font-weight:800}
.ev-boxes{display:flex;gap:6px;align-items:center}
.ev-boxes i{width:22px;height:10px;border-radius:5px;background:#e2e8f3}
.ev-boxes i.on{background:#18a05e}
.ev-rate{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.ev-rate .ev-btn{min-height:54px;font-size:17px}
.ev-tools{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}

/* questions */
.ev-q{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 26px rgba(28,45,78,.07);padding:22px}
.ev-q .qhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.ev-q .qtext{margin:0 0 16px;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.ev-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ev-opt{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 14px;border-radius:16px;border:2px solid #dbe4f1;background:#fff;font:inherit;font-weight:800;font-size:17px;color:#10234f;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.ev-opt:hover:not(:disabled){border-color:#1769d7;background:#f4f8ff}
.ev-opt .k{flex:0 0 auto;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#eef3fb;font-weight:1000;font-size:14px}
.ev-opt.correct{border-color:#14874f;background:#e6f6ec}
.ev-opt.wrong{border-color:#c0294f;background:#ffecf1}
.ev-opt:disabled{cursor:default}
.ev-text{display:flex;gap:10px;flex-wrap:wrap}
.ev-text input{flex:1 1 220px;min-height:52px;padding:12px 14px;border-radius:16px;border:2px solid #dbe4f1;font:inherit;font-size:18px;color:#10234f}
.ev-text input:focus{border-color:#1769d7;outline:none;box-shadow:0 0 0 3px rgba(23,105,215,.18)}
.ev-fb{margin-top:14px;padding:14px 16px;border-radius:16px;font-weight:800;line-height:1.5}
.ev-fb.ok{background:#e6f6ec;color:#0f6a3b;border:1px solid #bfe8d0}
.ev-fb.ko{background:#fff0f3;color:#9b1f40;border:1px solid #f3c9d5}
.ev-fb a{color:inherit;text-decoration:underline}
.ev-qprog{display:flex;gap:4px;margin-bottom:12px}
.ev-qprog i{flex:1;height:8px;border-radius:4px;background:#e2e8f3}
.ev-qprog i.ok{background:#18a05e}.ev-qprog i.ko{background:#e0476f}.ev-qprog i.cur{background:#1769d7}
.ev-strict{display:inline-block;margin-top:8px;font-size:13px;font-weight:900;color:#8a4b00;background:#fff4df;padding:4px 9px;border-radius:999px}

/* résultat */
.ev-result{text-align:center;padding:26px 20px}
.ev-score{font-size:64px;font-weight:1000;letter-spacing:-2px;line-height:1;margin:6px 0}
.ev-score small{font-size:28px;color:#5f6d85}
.ev-result p{margin:8px 0 0;font-size:18px}
.ev-corr{display:grid;gap:10px;margin-top:16px}
.ev-corr article{padding:14px 16px;border-radius:18px;border:1px solid #e2e8f3;background:#fff;border-left:6px solid #18a05e}
.ev-corr article.ko{border-left-color:#e0476f;background:#fffafb}
.ev-corr h4{margin:0 0 6px;font-size:17px;overflow-wrap:anywhere}
.ev-corr p{margin:4px 0 0;color:#40506d;line-height:1.45;overflow-wrap:anywhere}

/* contrôles */
.ev-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ev-mode{display:flex;flex-direction:column;gap:6px;text-align:left;padding:18px;border-radius:22px;border:2px solid #e2e8f3;background:#fff;cursor:pointer;font:inherit;color:inherit;min-width:0}
.ev-mode:hover{border-color:#9cc2f6}
.ev-mode[aria-pressed="true"]{border-color:#1769d7;box-shadow:0 0 0 3px rgba(23,105,215,.18);background:#f5f9ff}
.ev-mode .e{font-size:30px}
.ev-mode strong{font-size:19px}
.ev-mode span{color:#5f6d85;font-size:14px;font-weight:800}
.ev-timer{position:sticky;top:74px;top:calc(var(--cap6e-header-h,66px) + 8px);z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:18px;background:#10234f;color:#fff;box-shadow:0 12px 28px rgba(16,35,79,.25);margin-bottom:14px}
.ev-timer .clock{font-size:28px;font-weight:1000;font-variant-numeric:tabular-nums;letter-spacing:1px}
.ev-timer.warn{background:#a3203f}
.ev-timer .ev-btn{background:#ffcf4a;color:#10234f}
.ev-exam{display:grid;gap:12px}
.ev-exam .ev-q{padding:18px}
.ev-exam .qtext{font-size:19px;margin-bottom:12px}
.ev-radio{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ev-radio label{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border-radius:14px;border:2px solid #dbe4f1;cursor:pointer;font-weight:800;overflow-wrap:anywhere}
.ev-radio input{width:20px;height:20px;accent-color:#1769d7;flex:0 0 auto}
.ev-radio label:has(input:checked){border-color:#1769d7;background:#f2f7ff}
.ev-hist td,.ev-hist th{padding:10px 12px}
.ev-table-wrap{overflow-x:auto;border-radius:20px}
.ev-grade{font-weight:1000;font-size:18px}
.ev-confirm{margin-top:12px}

/* connexion */
.ev-login{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#fff1e6,#fff8ef);border:1px solid #ffd2b0}
.ev-login h3{margin:0 0 4px;font-size:21px}
.ev-login p{margin:0;color:#6b4a2b;line-height:1.45}

/* chargement */
.ev-loading{padding:24px;text-align:center;color:#5f6d85;font-weight:900}

/* impression */
.ev-print{display:none}
@media print{
  body.ev-printing > *:not(#evPrint){display:none !important}
  body.ev-printing{background:#fff !important}
  body.ev-printing #evPrint{display:block;color:#000;font-family:Arial,sans-serif;font-size:12pt}
  .ev-print-head{display:flex;justify-content:space-between;border-bottom:2px solid #000;padding-bottom:6px;margin-bottom:12px}
  .ev-print h1{font-size:18pt;margin:0 0 6px}
  .ev-print h2{font-size:14pt;margin:14px 0 6px;page-break-after:avoid}
  .ev-print .pcard{border:1px solid #999;border-radius:8px;padding:8px 10px;margin:0 0 8px;page-break-inside:avoid}
  .ev-print .pq{margin:0 0 10px;page-break-inside:avoid}
  .ev-print .line{border-bottom:1px dotted #777;height:22px}
  .ev-print ol{padding-left:22px}
}

/* responsive */
@media(max-width:1100px){.ev-modes{grid-template-columns:repeat(2,1fr)}.ev-grid4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.ev-cols{grid-template-columns:1fr}.ev-grid3{grid-template-columns:1fr 1fr}.ev-prog-list{grid-template-columns:1fr}}
@media(max-width:700px){
  .ev-head{grid-template-columns:1fr}
  .ev-head .section-title{font-size:30px}
  .ev-grid2,.ev-grid3,.ev-grid4,.ev-levels{grid-template-columns:1fr}
  .ev-modes{grid-template-columns:1fr 1fr}
  .ev-opts,.ev-radio{grid-template-columns:1fr}
  .ev-subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ev-subject img{height:70px}
  .ev-continue{grid-template-columns:auto 1fr}
  .ev-continue .ev-btn{grid-column:1/-1}
  .ev-face h3{font-size:24px}.ev-face p{font-size:18px}
  .ev-flip-inner{min-height:320px}
  .ev-q{padding:16px}.ev-q .qtext{font-size:19px}
  .ev-timer{top:8px}
  .ev-timer .clock{font-size:24px}
  .ev-section > h2,.ev-h2{font-size:24px}
  .ev-chip{font-size:16px;padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){.ev-flip-inner,.ev-btn,.ev-subject,.ev-bar > span{transition:none}}

/* formulaires */
.ev-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.ev-field{display:grid;gap:6px;font-weight:900;min-width:0}
.ev-field span{font-size:14px;color:#4c5d7b}
.ev-field select{width:100%;min-height:48px;padding:10px 12px;border-radius:14px;border:2px solid #dbe4f1;background:#fff;font:inherit;font-weight:800;color:#10234f}
.ev-field select:focus{border-color:#1769d7;outline:none;box-shadow:0 0 0 3px rgba(23,105,215,.18)}
a.sr-only:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;clip:auto;margin:0;padding:10px 14px;z-index:100;background:#10234f;color:#fff;border-radius:12px;font-weight:900}
@media(max-width:980px){
  .ev-timer{position:fixed;left:10px;right:10px;bottom:10px;top:auto;margin:0}
  .ev-exam{padding-bottom:10px}
  body:has(.ev-timer) .footer-note{margin-bottom:110px}
}
@media(max-width:980px){
  .mg-header .header-actions > .mini-btn{display:none}
  .mg-header .header-actions:not(:has(> :not(.mini-btn))){display:none}
  .ev-timer{padding:10px 12px;gap:8px;flex-wrap:nowrap}
  .ev-timer > div > div{display:none}
  .ev-timer .ev-btn{min-height:40px;padding:8px 12px;font-size:14px;flex:0 0 auto}
}
@media(max-width:700px){.mg-header{position:static}}
/* ---- Lot A (v75) : cibles tactiles ≥ 40 px et petits textes ≥ 14 px sur mobile / tablette */
@media (max-width:980px),(pointer:coarse){
  .ev-btn.sm{min-height:42px;padding:8px 13px}
  .ev-chip small,.ev-continue .kicker{font-size:14px}
  .ev-pill{font-size:14px}
  main small{font-size:14px}
}
