/* Éditeur de quiz : outil de l'animateur, en mode clair. */
body.light { background: #F6F3EC; color: var(--navy); }
body.light #controls { display: none; }

.screen.scroll.ed { padding-left: max(2.6vw, calc((100vw - 1180px) / 2)); padding-right: max(2.6vw, calc((100vw - 1180px) / 2)); }
.ed-top { display: flex; align-items: center; gap: 16px; padding: 4px 0 16px; border-bottom: 1px solid #E6DFD0; }
.ed-logo { height: 26px; }
.ed-top h2 { flex: 1; font-size: 24px; font-weight: 900; }
.ed-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; padding: 20px 0 60px; align-items: start; }
.ed-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-import { display: flex; flex-direction: column; gap: 8px; }
.ed-import[hidden] { display: none; }
.ed-items { display: flex; flex-direction: column; gap: 8px; }
.ed-item { text-align: left; background: #fff; border: 2px solid #E6DFD0; border-radius: 14px; padding: 10px 14px; color: var(--navy); font-weight: 900; font-size: 15px; }
.ed-item small { display: block; font-weight: 400; color: #6B7280; font-size: 13px; margin-top: 2px; }
.ed-item.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,168,1,.18); }
.claude-box { background: #fff; border: 2px dashed #E1D6BF; border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.claude-box code { background: #F6F3EC; padding: 4px 8px; border-radius: 6px; word-break: break-all; font-size: 13px; }

.btn.sm { font-size: 14px; padding: .65em 1.1em; box-shadow: 0 4px 0 #C98300; }
.btn.line { background: #fff; color: var(--navy); border: 2px solid #E6DFD0; box-shadow: none; }
.btn.line:active { transform: none; }
.btn.danger { color: #C4002F; }

.in { width: 100%; border: 2px solid #E6DFD0; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; }
.in:focus { border-color: var(--amber); outline: none; }
.in:disabled { background: #FBFAF6; color: #3A4A60; }
.in.title { font-size: 24px; font-weight: 900; }
textarea.in { resize: vertical; font-weight: 700; }

.ed-head { display: flex; flex-direction: column; gap: 10px; }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saved { margin-left: auto; font-size: 13px; font-weight: 700; color: #9CA3AF; }
.saved[data-state="ok"] { color: var(--ok); }
.saved[data-state="ko"] { color: #C4002F; }
.notice { background: #FFF1CC; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; line-height: 1.45; }
.link-dark { background: transparent; color: #B87800; font-weight: 900; font-size: inherit; padding: 0; text-decoration: underline; }
.ed-manche { background: #fff; border: 1px solid #E6DFD0; border-radius: 18px; padding: 16px; margin-top: 18px; }
.ed-mhead { display: flex; gap: 10px; align-items: center; }
.ed-mnum { font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #B87800; white-space: nowrap; }
.ed-q { border: 2px solid #EEE7D8; border-radius: 14px; padding: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ed-q.bad { border-color: #F3B3C0; }
.ed-qhead { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 12px; color: #6B7280; letter-spacing: .1em; text-transform: uppercase; }
.ed-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ed-opt .sw { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.ed-opt .sw .shape { width: 18px; height: 18px; }
.good-toggle { font-size: 13px; font-weight: 900; padding: 8px 12px; border-radius: 10px; border: 2px solid #E6DFD0; background: #fff; color: #9CA3AF; white-space: nowrap; }
.good-toggle[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.good-toggle:disabled { cursor: default; }
.err-msg { color: #C4002F; font-size: 13px; font-weight: 700; }
.err-msg:empty { display: none; }
.icon-btn { background: transparent; color: #9CA3AF; font-size: 16px; padding: 6px 10px; border-radius: 8px; }
.icon-btn:hover { color: #C4002F; background: #FDECEF; }
.add { margin-top: 12px; background: transparent; color: #B87800; font-weight: 900; font-size: 15px; padding: 6px 0; }
.add.big { margin-top: 18px; font-size: 17px; }

.imp-card { max-width: 720px; margin: 28px auto; background: #fff; border: 1px solid #E6DFD0; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.imp-card h3 { font-size: 28px; font-weight: 900; }
.imp-card p { color: #6B7280; font-weight: 700; }
.imp-card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.imp-card ol > li span { color: #6B7280; margin-left: 8px; font-size: 14px; }
.imp-card ul { padding-left: 18px; margin-top: 4px; font-size: 14px; color: #3A4A60; }

@media (max-width: 760px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-side { position: static; }
  .ed-top h2 { font-size: 20px; }
  .ed-opt { grid-template-columns: 30px minmax(0, 1fr); }
  .ed-opt .good-toggle { grid-column: 2; justify-self: start; }
}
