/* Musiclic – Équivalences rythmiques V1.4.8. Styles locaux : aucune modification de main.css. */
#ml-motifs{font-family:Arial,Helvetica,sans-serif;color:#263444;max-width:940px;margin:18px auto 36px;line-height:1.5}
#ml-motifs *{box-sizing:border-box}
#ml-motifs [hidden]{display:none!important}
#ml-motifs .ml-panel{border:1px solid #d6e0e8;border-radius:6px;background:#fff;padding:22px 24px;margin-top:14px}
#ml-motifs h3{font-size:1.3rem;line-height:1.3;margin:0 0 14px;color:#244d73;font-weight:600}
#ml-motifs p{margin:0 0 12px}
#ml-motifs .ml-settings-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.05fr);gap:18px 22px;align-items:start;margin:4px 0 13px}
#ml-motifs .ml-field{min-width:0;display:flex;flex-direction:column;gap:9px}
#ml-motifs .ml-field>label:not(.ml-check),#ml-motifs .ml-field>.ml-field-label{display:block;min-height:24px;line-height:24px;font-weight:600;font-size:.95rem;color:#243a4e}
#ml-motifs select,#ml-motifs #ml-seconds{height:45px;min-height:45px;border:1px solid #b9c8d5;border-radius:4px;background:#fff;color:#263444;font:inherit;font-size:1rem;padding:8px 12px}
#ml-motifs select{max-width:100%;width:100%}
#ml-motifs #ml-seconds{width:80px;text-align:center}
#ml-motifs .ml-check{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:45px;margin:0;font-weight:400;font-size:1rem;color:#263444}
#ml-motifs #ml-clock{width:18px;height:18px;margin:0;accent-color:#336699;flex:0 0 auto}
#ml-motifs .ml-seconds-setting{display:flex;align-items:center;min-height:45px;gap:9px;color:#566575}
#ml-motifs #ml-seconds:disabled{background:#f0f2f4;opacity:.7}
#ml-motifs .ml-hint{font-size:.88rem;color:#637180;line-height:1.4}

#ml-motifs .ml-setting-note{padding:0;margin:4px 0 21px;color:#647180}
#ml-motifs .ml-start-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
#ml-motifs .ml-start-summary{font-size:.88rem;color:#647180}
#ml-motifs .ml-action{display:inline-block;background:#336699;border:1px solid #336699;border-radius:4px;color:#fff;padding:10px 19px;font-size:1rem;line-height:1.35;cursor:pointer;min-height:44px;text-align:center}
#ml-motifs .ml-action:disabled{opacity:.5;cursor:not-allowed}
/* Un bouton secondaire reste clair même survolé, sélectionné ou cliqué.
   L'ancienne règle :hover du bouton principal lui imposait un fond bleu
   et rendait son texte bleu quasiment illisible. */
