/* ===== Pages de révision : geometrie/revision-volumes.html, revision/index.html ===== */
:root{--ink:#1d2433;--vert:#16a34a;--rouge:#dc2626;--bleu:#2563eb}
*{box-sizing:border-box}
body{margin:0;padding:68px 12px 24px;font-family:"Segoe UI",system-ui,sans-serif;color:var(--ink);
  background:radial-gradient(120% 70% at 50% 0%,#dbeafe 0%,#eef2ff 45%,#f8fafc 100%) fixed}
.wrap{max-width:1100px;margin:0 auto;position:relative;z-index:11}
.entete{background:rgba(255,255,255,.94);border-radius:16px;padding:8px 14px;margin:0 auto 12px;max-width:820px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
h1{margin:2px auto 4px;text-align:center;font-size:clamp(1.3rem,3.6vw,1.8rem);color:#0f172a}
.sous-titre{text-align:center;margin:0 0 4px;color:#475569;font-weight:600}
.onglets{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 12px}
.onglets button{font:inherit;font-weight:800;font-size:1rem;padding:10px 16px;border-radius:999px;cursor:pointer;
  border:2px solid #c7d2fe;background:#fff;color:#1e293b;box-shadow:0 3px 0 #c7d2fe;touch-action:manipulation}
.onglets button[aria-selected="true"]{background:linear-gradient(180deg,#6366f1,#4338ca);color:#fff;border-color:#3730a3;box-shadow:0 3px 0 #312e81}
details.rappels{background:#fff;border:1px solid #cbd5e1;border-radius:14px;padding:8px 14px;margin:0 0 12px;color:var(--ink)}
details.rappels summary{cursor:pointer;font-weight:800}
.formules{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:6px 18px;margin:8px 0 4px;font-size:.98rem}
.formules div{padding:4px 0;border-bottom:1px dashed #e2e8f0}
.barre-outils{display:flex;justify-content:flex-end;gap:8px;margin:0 0 8px;flex-wrap:wrap}
.rv-ex{background:#fff;color:var(--ink);border:1px solid #cbd5e1;border-radius:18px;box-shadow:0 10px 26px rgba(15,23,42,.10);padding:14px 16px;margin:0 0 16px}
.rv-ex h2{margin:0 0 6px;font-size:1.25rem;color:#312e81}
.rv-intro{margin:0 0 10px;line-height:1.5}
.rv-parties{display:grid;gap:14px}
.rv-parties.multi{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.rv-partie{border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;background:#f8fafc;min-width:0}
.rv-partie h3{margin:0 0 6px;font-size:1.05rem;color:#1e293b}
.rv-fig{display:flex;justify-content:center;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:6px;margin-bottom:8px}
.rv-fig svg{max-width:100%;height:auto;max-height:280px}
.rv-donnees{margin:0 0 8px;font-weight:700;color:#334155;line-height:1.45}
.rv-q{margin:8px 0;line-height:1.9}
.rv-ql{font-weight:700;color:#334155}
.rv-saisie{white-space:nowrap}
.rv-case{font:inherit;font-size:1.15rem;width:5.4em;max-width:100%;text-align:center;padding:4px 6px;border:2px solid #94a3b8;border-radius:8px;background:#fffbea;color:#0f172a}
.rv-case.ok{border-color:var(--vert);background:#dcfce7}.rv-case.ko{border-color:var(--rouge);background:#fee2e2}
.rv-opt{font:inherit;font-weight:800;padding:5px 16px;margin-right:6px;border-radius:999px;border:2px solid #94a3b8;background:#fff;color:#1e293b;cursor:pointer;touch-action:manipulation}
.rv-opt[aria-pressed="true"]{background:#1e293b;color:#fff;border-color:#1e293b}
.rv-opt.ok{background:var(--vert);border-color:var(--vert);color:#fff}.rv-opt.ko{background:var(--rouge);border-color:var(--rouge);color:#fff}
.rv-etat{font-weight:800;margin-left:4px}
.rv-att{margin:2px 0 4px;padding:4px 10px;border-left:4px solid #6366f1;background:#eef2ff;border-radius:6px;font-weight:700;color:#312e81}
.rv-corr{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f0fdf4;border:2px solid #86efac;color:#14532d;line-height:1.6}
.rv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rv-btn{font:inherit;font-weight:800;font-size:1rem;padding:10px 18px;border-radius:999px;border:none;cursor:pointer;color:#fff;
  background:linear-gradient(180deg,#64748b,#475569);box-shadow:0 3px 0 #334155;touch-action:manipulation}
.rv-btn.vert{background:linear-gradient(180deg,#22c55e,#16a34a);box-shadow:0 3px 0 #15803d}
.rv-btn.bleu{background:linear-gradient(180deg,#3b82f6,#2563eb);box-shadow:0 3px 0 #1d4ed8}
.rv-btn:active{transform:translateY(2px);box-shadow:none}
.rv-bilan{margin-top:8px;font-weight:800;min-height:1.3em}
.rv-devis{border-collapse:collapse;margin:10px 0 4px;max-width:100%;font-size:.95rem}
.rv-devis th,.rv-devis td{border:1px solid #64748b;padding:5px 10px;text-align:center;color:#0f172a;background:#fff}
.rv-devis th{background:#e2e8f0}
.chip{display:inline-block;padding:4px 12px;border-radius:999px;background:#fef3c7;border:1px solid #fcd34d;color:#78350f;font-weight:800}
.rv-ex.rendu .rv-case,.rv-ex.rendu .rv-opt{pointer-events:none}
.note-sujet{margin:0 0 10px;padding:8px 12px;border-radius:12px;background:#eef2ff;border:1px solid #c7d2fe;color:#312e81;font-weight:600}
.bilan-sujet{font-size:1.1rem;text-align:center;margin:4px auto 14px;font-weight:800;color:#1e293b;background:#fff;border-radius:999px;padding:6px 16px;width:fit-content;max-width:100%}
.bilan-sujet:empty{display:none}
.lien-plus{background:rgba(255,255,255,.94);border-radius:999px;padding:6px 14px;width:fit-content;max-width:100%;margin:6px auto 0}
.lien-plus{text-align:center}
.lien-plus a{color:#4338ca;font-weight:700}

/* Calculatrice (avec π) */
.calc{position:fixed;top:64px;right:10px;z-index:1200;width:min(300px,calc(100vw - 20px));background:#fff;color:#111;border:1px solid #94a3b8;border-radius:14px;box-shadow:0 14px 30px rgba(0,0,0,.25);padding:10px}
.calc[hidden]{display:none}
.calc input{width:100%;font-size:1.25rem;text-align:right;padding:8px;border:none;border-radius:8px;background:#f1f5f9;color:#111}
.calc .touches{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:8px}
.calc .touches button{font:inherit;font-size:1.05rem;padding:9px 2px;border:none;border-radius:8px;background:#e5e7eb;color:#111;cursor:pointer;touch-action:manipulation}
.calc .touches .op{background:#fdba74;font-weight:800}.calc .touches .eg{background:#22c55e;color:#fff;font-weight:800}
.calc .touches .eff{background:#ef4444;color:#fff;font-weight:800}.calc .touches .fn{background:#dbeafe;font-weight:700}
.calc .inserer{width:100%;margin-top:8px;font:inherit;font-weight:800;padding:8px;border:none;border-radius:8px;background:#4338ca;color:#fff;cursor:pointer}

/* Pavé tactile (js/pave-reponse.js) : posé dans ce dock, collé en bas sur tablette */
.dock{position:sticky;bottom:0;z-index:900;margin:0 -12px -24px;padding:4px 10px calc(8px + env(safe-area-inset-bottom,0px));
  background:rgba(241,245,249,.97);border-top:1px solid #cbd5e1;box-shadow:0 -6px 16px rgba(0,0,0,.08)}
.dock .pave-rep{margin:6px auto 2px}
@media (hover:hover) and (pointer:fine){.dock{display:none}}

/* Version papier (revision/index.html?…&papier=1) : sujet Va / Vb + corrigé, à imprimer */
.papier{max-width:780px;margin:0 auto;background:#fff;color:#000;padding:16px 18px;font-family:"Liberation Serif","Times New Roman",serif;font-size:12pt}
.papier table{border-collapse:collapse;width:100%}
.papier td,.papier th{border:1px solid #000;padding:4px 8px}
.papier .p-ent td{text-align:center;height:28px}.papier .p-ent td:first-child{text-align:left;width:45%}
.papier .p-consigne{text-align:center;font-weight:bold;margin:6px 0}
.papier .p-ex{break-inside:avoid;margin:10px 0 6px}
.papier .p-ex h3{margin:0 0 4px;font-size:1em;border:1px solid #000;padding:3px 8px;background:#f2f2f2}
.papier .p-fig{text-align:center;margin:4px 0}.papier .p-fig svg{max-width:330px;max-height:220px;height:auto}
.papier .p-q{margin:6px 0 2px;line-height:1.9}
.papier .p-ligne{display:inline-block;min-width:140px;border-bottom:1px dotted #000;height:1.1em;vertical-align:baseline}
.papier .p-corr{margin:3px 0 8px;line-height:1.5}
.papier .p-saut{break-after:page;page-break-after:always;height:0}
.papier .rv-devis td,.papier .rv-devis th{background:#fff}
.barre-impression{max-width:780px;margin:0 auto 10px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
@media print{
  body{padding:0!important;background:#fff!important}
  .fv-header,.barre-impression,.dock,.calc{display:none!important}
  body > :not(main){display:none!important}   /* ardoise, boutons flottants du site… */
  .papier{max-width:none;padding:0}
  @page{size:A4;margin:12mm}
}
