/* France Collège — Fiches à imprimer (Révision) */
.fp-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.fp-tabs button{border:2px solid #d4ddeb;background:#fff;color:#10234f;border-radius:14px;padding:11px 16px;font:inherit;font-weight:1000;cursor:pointer}
.fp-tabs button[aria-selected="true"]{background:#1769d7;border-color:#1769d7;color:#fff}
.fp-pane{padding:22px}
.fp-pane h2{margin:0 0 12px}
.fp-box{border:1px solid #dbe3ef;border-radius:18px;padding:16px 18px;margin-top:14px;background:#fbfdff}
.fp-box h3{margin:0 0 6px;font-size:19px}
.fp-box p{margin:6px 0;color:#4f5d77}
.fp-chks{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.fp-chk{position:relative}
.fp-chk input{position:absolute;opacity:0;inset:0;cursor:pointer}
.fp-chk span{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:42px;border-radius:12px;border:2px solid #d9e3f0;background:#fff;font-weight:1000;color:#33496d}
.fp-chk input:checked+span{background:#1769d7;border-color:#1769d7;color:#fff}
.fp-chk input:focus-visible+span{outline:3px solid #f5a524}
.fp-btns{display:flex;flex-wrap:wrap;gap:10px}
.fp-btns .start-btn{margin-top:10px}
.start-btn{border:0;border-radius:15px;background:linear-gradient(135deg,#1769d7,#2d8aff);color:#fff;font-weight:1000;padding:13px 20px;font-size:16px;cursor:pointer;box-shadow:0 10px 22px rgba(23,105,215,.2)}
.start-btn.alt{background:#fff;color:#1769d7;border:2px solid #1769d7;box-shadow:none}
.soft-btn{border:1px solid #d9e3f0;background:#fff;color:#33496d;border-radius:14px;padding:9px 12px;font-weight:1000;cursor:pointer}
.fp-opts{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0}
.fp-opts label{display:flex;flex-direction:column;gap:4px;font-weight:900;font-size:14px;color:#33496d}
.fp-opts select{font:inherit;padding:8px 10px;border-radius:10px;border:1px solid #cdd8e8;background:#fff}
.fp-msg{color:#b32d54;font-weight:900;min-height:1em}
/* Exercice chronométré */
.fp-run{margin-top:16px}
.fp-runbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;background:#10234f;color:#fff;border-radius:14px;padding:10px 14px;margin-bottom:10px}
.fp-clock{font:1000 28px/1 ui-monospace,Consolas,monospace;min-width:84px}
.fp-clock.hurry{color:#ffb4b4}
.fp-track{flex:1;height:10px;border-radius:999px;background:rgba(255,255,255,.2);overflow:hidden}
.fp-track span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#16a064,#f3b72b);transition:width .25s linear}
.fp-result{font-size:17px;margin:12px 0 0}
.fp-run table{width:100%}
/* Tableaux (écran + impression) */
.fp-pyth{border-collapse:collapse;margin:0 auto;font-weight:800;text-align:center}
.fp-pyth th,.fp-pyth td{border:1.5px solid #9fb0c9;width:2.6em;height:2.3em;padding:0}
.fp-pyth th{background:#e9f1ff;color:#10234f}
.fp-pyth td.hole{background:#fffbe8}
.fp-pyth input,.fp-vb input{width:100%;height:100%;min-height:2.2em;border:0;background:transparent;text-align:center;font:inherit;font-weight:900;color:#1769d7}
.fp-pyth input:focus,.fp-vb input:focus{outline:3px solid #1769d7;outline-offset:-3px;background:#fff}
.fp-vb{border-collapse:collapse;width:100%}
.fp-vb th,.fp-vb td{border:1px solid #c9d5e6;padding:6px 8px;text-align:left}
.fp-vb th{background:#e9f1ff;color:#10234f}
.fp-vb td.fr{color:#5a6983;font-style:italic}
.fp-vb td.hole{background:#fffbe8;padding:0;min-width:7em}
.fp-vb.listen td:first-child{width:44px;text-align:center}
.fp-say{border:0;background:#eaf3ff;border-radius:10px;padding:4px 8px;cursor:pointer;font-size:18px}
td.ok{background:#e7f8ee!important}
td.ko{background:#ffe9ee!important;position:relative}
td.ko::after{content:attr(data-good);display:block;font-size:12px;color:#137a3e;font-weight:1000;padding:0 4px 3px}
td.key{color:#1769d7;font-weight:1000}
.fp-run .fp-vb input{padding:6px 8px;text-align:left}
@media(max-width:640px){.fp-pyth th,.fp-pyth td{width:2em;height:2em;font-size:13px}.fp-run{overflow-x:auto}.fp-vb th,.fp-vb td{padding:5px;font-size:14px}}
#printSheet{display:none}
/* Impression */
@media print{
  @page{size:A4;margin:12mm}
  body.fp-printing>*:not(main){display:none!important}
  body.fp-printing main>*:not(#printSheet){display:none!important}
  body.fp-printing #printSheet{display:block}
  body.fp-printing{background:#fff!important}
  body.fp-printing main{padding:0!important;margin:0!important;max-width:none!important}
  .fp-page{page-break-after:always;break-after:page;color:#000;font-family:Arial,Helvetica,sans-serif}
  .fp-page:last-child{page-break-after:auto;break-after:auto}
  .fp-head{display:flex;justify-content:space-between;gap:10px;border-bottom:2px solid #000;padding-bottom:4px;margin-bottom:8px;font-size:11pt}
  .fp-title{font-size:16pt;margin:4px 0 8px;text-align:center}
  .fp-note{font-size:10pt;margin:6px 0}
  .fp-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8mm 6mm}
  .fp-tb{border-collapse:collapse;width:100%;font-size:13pt;break-inside:avoid}
  .fp-tb caption{font-weight:bold;font-size:14pt;padding:2px;border:2px solid #000;border-bottom:0;background:#eee}
  .fp-tb td{border:1px solid #000;padding:3px 6px}
  .fp-tb td.eq{width:1em;text-align:center;border-left:0;border-right:0}
  .fp-tb td.res{width:3em;text-align:center;font-weight:bold}
  .fp-tb.blank td.res{height:1.5em}
  .fp-pyth{font-size:12pt}
  .fp-pyth th,.fp-pyth td{border:1px solid #000;width:15mm;height:13mm}
  .fp-pyth th{background:#e6e6e6}
  .fp-pyth td.hole{background:#fff}
  .fp-pyth td.key,.fp-vb td.key{color:#000;text-decoration:underline;background:#f2f2f2}
  .fp-vb{font-size:10.5pt}
  .fp-vb th,.fp-vb td{border:1px solid #000;padding:3px 6px;height:6.2mm}
  .fp-vb th{background:#e6e6e6}
  .fp-vb td.hole{background:#fff}
  .fp-vb tr{break-inside:avoid}
}