#ml-motifs button.ml-action.ml-secondary{background:#fff;border-color:#adc2d4;color:#285781}
#ml-motifs button.ml-action.ml-secondary:hover:not(:disabled),#ml-motifs button.ml-action.ml-secondary:focus:not(:disabled){background:#f3f7fa;border-color:#789bb9;color:#244d73}
#ml-motifs button.ml-action.ml-secondary:active:not(:disabled){background:#e8f0f6;color:#244d73}
#ml-motifs .ml-action:focus-visible,#ml-motifs select:focus-visible,#ml-motifs input:focus-visible,#ml-motifs .ml-motif-card:focus-visible{outline:3px solid #78add5;outline-offset:2px}
@media(hover:hover) and (pointer:fine){#ml-motifs .ml-action:hover:not(:disabled){background:#28517a;border-color:#28517a}#ml-motifs .ml-motif-card:hover:not(:disabled){border-color:#336699;background:#f2f7fb}}
#ml-motifs .ml-intro-error{color:#a43636;margin-top:10px}
/* Plateau : garder les portées, les ligatures et les dimensions VexFlow. */
#ml-motifs .ml-play{padding:19px 22px 22px}
#ml-motifs .ml-meta{display:flex;align-items:center;gap:10px 13px;flex-wrap:wrap;border-bottom:1px solid #e1e7ed;padding-bottom:14px;margin-bottom:15px;font-size:.92rem}
#ml-motifs .ml-round{font-size:1.05rem;color:#244e75;margin-right:auto}
#ml-motifs .ml-progress{font-weight:600;color:#336699;background:#edf3f8;border:1px solid #dce8f1;border-radius:3px;padding:5px 9px;white-space:nowrap}
#ml-motifs .ml-errors{color:#526171;white-space:nowrap}
#ml-motifs .ml-clock-value{font-weight:700;color:#244e75;font-variant-numeric:tabular-nums;white-space:nowrap;border:1px solid #d4e0e9;border-radius:4px;padding:5px 9px}
#ml-motifs .ml-clock-value.is-urgent{color:#a33838;border-color:#dca9a9;background:#fff4f4}
#ml-motifs .ml-board-labels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:68px;color:#5b6b7d;font-size:.83rem;text-align:center;letter-spacing:.015em;margin:0 0 9px}
#ml-motifs .ml-board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:68px;margin:0 0 15px}
#ml-motifs .ml-column{display:grid;grid-auto-rows:118px;gap:14px;min-width:0;z-index:1}
#ml-motifs .ml-motif-card{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:118px;min-width:0;background:#fbfcfd;color:#182b40;border:1px solid #cdd9e3;border-radius:5px;cursor:pointer;padding:2px 5px;overflow:hidden}
#ml-motifs .ml-motif-card.is-selected{border:2px solid #336699;background:#edf5fc}
#ml-motifs .ml-motif-card.is-correct{border:2px solid #4b8666;background:#f0f7f2;cursor:default}
#ml-motifs .ml-motif-card.is-wrong{border:2px solid #bc5252;background:#fff2f2}
#ml-motifs .ml-motif-card:disabled{opacity:1}
#ml-motifs .ml-motif-svg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
#ml-motifs .ml-motif-svg svg{width:100%;height:100%;max-height:114px;overflow:visible}
#ml-motifs .ml-motif-svg svg *{pointer-events:none}
#ml-motifs .ml-connectors{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;pointer-events:none}
#ml-motifs .ml-connectors line{stroke:#4b8666;stroke-width:3;stroke-linecap:round}
#ml-motifs .ml-status{min-height:28px;color:#4e5e6c;font-size:.95rem}
#ml-motifs .ml-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}
#ml-motifs .ml-finish{border-top:1px solid #e1e7ec;margin-top:14px;padding-top:18px}
#ml-motifs .ml-finish h3{margin-bottom:8px}
#ml-motifs .ml-board[data-pairs="5"]{gap:58px}
@media(max-width:750px){#ml-motifs .ml-settings-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px}#ml-motifs .ml-field-seconds{grid-column:1 / -1}#ml-motifs .ml-field-seconds .ml-seconds-setting{margin-top:0}}
@media(max-width:600px){#ml-motifs .ml-panel{padding:16px 12px}#ml-motifs .ml-settings-row{grid-template-columns:minmax(0,1fr);gap:14px}#ml-motifs .ml-field-seconds{grid-column:auto}#ml-motifs .ml-check{padding-top:0}#ml-motifs .ml-play{padding:15px 10px}#ml-motifs .ml-board,#ml-motifs .ml-board[data-pairs="5"],#ml-motifs .ml-board-labels{gap:22px}#ml-motifs .ml-column{grid-auto-rows:108px;gap:11px}#ml-motifs .ml-motif-card{height:108px;padding:1px 2px}#ml-motifs .ml-motif-svg svg{max-height:104px}#ml-motifs .ml-connectors line{stroke-width:2}#ml-motifs .ml-meta{font-size:.84rem}#ml-motifs .ml-round{font-size:.98rem}#ml-motifs .ml-status{font-size:.9rem}}
@media(max-width:390px){#ml-motifs .ml-panel{padding:13px 8px}#ml-motifs .ml-board,#ml-motifs .ml-board[data-pairs="5"],#ml-motifs .ml-board-labels{gap:16px}}

/* Informations d'accès : texte simple, sans cadre ni carte supplémentaire. */
#ml-motifs .ml-subscriber-badge{display:inline;color:#765532;font-size:.8rem;line-height:1.4;font-weight:normal}
#ml-motifs .ml-visitor-notice{margin:0 0 16px;font-size:.9rem;color:#536170}
#ml-motifs #ml-clock:disabled{cursor:not-allowed}
#ml-motifs #ml-clock:disabled + span{color:#697684}
