/**
 * Styles front-end du module correction (BAT auteur, bouton soumission)
 */

/* Bloc statut sur la page texte */
.correction-status-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    margin: 16px 0;
}
.correction-status-icon { font-size: 20px; }
.correction-status-text a { color: #5c3d8f; text-decoration: underline; }

/* Bloc soumission */
.correction-submit-block { margin: 16px 0; }
.correction-submit-btn {
    background: #5c3d8f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.correction-submit-btn:hover { background: #4a3072; }
.correction-submit-btn:disabled { background: #aaa; cursor: not-allowed; }
.correction-submit-hint { font-size: 13px; color: #777; margin-top: 8px; }

/* Notices inline */
.correction-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
}
.correction-notice.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.correction-notice.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.correction-notice.info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Rendu du format canonique (relecture front + admin) ──────────────────── */
.theatre-render h2.titre-acte  { font-size:18px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; text-align:center; margin:32px 0 8px; }
.theatre-render h2.titre-scene { font-size:15px; font-style:italic; text-align:center; margin:20px 0 14px; color:#333; }
.theatre-render p.lieu         { font-style:italic; text-align:center; color:#555; font-size:.92em; margin:8px 0 18px; }
.theatre-render p.replique     { margin:8px 0 8px 20px; }
.theatre-render span.personnage{ font-weight:700; text-transform:uppercase; font-size:.85em; letter-spacing:.04em; margin-right:6px; }
.theatre-render em.didascalie  { font-style:italic; color:#777; }

/* ── Surlignage des corrections (par items) ───────────────────────────────── */
.corr-mark { background:#ffe9c7; border-radius:2px; padding:0 1px; cursor:pointer; }
.corr-mark.hl { background:#ff9800; color:#fff; }
.corr-mark[data-type="forme"]  { background:#e2d9f3; } /* mise en forme : teinte distincte */
.corr-mark[data-type="manuel"] { background:#cfe8ff; } /* correction manuelle (éditeur/auteur) */
.theatre-render.hide-marks .corr-mark { background:none; color:inherit; padding:0; cursor:auto; }
