@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Bold.ttf"); font-weight: 700; }
.demo-wrap { max-width: 1240px; margin: 0 auto; padding: 18px 18px 40px; }
.demo-intro { max-width: 820px; }
.demo-intro h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 8px 0; letter-spacing: -0.01em; }
.demo-etapes { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 14px 0 20px; font-weight: 600; font-size: .9rem; }
.demo-etapes b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-action); color: #fff; margin-right: 6px; font-size: .8rem; }
.demo-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 22px; align-items: start; }
.papier { position: relative; background: #fffef9; border: 1px solid #e7e2d4; border-radius: 6px; box-shadow: 0 18px 50px rgba(20, 33, 61, .14); padding: 34px 38px 30px; font-family: "Times New Roman", Georgia, serif; color: #1f2937;
  background-image: repeating-linear-gradient(transparent 0 31px, #e9eef6 31px 32px); }
.papier-entete { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid #1f2937; padding-bottom: 8px; margin-bottom: 14px; font-weight: 700; }
.main { font-family: "Kalam", "Comic Sans MS", cursive; font-style: normal; }
.rouge { color: #c81e1e; }
#demo-eleve { font-size: 1.25rem; color: #1e3a8a; font-weight: 400; }
.papier-note { position: absolute; top: 74px; right: 26px; transform: rotate(-6deg); border: 3px solid #c81e1e; border-radius: 50%; padding: 10px 14px; font-size: 1.6rem; font-weight: 700; background: rgba(255,255,255,.7); }
.pq { padding: 10px 0 14px; border-bottom: 1px dashed #d6d3c8; }
.pq-enonce { margin: 0 110px 6px 0; font-size: 1.02rem; }
.pq-pts { color: #6b7280; font-size: .9rem; }
.pq-reponse { color: #1e3a8a; font-size: 1.22rem; line-height: 1.5; padding-left: 14px; }
.pq-annot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding-left: 14px; font-size: 1.05rem; }
.pq-cercle { border: 2px solid #c81e1e; border-radius: 50%; padding: 1px 9px; font-weight: 700; }
.pq-marque { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.papier-commentaire { margin: 16px 0 0; font-size: 1.1rem; line-height: 1.45; }
.demo-fictif { color: var(--muted); font-size: .8rem; margin: 8px 2px; }
.demo-bareme { position: sticky; top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.demo-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.demo-total span { color: var(--muted); font-weight: 600; }
.demo-total strong { font-size: 2rem; color: var(--brand-action); }
.demo-total small { color: #15803d; font-weight: 700; }
.di { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; transition: border-color .2s, box-shadow .2s; }
.di.doute { border-color: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.di.fait { border-color: #86efac; }
.di-tete { display: flex; align-items: center; gap: 8px; }
.di-conf { margin-left: auto; color: var(--muted); font-size: .8rem; }
.di-attendu { margin: 6px 0; font-size: .86rem; }
.di-attendu span { color: #15803d; font-weight: 700; }
.di-raison { margin: 4px 0 6px; font-size: .84rem; color: #92400e; }
.di-pts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.di-pts button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
.di-pts button:hover { border-color: var(--brand-action); }
.di-pts output { font-size: 1.3rem; font-weight: 800; min-width: 38px; text-align: center; }
.di-pts span { color: var(--muted); margin-right: 6px; }
.di-com { width: 100%; margin-top: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .86rem; }
.demo-com { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .85rem; margin-top: 10px; }
.demo-com textarea { font: inherit; font-weight: 400; padding: 8px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.demo-fin { margin: 30px auto 0; max-width: 760px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; }
.demo-fin.visible { border-color: var(--brand-action); box-shadow: 0 0 0 4px var(--mint); }
.demo-fin h2 { margin: 0 0 6px; }
.demo-essayer { display: inline-flex; width: auto; margin: 14px auto 4px; padding: 16px 28px; font-size: 1.1rem; }
.demo-fin .lic-offre { text-align: left; }
@media (max-width: 900px) {
  .demo-grille { grid-template-columns: 1fr; }
  .demo-bareme { position: static; }
  .papier { padding: 24px 18px; }
  .pq-enonce { margin-right: 0; }
  .papier-note { position: static; display: inline-block; margin-bottom: 8px; }
}
