/* beta.506 : devoir complet — sujet, minuteur, questions, corrigé (côté élève). */
.jc-assignment-info { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #eef5fc 0%, #f3effb 100%); border: 1px solid #d9e2f1; }
.jc-assignment-info p { margin: 0; font-weight: 600; color: #10364b; }
.jc-assignment-subject { justify-self: start; }
.jc-assignment-start { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: #fdf6e1; border: 1px solid #ecd9a2; }
.jc-assignment-start p { margin: 0; line-height: 1.55; }
.jc-assignment-start .jc-btn { justify-self: start; }
.jc-assignment-timer { position: sticky; top: 12px; z-index: 5; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #ecf8f1; border: 1px solid #bfe3cd; font-variant-numeric: tabular-nums; }
.jc-assignment-timer strong { font-size: 1.25em; color: #155c37; }
.jc-assignment-timer.is-warning { background: #fdf0c8; border-color: #ecd28a; }
.jc-assignment-timer.is-warning strong { color: #6b4d00; }
.jc-assignment-timer.is-urgent, .jc-assignment-timer.is-over { background: #fbe0e5; border-color: #f0b8c2; }
.jc-assignment-timer.is-urgent strong, .jc-assignment-timer.is-over strong { color: #8a1f2d; }
.jc-assignment-questions-student { display: grid; gap: 16px; margin: 0 0 18px; }
.jc-assignment-question-student { display: grid; gap: 10px; margin: 0; padding: 16px 18px; border: 1px solid #dbe6ef; border-radius: 14px; background: #fff; }
.jc-assignment-question-student legend { padding: 0 6px; font-weight: 700; color: #10364b; }
.jc-assignment-question-student__statement { margin: 0; white-space: pre-line; line-height: 1.6; }
.jc-assignment-question-student__option { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.jc-assignment-question-student textarea { width: 100%; box-sizing: border-box; line-height: 1.6; }
.jc-writing-notice { display: block; margin-top: 6px; color: #5a6b75; font-size: 0.86em; line-height: 1.5; }
.jc-assignment-pass { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85em; font-weight: 700; }
.jc-assignment-pass.is-passed { background: #dcf3e5; color: #155c37; }
.jc-assignment-pass.is-failed { background: #fbe0e5; color: #8a1f2d; }
.jc-assignment-review { display: grid; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #f8fbfc; border: 1px solid #dbe6ef; }
.jc-assignment-review__item { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid #e3ecf1; }
.jc-assignment-review__item:first-of-type { border-top: 0; padding-top: 0; }
.jc-assignment-review__statement { margin: 0; font-weight: 600; white-space: pre-line; }
.jc-assignment-review ul { margin: 0; padding-left: 4px; list-style: none; }
.jc-assignment-review li.is-correct { color: #155c37; font-weight: 600; }
.jc-assignment-review blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid #b9cbd6; background: #fff; white-space: pre-line; }
.jc-assignment-review__points { margin: 0; font-weight: 700; color: #1e6f78; }
.jc-assignment-review__key summary { cursor: pointer; font-weight: 600; color: #4c3d8c; }
.jc-submission-form .jc-assignment-question-student__option { display: flex !important; flex-direction: row; gap: 10px; align-items: center; font-weight: 400; margin: 0; }
.jc-submission-form .jc-assignment-question-student__option input { width: auto !important; min-width: 0; margin: 0; flex: 0 0 auto; }

/* beta.508 : plein écran, pause, éditeur riche */
.jc-fullscreen-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 0 0 12px; }
.jc-submission-form:fullscreen, .jc-final-exam-form:fullscreen, .jc-submission-form:-webkit-full-screen, .jc-final-exam-form:-webkit-full-screen { overflow: auto; box-sizing: border-box; width: 100%; height: 100%; padding: 24px max(24px, 6vw) 40px; background: #fbfdfe; }
.jc-submission-form.is-pseudo-fullscreen, .jc-final-exam-form.is-pseudo-fullscreen { position: fixed; inset: 0; z-index: 100000; overflow: auto; box-sizing: border-box; padding: 20px max(16px, 5vw) 40px; background: #fbfdfe; }
body.jc-pseudo-fullscreen-open { overflow: hidden; }
.jc-submission-form:fullscreen .jc-assignment-timer, .jc-submission-form.is-pseudo-fullscreen .jc-assignment-timer { top: 0; }
.jc-assignment-pause-panel { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #f3effb 0%, #eef5fc 100%); border: 1px solid #d9d3ee; text-align: center; }
.jc-assignment-pause-panel p { margin: 0; }
.jc-assignment-pause-panel .jc-assignment-pause-countdown { font-size: 1.4em; font-variant-numeric: tabular-nums; color: #4c3d8c; }
.jc-assignment-pause-panel .jc-btn { justify-self: center; }
.jc-submission-form .wp-editor-wrap, .jc-assignment-question-student .wp-editor-wrap { width: 100%; }
.jc-submission-form .mce-tinymce { border-radius: 10px; overflow: hidden; }
.jc-submission-written-work__text h3, .jc-assignment-review blockquote h3 { font-size: 1.1em; margin: .8em 0 .4em; }
.jc-submission-written-work__text h4, .jc-assignment-review blockquote h4 { font-size: 1em; margin: .6em 0 .3em; }

/* beta.511 : tableaux des contenus (outils Tableau de l'éditeur, tableaux collés depuis Excel ou Word) */
table.jc-table, table.jc-table-simple { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1em 0; }
table.jc-table td, table.jc-table th, table.jc-table-simple td, table.jc-table-simple th { padding: 8px 12px; border: 1px solid #cfdde4; vertical-align: top; }
table.jc-table th, table.jc-table thead td { background: #0b7a5c; color: #fff; font-weight: 700; text-align: left; }
table.jc-table tbody tr:nth-child(even) td { background: #f4f8f9; }
@media (max-width: 640px) { table.jc-table, table.jc-table-simple { display: block; overflow-x: auto; } }
